4446b8b11d978c0a8a1a91edbd239a1eba181fa8
[gnulib.git] / ChangeLog
1 2011-05-22  Bruno Haible  <bruno@clisp.org>
2
3         wmemset: Move AC_LIBOBJ invocations to module description.
4         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
5         here...
6         * modules/wmemset (configure.ac): ... to here.
7
8 2011-05-22  Bruno Haible  <bruno@clisp.org>
9
10         wmemmove: Move AC_LIBOBJ invocations to module description.
11         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12         here...
13         * modules/wmemmove (configure.ac): ... to here.
14
15 2011-05-22  Bruno Haible  <bruno@clisp.org>
16
17         wmemcpy: Move AC_LIBOBJ invocations to module description.
18         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
19         here...
20         * modules/wmemcpy (configure.ac): ... to here.
21
22 2011-05-22  Bruno Haible  <bruno@clisp.org>
23
24         wmemcmp: Move AC_LIBOBJ invocations to module description.
25         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
26         here...
27         * modules/wmemcmp (configure.ac): ... to here.
28
29 2011-05-22  Bruno Haible  <bruno@clisp.org>
30
31         wmemchr: Move AC_LIBOBJ invocations to module description.
32         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
33         here...
34         * modules/wmemchr (configure.ac): ... to here.
35
36 2011-05-22  Bruno Haible  <bruno@clisp.org>
37
38         wcswidth: Move AC_LIBOBJ invocations to module description.
39         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
40         here...
41         * modules/wcswidth (configure.ac): ... to here.
42
43 2011-05-22  Bruno Haible  <bruno@clisp.org>
44
45         wcwidth: Respect rules for use of AC_LIBOBJ.
46         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
47         invocation from here...
48         * modules/wcwidth (configure.ac): ... to here.
49         (Depends-on): Update conditions.
50
51 2011-05-22  Bruno Haible  <bruno@clisp.org>
52
53         wctype: Move AC_LIBOBJ invocations to module description.
54         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
55         invocation from here...
56         * modules/wctype (configure.ac): ... to here.
57         (Depends-on): Update conditions.
58
59 2011-05-22  Bruno Haible  <bruno@clisp.org>
60
61         wctrans: Move AC_LIBOBJ invocations to module description.
62         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
63         invocation from here...
64         * modules/wctrans (configure.ac): ... to here.
65
66 2011-05-22  Bruno Haible  <bruno@clisp.org>
67
68         wctomb: Move AC_LIBOBJ invocations to module description.
69         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
70         invocations from here...
71         * modules/wctomb (configure.ac): ... to here.
72
73 2011-05-22  Bruno Haible  <bruno@clisp.org>
74
75         wctob: Move AC_LIBOBJ invocations to module description.
76         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
77         gl_PREREQ_WCTOB invocations from here...
78         * modules/wctob (configure.ac): ... to here.
79         (Depends-on): Update conditions.
80
81 2011-05-22  Bruno Haible  <bruno@clisp.org>
82
83         wcsxfrm: Move AC_LIBOBJ invocations to module description.
84         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
85         here...
86         * modules/wcsxfrm (configure.ac): ... to here.
87
88 2011-05-22  Bruno Haible  <bruno@clisp.org>
89
90         wcstok: Move AC_LIBOBJ invocations to module description.
91         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
92         * modules/wcstok (configure.ac): ... to here.
93
94 2011-05-22  Bruno Haible  <bruno@clisp.org>
95
96         wcsstr: Move AC_LIBOBJ invocations to module description.
97         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
98         * modules/wcsstr (configure.ac): ... to here.
99
100 2011-05-22  Bruno Haible  <bruno@clisp.org>
101
102         wcsspn: Move AC_LIBOBJ invocations to module description.
103         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
104         * modules/wcsspn (configure.ac): ... to here.
105
106 2011-05-22  Bruno Haible  <bruno@clisp.org>
107
108         wcsrtombs: Move AC_LIBOBJ invocations to module description.
109         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
110         gl_PREREQ_WCSRTOMBS invocations from here...
111         * modules/wcsrtombs (configure.ac): ... to here.
112
113 2011-05-22  Bruno Haible  <bruno@clisp.org>
114
115         wcsrchr: Move AC_LIBOBJ invocations to module description.
116         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
117         here...
118         * modules/wcsrchr (configure.ac): ... to here.
119
120 2011-05-22  Bruno Haible  <bruno@clisp.org>
121
122         wcspbrk: Move AC_LIBOBJ invocations to module description.
123         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
124         here...
125         * modules/wcspbrk (configure.ac): ... to here.
126
127 2011-05-22  Bruno Haible  <bruno@clisp.org>
128
129         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
130         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
131         gl_PREREQ_WCSNRTOMBS invocations from here...
132         * modules/wcsnrtombs (configure.ac): ... to here.
133
134 2011-05-22  Bruno Haible  <bruno@clisp.org>
135
136         wcsnlen: Move AC_LIBOBJ invocations to module description.
137         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
138         here...
139         * modules/wcsnlen (configure.ac): ... to here.
140
141 2011-05-22  Bruno Haible  <bruno@clisp.org>
142
143         wcsncpy: Move AC_LIBOBJ invocations to module description.
144         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
145         here...
146         * modules/wcsncpy (configure.ac): ... to here.
147
148 2011-05-22  Bruno Haible  <bruno@clisp.org>
149
150         wcsncmp: Move AC_LIBOBJ invocations to module description.
151         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
152         here...
153         * modules/wcsncmp (configure.ac): ... to here.
154
155 2011-05-22  Bruno Haible  <bruno@clisp.org>
156
157         wcsncat: Move AC_LIBOBJ invocations to module description.
158         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
159         here...
160         * modules/wcsncat (configure.ac): ... to here.
161
162 2011-05-22  Bruno Haible  <bruno@clisp.org>
163
164         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
165         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
166         from here...
167         * modules/wcsncasecmp (configure.ac): ... to here.
168
169 2011-05-22  Bruno Haible  <bruno@clisp.org>
170
171         wcslen: Move AC_LIBOBJ invocations to module description.
172         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
173         * modules/wcslen (configure.ac): ... to here.
174
175 2011-05-22  Bruno Haible  <bruno@clisp.org>
176
177         wcsdup: Move AC_LIBOBJ invocations to module description.
178         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
179         * modules/wcsdup (configure.ac): ... to here.
180
181 2011-05-22  Bruno Haible  <bruno@clisp.org>
182
183         wcscspn: Move AC_LIBOBJ invocations to module description.
184         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
185         here...
186         * modules/wcscspn (configure.ac): ... to here.
187
188 2011-05-22  Bruno Haible  <bruno@clisp.org>
189
190         wcscpy: Move AC_LIBOBJ invocations to module description.
191         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
192         * modules/wcscpy (configure.ac): ... to here.
193
194 2011-05-22  Bruno Haible  <bruno@clisp.org>
195
196         wcscoll: Move AC_LIBOBJ invocations to module description.
197         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
198         here...
199         * modules/wcscoll (configure.ac): ... to here.
200
201 2011-05-22  Bruno Haible  <bruno@clisp.org>
202
203         wcscmp: Move AC_LIBOBJ invocations to module description.
204         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
205         * modules/wcscmp (configure.ac): ... to here.
206
207 2011-05-22  Bruno Haible  <bruno@clisp.org>
208
209         wcschr: Move AC_LIBOBJ invocations to module description.
210         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
211         * modules/wcschr (configure.ac): ... to here.
212
213 2011-05-22  Bruno Haible  <bruno@clisp.org>
214
215         wcscat: Move AC_LIBOBJ invocations to module description.
216         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
217         * modules/wcscat (configure.ac): ... to here.
218
219 2011-05-22  Bruno Haible  <bruno@clisp.org>
220
221         wcscasecmp: Move AC_LIBOBJ invocations to module description.
222         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
223         here...
224         * modules/wcscasecmp (configure.ac): ... to here.
225
226 2011-05-22  Bruno Haible  <bruno@clisp.org>
227
228         wcrtomb: Move AC_LIBOBJ invocations to module description.
229         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
230         invocations from here...
231         * modules/wcrtomb (configure.ac): ... to here.
232
233 2011-05-22  Bruno Haible  <bruno@clisp.org>
234
235         wcpncpy: Move AC_LIBOBJ invocations to module description.
236         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
237         here...
238         * modules/wcpncpy (configure.ac): ... to here.
239
240 2011-05-22  Bruno Haible  <bruno@clisp.org>
241
242         wcpcpy: Move AC_LIBOBJ invocations to module description.
243         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
244         * modules/wcpcpy (configure.ac): ... to here.
245
246 2011-05-22  Bruno Haible  <bruno@clisp.org>
247
248         waitpid: Move AC_LIBOBJ invocations to module description.
249         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
250         invocation from here...
251         * modules/waitpid (configure.ac): ... to here.
252
253 2011-05-22  Bruno Haible  <bruno@clisp.org>
254
255         utimensat: Move AC_LIBOBJ invocations to module description.
256         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
257         here...
258         * modules/utimensat (configure.ac): ... to here.
259
260 2011-05-22  Bruno Haible  <bruno@clisp.org>
261
262         usleep: Move AC_LIBOBJ invocations to module description.
263         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
264         here...
265         * modules/usleep (configure.ac): ... to here.
266
267 2011-05-22  Bruno Haible  <bruno@clisp.org>
268
269         unlockpt: Move AC_LIBOBJ invocations to module description.
270         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
271         gl_PREREQ_UNLOCKPT invocations from here...
272         * modules/unlockpt (configure.ac): ... to here.
273
274 2011-05-22  Bruno Haible  <bruno@clisp.org>
275
276         unlink: Respect rules for use of AC_LIBOBJ.
277         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
278         * modules/unlink (configure.ac): ... to here.
279
280 2011-05-22  Bruno Haible  <bruno@clisp.org>
281
282         uname: Move AC_LIBOBJ invocations to module description.
283         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
284         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
285         here...
286         * modules/uname (configure.ac): ... to here.
287
288 2011-05-22  Bruno Haible  <bruno@clisp.org>
289
290         ttyname_r: Move AC_LIBOBJ invocations to module description.
291         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
292         gl_PREREQ_TTYNAME_R invocations from here...
293         * modules/ttyname_r (configure.ac): ... to here.
294
295 2011-05-22  Bruno Haible  <bruno@clisp.org>
296
297         tsearch: Move AC_LIBOBJ invocations to module description.
298         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
299         invocations from here...
300         * modules/tsearch (configure.ac): ... to here.
301
302 2011-05-22  Bruno Haible  <bruno@clisp.org>
303
304         towctrans: Move AC_LIBOBJ invocations to module description.
305         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
306         AC_LIBOBJ invocation from here...
307         * modules/towctrans (configure.ac): ... to here.
308
309 2011-05-22  Bruno Haible  <bruno@clisp.org>
310
311         tmpfile: Move AC_LIBOBJ invocations to module description.
312         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
313         invocations from here...
314         * modules/tmpfile (configure.ac): ... to here.
315
316 2011-05-22  Bruno Haible  <bruno@clisp.org>
317
318         times: Move AC_LIBOBJ invocations to module description.
319         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
320         * modules/times (configure.ac): ... to here.
321
322 2011-05-22  Bruno Haible  <bruno@clisp.org>
323
324         time_r: Move AC_LIBOBJ invocations to module description.
325         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
326         invocations from here...
327         * modules/time_r (configure.ac): ... to here.
328
329 2011-05-22  Bruno Haible  <bruno@clisp.org>
330
331         timegm: Move AC_LIBOBJ invocations to module description.
332         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
333         invocations from here...
334         * modules/timegm (configure.ac): ... to here.
335
336 2011-05-22  Bruno Haible  <bruno@clisp.org>
337
338         tcgetsid: Move AC_LIBOBJ invocations to module description.
339         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
340         and gl_PREREQ_TCGETSID invocations from here...
341         * modules/tcgetsid (configure.ac): ... to here.
342         (Depends-on): Update conditions.
343
344 2011-05-22  Bruno Haible  <bruno@clisp.org>
345
346         symlinkat: Move AC_LIBOBJ invocations to module description.
347         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
348         here...
349         * modules/symlinkat (configure.ac): ... to here.
350
351 2011-05-22  Bruno Haible  <bruno@clisp.org>
352
353         symlink: Move AC_LIBOBJ invocations to module description.
354         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
355         here...
356         * modules/symlink (configure.ac): ... to here.
357
358 2011-05-22  Bruno Haible  <bruno@clisp.org>
359
360         strverscmp: Move AC_LIBOBJ invocations to module description.
361         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
362         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
363         from here...
364         * modules/strverscmp (configure.ac): ... to here.
365
366 2011-05-22  Bruno Haible  <bruno@clisp.org>
367
368         strtok_r: Move AC_LIBOBJ invocations to module description.
369         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
370         and gl_PREREQ_STRTOK_R invocations from here...
371         * modules/strtok_r (configure.ac): ... to here.
372         (Depends-on): Update conditions.
373
374 2011-05-22  Bruno Haible  <bruno@clisp.org>
375
376         strtoumax: Move AC_LIBOBJ invocations to module description.
377         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
378         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
379         from here...
380         * modules/strtoumax (configure.ac): ... to here.
381
382 2011-05-22  Bruno Haible  <bruno@clisp.org>
383
384         strtoimax: Move AC_LIBOBJ invocations to module description.
385         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
386         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
387         from here...
388         * modules/strtoimax (configure.ac): ... to here.
389
390 2011-05-22  Bruno Haible  <bruno@clisp.org>
391
392         strtoull: Move AC_LIBOBJ invocations to module description.
393         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
394         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
395         from here...
396         * modules/strtoull (configure.ac): ... to here.
397
398 2011-05-22  Bruno Haible  <bruno@clisp.org>
399
400         strtoll: Move AC_LIBOBJ invocations to module description.
401         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
402         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
403         here...
404         * modules/strtoll (configure.ac): ... to here.
405
406 2011-05-22  Bruno Haible  <bruno@clisp.org>
407
408         strtoul: Move AC_LIBOBJ invocations to module description.
409         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
410         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
411         * modules/strtoul (configure.ac): ... to here.
412
413 2011-05-22  Bruno Haible  <bruno@clisp.org>
414
415         strtol: Move AC_LIBOBJ invocations to module description.
416         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
417         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
418         * modules/strtol (configure.ac): ... to here.
419
420 2011-05-22  Bruno Haible  <bruno@clisp.org>
421
422         strtod: Move AC_LIBOBJ invocations to module description.
423         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
424         invocations from here...
425         * modules/strtod (configure.ac): ... to here.
426
427 2011-05-22  Bruno Haible  <bruno@clisp.org>
428
429         strstr*: Move AC_LIBOBJ invocations to module description.
430         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
431         invocations from here...
432         * modules/strstr-simple (configure.ac): ... to here.
433         * modules/strstr (configure.ac): ... and here.
434
435 2011-05-22  Bruno Haible  <bruno@clisp.org>
436
437         strsignal: Move AC_LIBOBJ invocations to module description.
438         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
439         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
440         * modules/strsignal (configure.ac): ... to here.
441         (Depends-on): Update conditions.
442
443 2011-05-22  Bruno Haible  <bruno@clisp.org>
444
445         strsep: Move AC_LIBOBJ invocations to module description.
446         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
447         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
448         here...
449         * modules/strsep (configure.ac): ... to here.
450
451 2011-05-22  Bruno Haible  <bruno@clisp.org>
452
453         strptime: Move AC_LIBOBJ invocations to module description.
454         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
455         gl_PREREQ_STRPTIME invocations from here...
456         * modules/strptime (configure.ac): ... to here.
457
458 2011-05-22  Bruno Haible  <bruno@clisp.org>
459
460         strpbrk: Move AC_LIBOBJ invocations to module description.
461         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
462         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
463         here...
464         * modules/strpbrk (configure.ac): ... to here.
465
466 2011-05-22  Bruno Haible  <bruno@clisp.org>
467
468         strnlen: Move AC_LIBOBJ invocations to module description.
469         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
470         invocations from here...
471         * modules/strnlen (configure.ac): ... to here.
472
473 2011-05-22  Bruno Haible  <bruno@clisp.org>
474
475         strndup: Move AC_LIBOBJ invocations to module description.
476         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
477         invocations from here...
478         * modules/strndup (configure.ac): ... to here.
479         (Depends-on): Update conditions.
480
481 2011-05-22  Bruno Haible  <bruno@clisp.org>
482
483         strncat: Move AC_LIBOBJ invocations to module description.
484         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
485         invocations from here...
486         * modules/strncat (configure.ac): ... to here.
487
488 2011-05-22  Bruno Haible  <bruno@clisp.org>
489
490         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
491         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
492         invocations from here...
493         * modules/strdup (configure.ac): ... to here.
494         * modules/strdup-posix (configure.ac): ... and here.
495
496 2011-05-22  Bruno Haible  <bruno@clisp.org>
497
498         strcspn: Move AC_LIBOBJ invocations to module description.
499         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
500         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
501         here...
502         * modules/strcspn (configure.ac): ... to here.
503
504 2011-05-22  Bruno Haible  <bruno@clisp.org>
505
506         strchrnul: Move AC_LIBOBJ invocations to module description.
507         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
508         gl_PREREQ_STRCHRNUL invocations from here...
509         * modules/strchrnul (configure.ac): ... to here.
510
511 2011-05-22  Bruno Haible  <bruno@clisp.org>
512
513         strcasestr*: Move AC_LIBOBJ invocations to module description.
514         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
515         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
516         * modules/strcasestr-simple (configure.ac): ... to here.
517         * modules/strcasestr (configure.ac): ... and here.
518
519 2011-05-22  Bruno Haible  <bruno@clisp.org>
520
521         strcase: Move AC_LIBOBJ invocations to module description.
522         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
523         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
524         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
525         gl_PREREQ_STRNCASECMP invocations from here...
526         * modules/strcase (configure.ac): ... to here.
527
528 2011-05-22  Bruno Haible  <bruno@clisp.org>
529
530         stpncpy: Move AC_LIBOBJ invocations to module description.
531         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
532         here...
533         * modules/stpncpy (configure.ac): ... to here.
534
535 2011-05-22  Bruno Haible  <bruno@clisp.org>
536
537         stpcpy: Move AC_LIBOBJ invocations to module description.
538         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
539         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
540         here...
541         * modules/stpcpy (configure.ac): ... to here.
542
543 2011-05-21  Bruno Haible  <bruno@clisp.org>
544
545         stat: Move AC_LIBOBJ invocations to module description.
546         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
547         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
548         here...
549         * modules/stat (configure.ac): ... to here.
550
551 2011-05-21  Bruno Haible  <bruno@clisp.org>
552
553         sleep: Move AC_LIBOBJ invocations to module description.
554         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
555         * modules/sleep (configure.ac): ... to here.
556
557 2011-05-21  Bruno Haible  <bruno@clisp.org>
558
559         signbit: Move AC_LIBOBJ invocations to module description.
560         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
561         * modules/signbit (configure.ac): ... to here.
562
563 2011-05-21  Bruno Haible  <bruno@clisp.org>
564
565         sigprocmask: Move AC_LIBOBJ invocations to module description.
566         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
567         gl_PREREQ_SIGPROMASK invocations from here...
568         * modules/sigprocmask (configure.ac): ... to here.
569
570 2011-05-21  Bruno Haible  <bruno@clisp.org>
571
572         sigaction: Move AC_LIBOBJ invocations to module description.
573         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
574         gl_PREREQ_SIGACTION invocations from here...
575         * modules/sigaction (configure.ac): ... to here.
576
577 2011-05-21  Bruno Haible  <bruno@clisp.org>
578
579         sig2str: Move AC_LIBOBJ invocations to module description.
580         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
581         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
582         here...
583         * modules/sig2str (configure.ac): ... to here.
584
585 2011-05-21  Bruno Haible  <bruno@clisp.org>
586
587         setlocale: Move AC_LIBOBJ invocations to module description.
588         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
589         gl_PREREQ_SETLOCALE invocations from here...
590         * modules/setlocale (configure.ac): ... to here.
591
592 2011-05-21  Bruno Haible  <bruno@clisp.org>
593
594         unsetenv: Move AC_LIBOBJ invocations to module description.
595         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
596         and gl_PREREQ_UNSETENV invocations from here...
597         * modules/unsetenv (configure.ac): ... to here.
598         (Depends-on): Update.
599
600 2011-05-21  Bruno Haible  <bruno@clisp.org>
601
602         setenv: Move AC_LIBOBJ invocations to module description.
603         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
604         here...
605         * modules/setenv (configure.ac): ... to here.
606
607 2011-05-21  Bruno Haible  <bruno@clisp.org>
608
609         selinux-h: Move AC_LIBOBJ invocations to module description.
610         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
611         AC_LIBOBJ invocation from here...
612         * modules/selinux-h (configure.ac): ... to here.
613
614 2011-05-21  Bruno Haible  <bruno@clisp.org>
615
616         select: Respect rules for use of AC_LIBOBJ.
617         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
618         here...
619         * modules/select (configure.ac): ... to here.
620
621 2011-05-21  Bruno Haible  <bruno@clisp.org>
622
623         scandir: Move AC_LIBOBJ invocations to module description.
624         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
625         invocations from here...
626         * modules/scandir (configure.ac): ... to here.
627
628 2011-05-21  Bruno Haible  <bruno@clisp.org>
629
630         rpmatch: Move AC_LIBOBJ invocations to module description.
631         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
632         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
633         here...
634         * modules/rpmatch (configure.ac): ... to here.
635
636 2011-05-21  Bruno Haible  <bruno@clisp.org>
637
638         rmdir: Respect rules for use of AC_LIBOBJ.
639         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
640         * modules/rmdir (configure.ac): ... to here.
641
642 2011-05-21  Bruno Haible  <bruno@clisp.org>
643
644         renameat: Move AC_LIBOBJ invocations to module description.
645         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
646         here...
647         * modules/renameat (configure.ac): ... to here.
648
649 2011-05-21  Bruno Haible  <bruno@clisp.org>
650
651         rename: Respect rules for use of AC_LIBOBJ.
652         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
653         here...
654         * modules/rename (configure.ac): ... to here.
655
656 2011-05-21  Bruno Haible  <bruno@clisp.org>
657
658         remove: Move AC_LIBOBJ invocations to module description.
659         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
660         here...
661         * modules/remove (configure.ac): ... to here.
662
663 2011-05-21  Bruno Haible  <bruno@clisp.org>
664
665         relocatable-lib: Move AC_LIBOBJ invocations to module description.
666         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
667         macro.
668         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
669         * modules/relocatable-lib (configure.ac): ... to here.
670         * modules/relocatable-prog-wrapper (configure.ac): Invoke
671         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
672
673 2011-05-21  Bruno Haible  <bruno@clisp.org>
674
675         relocatable-prog: Move AC_LIBOBJ invocations to module description.
676         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
677         here...
678         * modules/relocatable-prog (configure.ac): ... to here.
679
680 2011-05-21  Bruno Haible  <bruno@clisp.org>
681
682         regex: Move AC_LIBOBJ invocations to module description.
683         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
684         invocations from here...
685         * modules/regex (configure.ac): ... to here.
686
687 2011-05-21  Bruno Haible  <bruno@clisp.org>
688
689         realloc-*: Move AC_LIBOBJ invocations to module description.
690         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
691         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
692         AC_LIBOBJ invocations from here...
693         * modules/realloc-gnu (configure.ac): ... to here.
694         * modules/realloc-posix (configure.ac): ... and here.
695
696 2011-05-21  Bruno Haible  <bruno@clisp.org>
697
698         readutmp: Move AC_LIBOBJ invocations to module description.
699         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
700         * modules/readutmp (configure.ac): ... to here.
701
702 2011-05-21  Bruno Haible  <bruno@clisp.org>
703
704         readlinkat: Move AC_LIBOBJ invocations to module description.
705         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
706         here...
707         * modules/readlinkat (configure.ac): ... to here.
708
709 2011-05-21  Bruno Haible  <bruno@clisp.org>
710
711         readlink: Move AC_LIBOBJ invocations to module description.
712         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
713         gl_PREREQ_READLINK invocations from here...
714         * modules/readlink (configure.ac): ... to here.
715
716 2011-05-21  Bruno Haible  <bruno@clisp.org>
717
718         readline: Move AC_LIBOBJ invocations to module description.
719         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
720         gl_PREREQ_READLINE invocations from here...
721         * modules/readline (configure.ac): ... to here.
722
723 2011-05-21  Bruno Haible  <bruno@clisp.org>
724
725         read: Move AC_LIBOBJ invocations to module description.
726         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
727         * modules/read (configure.ac): ... to here.
728
729 2011-05-21  Bruno Haible  <bruno@clisp.org>
730
731         rawmemchr: Move AC_LIBOBJ invocations to module description.
732         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
733         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
734         from here...
735         * modules/rawmemchr (configure.ac): ... to here.
736
737 2011-05-21  Bruno Haible  <bruno@clisp.org>
738
739         random_r: Move AC_LIBOBJ invocations to module description.
740         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
741         gl_PREREQ_RANDOM_R invocations from here...
742         * modules/random_r (configure.ac): ... to here.
743
744 2011-05-21  Bruno Haible  <bruno@clisp.org>
745
746         pwrite: Move AC_LIBOBJ invocations to module description.
747         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
748         * modules/pwrite (configure.ac): ... to here.
749
750 2011-05-21  Bruno Haible  <bruno@clisp.org>
751
752         putenv: Move AC_LIBOBJ invocations to module description.
753         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
754         * modules/putenv (configure.ac): ... to here.
755
756 2011-05-21  Bruno Haible  <bruno@clisp.org>
757
758         login_tty: Move AC_LIBOBJ invocations to module description.
759         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
760         * modules/login_tty (configure.ac): ... to here.
761
762 2011-05-21  Bruno Haible  <bruno@clisp.org>
763
764         openpty: Move AC_LIBOBJ invocations to module description.
765         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
766         * modules/openpty (configure.ac): ... to here.
767
768 2011-05-21  Bruno Haible  <bruno@clisp.org>
769
770         forkpty: Move AC_LIBOBJ invocations to module description.
771         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
772         * modules/forkpty (configure.ac): ... to here.
773
774 2011-05-21  Bruno Haible  <bruno@clisp.org>
775
776         ptsname: Move AC_LIBOBJ invocations to module description.
777         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
778         invocations from here...
779         * modules/ptsname (configure.ac): ... to here.
780
781 2011-05-21  Bruno Haible  <bruno@clisp.org>
782
783         pread: Move AC_LIBOBJ invocations to module description.
784         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
785         * modules/pread (configure.ac): ... to here.
786
787 2011-05-21  Bruno Haible  <bruno@clisp.org>
788
789         posix_spawn*: Move AC_LIBOBJ invocations to module description.
790         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
791         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
792         * modules/posix_spawn (configure.ac): ... to here.
793         * modules/posix_spawnp (configure.ac): ... and here.
794
795 2011-05-21  Bruno Haible  <bruno@clisp.org>
796
797         popen: Move AC_LIBOBJ invocations to module description.
798         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
799         invocations from here...
800         * modules/popen (configure.ac): ... to here.
801
802 2011-05-21  Bruno Haible  <bruno@clisp.org>
803
804         poll: Move AC_LIBOBJ invocations to module description.
805         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
806         invocations from here...
807         * modules/poll (configure.ac): ... to here.
808
809 2011-05-21  Bruno Haible  <bruno@clisp.org>
810
811         pipe-posix: Move AC_LIBOBJ invocations to module description.
812         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
813         * modules/pipe-posix (configure.ac): ... to here.
814
815 2011-05-21  Bruno Haible  <bruno@clisp.org>
816
817         openat: Respect rules for use of AC_LIBOBJ.
818         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
819         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
820         * modules/openat (configure.ac): ... to here.
821
822 2011-05-21  Bruno Haible  <bruno@clisp.org>
823
824         obstack-printf*: Move AC_LIBOBJ invocations to module description.
825         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
826         invocation from here...
827         * modules/obstack-printf (configure.ac): ... to here.
828         * modules/obstack-printf-posix (configure.ac): ... and here.
829
830 2011-05-21  Bruno Haible  <bruno@clisp.org>
831
832         nl_langinfo: Move AC_LIBOBJ invocations to module description.
833         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
834         from here...
835         * modules/nl_langinfo (configure.ac): ... to here.
836
837 2011-05-21  Bruno Haible  <bruno@clisp.org>
838
839         nanosleep: Move AC_LIBOBJ invocations to module description.
840         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
841         gl_PREREQ_NANOSLEEP invocations from here...
842         * modules/nanosleep (configure.ac): ... to here.
843
844 2011-05-21  Bruno Haible  <bruno@clisp.org>
845
846         mountlist: Move AC_LIBOBJ invocations to module description.
847         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
848         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
849         * modules/mountlist (configure.ac): ... to here.
850
851 2011-05-21  Bruno Haible  <bruno@clisp.org>
852
853         mktime: Respect rules for use of AC_LIBOBJ.
854         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
855         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
856         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
857         (gl_FUNC_MKTIME_INTERNAL): ... and here...
858         * modules/mktime (configure.ac): ... to here.
859         * modules/mktime-internal (configure.ac): ... and here.
860         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
861
862 2011-05-21  Bruno Haible  <bruno@clisp.org>
863
864         mkstemps: Move AC_LIBOBJ invocations to module description.
865         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
866         here...
867         * modules/mkstemps (configure.ac): ... to here.
868
869 2011-05-21  Bruno Haible  <bruno@clisp.org>
870
871         mkstemp: Move AC_LIBOBJ invocations to module description.
872         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
873         gl_PREREQ_MKSTEMP invocations from here...
874         * modules/mkstemp (configure.ac): ... to here.
875
876 2011-05-21  Bruno Haible  <bruno@clisp.org>
877
878         mkostemps: Move AC_LIBOBJ invocations to module description.
879         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
880         here...
881         * modules/mkostemps (configure.ac): ... to here.
882
883 2011-05-21  Bruno Haible  <bruno@clisp.org>
884
885         mkostemp: Move AC_LIBOBJ invocations to module description.
886         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
887         gl_PREREQ_MKOSTEMP invocations from here...
888         * modules/mkostemp (configure.ac): ... to here.
889
890 2011-05-21  Bruno Haible  <bruno@clisp.org>
891
892         mknod: Move AC_LIBOBJ invocations to module description.
893         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
894         * modules/mknod (configure.ac): ... to here.
895
896 2011-05-21  Bruno Haible  <bruno@clisp.org>
897
898         mkfifoat: Move AC_LIBOBJ invocations to module description.
899         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
900         here...
901         * modules/mkfifoat (configure.ac): ... to here.
902
903 2011-05-21  Bruno Haible  <bruno@clisp.org>
904
905         mkfifo: Respect rules for use of AC_LIBOBJ.
906         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
907         here...
908         * modules/mkfifo (configure.ac): ... to here.
909
910 2011-05-21  Bruno Haible  <bruno@clisp.org>
911
912         mkdtemp: Move AC_LIBOBJ invocations to module description.
913         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
914         invocations from here...
915         * modules/mkdtemp (configure.ac): ... to here.
916
917 2011-05-21  Bruno Haible  <bruno@clisp.org>
918
919         mkdir: Move AC_LIBOBJ invocations to module description.
920         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
921         * modules/mkdir (configure.ac): ... to here.
922
923 2011-05-21  Bruno Haible  <bruno@clisp.org>
924
925         memset: Move AC_LIBOBJ invocations to module description.
926         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
927         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
928         here...
929         * modules/memset (configure.ac): ... to here.
930
931 2011-05-21  Bruno Haible  <bruno@clisp.org>
932
933         memrchr: Move AC_LIBOBJ invocations to module description.
934         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
935         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
936         here...
937         * modules/memrchr (configure.ac): ... to here.
938
939 2011-05-21  Bruno Haible  <bruno@clisp.org>
940
941         mempcpy: Move AC_LIBOBJ invocations to module description.
942         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
943         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
944         here...
945         * modules/mempcpy (configure.ac): ... to here.
946
947 2011-05-21  Bruno Haible  <bruno@clisp.org>
948
949         memmove: Move AC_LIBOBJ invocations to module description.
950         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
951         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
952         here...
953         * modules/memmove (configure.ac): ... to here.
954
955 2011-05-21  Bruno Haible  <bruno@clisp.org>
956
957         memmem*: Move AC_LIBOBJ invocations to module description.
958         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
959         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
960         here...
961         (gl_FUNC_MEMMEM): ... and here...
962         * modules/memmem-simple (configure.ac): ... to here.
963         * modules/memmem (configure.ac): ... and here.
964
965 2011-05-21  Bruno Haible  <bruno@clisp.org>
966
967         memcpy: Move AC_LIBOBJ invocations to module description.
968         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
969         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
970         here...
971         * modules/memcpy (configure.ac): ... to here.
972
973 2011-05-21  Bruno Haible  <bruno@clisp.org>
974
975         memcmp: Simplify autoconf macro.
976         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
977         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
978         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
979
980 2011-05-21  Bruno Haible  <bruno@clisp.org>
981
982         memcmp: Move AC_LIBOBJ invocations to module description.
983         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
984         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
985         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
986         * modules/memcmp (configure.ac): ... to here.
987         (Depends-on): Update conditions.
988
989 2011-05-21  Bruno Haible  <bruno@clisp.org>
990
991         memchr: Respect rules for use of AC_LIBOBJ.
992         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
993         invocations from here...
994         * modules/memchr (configure.ac): ... to here.
995
996 2011-05-21  Bruno Haible  <bruno@clisp.org>
997
998         mbtowc: Move AC_LIBOBJ invocations to module description.
999         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
1000         invocations from here...
1001         * modules/mbtowc (configure.ac): ... to here.
1002
1003 2011-05-21  Bruno Haible  <bruno@clisp.org>
1004
1005         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
1006         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
1007         gl_PREREQ_MBSRTOWCS invocations from here...
1008         * modules/mbsrtowcs (configure.ac): ... to here.
1009
1010 2011-05-21  Bruno Haible  <bruno@clisp.org>
1011
1012         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
1013         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
1014         gl_PREREQ_MBSNRTOWCS invocations from here...
1015         * modules/mbsnrtowcs (configure.ac): ... to here.
1016
1017 2011-05-21  Bruno Haible  <bruno@clisp.org>
1018
1019         mbsinit: Move AC_LIBOBJ invocations to module description.
1020         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
1021         invocations from here...
1022         * modules/mbsinit (configure.ac): ... to here.
1023
1024 2011-05-21  Bruno Haible  <bruno@clisp.org>
1025
1026         mbrlen: Move AC_LIBOBJ invocations to module description.
1027         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
1028         invocations from here...
1029         * modules/mbrlen (configure.ac): ... to here.
1030
1031 2011-05-21  Bruno Haible  <bruno@clisp.org>
1032
1033         mbrtowc: Respect rules for use of AC_LIBOBJ.
1034         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
1035         invocations from here...
1036         * modules/mbrtowc (configure.ac): ... to here.
1037
1038 2011-05-21  Bruno Haible  <bruno@clisp.org>
1039
1040         malloc-*: Move AC_LIBOBJ invocations to module description.
1041         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
1042         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
1043         AC_LIBOBJ invocations from here...
1044         * modules/malloc-gnu (configure.ac): ... to here.
1045         * modules/malloc-posix (configure.ac): ... and here.
1046
1047 2011-05-21  Bruno Haible  <bruno@clisp.org>
1048
1049         lstat, openat: Respect rules for use of AC_LIBOBJ.
1050         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1051         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1052         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1053         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1054         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1055         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1056         here.
1057         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1058
1059 2011-05-21  Bruno Haible  <bruno@clisp.org>
1060
1061         lseek: Move AC_LIBOBJ invocations to module description.
1062         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
1063         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1064         * modules/lseek (configure.ac): ... to here.
1065
1066 2011-05-21  Bruno Haible  <bruno@clisp.org>
1067
1068         linkat: Move AC_LIBOBJ invocations to module description.
1069         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
1070         here...
1071         * modules/linkat (configure.ac): ... to here.
1072
1073 2011-05-21  Bruno Haible  <bruno@clisp.org>
1074
1075         link: Respect rules for use of AC_LIBOBJ.
1076         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
1077         * modules/link (configure.ac): ... to here.
1078
1079 2011-05-21  Bruno Haible  <bruno@clisp.org>
1080
1081         lchown: Move AC_LIBOBJ invocations to module description.
1082         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1083         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1084         * modules/lchown (configure.ac): ... to here.
1085
1086 2011-05-21  Bruno Haible  <bruno@clisp.org>
1087
1088         iswctype: Move AC_LIBOBJ invocations to module description.
1089         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1090         here...
1091         * modules/iswctype (configure.ac): ... to here.
1092
1093 2011-05-21  Bruno Haible  <bruno@clisp.org>
1094
1095         iswblank: Move AC_LIBOBJ invocations to module description.
1096         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1097         here...
1098         * modules/iswblank (configure.ac): ... to here.
1099
1100 2011-05-21  Bruno Haible  <bruno@clisp.org>
1101
1102         atanl: Move AC_LIBOBJ invocations to module description.
1103         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1104         * modules/atanl (configure.ac): ... to here.
1105
1106 2011-05-21  Bruno Haible  <bruno@clisp.org>
1107
1108         acosl: Move AC_LIBOBJ invocations to module description.
1109         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1110         * modules/acosl (configure.ac): ... to here.
1111
1112 2011-05-21  Bruno Haible  <bruno@clisp.org>
1113
1114         asinl: Respect rules for use of AC_LIBOBJ.
1115         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1116         * modules/asinl (configure.ac): ... to here.
1117
1118 2011-05-21  Bruno Haible  <bruno@clisp.org>
1119
1120         tanl: Move AC_LIBOBJ invocations to module description.
1121         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1122         * modules/tanl (configure.ac): ... to here.
1123
1124 2011-05-21  Bruno Haible  <bruno@clisp.org>
1125
1126         cosl: Move AC_LIBOBJ invocations to module description.
1127         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1128         * modules/cosl (configure.ac): ... to here.
1129
1130 2011-05-21  Bruno Haible  <bruno@clisp.org>
1131
1132         sinl: Move AC_LIBOBJ invocations to module description.
1133         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1134         * modules/sinl (configure.ac): ... to here.
1135
1136 2011-05-21  Bruno Haible  <bruno@clisp.org>
1137
1138         logl: Move AC_LIBOBJ invocations to module description.
1139         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1140         * modules/logl (configure.ac): ... to here.
1141
1142 2011-05-21  Bruno Haible  <bruno@clisp.org>
1143
1144         expl: Move AC_LIBOBJ invocations to module description.
1145         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1146         * modules/expl (configure.ac): ... to here.
1147
1148 2011-05-21  Bruno Haible  <bruno@clisp.org>
1149
1150         roundl: Move AC_LIBOBJ invocations to module description.
1151         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1152         * modules/roundl (configure.ac): ... to here.
1153
1154 2011-05-21  Bruno Haible  <bruno@clisp.org>
1155
1156         round: Move AC_LIBOBJ invocations to module description.
1157         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1158         * modules/round (configure.ac): ... to here.
1159
1160 2011-05-21  Bruno Haible  <bruno@clisp.org>
1161
1162         roundf: Move AC_LIBOBJ invocations to module description.
1163         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1164         * modules/roundf (configure.ac): ... to here.
1165
1166 2011-05-21  Bruno Haible  <bruno@clisp.org>
1167
1168         truncl: Move AC_LIBOBJ invocations to module description.
1169         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1170         * modules/truncl (configure.ac): ... to here.
1171
1172 2011-05-21  Bruno Haible  <bruno@clisp.org>
1173
1174         trunc: Move AC_LIBOBJ invocations to module description.
1175         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1176         * modules/trunc (configure.ac): ... to here.
1177
1178 2011-05-21  Bruno Haible  <bruno@clisp.org>
1179
1180         truncf: Move AC_LIBOBJ invocations to module description.
1181         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1182         * modules/truncf (configure.ac): ... to here.
1183
1184 2011-05-21  Bruno Haible  <bruno@clisp.org>
1185
1186         ceill: Move AC_LIBOBJ invocations to module description.
1187         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1188         * modules/ceill (configure.ac): ... to here.
1189
1190 2011-05-21  Bruno Haible  <bruno@clisp.org>
1191
1192         ceil: Move AC_LIBOBJ invocations to module description.
1193         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1194         * modules/ceil (configure.ac): ... to here.
1195
1196 2011-05-21  Bruno Haible  <bruno@clisp.org>
1197
1198         ceilf: Move AC_LIBOBJ invocations to module description.
1199         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1200         * modules/ceilf (configure.ac): ... to here.
1201
1202 2011-05-21  Bruno Haible  <bruno@clisp.org>
1203
1204         floorl: Respect rules for use of AC_LIBOBJ.
1205         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1206         * modules/floorl (configure.ac): ... to here.
1207
1208 2011-05-21  Bruno Haible  <bruno@clisp.org>
1209
1210         floor: Respect rules for use of AC_LIBOBJ.
1211         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1212         * modules/floor (configure.ac): ... to here.
1213
1214 2011-05-21  Bruno Haible  <bruno@clisp.org>
1215
1216         floorf: Move AC_LIBOBJ invocations to module description.
1217         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1218         * modules/floorf (configure.ac): ... to here.
1219
1220 2011-05-20  Bruno Haible  <bruno@clisp.org>
1221
1222         sqrtl: Respect rules for use of AC_LIBOBJ.
1223         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1224         * modules/sqrtl (configure.ac): ... to here.
1225
1226 2011-05-20  Bruno Haible  <bruno@clisp.org>
1227
1228         ldexpl: Respect rules for use of AC_LIBOBJ.
1229         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1230         * modules/ldexpl (configure.ac): ... to here.
1231
1232 2011-05-20  Bruno Haible  <bruno@clisp.org>
1233
1234         frexpl*: Respect rules for use of AC_LIBOBJ.
1235         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1236         invocation from here...
1237         * modules/frexpl (configure.ac): ... to here.
1238         * modules/frexpl-nolibm (configure.ac): ... and here.
1239
1240 2011-05-20  Bruno Haible  <bruno@clisp.org>
1241
1242         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1243         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1244         invocation from here...
1245         * modules/frexp (configure.ac): ... to here.
1246         * modules/frexp-nolibm (configure.ac): ... and here.
1247
1248 2011-05-20  Bruno Haible  <bruno@clisp.org>
1249
1250         isnan: Respect rules for use of AC_LIBOBJ.
1251         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1252         invocations here.
1253         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1254         REPLACE_ISNAN.
1255         * modules/isnand (configure.ac): Likewise.
1256         * modules/isnanl (configure.ac): Likewise.
1257
1258 2011-05-20  Bruno Haible  <bruno@clisp.org>
1259
1260         isnanl*: Respect rules for use of AC_LIBOBJ.
1261         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1262         invocation from here...
1263         * modules/isnanl (configure.ac): ... to here.
1264         * modules/isnanl-nolibm (configure.ac): ... and here.
1265
1266 2011-05-20  Bruno Haible  <bruno@clisp.org>
1267
1268         isnand*: Move AC_LIBOBJ invocations to module description.
1269         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1270         invocation from here...
1271         * modules/isnand (configure.ac): ... to here.
1272         * modules/isnand-nolibm (configure.ac): ... and here.
1273
1274 2011-05-20  Bruno Haible  <bruno@clisp.org>
1275
1276         isnanf*: Move AC_LIBOBJ invocations to module description.
1277         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1278         invocation from here...
1279         * modules/isnanf (configure.ac): ... to here.
1280         * modules/isnanf-nolibm (configure.ac): ... and here.
1281
1282 2011-05-20  Bruno Haible  <bruno@clisp.org>
1283
1284         isnan*: Separate the AC_LIBOBJ invocations.
1285         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1286         AC_LIBOBJ invocation.
1287         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1288         here.
1289         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1290         AC_LIBOBJ invocation.
1291         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1292         here.
1293         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1294         AC_LIBOBJ invocation.
1295         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1296         here.
1297         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1298
1299 2011-05-08  Bruno Haible  <bruno@clisp.org>
1300
1301         isinf: Move AC_LIBOBJ invocations to module description.
1302         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1303         * modules/isinf (configure.ac): ... to here.
1304
1305 2011-05-08  Bruno Haible  <bruno@clisp.org>
1306
1307         isfinite: Move AC_LIBOBJ invocations to module description.
1308         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1309         * modules/isfinite (configure.ac): ... to here.
1310
1311 2011-05-08  Bruno Haible  <bruno@clisp.org>
1312
1313         isblank: Move AC_LIBOBJ invocations to module description.
1314         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1315         here...
1316         * modules/isblank (configure.ac): ... to here.
1317
1318 2011-05-08  Bruno Haible  <bruno@clisp.org>
1319
1320         isapipe: Move AC_LIBOBJ invocations to module description.
1321         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1322         gl_PREREQ_ISAPIPE invocations from here...
1323         * modules/isapipe (configure.ac): ... to here.
1324         (Depends-on): Update condition.
1325
1326 2011-05-08  Bruno Haible  <bruno@clisp.org>
1327
1328         ioctl: Move AC_LIBOBJ invocations to module description.
1329         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1330         invocations from here...
1331         * modules/ioctl (configure.ac): ... to here.
1332         (Depends-on): Update condition.
1333
1334 2011-05-08  Bruno Haible  <bruno@clisp.org>
1335
1336         imaxdiv: Move AC_LIBOBJ invocations to module description.
1337         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1338         invocations from here...
1339         * modules/imaxdiv (configure.ac): ... to here.
1340
1341 2011-05-08  Bruno Haible  <bruno@clisp.org>
1342
1343         imaxabs: Move AC_LIBOBJ invocations to module description.
1344         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1345         invocations from here...
1346         * modules/imaxabs (configure.ac): ... to here.
1347
1348 2011-05-08  Bruno Haible  <bruno@clisp.org>
1349
1350         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1351         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1352         AC_LIBOBJ invocations from here...
1353         * modules/getaddrinfo (configure.ac): ... to here.
1354         (Depends-on): Add conditions.
1355
1356 2011-05-08  Bruno Haible  <bruno@clisp.org>
1357
1358         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1359         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1360         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1361         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1362         (gl_PREREQ_INET_PTON): ... from here.
1363         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1364         gl_PREREQ_INET_PTON here.
1365         (Depends-on): Update condition.
1366
1367 2011-05-08  Bruno Haible  <bruno@clisp.org>
1368
1369         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1370         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1371         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1372         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1373         (gl_PREREQ_INET_NTOP): ... from here.
1374         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1375         gl_PREREQ_INET_NTOP here.
1376         (Depends-on): Update condition.
1377
1378 2011-05-08  Bruno Haible  <bruno@clisp.org>
1379
1380         iconv_open: Move AC_LIBOBJ invocations to module description.
1381         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1382         AC_LIBOBJ invocations from here...
1383         * modules/iconv_open (configure.ac): ... to here.
1384
1385 2011-05-08  Bruno Haible  <bruno@clisp.org>
1386
1387         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1388         If module 'iconv_open' is among the main modules and module
1389         'iconv_open-utf' is among the tests dependencies, then
1390         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1391         return the special iconv_t values. Therefore iconv() and iconv_close()
1392         must support these special iconv_t values, already in lib, not only in
1393         tests.
1394         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1395         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1396         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1397         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1398         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1399         (Depends-on): Add the dependencies of iconv_open-utf.
1400         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1401         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1402         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1403
1404 2011-05-08  Bruno Haible  <bruno@clisp.org>
1405
1406         group-member: Move AC_LIBOBJ invocations to module description.
1407         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1408         gl_PREREQ_GROUP_MEMBER invocations from here...
1409         * modules/group-member (configure.ac): ... to here.
1410
1411 2011-05-08  Bruno Haible  <bruno@clisp.org>
1412
1413         grantpt: Move AC_LIBOBJ invocations to module description.
1414         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1415         invocations from here...
1416         * modules/grantpt (configure.ac): ... to here.
1417
1418 2011-05-08  Bruno Haible  <bruno@clisp.org>
1419
1420         glob: Move AC_LIBOBJ invocations to module description.
1421         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1422         from here...
1423         * modules/glob (configure.ac): ... to here.
1424
1425 2011-05-08  Bruno Haible  <bruno@clisp.org>
1426
1427         getusershell: Move AC_LIBOBJ invocations to module description.
1428         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1429         Move AC_LIBOBJ invocation from here...
1430         * modules/getusershell (configure.ac): ... to here.
1431         (Depends-on): Update condition.
1432
1433 2011-05-08  Bruno Haible  <bruno@clisp.org>
1434
1435         gettimeofday: Move AC_LIBOBJ invocations to module description.
1436         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1437         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1438         gl_PREREQ_GETTIMEOFDAY invocations from here...
1439         * modules/gettimeofday (configure.ac): ... to here.
1440
1441 2011-05-08  Bruno Haible  <bruno@clisp.org>
1442
1443         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1444         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1445         just gl_FUNC_TZSET.
1446         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1447         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1448         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1449         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1450
1451 2011-05-08  Bruno Haible  <bruno@clisp.org>
1452
1453         getsubopt: Move AC_LIBOBJ invocations to module description.
1454         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1455         gl_PREREQ_GETSUBOPT invocations from here...
1456         * modules/getsubopt (configure.ac): ... to here.
1457
1458 2011-05-08  Bruno Haible  <bruno@clisp.org>
1459
1460         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1461         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1462         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1463         * modules/getpass-gnu (configure.ac): ... to here.
1464
1465 2011-05-08  Bruno Haible  <bruno@clisp.org>
1466
1467         getpass: Move AC_LIBOBJ invocations to module description.
1468         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1469         gl_PREREQ_GETPASS invocations from here...
1470         * modules/getpass (configure.ac): ... to here.
1471
1472 2011-05-08  Bruno Haible  <bruno@clisp.org>
1473
1474         getpagesize: Move AC_LIBOBJ invocations to module description.
1475         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1476         from here...
1477         * modules/getpagesize (configure.ac): ... to here.
1478
1479 2011-05-08  Bruno Haible  <bruno@clisp.org>
1480
1481         getopt: Move AC_LIBOBJ invocations to module description.
1482         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1483         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1484         invocations from here...
1485         * modules/getopt-gnu (configure.ac): ... to here.
1486         * modules/getopt-posix (configure.ac): ... and here.
1487         (Depends-on): Update condition.
1488
1489 2011-05-08  Bruno Haible  <bruno@clisp.org>
1490
1491         getopt, argp: Respect rules for use of AC_LIBOBJ.
1492         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1493         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1494         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1495         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1496
1497 2011-05-08  Bruno Haible  <bruno@clisp.org>
1498
1499         getlogin_r: Move AC_LIBOBJ invocations to module description.
1500         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1501         gl_PREREQ_GETLOGIN_R invocations from here...
1502         * modules/getlogin_r (configure.ac): ... to here.
1503
1504 2011-05-08  Bruno Haible  <bruno@clisp.org>
1505
1506         getlogin: Move AC_LIBOBJ invocations to module description.
1507         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1508         here...
1509         * modules/getlogin (configure.ac): ... to here.
1510
1511 2011-05-08  Bruno Haible  <bruno@clisp.org>
1512
1513         getloadavg: Move AC_LIBOBJ invocations to module description.
1514         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1515         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1516         * modules/getloadavg (configure.ac): ... to here.
1517
1518 2011-05-08  Bruno Haible  <bruno@clisp.org>
1519
1520         gethrxtime: Move AC_LIBOBJ invocations to module description.
1521         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1522         LIB_GETHRXTIME from here...
1523         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1524         invocations from here...
1525         * modules/gethrxtime (configure.ac): ... to here.
1526
1527 2011-05-08  Bruno Haible  <bruno@clisp.org>
1528
1529         gethostname: Move AC_LIBOBJ invocations to module description.
1530         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1531         gl_PREREQ_GETHOSTNAME invocations from here...
1532         * modules/gethostname (configure.ac): ... to here.
1533
1534 2011-05-08  Bruno Haible  <bruno@clisp.org>
1535
1536         getgroups: Move AC_LIBOBJ invocations to module description.
1537         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1538         here...
1539         * modules/getgroups (configure.ac): ... to here.
1540
1541 2011-05-08  Bruno Haible  <bruno@clisp.org>
1542
1543         getdtablesize: Move AC_LIBOBJ invocations to module description.
1544         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1545         invocation from here...
1546         * modules/getdtablesize (configure.ac): ... to here.
1547
1548 2011-05-08  Bruno Haible  <bruno@clisp.org>
1549
1550         getdomainname: Move AC_LIBOBJ invocations to module description.
1551         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1552         gl_PREREQ_GETDOMAINNAME invocations from here...
1553         * modules/getdomainname (configure.ac): ... to here.
1554
1555 2011-05-08  Bruno Haible  <bruno@clisp.org>
1556
1557         getline: Move AC_LIBOBJ invocations to module description.
1558         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1559         invocations from here...
1560         * modules/getline (configure.ac): ... to here.
1561
1562 2011-05-08  Bruno Haible  <bruno@clisp.org>
1563
1564         getline: Simplify.
1565         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1566         It's already handled through the module dependency.
1567
1568 2011-05-08  Bruno Haible  <bruno@clisp.org>
1569
1570         getdelim: Move AC_LIBOBJ invocations to module description.
1571         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1572         and gl_PREREQ_GETDELIM invocations from here...
1573         * modules/getdelim (configure.ac): ... to here.
1574         (Depends-on): Fix condition.
1575
1576 2011-05-08  Bruno Haible  <bruno@clisp.org>
1577
1578         getcwd: Move AC_LIBOBJ invocations to module description.
1579         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1580         invocations from here...
1581         * modules/getcwd (configure.ac): ... to here.
1582
1583 2011-05-08  Bruno Haible  <bruno@clisp.org>
1584
1585         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1586         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1587         here...
1588         * modules/getcwd-lgpl (configure.ac): ... to here.
1589
1590 2011-05-07  Bruno Haible  <bruno@clisp.org>
1591
1592         crypto/gc: Move AC_LIBOBJ invocations to module description.
1593         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1594         * modules/crypto/gc (configure.ac): ... to here.
1595
1596 2011-05-07  Bruno Haible  <bruno@clisp.org>
1597
1598         fwriting: Move AC_LIBOBJ invocations to module description.
1599         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1600         here...
1601         * modules/fwriting (configure.ac): ... to here.
1602
1603 2011-05-07  Bruno Haible  <bruno@clisp.org>
1604
1605         fwritable: Move AC_LIBOBJ invocations to module description.
1606         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1607         here...
1608         * modules/fwritable (configure.ac): ... to here.
1609
1610 2011-05-07  Bruno Haible  <bruno@clisp.org>
1611
1612         futimens: Move AC_LIBOBJ invocations to module description.
1613         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1614         here...
1615         * modules/futimens (configure.ac): ... to here.
1616
1617 2011-05-07  Bruno Haible  <bruno@clisp.org>
1618
1619         ftruncate: Move AC_LIBOBJ invocations to module description.
1620         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1621         gl_PREREQ_FTRUNCATE invocations from here...
1622         * modules/ftruncate (configure.ac): ... to here.
1623
1624 2011-05-07  Bruno Haible  <bruno@clisp.org>
1625
1626         fsync: Move AC_LIBOBJ invocations to module description.
1627         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1628         invocations from here...
1629         * modules/fsync (configure.ac): ... to here.
1630
1631 2011-05-07  Bruno Haible  <bruno@clisp.org>
1632
1633         fsusage: Move AC_LIBOBJ invocations to module description.
1634         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1635         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1636         * modules/fsusage (configure.ac): ... to here.
1637
1638 2011-05-07  Bruno Haible  <bruno@clisp.org>
1639
1640         freopen: Move AC_LIBOBJ invocations to module description.
1641         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1642         invocations from here...
1643         * modules/freopen (configure.ac): ... to here.
1644
1645 2011-05-07  Bruno Haible  <bruno@clisp.org>
1646
1647         free: Move AC_LIBOBJ invocations to module description.
1648         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1649         invocations from here...
1650         * modules/free (configure.ac): ... to here.
1651
1652 2011-05-07  Bruno Haible  <bruno@clisp.org>
1653
1654         freadable: Move AC_LIBOBJ invocations to module description.
1655         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1656         here...
1657         * modules/freadable (configure.ac): ... to here.
1658
1659 2011-05-07  Bruno Haible  <bruno@clisp.org>
1660
1661         fpurge: Move AC_LIBOBJ invocations to module description.
1662         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1663         invocations from here...
1664         * modules/fpurge (configure.ac): ... to here.
1665
1666 2011-05-07  Bruno Haible  <bruno@clisp.org>
1667
1668         fpending: Move AC_LIBOBJ invocations to module description.
1669         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1670         gl_FUNC_FPENDING.
1671         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1672         invocations from here...
1673         * modules/fpending (configure.ac): ... to here.
1674
1675 2011-05-07  Bruno Haible  <bruno@clisp.org>
1676
1677         fopen: Move AC_LIBOBJ invocations to module description.
1678         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1679         invocations from here...
1680         * modules/fopen (configure.ac): ... to here.
1681
1682 2011-05-07  Bruno Haible  <bruno@clisp.org>
1683
1684         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1685         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1686         gl_FUNC_FNMATCH_POSIX.
1687         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1688         invocations from here...
1689         * modules/fnmatch (configure.ac): ... to here.
1690         * modules/fnmatch-gnu (configure.ac): ... and here.
1691
1692 2011-05-07  Bruno Haible  <bruno@clisp.org>
1693
1694         flock: Move AC_LIBOBJ invocations to module description.
1695         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1696         invocations from here...
1697         * modules/flock (configure.ac): ... to here.
1698
1699 2011-05-07  Bruno Haible  <bruno@clisp.org>
1700
1701         fileblocks: Move AC_LIBOBJ invocations to module description.
1702         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1703         gl_PREREQ_FILEBLOCKS invocations from here...
1704         * modules/fileblocks (configure.ac): ... to here.
1705
1706 2011-05-06  Bruno Haible  <bruno@clisp.org>
1707
1708         fflush: Move AC_LIBOBJ invocations to module description.
1709         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1710         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1711         invocations from here...
1712         * modules/fflush (configure.ac): ... to here.
1713
1714 2011-05-06  Bruno Haible  <bruno@clisp.org>
1715
1716         fdopendir: Move AC_LIBOBJ invocations to module description.
1717         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1718         here...
1719         * modules/fdopendir (configure.ac): ... to here.
1720         (Depends-on): Improve conditions.
1721
1722 2011-05-06  Bruno Haible  <bruno@clisp.org>
1723
1724         _Exit: Move AC_LIBOBJ invocations to module description.
1725         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1726         invocations from here...
1727         * modules/_Exit (configure.ac): ... to here.
1728
1729 2011-05-21  Bruno Haible  <bruno@clisp.org>
1730
1731         euidaccess: Respect rules for use of AC_LIBOBJ.
1732         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1733         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1734         from here...
1735         * modules/euidaccess (configure.ac): ... to here.
1736
1737 2011-05-06  Bruno Haible  <bruno@clisp.org>
1738
1739         error: Move AC_LIBOBJ invocations to module description.
1740         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1741         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1742         invocations from here...
1743         * modules/error (configure.ac): ... to here.
1744
1745 2011-05-06  Bruno Haible  <bruno@clisp.org>
1746
1747         duplocale: Move AC_LIBOBJ invocations to module description.
1748         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1749         gl_PREREQ_DUPLOCALE invocations from here...
1750         * modules/duplocale (configure.ac): ... to here.
1751
1752 2011-05-05  Bruno Haible  <bruno@clisp.org>
1753
1754         dirfd: Move AC_LIBOBJ invocations to module description.
1755         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1756         gl_FUNC_DIRFD.
1757         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1758         here...
1759         * modules/dirfd (configure.ac): ... to here.
1760         (Depends-on): Fix condition.
1761
1762 2011-05-05  Bruno Haible  <bruno@clisp.org>
1763
1764         chown: Respect rules for use of AC_LIBOBJ.
1765         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
1766         * modules/chown (configure.ac): ... to here.
1767
1768 2011-05-05  Bruno Haible  <bruno@clisp.org>
1769
1770         chdir-long: Move AC_LIBOBJ invocations to module description.
1771         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
1772         gl_PREREQ_CHDIR_LONG invocations from here...
1773         * modules/chdir-long (configure.ac): ... to here.
1774
1775 2011-05-05  Bruno Haible  <bruno@clisp.org>
1776
1777         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
1778         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
1779         from here...
1780         * modules/canonicalize-lgpl (configure.ac): ... to here.
1781
1782 2011-05-05  Bruno Haible  <bruno@clisp.org>
1783
1784         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
1785         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
1786         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
1787         REPLACE_CALLOC.
1788         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
1789         * modules/calloc-gnu (configure.ac): Likewise.
1790
1791 2011-05-05  Bruno Haible  <bruno@clisp.org>
1792
1793         btowc: Move AC_LIBOBJ invocations to module description.
1794         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
1795         invocations from here...
1796         * modules/btowc (configure.ac): ... to here.
1797
1798 2011-05-21  Bruno Haible  <bruno@clisp.org>
1799
1800         atexit: Move AC_LIBOBJ invocations to module description.
1801         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
1802         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
1803         here...
1804         * modules/atexit (configure.ac): ... to here.
1805
1806 2011-05-05  Bruno Haible  <bruno@clisp.org>
1807
1808         atoll: Move AC_LIBOBJ invocations to module description.
1809         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
1810         invocations from here...
1811         * modules/atoll (configure.ac): ... to here.
1812
1813 2011-05-05  Bruno Haible  <bruno@clisp.org>
1814
1815         argz: Move AC_LIBOBJ invocations to module description.
1816         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
1817         * modules/argz (configure.ac): ... to here.
1818
1819 2011-05-05  Bruno Haible  <bruno@clisp.org>
1820
1821         alphasort: Move AC_LIBOBJ invocations to module description.
1822         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
1823         gl_PREREQ_ALPHASORT invocations from here...
1824         * modules/alphasort (configure.ac): ... to here.
1825
1826 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1827
1828         verify: new macro verify_expr; verify_true deprecated
1829         * NEWS: Mention this.
1830         * doc/verify.texi (Compile-time Assertions): Document this.
1831         * lib/verify.h (verify_true): Deprecate.
1832         (verify_expr): New macro.
1833         * tests/test-verify.c (function): Test verify_expr.
1834
1835 2011-06-14  Jim Meyering  <meyering@redhat.com>
1836
1837         init.sh: give more portable redirection-related advice in a comment
1838         * tests/init.sh (stderr_fileno_): Update the advice in comments.
1839         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
1840         for lots of discussion.  Stefano Lattarini suggested the solution
1841         of putting "9>&2" after the command.  Reported by Bruno Haible.
1842
1843 2011-06-13  Bruno Haible  <bruno@clisp.org>
1844
1845         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
1846         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
1847         'none'.
1848
1849 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1850
1851         ftoastr: use strtof only if HAVE_STRTOF
1852         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
1853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
1854         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
1855         * modules/ftoastr (configure.ac): Check for strtof.
1856
1857 2011-06-13  Bruno Haible  <bruno@clisp.org>
1858
1859         gnulib-tool: Addendum to 2011-06-08 commit.
1860         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
1861         and --witness-c-macro have been given, augment AM_CPPFLAGS.
1862
1863 2011-06-13  Bruno Haible  <bruno@clisp.org>
1864
1865         fseeko: Provide a non-inline replacement of fseek().
1866         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
1867         * modules/fseeko (Depends-on): Add fseek.
1868         * modules/fseek (License): Change to LGPLv2+.
1869
1870 2011-06-13  Bruno Haible  <bruno@clisp.org>
1871
1872         ftello: Provide a non-inline replacement of ftell().
1873         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
1874         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
1875         not have ftello() (such as on mingw).
1876         * modules/ftello (Depends-on): Add ftell.
1877         * modules/ftell (License): Change to LGPLv2+.
1878
1879 2011-05-07  Bruno Haible  <bruno@clisp.org>
1880
1881         ftell: Move AC_LIBOBJ invocations to module description.
1882         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
1883         * modules/ftell (configure.ac): ... to here.
1884
1885 2011-05-07  Bruno Haible  <bruno@clisp.org>
1886
1887         ftello: Respect rules for use of AC_LIBOBJ.
1888         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
1889         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
1890         here...
1891         * modules/ftello (configure.ac): ... to here.
1892
1893 2011-05-07  Bruno Haible  <bruno@clisp.org>
1894
1895         fseeko: Simplify.
1896         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
1897         (gl_FUNC_FSEEKO): Inline it here.
1898
1899 2011-05-07  Bruno Haible  <bruno@clisp.org>
1900
1901         fseek: Move AC_LIBOBJ invocations to module description.
1902         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
1903         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1904         * modules/fseek (configure.ac): ... to here.
1905
1906 2011-05-07  Bruno Haible  <bruno@clisp.org>
1907
1908         fseek: Respect rules for use of AC_LIBOBJ.
1909         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
1910         here...
1911         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
1912
1913 2011-05-07  Bruno Haible  <bruno@clisp.org>
1914
1915         fseeko: Respect rules for use of AC_LIBOBJ.
1916         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
1917         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
1918         here...
1919         * modules/fseeko (configure.ac): ... to here.
1920
1921 2011-06-13  Bruno Haible  <bruno@clisp.org>
1922
1923         gnulib-tool: Allow comments in the 'Depends-on' section.
1924         * doc/gnulib.texi (Module description): Mention comment syntax in the
1925         Depends-on section.
1926         * gnulib-tool (func_get_dependencies): Filter out comment lines.
1927
1928 2011-06-13  Bruno Haible  <bruno@clisp.org>
1929
1930         file-set.h: guard __attibute__ use, now that it's not always defined
1931         * lib/file-set.h (record_file): Use __attribute__ only with compiler
1932         versions that support it.  This fixes a coreutils build failure with
1933         the vendor cc on HP-UX 11.31.
1934
1935 2011-06-12  Bruno Haible  <bruno@clisp.org>
1936
1937         acl: Add support for HP-UX >= 11.11 JFS ACLs.
1938         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
1939         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
1940         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
1941         (acl, aclsort): New declarations.
1942         (aclv_nontrivial): New declaration.
1943         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
1944         (file_has_acl): Read also the second kind of HP-UX ACLs.
1945         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
1946         kind of HP-UX ACLs if the first kind fails.
1947         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
1948         second kind of HP-UX ACLs.
1949         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
1950         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
1951         agree.
1952         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1953         hpuxjfs.
1954         Handle hpuxjfs.
1955         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1956         hpuxjfs.
1957         Handle hpuxjfs.
1958         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1959         (func_test_same_acls): Use both lsacl and getacl.
1960         Handle hpuxjfs.
1961         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1962         (func_test_same_acls): Use both lsacl and getacl.
1963         Handle hpuxjfs.
1964
1965 2011-06-12  Bruno Haible  <bruno@clisp.org>
1966
1967         acl: Complete the 2010-08-10 fix.
1968         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1969         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1970         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1971         explicitly.
1972         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1973         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1974
1975 2011-06-12  Bruno Haible  <bruno@clisp.org>
1976
1977         spawn-pipe tests: Comments.
1978         * tests/test-spawn-pipe-child.c (main): Update comment.
1979         Reported by James Youngman <jay@gnu.org>.
1980
1981 2011-06-11  James Youngman  <jay@gnu.org>
1982
1983         New module 'stat-size'.
1984         * modules/stat-size: New module.  Provides macros for accessing
1985         file size information in instances of struct stat.  Depends on the
1986         fileblocks module because it calls st_blocks.
1987         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1988         * doc/gnulib.texi: Include stat-size.texi.
1989         * doc/stat-size.texi: Documentation for this module.
1990         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1991         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1992         AC_STRUCT_ST_BLOCKS.
1993
1994 2011-06-09  Bruno Haible  <bruno@clisp.org>
1995
1996         thread: Support pthreads-win32.
1997         * lib/glthread/thread.h (gl_thread_self): Define differently on
1998         pthreads-win32.
1999         (gl_null_thread): New declaration.
2000         (gl_thread_self_pointer): New macro.
2001         * lib/glthread/thread.c (gl_null_thread): New constant.
2002         * tests/test-lock.c: Use gl_thread_self_pointer instead of
2003         gl_thread_self.
2004         * tests/test-tls.c: Likewise.
2005         Suggested by Paul Eggert. Reported by Eric Blake.
2006
2007 2011-06-09  Bruno Haible  <bruno@clisp.org>
2008
2009         thread: Fix confusion between NULL and 0.
2010         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
2011         Reported by Paul Eggert.
2012
2013 2011-06-09  Bruno Haible  <bruno@clisp.org>
2014
2015         spawn-pipe tests: Avoid test failure on HP-UX 11.
2016         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
2017         is closed.
2018
2019 2011-06-09  Bruno Haible  <bruno@clisp.org>
2020
2021         acl tests: Fix compilation error on HP-UX 11.
2022         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
2023
2024 2011-06-09  Bruno Haible  <bruno@clisp.org>
2025
2026         rmdir: Avoid test failure on HP-UX 10.20.
2027         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
2028         EEXIST.
2029
2030 2011-06-08  Eric Blake  <eblake@redhat.com>
2031
2032         perror: fix test on mingw
2033         * modules/perror-tests (Depends-on): Add dup2.
2034
2035         strerror_r-posix: fix on MacOS
2036         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
2037         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
2038         logic bug.
2039         * lib/strerror_r.c (strerror_r): Fix the bug.
2040         * lib/strerror.c (strerror): Likewise.
2041         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2042         problem.
2043         * doc/posix-functions/strerror.texi (strerror): Likewise.
2044         * doc/posix-functions/perror.texi (perror): Likewise.
2045         * tests/test-strerror.c (main): Enhance test.
2046         * tests/test-strerror_r.c (main): Likewise.
2047
2048 2011-06-08  Bruno Haible  <bruno@clisp.org>
2049
2050         gnulib-tool: Better isolation between different gnulib-tool invocations.
2051         * gnulib-tool: New option --witness-c-macro.
2052         (witness_c_macro): New variable.
2053         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2054         AM_CPPFLAGS define it as a C macro.
2055         (func_emit_tests_Makefile_am): Likewise.
2056         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2057         read it from there.
2058         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
2059         m4_define, not AC_DEFUN.
2060         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
2061         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
2062         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
2063         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
2064         s|...|...|, to substitute the values of the GNULIB_* module indicator
2065         variables.
2066         * modules/dirent (Makefile.am): Likewise.
2067         * modules/fcntl-h (Makefile.am): Likewise.
2068         * modules/iconv-h (Makefile.am): Likewise.
2069         * modules/langinfo (Makefile.am): Likewise.
2070         * modules/locale (Makefile.am): Likewise.
2071         * modules/math (Makefile.am): Likewise.
2072         * modules/netdb (Makefile.am): Likewise.
2073         * modules/poll-h (Makefile.am): Likewise.
2074         * modules/pty (Makefile.am): Likewise.
2075         * modules/search (Makefile.am): Likewise.
2076         * modules/signal (Makefile.am): Likewise.
2077         * modules/spawn (Makefile.am): Likewise.
2078         * modules/stdio (Makefile.am): Likewise.
2079         * modules/stdlib (Makefile.am): Likewise.
2080         * modules/string (Makefile.am): Likewise.
2081         * modules/sys_ioctl (Makefile.am): Likewise.
2082         * modules/sys_select (Makefile.am): Likewise.
2083         * modules/sys_socket (Makefile.am): Likewise.
2084         * modules/sys_stat (Makefile.am): Likewise.
2085         * modules/sys_times (Makefile.am): Likewise.
2086         * modules/sys_utsname (Makefile.am): Likewise.
2087         * modules/sys_wait (Makefile.am): Likewise.
2088         * modules/termios (Makefile.am): Likewise.
2089         * modules/time (Makefile.am): Likewise.
2090         * modules/unistd (Makefile.am): Likewise.
2091         * modules/wchar (Makefile.am): Likewise.
2092
2093 2011-06-08  Eric Blake  <eblake@redhat.com>
2094
2095         strerror: simplify replacement
2096         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2097         * modules/strerror (configure.ac): No prereqs needed here...
2098         * modules/strerror-override (configure.ac): ...but this needs it.
2099         (Files): Add file for needed prereq macro.
2100
2101 2011-06-08  Bruno Haible  <bruno@clisp.org>
2102
2103         strerror_r-posix: Tweaks.
2104         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2105         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2106         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2107         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2108         (gl_FUNC_STRERROR_R): ... to here.
2109         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2110
2111 2011-06-07  Eric Blake  <eblake@redhat.com>
2112
2113         perror: document fixed bugs
2114         * doc/posix-functions/perror.texi (perror): Document recent
2115         patches.
2116
2117 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2118
2119         stat-time: get_stat_birthtime failure is better-defined
2120         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2121         return a timestamp whose tv_sec and tv_nsec values are both -1.
2122         Previously, the spec said only that the tv_nsec value was negative.
2123         This upward-compatible change simplifies GNU tar a bit.
2124
2125 2011-06-07  Eric Blake  <eblake@redhat.com>
2126
2127         strerror_r-posix: work around cygwin 1.7.9
2128         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2129         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2130         bug without replacing strerror_r.
2131         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2132         strerror_r is buggy, but without requiring strerror_r compilation.
2133         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2134
2135         test-perror: relax test to ignore cygwin bug
2136         * tests/test-perror2.c (main): Relax test on requiring detection
2137         of stream errors, and use unbuffered stream.
2138         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2139         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2140         * doc/posix-functions/fputc.texi (fputc): Likewise.
2141         * doc/posix-functions/fputs.texi (fputs): Likewise.
2142         * doc/posix-functions/fputws.texi (fputws): Likewise.
2143         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2144         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2145         * doc/posix-functions/getopt.texi (getopt): Likewise.
2146         * doc/posix-functions/perror.texi (perror): Likewise.
2147         * doc/posix-functions/printf.texi (printf): Likewise.
2148         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2149         * doc/posix-functions/psignal.texi (psignal): Likewise.
2150         * doc/posix-functions/putc.texi (putc): Likewise.
2151         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2152         Likewise.
2153         * doc/posix-functions/putchar.texi (putchar): Likewise.
2154         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2155         Likewise.
2156         * doc/posix-functions/puts.texi (puts): Likewise.
2157         * doc/posix-functions/putwc.texi (putwc): Likewise.
2158         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2159         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2160         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2161         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2162         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2163         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2164         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2165         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2166
2167 2011-05-22  Bruno Haible  <bruno@clisp.org>
2168
2169         strerror: Move AC_LIBOBJ invocations to module description.
2170         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2171         gl_PREREQ_STRERROR invocations from here...
2172         * modules/strerror (configure.ac): ... to here.
2173
2174 2011-05-21  Bruno Haible  <bruno@clisp.org>
2175
2176         perror: Use common idiom.
2177         * modules/perror (configure.ac): Reorder statements.
2178
2179 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2180
2181         tests: fix usage message in 'mktempd_'
2182         * tests/init.sh (mktempd_): In the usage message, use literal
2183         'mktempd_', not '$ME' (which is even undefined), as the name of
2184         the subroutine.
2185
2186 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2187
2188         tests init: new function 'fatal_', for hard errors
2189         Before this patch, the only way offered by tests/init.sh to
2190         properly signal a hard error was the `framework_failure_'
2191         function.  But the error message issued by that function,
2192         as its name would suggest, refers to a set-up failure in the
2193         testsuite, while hard errors can obviously also be due to
2194         other reasons.  The best way to fix this inconsistency is to
2195         introduce a new function with a more general error message.
2196         * tests/init.sh (fatal_): New function.
2197
2198 2011-06-06  Eric Blake  <eblake@redhat.com>
2199
2200         canonicalize-lgpl: use common idiom
2201         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2202         over newer POSIX -Rf.
2203         Reported by Bruno Haible.
2204
2205         canonicalize-lgpl: work around AIX realpath bug
2206         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2207         * doc/posix-functions/realpath.texi (realpath): Document it.
2208         Reported by Bruno Haible.
2209
2210         strerror: work around FreeBSD bug
2211         * lib/strerror.c (strerror): Special case 0.
2212         Reported by Bruno Haible.
2213
2214         strerror-override: avoid bloating errno module
2215         * modules/errno (Files, configure.ac): Move replacement strings...
2216         * modules/strerror-override: ...to new module.
2217         * modules/strerror (Depends-on): Add strerror-override.
2218         * modules/strerror_r-posix (Depends-on): Likewise.
2219         * MODULES.html.sh: Document new module.
2220         Reported by Bruno Haible.
2221
2222 2011-06-06  Bruno Haible  <bruno@clisp.org>
2223
2224         spawn-pipe tests: Rename program.
2225         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2226         * tests/test-spawn-pipe-child.c: Update comment.
2227         * tests/test-spawn-pipe.sh: Update.
2228         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2229
2230         spawn-pipe tests: Link the child program only against libc.
2231         * tests/test-spawn-pipe-child.c: New file, extracted from
2232         tests/test-spawn-pipe.c.
2233         (main): Expect only one argument.
2234         (is_open): New function, copied from tests/test-pipe.c.
2235         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2236         (child_main): Remove function.
2237         (test_pipe): Pass only one argument to the child program.
2238         (main): Remove child process code. Expect the child program's name as
2239         first argument.
2240         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2241         argument.
2242         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2243         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2244         test-spawn-pipe-child against no libraries.
2245
2246 2011-06-06  Bruno Haible  <bruno@clisp.org>
2247
2248         careadlinkat: Avoid mismatch between ssize_t and int.
2249         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2250         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2251
2252 2011-06-06  Jim Meyering  <meyering@redhat.com>
2253
2254         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2255         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2256         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2257
2258 2011-06-05  Bruno Haible  <bruno@clisp.org>
2259
2260         ansi-c++-opt: Interoperability with libtool.
2261         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2262         set the variable to "no", not to ":".
2263         * NEWS: Mention the change.
2264
2265 2011-06-05  Bruno Haible  <bruno@clisp.org>
2266
2267         acl: Fix test failure on AIX 7.
2268         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2269         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2270
2271 2011-06-05  Bruno Haible  <bruno@clisp.org>
2272
2273         pipe-filter-ii: Fix test failure on AIX and IRIX.
2274         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2275         with EAGAIN, retry with a smaller buffer size.
2276
2277 2011-06-05  Bruno Haible  <bruno@clisp.org>
2278
2279         localename: Fix link dependencies.
2280         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2281         * modules/localename-tests (Makefile.am): Link test-localename with
2282         $(LIBTHREAD).
2283
2284 2011-06-05  Bruno Haible  <bruno@clisp.org>
2285
2286         error: Avoid gcc warning.
2287         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2288
2289 2011-06-05  Bruno Haible  <bruno@clisp.org>
2290
2291         unsetenv: Avoid gcc warning.
2292         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2293
2294 2011-06-05  Bruno Haible  <bruno@clisp.org>
2295
2296         setenv: Avoid gcc warning.
2297         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2298
2299 2011-06-05  Bruno Haible  <bruno@clisp.org>
2300
2301         sys_select: Ensure memset is declared also on AIX 7.
2302         * lib/sys_select.in.h: Include <string.h> also on AIX.
2303         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2304         self-contained also on AIX 7.1.
2305
2306 2011-06-04  Jim Meyering  <meyering@redhat.com>
2307
2308         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2309         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2310         function name, "error".
2311         (_gl_translatable_diag_func_re): New configurable variable.
2312
2313 2011-06-04  Bruno Haible  <bruno@clisp.org>
2314
2315         getopt: Avoid gcc warning.
2316         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2317
2318 2011-06-04  Bruno Haible  <bruno@clisp.org>
2319
2320         strerror_r: Fix comments.
2321         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2322         commit.
2323
2324 2011-06-04  Bruno Haible  <bruno@clisp.org>
2325
2326         perror: Fix compilation error.
2327         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2328         Undefine fprintf, not sprintf.
2329         * modules/perror (Depends-on): Remove intprops, verify.
2330
2331 2011-06-04  Bruno Haible  <bruno@clisp.org>
2332
2333         setlocale: Enable replacement on Cygwin 1.5.
2334         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2335         Cygwin 1.5.x.
2336         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2337         LC_CTYPE category also exists on Cygwin 1.5.x.
2338
2339 2011-06-04  Bruno Haible  <bruno@clisp.org>
2340
2341         strerror-override: Don't disable symbol renamings.
2342         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2343         * lib/strerror-override.c: Include config.h.
2344         (strerror_override): Don't undefine.
2345
2346 2011-06-03  Bruno Haible  <bruno@clisp.org>
2347
2348         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2349         * lib/localename.h: Update copyright header.
2350         * lib/localename.c: Likewise.
2351         * lib/relocatable.h: Likewise.
2352         * lib/relocatable.c: Likewise.
2353
2354 2011-06-02  Bruno Haible  <bruno@clisp.org>
2355
2356         doc: Fix a module name.
2357         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2358
2359 2011-06-02  Bruno Haible  <bruno@clisp.org>
2360
2361         pipe2: Remove dependency on 'nonblocking' module.
2362         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2363         O_NONBLOCK is defined by gnulib.
2364         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2365         is zero.
2366         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2367         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2368         defined by gnulib.
2369         (get_nonblocking_flag): New function.
2370         (main): Test O_NONBLOCK flag only if it is nonzero.
2371         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2372
2373 2011-06-03  Jim Meyering  <meyering@redhat.com>
2374
2375         maint: three new prohibit-header-without-use rules
2376         Prohibit use of cloexec.h, posixver.h, same.h without use.
2377         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2378         (sc_prohibit_posixver_without_use): Likewise.
2379         (sc_prohibit_same_without_use): Likewise.
2380
2381 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2382
2383         allocator: 'die' routine is now given requested size
2384         * lib/allocator.h (struct allocator.die): New size arg.
2385         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2386         If the actual problem is an ssize_t limitation, not a size_t or
2387         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2388
2389 2011-06-01  Eric Blake  <eblake@redhat.com>
2390
2391         strerror: drop strerror_r dependency
2392         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2393         * lib/strerror-override.c (strerror_override): ...to new file.
2394         * lib/strerror-override.h: Add prototype.
2395         * lib/strerror-impl.h: Delete.
2396         * lib/strerror.c (strerror): New implementation.
2397         * modules/errno (Files): Add new files.
2398         (configure.ac): Compile new file as appropriate.
2399         * modules/strerror (Files): Drop unused file.
2400         (Depends-on): Drop strerror_r-posix.
2401         * MODULES.html.sh: Document strerror_r-posix.
2402         Requested by Sam Steingold.
2403
2404         perror: call strerror_r directly
2405         * modules/perror (Files): Drop strerror-impl.h.
2406         * lib/perror.c (perror): Use our own stack buffer, rather than
2407         calling a wrapper that uses static storage.
2408         * doc/posix-functions/perror.texi (perror): Document a limitation
2409         of our replacement.
2410
2411         strerror_r: fix includes for FreeBSD
2412         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2413         since we use abort on some platforms.
2414         Reported by Matthias Bolte.
2415
2416 2011-05-31  Bruno Haible  <bruno@clisp.org>
2417
2418         Fix link errors in tests: openat-die uses gettext-h.
2419         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2420         against $(LIBINTL).
2421         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2422         against $(LIBINTL).
2423         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2424         $(LIBINTL).
2425         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2426         against $(LIBINTL).
2427         * modules/linkat-tests (Makefile.am): Link test-linkat against
2428         $(LIBINTL).
2429         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2430         $(LIBINTL).
2431         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2432         against $(LIBINTL).
2433         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2434         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2435         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2436         $(LIBINTL).
2437         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2438         $(LIBINTL).
2439         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2440         $(LIBINTL).
2441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2442
2443 2011-05-31  Bruno Haible  <bruno@clisp.org>
2444
2445         Fix link errors in tests: wait-process uses gettext-h.
2446         * modules/nonblocking-pipe-tests (Makefile.am): Set
2447         test_nonblocking_pipe_main_LDADD.
2448         * modules/nonblocking-socket-tests (Makefile.am): Link
2449         test-nonblocking-socket-main against $(LIBINTL).
2450         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2451
2452 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2453
2454         assert-h: work around 'verify' incompatibility
2455         * lib/verify.h: Use @...@ directives, not ifdef.
2456         * modules/assert-h (assert.h): Implement the directives.
2457         (assert.h): Substitute the symbol-prefix more consistently.
2458
2459 2011-05-29  Jim Meyering  <meyering@redhat.com>
2460
2461         trim: remove three superfluous assignments
2462         * lib/trim.c (trim2): Remove three superfluous assignments
2463         and correct brace positioning.
2464
2465 2011-05-29  Bruno Haible  <bruno@clisp.org>
2466
2467         wctype-h: Avoid namespace pollution on Solaris 2.6.
2468         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2469         identifiers.
2470         * doc/posix-headers/wctype.texi: Mention the problem.
2471         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2472
2473 2011-05-28  Jim Meyering  <meyering@redhat.com>
2474
2475         parse-datetime.y: accommodate -Wstrict-overflow
2476         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2477         placate -Wstrict-overflow.
2478
2479         trim: avoid a warning from -O2 -Wstrict-overflow
2480         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2481
2482 2011-05-29  Bruno Haible  <bruno@clisp.org>
2483
2484         gnulib-tool: Fix bug in yesterday's commit.
2485         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2486         twice.
2487
2488 2011-05-29  Bruno Haible  <bruno@clisp.org>
2489
2490         Allow multiple gnulib generated include files to be combined.
2491         * gnulib-tool (func_compute_include_guard_prefix): New function.
2492         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2493         ${gl_include_guard_prefix} references.
2494         (func_import, func_create_testdir): Invoke
2495         func_compute_include_guard_prefix.
2496         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2497         * lib/ctype.in.h: Likewise.
2498         * lib/dirent.in.h: Likewise.
2499         * lib/errno.in.h: Likewise.
2500         * lib/fcntl.in.h: Likewise.
2501         * lib/float.in.h: Likewise.
2502         * lib/getopt.in.h: Likewise.
2503         * lib/iconv.in.h: Likewise.
2504         * lib/langinfo.in.h: Likewise.
2505         * lib/locale.in.h: Likewise.
2506         * lib/math.in.h: Likewise.
2507         * lib/netdb.in.h: Likewise.
2508         * lib/netinet_in.in.h: Likewise.
2509         * lib/poll.in.h: Likewise.
2510         * lib/pthread.in.h: Likewise.
2511         * lib/pty.in.h: Likewise.
2512         * lib/sched.in.h: Likewise.
2513         * lib/se-selinux.in.h: Likewise.
2514         * lib/search.in.h: Likewise.
2515         * lib/signal.in.h: Likewise.
2516         * lib/spawn.in.h: Likewise.
2517         * lib/stdarg.in.h: Likewise.
2518         * lib/stddef.in.h: Likewise.
2519         * lib/stdint.in.h: Likewise.
2520         * lib/stdio.in.h: Likewise.
2521         * lib/stdlib.in.h: Likewise.
2522         * lib/string.in.h: Likewise.
2523         * lib/strings.in.h: Likewise.
2524         * lib/sys_file.in.h: Likewise.
2525         * lib/sys_ioctl.in.h: Likewise.
2526         * lib/sys_select.in.h: Likewise.
2527         * lib/sys_socket.in.h: Likewise.
2528         * lib/sys_stat.in.h: Likewise.
2529         * lib/sys_time.in.h: Likewise.
2530         * lib/sys_times.in.h: Likewise.
2531         * lib/sys_uio.in.h: Likewise.
2532         * lib/sys_utsname.in.h: Likewise.
2533         * lib/sys_wait.in.h: Likewise.
2534         * lib/sysexits.in.h: Likewise.
2535         * lib/termios.in.h: Likewise.
2536         * lib/time.in.h: Likewise.
2537         * lib/unistd.in.h: Likewise.
2538         * lib/wchar.in.h: Likewise.
2539         * lib/wctype.in.h: Likewise.
2540         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2541         * modules/ctype (Makefile.am): Likewise.
2542         * modules/dirent (Makefile.am): Likewise.
2543         * modules/errno (Makefile.am): Likewise.
2544         * modules/fcntl-h (Makefile.am): Likewise.
2545         * modules/float (Makefile.am): Likewise.
2546         * modules/getopt-posix (Makefile.am): Likewise.
2547         * modules/iconv-h (Makefile.am): Likewise.
2548         * modules/langinfo (Makefile.am): Likewise.
2549         * modules/locale (Makefile.am): Likewise.
2550         * modules/math (Makefile.am): Likewise.
2551         * modules/netdb (Makefile.am): Likewise.
2552         * modules/netinet_in (Makefile.am): Likewise.
2553         * modules/poll-h (Makefile.am): Likewise.
2554         * modules/pthread (Makefile.am): Likewise.
2555         * modules/pty (Makefile.am): Likewise.
2556         * modules/sched (Makefile.am): Likewise.
2557         * modules/search (Makefile.am): Likewise.
2558         * modules/selinux-h (Makefile.am): Likewise.
2559         * modules/signal (Makefile.am): Likewise.
2560         * modules/spawn (Makefile.am): Likewise.
2561         * modules/stdarg (Makefile.am): Likewise.
2562         * modules/stddef (Makefile.am): Likewise.
2563         * modules/stdint (Makefile.am): Likewise.
2564         * modules/stdio (Makefile.am): Likewise.
2565         * modules/stdlib (Makefile.am): Likewise.
2566         * modules/string (Makefile.am): Likewise.
2567         * modules/strings (Makefile.am): Likewise.
2568         * modules/sys_file (Makefile.am): Likewise.
2569         * modules/sys_ioctl (Makefile.am): Likewise.
2570         * modules/sys_select (Makefile.am): Likewise.
2571         * modules/sys_socket (Makefile.am): Likewise.
2572         * modules/sys_stat (Makefile.am): Likewise.
2573         * modules/sys_time (Makefile.am): Likewise.
2574         * modules/sys_times (Makefile.am): Likewise.
2575         * modules/sys_uio (Makefile.am): Likewise.
2576         * modules/sys_utsname (Makefile.am): Likewise.
2577         * modules/sys_wait (Makefile.am): Likewise.
2578         * modules/sysexits (Makefile.am): Likewise.
2579         * modules/termios (Makefile.am): Likewise.
2580         * modules/time (Makefile.am): Likewise.
2581         * modules/unistd (Makefile.am): Likewise.
2582         * modules/wchar (Makefile.am): Likewise.
2583         * modules/wctype-h (Makefile.am): Likewise.
2584         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2585
2586 2011-05-29  Bruno Haible  <bruno@clisp.org>
2587
2588         assert-h: Allow multiple gnulib generated replacements to coexist.
2589         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2590
2591 2011-05-29  Bruno Haible  <bruno@clisp.org>
2592
2593         argp: Allow coexistence with strerror_r-posix module.
2594         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2595         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2596         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2597         not the glibc signature.
2598
2599 2011-05-28  Bruno Haible  <bruno@clisp.org>
2600
2601         gnulib-tool: Alternative structure of testdirs, similar to --import.
2602         * gnulib-tool: New option --single-configure.
2603         (func_usage): Document it.
2604         (single_configure): New variable.
2605         (func_modules_transitive_closure_separately,
2606         func_modules_transitive_closure_separately,
2607         func_determine_use_libtests, func_modules_add_dummy_separately,
2608         func_modules_to_filelist_separately): New functions, extracted from
2609         func_import.
2610         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2611         (func_import): Use the new functions.
2612         (func_create_testdir): Set final_modules. Handle $single_configure =
2613         true case.
2614
2615 2011-05-28  Bruno Haible  <bruno@clisp.org>
2616
2617         getloadavg: Remove an unreliable safety check.
2618         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2619         getloadavg.c is in place.
2620         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2621         Reported by Sam Steingold <sds@gnu.org>.
2622
2623 2011-05-28  Bruno Haible  <bruno@clisp.org>
2624
2625         doc: Cleanup yet another file produced by texinfo.tex.
2626         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2627
2628 2011-05-28  Bruno Haible  <bruno@clisp.org>
2629
2630         Finish the conditional dependencies mechanism.
2631         * gnulib-tool: New option --no-conditional-dependencies.
2632         (func_usage): Document it. Don't mark --conditional-dependencies as
2633         experimental.
2634         (cond_dependencies): The possible values can now be true, false, empty.
2635         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2636         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2637         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2638
2639 2011-05-28  Bruno Haible  <bruno@clisp.org>
2640
2641         doc: Use a recent texinfo.tex.
2642         * doc/Makefile (tex_opts): New variable.
2643         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2644
2645 2011-05-28  Jim Meyering  <meyering@redhat.com>
2646
2647         intprops.h: adjust comment to match code change
2648         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2649         only once, it *may* have side effects.  Also fix an unrelated typo.
2650         (_GL_INT_SIGNED): Likewise.
2651
2652 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2653
2654         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2655
2656 2011-05-26  Bruno Haible  <bruno@clisp.org>
2657
2658         mbsrchr: Avoid collision with system function on Interix.
2659         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2660         Reported by Markus Duft <mduft@gentoo.org>.
2661
2662 2011-05-15  James Youngman  <jay@gnu.org>
2663
2664         getopt: for ambiguous options, enumerate the possibilities.
2665         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2666         the ambiguous options when an ambiguous prefix is given. This was
2667         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2668         glibc change was
2669         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2670
2671 2011-05-25  Eric Blake  <eblake@redhat.com>
2672
2673         getcwd: work around mingw bug
2674         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2675         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2676         Reported by Matthias Bolte.
2677
2678 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2679
2680         test-intprops: disable -Wtype-limits diagnostics
2681         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2682         diagnostics.  Otherwise, the integer overflow macros generate many
2683         diagnostics.  Reported by Jim Meyering in
2684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2685
2686         intprops: shorten, to pacify gcc -Woverlength-strings
2687         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2688         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2689         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2690         likely to run afoul of C compiler limits for string constant lengths.
2691         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2692
2693 2011-05-24  Eric Blake  <eblake@redhat.com>
2694
2695         docs: document recently fixed glibc printf bug
2696         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2697         * doc/posix-functions/printf.texi (printf): Likewise.
2698         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2699         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2700
2701         closein-tests: convert to init.sh
2702         * modules/closein-tests (Files): Add init.sh
2703         * tests/test-closein.sh Use it.
2704
2705         yesno-tests: convert to init.sh
2706         * modules/yesno-tests (Files): Add init.sh.
2707         * tests/test-yesno.sh: Use it.
2708
2709         atexit-tests: ensure reliable exit status
2710         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2711         Reported by Bruno Haible.
2712
2713 2011-05-24  Bruno Haible  <bruno@clisp.org>
2714
2715         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2716         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2717         gl_PREREQ_STRERROR_R invocations from here...
2718         * modules/strerror_r-posix (configure.ac): ... to here.
2719
2720 2011-05-24  Eric Blake  <eblake@redhat.com>
2721
2722         strerror_r: fix missing header
2723         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2724
2725         strerror_r: fix AIX test failures
2726         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2727         ERANGE failure.
2728
2729         strerror_r: fix Solaris test failures
2730         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2731         failures.
2732         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2733
2734         strerror_r: enforce POSIX recommendations
2735         * lib/strerror_r.c (safe_copy): New helper method.
2736         (strerror_r): Guarantee a non-empty string.
2737         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2738         recent POSIX rulings and to match our strerror guarantees.
2739         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2740
2741 2011-05-24  Jim Meyering  <meyering@redhat.com>
2742
2743         test-perror2.c: avoid warning about unused variable
2744         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2745
2746 2011-05-24  Eric Blake  <eblake@redhat.com>
2747
2748         perror: avoid spurious test failure on HP-UX
2749         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2750
2751         tests: fix logic bug in init.sh
2752         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2753         shell.
2754
2755 2011-05-24  Jim Meyering  <meyering@redhat.com>
2756
2757         utimensat: do not reference an out-of-scope buffer
2758         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
2759         declared in an inner scope, yet "times" would be dereferenced outside
2760         the scope in which "ts" was valid.
2761         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
2762         of ts[2] "out/up", so that the use of aliased "times" (via
2763         "times = ts;") does not end up referencing an out-of-scope "ts"
2764
2765         opendir-safer.c: don't clobber errno; don't close negative FD
2766         * lib/opendir-safer.c (opendir_safer):
2767         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
2768         file descriptor, and more importantly, don't clobber the
2769         offending errno value with EINVAL.  Before, upon failure
2770         of dup_safer, we would pass the negative file descriptor to
2771         fdopendir, which would clobber errno.
2772
2773 2011-05-23  Bruno Haible  <bruno@clisp.org>
2774
2775         idcache: Fix module description.
2776         * modules/idcache (Include): Set to "idcache.h".
2777
2778 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2779
2780         gnulib-tool: fix portability problem with MacOS sed
2781         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
2782         before the "}".  Problem reported by Leo in
2783         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
2784         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
2785         sed_extract_condition1, sed_extract_condition2.
2786
2787 2011-05-23  Bruno Haible  <bruno@clisp.org>
2788
2789         hash: Simplify autoconf macro.
2790         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
2791
2792 2011-05-23  Bruno Haible  <bruno@clisp.org>
2793
2794         getugroups: Fix module description.
2795         * modules/getugroups (Include): Set to "getugroups.h".
2796
2797 2011-05-23  Bruno Haible  <bruno@clisp.org>
2798
2799         linkat: Simplify autoconf macro.
2800         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
2801
2802 2011-05-23  Bruno Haible  <bruno@clisp.org>
2803             Eric Blake  <eblake@redhat.com>
2804
2805         linkat, renameat: Update dependencies.
2806         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
2807         * modules/linkat (Depends-on): Likewise. Remove also readlink,
2808         symlinkat.
2809
2810 2011-05-23  Jim Meyering  <meyering@redhat.com>
2811
2812         maint.mk: more tight_scope improvements
2813         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
2814         (_gl_TS_headers): Define only in if-0'd block.
2815         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
2816         sometimes we must *not* use it.  Adjust uses accordingly.
2817         (sc_tight_scope): Use much simpler grep-based test to determine
2818         whether we skip this rule.
2819
2820         maint.mk: generalize/improve the tight-scope rule
2821         * top/maint.mk: Emit a warning when the test is skipped.
2822         (_gl_TS_dir): Add $(srcdir)/ prefix.
2823         (_gl_TS_function_match): Simplify, rather than trying
2824         to enumerate common types.  Otherwise, it would fail to match an
2825         "extern unsigned char const *" declaration in idutils.
2826         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
2827         a way to support use of that type of macro.
2828         (_gl_TS_var_match): Simplify regexp.
2829         (_gl_TS_obj_files): New configurable variable.
2830         (_gl_TS_headers): Likewise.
2831
2832 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2833
2834         verify: fix bug when gnulib <assert.h> is also included
2835         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
2836         is defined, not if _GL_STATIC_ASSERT_H is not defined.
2837         Perhaps there's a better way, but this fixes the immediate problem.
2838         Problem reported by Bruno Haible in
2839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
2840
2841 2011-05-22  Bruno Haible  <bruno@clisp.org>
2842
2843         xgetcwd: Simplify autoconf macro.
2844         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
2845
2846 2011-05-22  Bruno Haible  <bruno@clisp.org>
2847
2848         New module 'mktime-internal'.
2849         * modules/mktime-internal: New file.
2850         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
2851         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
2852         mktime_internal as a C macro if libc has __mktime_internal.
2853         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
2854         conditions.
2855         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
2856
2857 2011-05-22  Bruno Haible  <bruno@clisp.org>
2858
2859         timegm: Correct mktime replacement statements.
2860         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
2861         defining mktime as a C macro. This completes a 2009-07-28 commit.
2862
2863 2011-05-22  Bruno Haible  <bruno@clisp.org>
2864
2865         timegm: Simplify autoconf macro.
2866         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
2867
2868 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2869
2870         clock-time: change to LGPLv2+.
2871         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
2872         BSD-like but we have no mark for that; this is good enough for now.
2873
2874 2011-05-21  Bruno Haible  <bruno@clisp.org>
2875
2876         strerror_r: Fix comments.
2877         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
2878
2879 2011-05-21  Bruno Haible  <bruno@clisp.org>
2880
2881         relocatable-prog-wrapper: Fix possible link error.
2882         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
2883         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
2884         (gl_FUNC_SETENV): ... to here.
2885         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
2886         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
2887
2888 2011-05-21  Bruno Haible  <bruno@clisp.org>
2889
2890         relocatable-prog-wrapper: Assume strerror() exists.
2891         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
2892         m4/strerror.m4.
2893         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
2894         * lib/relocwrapper.c: Remove mention of strerror module.
2895         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
2896         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
2897         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
2898         C macro.
2899
2900 2011-05-21  Bruno Haible  <bruno@clisp.org>
2901
2902         select: Simplify replacement idiom.
2903         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
2904         Win32 platforms.
2905         * lib/sys_select.in.h (select): Simplify accordingly.
2906         * modules/select (Depends-on): Likewise.
2907
2908 2011-05-21  Bruno Haible  <bruno@clisp.org>
2909
2910         mkdir-p: Simplify autoconf macro.
2911         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
2912         gl_FUNC_LCHOWN.
2913
2914 2011-05-21  Eric Blake  <eblake@redhat.com>
2915
2916         strerror_r: avoid clobbering strerror on cygwin
2917         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
2918         fall back instead to sys_errlist.
2919         * modules/strerror (configure.ac): Add witness.
2920         * tests/test-strerror_r.c (main): Enhance test.
2921         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2922         * tests/test-perror2.c (main): Free memory before exit.
2923
2924 2011-05-21  Bruno Haible  <bruno@clisp.org>
2925
2926         mkdtemp: Use gnulib naming conventions.
2927         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
2928         * modules/mkdtemp (configure.ac): Update.
2929
2930 2011-05-20  Eric Blake  <eblake@redhat.com>
2931
2932         strerror_r: avoid corrupting errno on Solaris
2933         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
2934         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2935
2936         strerror_r: avoid compiler warning
2937         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
2938
2939         strerror_r: simplify AIX code
2940         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
2941
2942         test-perror: avoid spurious failure on FreeBSD
2943         * modules/perror-tests (Depends-on): Add strerror, now that
2944         strerror_r no longer pulls it in.
2945
2946 2011-05-20  Bruno Haible  <bruno@clisp.org>
2947
2948         strerror_r-posix: Remove unused dependencies.
2949         * modules/strerror_r-posix (Depends-on): Remove strerror.
2950         Reported by Eric Blake.
2951
2952 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2953
2954         intprops: remove assumption about A|B representation
2955         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2956         is a valid integer if both A and B are.  Although this is true for
2957         all known practical hosts, the C standard doesn't guarantee it,
2958         and the code need not assume it.  Also, this change may work around
2959         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2961
2962 2011-05-20  Eric Blake  <eblake@redhat.com>
2963
2964         perror: work around FreeBSD bug
2965         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2966         is broken.  Move AC_LIBOBJ...
2967         * modules/perror (configure.ac): Here.
2968         * doc/posix-functions/perror.texi (perror): Document this.
2969         * tests/test-perror2.c (main): Enhance test.
2970
2971         test-perror: check for strerror interactions
2972         * tests/macros.h (STREQ): Add macro.
2973         * modules/perror-tests (Files): Add second test.
2974         * tests/test-perror2.c (main): New file.
2975         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2976
2977         test-perror: rewrite to use init script
2978         * modules/perror-tests (Files): Add init.sh.
2979         * tests/test-perror.sh: Use temporary directory.
2980
2981 2011-05-20  Jim Meyering  <meyering@redhat.com>
2982
2983         maint: replace misused "a" with "an"
2984         * doc/intprops.texi: "a integer"
2985         * doc/regex.texi: "a explanation"
2986         * lib/alignof.h: "a object"
2987         * lib/argmatch.h: "a explanation"
2988         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2989         * lib/stdint.in.h: "a integer"
2990         * lib/userspec.c: "a owner"
2991         * doc/gnulib.texi: Fix "a idea", and reword.
2992
2993 2011-05-19  Jim Meyering  <meyering@redhat.com>
2994
2995         maint: correct misuse of "a" and "an"
2996         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
2997         * lib/argp-help.c: "an docum...": s/an/a/
2998         * lib/argp-parse.c: "An vector": s/An/A/
2999         * lib/execute.c: "an native": s/an/a/
3000         * lib/spawn-pipe.c: Likewise.
3001         * lib/gc.h: "an Gc_rc": s/an/a/
3002         * lib/unigbrk.in.h: "an grapheme": s/an/a/
3003         * lib/fts.c: "an stat.st_dev": s/an/a/
3004
3005 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3006
3007         intprops-tests: work around HP-UX 11.23 cc bug with constants
3008         * tests/test-intprops.c (VERIFY): New macro.
3009         (main): Use it, instead of verify, to work around the compiler bug; see
3010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3011
3012         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
3013         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
3014         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
3015         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
3016         (_GL_REMAINDER_OVERFLOW): Use it.
3017
3018         intprops-tests: revert unsigned part of previous change
3019         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
3020         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
3021         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
3022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
3023
3024 2011-05-19  Bruno Haible  <bruno@clisp.org>
3025
3026         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
3027         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
3028         strerror_r() returned without filling the buffer.
3029         Reported by Eric Blake.
3030
3031 2011-05-19  Eric Blake  <eblake@redhat.com>
3032
3033         strerror_r: guarantee unchanged errno
3034         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
3035         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
3036         failure.
3037         * tests/test-strerror_r.c (main): Enhance test.
3038
3039 2011-05-19  Bruno Haible  <bruno@clisp.org>
3040
3041         strerror_r: Reorder #if blocks.
3042         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
3043         for consistency with the previous commit.
3044
3045 2011-05-19  Bruno Haible  <bruno@clisp.org>
3046
3047         perror: Avoid clobbering the strerror buffer when possible.
3048         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
3049         * lib/strerror.c: Include it.
3050         * modules/strerror (Files): Add lib/strerror-impl.h.
3051         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3052         (my_strerror): New function, defined through lib/strerror-impl.h.
3053         (perror): Use it instead of strerror.
3054         * modules/perror (Files): Add lib/strerror-impl.h.
3055         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3056
3057 2011-05-19  Eric Blake  <eblake@redhat.com>
3058
3059         strerror_r: fix on newer cygwin
3060         * lib/strerror_r.c (strerror_r): Cygwin now has
3061         __xpg_strerror_r, use it.
3062
3063 2011-05-19  Bruno Haible  <bruno@clisp.org>
3064
3065         strerror_r: Avoid clobbering the strerror buffer when possible.
3066         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
3067         (sys_nerr, sys_errlist): New declarations.
3068         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
3069         HP-UX, native Win32, IRIX, and 32-bit Solaris.
3070         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
3071
3072 2011-05-19  Bruno Haible  <bruno@clisp.org>
3073
3074         strerror_r: Fix test failure on mingw.
3075         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
3076         EXTEND_STRERROR_R.
3077         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
3078         macros from errno.in.h instead.
3079
3080 2011-05-19  Eric Blake  <eblake@redhat.com>
3081
3082         strerror: relax test for Solaris
3083         * tests/test-strerror.c (main): Permit Solaris behavior.
3084         * tests/test-strerror_r.c (main): Likewise.
3085
3086         strerror: enforce POSIX ruling on strerror(0)
3087         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3088         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3089         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3090         * doc/posix-functions/strerror.texi (strerror): Document it.
3091         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3092         * tests/test-strerror.c (main): Strengthen test.
3093         * tests/test-strerror_r.c (main): Likewise.
3094
3095 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3096
3097         intprop-tests: port to older and more-pedantic compilers
3098         * modules/intprops-tests (Files): Add tests/macros.h.
3099         * tests/test-intprops.c: Include macros.h.
3100         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3101         it's no longer documented to expand to an integer constant expression.
3102         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3103         argument is floating point, as it's no longer documented to expand
3104         to an integer constant expression in that case.
3105         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3106         compiler bugs reported by Bruno Haible.  See
3107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3108         (U0, U1): New constants, to work around the same bugs.  Also,
3109         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3110
3111         intprops: work around C compiler bugs
3112         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3113         bug in Sun C 5.11 2010/08/13 and other compilers; see
3114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3115
3116         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3117         * doc/intprops.texi (Integer Type Determination): Fix
3118         documentation for TYPE_IS_INTEGER: it returns an constant
3119         expression, not an integer constant expression.  Fix doc for
3120         TYPE_SIGNED: it returns an integer constant expression only if its
3121         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3122         hardly worth documented that way....)
3123
3124 2011-05-18  Bruno Haible  <bruno@clisp.org>
3125
3126         strerror_r: Avoid clobbering the strerror buffer when possible.
3127         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3128         Handle gnulib defined errno values here. When strerror() returns NULL
3129         or an empty string, return EINVAL.
3130         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3131         gnulib defined errno values here.
3132         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3133
3134 2011-05-18  Eric Blake  <eblake@redhat.com>
3135
3136         fnmatch: avoid compiler warning
3137         * lib/fnmatch_loop.c (FCT): Use correct type.
3138         Reported by Matthias Bolte.
3139
3140 2011-05-13  Jim Meyering  <meyering@redhat.com>
3141
3142         maint.mk: three new prohibit_<HDR>_without_use rules
3143         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3144         (sc_prohibit_stdio-safer_without_use): Likewise.
3145         (sc_prohibit_xfreopen_without_use): Likewise.
3146
3147 2011-05-17  Jim Meyering  <meyering@redhat.com>
3148
3149         announce-gen: fail if the NEWS delta is empty
3150         If there's nothing noteworthy in NEWS, then either you forgot
3151         or you shouldn't be releasing.
3152         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3153
3154 2011-05-17  Pádraig Brady <P@draigBrady.com>
3155
3156         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3157         reserved symbols starting with double underscore from the check.
3158
3159 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3160
3161         intprops: add doc
3162         * doc/intprops.texi: New file, documenting intprops.
3163         * doc/gnulib.texi (Particular Modules): Include it.
3164
3165         verify: add doc to gnulib manual and fix example
3166         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3167         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3168         (Compile-time Assertions): Fix example so it can't overflow.
3169
3170 2011-05-17  Jim Meyering  <meyering@redhat.com>
3171
3172         warnings.m4: don't usurp save_CPPFLAGS variable name
3173         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3174
3175         doc: fix typo
3176         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3177
3178 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3179             Bruno Haible  <bruno@clisp.org>
3180
3181         doc: Tweak recent change.
3182         * README (Portability guidelines): Tweak new text.
3183         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3184         Interix 6.1.
3185
3186 2011-05-16  Eric Blake  <eblake@redhat.com>
3187
3188         inttypes: avoid autoconf warning
3189         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3190         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3191
3192 2011-05-16  Sam Steingold <sds@gnu.org>
3193         and Eric Blake  <eblake@redhat.com>
3194
3195         vc-list-files: accept multiple directory operands
3196         * build-aux/vc-list-files: Iterate over all remaining operands.
3197
3198 2011-05-16  Bruno Haible  <bruno@clisp.org>
3199
3200         Fix confusion regarding deprecated modules.
3201         * modules/calloc (Status, Notice): Mark module as deprecated, not
3202         obsolete.
3203         * modules/fnmatch-posix (Status, Notice): Likewise.
3204         * modules/getdate (Status, Notice): Likewise.
3205         * modules/getopt (Status, Notice): Likewise.
3206         * modules/malloc (Status, Notice): Likewise.
3207         * modules/pipe (Status, Notice): Likewise.
3208         * modules/realloc (Status, Notice): Likewise.
3209         * modules/rename-dest-slash (Status, Notice): Likewise.
3210         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3211         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3212         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3213         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3214         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3215
3216 2011-05-16  Bruno Haible  <bruno@clisp.org>
3217
3218         doc: List the target platforms.
3219         * doc/gnulib-intro.texi (Target Platforms): New section.
3220         * doc/gnulib.texi (Introduction): Update menu.
3221         * README (Portability guidelines): Refer to the new section. Update
3222         statement about oldest supported environment. Remove rationale why
3223         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3224         unportable C89 function.
3225         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3226         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3227
3228 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3229
3230         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3231
3232 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3233
3234         intprops-tests: new module
3235         * modules/intprops-tests, tests/test-intprops.c: New files.
3236
3237         intprops: add safe, portable integer overflow checking
3238         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3239         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3240         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3241         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3242         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3243         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3244         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3245         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3246         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3247         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3248         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3249
3250 2011-05-12  James Youngman  <jay@gnu.org>
3251
3252         Add a test for glibc's Bugzilla bug #12378.
3253         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3254         doesn't allow the literal matching of a lone "[" (which is
3255         required by POSIX).
3256         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3257
3258 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3259
3260         Sync glibc change fixing Bugzilla bug #12378.
3261         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3262         beginning and fall back to matching as normal character if the
3263         string ends before the matching ']' is found.  This is what POSIX
3264         requires.
3265
3266 2011-05-13  Eric Blake  <eblake@redhat.com>
3267
3268         getcwd-lgpl: relax test for FreeBSD
3269         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3270         issue.
3271         * tests/test-getcwd-lgpl.c (main): Relax test.
3272         Reported by Matthias Bolte.
3273
3274 2011-05-11  Eric Blake  <eblake@redhat.com>
3275
3276         test-fflush: silence compiler warning
3277         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3278
3279 2011-05-11  Bruno Haible  <bruno@clisp.org>
3280
3281         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3282         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3283         * modules/canonicalize (Depends-on): Add 'nocrash'.
3284         * modules/canonicalize-lgpl (Depends-on): Likewise.
3285         * doc/posix-functions/realpath.texi: Update platforms list.
3286         Reported by Ryan Schmidt <ryandesign@macports.org>.
3287
3288 2011-05-11  Bruno Haible  <bruno@clisp.org>
3289
3290         group-member: Declare function in <unistd.h>.
3291         * lib/unistd.in.h (group_member): New declaration.
3292         * lib/group-member.h: Remove file.
3293         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3294         * tests/test-unistd-c++.cc: Check signature of group_member.
3295         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3296         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3297         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3298         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3299         HAVE_GROUP_MEMBER.
3300         * modules/group-member (Files): Remove lib/group-member.h.
3301         (Depends-on): Add unistd. Specify conditions.
3302         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3303         (Include): Change to <unistd.h>.
3304         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3305         HAVE_GROUP_MEMBER.
3306         * NEWS: Mention the change.
3307         * lib/euidaccess.c: Don't include group-member.h.
3308
3309 2011-05-11  Bruno Haible  <bruno@clisp.org>
3310
3311         group-member: Document module.
3312         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3313         module.
3314
3315 2011-05-11  Bruno Haible  <bruno@clisp.org>
3316
3317         fclose: Fix mistake earlier today.
3318         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3319
3320 2011-05-11  Eric Blake  <eblake@redhat.com>
3321
3322         fclose: preserve fflush errors
3323         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3324         Reported by Jim Meyering.
3325
3326         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3327         * build-aux/bootstrap (check_versions): When no specific version
3328         is required, merely check that the app produces an exit status
3329         that indicates its existence.
3330
3331         maint.mk: drop redundant check
3332         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3333         the same but better.
3334
3335 2011-05-11  Bruno Haible  <bruno@clisp.org>
3336
3337         fclose: Fix possible link error.
3338         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3339         unregister_shadow_fd. Improve comments.
3340         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3341         Eric Blake.
3342
3343 2011-05-11  Jim Meyering  <meyering@redhat.com>
3344
3345         maint.mk: improve "can not" detection and generalize rule name
3346         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3347         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3348         Use the same technique as in sc_prohibit_doubled_word, so that
3349         we recognize "can not" also when the words are separated by a newline.
3350         Suggested by Eric Blake.
3351         (perl_filename_lineno_text_): Define.  Factored out of...
3352         (prohibit_doubled_word_): ...here.  Use the new definition.
3353         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3354         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3355         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3356
3357 2011-05-10  Eric Blake  <eblake@redhat.com>
3358
3359         fclose: avoid double close race when possible
3360         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3361         all but WINDOWS_SOCKETS.
3362
3363 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3364
3365         openat: correct new comment
3366         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3367
3368 2011-05-10  Jim Meyering  <meyering@redhat.com>
3369
3370         openat: add comments
3371         * lib/openat-proc.c (openat_proc_name): Add comments,
3372         mostly from Eric Blake.
3373
3374 2011-05-09  Eric Blake  <eblake@redhat.com>
3375
3376         openat: reduce syscalls in first probe of /proc
3377         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3378         be a directory.  Simplify the probe for .. bugs.
3379         * modules/openat (Depends-on): Drop same-inode.
3380         Reported by Bastien ROUCARIES.
3381
3382 2011-05-09  Jim Meyering  <meyering@redhat.com>
3383
3384         maint.mk: change semantics/name of tight_scope variables
3385         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3386         Rename variables to align with semantics that make them more useful.
3387
3388         maint.mk: tweak new rule's name not to impinge
3389         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3390         (sc_tight_scope): Use new rule name rather than $@-0.
3391
3392         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3393         * top/maint.mk (sc_tight_scope): New rule.
3394         (sc_tight_scope-0): New rule, ifdef'd out.
3395         (_gl_TS_dir): Default.
3396         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3397         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3398
3399 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3400
3401         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3402         Haible <bruno@clisp.org>.
3403
3404 2011-05-08  Bruno Haible  <bruno@clisp.org>
3405
3406         Comments.
3407         * m4/isnanf.m4: Add comment.
3408         * m4/isnanl.m4: Likewise.
3409
3410 2011-05-08  Bruno Haible  <bruno@clisp.org>
3411
3412         glob: Remove obsolete macro.
3413         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3414
3415 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3416
3417         intprops: Sun C 5.11 supports __typeof__
3418         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3419         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3420         which is new.
3421         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3422
3423         intprops: switch to usual gnulib indenting and naming
3424         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3425         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3426
3427         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3428
3429 2011-05-08  Jim Meyering  <meyering@redhat.com>
3430
3431         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3432         * top/maint.mk (release-prep): Use make's --no-print-directory
3433         option when generating the announcement.  This eliminates the
3434         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3435         generated announcement template.
3436
3437 2011-05-08  Bruno Haible  <bruno@clisp.org>
3438
3439         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3440         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3441         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3442
3443 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3444
3445         ignore-value, verify: Omit include files from lib_SOURCES.
3446         * modules/ignore-value, modules/verify (Makefile.am):
3447         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3448         that leads Automake to duplicate use of am__objects_... variables
3449         in Makefile.in.  See
3450         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3451
3452 2011-05-07  Bruno Haible  <bruno@clisp.org>
3453
3454         fclose: Simplify autoconf macro.
3455         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3456         defined.
3457
3458 2011-05-07  Bruno Haible  <bruno@clisp.org>
3459
3460         canonicalize-lgpl: Fix autoconf macro ordering bug.
3461         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3462         gl_STDLIB_H_DEFAULTS.
3463
3464 2011-05-06  Eric Blake  <eblake@redhat.com>
3465
3466         maintainer-makefile: make sc_po_check easier to tune
3467         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3468         to probe for strings, such as an alternate location for gnulib.
3469
3470         fclose: guarantee behavior on seekable stdin
3471         * modules/fclose (Depends-on): Add fflush.
3472         * doc/posix-functions/fclose.texi (fclose): Document this.
3473         * tests/test-fclose.c (main): Make test for this unconditional.
3474
3475 2011-05-06  Bruno Haible  <bruno@clisp.org>
3476
3477         fflush, fpurge: Relicense under LGPLv2+.
3478         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3479         * modules/fpurge (License): Likewise.
3480         With permission from Eric Blake and Jim Meyering.
3481         Suggested by Eric Blake.
3482
3483 2011-05-06  Karl Berry  <karl@gnu.org>
3484
3485         * MODULES.html.sh (func_all_modules): remove exit.
3486
3487 2011-05-06  Jim Meyering  <meyering@redhat.com>
3488
3489         maint.mk: use info-gnu@ as the default only for a stable release
3490         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3491         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3492         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3493         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3494
3495 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3496
3497         assert-h: new module, which supports C1X-style static_assert
3498         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3499         * lib/verify.h: Revamp so that this can be copied into assert.h,
3500         while retaining the ability to use it standalone as before.
3501         Rename private identifiers so as not to encroach on the
3502         standard C namespace, since this is now used by assert.h.
3503         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3504         the old verify_true.
3505         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3506         the old verify_true.  Use _GL_VERIFY_TYPE.
3507         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3508         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3509         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3510         defined when this file is copied into the replacement assert.h.
3511         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3512         and _Static_assert is not built in.
3513         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3514         defined, and use the new macros mentioned above.
3515         * doc/posix-headers/assert.texi: Document this.
3516
3517 2011-05-05  Bruno Haible  <bruno@clisp.org>
3518
3519         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3520         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3521         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3522         gl_REPLACE_FCLOSE here.
3523         * modules/fflush (Depends-on): Remove fclose.
3524         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3525         combination with module 'fclose'.
3526
3527 2011-05-05  Bruno Haible  <bruno@clisp.org>
3528
3529         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3530         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3531         gl_FUNC_FFLUSH.
3532         (gl_FUNC_FFLUSH): Use it.
3533         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3534         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3535         gl_REPLACE_FSEEKO here.
3536
3537 2011-05-05  Bruno Haible  <bruno@clisp.org>
3538
3539         tzset: Relicense under LGPL.
3540         * modules/tzset (License): Change to LGPL.
3541         No agreement needed; it's a no-op.
3542
3543         strtoimax, strtoumax: Relicense under LGPL.
3544         * modules/strtoimax (License): Change to LGPL.
3545         * modules/strtoumax (License): Likewise.
3546         With permission from Jim Meyering, Paul Eggert:
3547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3549
3550         getgroups: Relicense under LGPL.
3551         * modules/getgroups (License): Change to LGPL.
3552         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3556
3557         nanosleep: Relicense under LGPL.
3558         * modules/nanosleep (License): Change to LGPL.
3559         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3560         Haible:
3561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3565
3566         futimens: Relicense under LGPL.
3567         * modules/futimens (License): Change to LGPL.
3568         With permission from Eric Blake:
3569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3570
3571         fflush: Relicense under LGPL.
3572         * modules/fflush (License): Change to LGPL.
3573         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3574         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3577
3578         tmpfile: Relicense under LGPL.
3579         * modules/tmpfile (License): Change to LGPL.
3580         With permission from Ben Pfaff:
3581         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3582
3583         isfinite: Relicense under LGPL.
3584         * modules/isfinite (License): Change to LGPL.
3585         With permission from Ben Pfaff, Bruno Haible:
3586         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3587         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3588
3589         acosl..tanl: Relicense under LGPL.
3590         * modules/acosl (License): Change to LGPL.
3591         * modules/asinl (License): Likewise.
3592         * modules/atanl (License): Likewise.
3593         * modules/cosl (License): Likewise.
3594         * modules/expl (License): Likewise.
3595         * modules/logl (License): Likewise.
3596         * modules/sinl (License): Likewise.
3597         * modules/sqrtl (License): Likewise.
3598         * modules/tanl (License): Likewise.
3599         Source code originally from glibc and Paolo Bonzini. Agreements:
3600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3602
3603 2011-05-05  Bruno Haible  <bruno@clisp.org>
3604
3605         signal: Define sighandler_t.
3606         * lib/signal.in.h (sighandler_t): New type.
3607         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3608         whether sighandler_t is defined.
3609         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3610         * modules/signal (Depends-on): Add extensions.
3611         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3612         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3613         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3614
3615 2011-05-05  Eric Blake  <eblake@redhat.com>
3616
3617         maint: remove useless REPLACE_*_H macros
3618         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3619         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3620         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3621         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3622         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3623         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3624         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3625         * m4/btowc.m4: Update callers.
3626         * m4/dirfd.m4: Likewise.
3627         * m4/duplocale.m4: Likewise.
3628         * m4/fchdir.m4: Likewise.
3629         * m4/fdopendir.m4: Likewise.
3630         * m4/inet_ntop.m4: Likewise.
3631         * m4/inet_pton.m4: Likewise.
3632         * m4/ioctl.m4: Likewise.
3633         * m4/mbrlen.m4: Likewise.
3634         * m4/mbrtowc.m4: Likewise.
3635         * m4/mbsinit.m4: Likewise.
3636         * m4/mbsnrtowcs.m4: Likewise.
3637         * m4/mbsrtowcs.m4: Likewise.
3638         * m4/poll.m4: Likewise.
3639         * m4/setlocale.m4: Likewise.
3640         * m4/wcrtomb.m4: Likewise.
3641         * m4/wcsnrtombs.m4: Likewise.
3642         * m4/wcsrtombs.m4: Likewise.
3643         * m4/wctob.m4: Likewise.
3644         * m4/wcwidth.m4: Likewise.
3645         * modules/posix_spawn: Likewise.
3646         * modules/posix_spawn_file_actions_addclose: Likewise.
3647         * modules/posix_spawn_file_actions_adddup2: Likewise.
3648         * modules/posix_spawn_file_actions_addopen: Likewise.
3649         * modules/posix_spawn_file_actions_destroy: Likewise.
3650         * modules/posix_spawn_file_actions_init: Likewise.
3651         * modules/posix_spawnattr_destroy: Likewise.
3652         * modules/posix_spawnattr_getflags: Likewise.
3653         * modules/posix_spawnattr_getpgroup: Likewise.
3654         * modules/posix_spawnattr_getschedparam: Likewise.
3655         * modules/posix_spawnattr_getschedpolicy: Likewise.
3656         * modules/posix_spawnattr_getsigdefault: Likewise.
3657         * modules/posix_spawnattr_getsigmask: Likewise.
3658         * modules/posix_spawnattr_init: Likewise.
3659         * modules/posix_spawnattr_setflags: Likewise.
3660         * modules/posix_spawnattr_setpgroup: Likewise.
3661         * modules/posix_spawnattr_setschedparam: Likewise.
3662         * modules/posix_spawnattr_setschedpolicy: Likewise.
3663         * modules/posix_spawnattr_setsigdefault: Likewise.
3664         * modules/posix_spawnattr_setsigmask: Likewise.
3665         * modules/posix_spawnp: Likewise.
3666
3667 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3668
3669         Add option to do-release-commit-and-tag to specify branch.
3670         * build-aux/do-release-commit-and-tag: Add --branch.
3671
3672 2011-05-03  Bruno Haible  <bruno@clisp.org>
3673
3674         Avoid unnecessary compilation units, through conditional dependencies.
3675         * modules/accept (Depends-on): Add conditions to the dependencies.
3676         * modules/acosl (Depends-on): Likewise.
3677         * modules/argz (Depends-on): Likewise.
3678         * modules/asinl (Depends-on): Likewise.
3679         * modules/atanl (Depends-on): Likewise.
3680         * modules/atoll (Depends-on): Likewise.
3681         * modules/bind (Depends-on): Likewise.
3682         * modules/btowc (Depends-on): Likewise.
3683         * modules/canonicalize-lgpl (Depends-on): Likewise.
3684         * modules/ceil (Depends-on): Likewise.
3685         * modules/ceilf (Depends-on): Likewise.
3686         * modules/ceill (Depends-on): Likewise.
3687         * modules/chdir-long (Depends-on): Likewise.
3688         * modules/chown (Depends-on): Likewise.
3689         * modules/close (Depends-on): Likewise.
3690         * modules/connect (Depends-on): Likewise.
3691         * modules/cosl (Depends-on): Likewise.
3692         * modules/dirfd (Depends-on): Likewise.
3693         * modules/dprintf (Depends-on): Likewise.
3694         * modules/dprintf-posix (Depends-on): Likewise.
3695         * modules/error (Depends-on): Likewise.
3696         * modules/euidaccess (Depends-on): Likewise.
3697         * modules/expl (Depends-on): Likewise.
3698         * modules/faccessat (Depends-on): Likewise.
3699         * modules/fchdir (Depends-on): Likewise.
3700         * modules/fclose (Depends-on): Likewise.
3701         * modules/fcntl (Depends-on): Likewise.
3702         * modules/fdopendir (Depends-on): Likewise.
3703         * modules/fflush (Depends-on): Likewise.
3704         * modules/floor (Depends-on): Likewise.
3705         * modules/floorf (Depends-on): Likewise.
3706         * modules/floorl (Depends-on): Likewise.
3707         * modules/fnmatch (Depends-on): Likewise.
3708         * modules/fopen (Depends-on): Likewise.
3709         * modules/fprintf-posix (Depends-on): Likewise.
3710         * modules/frexp (Depends-on): Likewise.
3711         * modules/frexp-nolibm (Depends-on): Likewise.
3712         * modules/frexpl (Depends-on): Likewise.
3713         * modules/frexpl-nolibm (Depends-on): Likewise.
3714         * modules/fseek (Depends-on): Likewise.
3715         * modules/fsusage (Depends-on): Likewise.
3716         * modules/ftell (Depends-on): Likewise.
3717         * modules/ftello (Depends-on): Likewise.
3718         * modules/futimens (Depends-on): Likewise.
3719         * modules/getcwd (Depends-on): Likewise.
3720         * modules/getcwd-lgpl (Depends-on): Likewise.
3721         * modules/getdelim (Depends-on): Likewise.
3722         * modules/getdomainname (Depends-on): Likewise.
3723         * modules/getgroups (Depends-on): Likewise.
3724         * modules/gethostname (Depends-on): Likewise.
3725         * modules/getline (Depends-on): Likewise.
3726         * modules/getlogin_r (Depends-on): Likewise.
3727         * modules/getopt-posix (Depends-on): Likewise.
3728         * modules/getpeername (Depends-on): Likewise.
3729         * modules/getsockname (Depends-on): Likewise.
3730         * modules/getsockopt (Depends-on): Likewise.
3731         * modules/getsubopt (Depends-on): Likewise.
3732         * modules/getusershell (Depends-on): Likewise.
3733         * modules/glob (Depends-on): Likewise.
3734         * modules/grantpt (Depends-on): Likewise.
3735         * modules/iconv_open (Depends-on): Likewise.
3736         * modules/iconv_open-utf (Depends-on): Likewise.
3737         * modules/inet_ntop (Depends-on): Likewise.
3738         * modules/inet_pton (Depends-on): Likewise.
3739         * modules/ioctl (Depends-on): Likewise.
3740         * modules/isapipe (Depends-on): Likewise.
3741         * modules/isfinite (Depends-on): Likewise.
3742         * modules/isinf (Depends-on): Likewise.
3743         * modules/lchown (Depends-on): Likewise.
3744         * modules/ldexpl (Depends-on): Likewise.
3745         * modules/link (Depends-on): Likewise.
3746         * modules/linkat (Depends-on): Likewise.
3747         * modules/listen (Depends-on): Likewise.
3748         * modules/logl (Depends-on): Likewise.
3749         * modules/lstat (Depends-on): Likewise.
3750         * modules/mbrlen (Depends-on): Likewise.
3751         * modules/mbrtowc (Depends-on): Likewise.
3752         * modules/mbsinit (Depends-on): Likewise.
3753         * modules/mbsnrtowcs (Depends-on): Likewise.
3754         * modules/mbsrtowcs (Depends-on): Likewise.
3755         * modules/mbtowc (Depends-on): Likewise.
3756         * modules/memcmp (Depends-on): Likewise.
3757         * modules/mkdir (Depends-on): Likewise.
3758         * modules/mkdtemp (Depends-on): Likewise.
3759         * modules/mkfifo (Depends-on): Likewise.
3760         * modules/mkfifoat (Depends-on): Likewise.
3761         * modules/mknod (Depends-on): Likewise.
3762         * modules/mkostemp (Depends-on): Likewise.
3763         * modules/mkostemps (Depends-on): Likewise.
3764         * modules/mkstemp (Depends-on): Likewise.
3765         * modules/mkstemps (Depends-on): Likewise.
3766         * modules/mktime (Depends-on): Likewise.
3767         * modules/nanosleep (Depends-on): Likewise.
3768         * modules/open (Depends-on): Likewise.
3769         * modules/openat (Depends-on): Likewise.
3770         * modules/perror (Depends-on): Likewise.
3771         * modules/poll (Depends-on): Likewise.
3772         * modules/popen (Depends-on): Likewise.
3773         * modules/posix_spawn (Depends-on): Likewise.
3774         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
3775         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3776         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3777         * modules/posix_spawnp (Depends-on): Likewise.
3778         * modules/pread (Depends-on): Likewise.
3779         * modules/printf-posix (Depends-on): Likewise.
3780         * modules/ptsname (Depends-on): Likewise.
3781         * modules/putenv (Depends-on): Likewise.
3782         * modules/pwrite (Depends-on): Likewise.
3783         * modules/readline (Depends-on): Likewise.
3784         * modules/readlink (Depends-on): Likewise.
3785         * modules/readlinkat (Depends-on): Likewise.
3786         * modules/recv (Depends-on): Likewise.
3787         * modules/recvfrom (Depends-on): Likewise.
3788         * modules/regex (Depends-on): Likewise.
3789         * modules/remove (Depends-on): Likewise.
3790         * modules/rename (Depends-on): Likewise.
3791         * modules/renameat (Depends-on): Likewise.
3792         * modules/rmdir (Depends-on): Likewise.
3793         * modules/round (Depends-on): Likewise.
3794         * modules/roundf (Depends-on): Likewise.
3795         * modules/roundl (Depends-on): Likewise.
3796         * modules/rpmatch (Depends-on): Likewise.
3797         * modules/select (Depends-on): Likewise.
3798         * modules/send (Depends-on): Likewise.
3799         * modules/sendto (Depends-on): Likewise.
3800         * modules/setenv (Depends-on): Likewise.
3801         * modules/setlocale (Depends-on): Likewise.
3802         * modules/setsockopt (Depends-on): Likewise.
3803         * modules/shutdown (Depends-on): Likewise.
3804         * modules/sigaction (Depends-on): Likewise.
3805         * modules/signbit (Depends-on): Likewise.
3806         * modules/sigprocmask (Depends-on): Likewise.
3807         * modules/sinl (Depends-on): Likewise.
3808         * modules/sleep (Depends-on): Likewise.
3809         * modules/snprintf (Depends-on): Likewise.
3810         * modules/snprintf-posix (Depends-on): Likewise.
3811         * modules/socket (Depends-on): Likewise.
3812         * modules/sprintf-posix (Depends-on): Likewise.
3813         * modules/sqrtl (Depends-on): Likewise.
3814         * modules/stat (Depends-on): Likewise.
3815         * modules/strchrnul (Depends-on): Likewise.
3816         * modules/strdup-posix (Depends-on): Likewise.
3817         * modules/strerror (Depends-on): Likewise.
3818         * modules/strerror_r-posix (Depends-on): Likewise.
3819         * modules/strndup (Depends-on): Likewise.
3820         * modules/strnlen (Depends-on): Likewise.
3821         * modules/strptime (Depends-on): Likewise.
3822         * modules/strsep (Depends-on): Likewise.
3823         * modules/strsignal (Depends-on): Likewise.
3824         * modules/strstr-simple (Depends-on): Likewise.
3825         * modules/strtod (Depends-on): Likewise.
3826         * modules/strtoimax (Depends-on): Likewise.
3827         * modules/strtok_r (Depends-on): Likewise.
3828         * modules/strtoumax (Depends-on): Likewise.
3829         * modules/symlink (Depends-on): Likewise.
3830         * modules/symlinkat (Depends-on): Likewise.
3831         * modules/tanl (Depends-on): Likewise.
3832         * modules/tcgetsid (Depends-on): Likewise.
3833         * modules/tmpfile (Depends-on): Likewise.
3834         * modules/trunc (Depends-on): Likewise.
3835         * modules/truncf (Depends-on): Likewise.
3836         * modules/truncl (Depends-on): Likewise.
3837         * modules/uname (Depends-on): Likewise.
3838         * modules/unlink (Depends-on): Likewise.
3839         * modules/unlockpt (Depends-on): Likewise.
3840         * modules/unsetenv (Depends-on): Likewise.
3841         * modules/usleep (Depends-on): Likewise.
3842         * modules/utimensat (Depends-on): Likewise.
3843         * modules/vasprintf (Depends-on): Likewise.
3844         * modules/vdprintf (Depends-on): Likewise.
3845         * modules/vdprintf-posix (Depends-on): Likewise.
3846         * modules/vfprintf-posix (Depends-on): Likewise.
3847         * modules/vprintf-posix (Depends-on): Likewise.
3848         * modules/vsnprintf (Depends-on): Likewise.
3849         * modules/vsnprintf-posix (Depends-on): Likewise.
3850         * modules/vsprintf-posix (Depends-on): Likewise.
3851         * modules/wcrtomb (Depends-on): Likewise.
3852         * modules/wcscasecmp (Depends-on): Likewise.
3853         * modules/wcscspn (Depends-on): Likewise.
3854         * modules/wcsdup (Depends-on): Likewise.
3855         * modules/wcsncasecmp (Depends-on): Likewise.
3856         * modules/wcsnrtombs (Depends-on): Likewise.
3857         * modules/wcspbrk (Depends-on): Likewise.
3858         * modules/wcsrtombs (Depends-on): Likewise.
3859         * modules/wcsspn (Depends-on): Likewise.
3860         * modules/wcsstr (Depends-on): Likewise.
3861         * modules/wcstok (Depends-on): Likewise.
3862         * modules/wcswidth (Depends-on): Likewise.
3863         * modules/wctob (Depends-on): Likewise.
3864         * modules/wctomb (Depends-on): Likewise.
3865         * modules/wctype (Depends-on): Likewise.
3866         * modules/wcwidth (Depends-on): Likewise.
3867         * modules/write (Depends-on): Likewise.
3868
3869 2011-05-03  Bruno Haible  <bruno@clisp.org>
3870
3871         Support for conditional dependencies.
3872         * doc/gnulib.texi (Module description): Document the syntax of
3873         conditional dependencies.
3874         * gnulib-tool: New option --conditional-dependencies.
3875         (func_usage): Document it.
3876         (cond_dependencies): New variable.
3877         (func_get_automake_snippet_conditional,
3878         func_get_automake_snippet_unconditional): New functions, extracted from
3879         func_get_automake_snippet.
3880         (func_get_automake_snippet): Use them.
3881         (sed_first_32_chars): New variable.
3882         (func_module_shellfunc_name): New function.
3883         (func_module_shellvar_name): New function.
3884         (func_module_conditional_name): New function.
3885         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
3886         func_cond_module_condition): New functions.
3887         (func_modules_transitive_closure): Add support for conditional
3888         dependencies.
3889         (func_emit_lib_Makefile_am): For a conditional module, enclose the
3890         conditional automake snippet in an automake conditional.
3891         (func_emit_autoconf_snippets): Emit shell functions that contain the
3892         code for conditional modules.
3893         (func_import, func_create_testdir): Update specification.
3894
3895 2011-05-03  Eric Blake  <eblake@redhat.com>
3896
3897         test-getaddrinfo: report error information
3898         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
3899
3900 2011-05-03  Jim Meyering  <meyering@redhat.com>
3901
3902         bootstrap: avoid build failure when $GZIP is set
3903         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
3904         program name.  If defined at all, it is supposed to list gzip options.
3905         Reported by Alan Curry in http://debbugs.gnu.org/8609
3906
3907 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
3908
3909         readme-release: new module with release instructions
3910         * modules/readme-release: New module.
3911         * top/README-release: New file, from coreutils, grep, diffutils.
3912         * MODULES.html.sh (Support for maintaining and releasing): Add it.
3913
3914 2011-05-02  Eric Blake  <eblake@redhat.com>
3915
3916         fflush: also replace fclose when fixing fflush
3917         * modules/fflush (Depends-on): Add fclose.
3918         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
3919         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
3920         memstreams with no backing fd.
3921         * doc/posix-functions/fclose.texi (fclose): Document the use of
3922         fflush module to fix the bug.
3923         * tests/test-fclose.c (main): Relax test when fclose is used in
3924         isolation.
3925
3926         fclose: add some tests
3927         * modules/fclose-tests: New test module.
3928         * tests/test-fclose.c: New file.
3929         * doc/posix-functions/fclose.texi (fclose): Document the bug.
3930
3931         fclose: reduced dependencies
3932         * modules/fclose (Depends-on): Switch from fflush/fseeko to
3933         simpler lseek.
3934         * lib/fclose.c (rpl_fclose): Likewise.
3935         Reported by Simon Josefsson.
3936
3937         exit: drop remaining clients
3938         * modules/argmatch (Depends-on): Replace exit with stdlib.
3939         * modules/copy-file (Depends-on): Likewise.
3940         * modules/execute (Depends-on): Likewise.
3941         * modules/exitfail (Depends-on): Likewise.
3942         * modules/obstack (Depends-on): Likewise.
3943         * modules/pagealign_alloc (Depends-on): Likewise.
3944         * modules/pipe-filter-gi (Depends-on): Likewise.
3945         * modules/pipe-filter-ii (Depends-on): Likewise.
3946         * modules/savewd (Depends-on): Likewise.
3947         * modules/spawn-pipe (Depends-on): Likewise.
3948         * modules/wait-process (Depends-on): Likewise.
3949         * modules/xsetenv (Depends-on): Likewise.
3950         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
3951         * modules/git-merge-changelog (Depends-on): Likewise.
3952         * modules/long-options (Depends-on): Likewise.
3953         * modules/pt_chown (Depends-on): Likewise.
3954         * modules/sysexits (Depends-on): Likewise.
3955
3956         freading: relax license from LGPLv3+ to LGPLv2+
3957         * modules/freading (License): Relax LGPL version.
3958
3959 2011-05-02  Bruno Haible  <bruno@clisp.org>
3960
3961         fchdir: Remove unused dependencies.
3962         * modules/fchdir (Depends-on): Remove include_next.
3963
3964 2011-05-02  Bruno Haible  <bruno@clisp.org>
3965
3966         gnulib-tool: Refactor.
3967         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3968         from func_emit_autoconf_snippets.
3969         (func_emit_autoconf_snippets): Use it.
3970
3971 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3972
3973         * NEWS: Document removal of 'exit'.
3974         * modules/exit: Remove file.
3975
3976 2011-05-01  Bruno Haible  <bruno@clisp.org>
3977
3978         Update DEPENDENCIES.
3979         * DEPENDENCIES (gettext): Recommend the newest release.
3980         Reported by Simon Josefsson.
3981
3982 2011-05-01  Bruno Haible  <bruno@clisp.org>
3983
3984         gnulib-tool: Reduce code duplication.
3985         * gnulib-tool (func_emit_autoconf_snippets): New function.
3986         (func_import, func_create_testdir): Use it.
3987
3988 2011-04-30  Eric Blake  <eblake@redhat.com>
3989
3990         fclose: don't fail on non-seekable input stream
3991         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3992         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3993         since fflush is allowed to fail in that case.
3994
3995 2011-04-30  Bruno Haible  <bruno@clisp.org>
3996
3997         dup3: cleanup
3998         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
3999
4000 2011-04-30  Bruno Haible  <bruno@clisp.org>
4001
4002         netdb: Make it work in C++ mode.
4003         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
4004         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
4005         module.
4006         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
4007         gl_MODULE_INDICATOR_FOR_TESTS.
4008         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
4009         * modules/netdb-c++-tests: New file.
4010         * tests/test-netdb-c++.cc: New file.
4011
4012 2011-04-30  Bruno Haible  <bruno@clisp.org>
4013
4014         New modules 'vfscanf', 'vscanf'.
4015         * modules/vfscanf: New file.
4016         * modules/vscanf: New file.
4017         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
4018         here.
4019         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
4020         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
4021
4022 2011-04-30  Bruno Haible  <bruno@clisp.org>
4023
4024         passfd: Add comments.
4025         * lib/passfd.c: Add comments about platforms.
4026
4027 2011-04-30  Bruno Haible  <bruno@clisp.org>
4028
4029         sys_uio: Make <sys/uio.h> self-contained.
4030         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
4031         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
4032
4033 2011-04-30  Bruno Haible  <bruno@clisp.org>
4034
4035         sys_socket: Ensure 'struct iovec' definition.
4036         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
4037         <sys/socket.h>.
4038         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
4039
4040 2011-04-30  Bruno Haible  <bruno@clisp.org>
4041
4042         sys_uio: Protect definition of 'struct iovec'.
4043         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
4044         it as a C struct.
4045
4046 2011-04-30  Bruno Haible  <bruno@clisp.org>
4047
4048         manywarnings: fix indentation
4049         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4050
4051 2011-04-30  Pádraig Brady <P@draigBrady.com>
4052
4053         manywarnings: add -Wno-missing-field-initializers if needed.
4054         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4055         option if it's needed to allow initialization with { 0, }
4056
4057 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
4058
4059         announce-gen: cosmetic improvement
4060         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
4061
4062 2011-04-29  Jim Meyering  <meyering@redhat.com>
4063
4064         vc-list-files: indent with spaces, not TABs
4065         * build-aux/vc-list-files: Convert leading TABs to spaces,
4066         to match the style of most other files in gnulib.
4067
4068         announce-gen: indent with spaces, not TABs
4069         * build-aux/announce-gen: Convert all TABs to spaces, to match
4070         the style of most other files in gnulib.
4071
4072 2011-04-29  Eric Blake  <eblake@redhat.com>
4073
4074         quotearg: avoid uninitialized variable use
4075         * lib/quotearg.c (quoting_options_from_style): Initialize
4076         remaining fields, and ensure that custom styles are only used via
4077         quoting_options rather than quoting_style.
4078
4079 2011-04-29  Jim Meyering  <meyering@redhat.com>
4080
4081         maint.mk: remove unused VC-tag variable
4082         * top/maint.mk (VC-tag): Remove unused variable.
4083
4084 2011-04-29  Bruno Haible  <bruno@clisp.org>
4085
4086         netdb: fix gai_strerror replacements
4087         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4088         * modules/netdb: Substitute it.
4089
4090 2011-04-29  Jim Meyering  <meyering@redhat.com>
4091
4092         test-getcwd.c: avoid new set-but-not-used warning
4093         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4094         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4095         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4096         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4097
4098         test-hash.c: avoid a new shadowing warning
4099         * tests/test-hash.c (main): Don't shadow "dup".
4100
4101 2011-04-28  Eric Blake  <eblake@redhat.com>
4102
4103         getaddrinfo: fix gai_strerror signature
4104         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4105         and work around mingw with UNICODE defined.
4106         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4107         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4108         * modules/netdb (Makefile.am): Substitute it.
4109         * lib/netdb.in.h (gai_strerror): Declare replacement.
4110         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4111         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4112         the fix.
4113
4114         getsockopt: avoid compiler warning
4115         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4116         Reported by Matthias Bolte.
4117
4118         tests: drop unused link dependency
4119         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4120         * modules/dirent-safer-tests (Makefile.am): Likewise.
4121         * modules/fdopendir-tests (Makefile.am): Likewise.
4122         * modules/mkfifoat-tests (Makefile.am): Likewise.
4123         * modules/openat-safer-tests (Makefile.am): Likewise.
4124         * modules/openat-tests (Makefile.am): Likewise.
4125         * modules/readlinkat-tests (Makefile.am): Likewise.
4126         * modules/symlinkat-tests (Makefile.am): Likewise.
4127         * modules/linkat-tests (Makefile.am): Likewise.
4128         (Depends-on): Switch to filenamecat-lgpl.
4129         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4130         LIBINTL.
4131         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4132         * tests/test-linkat.c (main): Don't require xalloc.
4133
4134         hash, mgetgroups: drop xalloc dependency
4135         * lib/hash.c (includes): Adjust includes.
4136         * lib/mgetgroups.c (includes): Likewise.
4137         (xgetgroups): Move...
4138         * lib/xgetgroups.c: ...to new file.
4139         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4140         * modules/xgetgroups: New file, split from...
4141         * modules/mgetgroups: ...here.
4142         (Depends-on): Add xalloc-oversized.
4143         * modules/hash (Depends-on): Likewise.
4144         * modules/hash-tests (Depends-on): Drop xalloc.
4145         (test_hash_LDADD): Drop unused library.
4146         * tests/test-hash.c (main): Break xalloc dependency.
4147         (includes): Drop unused include.
4148
4149         xalloc-oversized: new module
4150         * modules/xalloc-oversized: New module.
4151         * modules/xalloc (Depends-on): Add it.
4152         * lib/xalloc.h (xalloc_oversized): Move...
4153         * lib/xalloc-oversized.h: ...into new file.
4154
4155         utimecmp: drop dependency on xmalloc
4156         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4157         due to memory pressure.
4158         * modules/utimecmp (Depends-on): Drop xalloc.
4159
4160 2011-04-27  Eric Blake  <eblake@redhat.com>
4161
4162         getcwd: fix mingw bugs
4163         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4164         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4165         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4166
4167 2011-04-27  Bruno Haible  <bruno@clisp.org>
4168
4169         mkstemps: Ensure declaration on MacOS X 10.5.
4170         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4171         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4172         MacOS X.
4173
4174 2011-04-27  Bruno Haible  <bruno@clisp.org>
4175
4176         mkstemp: More documentation.
4177         * doc/posix-functions/mkstemp.texi: Document header file problem on
4178         MacOS X.
4179
4180 2011-04-27  Bruno Haible  <bruno@clisp.org>
4181
4182         mkstemp: Tweak configure message when cross-compiling.
4183         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4184         result as a guess.
4185
4186 2011-04-27  Bruno Haible  <bruno@clisp.org>
4187
4188         clean-temp: Clarify what it does.
4189         * lib/clean-temp.h: Add more comments.
4190         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4191         module.
4192         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4193         * doc/glibc-functions/mkstemps.texi: Likewise.
4194         * doc/glibc-functions/mkostemps.texi: Likewise.
4195
4196 2011-04-27  Eric Blake  <eblake@redhat.com>
4197
4198         fchdir: avoid extra chdir and fix test
4199         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4200         getcwd-lgpl.
4201         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4202         have to be canonical.
4203         (canonicalize_file_name): Drop unused macro.
4204         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4205
4206         filenamecat-lgpl: fix licence
4207         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4208         when it was first created.
4209
4210         linkat, renameat: add missing dependency
4211         * modules/linkat (Depends-on): Require getcwd-lgpl.
4212         * modules/renameat (Depends-on): Likewise.
4213
4214         tests: reduce dependencies
4215         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4216         * tests/test-renameat.c (main): Likewise.
4217         * modules/linkat-tests (Depends-on): Relax dependency.
4218         * modules/renameat-tests (Depends-on): Likewise.
4219         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4220         dependency explicit.
4221
4222         save-cwd: reduce default dependency
4223         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4224         * lib/save-cwd.c: Update comments.
4225         * NEWS: Document the semantic change.
4226
4227         getcwd: enhance tests
4228         * tests/test-getcwd-lgpl.c: New file, taken from...
4229         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4230         repeat long path stress tests from m4 probe.
4231         * modules/getcwd-lgpl-tests: New module.
4232         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4233         * m4/getcwd-abort-bug.m4: Update comment.
4234         * m4/getcwd-path-max.m4: Likewise.
4235
4236         getcwd-lgpl: new module
4237         * modules/getcwd-lgpl: New module.
4238         * lib/getcwd-lgpl.c: New file.
4239         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4240         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4241         * modules/getcwd (configure.ac): Set C witness.
4242         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4243
4244         getcwd: tweak comments
4245         * m4/getcwd-abort-bug.m4: Fix comments.
4246         * m4/getcwd-path-max.m4: Likewise.
4247         * m4/getcwd.m4: Likewise.
4248
4249 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4250         and Eric Blake  <eblake@redhat.com>
4251
4252         mkstemp: replace if system version uses wrong permissions
4253         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4254         read/write mode bits set in file created by mkstemp.
4255         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4256
4257 2011-04-27  Eric Blake  <eblake@redhat.com>
4258
4259         passfd: avoid compiler warning
4260         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4261         Reported by Laine Stump.
4262
4263 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4264
4265         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4266         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4267
4268 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4269         and Eric Blake  <eblake@redhat.com>
4270
4271         mkstemp: mention clean-temp module
4272         * lib/mkstemp.c: Add comment.
4273         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4274
4275 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4276
4277         inttypes: also provide default values for 32-bit tests
4278         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4279         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4280
4281 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4282
4283         strtoumax: remove dependency on strtoimax
4284         This is like the strtoull change of yesterday.
4285         * modules/strtoumax (Files): Add lib/strtoimax.c.
4286         (Depends-on): Remove strtoimax and add verify.
4287
4288         inttypes-incomplete: new module
4289         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4290         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4291         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4292         of gl_INTTYPES_H.
4293         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4294         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4295         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4296         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4297         * modules/strtoumax, modules/xstrtol (Depends-on):
4298         Depend on inttypes-incomplete, not inttypes.
4299         * modules/inttypes-incomplete: New module, containing the contents
4300         of the old modules/inttypes module, except that the Files: section
4301         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4302         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4303         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4304         (Depends-on): Depend only on inttypes-incomplete.
4305         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4306
4307         inttypes: omit now-redundant strtoimax and strtoumax work
4308         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4309         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4310
4311         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4312         This supports apps that need pointers to strtoimax and strtoumax,
4313         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4314         nonexistent functions.  See
4315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4316         et seq.
4317         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4318         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4319         a macro.
4320         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4321
4322 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4323
4324         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4325
4326 2011-04-25  Bruno Haible  <bruno@clisp.org>
4327
4328         strtol, strtoul: Mark modules as obsolete.
4329         * modules/strtol (Status, Notice): New sections.
4330         * modules/strtoul (Status, Notice): New sections.
4331
4332 2011-04-25  Bruno Haible  <bruno@clisp.org>
4333
4334         strtod: Remove check for strtod, unless supporting old platforms.
4335         * modules/strtod-obsolete: New file.
4336         * m4/strtod-obsolete.m4: New file.
4337         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4338         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4339         * modules/strtod (Depends-on): Add strtod-obsolete.
4340         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4341
4342 2011-04-25  Bruno Haible  <bruno@clisp.org>
4343
4344         strcase: Make module obsolete.
4345         * modules/strcase (Status, Notice): New sections.
4346
4347 2011-04-25  Bruno Haible  <bruno@clisp.org>
4348
4349         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4350         * modules/dup2-obsolete: New file.
4351         * m4/dup2-obsolete.m4: New file.
4352         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4353         gl_FUNC_DUP2_OBSOLETE is not also defined.
4354         * modules/dup2 (Depends-on): Add dup2-obsolete.
4355         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4356
4357 2011-04-25  Bruno Haible  <bruno@clisp.org>
4358
4359         strnlen: Avoid memchr related link error on old obsolete platforms.
4360         * modules/memchr-obsolete: New file.
4361         * m4/memchr-obsolete.m4: New file.
4362         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4363         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4364         * modules/memchr (Depends-on): Add memchr-obsolete.
4365         * modules/strnlen (Depends-on): Likewise.
4366         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4367
4368 2011-04-25  Jim Meyering  <meyering@redhat.com>
4369
4370         maint.mk: makefile_at_at_check extend and clean up
4371         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4372         in addition to */Makefile.am.
4373         Exempt legitimate uses of @VAR@ notation, e.g.,
4374         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4375         Remove obsolete coreutils-specific comment.
4376         Prompted by discussion here:
4377         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4378
4379 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4380
4381         strtoul: remove dependency on strtol
4382         This is so that 'configure' need not check for strtol merely because
4383         the application needs strtoul.
4384         * modules/strtoul (Files): Add lib/strtol.c.
4385         (Depends-on): Remove strtol.
4386
4387         strtoull: remove dependency on strtoul
4388         This is like the strtoll change.
4389         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4390         (Depends-on): Remove strtoul.
4391
4392         strtoll: remove dependency on strtol
4393         This is so that 'configure' need not check for strtol merely because
4394         the application needs strtoll.
4395         * modules/strtoll (Files): Add lib/strtol.c.
4396         (Depends-on): Remove strtol.
4397
4398 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4399
4400         inttypes: Move some configure check to module 'imaxdiv'.
4401         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4402         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4403         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4404
4405 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4406
4407         inttypes: Move some configure check to module 'imaxabs'.
4408         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4409         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4410         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4411
4412 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4413
4414         inttypes: Remove configure tests that are not needed since 2009-12-31.
4415         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4416         gl_cv_header_working_inttypes_h.
4417
4418 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4419
4420         * modules/strnlen (Depends-on): Remove memchr.
4421         The strnlen implementation doesn't need the memchr module's fixes; see
4422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4423
4424         strtol: remove dependency on wchar
4425         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4426         * modules/strtol (Depends-on): Remove wchar.
4427
4428 2011-04-21  Eric Blake  <eblake@redhat.com>
4429
4430         passfd: fix test regression on Linux
4431         * modules/passfd-tests (configure.ac): Correct socketpair check.
4432
4433         passfd: speed up configure and drop unused code
4434         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4435         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4436         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4437         Instead of probing at configure for unix_scm_rights_bsd44_way,
4438         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4439         check to a struct member probe.
4440         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4441         (sendfd, recvfd): Update preprocessor checks.
4442         * modules/passfd (Files): Reflect rename, and drop unused file.
4443         (Depends-on): Drop unused dependency.
4444
4445         passfd: allow compilation on mingw
4446         * modules/sys_socket (Depends-on): Add sys_uio.
4447         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4448         iovec and a minimal struct msghdr.
4449         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4450         * tests/test-sys_socket.c (main): Enhance test.
4451         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4452         guaranteed to provide what we need.
4453         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4454         * modules/passfd-tests (Depends-on): Add sys_wait.
4455         * tests/test-passfd.c (main): Skip test on mingw, for now.
4456         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4457         partial 'struct msghdr' implementation.
4458
4459         sys_uio: new module
4460         * modules/sys_uio: New module.
4461         * modules/sys_uio-tests: Likewise.
4462         * lib/sys_uio.in.h: New file.
4463         * m4/sys_uio_h.m4: Likewise.
4464         * tests/test-sys_uio.c: Likewise.
4465         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4466         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4467
4468 2011-04-20  Jim Meyering  <meyering@redhat.com>
4469
4470         useless-if-before-free: avoid false-positive
4471         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4472         disjunct so that it too requires a terminating ";".  Without that,
4473         this script would identify as useless one statement from gcc that
4474         was not:
4475           if (aligned_ptr)
4476             free (((void **) aligned_ptr) [-1]);
4477
4478 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4479
4480         doc: update users.txt.
4481         * users.txt: Add barcode.
4482
4483 2011-04-19  Bruno Haible  <bruno@clisp.org>
4484
4485         ioctl: Remove link dependency on native Windows.
4486         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4487         (gl_close_fn, gl_ioctl_fn): New types.
4488         (struct fd_hook): Renamed from struct close_hook. Change type of
4489         private_close_fn field. Add private_ioctl_fn field.
4490         (close_hook_fn): Add parameter for primary close method.
4491         (execute_close_hooks, execute_all_close_hooks): Likewise.
4492         (ioctl_hook_fn): New type.
4493         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4494         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4495         argument.
4496         (unregister_fd_hook): Renamed from unregister_close_hook.
4497         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4498         Don't include <unistd.h>.
4499         (close): Remove undef.
4500         (anchor): Update.
4501         (execute_close_hooks): Add argument for primary close method.
4502         (execute_all_close_hooks): Likewise.
4503         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4504         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4505         argument. Allow each argument to be NULL.
4506         (unregister_fd_hook): Renamed from unregister_close_hook.
4507         * lib/close.c (rpl_close): Pass 'close' function pointer to
4508         execute_all_close_hooks.
4509         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4510         (primary_ioctl): New function.
4511         (ioctl): Don't call ioctlsocket here. Instead, call
4512         execute_all_ioctl_hooks.
4513         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4514         close method.
4515         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4516         (fd_sockets_hook): Renamed from close_sockets_hook.
4517         (gl_sockets_startup, gl_sockets_cleanup): Update.
4518         * modules/fd-hook: Renamed from modules/close-hook. Update.
4519         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4520         * modules/sockets (Depends-on): Likewise.
4521         * modules/ioctl (Depends-on): Add fd-hook.
4522         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4523         GNULIB_SOCKET.
4524
4525 2011-04-19  Bruno Haible  <bruno@clisp.org>
4526
4527         Move the support of O_NONBLOCK in open() to the 'open' module.
4528         * modules/nonblocking (Depends-on): Remove 'open'.
4529         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4530         gl_cv_have_open_O_NONBLOCK.
4531         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4532         O_NONBLOCK support.
4533         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4534
4535 2011-04-17  Bruno Haible  <bruno@clisp.org>
4536
4537         pipe2: Simplify code.
4538         * lib/pipe2.c (pipe2): Reduce code duplication.
4539
4540 2011-04-17  Bruno Haible  <bruno@clisp.org>
4541
4542         nonblocking: Add comment.
4543         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4544
4545 2011-04-17  Bruno Haible  <bruno@clisp.org>
4546
4547         nonblocking: Add tests for sockets.
4548         * tests/test-nonblocking-socket.sh: New file.
4549         * tests/test-nonblocking-socket-main.c: New file.
4550         * tests/test-nonblocking-socket-child.c: New file.
4551         * tests/test-nonblocking-socket.h: New file.
4552         * tests/socket-server.h: New file.
4553         * tests/socket-client.h: New file.
4554         * modules/nonblocking-socket-tests: New file.
4555         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4556
4557 2011-04-17  Bruno Haible  <bruno@clisp.org>
4558
4559         nonblocking: Add tests for pipes.
4560         * tests/test-nonblocking-pipe.sh: New file.
4561         * tests/test-nonblocking-pipe-main.c: New file.
4562         * tests/test-nonblocking-pipe-child.c: New file.
4563         * tests/test-nonblocking-pipe.h: New file.
4564         * tests/test-nonblocking-writer.h: New file.
4565         * tests/test-nonblocking-reader.h: New file.
4566         * tests/test-nonblocking-misc.h: New file.
4567         * modules/nonblocking-pipe-tests: New file.
4568         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4569
4570 2011-04-16  Bruno Haible  <bruno@clisp.org>
4571
4572         gettext: Clarify the needed programmer actions.
4573         * modules/gettext (Notice): New field.
4574         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4575
4576 2011-04-16  Bruno Haible  <bruno@clisp.org>
4577
4578         strchrnul: Tweak last commit.
4579         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4580         bug.
4581         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4582         as in _GL_FUNCDECL_SYS.
4583         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4584         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4585
4586 2011-04-15  Eric Blake  <eblake@redhat.com>
4587
4588         strchrnul: work around cygwin bug
4589         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4590         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4592         * modules/string (Makefile.am): Substitute it.
4593         * lib/string.in.h (strchrnul): Use it.
4594
4595 2011-04-15  Bruno Haible  <bruno@clisp.org>
4596
4597         Don't require lib/stdio-write.c when only module 'stdio' is used.
4598         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4599         invocation.
4600         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4601
4602 2011-04-14  Bruno Haible  <bruno@clisp.org>
4603
4604         Support non-blocking pipe I/O in read() on native Windows.
4605         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4606         (read): New declaration.
4607         * lib/read.c: New file.
4608         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4609         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4610         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4611         vscanf): New declarations.
4612         * lib/stdio-read.c: New file.
4613         * m4/read.m4: New file.
4614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4615         REPLACE_READ.
4616         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4617         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4618         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4619         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4620         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
4621         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4622         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4623         * modules/read: New file.
4624         * modules/nonblocking (Files): Add lib/stdio-read.c.
4625         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4626         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4627         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4628         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4629         * modules/pread (Depends-on): Add read.
4630         * modules/safe-read (Depends-on): Likewise.
4631         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4632         gets, scanf, vfscanf, vscanf): Verify signatures.
4633         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4634         problem with non-blocking pipes.
4635         * doc/posix-functions/fgetc.texi: Likewise.
4636         * doc/posix-functions/fgets.texi: Likewise.
4637         * doc/posix-functions/fread.texi: Likewise.
4638         * doc/posix-functions/fscanf.texi: Likewise.
4639         * doc/posix-functions/getc.texi: Likewise.
4640         * doc/posix-functions/getchar.texi: Likewise.
4641         * doc/posix-functions/gets.texi: Likewise.
4642         * doc/posix-functions/scanf.texi: Likewise.
4643         * doc/posix-functions/vfscanf.texi: Likewise.
4644         * doc/posix-functions/vscanf.texi: Likewise.
4645
4646 2011-04-14  Bruno Haible  <bruno@clisp.org>
4647
4648         Support non-blocking pipe I/O in write() on native Windows.
4649         * lib/write.c (rpl_write): Split a write request that failed merely
4650         because the byte count was larger than the pipe buffer's size.
4651         * doc/posix-functions/write.texi: Mention the problem with large byte
4652         counts.
4653
4654 2011-04-14  Bruno Haible  <bruno@clisp.org>
4655
4656         wchar: Ensure that wchar_t gets defined on uClibc.
4657         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4658         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4659
4660 2011-04-13  Bruno Haible  <bruno@clisp.org>
4661
4662         safe-write, full-read: Avoid unnecessary compilation units.
4663         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4664         (Depends-on): Remove safe-read. Add ssize_t.
4665         * modules/full-read (Files): Add lib/full-write.c.
4666         (Depends-on): Add full-write.
4667
4668 2011-04-13  Bruno Haible  <bruno@clisp.org>
4669
4670         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4671         * modules/pwrite (Depends-on): Add 'write'.
4672
4673 2011-04-13  Bruno Haible  <bruno@clisp.org>
4674
4675         Support non-blocking pipe I/O in write() on native Windows.
4676         * lib/unistd.in.h (write): Enable replacement also if
4677         GNULIB_UNISTD_H_NONBLOCKING is 1.
4678         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4679         (rpl_write): When failing to write on a non-blocking pipe, change
4680         errno from ENOSPC to EAGAIN.
4681         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4682         putchar, puts, vfprintf, vprintf): Enable replacement also if
4683         GNULIB_STDIO_H_NONBLOCKING is 1.
4684         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4685         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4686         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4687         CALL_WITH_SIGPIPE_EMULATION.
4688         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4689         * m4/nonblocking.m4: New file.
4690         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4691         for non-blocking I/O support.
4692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4693         GNULIB_UNISTD_H_NONBLOCKING.
4694         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4695         required for non-blocking I/O support.
4696         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4697         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4698         lib/stdio-write.c, m4/asm-underscore.m4.
4699         (Depends-on): Add stdio, unistd.
4700         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4701         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4702         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4703         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4704         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4705         problem with non-blocking pipes.
4706         * doc/posix-functions/fputc.texi: Likewise.
4707         * doc/posix-functions/fputs.texi: Likewise.
4708         * doc/posix-functions/fwrite.texi: Likewise.
4709         * doc/posix-functions/printf.texi: Likewise.
4710         * doc/posix-functions/putc.texi: Likewise.
4711         * doc/posix-functions/putchar.texi: Likewise.
4712         * doc/posix-functions/puts.texi: Likewise.
4713         * doc/posix-functions/vfprintf.texi: Likewise.
4714         * doc/posix-functions/vprintf.texi: Likewise.
4715         * doc/posix-functions/write.texi: Likewise.
4716
4717 2011-04-10  Jim Meyering  <meyering@redhat.com>
4718
4719         maint.mk: prohibit doubled words
4720         Detect them also when they're separated by a newline.
4721         There are 3 ways to customize it:
4722           - disable the test on a per file basis, as usual with rules using
4723             $(VC_LIST_EXCEPT)
4724           - replace the default doubled-word-selecting regexp (affects all files)
4725           - ignore a particular file-vs-doubled-word match
4726         I nearly used that last one to ignore the "is is" match in
4727         coreutils' NEWS file, since the text was "ls -is is ..."
4728         To do that, I would have added this line to cfg.mk:
4729           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4730         but it would have ignored any "is is" match in NEWS.
4731         Low probability, but still...
4732         Instead, I changed the text, slightly:
4733           -  ls -is is now consistent with ls -lis in ignoring values returned
4734           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4735         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4736         (prohibit_doubled_word_): Define.
4737         (sc_prohibit_doubled_word): New rule.
4738         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4739
4740 2011-04-10  Jim Meyering  <meyering@redhat.com>
4741
4742         maint: fix doubled-word typo in comment
4743         * m4/gethostname.m4: s/is is/it is/
4744         * m4/getdomainname.m4: Likewise.
4745
4746 2011-04-10  Jim Meyering  <meyering@redhat.com>
4747
4748         maint: remove doubled word: s/it it/it/
4749         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4750
4751 2011-04-10  Jim Meyering  <meyering@redhat.com>
4752
4753         maint.mk: remove useless semicolon and backslash
4754         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4755         semicolon and backslash.
4756
4757 2011-04-10  Bruno Haible  <bruno@clisp.org>
4758
4759         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
4760         * modules/stdint-tests (Depends-on): Add wchar.
4761
4762 2011-04-10  Jim Meyering  <meyering@redhat.com>
4763
4764         maint: remove doubled words in comments, e.g., s/a a/a/
4765         * lib/strptime.c (day_of_the_week): s/the the/the/
4766         * tests/test-chown.h (test_chown): s/a a/a/
4767
4768         test-chown.h: correct a cast
4769         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
4770         when the destination is a stat.st_gid.
4771
4772 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
4773
4774         getaddrinfo: Fix test for sa_len member.
4775         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
4776         include <sys/types.h> before <sys/socket.h>.
4777
4778 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
4779
4780         maint: change "can not" to "cannot"
4781         * doc/posix-functions/iconv.texi (iconv): This one crossed line
4782         boundaries.
4783
4784 2011-04-09  Jim Meyering  <meyering@redhat.com>
4785
4786         maint: change "a a" to "a"
4787         * tests/test-lchown.h (test_lchown): s/a a/a/
4788
4789         maint.mk: prohibit \<the the\>
4790         * top/maint.mk (sc_prohibit_the_the): New rule.
4791
4792         maint: fix "the the" in comment
4793         * lib/count-one-bits.h: s/the the/the/
4794
4795         maint: change "can not" to "cannot"
4796         But do not change the occurrences in maintain.texi or in
4797         build-aux/po/Makefile.in.in, which I presume comes from gettext.
4798         * doc/gnulib-tool.texi: s/can not/cannot/
4799         * doc/posix-functions/accept.texi (accept): Likewise.
4800         * doc/posix-functions/socket.texi (socket): Likewise.
4801         * lib/mbrtowc.c: Likewise.
4802
4803         maint.mk: prohibit use of "can not"
4804         * top/maint.mk (sc_prohibit_can_not): New rule.
4805         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
4806
4807 2011-04-09  Bruno Haible  <bruno@clisp.org>
4808
4809         careadlinkat: Guard against misuse of careadlinkatcwd.
4810         * lib/careadlinkat.c: Include <stdlib.h>.
4811         (careadlinkatcwd): Check that the fd argument is as expected.
4812
4813 2011-04-09  Bruno Haible  <bruno@clisp.org>
4814
4815         careadlinkat: Use common coding style.
4816         * lib/careadlinkat.c: Move gnulib includes after system includes.
4817
4818 2011-04-09  Bruno Haible  <bruno@clisp.org>
4819
4820         careadlinkat: Clarify specification.
4821         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
4822         (careadlinkatcwd): Add comment.
4823         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
4824
4825 2011-04-09  Bruno Haible  <bruno@clisp.org>
4826
4827         areadlinkat: Avoid link error on many platforms.
4828         * modules/areadlinkat (Depends-on): Add areadlink.
4829
4830 2011-04-09  Bruno Haible  <bruno@clisp.org>
4831
4832         allocator, careadlinkat: Fix double-inclusion guard.
4833         * lib/allocator.h: Fix double-inclusion guard.
4834         * lib/careadlinkat.h: Likewise.
4835
4836 2011-04-09  Bruno Haible  <bruno@clisp.org>
4837
4838         relocatable-prog-wrapper: Update after module 'areadlink' changed.
4839         * lib/relocwrapper.c: Update dependencies hierarchy.
4840         * build-aux/install-reloc: Update list of files to be compiled.
4841         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
4842         lib/allocator.[hc].
4843
4844 2011-04-08  Eric Blake  <eblake@redhat.com>
4845
4846         strftime: silence gnulib-tool warning
4847         * modules/strftime-tests (Depends-on): Drop automatic dependency.
4848
4849 2011-04-08  Bruno Haible  <bruno@clisp.org>
4850
4851         verify: Fix syntax error with GCC 4.6 in C++ mode.
4852         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
4853         (HAVE_STATIC_ASSERT): New macro.
4854         (verify_true, verify): Use 'static_assert' if it is supported and
4855         '_Static_assert' is not supported.
4856
4857 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4858
4859         allocator: New module.
4860         * modules/allocator, lib/allocator.c: New files.
4861         * lib/allocator.h (stdlib_allocator): New decl.
4862         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
4863         Remove.  Do not include <stdlib.h>.
4864         (careadlinkat): Use stdlib_allocator instead of rolling our own.
4865         * modules/careadlinkat (Files): Remove lib/allocator.h.
4866         (Depends-on): Add allocator.
4867
4868         stdlib: let modules use system malloc, realloc
4869         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
4870         if !_GL_USE_STDLIB_ALLOC.
4871         (malloc, realloc): Limit this change to a smaller scope.
4872
4873         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
4874         (malloc, realloc): Don't #undef; no longer needed.
4875         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4876         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4877         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4878         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4879         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4880         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4881         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4882         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4883
4884         careadlinkat: rename members to avoid problem
4885         * lib/allocator.h (struct allocator): Rename members from
4886         malloc/realloc to allocate/reallocate, to avoid problems if malloc
4887         and realloc are #define'd.  Reported by Eric Blake in
4888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
4889         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
4890
4891 2011-04-08  Eric Blake  <eblake@redhat.com>
4892
4893         nonblocking: reduce dependency
4894         * tests/test-nonblocking.c: Only test sockets when in use.
4895         * modules/nonblocking-tests (Depends-on): Drop socket.
4896         (Makefile.am): Link even if sockets are not present.
4897         * modules/pipe2-tests (Makefile.am): Likewise.
4898         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
4899
4900         pipe2: fix O_NONBLOCK support on mingw
4901         * modules/pipe2 (Depends-on): Add nonblocking.
4902         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
4903         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
4904         * tests/test-nonblocking.c (main): Likewise.
4905         * modules/pipe2-tests (Makefile.am): Avoid link failure.
4906
4907         fcntl-h: fix O_ACCMODE on cygwin
4908         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
4909         * lib/fcntl.in.h (O_ACCMODE): Fix it.
4910
4911         pipe-filter: drop O_NONBLOCK workarounds
4912         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
4913         * modules/pipe-filter-ii (Depends-on): Likewise.
4914         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
4915
4916         nonblocking: provide O_NONBLOCK for mingw
4917         * modules/nonblocking (Depends-on): Add open.
4918         (configure.ac): Set new witness macro.
4919         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
4920         * modules/fcntl-h (Makefile.am): Substitute it.
4921         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
4922         nonblocking module is in use.
4923         * lib/nonblocking.c: Adjust portability test.
4924         * lib/open.c (open): Don't let native open see gnulib flag.
4925         * tests/test-fcntl-h.c (main): Enhance test.
4926         * tests/test-open.h (test_open): Likewise.
4927         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
4928
4929         careadlinkat: fix compilation error on mingw
4930         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
4931         within struct allocator.
4932
4933 2011-04-06  Eric Blake  <eblake@redhat.com>
4934
4935         binary-io: relicense under LGPLv2+
4936         * modules/binary-io (License): Relax to LGPLv2+.
4937         Requested for libvirt, and required by pipe2.
4938
4939 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4940
4941         verify: use _Static_assert if available
4942         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
4943         (verify_true, verify): Use it if available.  This generates better
4944         diagnostics with GCC 4.6.0 and later.
4945
4946 2011-04-05  Bruno Haible  <bruno@clisp.org>
4947
4948         Remove leftover generated .h files after config.status changed.
4949
4950         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
4951         GL_GENERATE_ALLOCA_H.
4952         * modules/alloca-opt (Makefile.am): Remove alloca.h if
4953         GL_GENERATE_ALLOCA_H evaluates to false.
4954
4955         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4956         GL_GENERATE_ARGZ_H.
4957         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4958         evaluates to false.
4959
4960         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4961         GL_GENERATE_BYTESWAP_H.
4962         * modules/byteswap (Makefile.am): Remove byteswap.h if
4963         GL_GENERATE_BYTESWAP_H evaluates to false.
4964
4965         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4966         GL_GENERATE_ERRNO_H.
4967         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4968         evaluates to false.
4969
4970         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4971         GL_GENERATE_FLOAT_H.
4972         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4973         evaluates to false.
4974
4975         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4976         GL_GENERATE_FNMATCH_H.
4977         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4978         GL_GENERATE_FNMATCH_H evaluates to false.
4979
4980         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4981         GL_GENERATE_GLOB_H.
4982         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4983         evaluates to false.
4984
4985         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4986         automake conditional GL_GENERATE_ICONV_H.
4987         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4988         evaluates to false.
4989
4990         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4991         GL_GENERATE_NETINET_IN_H.
4992         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4993         GL_GENERATE_NETINET_IN_H evaluates to false.
4994
4995         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
4996         conditional GL_GENERATE_PTHREAD_H.
4997         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
4998         * modules/pthread (Makefile.am): Remove pthread.h if
4999         GL_GENERATE_PTHREAD_H evaluates to false.
5000
5001         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
5002         GL_GENERATE_SCHED_H.
5003         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
5004         evaluates to false.
5005
5006         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
5007         conditional GL_GENERATE_SELINUX_CONTEXT_H.
5008         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
5009         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
5010
5011         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
5012         GL_GENERATE_STDARG_H.
5013         * modules/stdarg (Makefile.am): Remove stdarg.h if
5014         GL_GENERATE_STDARG_H evaluates to false.
5015
5016         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
5017         GL_GENERATE_STDBOOL_H.
5018         * modules/stdbool (Makefile.am): Remove stdbool.h if
5019         GL_GENERATE_STDBOOL_H evaluates to false.
5020
5021         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
5022         conditional GL_GENERATE_STDDEF_H.
5023         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
5024         * modules/stddef (Makefile.am): Remove stddef.h if
5025         GL_GENERATE_STDDEF_H evaluates to false.
5026
5027         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
5028         GL_GENERATE_STDINT_H.
5029         * modules/stdint (Makefile.am): Remove stdint.h if
5030         GL_GENERATE_STDINT_H evaluates to false.
5031
5032         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
5033         GL_GENERATE_SYSEXITS_H.
5034         * modules/sysexits (Makefile.am): Remove sysexits.h if
5035         GL_GENERATE_SYSEXITS_H evaluates to false.
5036
5037         Reported by Karl Berry and Ralf Wildenhues.
5038
5039 2011-04-05  Bruno Haible  <bruno@clisp.org>
5040
5041         Ensure to rebuild generated .h files when config.status has changed.
5042         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
5043         config.status.
5044         * modules/ctype (Makefile.am): Likewise.
5045         * modules/dirent (Makefile.am): Likewise.
5046         * modules/errno (Makefile.am): Likewise.
5047         * modules/fcntl-h (Makefile.am): Likewise.
5048         * modules/float (Makefile.am): Likewise.
5049         * modules/getopt-posix (Makefile.am): Likewise.
5050         * modules/glob (Makefile.am): Likewise.
5051         * modules/iconv-h (Makefile.am): Likewise.
5052         * modules/inttypes (Makefile.am): Likewise.
5053         * modules/langinfo (Makefile.am): Likewise.
5054         * modules/locale (Makefile.am): Likewise.
5055         * modules/math (Makefile.am): Likewise.
5056         * modules/netdb (Makefile.am): Likewise.
5057         * modules/netinet_in (Makefile.am): Likewise.
5058         * modules/poll-h (Makefile.am): Likewise.
5059         * modules/pthread (Makefile.am): Likewise.
5060         * modules/pty (Makefile.am): Likewise.
5061         * modules/sched (Makefile.am): Likewise.
5062         * modules/search (Makefile.am): Likewise.
5063         * modules/selinux-h (Makefile.am): Likewise.
5064         * modules/signal (Makefile.am): Likewise.
5065         * modules/spawn (Makefile.am): Likewise.
5066         * modules/stdarg (Makefile.am): Likewise.
5067         * modules/stdbool (Makefile.am): Likewise.
5068         * modules/stddef (Makefile.am): Likewise.
5069         * modules/stdint (Makefile.am): Likewise.
5070         * modules/stdio (Makefile.am): Likewise.
5071         * modules/stdlib (Makefile.am): Likewise.
5072         * modules/string (Makefile.am): Likewise.
5073         * modules/strings (Makefile.am): Likewise.
5074         * modules/sys_file (Makefile.am): Likewise.
5075         * modules/sys_ioctl (Makefile.am): Likewise.
5076         * modules/sys_select (Makefile.am): Likewise.
5077         * modules/sys_socket (Makefile.am): Likewise.
5078         * modules/sys_stat (Makefile.am): Likewise.
5079         * modules/sys_time (Makefile.am): Likewise.
5080         * modules/sys_times (Makefile.am): Likewise.
5081         * modules/sys_utsname (Makefile.am): Likewise.
5082         * modules/sys_wait (Makefile.am): Likewise.
5083         * modules/sysexits (Makefile.am): Likewise.
5084         * modules/termios (Makefile.am): Likewise.
5085         * modules/time (Makefile.am): Likewise.
5086         * modules/unistd (Makefile.am): Likewise.
5087         * modules/wchar (Makefile.am): Likewise.
5088         * modules/wctype-h (Makefile.am): Likewise.
5089         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5090
5091 2011-04-05  Bruno Haible  <bruno@clisp.org>
5092
5093         pipe2: Relicense under LGPLv2+.
5094         * modules/pipe2 (License): Change to LGPLv2+.
5095         Requested by Eric Blake, for libvirt.
5096
5097 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5098
5099         bootstrap: compute gnulib_extra_files after updating build_aux
5100         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5101         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5102
5103 2011-04-05  Eric Blake  <eblake@redhat.com>
5104
5105         bootstrap: preserve git whitelist item sorting
5106         * build-aux/bootstrap (sort_patterns): New function.
5107         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5108
5109 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5110
5111         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5112         sc_space_tab check.
5113
5114 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5115
5116         areadlink, areadlinkat: rewrite in terms of careadlinkat
5117         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5118         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5119         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5120         (malloc, realloc): Remove #undefs.
5121         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5122         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5123         readlink, ssize_t, stdint, unistd.
5124         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5125         areadlink, stdint.
5126
5127         careadlinkat: new module
5128         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5129         * modules/careadlinkat: New files, written by me with
5130         a review and feedback from Ben Pfaff in
5131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5132
5133 2011-04-01  Bruno Haible  <bruno@clisp.org>
5134
5135         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5136         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5137         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5138         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5139         Reported by Bruce Korb <bruce.korb@gmail.com>.
5140
5141 2011-04-01  Bruno Haible  <bruno@clisp.org>
5142
5143         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5144         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5145         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5146         * modules/wcpcpy (Depends-on): Add extensions.
5147         * modules/wcpncpy (Depends-on): Likewise.
5148         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5149         systems.
5150         * doc/posix-functions/wcpncpy.texi: Likewise.
5151         * doc/posix-functions/wcwidth.texi: Likewise.
5152
5153 2011-03-31  Eric Blake  <eblake@redhat.com>
5154
5155         nonblocking: fix mingw test failures
5156         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5157         non-blocking flag on regular file.
5158         (get_nonblocking_flag): Set errno on invalid fd.
5159         * tests/test-nonblocking.c (main): Avoid test failure on
5160         directories if fchdir is not active.
5161         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5162
5163 2011-03-31  Bruno Haible  <bruno@clisp.org>
5164
5165         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5166         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5167         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5168         Reported by Simon Josefsson <simon@josefsson.org>.
5169
5170 2011-03-31  Bruno Haible  <bruno@clisp.org>
5171         and Eric Blake  <eblake@redhat.com>
5172
5173         nonblocking: new module
5174         * modules/nonblocking: New module.
5175         * modules/nonblocking-tests: Likewise.
5176         * lib/nonblocking.h: New file.
5177         * lib/nonblocking.c: Likewise.
5178         * tests/test-nonblocking.c: New test.
5179         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5180
5181 2011-03-30  Bruno Haible  <bruno@clisp.org>
5182
5183         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5184         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5185         instead of 'printf' format for GCC >= 4.4.
5186         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5187         (fprintf, printf, vfprintf, vprintf): Declare with
5188         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5189         the system's vfprintf() function.
5190         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5191
5192 2011-03-30  Eric Blake  <eblake@redhat.com>
5193
5194         passfd: fix scoping bug
5195         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5196         before sendmsg/recvmsg.
5197
5198         passfd: standardize coding conventions
5199         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5200         can be learned at compile time.
5201         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5202         ifdefs.
5203         (sendfd, recvfd): Follow gnulib code conventions.
5204
5205         passfd: fix incorrect sendmsg arguments
5206         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5207         incorrect msg_controllen value.
5208         * modules/passfd-tests (Depends-on): Check for alarm.
5209         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5210         Reported by Bastien ROUCARIES.
5211
5212 2011-03-30  Bruno Haible  <bruno@clisp.org>
5213
5214         c-strcasestr: Relicense under LGPLv2+.
5215         * modules/c-strcasestr (License): Change to LGPLv2+.
5216         Requested by Eric Blake, for libvirt.
5217
5218 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5219
5220         * users.txt: Add libidn2.  Fix libtasn1 link.
5221
5222 2011-03-30  Jim Meyering  <meyering@redhat.com>
5223
5224         tests: readlink* ("",... fails with EINVAL on newer kernels
5225         readlink and readlinkat have typically failed with ENOENT for
5226         the invalid, empty file name,  "".  However, with the advent
5227         of linux-2.6.39, they fail with EINVAL.
5228         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5229         when operating on the empty file name.
5230         * tests/test-readlink.h (test_readlink): Likewise.
5231
5232 2011-03-29  Bruno Haible  <bruno@clisp.org>
5233
5234         Relicense some modules under LGPLv2+, for libidn2.
5235         * modules/array-mergesort (License): Change to LGPLv2+.
5236         * modules/c-strcaseeq (License): Likewise.
5237         * modules/striconveh (License): Likewise.
5238         * modules/striconveha (License): Likewise.
5239         * modules/uniconv/base (License): Likewise.
5240         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5241         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5242         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5243         * modules/unictype/base (License): Likewise.
5244         * modules/unictype/bidiclass-of (License): Likewise.
5245         * modules/unictype/category-M (License): Likewise.
5246         * modules/unictype/category-none (License): Likewise.
5247         * modules/unictype/category-of (License): Likewise.
5248         * modules/unictype/category-test (License): Likewise.
5249         * modules/unictype/category-test-withtable (License): Likewise.
5250         * modules/unictype/combining-class (License): Likewise.
5251         * modules/unictype/joiningtype-of (License): Likewise.
5252         * modules/unictype/scripts (License): Likewise.
5253         * modules/uninorm/base (License): Likewise.
5254         * modules/uninorm/canonical-decomposition (License): Likewise.
5255         * modules/uninorm/composition (License): Likewise.
5256         * modules/uninorm/decompose-internal (License): Likewise.
5257         * modules/uninorm/decomposition-table (License): Likewise.
5258         * modules/uninorm/nfc (License): Likewise.
5259         * modules/uninorm/nfd (License): Likewise.
5260         * modules/uninorm/u32-normalize (License): Likewise.
5261         * modules/unistr/base (License): Likewise.
5262         * modules/unistr/u32-cpy (License): Likewise.
5263         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5264         * modules/unistr/u32-to-u8 (License): Likewise.
5265         * modules/unistr/u32-uctomb (License): Likewise.
5266         * modules/unistr/u8-check (License): Likewise.
5267         * modules/unistr/u8-mblen (License): Likewise.
5268         * modules/unistr/u8-mbtouc (License): Likewise.
5269         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5270         * modules/unistr/u8-mbtoucr (License): Likewise.
5271         * modules/unistr/u8-prev (License): Likewise.
5272         * modules/unistr/u8-strlen (License): Likewise.
5273         * modules/unistr/u8-to-u32 (License): Likewise.
5274         * modules/unistr/u8-uctomb (License): Likewise.
5275         * modules/unitypes (License): Likewise.
5276         Requested by Simon Josefsson.
5277
5278 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5279
5280         lib-symbol-visibility: Add a notice.
5281         * modules/lib-symbol-visibility (Notice): New field.
5282
5283 2011-03-29  Bruno Haible  <bruno@clisp.org>
5284
5285         getaddrinfo: Doc fix.
5286         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5287         section "fixed in Gnulib".
5288
5289 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5290
5291         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5292         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5293
5294 2011-03-26  Bruno Haible  <bruno@clisp.org>
5295
5296         unictype/property-byname: Reduce the number of load-time relocations.
5297         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5298         (UC_PROPERTY_INDEX_*): New enumeration values.
5299         (uc_property_byname): Convert an index from the lookup table to an
5300         uc_property_t.
5301         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5302         values.
5303
5304 2011-03-26  Bruno Haible  <bruno@clisp.org>
5305
5306         unictype/property-byname: Allow omitted word separators and aliases.
5307         * lib/unictype/pr_byname.gperf: Add property names without word
5308         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5309         for 'space'.
5310
5311 2011-03-26  Bruno Haible  <bruno@clisp.org>
5312
5313         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5314         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5315         also hyphens to space.
5316         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5317         without spaces.
5318         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5319
5320 2011-03-26  Bruno Haible  <bruno@clisp.org>
5321
5322         unictype/joiningtype-byname: Recognize long names as well.
5323         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5324         a long name.
5325         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5326         unictype/joiningtype_byname.h.
5327         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5328         * lib/unictype/joiningtype_byname.gperf: New file.
5329         * modules/unictype/joiningtype-byname (Files): Add
5330         lib/unictype/joiningtype_byname.gperf.
5331         (Depends-on): Add gperf.
5332         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5333         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5334         long names.
5335
5336         Tests for module 'unictype/joiningtype-longname'.
5337         * modules/unictype/joiningtype-longname-tests: New file.
5338         * tests/unictype/test-joiningtype_longname.c: New file.
5339
5340         New module 'unictype/joiningtype-longname'.
5341         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5342         * lib/unictype/joiningtype_longname.c: New file.
5343         * modules/unictype/joiningtype-longname: New file.
5344         * modules/unictype/joiningtype-all (Depends-on): Add
5345         unictype/joiningtype-longname.
5346
5347 2011-03-26  Bruno Haible  <bruno@clisp.org>
5348
5349         unictype/bidiclass-byname: Recognize long names as well.
5350         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5351         name.
5352         * lib/unictype/bidi_byname.c: Include <string.h>,
5353         unictype/bidi_byname.h.
5354         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5355         * lib/unictype/bidi_byname.gperf: New file.
5356         * modules/unictype/bidiclass-byname (Files): Add
5357         lib/unictype/bidi_byname.gperf.
5358         (Depends-on): Add gperf.
5359         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5360         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5361         long names.
5362
5363         Tests for module 'unictype/bidiclass-longname'.
5364         * modules/unictype/bidiclass-longname-tests: New file.
5365         * tests/unictype/test-bidi_longname.c: New file.
5366
5367         New module 'unictype/bidiclass-longname'.
5368         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5369         * lib/unictype/bidi_longname.c: New file.
5370         * modules/unictype/bidiclass-longname: New file.
5371         * modules/unictype/bidiclass-all (Depends-on): Add
5372         unictype/bidiclass-longname.
5373
5374 2011-03-26  Bruno Haible  <bruno@clisp.org>
5375
5376         unictype/bidi*: Rename modules.
5377         * modules/unictype/bidiclass-all: Renamed from
5378         modules/unictype/bidicategory-all.
5379         * modules/unictype/bidiclass-name: Renamed from
5380         modules/unictype/bidiclass-name.
5381         (Description): Update.
5382         * modules/unictype/bidiclass-name-tests: Renamed from
5383         modules/unictype/bidicategory-name-tests.
5384         * modules/unictype/bidiclass-byname: Renamed from
5385         modules/unictype/bidicategory-byname.
5386         (Description): Update.
5387         * modules/unictype/bidiclass-byname-tests: Renamed from
5388         modules/unictype/bidicategory-byname-tests.
5389         * modules/unictype/bidiclass-of: Renamed from
5390         modules/unictype/bidicategory-of.
5391         (Description): Update.
5392         * modules/unictype/bidiclass-of-tests: Renamed from
5393         modules/unictype/bidicategory-of-tests.
5394         * modules/unictype/bidiclass-test: Renamed from
5395         modules/unictype/bidicategory-test.
5396         (Description): Update.
5397         * modules/unictype/bidiclass-test-tests: Renamed from
5398         modules/unictype/bidicategory-test-tests.
5399         * modules/unictype/bidicategory-all: New file, a simple redirection.
5400         * modules/unictype/bidicategory-name: Likewise.
5401         * modules/unictype/bidicategory-byname: Likewise.
5402         * modules/unictype/bidicategory-of: Likewise.
5403         * modules/unictype/bidicategory-test: Likewise.
5404         * modules/unictype/property-bidi-* (Dependencies): Update.
5405         * lib/unictype/bidi_*.c: Update comment.
5406
5407 2011-03-26  Bruno Haible  <bruno@clisp.org>
5408
5409         unictype/bidi*: Rename functions, part 2.
5410         * modules/unictype/bidicategory-name (configure.ac): Update required
5411         libunistring version.
5412         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5413
5414 2011-03-25  Bruno Haible  <bruno@clisp.org>
5415
5416         New module 'unictype/combining-class-all'.
5417         * modules/unictype/combining-class-all: New file.
5418
5419         Tests for module 'unictype/combining-class-byname'.
5420         * modules/unictype/combining-class-byname-tests: New file.
5421         * tests/unictype/test-combiningclass_byname.c: New file.
5422
5423         New module 'unictype/combining-class-byname'.
5424         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5425         * lib/unictype/combiningclass_byname.c: New file.
5426         * lib/unictype/combiningclass_byname.gperf: New file.
5427         * modules/unictype/combining-class-byname: New file.
5428
5429         Tests for module 'unictype/combining-class-longname'.
5430         * modules/unictype/combining-class-longname-tests: New file.
5431         * tests/unictype/test-combiningclass_longname.c: New file.
5432
5433         New module 'unictype/combining-class-longname'.
5434         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5435         * lib/unictype/combiningclass_longname.c: New file.
5436         * modules/unictype/combining-class-longname: New file.
5437
5438         Tests for module 'unictype/combining-class-name'.
5439         * modules/unictype/combining-class-name-tests: New file.
5440         * tests/unictype/test-combiningclass_name.c: New file.
5441
5442         New module 'unictype/combining-class-name'.
5443         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5444         * lib/unictype/combiningclass_name.c: New file.
5445         * modules/unictype/combining-class-name: New file.
5446
5447 2011-03-25  Bruno Haible  <bruno@clisp.org>
5448
5449         unictype/combining-class: Rename source files.
5450         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5451         of unictype/combining.h.
5452         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5453         Update.
5454         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5455         * modules/unictype/combining-class (Description): Fix.
5456         (Files, Makefile.am): Update.
5457         * tests/unictype/test-combiningclass.c: Renamed from
5458         tests/unictype/test-combining.c.
5459         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5460
5461 2011-03-25  Bruno Haible  <bruno@clisp.org>
5462
5463         unictype: Update list of canonical combining classes.
5464         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5465
5466 2011-03-25  Bruno Haible  <bruno@clisp.org>
5467
5468         unictype/category-byname: Recognize long names as well.
5469         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5470         a long name.
5471         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5472         unictype/categ_byname.h.
5473         (UC_CATEGORY_INDEX_*): New enumeration values.
5474         (uc_general_category_byname): Use uc_general_category_lookup and
5475         convert from index to value.
5476         * lib/unictype/categ_byname.gperf: New file.
5477         * modules/unictype/category-byname (Files): Add
5478         lib/unictype/categ_byname.gperf.
5479         (Depends-on): Add gperf.
5480         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5481         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5482         long names.
5483
5484         Tests for module 'unictype/category-longname'.
5485         * modules/unictype/category-longname-tests: New file.
5486         * tests/unictype/test-categ_longname.c: New file.
5487
5488         New module 'unictype/category-longname'.
5489         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5490         * lib/unictype/categ_longname.c: New file.
5491         * modules/unictype/category-longname: New file.
5492         * modules/unictype/category-all (Depends-on): Add it.
5493
5494 2011-03-25  Bruno Haible  <bruno@clisp.org>
5495
5496         Tests for module 'unictype/category-LC'.
5497         * modules/unictype/category-LC-tests: New file.
5498         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5499
5500         New module 'unictype/category-LC'.
5501         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5502         (UC_CATEGORY_LC): New declaration.
5503         (UC_CASED_LETTER): New macro.
5504         * lib/gen-uni-tables.c (is_category_LC): New function.
5505         (output_categories): Also handle category LC.
5506         (UC_CATEGORY_MASK_LC): New enumeration value.
5507         (general_category_byname): Also handle category LC.
5508         * lib/unictype/categ_LC.c: New file.
5509         * lib/unictype/categ_LC.h: New file, automatically generated.
5510         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5511         category LC.
5512         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5513         * modules/unictype/category-LC: New file.
5514         * modules/unictype/category-byname (Depends-on): Add
5515         unictype/category-LC.
5516         * modules/unictype/category-all (Depends-on): Likewise.
5517
5518 2011-03-25  Eric Blake  <eblake@redhat.com>
5519
5520         xmalloc: revert yesterday's regression
5521         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5522         realloc's underlying behavior (allowing allocation of zero-size
5523         objects, especially if malloc-gnu is also in use).
5524
5525 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5526
5527         maint.mk: add missing version to VC-tag
5528         * top/maint.mk: git tag was missing actual tag name; add it.
5529
5530         valgrind: do leak checking, and exit with code 1 on error (not 0)
5531         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5532         to VALGRIND.
5533
5534 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5535
5536         posix-modules: say what it does.
5537         * posix-modules: Add a line to the --help output saying what it does.
5538
5539 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5540
5541         xmalloc: Do not leak if underlying realloc is C99 compatible.
5542         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5543         This avoids a leak on C99-based systems.  See
5544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5545
5546 2011-03-24  Eric Blake  <eblake@redhat.com>
5547
5548         realloc: document portability problem
5549         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5550         passing 0 size to realloc.
5551
5552 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5553
5554         doc: update users.txt
5555         * users.txt: Add cvsps, tmpwatch
5556
5557 2011-03-23  Matt Rice  <ratmice@gmail.com>
5558
5559         doc: update users.txt
5560         * users.txt: Add gdb.
5561
5562 2011-03-23  Jim Meyering  <meyering@redhat.com>
5563
5564         doc: update users.txt
5565         Looking through matches up to the following URL (there are still
5566         several more pages), I found several projects that use gnulib:
5567         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5568         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5569         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5570
5571 2011-03-22  Bruno Haible  <bruno@clisp.org>
5572
5573         unictype/bidi*: Rename functions.
5574         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5575         uc_bidi_class, uc_is_bidi_class): New declarations.
5576         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5577         uc_bidi_category_byname.
5578         (uc_bidi_category_byname): New function.
5579         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5580         u_bidi_category_name.
5581         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5582         (uc_bidi_category_name): New function.
5583         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5584         uc_bidi_category.
5585         (uc_bidi_category): New function.
5586         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5587         uc_is_bidi_category. Invoke uc_bidi_class.
5588         (uc_is_bidi_category): New function.
5589         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5590         instead of uc_bidi_category_byname.
5591         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5592         instead of uc_bidi_category_name.
5593         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5594         uc_bidi_category.
5595         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5596         instead of uc_is_bidi_category.
5597
5598 2011-03-21  Bruno Haible  <bruno@clisp.org>
5599
5600         New module 'unictype/joininggroup-all'.
5601         * modules/unictype/joininggroup-all: New file.
5602
5603         Tests for module 'unictype/joininggroup-of'.
5604         * modules/unictype/joininggroup-of-tests: New file.
5605         * tests/unictype/test-joininggroup_of.c: New file.
5606         * tests/unictype/test-joininggroup_of.h: New file, automatically
5607         generated by gen-uni-tables.
5608
5609         New module 'unictype/joininggroup-of'.
5610         * modules/unictype/joininggroup-of: New file.
5611         * lib/unictype/joininggroup_of.c: New file.
5612         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5613         gen-uni-tables.
5614
5615         Tests for module 'unictype/joininggroup-byname'.
5616         * modules/unictype/joininggroup-byname-tests: New file.
5617         * tests/unictype/test-joininggroup_byname.c: New file.
5618
5619         New module 'unictype/joininggroup-byname'.
5620         * modules/unictype/joininggroup-byname: New file.
5621         * lib/unictype/joininggroup_byname.c: New file.
5622         * lib/unictype/joininggroup_byname.gperf: New file.
5623
5624         Tests for module 'unictype/joininggroup-name'.
5625         * modules/unictype/joininggroup-name-tests: New file.
5626         * tests/unictype/test-joininggroup_name.c: New file.
5627
5628         New module 'unictype/joininggroup-name'.
5629         * modules/unictype/joininggroup-name: New file.
5630         * lib/unictype/joininggroup_name.c: New file.
5631         * lib/unictype/joininggroup_name.h: New file.
5632
5633         New module 'unictype/joiningtype-all'.
5634         * modules/unictype/joiningtype-all: New file.
5635
5636         Tests for module 'unictype/joiningtype-of'.
5637         * modules/unictype/joiningtype-of-tests: New file.
5638         * tests/unictype/test-joiningtype_of.c: New file.
5639         * tests/unictype/test-joiningtype_of.h: New file, automatically
5640         generated by gen-uni-tables.
5641
5642         New module 'unictype/joiningtype-of'.
5643         * modules/unictype/joiningtype-of: New file.
5644         * lib/unictype/joiningtype_of.c: New file.
5645         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5646         gen-uni-tables.
5647
5648         Tests for module 'unictype/joiningtype-byname'.
5649         * modules/unictype/joiningtype-byname-tests: New file.
5650         * tests/unictype/test-joiningtype_byname.c: New file.
5651
5652         New module 'unictype/joiningtype-byname'.
5653         * modules/unictype/joiningtype-byname: New file.
5654         * lib/unictype/joiningtype_byname.c: New file.
5655
5656         Tests for module 'unictype/joiningtype-name'.
5657         * modules/unictype/joiningtype-name-tests: New file.
5658         * tests/unictype/test-joiningtype_name.c: New file.
5659
5660         New module 'unictype/joiningtype-name'.
5661         * modules/unictype/joiningtype-name: New file.
5662         * lib/unictype/joiningtype_name.c: New file.
5663
5664         unictype: Add support for Arabic shaping properties.
5665         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5666         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5667         declarations.
5668         (UC_JOINING_GROUP_*): New enumeration values.
5669         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5670         declarations.
5671         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5672         (unicode_joining_type): New variable.
5673         (UC_JOINING_GROUP_*): New enumeration values.
5674         (unicode_joining_group): New variable.
5675         (fill_arabicshaping, joining_type_as_c_identifier,
5676         output_joining_type_test, output_joining_type,
5677         joining_group_as_c_identifier, output_joining_group_test,
5678         output_joining_group): New functions.
5679         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5680         fill_arabicshaping and output_joining_type_test, output_joining_type,
5681         output_joining_group_test, output_joining_group.
5682         Reported by Simon Josefsson.
5683
5684 2011-03-21  Jim Meyering  <meyering@redhat.com>
5685
5686         strftime: fix a bug in yesterday's change
5687         * lib/strftime.c (add): Accommodate width's initial value of -1.
5688         Otherwise, nstrftime would copy uninitialized data into
5689         the result buffer.
5690
5691 2011-03-21  Jim Meyering  <meyering@redhat.com>
5692
5693         tests: add strftime-tests module
5694         * tests/test-strftime.c: New file.
5695         * modules/strftime-tests: New module.
5696
5697 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5698
5699         strftime: don't assume a byte count fits in 'int'
5700         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5701         found this problem by static analysis, using gcc -Wstrict-overflow
5702         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5703         on an integer overflow having undefined behavior, but it turns out
5704         that the argument is a size, which might not fit in 'int' anyway,
5705
5706 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5707
5708         stdio: don't require ignore_value around fwrite
5709
5710         This patch works around libc bug 11959
5711         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5712         Without this patch, applications must often write
5713         ignore_value (fwrite (...)) even though the ignore_value is
5714         not helpful here.  It's common to write many objects, using
5715         fwrite/printf/etc., and then use ferror to detect output error.
5716
5717         I considered making this patch optional, but decided against it,
5718         because libc is obviously being inconsistent here: there is no
5719         reason libc should insist that user code must inspect fwrite
5720         return's value without also insisting that it inspect printf's,
5721         putchar's, etc.  If user code wants to have a strict style where
5722         all these functions' values are checked (so that ferror need not
5723         be checked), we could add support for that style in a new gnulib
5724         module, but in the meantime it's better to be consistent and to
5725         support common usage.
5726
5727         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5728         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5729         that we are compiling in checking mode, and if not C++, and
5730         if not already wrapping fwrite for some other reason.
5731         (fwrite): #define to rpl_fwrite if the latter is defined.
5732
5733 2011-03-20  Bruno Haible  <bruno@clisp.org>
5734
5735         verror: Fix compilation error introduced on 2011-02-13.
5736         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5737         instead of __attribute__.
5738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5739
5740 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5741             Bruno Haible  <bruno@clisp.org>
5742
5743         socklen: do not depend on sys_socket
5744         While trying to modify Emacs to use gnulib's socklen module,
5745         I discovered a circular dependency: socklen depends on sys_socket
5746         and vice versa.  Emacs can use socklen, but it does not need
5747         sys_socket because it has its own substitute for sys/socket.h.
5748         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5749         gl_TYPE_SOCKLEN_T.
5750         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5751         gl_PREREQ_SYS_H_SOCKET.
5752         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5753         gl_PREREQ_SYS_H_SOCKET.
5754         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5755         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5756         * modules/socklen (Depends-on): Do not depend on sys_socket.
5757         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5758
5759 2011-03-20  Jim Meyering  <meyering@redhat.com>
5760
5761         maint.mk: sort file names *after* new transformation
5762         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
5763         prefix would have led to an unwarranted failure in GNU parted.
5764         Sort after that transformation.
5765
5766 2011-03-19  Jim Meyering  <meyering@redhat.com>
5767
5768         maint.mk: fix po-file syntax-check rule
5769         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
5770         Patch by Bruno Haible.
5771
5772 2011-03-19  Bruno Haible  <bruno@clisp.org>
5773
5774         socklen: Update comment.
5775         * m4/socklen.m4: Update comment about platforms.
5776
5777 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5778             Bruno Haible  <bruno@clisp.org>
5779
5780         inet_ntop, inet_pton: Simplify.
5781         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
5782         documented to provide socklen_t and we already depend on sys_socket.
5783         * modules/inet_pton (Depends-on): Likewise.
5784         * lib/arpa_inet.in.h: Adjust comment.
5785
5786 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5787             Bruno Haible  <bruno@clisp.org>
5788
5789         netdb: Simplify.
5790         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
5791         documented to provide socklen_t and we already depend on sys_socket.
5792         * lib/netdb.in.h: Adjust comment.
5793
5794 2011-03-19  Bruno Haible  <bruno@clisp.org>
5795
5796         sys_socket, netdb: Document problem with socklen_t.
5797         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
5798         platforms.
5799         * doc/posix-headers/netdb.texi: Likewise.
5800
5801 2011-03-18  Eric Blake  <eblake@redhat.com>
5802
5803         maint.mk: let po check work in VPATH build
5804         * top/maint.mk (po_file): Allow cfg.mk override.
5805         (sc_po_check): Allow VPATH use.
5806         Reported by Jiri Denemark.
5807
5808 2011-03-16  Jim Meyering  <meyering@redhat.com>
5809
5810         maint.mk: allow fine-grained syntax-check exclusion via Make variables
5811         Before, you would have had to create one .x-sc_ file per rule in order
5812         to exempt offending files.  Now, you may instead use a Make variable --
5813         usually defined in cfg.mk -- whose name identifies the affected rule.
5814         * top/maint.mk (_sc_excl): Define.
5815         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
5816         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
5817
5818 2011-03-13  Bruno Haible  <bruno@clisp.org>
5819
5820         ignore-value tests: Avoid warnings.
5821         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
5822         empty for gcc < 3.4.
5823
5824 2011-03-13  Bruno Haible  <bruno@clisp.org>
5825
5826         passfd: Fix link error on Solaris.
5827         * modules/passfd (Description): Correct.
5828         (Depends-on): Add socketlib.
5829         (Link): New section.
5830         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
5831
5832 2011-03-13  Bruno Haible  <bruno@clisp.org>
5833
5834         passfd: Fix link error on AIX 5.2.
5835         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
5836
5837 2011-03-13  Bruno Haible  <bruno@clisp.org>
5838
5839         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
5840         * lib/sys_socket.in.h: Include <stddef.h>.
5841         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
5842         CMSG_FIRSTHDR. Remove unused variable.
5843
5844 2011-03-13  Bruno Haible  <bruno@clisp.org>
5845
5846         passfd: Fix compilation error on OpenBSD.
5847         * lib/passfd.c: Include <sys/uio.h>.
5848
5849 2011-03-13  Bruno Haible  <bruno@clisp.org>
5850
5851         passfd test: Fix warnings.
5852         * tests/test-passfd.c: Include <sys/wait.h>.
5853         (main): Fix typo.
5854
5855 2011-03-13  Bruno Haible  <bruno@clisp.org>
5856
5857         passfd module, part 4, tweaks.
5858         * tests/test-passfd.c: Reorder includes.
5859         (main): Fix perror and printf calls.
5860
5861 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5862
5863         passfd module, part 4.
5864         * modules/passfd-tests: New file.
5865         * tests/test-passfd.c: New file.
5866
5867 2011-03-13  Jim Meyering  <meyering@redhat.com>
5868
5869         Makefile: rely on GNU make; derive syntax-check rule names
5870         Rather than requiring that each sc_ rule be listed as a dependent
5871         of "check", use features of GNU make to derive the list.
5872         * Makefile (syntax-check-rules): Define.
5873         (check): Depend on the new variable, not the hard-coded list.
5874
5875 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
5876             Bruno Haible  <bruno@clisp.org>
5877
5878         passfd module, part 3.
5879         * lib/passfd.h (recvfd): Add a flags argument.
5880         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
5881         (recvfd): Add a flags argument.
5882         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
5883         exists.
5884         * modules/passfd (Depends-on): Add cloexec.
5885         Suggested by Eric Blake.
5886
5887 2011-03-13  Bruno Haible  <bruno@clisp.org>
5888
5889         passfd module, part 2, tweaks.
5890         * modules/passfd (Files): Reorder.
5891         (Depends-on): Remove errno.
5892         (Include): Remove <sys/socket.h>, <sys/un.h>.
5893         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
5894         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
5895         specification header. Include <sys/socket.h> always. Don't include
5896         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
5897         (sendfd): Clarify that it sets errno when it fails.
5898         (recvfd): Fix specification.
5899
5900 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5901
5902         passfd module, part 2.
5903         * modules/passfd: New file.
5904         * lib/passfd.h: New file.
5905         * lib/passfd.c: New file.
5906
5907 2011-03-12  Bruno Haible  <bruno@clisp.org>
5908
5909         wcswidth, mbswidth: Avoid integer overflow.
5910         * lib/wcswidth.c: Include <limits.h>.
5911         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
5912         * lib/mbswidth.c: Include <limits.h>.
5913         (mbsnwidth): Avoid 'int' overflow.
5914         Reported by Jim Meyering.
5915
5916 2011-03-12  Bruno Haible  <bruno@clisp.org>
5917
5918         futimens, utimensat: Avoid endless recursion on Solaris 10.
5919         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
5920         Solaris.
5921         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
5922         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
5923
5924 2011-03-11  Jim Meyering  <meyering@redhat.com>
5925
5926         maint.mk: relax a regexp to accommodate other formatting styles
5927         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
5928         between "ngettext" and the following "(".
5929
5930 2011-03-11  Pádraig Brady <P@draigBrady.com>
5931
5932         maint.mk: suppress a false positive warning
5933         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
5934         diagnostics are marked with ngettext.
5935
5936 2011-03-10  Eric Blake  <eblake@redhat.com>
5937
5938         wchar: add explicit dependencies, for Tru64
5939         * modules/mbmemcasecoll (Depends-on): Add wchar.
5940         * modules/mbtowc (Depends-on): Likewise.
5941         * modules/vasnprintf (Depends-on): Likewise.
5942         * modules/unistdio/u-printf-args (Depends-on): Likewise.
5943         * modules/wctomb (Depends-on): Likewise.
5944         Reported by Peter O'Gorman.
5945
5946 2011-03-08  Bruno Haible  <bruno@clisp.org>
5947
5948         passfd module, part 1, tweaks.
5949         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
5950         Improve indentation. Improve AC_MSG_CHECKING messages.
5951         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
5952         gl_SOCKET_FAMILIES.
5953
5954 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5955
5956         passfd module, part 1.
5957         * m4/afunix.m4: New file.
5958         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5959         sockets.
5960
5961 2011-03-08  Bruno Haible  <bruno@clisp.org>
5962
5963         regex-quote: New API.
5964         * lib/regex-quote.h: Include <stdbool.h>.
5965         (struct regex_quote_spec): New type.
5966         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5967         New declarations.
5968         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5969         'const struct regex_quote_spec *' argument.
5970         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5971         (pcre_special): New constant.
5972         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5973         New functions.
5974         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5975         'const struct regex_quote_spec *' argument.
5976         * modules/regex-quote (Depends-on): Add stdbool.
5977         * tests/test-regex-quote.c (check): Update for new API. Add test for
5978         anchored results.
5979         * NEWS: Mention the API change.
5980         Reported by Reuben Thomas and Eric Blake.
5981
5982 2011-03-06  Bruno Haible  <bruno@clisp.org>
5983
5984         regex-quote: Fix creation of POSIX extended regular expressions.
5985         * lib/regex-quote.c (ere_special): Add grouping and alternation
5986         operators.
5987
5988 2011-03-05  Bruno Haible  <bruno@clisp.org>
5989
5990         doc: Improve doc regarding autopoint vs. gnulib.
5991         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5992         disable autopoint while running autoreconf.
5993         Suggested by Ralf Wildenhues.
5994
5995 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5996
5997         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
5998         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
5999
6000 2011-03-03  Bruce Korb  <bkorb@gnu.org>
6001
6002         parse-duration: remove xalloc.h dependency
6003         * lib/parse-duration.c (parse_period): handle NULL return from
6004         strdup instead of calling xstrdup().
6005         * modules/parse-duration: remove "xalloc" dependency
6006
6007 2011-03-03  Matthew Booth  <mbooth@redhat.com>
6008
6009         bootstrap: honor m4_base when running aclocal
6010         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
6011
6012 2011-03-02  Jim Meyering  <meyering@redhat.com>
6013
6014         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
6015         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
6016         on request from Matt Booth.
6017
6018 2011-03-01  Eric Blake  <eblake@redhat.com>
6019
6020         test-link: work on Hurd
6021         * tests/test-link.h (test_link): Hurd rejects linking directories
6022         with EISDIR instead of the POSIX-mandated EPERM.
6023
6024 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6025
6026         stdio: simplify by moving files to printf-posix, sigpipe
6027         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
6028         since this symbol is needed only if printf is replaced.
6029         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
6030         Require gl_ASM_SYMBOL_PREFIX.
6031         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
6032         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
6033         (Depends-on): Add 'raise'.
6034         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
6035         * modules/stdio (Files): Remove lib/stdio-write.c,
6036         m4/asm-underscore.m4.
6037         (Depends-on): Remove 'raise'.
6038
6039         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
6040         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
6041         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
6042         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
6043
6044 2011-02-28  Bruno Haible  <bruno@clisp.org>
6045
6046         localcharset: Assume ANSI C behaviour of free().
6047         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
6048         calling free().
6049         Suggested by Simon Josefsson <simon@josefsson.org>.
6050
6051 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6052             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6053             Bruno Haible  <bruno@clisp.org>  (tiny change)
6054
6055         On Cygwin, use /proc file system instead of win32 API.
6056         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6057         Win32 file names.
6058         (DllMain): Simplify by removing Cygwin specific code.
6059         (find_shared_library_fullname): Use Linux specific implementation also
6060         for Cygwin.
6061         (get_shared_library_fullname): Update accordingly.
6062         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
6063         Win32 file names.
6064         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
6065         Cygwin specific code.
6066
6067 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
6068             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
6069
6070         Fix OpenMP flag detection for various Fortran compilers.
6071         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
6072         OpenMP-conditional compilation construct, to force compile
6073         failure with missing OpenMP flag.
6074         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
6075
6076 2011-02-25  Eric Blake  <eblake@redhat.com>
6077
6078         strstr: expand test coverage
6079         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
6080         compilation.
6081         * tests/test-memmem.c (main): Duplicate tests.
6082         * tests/test-strcasestr.c (main): Likewise.
6083         * tests/test-c-strcasestr.c (main): Likewise.
6084
6085 2011-02-25  Jim Meyering  <meyering@redhat.com>
6086
6087         maint.mk: detect missing-NL-at-EOF, too
6088         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6089         it also detects when a file lacks a newline at EOF.
6090         (require_exactly_one_NL_at_EOF_): Renamed from
6091         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6092         since people may well have .x-sc_... file names tied to the
6093         existing name.  Suggested by Eric Blake.
6094
6095 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6096
6097         dirname: move m4/dos.m4 functionality into lib/dosname.h
6098
6099         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6100         extracts symbols from it, puts them into config.h; but it's much
6101         easier to use the symbols directly.  filename.h already does this,
6102         but it disagrees with dos.m4 in some respects.  This patch
6103         introduces a different include file dosname.h that packages up
6104         dos.m4, and then later we can work on merging filename.h and
6105         dosname.h.  Applications that need only the easy-to-configure
6106         symbols should consider including dosname.h rather than dirname.h.
6107         * NEWS: Mention incompatible changes.
6108         * m4/dos.m4: Remove.
6109         * lib/dosname.h, modules/dosname: New files.
6110         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6111         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6112         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6113         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6114         Include dosname.h, not dirname.h.
6115         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6116         Include dosname.h, for definitions of symbols like ISSLASH
6117         that used to be in config.h.
6118         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6119         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6120         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6121         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6122         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6123         * modules/rmdir (Files): Likewise.
6124         * modules/stat (Files): Likewise.
6125         * modules/unlink (Files): Likewise.
6126         * modules/dirname-lgpl (Depends-on): Add dosname.
6127         * modules/lstat (Depends-on): Likewise.
6128         * modules/openat (Depends-on): Likewise.
6129         * modules/rmdir (Depends-on): Likewise.
6130         * modules/savewd (Depends-on): Likewise.
6131         * modules/stat (Depends-on): Likewise.
6132         * modules/unlink (Depends-on): Likewise.
6133         * modules/openat (Depends-on): Remove dirname-lgpl.
6134         * modules/savewd (Depends-on): Likewise.
6135         * tests/test-dirname.c: Do not use removed symbols like
6136         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6137         the remaining symbols, e.g., ISSLASH ('\\').
6138
6139 2011-02-25  Eric Blake  <eblake@redhat.com>
6140
6141         strstr: revert patches that introduced bug and pessimization
6142         * lib/str-two-way.h: Add another reference.
6143         (two_way_short_needle, two_way_long_needle): Revert changes from
6144         2011-02-24; they pessimize search speed.
6145         (critical_factorization): Partially revert changes from
6146         2010-06-22; they violate the requirement that the left half of the
6147         needle be smaller than the period of the needle.
6148
6149 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6150
6151         filenamecat: remove unnecessary dependency on dirname-lgpl
6152         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6153         is no direct dependency, just an indirect one via filenamecat-lgpl.
6154
6155         remove: remove unnecessary use of m4/dos.m4
6156         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6157         * modules/remove (FILES): Remove m4/dos.m4.
6158
6159         * lib/openat-proc.c: Don't include dirname.h; not needed.
6160
6161         backupfile: remove unnecessary use of m4/dos.m4
6162         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6163         of its symbols are used by the backupfile code.  backupfile.c does
6164         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6165         for the rare case of programs that want all their backup file
6166         names to live within 8+3 limits, and dos.m4 doesn't address that.
6167         * modules/backupfile (Files): Remove m4/dos.m4.
6168
6169 2011-02-24  Jim Meyering  <meyering@redhat.com>
6170
6171         strstr: fix a bug whereby strstr would mistakenly return NULL
6172         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6173         in period calculation.
6174         (two_way_long_needle): Likewise.
6175         The original problem was reported by Mike Stump in
6176         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6177         Ralf Wildenhues provided the short needle and haystack.
6178         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6179         Add a more involved test to trigger the bug in two_way_long_needle.
6180
6181 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6182
6183         gnulib-tool: remove use of bold display in help screen
6184         * gnulib-tool (func_usage): Do not use bold display anymore in the
6185         help screen.  That was just meant to be a temporary emphasis for a
6186         backward-incompatible change.
6187
6188 2011-02-23  Bruno Haible  <bruno@clisp.org>
6189
6190         Fix misindentation of preprocessor directives.
6191         * lib/argp-namefrob.h: Reindent preprocessor directives.
6192         * lib/getopt_int.h (struct _getopt_data): Likewise.
6193         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6194         * lib/vasnprintf.c (decode_long_double): Likewise.
6195         * tests/test-argmatch.c: Insert blank lines, for clarity.
6196         * tests/test-exclude.c: Likewise.
6197
6198 2011-02-22  Bruno Haible  <bruno@clisp.org>
6199
6200         ioctl: Fix for MacOS X in 64-bit mode.
6201         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6202         value.
6203         Suggested by Eric Blake.
6204         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6205
6206 2011-02-22  Jim Meyering  <meyering@redhat.com>
6207
6208         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6209         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6210         in lib/.
6211
6212 2011-02-22  Eric Blake  <eblake@redhat.com>
6213
6214         maint: avoid any CDPATH issue
6215         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6216
6217         maint: adjust cpp indentation for my modules, as well
6218         * Makefile (sc_cpp_indent_check): Add my name.
6219         * lib/fbufmode.c: Filter through cppi.
6220         * lib/fpurge.c: Likewise.
6221         * lib/freadable.c: Likewise.
6222         * lib/freading.c: Likewise.
6223         * lib/fwritable.c: Likewise.
6224         * lib/fwriting.c: Likewise.
6225         * lib/sigaction.c: Likewise.
6226
6227 2011-02-22  Jim Meyering  <meyering@redhat.com>
6228
6229         maint: adjust cpp indentation to reflect nesting depth
6230         I.e., in a block of code that begins with an unnested "#if",
6231         put one space between the "#" in column 1 and following token.
6232         For example,
6233         -#include <sys/vfs.h>
6234         +# include <sys/vfs.h>
6235         Do this only in .c files that are part of a module I maintain.
6236         * lib/linkat.c: Filter through cppi.
6237         * lib/nanosleep.c: Likewise.
6238         * lib/openat.c: Likewise.
6239         * lib/openat-die.c: Likewise.
6240         * lib/dup3.c: Likewise.
6241         * lib/fchownat.c: Likewise.
6242         * lib/flock.c: Likewise.
6243         * lib/fsync.c: Likewise.
6244         * lib/fts.c: Likewise.
6245         * lib/getpass.c: Likewise.
6246         * lib/gettimeofday.c: Likewise.
6247         * lib/userspec.c: Likewise.
6248         * Makefile (sc_cpp_indent_check): New rule, to check this.
6249
6250 2011-02-22  Bruno Haible  <bruno@clisp.org>
6251
6252         New module 'wctomb'.
6253         * lib/stdlib.in.h (wctomb): New declaration.
6254         * lib/wctomb.c: New file.
6255         * lib/wctomb-impl.h: New file.
6256         * m4/wctomb.m4: New file.
6257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6258         REPLACE_WCTOMB.
6259         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6260         REPLACE_WCTOMB.
6261         * modules/wctomb: New file.
6262         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6263         * doc/posix-functions/wctomb.texi: Mention the new module.
6264         * modules/wctob (Depends-on): Add wctomb.
6265
6266 2011-02-22  Bruno Haible  <bruno@clisp.org>
6267
6268         New module 'mbtowc'.
6269         * lib/stdlib.in.h (mbtowc): New declaration.
6270         * lib/mbtowc.c: New file.
6271         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6272         * m4/mbtowc.m4: New file.
6273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6274         REPLACE_MBTOWC.
6275         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6276         REPLACE_MBTOWC.
6277         * modules/mbtowc: New file.
6278         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6279         * doc/posix-functions/mbtowc.texi: Mention the new module.
6280         * modules/btowc (Depends-on): Add mbtowc.
6281
6282 2011-02-22  Bruno Haible  <bruno@clisp.org>
6283
6284         wcrtomb: Add more tests for native Windows platforms.
6285         * tests/test-wcrtomb-w32-1.sh: New file.
6286         * tests/test-wcrtomb-w32-2.sh: New file.
6287         * tests/test-wcrtomb-w32-3.sh: New file.
6288         * tests/test-wcrtomb-w32-4.sh: New file.
6289         * tests/test-wcrtomb-w32-5.sh: New file.
6290         * tests/test-wcrtomb-w32.c: New file.
6291         * modules/wcrtomb-tests (Files): Add them.
6292         (Makefile.am): Arrange to run these tests.
6293         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6294         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6295
6296 2011-02-20  Bruno Haible  <bruno@clisp.org>
6297
6298         wcrtomb: Enhance test.
6299         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6300
6301 2011-02-20  Bruno Haible  <bruno@clisp.org>
6302
6303         mbrtowc: Tiny optimization.
6304         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6305
6306 2011-02-20  Jim Meyering  <meyering@redhat.com>
6307
6308         test-exclude.c: remove unmatched #endif
6309         * tests/test-exclude.c: Remove stray #endif, left over from
6310         the change of a week ago.
6311
6312 2011-02-19  Jim Meyering  <meyering@redhat.com>
6313
6314         git-version-gen: skip "-dirty" check when appropriate
6315         * build-aux/git-version-gen: Don't run any git commands when the
6316         version string comes from .tarball-version.  Prior to this, we
6317         would run git update-index --refresh even from a just-unpacked
6318         tarball directory, and that could affect a .git/ directory in a
6319         parent of the build directory.  Reported by Mike Frysinger.
6320
6321 2011-02-19  Bruno Haible  <bruno@clisp.org>
6322
6323         unictype/property-byname: Reduce the size of the 'data' segment.
6324         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6325
6326 2011-02-19  Bruno Haible  <bruno@clisp.org>
6327
6328         unictype/scripts: Reduce the size of the 'data' segment.
6329         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6330         '%pic'.
6331         * lib/unictype/scripts_byname.gperf: Regenerated.
6332
6333 2011-02-19  Bruno Haible  <bruno@clisp.org>
6334
6335         stdint: Update documentation.
6336         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6337
6338 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6339
6340         stdint: omit redundant check for wchar.h
6341         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6342         always tests whether wchar.h exists, so remove the now-redundant test.
6343
6344 2011-02-18  Bruno Haible  <bruno@clisp.org>
6345
6346         stdint: Cut dependency to module 'wchar'.
6347         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6348         include the necessary prerequisites.
6349         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6350         * modules/stdint (Depends-on): Remove wchar.
6351         (Makefile.am): Substitute HAVE_WCHAR_H.
6352         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6353
6354 2011-02-18  Eric Blake  <eblake@redhat.com>
6355
6356         longlong: skip, rather than fail, on cross-compilation
6357         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6358         when cross-compiling; regression from 2011-02-16.
6359
6360 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6361
6362         * NEWS: Mention 2011-02-08 change to stdlib.
6363
6364 2011-02-17  Bruno Haible  <bruno@clisp.org>
6365
6366         getloadavg: Add comments about platforms.
6367         * m4/getloadavg.m4: Add comment.
6368         * lib/getloadavg.c: Likewise.
6369
6370 2011-02-17  Bruno Haible  <bruno@clisp.org>
6371
6372         getloadavg: Fix link error on Solaris 2.6.
6373         * modules/getloadavg (Link): New section.
6374         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6375         linking test-getloadavg.
6376         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6377         getloadavg.
6378
6379 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6380
6381         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6382         It was 'int', but this doesn't match the IRIX 6.5 manual.
6383         Suggested by Bruno Haible in
6384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6385
6386 2011-02-17  Bruno Haible  <bruno@clisp.org>
6387
6388         havelib: Fix comments.
6389         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6390         change.
6391
6392 2011-02-17  Bruno Haible  <bruno@clisp.org>
6393
6394         havelib: Update config.rpath.
6395         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6396
6397 2011-02-17  Bruno Haible  <bruno@clisp.org>
6398
6399         getloadavg test: Add some plausibility checks.
6400         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6401         is improbable.
6402
6403 2011-02-16  Eric Blake  <eblake@redhat.com>
6404
6405         maintainer-makefile: make syntax-check a no-op from tarballs
6406         * top/maint.mk (no-vc-detected): New rule.
6407         (local-checks-available): Use it to avoid hanging if someone tries
6408         'make syntax-check' from a tarball.  Also append to any non-syntax
6409         checks already defined in cfg.mk.
6410
6411 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6412
6413         longlong: tune, particularly for common case of c99
6414
6415         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6416         or running anything if c99, or if unsigned long long int does not
6417         work.  In either case, we know the answer without further tests.
6418         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6419         it at most once, and use its results for both long long int and
6420         unsigned long long int.  This is more likely to be efficient in
6421         the common case where the program wants to check for both long
6422         long int and unsigned long long int.
6423         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6424         since the answer is already known.
6425
6426 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6427
6428         getloadavg: set errno
6429         * lib/getloadavg.c: Set errno when returning -1.  If no other
6430         error number looks appropriate, set it to ENOSYS if the getloadavg
6431         looks like it can't possibly ever work, ENOTSUP otherwise.
6432         Suggested by Bruno Haible in
6433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6434
6435         getloadavg: trim unused parts and speed up 'configure'
6436         * NEWS: Document this.
6437         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6438         always compiled if getloadavg is absent.
6439         Move test code to ...
6440         * tests/test-getloadavg.c: New file, containing previous
6441         contents of test from lib/getloadavg.c.  It also contains
6442         suggestions by Bruno Haible in
6443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6444         * modules/getloadavg-tests: New file.
6445         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6446         Do tests in the same order as they're needed for getloadavg.c.
6447         Omit setgid-related tests that generate symbols KMEM_GROUP,
6448         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6449         Do only the tests that are needed to see whether the system has
6450         getloadavg, moving the other tests into ...
6451         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6452         NLIST_NAME_UNION; nobody should be using it.  Do not define
6453         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6454         relevant, as the user of this module shouldn't care how getloadavg
6455         is implemented.
6456
6457         getloadavg: omit unused var
6458         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6459
6460 2011-02-15  Jim Meyering  <meyering@redhat.com>
6461
6462         doc: update users.txt
6463         * users.txt: Update iwhd's URL.
6464
6465 2011-02-13  Bruno Haible  <bruno@clisp.org>
6466
6467         Consistent macro naming for macros that use GCC __attribute__.
6468         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6469         _ATTRIBUTE_NONNULL_.
6470         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6471         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6472         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6473         ATTRIBUTE_DEPRECATED.
6474         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6475         ATTRIBUTE_NORETURN.
6476         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6477         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6478         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6479         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6480         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6481         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6482         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6483         ATTRIBUTE_SENTINEL.
6484         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6485         ATTRIBUTE_RETURN_CHECK.
6486         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6487         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6488         ATTRIBUTE_NORETURN.
6489         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6490         Reported by Paul Eggert.
6491
6492 2011-02-13  Bruno Haible  <bruno@clisp.org>
6493
6494         Don't interfere with a program's definition of __attribute__.
6495         * lib/argp.h (__attribute__): Remove definition.
6496         (_GL_ATTRIBUTE_FORMAT): New macro.
6497         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6498         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6499         (_GL_ATTRIBUTE_FORMAT): New macro.
6500         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6501         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6502         GCC 3 or newer.
6503         * lib/error.h (__attribute__): Remove definition.
6504         (_GL_ATTRIBUTE_FORMAT): New macro.
6505         (error, error_at_line): Use it.
6506         * lib/hash.h (__attribute__): Remove definition.
6507         (ATTRIBUTE_WUR): Update definition. Define always.
6508         * lib/openat.h (__attribute__): Remove definition.
6509         (ATTRIBUTE_NORETURN): Update definition. Define always.
6510         * lib/sigpipe-die.h (__attribute__): Remove definition.
6511         (ATTRIBUTE_NORETURN): Update definition. Define always.
6512         * lib/vasnprintf.h (__attribute__): Remove definition.
6513         (_GL_ATTRIBUTE_FORMAT): New macro.
6514         (asnprintf, vasnprintf): Use it.
6515         * lib/xalloc.h (__attribute__): Remove definition.
6516         (ATTRIBUTE_NORETURN): Update definition. Define always.
6517         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6518         * lib/xmemdup0.h (__attribute__): Remove definition.
6519         (ATTRIBUTE_NORETURN): Update definition. Define always.
6520         * lib/xprintf.h (__attribute__): Remove definition.
6521         (_GL_ATTRIBUTE_FORMAT): New macro.
6522         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6523         * lib/xstrtol.h (__attribute__): Remove definition.
6524         (ATTRIBUTE_NORETURN): Update definition. Define always.
6525         * lib/xvasprintf.h (__attribute__): Remove definition.
6526         (_GL_ATTRIBUTE_FORMAT): New macro.
6527         (xasprintf, xvasprintf): Use it.
6528         * tests/test-argmatch.c (__attribute__): Remove definition.
6529         (ATTRIBUTE_NORETURN): Update definition. Define always.
6530         * tests/test-exclude.c (__attribute__): Remove definition.
6531         (ATTRIBUTE_NORETURN): Update definition. Define always.
6532         Reported by Paul Eggert.
6533
6534 2011-02-13  Bruno Haible  <bruno@clisp.org>
6535
6536         mbrtowc: Add more tests for native Windows platforms.
6537         * tests/test-mbrtowc-w32-1.sh: New file.
6538         * tests/test-mbrtowc-w32-2.sh: New file.
6539         * tests/test-mbrtowc-w32-3.sh: New file.
6540         * tests/test-mbrtowc-w32-4.sh: New file.
6541         * tests/test-mbrtowc-w32-5.sh: New file.
6542         * tests/test-mbrtowc-w32.c: New file.
6543         * modules/mbrtowc-tests (Files): Add them.
6544         (Makefile.am): Arrange to run these tests.
6545         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6546         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6547
6548 2011-02-13  Bruno Haible  <bruno@clisp.org>
6549
6550         mbrtowc: Work around native Windows bug.
6551         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6552         guess when no suitable locale for testing was found.
6553         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6554
6555 2011-02-13  Bruno Haible  <bruno@clisp.org>
6556
6557         mbsinit: Work around mingw bug.
6558         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6559         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6560         Windows.
6561         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6562
6563 2011-02-13  Bruno Haible  <bruno@clisp.org>
6564
6565         mbsinit: Don't crash for a NULL argument.
6566         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6567         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6568
6569 2011-02-13  Bruno Haible  <bruno@clisp.org>
6570
6571         Don't interfere with a program's definition of __attribute__.
6572         * lib/stdio.in.h (__attribute__): Remove definition.
6573         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6574         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6575         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6576         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6577         * lib/string.in.h (__attribute__): Remove definition.
6578         Reported by Paul Eggert.
6579
6580 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6581
6582         stdlib: don't get in the way of non-GCC __attribute__
6583         See thread starting at
6584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6585         Revert previous stdlib change, installing the following instead:
6586         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6587         to get in the way of a non-GCC compiler that supports __attribute__.
6588         (_GL_ATTRIBUTE_RETURN): New macro.
6589         (_Exit): Use it instead of __attribute__.
6590
6591 2011-02-12  Bruno Haible  <bruno@clisp.org>
6592
6593         quotearg test: Avoid test failure on mingw.
6594         * tests/test-quotearg.sh: Convert the locale identifier from native
6595         Windows syntax to Unix syntax.
6596
6597 2011-02-12  Bruno Haible  <bruno@clisp.org>
6598
6599         setlocale: Prefer gnulib's override over libintl's override.
6600         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6601         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6602         GNULIB_defined_setlocale is set.
6603
6604 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6605
6606         stdlib: support non-GCC __attribute__
6607
6608         Fix a serious and tricky problem encountered when attempting to
6609         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6610         5.5, but it crashed due to memory corruption on Solaris 10 with
6611         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6612         bits that are otherwise zero.  This tagging is optional inside
6613         Emacs but is preferred and is used when __attribute__ ((__aligned
6614         (8))) works, as it does with both recent-enough GCC and with Sun C
6615         5.11.  However, Sun C 5.11 is not GCC and does not #define
6616         __GNUC__ and __GNUC_MINOR__.
6617
6618         When I added the getloadavg module to Emacs, it brought in
6619         stdlib.in.h, which contained this fragment:
6620
6621            #ifndef __attribute__
6622            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6623            #  define __attribute__(Spec)   /* empty */
6624            # endif
6625            #endif
6626
6627         When files that include <stdlib.h> were compiled with Sun C 5.11,
6628         the above code disabled __attribute__ ((__aligned (8))), which
6629         caused variables to not be properly aligned, which eventually led
6630         to the pointer corruption mentioned above.  (This was a bit hard
6631         to diagnose, unfortunately.)
6632
6633         Several "#define __attribute__(X) /* empty */" code snippets need
6634         to be eradicated from Gnulib to work with non-GCC compilers that
6635         support __attribute__.  The Autoconf way to do this is to test for
6636         each kind of attribute that we want support for, and selectively
6637         enable that in source code.
6638
6639         Fix this problem just for stdlib.h, by adding a test for the
6640         __noreturn__ attribute, and change stdlib.in.h to use that test
6641         when needed.  This technique can be easily generalized to the
6642         other *.in.h files and attributes, and a similar technique can be
6643         used for *.h and *.c files.  This patch is enough to solve the
6644         problem for Emacs + getloadavg, and I thought I'd publish it for
6645         feedback before undertaking further, similar fixes in other
6646         modules.
6647
6648         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6649         because it's not needed for stdlib.h.  It merely substitutes the
6650         value directly into stdlib.h.  We may well need to #define it, or
6651         similar symbols, for other modules, but it's nice to also have an
6652         option to not #define it for applications like Emacs that do not
6653         need it.
6654
6655         * lib/stdlib.in.h (__attribute__): Do not #define.
6656         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6657         be defined only if the _Exit module is also used.
6658         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6660         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6661         platforms.
6662         * modules/_Exit (Files): Add m4/attribute.m4.
6663         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6664         * m4/attribute.m4: New file.
6665
6666 2011-02-12  Bruno Haible  <bruno@clisp.org>
6667
6668         wcsrtombs: Work around bug on native Windows.
6669         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6670         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6671         instead of len.
6672         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6673
6674 2011-02-12  Bruno Haible  <bruno@clisp.org>
6675
6676         mbsrtowcs: Work around bug on native Windows.
6677         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6678         against mingw bug.
6679         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6680
6681 2011-02-12  Bruno Haible  <bruno@clisp.org>
6682
6683         Avoid setlocale bugs in tests.
6684         * modules/btowc (Dependencies): Add setlocale.
6685         * modules/c-strcase (Dependencies): Likewise.
6686         * modules/mbmemcasecmp (Dependencies): Likewise.
6687         * modules/mbmemcasecoll (Dependencies): Likewise.
6688         * modules/mbrtowc (Dependencies): Likewise.
6689         * modules/mbscasecmp (Dependencies): Likewise.
6690         * modules/mbscasestr (Dependencies): Likewise.
6691         * modules/mbschr (Dependencies): Likewise.
6692         * modules/mbscspn (Dependencies): Likewise.
6693         * modules/mbsinit (Dependencies): Likewise.
6694         * modules/mbsncasecmp (Dependencies): Likewise.
6695         * modules/mbsnrtowcs (Dependencies): Likewise.
6696         * modules/mbspbrk (Dependencies): Likewise.
6697         * modules/mbspcasecmp (Dependencies): Likewise.
6698         * modules/mbsrchr (Dependencies): Likewise.
6699         * modules/mbsrtowcs (Dependencies): Likewise.
6700         * modules/mbsspn (Dependencies): Likewise.
6701         * modules/mbsstr (Dependencies): Likewise.
6702         * modules/nl_langinfo (Dependencies): Likewise.
6703         * modules/quotearg (Dependencies): Likewise.
6704         * modules/unicase/locale-language (Dependencies): Likewise.
6705         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6706         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6707         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6708         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6709         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6710         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6711         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6712         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6713         * modules/vasnprintf-posix (Dependencies): Likewise.
6714         * modules/wcrtomb (Dependencies): Likewise.
6715         * modules/wcsnrtombs (Dependencies): Likewise.
6716         * modules/wcsrtombs (Dependencies): Likewise.
6717
6718 2011-02-12  Bruno Haible  <bruno@clisp.org>
6719
6720         setlocale: Workaround native Windows bug.
6721         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6722         succeeds but sets LC_CTYPE to "C", report a failure.
6723         * tests/test-setlocale2.sh: New file.
6724         * tests/test-setlocale2.c: New file.
6725         * modules/setlocale-tests (Files): Add the new files.
6726         (Makefile.am): Enable test-setlocale2.sh test.
6727         * doc/posix-functions/setlocale.texi: Mention workaround.
6728
6729 2011-02-11  Bruno Haible  <bruno@clisp.org>
6730
6731         Tests for module 'setlocale'.
6732         * modules/setlocale-tests: New file.
6733         * tests/test-setlocale1.sh: New file.
6734         * tests/test-setlocale1.c: New file.
6735
6736         New module 'setlocale'.
6737         * lib/locale.in.h (setlocale): New declaration.
6738         * lib/setlocale.c: New file, based on
6739         gettext/gettext-runtime/intl/setlocale.c.
6740         * m4/setlocale.m4: New file.
6741         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6742         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6743         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6744         REPLACE_SETLOCALE.
6745         * modules/setlocale: New file.
6746         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6747         * doc/posix-functions/setlocale.texi: Mention the new module.
6748
6749 2011-02-11  Bruno Haible  <bruno@clisp.org>
6750
6751         Prepare for locale dependent tests on mingw.
6752         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6753         because it has the wrong locale encoding.
6754         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6755         French_France.1252 instead of "fr".
6756         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6757         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6758         because it has the wrong locale encoding.
6759         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
6760         native Windows, try Turkish_Turkey.65001.
6761         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
6762         Chinese_China.54936.
6763
6764         Prepare for locale dependent tests on mingw.
6765         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
6766         differently.
6767         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
6768         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
6769         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6770         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6771
6772 2011-02-11  Eric Blake  <eblake@redhat.com>
6773
6774         strptime: avoid compiler warnings
6775         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
6776         compiler warnings about dead code.
6777         Reported by Daniel P. Berrange.
6778
6779 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
6780
6781         doc: update users.txt
6782         * users.txt: Add rcs.
6783
6784 2011-02-10  John W. Eaton  <jwe@gnu.org>
6785
6786         doc: update users.txt
6787         * users.txt: Add octave.
6788
6789 2011-02-10  Jim Meyering  <meyering@redhat.com>
6790
6791         doc: update users.txt
6792         * users.txt: Add iwhd.
6793
6794 2011-02-09  Bruno Haible  <bruno@clisp.org>
6795
6796         gnulib-tool: Make copyright notice adjustment more robust.
6797         * gnulib-tool (func_import): In sed_transform_main_lib_file,
6798         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
6799         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
6800         License".
6801         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
6802
6803 2011-02-06  Bruno Haible  <bruno@clisp.org>
6804
6805         New module 'towctrans'.
6806         * modules/towctrans: New file.
6807         * lib/wctype.in.h (towctrans): New declaration.
6808         * lib/towctrans.c: New file.
6809         * lib/towctrans-impl.h: New file.
6810         * m4/towctrans.m4: New file.
6811         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
6812         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
6813         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
6814         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
6815         * doc/posix-functions/towctrans.texi: Mention the new module.
6816
6817 2011-02-06  Bruno Haible  <bruno@clisp.org>
6818
6819         New module 'wctrans'.
6820         * modules/wctrans: New file.
6821         * lib/wctype.in.h (wctrans): New declaration.
6822         * lib/wctrans.c: New file.
6823         * lib/wctrans-impl.h: New file.
6824         * m4/wctrans.m4: New file.
6825         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
6826         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
6827         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
6828         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
6829         * doc/posix-functions/wctrans.texi: Mention the new module.
6830
6831 2011-02-06  Bruno Haible  <bruno@clisp.org>
6832
6833         New module 'iswctype'.
6834         * modules/iswctype: New file.
6835         * lib/wctype.in.h (iswctype): New declaration.
6836         * lib/iswctype.c: New file.
6837         * lib/iswctype-impl.h: New file.
6838         * m4/iswctype.m4: New file.
6839         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
6840         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
6841         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
6842         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
6843         * doc/posix-functions/iswctype.texi: Mention the new module and the
6844         HP-UX 11.00 problem.
6845
6846 2011-02-06  Bruno Haible  <bruno@clisp.org>
6847
6848         New module 'wctype'.
6849         * modules/wctype: Change to represent the wctype() substitute.
6850         * lib/wctype.in.h (wctype): New declaration.
6851         * lib/wctype.c: New file.
6852         * lib/wctype-impl.h: New file.
6853         * m4/wctype.m4: New file.
6854         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
6855         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
6856         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
6857         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
6858         * doc/posix-functions/wctype.texi: Mention the new module and the
6859         HP-UX 11.00 problem.
6860
6861 2011-02-06  Bruno Haible  <bruno@clisp.org>
6862
6863         wctype-h: Ensure wctype_t and wctrans_t are defined.
6864         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
6865         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6866         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6867         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
6868         HAVE_WCTRANS_T.
6869         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
6870
6871 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6872
6873         flock: fix license typo
6874
6875         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
6876         omitted.
6877
6878 2011-02-08  Bruno Haible  <bruno@clisp.org>
6879
6880         Split large sed scripts, for HP-UX sed.
6881         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
6882         to avoid HP-UX limit of 99 commands, in the near future.
6883         * modules/stdlib (Makefile.am): Likewise.
6884         * modules/unistd (Makefile.am): Likewise.
6885         * modules/wchar (Makefile.am): Likewise.
6886         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6887         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
6888         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
6889
6890 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6891             Bruno Haible  <bruno@clisp.org>
6892
6893         stdlib: improve random_r modularization
6894         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
6895         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
6896         you also need the random_r module to get this material right.
6897         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
6898         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
6899         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
6900
6901 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6902
6903         stdlib: don't depend on stdint
6904         * lib/stdlib.in.h: Don't include <stdint.h> merely because
6905         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
6906         be independent of whether stdint.h is needed.
6907         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
6908         here, instead of ...
6909         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
6910         struct random_data should be using the random_r module, not just
6911         the stdlib module (which wouldn't make sense: what package needs
6912         just struct random_data without also needing random_r?).
6913         * modules/stdlib (Depends-on): Remove stdint.
6914
6915         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
6916         See the thread rooted at
6917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
6918         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
6919         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
6920         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
6921         __VMS)); previously it was always included (via fcntl--.h).
6922         (getloadavg): Do not use c_strtod.  Instead, approximate it by
6923         hand; this is good enough for load averages.  Also, do not use
6924         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
6925         flags directly if available and don't bother otherwise.  (Packages
6926         that need the extra reliability should use the modules that define
6927         these flags on older platforms that lack them.)
6928         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
6929         fcntl-safer.
6930
6931 2011-02-08  Jim Meyering  <meyering@redhat.com>
6932
6933         di-set.h, ino-map.h: add multiple-inclusion guard
6934         Technically, the guard is required only for ino-map.h, due to its
6935         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
6936         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
6937         * lib/ino-map.h: Likewise.
6938
6939 2011-02-06  Bruno Haible  <bruno@clisp.org>
6940
6941         iswblank: Ensure declaration on glibc systems.
6942         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
6943         * modules/iswblank (Dependencies): Add 'extensions'.
6944         * doc/posix-functions/iswblank.texi: Document the glibc problem.
6945
6946 2011-02-06  Bruno Haible  <bruno@clisp.org>
6947
6948         New module 'iswblank'.
6949         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
6950         * modules/iswblank: New file.
6951         * modules/wctype-h (Files): Remove lib/iswblank.c.
6952         (Makefile.am): Substitute GNULIB_ISWBLANK.
6953         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6954         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6955         (gl_WCTYPE_H_DEFAULTS): New macro.
6956         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6957         * modules/iswblank-tests: New file.
6958         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6959         * tests/test-wctype-h.c (main): Remove iswblank tests.
6960         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6961         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6962         of 'wctype-h'.
6963         * NEWS: Mention the change.
6964         * modules/mbchar (Depends-on): Add iswblank.
6965
6966 2011-02-08  Bruno Haible  <bruno@clisp.org>
6967
6968         di-set tests: Refactor.
6969         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6970         unnecessary includes.
6971         (ASSERT): Remove macro.
6972         (main): Make C90 compliant by avoiding variable declaration after
6973         statement.
6974         * modules/di-set-tests (Files): Add tests/macros.h.
6975
6976 2011-02-08  Bruno Haible  <bruno@clisp.org>
6977
6978         ino-map tests: Refactor.
6979         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6980         unnecessary includes.
6981         (ASSERT): Remove macro.
6982         (main): Make C90 compliant by avoiding variable declaration after
6983         statement.
6984         * modules/ino-map-tests (Files): Add tests/macros.h.
6985
6986 2011-02-08  Jim Meyering  <meyering@redhat.com>
6987
6988         di-set: add "const" to a cast
6989         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6990         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6991
6992 2011-02-06  Bruno Haible  <bruno@clisp.org>
6993
6994         Rename module 'wctype' to 'wctype-h'.
6995         * modules/wctype-h: Renamed from modules/wctype.
6996         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
6997         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
6998         (Files, Depends-on, Makefile.am): Update.
6999         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
7000         (Files, Makefile.am): Update.
7001         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
7002         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
7003         * doc/posix-headers/wctype.texi: Update.
7004         * doc/posix-functions/iswalnum.texi: Update.
7005         * doc/posix-functions/iswalpha.texi: Update.
7006         * doc/posix-functions/iswblank.texi: Update.
7007         * doc/posix-functions/iswcntrl.texi: Update.
7008         * doc/posix-functions/iswdigit.texi: Update.
7009         * doc/posix-functions/iswgraph.texi: Update.
7010         * doc/posix-functions/iswlower.texi: Update.
7011         * doc/posix-functions/iswprint.texi: Update.
7012         * doc/posix-functions/iswpunct.texi: Update.
7013         * doc/posix-functions/iswspace.texi: Update.
7014         * doc/posix-functions/iswupper.texi: Update.
7015         * doc/posix-functions/iswxdigit.texi: Update.
7016         * doc/posix-functions/towlower.texi: Update.
7017         * doc/posix-functions/towupper.texi: Update.
7018         * NEWS: Mention the change.
7019         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
7020         * modules/mbchar (Dependencies): Likewise.
7021         * modules/mbswidth (Dependencies): Likewise.
7022         * modules/quotearg (Dependencies): Likewise.
7023         * modules/regex (Dependencies): Likewise.
7024         * modules/wcscasecmp (Dependencies): Likewise.
7025         * modules/wcsncasecmp (Dependencies): Likewise.
7026         * modules/wcwidth (Dependencies): Likewise.
7027
7028 2011-02-06  Bruno Haible  <bruno@clisp.org>
7029
7030         New module 'wcswidth'.
7031         * modules/wcswidth: New file.
7032         * lib/wchar.in.h (wcswidth): New declaration.
7033         * lib/wcswidth.c: New file.
7034         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
7035         * m4/wcswidth.m4: New file.
7036         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
7037         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
7038         REPLACE_WCSWIDTH.
7039         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
7040         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
7041         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
7042         * doc/posix-functions/wcswidth.texi: Mention the new module.
7043
7044 2011-02-06  Bruno Haible  <bruno@clisp.org>
7045
7046         New module 'wcstok'.
7047         * modules/wcstok: New file.
7048         * lib/wchar.in.h (wcstok): New declaration.
7049         * lib/wcstok.c: New file.
7050         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7051         * m4/wcstok.m4: New file.
7052         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7053         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7054         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7055         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7056         * doc/posix-functions/wcstok.texi: Mention the new module.
7057
7058 2011-02-06  Bruno Haible  <bruno@clisp.org>
7059
7060         New module 'wcsstr'.
7061         * modules/wcsstr: New file.
7062         * lib/wchar.in.h (wcsstr): New declaration.
7063         * lib/wcsstr.c: New file.
7064         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
7065         * m4/wcsstr.m4: New file.
7066         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
7067         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
7068         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
7069         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
7070         * doc/posix-functions/wcsstr.texi: Mention the new module.
7071
7072 2011-02-06  Bruno Haible  <bruno@clisp.org>
7073
7074         New module 'wcspbrk'.
7075         * modules/wcspbrk: New file.
7076         * lib/wchar.in.h (wcspbrk): New declaration.
7077         * lib/wcspbrk.c: New file.
7078         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
7079         * m4/wcspbrk.m4: New file.
7080         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
7081         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
7082         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
7083         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
7084         * doc/posix-functions/wcspbrk.texi: Mention the new module.
7085
7086 2011-02-06  Bruno Haible  <bruno@clisp.org>
7087
7088         New module 'wcsspn'.
7089         * modules/wcsspn: New file.
7090         * lib/wchar.in.h (wcsspn): New declaration.
7091         * lib/wcsspn.c: New file.
7092         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7093         * m4/wcsspn.m4: New file.
7094         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7095         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7096         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7097         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7098         * doc/posix-functions/wcsspn.texi: Mention the new module.
7099
7100 2011-02-06  Bruno Haible  <bruno@clisp.org>
7101
7102         New module 'wcscspn'.
7103         * modules/wcscspn: New file.
7104         * lib/wchar.in.h (wcscspn): New declaration.
7105         * lib/wcscspn.c: New file.
7106         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7107         * m4/wcscspn.m4: New file.
7108         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7109         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7110         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7111         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7112         * doc/posix-functions/wcscspn.texi: Mention the new module.
7113
7114 2011-02-06  Bruno Haible  <bruno@clisp.org>
7115
7116         New module 'wcsrchr'.
7117         * modules/wcsrchr: New file.
7118         * lib/wchar.in.h (wcsrchr): New declaration.
7119         * lib/wcsrchr.c: New file.
7120         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7121         * m4/wcsrchr.m4: New file.
7122         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7123         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7124         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7125         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7126         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7127
7128 2011-02-06  Bruno Haible  <bruno@clisp.org>
7129
7130         New module 'wcschr'.
7131         * modules/wcschr: New file.
7132         * lib/wchar.in.h (wcschr): New declaration.
7133         * lib/wcschr.c: New file.
7134         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7135         * m4/wcschr.m4: New file.
7136         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7137         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7138         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7139         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7140         * doc/posix-functions/wcschr.texi: Mention the new module.
7141
7142 2011-02-06  Bruno Haible  <bruno@clisp.org>
7143
7144         New module 'wcsdup'.
7145         * modules/wcsdup: New file.
7146         * lib/wchar.in.h (wcsdup): New declaration.
7147         * lib/wcsdup.c: New file.
7148         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7149         * m4/wcsdup.m4: New file.
7150         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7151         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7152         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7153         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7154         * doc/posix-functions/wcsdup.texi: Mention the new module.
7155
7156 2011-02-06  Bruno Haible  <bruno@clisp.org>
7157
7158         New module 'wcsxfrm'.
7159         * modules/wcsxfrm: New file.
7160         * lib/wchar.in.h (wcsxfrm): New declaration.
7161         * lib/wcsxfrm.c: New file.
7162         * lib/wcsxfrm-impl.h: New file.
7163         * m4/wcsxfrm.m4: New file.
7164         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7165         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7166         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7167         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7168         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7169
7170 2011-02-06  Bruno Haible  <bruno@clisp.org>
7171
7172         New module 'wcscoll'.
7173         * modules/wcscoll: New file.
7174         * lib/wchar.in.h (wcscoll): New declaration.
7175         * lib/wcscoll.c: New file.
7176         * lib/wcscoll-impl.h: New file.
7177         * m4/wcscoll.m4: New file.
7178         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7179         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7180         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7181         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7182         * doc/posix-functions/wcscoll.texi: Mention the new module.
7183
7184 2011-02-06  Bruno Haible  <bruno@clisp.org>
7185
7186         New module 'wcsncasecmp'.
7187         * modules/wcsncasecmp: New file.
7188         * lib/wchar.in.h (wcsncasecmp): New declaration.
7189         * lib/wcsncasecmp.c: New file.
7190         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7191         * m4/wcsncasecmp.m4: New file.
7192         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7193         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7194         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7195         HAVE_WCSNCASECMP.
7196         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7197         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7198
7199 2011-02-06  Bruno Haible  <bruno@clisp.org>
7200
7201         New module 'wcscasecmp'.
7202         * modules/wcscasecmp: New file.
7203         * lib/wchar.in.h (wcscasecmp): New declaration.
7204         * lib/wcscasecmp.c: New file.
7205         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7206         * m4/wcscasecmp.m4: New file.
7207         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7208         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7209         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7210         HAVE_WCSCASECMP.
7211         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7212         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7213
7214 2011-02-05  Bruno Haible  <bruno@clisp.org>
7215
7216         New module 'wcsncmp'.
7217         * modules/wcsncmp: New file.
7218         * lib/wchar.in.h (wcsncmp): New declaration.
7219         * lib/wcsncmp.c: New file.
7220         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7221         * m4/wcsncmp.m4: New file.
7222         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7223         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7224         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7225         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7226         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7227
7228 2011-02-05  Bruno Haible  <bruno@clisp.org>
7229
7230         New module 'wcscmp'.
7231         * modules/wcscmp: New file.
7232         * lib/wchar.in.h (wcscmp): New declaration.
7233         * lib/wcscmp.c: New file.
7234         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7235         * m4/wcscmp.m4: New file.
7236         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7237         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7238         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7239         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7240         * doc/posix-functions/wcscmp.texi: Mention the new module.
7241
7242 2011-02-05  Bruno Haible  <bruno@clisp.org>
7243
7244         New module 'wcsncat'.
7245         * modules/wcsncat: New file.
7246         * lib/wchar.in.h (wcsncat): New declaration.
7247         * lib/wcsncat.c: New file.
7248         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7249         * m4/wcsncat.m4: New file.
7250         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7251         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7252         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7253         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7254         * doc/posix-functions/wcsncat.texi: Mention the new module.
7255
7256 2011-02-05  Bruno Haible  <bruno@clisp.org>
7257
7258         New module 'wcscat'.
7259         * modules/wcscat: New file.
7260         * lib/wchar.in.h (wcscat): New declaration.
7261         * lib/wcscat.c: New file.
7262         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7263         * m4/wcscat.m4: New file.
7264         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7265         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7266         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7267         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7268         * doc/posix-functions/wcscat.texi: Mention the new module.
7269
7270 2011-02-05  Bruno Haible  <bruno@clisp.org>
7271
7272         New module 'wcpncpy'.
7273         * modules/wcpncpy: New file.
7274         * lib/wchar.in.h (wcpncpy): New declaration.
7275         * lib/wcpncpy.c: New file.
7276         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7277         * m4/wcpncpy.m4: New file.
7278         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7279         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7280         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7281         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7282         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7283
7284 2011-02-05  Bruno Haible  <bruno@clisp.org>
7285
7286         New module 'wcsncpy'.
7287         * modules/wcsncpy: New file.
7288         * lib/wchar.in.h (wcsncpy): New declaration.
7289         * lib/wcsncpy.c: New file.
7290         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7291         * m4/wcsncpy.m4: New file.
7292         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7293         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7294         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7295         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7296         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7297
7298 2011-02-05  Bruno Haible  <bruno@clisp.org>
7299
7300         New module 'wcpcpy'.
7301         * modules/wcpcpy: New file.
7302         * lib/wchar.in.h (wcpcpy): New declaration.
7303         * lib/wcpcpy.c: New file.
7304         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7305         * m4/wcpcpy.m4: New file.
7306         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7307         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7308         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7309         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7310         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7311
7312 2011-02-05  Bruno Haible  <bruno@clisp.org>
7313
7314         New module 'wcscpy'.
7315         * modules/wcscpy: New file.
7316         * lib/wchar.in.h (wcscpy): New declaration.
7317         * lib/wcscpy.c: New file.
7318         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7319         * m4/wcscpy.m4: New file.
7320         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7321         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7322         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7323         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7324         * doc/posix-functions/wcscpy.texi: Mention the new module.
7325
7326 2011-02-05  Bruno Haible  <bruno@clisp.org>
7327
7328         New module 'wcsnlen'.
7329         * modules/wcsnlen: New file.
7330         * lib/wchar.in.h (wcsnlen): New declaration.
7331         * lib/wcsnlen.c: New file.
7332         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7333         * m4/wcsnlen.m4: New file.
7334         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7335         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7336         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7337         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7338         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7339
7340 2011-02-05  Bruno Haible  <bruno@clisp.org>
7341
7342         New module 'wcslen'.
7343         * modules/wcslen: New file.
7344         * lib/wchar.in.h (wcslen): New declaration.
7345         * lib/wcslen.c: New file.
7346         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7347         * m4/wcslen.m4: New file.
7348         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7349         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7350         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7351         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7352         * doc/posix-functions/wcslen.texi: Mention the new module.
7353
7354 2011-02-05  Bruno Haible  <bruno@clisp.org>
7355
7356         New module 'wmemset'.
7357         * modules/wmemset: New file.
7358         * lib/wchar.in.h (wmemset): New declaration.
7359         * lib/wmemset.c: New file.
7360         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7361         * m4/wmemset.m4: New file.
7362         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7363         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7364         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7365         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7366         * doc/posix-functions/wmemset.texi: Mention the new module.
7367
7368 2011-02-05  Bruno Haible  <bruno@clisp.org>
7369
7370         New module 'wmemmove'.
7371         * modules/wmemmove: New file.
7372         * lib/wchar.in.h (wmemmove): New declaration.
7373         * lib/wmemmove.c: New file.
7374         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7375         * m4/wmemmove.m4: New file.
7376         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7377         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7378         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7379         HAVE_WMEMMOVE.
7380         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7381         * doc/posix-functions/wmemmove.texi: Mention the new module.
7382
7383 2011-02-05  Bruno Haible  <bruno@clisp.org>
7384
7385         New module 'wmemcpy'.
7386         * modules/wmemcpy: New file.
7387         * lib/wchar.in.h (wmemcpy): New declaration.
7388         * lib/wmemcpy.c: New file.
7389         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7390         * m4/wmemcpy.m4: New file.
7391         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7392         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7393         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7394         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7395         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7396
7397 2011-02-05  Bruno Haible  <bruno@clisp.org>
7398
7399         New module 'wmemcmp'.
7400         * modules/wmemcmp: New file.
7401         * lib/wchar.in.h (wmemcmp): New declaration.
7402         * lib/wmemcmp.c: New file.
7403         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7404         * m4/wmemcmp.m4: New file.
7405         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7406         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7407         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7408         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7409         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7410
7411 2011-02-07  Jim Meyering  <meyering@redhat.com>
7412
7413         di-set, ino-map: new modules, from coreutils
7414         * lib/di-set.c: New file.
7415         * lib/di-set.h: Likewise.
7416         * lib/ino-map.c: Likewise.
7417         * lib/ino-map.h: Likewise.
7418         * modules/di-set: Likewise.
7419         * modules/di-set-tests: Likewise.
7420         * modules/ino-map: Likewise.
7421         * modules/ino-map-tests: Likewise.
7422         * tests/test-di-set.c: Likewise.
7423         * tests/test-ino-map.c: Likewise.
7424
7425 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7426
7427         getloadavg: merge minor changes from Emacs
7428
7429         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7430         (getloadavg): Use memset, not bzero.
7431
7432         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7433         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7434         clash (bug#86).
7435
7436 2010-11-14  Bruno Haible  <bruno@clisp.org>
7437
7438         Allow multiple gnulib generated replacements to coexist.
7439         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7440         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7441         * lib/langinfo.in.h (nl_item): Likewise.
7442         * lib/math.in.h (_NaN, NAN): Likewise.
7443         * lib/netdb.in.h (struct addrinfo): Likewise.
7444         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7445         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7446         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7447         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7448         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7449         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7450         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7451         pthread_mutexattr_init, pthread_mutexattr_settype,
7452         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7453         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7454         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7455         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7456         * lib/sched.in.h (struct sched_param): Likewise.
7457         * lib/se-selinux.in.h (security_class_t, security_context_t,
7458         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7459         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7460         lsetfilecon, fsetfilecon, security_check_context,
7461         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7462         Likewise.
7463         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7464         Likewise.
7465         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7466         _gl_function_taking_int_returning_void_t, union sigval,
7467         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7468         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7469         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7470         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7471         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7472         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7473         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7474         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7475         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7476         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7477         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7478         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7479         socklen_t, rpl_fd_isset): Likewise.
7480         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7481         * lib/sys_time.in.h (struct timeval): Likewise.
7482         * lib/sys_times.in.h (struct tms): Likewise.
7483         * lib/sys_utsname.in.h (struct utsname):
7484         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7485         * lib/unistd.in.h (getpagesize): Likewise.
7486         * lib/wchar.in.h (mbstate_t): Likewise.
7487         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7488         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7489         towlower, towupper): Likewise.
7490         Reported by Sam Steingold <sds@gnu.org>.
7491
7492 2011-02-05  Eric Blake  <eblake@redhat.com>
7493
7494         unsetenv: work around Haiku issues
7495         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7496         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7497
7498 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7499
7500         libposix: avoid calling error() within libposix
7501         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7502         is defined.
7503
7504 2011-02-05  Eric Blake  <eblake@redhat.com>
7505
7506         strerror_r-posix: port to cygwin
7507         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7508         implementation.
7509         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7510         * tests/test-strerror_r.c (main): Fix test.
7511         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7512         issue.
7513
7514 2011-02-05  Bruno Haible  <bruno@clisp.org>
7515
7516         New module 'wmemchr'.
7517         * modules/wmemchr: New file.
7518         * lib/wchar.in.h (wmemchr): New declaration.
7519         * lib/wmemchr.c: New file.
7520         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7521         * m4/wmemchr.m4: New file.
7522         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7523         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7524         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7525         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7526         * doc/posix-functions/wmemchr.texi: Mention the new module.
7527
7528 2011-02-04  Eric Blake  <eblake@redhat.com>
7529
7530         fdopendir: detect FreeBSD bug
7531         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7532         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7533
7534 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7535
7536         stdbool: do not define HAVE_STDBOOL_H
7537         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7538         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7539         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7540         imported from the latest Autoconf git.  It was motivated by Emacs,
7541         which uses gnulib but does not need HAVE_STDBOOL_H.
7542
7543 2011-02-04  Bruno Haible  <bruno@clisp.org>
7544
7545         wcsnrtombs: Prepare for new module wwcsnrtombs.
7546         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7547         * lib/wcsnrtombs.c: Include it.
7548         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7549
7550         wcsrtombs: Prepare for new module wwcsrtombs.
7551         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7552         * lib/wcsrtombs.c: Include it.
7553         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7554
7555         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7556         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7557         * lib/mbsnrtowcs.c: Include it.
7558         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7559
7560         mbsrtowcs: Prepare for new module mbsrtowwcs.
7561         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7562         * lib/mbsrtowcs.c: Include it.
7563         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7564
7565 2011-02-04  Bruno Haible  <bruno@clisp.org>
7566
7567         vasnprintf: Reduce use of malloc for small format strings.
7568         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7569         (arguments): Add room for the first 7 arguments.
7570         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7571         (char_directives, u8_directives, u16_directives, u32_directives): Add
7572         room for the first 7 directives.
7573         * lib/printf-parse.c: Include <string.h>.
7574         (PRINTF_PARSE): Change memory handling code so that it uses the first
7575         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7576         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7577         Reported by Pádraig Brady <P@draigbrady.com>.
7578
7579 2011-01-31  Eric Blake  <eblake@redhat.com>
7580
7581         dup2: work around Haiku bug
7582         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7583         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7584         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7585         * tests/test-dup2.c (main): Enhance test.
7586
7587 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7588
7589         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7590         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7591         declared by eglibc 2.11.2.
7592         * lib/stdio.in.h: Likewise.
7593
7594 2011-01-31  Eric Blake  <eblake@redhat.com>
7595
7596         ignore-value: add missing test dependency
7597         * tests/test-ignore-value.c: Revert previous change; stdio.h
7598         provides off_t.
7599         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7600
7601 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7602
7603         mktime: clarify long_int width checking
7604         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7605         the top level, to make it clearer that the assumption about
7606         long_int width is being checked.  See
7607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7608
7609 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7610
7611         ignore-value: Fix self-test.
7612         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7613
7614 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7615
7616         TYPE_MAXIMUM: avoid theoretically undefined behavior
7617         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7618         negative number, which the C Standard says has undefined behavior.
7619         In practice this is not a problem, but might as well do it by the book.
7620         Reported by Rich Felker and Eric Blake; see
7621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7622         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7623         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7624         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7625         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7626         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7627         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7628
7629         mktime: #undef mktime before #defining it
7630         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7631
7632         mktime: systematically normalize tm_isdst comparisons
7633         * lib/mktime.c (isdst_differ): New function.
7634         (__mktime_internal): Use it systematically for all isdst comparisons.
7635         This completes the fix for libc BZ #6723, and removes the need for
7636         normalizing tm_isdst.  See
7637         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7638         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7639
7640         mktime: fix some integer overflow issues and sidestep the rest
7641
7642         This was prompted by a bug report by Benjamin Lindner for MinGW
7643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7644         His bug is due to signed integer overflow (0 - INT_MIN), and I
7645         I scanned through mktime.c looking for other integer overflow
7646         problems, fixing all the bugs I found.
7647
7648         Although the C Standard says the resulting code is still not safe
7649         in the presence of integer overflow, in practice it should be good
7650         enough for all real-world two's-complement implementations, except
7651         for debugging environments that deliberately trap on integer
7652         overflow (e.g., gcc -ftrapv).
7653
7654         * lib/mktime.c (WRAPV): New macro.
7655         (SHR): Also check that long_int and time_t shift right in the
7656         usual way, before using the fast-but-unportable method.
7657         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7658         used.  The code already assumed two's complement, so there's
7659         no need to test for alternatives.  All uses removed.
7660         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7661         the C standard.  Problem reported by Rich Felker in
7662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7663         (twos_complement_arithmetic): Also check long_int and time_t.
7664         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7665         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7666         (__mktime_internal): Avoid integer overflow with unary subtraction
7667         in two instances where -1 - X is an adequate replacement for -X,
7668         since the calculations are approximate.
7669
7670 2011-01-29  Eric Blake  <eblake@redhat.com>
7671
7672         mktime: avoid infinite loop
7673         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7674         type; behavior is still undefined but portable to all known targets.
7675         Reported by Rich Felker.
7676
7677 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7678
7679         rename, unlink, same-inode: Relicense.
7680         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7681         * modules/unlink (License): Likewise.
7682         * modules/same-inode (License): Likewise.
7683
7684 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7685
7686         mktime: avoid problems on NetBSD 5 / i386
7687         * lib/mktime.c (long_int): New type.  This works around a problem
7688         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7689         but time_t is 64 bits, and where I expect the existing code is
7690         wrong in some cases.
7691         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7692         (ydhms_diff): Bring back the compile-time check for wide-enough
7693         year and yday.
7694
7695         mktime: fix misspelling in comment
7696         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7697         This merges all recent glibc changes of importance.
7698
7699 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7700
7701         move-if-change: cope with concurrent mv of identical file.
7702         * build-aux/move-if-change (CMPPROG): Accept environment
7703         variable as an override for `cmp'.
7704         (usage): Document CMPPROG.
7705         Adjust comparison to drop stdout.  Cope with failure of mv if
7706         the target file exists and is identical to the source, for
7707         parallel builds.
7708         Report from H.J. Lu against binutils in PR binutils/12283.
7709
7710 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7711
7712         * users.txt: Mention sharutils.
7713
7714 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7715
7716         * users.txt: Mention OATH Toolkit.
7717
7718 2011-01-27  Bruno Haible  <bruno@clisp.org>
7719
7720         Prepare for supporting FreeBSD 10.
7721         * build-aux/config.libpath: Remove handling of freebsd1*.
7722
7723 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7724
7725         Prepare for supporting FreeBSD 10.
7726         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7727         match FreeBSD 10.0.
7728
7729 2011-01-27  Bruno Haible  <bruno@clisp.org>
7730
7731         vma-iter, get-rusage-as: Add OpenBSD support.
7732         * modules/vma-iter (configure.ac): Test for mquery.
7733         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7734         * lib/vma-iter.c: Include <sys/mman.h>.
7735         (vma_iterate): Add an implementation based on mquery().
7736         * lib/resource-ext.h (get_rusage_as): Update comments.
7737         * lib/get-rusage-as.c: Likewise.
7738         * lib/get-rusage-data.c: Likewise.
7739
7740 2011-01-26  Karl Berry  <karl@gnu.org>
7741
7742         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7743         variables to make it easier to override the makeinfo program used.
7744
7745 2011-01-26  Eric Blake  <eblake@redhat.com>
7746
7747         fcntl: work around Haiku F_DUPFD bugs
7748         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7749         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7750         cloexec bit on duplication.
7751         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7752
7753 2011-01-26  Bruno Haible  <bruno@clisp.org>
7754
7755         Enable memory leak tests on AIX.
7756         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7757         * tests/test-fprintf-posix3.c (main): Likewise.
7758
7759 2011-01-26  Bruno Haible  <bruno@clisp.org>
7760
7761         Tests for module 'get-rusage-data'.
7762         * modules/get-rusage-data-tests: New file.
7763         * tests/test-get-rusage-data.c: New file.
7764
7765         New module 'get-rusage-data'.
7766         * lib/resource-ext.h (get_rusage_data): New declaration.
7767         * lib/get-rusage-data.c: New file.
7768         * modules/get-rusage-data: New file.
7769
7770 2011-01-25  Bruno Haible  <bruno@clisp.org>
7771
7772         get-rusage-as: Allow for easier testing.
7773         * lib/resource-ext.h (get_rusage_as): Add comment.
7774         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
7775         (main): New function for interactive testing.
7776
7777 2011-01-25  Bruno Haible  <bruno@clisp.org>
7778
7779         vma-iter: Treat Haiku like BeOS.
7780         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
7781         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
7782
7783 2011-01-25  Eric Blake  <eblake@redhat.com>
7784
7785         c-stack: fix regression on cygwin when libsigsegv is present
7786         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
7787
7788 2011-01-24  Bruno Haible  <bruno@clisp.org>
7789
7790         vma-iter: Avoid empty intervals.
7791         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
7792         on an empty interval.
7793
7794 2011-01-24  Jim Meyering  <meyering@redhat.com>
7795
7796         u64: remove unnecessary #include
7797         * lib/u64.h: Don't include <stddef.h>.  It was not used.
7798
7799 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7800
7801         Allow the user to avoid the HAVE_RAW_DECL_* macros.
7802         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
7803
7804 2011-01-23  Bruno Haible  <bruno@clisp.org>
7805
7806         New module 'vma-iter'.
7807         * lib/vma-iter.h: New file.
7808         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
7809         * modules/vma-iter: New file.
7810         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
7811         for get_rusage_as_via_iterator.
7812         (vma_iterate_callback): New function.
7813         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
7814         * modules/get-rusage-as (Depends-on): Add vma-iter.
7815
7816 2011-01-23  Bruno Haible  <bruno@clisp.org>
7817
7818         uninorm: Tweak includes.
7819         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
7820         Reported by Jim Meyering.
7821
7822 2011-01-23  Bruno Haible  <bruno@clisp.org>
7823
7824         get-rusage-as: Improve on NetBSD.
7825         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
7826         /proc, like on FreeBSD.
7827
7828 2011-01-23  Jim Meyering  <meyering@redhat.com>
7829
7830         xreadlink.h: remove unnecessary #include
7831         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
7832
7833         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
7834         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
7835
7836 2011-01-23  Bruno Haible  <bruno@clisp.org>
7837
7838         get-rusage-as: Fix bug.
7839         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
7840         original limit when aborting the first loop.
7841
7842 2011-01-23  Bruno Haible  <bruno@clisp.org>
7843
7844         wctype: Ensure valid C syntax.
7845         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
7846         unconditionally, instead of gl_NEXT_HEADERS conditionally.
7847
7848 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7849
7850         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
7851         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
7852         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
7853         as they are needed only for configure's test case.
7854         This removes two unnecessary symbols from config.h.
7855
7856         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
7857         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
7858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
7859         AC_CHECK_HEADERS_ONCE on a header that we also invoke
7860         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
7861         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
7862         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
7863         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7864         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7865         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7866         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7867         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7868         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7869         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7870         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7871         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7872         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7873         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7874
7875 2011-01-21  Eric Blake  <eblake@redhat.com>
7876
7877         maintainer-makefile: work with older git for submodule check
7878         * top/maint.mk (public-submodule-commit): Rewrite to avoid
7879         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
7880         Reported by Matthias Bolte.
7881
7882         bootstrap: minor portability fixes
7883         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
7884         (usage): Omit leading capital and trailing . on help phrases, per
7885         GNU Coding Standards.
7886         (check_versions, top level): Prefix messages with script name.
7887
7888 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
7889
7890         bootstrap: support --no-git option
7891         * build-aux/bootstrap: Add --no-git option, to be used when
7892         --gnulib-srcdir points to the exact desired checkout.
7893
7894 2011-01-21  Eric Blake  <eblake@redhat.com>
7895
7896         strerror_r-posix: work with glibc 2.13
7897         * lib/strerror_r.c (strerror_r): Fix return type.
7898
7899 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7900             Bruno Haible  <bruno@clisp.org>
7901
7902         uN_strstr: New unit tests.
7903         * modules/unistr/u8-strstr-tests: New file.
7904         * modules/unistr/u16-strstr-tests: New file.
7905         * modules/unistr/u32-strstr-tests: New file.
7906         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
7907         * tests/unistr/test-u8-strstr.c: New file.
7908         * tests/unistr/test-u16-strstr.c: New file.
7909         * tests/unistr/test-u32-strstr.c: New file.
7910
7911 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7912             Bruno Haible  <bruno@clisp.org>
7913
7914         Make uN_strstr functions O(n) worst-case.
7915         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
7916         16-bit and 32-bit unit cases, use the unibyte algorithm from
7917         lib/mbsstr.c.
7918         * lib/unistr/u8-strstr.c: Include <string.h>.
7919         (UNIT_IS_UINT8_T): New macro.
7920         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
7921         (U_STRLEN, U_STRNLEN): New macros.
7922         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
7923         (U_STRLEN, U_STRNLEN): New macros.
7924         * modules/unistr/u8-strstr (Depends-on): Add strstr.
7925         (configure.ac): Update required libunistring version.
7926         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
7927         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
7928         malloca.
7929         (configure.ac): Update required libunistring version.
7930         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
7931         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
7932         malloca.
7933         (configure.ac): Update required libunistring version.
7934
7935 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7936             Bruno Haible  <bruno@clisp.org>
7937
7938         Prepare for faster uN_strstr functions.
7939         * lib/str-kmp.h: Support definable UNITs.
7940         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7941         needle_len argument.
7942         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
7943         * lib/mbscasestr.c (mbscasestr): Likewise.
7944
7945 2011-01-21  Pádraig Brady <P@draigBrady.com>
7946
7947         malloca-tests: make faster by unsetting MALLOC_PERTURB_
7948         * tests/test-malloca.c (main): Unset the environment variable
7949         to greatly speed up the test.
7950         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
7951         * modules/malloca-tests: Depend on unsetenv.
7952
7953 2011-01-21  Pádraig Brady <P@draigBrady.com>
7954
7955         ignore-value: remove stdint dependency
7956         * lib/ignore-value.h: Remove <stdint.h>
7957         * modules/ignore-value: Remove stdint dependency.
7958
7959 2011-01-21  Jim Meyering  <meyering@redhat.com>
7960
7961         maint.mk: adjust variable name to be consistent with other gl_ vars
7962         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7963         to be lower case.
7964
7965 2011-01-20  Jim Meyering  <meyering@redhat.com>
7966
7967         maint.mk: make "check" depend on public-submodule-commit by default
7968         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7969
7970 2011-01-20  Bruno Haible  <bruno@clisp.org>
7971
7972         mbfile, mbiter: Complete change from 2008-12-21.
7973         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7974         * m4/mbiter.m4 (gl_MBITER): Likewise.
7975
7976 2011-01-20  Jim Meyering  <meyering@redhat.com>
7977
7978         init.sh: insert space between each function name and "()"
7979         * tests/init.sh: Make it a little easier to see that a function's
7980         name is "warn_", and not "warn" when looking at the first part of
7981         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7982
7983 2011-01-20  Jim Meyering  <meyering@redhat.com>
7984
7985         mountlist: clean up code formatting
7986         * lib/mountlist.c (read_file_system_list): Split a long line,
7987         correct bracing style, use NULL in place of "(struct statfs *)0",
7988         don't parenthesize return value, add spaces around "=" and after
7989         ";-in-for-stmt".
7990
7991 2011-01-14  Markus Duft <mduft@gentoo.org>
7992
7993         mountlist: add support for Interix
7994         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
7995         Apply statvfs to all entries of /dev/fs.
7996         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
7997         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
7998
7999 2011-01-20  Jim Meyering  <meyering@redhat.com>
8000
8001         maint.mk: improve the public-submodule-commit rule
8002         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
8003         to suppress printing of its commands... unless V=1.
8004         Add git submodule's --quiet option to suppress printing of e.g.,
8005         "Entering gnulib" output.
8006         "cd" into $(srcdir) before running git submodule.
8007
8008 2011-01-20  Bruno Haible  <bruno@clisp.org>
8009
8010         include_next: Fix bug introduced on 2011-01-18.
8011         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
8012         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
8013         ac_cv_header_... variable if the second argument is not 'check'.
8014         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
8015         gl_NEXT_HEADERS_INTERNAL.
8016
8017 2011-01-20  Bruno Haible  <bruno@clisp.org>
8018
8019         Allow the user to avoid the GNULIB_TEST_* macros.
8020         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
8021         Suggested by Paul Eggert.
8022
8023 2011-01-14  Jim Meyering  <meyering@redhat.com>
8024
8025         bootstrap: avoid failure when there is no .gitmodules file
8026         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
8027         has been assigned to, even when its value is the empty string.
8028         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
8029         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
8030         Reported by John W. Eaton <jwe@gnu.org>.
8031
8032 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8033
8034         assume <ctype.h>, ..., <time.h> exist
8035         For years gnulib has been assuming the existence of the headers
8036         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
8037         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
8038         them, since they don't appear to be needed.
8039         * README (Portability guidelines): Document this.
8040         * lib/flock.c: Assume <fcntl.h> exists.
8041         * lib/regex_internal.h: Assume <locale.h> exists.
8042         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
8043         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
8044         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
8045         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
8046         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
8047         * m4/regex.m4 (gl_REGEX): Likewise.
8048         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
8049         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8050         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8051         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8052         * tests/test-argp.c: Likewise.
8053         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8054
8055         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8056         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8057         AA_APPLE_UNIVERSAL_BUILD.  See
8058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
8059         * NEWS: Document this.
8060
8061 2011-01-19  Eric Blake  <eblake@redhat.com>
8062
8063         c-stack: assume stack overflow if SA_SIGINFO unsupported
8064         * lib/c-stack.c (SIGACTION_WORKS): Rename...
8065         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
8066         sigaction will work.
8067         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
8068         behavior match Linux.
8069         * tests/test-c-stack.c (main): Prefer NULL for pointers.
8070
8071         stdbool-tests: accomodate Haiku
8072         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
8073
8074         binary-io: fix O_TEXT on Haiku
8075         * modules/binary-io (Depends-on): Add fcntl-h.
8076         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
8077         than blindly undefining O_TEXT.
8078         Reported by Scott McCreary.
8079
8080 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8081
8082         include_next: do not check for standard headers like stddef.h
8083
8084         I found this problem when modifying Emacs to use gnulib.
8085         I noticed that it added HAVE_STDDEF_H to config.h, even though
8086         gnulib always assumes <stddef.h> exists as per README and this
8087         symbol is unnecessary.
8088         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8089         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8090         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8091         faster for headers like stddef.h that are known to exist.
8092         (gl_CHECK_NEXT_HEADERS): Use it.
8093         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8094         rather than gl_CHECK_NEXT_HEADERS.
8095         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8096         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8097
8098 2011-01-18  Eric Blake  <eblake@redhat.com>
8099
8100         ansi-c++-opt: skip C++ dependency style if C++ is unused
8101         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8102         tests when we know C++ compilation is not desired.
8103         Reported by Scott McCreary.
8104
8105 2011-01-18  Bruno Haible  <bruno@clisp.org>
8106
8107         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8108         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8109         (main): Perform test also when getrlimit and setrlimit don't exist or
8110         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8111         limiting the address space size using setrlimit, compare the address
8112         space size before and after the the test.
8113         * tests/test-dprintf-posix2.c: Likewise.
8114         * tests/test-fprintf-posix3.sh: Update skip messages.
8115         * tests/test-dprintf-posix2.sh: Likewise.
8116         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8117         * modules/dprintf-posix-tests (Depends-on): Likewise.
8118         Reported by Bruce Korb <bkorb@gnu.org> and
8119         Gary V. Vaughan <gary@gnu.org>.
8120
8121 2011-01-18  Bruno Haible  <bruno@clisp.org>
8122
8123         get-rusage-as: Improvement for Cygwin.
8124         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8125         areas that are merely reserved.
8126
8127 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8128
8129         strftime: remove dependencies on multibyte modules
8130
8131         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8132         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8133         only if __osf__ is defined, and I suspect OSF doesn't need these
8134         other modules.  If my guess is wrong, we'll need to come up with a
8135         variant of strftime that doesn't need the multibyte modules.
8136
8137         I discovered this problem when attempting modify Emacs to use the
8138         strftime module.  With the previous gnulib, this caused Emacs to
8139         need 31 new files, ranging from lib/config.charset to
8140         m4/wint_t.m4.  This was overkill and I expect would be offputting
8141         to the Emacs maintainers.  After this change, only 6 new files are
8142         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8143         stdbool.m4, and tm_gmtoff.m4.
8144
8145         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8146         Suggested by Bruno Haible in
8147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8148         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8149         and do not check for wchar.h.
8150         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8151         (Depends-on): Remove mbrlen, mbsinit, wchar.
8152
8153 2011-01-18  Bruno Haible  <bruno@clisp.org>
8154
8155         Tests for module 'get-rusage-as'.
8156         * modules/get-rusage-as-tests: New file.
8157         * tests/test-get-rusage-as.c: New file.
8158
8159         New module 'get-rusage-as'.
8160         * modules/get-rusage-as: New file.
8161         * lib/resource-ext.h: New file.
8162         * lib/get-rusage-as.c: New file.
8163
8164 2011-01-17  Eric Blake  <eblake@redhat.com>
8165
8166         sigaction: relax license from LGPLv3+ to LGPLv2+
8167         * modules/sigaction (License): Relax to LGPLv2+.
8168
8169 2011-01-14  Bruno Haible  <bruno@clisp.org>
8170
8171         filemode: Make function declarations usable in C++ mode.
8172         * lib/filemode.h: Enclose function declarations in extern "C" block.
8173         Reported by John W. Eaton <jwe@gnu.org>.
8174
8175 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8176
8177         save-cwd: no longer include "xgetcwd.h"
8178         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8179         This avoids a compilation failure in projects that use save-cwd
8180         without also using the xgetcwd module.
8181
8182 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8183
8184         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8185         This is so that a program like Emacs, which needs only dtoastr,
8186         does not have to bother with distributing and compiling ftoastr
8187         and ldtoastr.
8188         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8189         * modules/dtoastr, modules/ldtoastr: New files.
8190         * modules/ftoastr: Now works just for 'float'.
8191         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8192         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8193         dtoastr.c, ldtoastr.c.
8194
8195 2011-01-11  Jim Meyering  <meyering@redhat.com>
8196
8197         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8198         There is no need to work around the lack of the fchdir function,
8199         since gnulib can now provide a replacement when required.
8200         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8201         * modules/save-cwd (Depends-on): Add fchdir.
8202
8203 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8204
8205         openat, save-cwd: avoid xmalloc
8206
8207         This removes a direct (but undocumented) dependency of openat on
8208         xalloc, along with an indirect dependency via save-cwd.  It also
8209         removes a dependency of save-cwd on xgetcwd, and thereby
8210         indirectly on xalloc.  This change causes the openat substitute
8211         to fall back on save_cwd when memory is tight, and for save_cwd to
8212         fail instead of dying when memory is tight, but that's good enough.
8213         Problem and initial idea for fix reported by Bastien Roucaries in
8214         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8215
8216         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8217         xalloc.h (for xmalloc).
8218         (openat_proc_name): Use malloc, not xmalloc.
8219         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8220         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8221
8222         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8223         This avoids heap allocation for file names whose lengths are in
8224         the range 512..1023, with the upper bound increasing to at most
8225         4031 depending on the platform's PATH_MAX.  (We do not want
8226         pathmax.h here as it might supply a non-constant PATH_MAX.)
8227         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8228         Perhaps they should be moved to malloca.h?
8229         (OPENAT_BUFFER_SIZE): Use them.
8230
8231 2011-01-10  Bruno Haible  <bruno@clisp.org>
8232
8233         doc: Update users.txt.
8234         * users.txt: Add recutils.
8235
8236 2011-01-09  Karl Berry  <karl@gnu.org>
8237
8238         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8239
8240         * doc/configmake.texi: New file.
8241         * doc/gnulib.texi: Include it.
8242         * modules/configmake: Move documentation from here.
8243
8244 2011-01-09  Bruno Haible  <bruno@clisp.org>
8245
8246         Update to Unicode 6.0.0.
8247         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8248         (get_lbp): Update for Unicode 6.0.0.
8249         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8250         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8251         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8252         U+11001, U+11038..U+11046. Remove U+06DE.
8253         (uc_width): Fix bounds of planes.
8254         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8255         lib/uniwidth/width.c.
8256         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8257         trailing whitespace removed.
8258         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8259         without comments, but with the original copyright notice.
8260         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8261         * lib/unicase/ignorable.h: Likewise.
8262         * lib/unicase/tocasefold.h: Likewise.
8263         * lib/unicase/tolower.h: Likewise.
8264         * lib/unicase/totitle.h: Likewise.
8265         * lib/unicase/toupper.h: Likewise.
8266         * lib/unictype/bidi_of.h: Likewise.
8267         * lib/unictype/blocks.h: Likewise.
8268         * lib/unictype/categ_C.h: Likewise.
8269         * lib/unictype/categ_Cn.h: Likewise.
8270         * lib/unictype/categ_L.h: Likewise.
8271         * lib/unictype/categ_Ll.h: Likewise.
8272         * lib/unictype/categ_Lm.h: Likewise.
8273         * lib/unictype/categ_Lo.h: Likewise.
8274         * lib/unictype/categ_Lu.h: Likewise.
8275         * lib/unictype/categ_M.h: Likewise.
8276         * lib/unictype/categ_Mc.h: Likewise.
8277         * lib/unictype/categ_Me.h: Likewise.
8278         * lib/unictype/categ_Mn.h: Likewise.
8279         * lib/unictype/categ_N.h: Likewise.
8280         * lib/unictype/categ_Nd.h: Likewise.
8281         * lib/unictype/categ_No.h: Likewise.
8282         * lib/unictype/categ_P.h: Likewise.
8283         * lib/unictype/categ_Po.h: Likewise.
8284         * lib/unictype/categ_S.h: Likewise.
8285         * lib/unictype/categ_Sc.h: Likewise.
8286         * lib/unictype/categ_Sk.h: Likewise.
8287         * lib/unictype/categ_Sm.h: Likewise.
8288         * lib/unictype/categ_So.h: Likewise.
8289         * lib/unictype/categ_of.h: Likewise.
8290         * lib/unictype/combining.h: Likewise.
8291         * lib/unictype/ctype_alnum.h: Likewise.
8292         * lib/unictype/ctype_alpha.h: Likewise.
8293         * lib/unictype/ctype_graph.h: Likewise.
8294         * lib/unictype/ctype_lower.h: Likewise.
8295         * lib/unictype/ctype_print.h: Likewise.
8296         * lib/unictype/ctype_punct.h: Likewise.
8297         * lib/unictype/ctype_upper.h: Likewise.
8298         * lib/unictype/decdigit.h: Likewise.
8299         * lib/unictype/digit.h: Likewise.
8300         * lib/unictype/numeric.h: Likewise.
8301         * lib/unictype/pr_alphabetic.h: Likewise.
8302         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8303         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8304         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8305         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8306         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8307         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8308         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8309         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8310         * lib/unictype/pr_case_ignorable.h: Likewise.
8311         * lib/unictype/pr_cased.h: Likewise.
8312         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8313         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8314         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8315         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8316         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8317         * lib/unictype/pr_combining.h: Likewise.
8318         * lib/unictype/pr_composite.h: Likewise.
8319         * lib/unictype/pr_currency_symbol.h: Likewise.
8320         * lib/unictype/pr_decimal_digit.h: Likewise.
8321         * lib/unictype/pr_deprecated.h: Likewise.
8322         * lib/unictype/pr_format_control.h: Likewise.
8323         * lib/unictype/pr_grapheme_base.h: Likewise.
8324         * lib/unictype/pr_grapheme_extend.h: Likewise.
8325         * lib/unictype/pr_grapheme_link.h: Likewise.
8326         * lib/unictype/pr_id_continue.h: Likewise.
8327         * lib/unictype/pr_id_start.h: Likewise.
8328         * lib/unictype/pr_ideographic.h: Likewise.
8329         * lib/unictype/pr_lowercase.h: Likewise.
8330         * lib/unictype/pr_math.h: Likewise.
8331         * lib/unictype/pr_numeric.h: Likewise.
8332         * lib/unictype/pr_other_alphabetic.h: Likewise.
8333         * lib/unictype/pr_other_id_continue.h: Likewise.
8334         * lib/unictype/pr_other_math.h: Likewise.
8335         * lib/unictype/pr_punctuation.h: Likewise.
8336         * lib/unictype/pr_sentence_terminal.h: Likewise.
8337         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8338         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8339         * lib/unictype/pr_unified_ideograph.h: Likewise.
8340         * lib/unictype/pr_uppercase.h: Likewise.
8341         * lib/unictype/pr_xid_continue.h: Likewise.
8342         * lib/unictype/pr_xid_start.h: Likewise.
8343         * lib/unictype/scripts.h: Likewise.
8344         * lib/unictype/scripts_byname.gperf: Likewise.
8345         * lib/unictype/sy_java_ident.h: Likewise.
8346         * lib/unigbrk/gbrkprop.h: Likewise.
8347         * lib/unilbrk/lbrkprop1.h: Likewise.
8348         * lib/unilbrk/lbrkprop2.h: Likewise.
8349         * lib/uninorm/decomposition-table2.h: Likewise.
8350         * lib/uniwbrk/wbrkprop.h: Likewise.
8351         * tests/unicase/test-cased.c: Likewise.
8352         * tests/unicase/test-ignorable.c: Likewise.
8353         * tests/unicase/test-uc_tolower.c: Likewise.
8354         * tests/unicase/test-uc_totitle.c: Likewise.
8355         * tests/unicase/test-uc_toupper.c: Likewise.
8356         * tests/unictype/test-categ_C.c: Likewise.
8357         * tests/unictype/test-categ_Cn.c: Likewise.
8358         * tests/unictype/test-categ_L.c: Likewise.
8359         * tests/unictype/test-categ_Ll.c: Likewise.
8360         * tests/unictype/test-categ_Lm.c: Likewise.
8361         * tests/unictype/test-categ_Lo.c: Likewise.
8362         * tests/unictype/test-categ_Lu.c: Likewise.
8363         * tests/unictype/test-categ_M.c: Likewise.
8364         * tests/unictype/test-categ_Mc.c: Likewise.
8365         * tests/unictype/test-categ_Me.c: Likewise.
8366         * tests/unictype/test-categ_Mn.c: Likewise.
8367         * tests/unictype/test-categ_N.c: Likewise.
8368         * tests/unictype/test-categ_Nd.c: Likewise.
8369         * tests/unictype/test-categ_No.c: Likewise.
8370         * tests/unictype/test-categ_P.c: Likewise.
8371         * tests/unictype/test-categ_Po.c: Likewise.
8372         * tests/unictype/test-categ_S.c: Likewise.
8373         * tests/unictype/test-categ_Sc.c: Likewise.
8374         * tests/unictype/test-categ_Sk.c: Likewise.
8375         * tests/unictype/test-categ_Sm.c: Likewise.
8376         * tests/unictype/test-categ_So.c: Likewise.
8377         * tests/unictype/test-ctype_alnum.c: Likewise.
8378         * tests/unictype/test-ctype_alpha.c: Likewise.
8379         * tests/unictype/test-ctype_graph.c: Likewise.
8380         * tests/unictype/test-ctype_lower.c: Likewise.
8381         * tests/unictype/test-ctype_print.c: Likewise.
8382         * tests/unictype/test-ctype_punct.c: Likewise.
8383         * tests/unictype/test-ctype_upper.c: Likewise.
8384         * tests/unictype/test-decdigit.h: Likewise.
8385         * tests/unictype/test-digit.h: Likewise.
8386         * tests/unictype/test-numeric.h: Likewise.
8387         * tests/unictype/test-pr_alphabetic.c: Likewise.
8388         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8389         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8390         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8391         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8392         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8393         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8394         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8395         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8396         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8397         * tests/unictype/test-pr_cased.c: Likewise.
8398         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8399         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8400         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8401         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8402         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8403         * tests/unictype/test-pr_combining.c: Likewise.
8404         * tests/unictype/test-pr_composite.c: Likewise.
8405         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8406         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8407         * tests/unictype/test-pr_deprecated.c: Likewise.
8408         * tests/unictype/test-pr_format_control.c: Likewise.
8409         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8410         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8411         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8412         * tests/unictype/test-pr_id_continue.c: Likewise.
8413         * tests/unictype/test-pr_id_start.c: Likewise.
8414         * tests/unictype/test-pr_ideographic.c: Likewise.
8415         * tests/unictype/test-pr_lowercase.c: Likewise.
8416         * tests/unictype/test-pr_math.c: Likewise.
8417         * tests/unictype/test-pr_numeric.c: Likewise.
8418         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8419         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8420         * tests/unictype/test-pr_other_math.c: Likewise.
8421         * tests/unictype/test-pr_punctuation.c: Likewise.
8422         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8423         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8424         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8425         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8426         * tests/unictype/test-pr_uppercase.c: Likewise.
8427         * tests/unictype/test-pr_xid_continue.c: Likewise.
8428         * tests/unictype/test-pr_xid_start.c: Likewise.
8429         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8430         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8431         changes.
8432         * lib/unictype/categ_Cc.h: Likewise.
8433         * lib/unictype/categ_Cf.h: Likewise.
8434         * lib/unictype/categ_Co.h: Likewise.
8435         * lib/unictype/categ_Cs.h: Likewise.
8436         * lib/unictype/categ_Lt.h: Likewise.
8437         * lib/unictype/categ_Nl.h: Likewise.
8438         * lib/unictype/categ_Pc.h: Likewise.
8439         * lib/unictype/categ_Pd.h: Likewise.
8440         * lib/unictype/categ_Pe.h: Likewise.
8441         * lib/unictype/categ_Pf.h: Likewise.
8442         * lib/unictype/categ_Pi.h: Likewise.
8443         * lib/unictype/categ_Ps.h: Likewise.
8444         * lib/unictype/categ_Z.h: Likewise.
8445         * lib/unictype/categ_Zl.h: Likewise.
8446         * lib/unictype/categ_Zp.h: Likewise.
8447         * lib/unictype/categ_Zs.h: Likewise.
8448         * lib/unictype/ctype_blank.h: Likewise.
8449         * lib/unictype/ctype_cntrl.h: Likewise.
8450         * lib/unictype/ctype_digit.h: Likewise.
8451         * lib/unictype/ctype_space.h: Likewise.
8452         * lib/unictype/ctype_xdigit.h: Likewise.
8453         * lib/unictype/mirror.h: Likewise.
8454         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8455         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8456         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8457         * lib/unictype/pr_bidi_control.h: Likewise.
8458         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8459         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8460         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8461         * lib/unictype/pr_bidi_pdf.h: Likewise.
8462         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8463         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8464         * lib/unictype/pr_dash.h: Likewise.
8465         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8466         * lib/unictype/pr_diacritic.h: Likewise.
8467         * lib/unictype/pr_extender.h: Likewise.
8468         * lib/unictype/pr_hex_digit.h: Likewise.
8469         * lib/unictype/pr_hyphen.h: Likewise.
8470         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8471         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8472         * lib/unictype/pr_ignorable_control.h: Likewise.
8473         * lib/unictype/pr_iso_control.h: Likewise.
8474         * lib/unictype/pr_join_control.h: Likewise.
8475         * lib/unictype/pr_left_of_pair.h: Likewise.
8476         * lib/unictype/pr_line_separator.h: Likewise.
8477         * lib/unictype/pr_logical_order_exception.h: Likewise.
8478         * lib/unictype/pr_non_break.h: Likewise.
8479         * lib/unictype/pr_not_a_character.h: Likewise.
8480         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8481         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8482         * lib/unictype/pr_other_id_start.h: Likewise.
8483         * lib/unictype/pr_other_lowercase.h: Likewise.
8484         * lib/unictype/pr_other_uppercase.h: Likewise.
8485         * lib/unictype/pr_paired_punctuation.h: Likewise.
8486         * lib/unictype/pr_paragraph_separator.h: Likewise.
8487         * lib/unictype/pr_pattern_syntax.h: Likewise.
8488         * lib/unictype/pr_pattern_white_space.h: Likewise.
8489         * lib/unictype/pr_private_use.h: Likewise.
8490         * lib/unictype/pr_quotation_mark.h: Likewise.
8491         * lib/unictype/pr_radical.h: Likewise.
8492         * lib/unictype/pr_soft_dotted.h: Likewise.
8493         * lib/unictype/pr_space.h: Likewise.
8494         * lib/unictype/pr_titlecase.h: Likewise.
8495         * lib/unictype/pr_variation_selector.h: Likewise.
8496         * lib/unictype/pr_white_space.h: Likewise.
8497         * lib/unictype/pr_zero_width.h: Likewise.
8498         * lib/unictype/sy_c_ident.h: Likewise.
8499         * lib/unictype/sy_c_whitespace.h: Likewise.
8500         * lib/unictype/sy_java_whitespace.h: Likewise.
8501         * lib/uninorm/composition-table.gperf: Likewise.
8502         * lib/uninorm/decomposition-table1.h: Likewise.
8503         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8504         LB8.
8505         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8506         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8507         * modules/unictype/*: Bump version number of expected libunistring
8508         version.
8509
8510 2011-01-09  Bruno Haible  <bruno@clisp.org>
8511
8512         Update to Unicode 5.2.0.
8513         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8514         trailing whitespace removed.
8515
8516 2011-01-09  Bruno Haible  <bruno@clisp.org>
8517
8518         New Unicode character properties, from Unicode 5.2.0.
8519         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8520         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8521         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8522         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8523         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8524         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8525         uc_is_property_cased, uc_is_property_case_ignorable,
8526         uc_is_property_changes_when_lowercased,
8527         uc_is_property_changes_when_uppercased,
8528         uc_is_property_changes_when_titlecased,
8529         uc_is_property_changes_when_casefolded,
8530         uc_is_property_changes_when_casemapped): New declarations.
8531         * lib/unictype/pr_byname.gperf: Add the new properties.
8532         * modules/unictype/property-byname (Depends-on): Depend on the new
8533         properties modules.
8534         * modules/unictype/property-all (Depends-on): Likewise.
8535         * MODULES.html.sh (Unicode string functions): Add
8536         unictype/property-case-ignorable, unictype/property-cased,
8537         unictype/property-changes-when-casefolded,
8538         unictype/property-changes-when-casemapped,
8539         unictype/property-changes-when-lowercased,
8540         unictype/property-changes-when-titlecased,
8541         unictype/property-changes-when-uppercased.
8542
8543         New module 'unictype/property-changes-when-casemapped'.
8544         * modules/unictype/property-changes-when-casemapped: New file.
8545         * lib/unictype/pr_changes_when_casemapped.c: New file.
8546         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8547         generated by gen-uni-tables.
8548         * modules/unictype/property-changes-when-casemapped-tests: New file.
8549         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8550         automatically generated by gen-uni-tables.
8551
8552         New module 'unictype/property-changes-when-casefolded'.
8553         * modules/unictype/property-changes-when-casefolded: New file.
8554         * lib/unictype/pr_changes_when_casefolded.c: New file.
8555         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8556         generated by gen-uni-tables.
8557         * modules/unictype/property-changes-when-casefolded-tests: New file.
8558         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8559         automatically generated by gen-uni-tables.
8560
8561         New module 'unictype/property-changes-when-titlecased'.
8562         * modules/unictype/property-changes-when-titlecased: New file.
8563         * lib/unictype/pr_changes_when_titlecased.c: New file.
8564         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8565         generated by gen-uni-tables.
8566         * modules/unictype/property-changes-when-titlecased-tests: New file.
8567         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8568         automatically generated by gen-uni-tables.
8569
8570         New module 'unictype/property-changes-when-uppercased'.
8571         * modules/unictype/property-changes-when-uppercased: New file.
8572         * lib/unictype/pr_changes_when_uppercased.c: New file.
8573         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8574         generated by gen-uni-tables.
8575         * modules/unictype/property-changes-when-uppercased-tests: New file.
8576         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8577         automatically generated by gen-uni-tables.
8578
8579         New module 'unictype/property-changes-when-lowercased'.
8580         * modules/unictype/property-changes-when-lowercased: New file.
8581         * lib/unictype/pr_changes_when_lowercased.c: New file.
8582         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8583         generated by gen-uni-tables.
8584         * modules/unictype/property-changes-when-lowercased-tests: New file.
8585         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8586         automatically generated by gen-uni-tables.
8587
8588         New module 'unictype/property-case-ignorable'.
8589         * modules/unictype/property-case-ignorable: New file.
8590         * lib/unictype/pr_case_ignorable.c: New file.
8591         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8592         by gen-uni-tables.
8593         * modules/unictype/property-case-ignorable-tests: New file.
8594         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8595         generated by gen-uni-tables.
8596
8597         New module 'unictype/property-cased'.
8598         * modules/unictype/property-cased: New file.
8599         * lib/unictype/pr_cased.c: New file.
8600         * lib/unictype/pr_cased.h: New file, automatically generated by
8601         gen-uni-tables.
8602         * modules/unictype/property-cased-tests: New file.
8603         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8604         gen-uni-tables.
8605
8606 2011-01-09  Bruno Haible  <bruno@clisp.org>
8607
8608         Update to Unicode 5.2.0.
8609         * lib/gen-uni-tables.c (output_predicate, output_category,
8610         output_combclass, output_bidi_category, output_decimal_digit_test,
8611         output_decimal_digit, output_digit_test, output_digit,
8612         output_numeric_test, output_numeric, output_mirror, output_scripts,
8613         output_scripts_byname, output_blocks, output_ident_category): Fix
8614         comment header.
8615         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8616         get_wbp.
8617         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8618         items.
8619         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8620         Changes_When_Lowercased, Changes_When_Uppercased,
8621         Changes_When_Titlecased, Changes_When_Casefolded,
8622         Changes_When_Casemapped.
8623         (is_property_alphabetic, is_property_default_ignorable_code_point):
8624         Update for Unicode 5.2.0.
8625         (is_property_cased, is_property_case_ignorable,
8626         is_property_changes_when_lowercased,
8627         is_property_changes_when_uppercased,
8628         is_property_changes_when_titlecased,
8629         is_property_changes_when_casefolded,
8630         is_property_changes_when_casemapped): New functions.
8631         (output_properties): Output also the properties cased, case_ignorable,
8632         changes_when_lowercased, changes_when_uppercased,
8633         changes_when_titlecased, changes_when_casefolded,
8634         changes_when_casemapped.
8635         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8636         Unicode TR#11 revision 17 -> 19.
8637         (LBP_CP): New enumeration value.
8638         (LBP_*): Adjust values accordingly.
8639         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8640         TR#14 revision 22 -> 24.
8641         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8642         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8643         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8644         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8645         is_WBP_MIDLETTER.
8646         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8647         the code1 and code2 of each composition rule.
8648         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8649         * lib/unicase/ignorable.h: Likewise.
8650         * lib/unicase/tocasefold.h: Likewise.
8651         * lib/unicase/tolower.h: Likewise.
8652         * lib/unicase/totitle.h: Likewise.
8653         * lib/unicase/toupper.h: Likewise.
8654         * lib/unictype/bidi_of.h: Likewise.
8655         * lib/unictype/blocks.h: Likewise.
8656         * lib/unictype/categ_C.h: Likewise.
8657         * lib/unictype/categ_Cf.h: Likewise.
8658         * lib/unictype/categ_Cn.h: Likewise.
8659         * lib/unictype/categ_L.h: Likewise.
8660         * lib/unictype/categ_Ll.h: Likewise.
8661         * lib/unictype/categ_Lm.h: Likewise.
8662         * lib/unictype/categ_Lo.h: Likewise.
8663         * lib/unictype/categ_Lu.h: Likewise.
8664         * lib/unictype/categ_M.h: Likewise.
8665         * lib/unictype/categ_Mc.h: Likewise.
8666         * lib/unictype/categ_Mn.h: Likewise.
8667         * lib/unictype/categ_N.h: Likewise.
8668         * lib/unictype/categ_Nd.h: Likewise.
8669         * lib/unictype/categ_Nl.h: Likewise.
8670         * lib/unictype/categ_No.h: Likewise.
8671         * lib/unictype/categ_P.h: Likewise.
8672         * lib/unictype/categ_Pd.h: Likewise.
8673         * lib/unictype/categ_Po.h: Likewise.
8674         * lib/unictype/categ_S.h: Likewise.
8675         * lib/unictype/categ_Sc.h: Likewise.
8676         * lib/unictype/categ_So.h: Likewise.
8677         * lib/unictype/categ_of.h: Likewise.
8678         * lib/unictype/combining.h: Likewise.
8679         * lib/unictype/ctype_alnum.h: Likewise.
8680         * lib/unictype/ctype_alpha.h: Likewise.
8681         * lib/unictype/ctype_graph.h: Likewise.
8682         * lib/unictype/ctype_lower.h: Likewise.
8683         * lib/unictype/ctype_print.h: Likewise.
8684         * lib/unictype/ctype_punct.h: Likewise.
8685         * lib/unictype/ctype_upper.h: Likewise.
8686         * lib/unictype/decdigit.h: Likewise.
8687         * lib/unictype/digit.h: Likewise.
8688         * lib/unictype/numeric.h: Likewise.
8689         * lib/unictype/pr_alphabetic.h: Likewise.
8690         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8691         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8692         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8693         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8694         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8695         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8696         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8697         * lib/unictype/pr_combining.h: Likewise.
8698         * lib/unictype/pr_composite.h: Likewise.
8699         * lib/unictype/pr_currency_symbol.h: Likewise.
8700         * lib/unictype/pr_dash.h: Likewise.
8701         * lib/unictype/pr_decimal_digit.h: Likewise.
8702         * lib/unictype/pr_deprecated.h: Likewise.
8703         * lib/unictype/pr_diacritic.h: Likewise.
8704         * lib/unictype/pr_extender.h: Likewise.
8705         * lib/unictype/pr_grapheme_base.h: Likewise.
8706         * lib/unictype/pr_grapheme_extend.h: Likewise.
8707         * lib/unictype/pr_grapheme_link.h: Likewise.
8708         * lib/unictype/pr_id_continue.h: Likewise.
8709         * lib/unictype/pr_id_start.h: Likewise.
8710         * lib/unictype/pr_ideographic.h: Likewise.
8711         * lib/unictype/pr_ignorable_control.h: Likewise.
8712         * lib/unictype/pr_logical_order_exception.h: Likewise.
8713         * lib/unictype/pr_lowercase.h: Likewise.
8714         * lib/unictype/pr_numeric.h: Likewise.
8715         * lib/unictype/pr_other_alphabetic.h: Likewise.
8716         * lib/unictype/pr_punctuation.h: Likewise.
8717         * lib/unictype/pr_sentence_terminal.h: Likewise.
8718         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8719         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8720         * lib/unictype/pr_unified_ideograph.h: Likewise.
8721         * lib/unictype/pr_uppercase.h: Likewise.
8722         * lib/unictype/pr_xid_continue.h: Likewise.
8723         * lib/unictype/pr_xid_start.h: Likewise.
8724         * lib/unictype/pr_zero_width.h: Likewise.
8725         * lib/unictype/scripts.h: Likewise.
8726         * lib/unictype/scripts_byname.gperf: Likewise.
8727         * lib/unictype/sy_java_ident.h: Likewise.
8728         * lib/unigbrk/gbrkprop.h: Likewise.
8729         * lib/unilbrk/lbrkprop1.h: Likewise.
8730         * lib/unilbrk/lbrkprop2.h: Likewise.
8731         * lib/unilbrk/lbrktables.h: Likewise.
8732         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8733         LBP_CP. Implement rule LB30.
8734         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8735         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8736         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8737         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8738         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8739         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8740         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8741         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8742         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8743         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8744         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8745         bits instead of 16 bits in the code1 and code2 of each composition
8746         rule.
8747         (uc_composition): Update for Unicode 5.2.0.
8748         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8749         * lib/uninorm/decomposition-table2.h: Likewise.
8750         * lib/uniwbrk/wbrkprop.h: Likewise.
8751         * tests/unicase/test-cased.c: Likewise.
8752         * tests/unicase/test-ignorable.c: Likewise.
8753         * tests/unicase/test-uc_tolower.c: Likewise.
8754         * tests/unicase/test-uc_totitle.c: Likewise.
8755         * tests/unicase/test-uc_toupper.c: Likewise.
8756         * tests/unictype/test-categ_C.c: Likewise.
8757         * tests/unictype/test-categ_Cf.c: Likewise.
8758         * tests/unictype/test-categ_Cn.c: Likewise.
8759         * tests/unictype/test-categ_L.c: Likewise.
8760         * tests/unictype/test-categ_Ll.c: Likewise.
8761         * tests/unictype/test-categ_Lm.c: Likewise.
8762         * tests/unictype/test-categ_Lo.c: Likewise.
8763         * tests/unictype/test-categ_Lu.c: Likewise.
8764         * tests/unictype/test-categ_M.c: Likewise.
8765         * tests/unictype/test-categ_Mc.c: Likewise.
8766         * tests/unictype/test-categ_Mn.c: Likewise.
8767         * tests/unictype/test-categ_N.c: Likewise.
8768         * tests/unictype/test-categ_Nd.c: Likewise.
8769         * tests/unictype/test-categ_Nl.c: Likewise.
8770         * tests/unictype/test-categ_No.c: Likewise.
8771         * tests/unictype/test-categ_P.c: Likewise.
8772         * tests/unictype/test-categ_Pd.c: Likewise.
8773         * tests/unictype/test-categ_Po.c: Likewise.
8774         * tests/unictype/test-categ_S.c: Likewise.
8775         * tests/unictype/test-categ_Sc.c: Likewise.
8776         * tests/unictype/test-categ_So.c: Likewise.
8777         * tests/unictype/test-ctype_alnum.c: Likewise.
8778         * tests/unictype/test-ctype_alpha.c: Likewise.
8779         * tests/unictype/test-ctype_graph.c: Likewise.
8780         * tests/unictype/test-ctype_lower.c: Likewise.
8781         * tests/unictype/test-ctype_print.c: Likewise.
8782         * tests/unictype/test-ctype_punct.c: Likewise.
8783         * tests/unictype/test-ctype_upper.c: Likewise.
8784         * tests/unictype/test-decdigit.h: Likewise.
8785         * tests/unictype/test-digit.h: Likewise.
8786         * tests/unictype/test-numeric.h: Likewise.
8787         * tests/unictype/test-pr_alphabetic.c: Likewise.
8788         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8789         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8790         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8791         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8792         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8793         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8794         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8795         * tests/unictype/test-pr_combining.c: Likewise.
8796         * tests/unictype/test-pr_composite.c: Likewise.
8797         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8798         * tests/unictype/test-pr_dash.c: Likewise.
8799         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8800         * tests/unictype/test-pr_deprecated.c: Likewise.
8801         * tests/unictype/test-pr_diacritic.c: Likewise.
8802         * tests/unictype/test-pr_extender.c: Likewise.
8803         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8804         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8805         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8806         * tests/unictype/test-pr_id_continue.c: Likewise.
8807         * tests/unictype/test-pr_id_start.c: Likewise.
8808         * tests/unictype/test-pr_ideographic.c: Likewise.
8809         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8810         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8811         * tests/unictype/test-pr_lowercase.c: Likewise.
8812         * tests/unictype/test-pr_numeric.c: Likewise.
8813         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8814         * tests/unictype/test-pr_punctuation.c: Likewise.
8815         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8816         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8817         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8818         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8819         * tests/unictype/test-pr_uppercase.c: Likewise.
8820         * tests/unictype/test-pr_xid_continue.c: Likewise.
8821         * tests/unictype/test-pr_xid_start.c: Likewise.
8822         * tests/unictype/test-pr_zero_width.c: Likewise.
8823         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8824         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
8825         changed behaviour: line breaking is now disallowed between a letter
8826         or '=' and '('.
8827         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8828         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8829         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8830         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
8831         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8832         lib/uniwidth/width.c.
8833         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
8834         without comments, but with the original copyright notice.
8835         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8836         changes.
8837         * lib/unictype/categ_Cc.h: Likewise.
8838         * lib/unictype/categ_Co.h: Likewise.
8839         * lib/unictype/categ_Cs.h: Likewise.
8840         * lib/unictype/categ_Lt.h: Likewise.
8841         * lib/unictype/categ_Me.h: Likewise.
8842         * lib/unictype/categ_Pc.h: Likewise.
8843         * lib/unictype/categ_Pe.h: Likewise.
8844         * lib/unictype/categ_Pf.h: Likewise.
8845         * lib/unictype/categ_Pi.h: Likewise.
8846         * lib/unictype/categ_Ps.h: Likewise.
8847         * lib/unictype/categ_Sk.h: Likewise.
8848         * lib/unictype/categ_Sm.h: Likewise.
8849         * lib/unictype/categ_Z.h: Likewise.
8850         * lib/unictype/categ_Zl.h: Likewise.
8851         * lib/unictype/categ_Zp.h: Likewise.
8852         * lib/unictype/categ_Zs.h: Likewise.
8853         * lib/unictype/ctype_blank.h: Likewise.
8854         * lib/unictype/ctype_cntrl.h: Likewise.
8855         * lib/unictype/ctype_digit.h: Likewise.
8856         * lib/unictype/ctype_space.h: Likewise.
8857         * lib/unictype/ctype_xdigit.h: Likewise.
8858         * lib/unictype/mirror.h: Likewise.
8859         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8860         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8861         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8862         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8863         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8864         * lib/unictype/pr_bidi_control.h: Likewise.
8865         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8866         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8867         * lib/unictype/pr_bidi_pdf.h: Likewise.
8868         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8869         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8870         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8871         * lib/unictype/pr_format_control.h: Likewise.
8872         * lib/unictype/pr_hex_digit.h: Likewise.
8873         * lib/unictype/pr_hyphen.h: Likewise.
8874         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8875         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8876         * lib/unictype/pr_iso_control.h: Likewise.
8877         * lib/unictype/pr_join_control.h: Likewise.
8878         * lib/unictype/pr_left_of_pair.h: Likewise.
8879         * lib/unictype/pr_line_separator.h: Likewise.
8880         * lib/unictype/pr_math.h: Likewise.
8881         * lib/unictype/pr_non_break.h: Likewise.
8882         * lib/unictype/pr_not_a_character.h: Likewise.
8883         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8884         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8885         * lib/unictype/pr_other_id_continue.h: Likewise.
8886         * lib/unictype/pr_other_id_start.h: Likewise.
8887         * lib/unictype/pr_other_lowercase.h: Likewise.
8888         * lib/unictype/pr_other_math.h: Likewise.
8889         * lib/unictype/pr_other_uppercase.h: Likewise.
8890         * lib/unictype/pr_paired_punctuation.h: Likewise.
8891         * lib/unictype/pr_paragraph_separator.h: Likewise.
8892         * lib/unictype/pr_pattern_syntax.h: Likewise.
8893         * lib/unictype/pr_pattern_white_space.h: Likewise.
8894         * lib/unictype/pr_private_use.h: Likewise.
8895         * lib/unictype/pr_quotation_mark.h: Likewise.
8896         * lib/unictype/pr_radical.h: Likewise.
8897         * lib/unictype/pr_soft_dotted.h: Likewise.
8898         * lib/unictype/pr_space.h: Likewise.
8899         * lib/unictype/pr_titlecase.h: Likewise.
8900         * lib/unictype/pr_variation_selector.h: Likewise.
8901         * lib/unictype/pr_white_space.h: Likewise.
8902         * lib/unictype/sy_c_ident.h: Likewise.
8903         * lib/unictype/sy_c_whitespace.h: Likewise.
8904         * lib/unictype/sy_java_whitespace.h: Likewise.
8905         * modules/uni*/*: Bump version number of expected libunistring version.
8906         Reported by Simon Josefsson.
8907
8908 2011-01-09  Karl Heuer  <kwzh@gnu.org>
8909
8910         useless-if-before-free: fix typo in --help and make the internal,
8911         automatic version date update process work once again.
8912         --help output contained a NUL character instead of the
8913         backslash-zero that was intended.  Also, the "must lie within
8914         the first 8 lines" line is on line 9, and hence not getting
8915         automatically updated.
8916         * build-aux/useless-if-before-free: Fix the former by adding a
8917         backslash, and the latter by condensing the three lines of what-it-does
8918         to a single line, leaving one line of slack for the future.
8919
8920 2011-01-09  Bruno Haible  <bruno@clisp.org>
8921
8922         uniwidth/width: Fix width of U+1D173..U+1D17A.
8923         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
8924         symbolic_width, output_width_property_test): New functions.
8925         (main): Invoke output_nonspacing_property, output_width_property_test.
8926         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
8927         U+1D173..U+1D17A.
8928         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
8929         1.
8930         * modules/uniwidth/*: Bump version number of expected libunistring
8931         version.
8932         * modules/unilbrk/*: Likewise.
8933
8934 2011-01-08  Bruno Haible  <bruno@clisp.org>
8935
8936         uninorm tests: Preserve copyright of Unicode data file.
8937         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
8938         Mention modifications.
8939
8940 2011-01-08  Bruno Haible  <bruno@clisp.org>
8941
8942         gen-uni-tables: Prepare for Unicode 5.2.0.
8943         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
8944         (debug_output_lbp, output_lbp): Update.
8945
8946 2011-01-08  Bruno Haible  <bruno@clisp.org>
8947
8948         unilbrk: Clarify gen-uni-tables.c code.
8949         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
8950         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
8951         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
8952
8953 2011-01-07  Bruno Haible  <bruno@clisp.org>
8954
8955         strtod: Restore errno when successfully parsing Infinity or NaN.
8956         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8957         restore the original errno.
8958
8959 2011-01-07  Bruno Haible  <bruno@clisp.org>
8960
8961         remove test: Avoid failure on HP-UX 11.
8962         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8963
8964 2011-01-07  Bruno Haible  <bruno@clisp.org>
8965
8966         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8967         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8968         error code.
8969
8970 2011-01-07  Pádraig Brady <P@draigBrady.com>
8971
8972         ignore-value: fixup comments, and add Eric Blake
8973         as an author since he rewrote the macros.
8974         * lib/ignore-value.h (ignore_value):  State that
8975         we now support aggregates.  Also specify exactly
8976         when the GCC warn_unused_result feature was added.
8977
8978 2011-01-06  Eric Blake  <eblake@redhat.com>
8979
8980         ignore-value: support aggregate types
8981         * lib/ignore-value.h (ignore_value): Provide separate gcc
8982         definition.
8983         * modules/ignore-value-tests: New test module.
8984         * tests/test-ignore-value.c: New test.
8985
8986         maint.mk: improve sc_prohibit_strcmp regex
8987         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8988         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8989         definition of STRNEQ.
8990
8991         signal: work around Haiku issue with SIGBUS
8992         * lib/siglist.h: Add comment.
8993         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
8994         strsignal's favoring of SIGSEGV.
8995         * tests/test-signal.c (main): Avoid test failure.
8996         * doc/posix-headers/signal.texi (signal.h): Document the issue.
8997         Reported by Scott McCreary.
8998
8999         maint.mk: add pre-release check to ensure submodule commits are public
9000         * top/maint.mk (public-submodule-commit): New rule.
9001         (submodule-checks): New variable.
9002         (alpha beta stable): Depend on the variable.
9003
9004 2011-01-05  Pádraig Brady <P@draigBrady.com>
9005         and Jim Meyering  <meyering@redhat.com>
9006
9007         ignore-value: make ignore_value more generic; deprecate ignore_ptr
9008         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
9009         (ATTRIBUTE_DEPRECATED): Define.
9010         (_ignore_case): New function.
9011         (ignore_value): New macro, to replace the old function.
9012         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
9013         * modules/ignore-value (Depends-on): Add stdint.
9014
9015 2011-01-04  Eric Blake  <eblake@redhat.com>
9016
9017         doc: regenerate INSTALL
9018         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
9019         @firstparagraphindent support, now that autoconf dropped it.
9020         (INSTALL_PRELUDE): Reinstate old macro.
9021         * doc/install.texi: Resync from autoconf.
9022         * doc/INSTALL: Reflect recent autoconf update.
9023         * doc/INSTALL.ISO: Likewise.
9024         * doc/INSTALL.UTF-8: Likewise.
9025         Reported by Karl Berry.
9026
9027 2011-01-04  Bruce Korb  <address@hidden>
9028
9029         git-version-gen: avoid a sub-shell
9030         * build-aux/git-version-gen: Redirect stderr in `...` via
9031         "exec 2>...", rather than via an added sub-shell.
9032
9033 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
9034
9035         git-version-gen: use (...) rather than sh -c '...'
9036         * build-aux/git-version-gen: Rather than hard-coding a shell's name
9037         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
9038
9039 2011-01-03  Jim Meyering  <meyering@redhat.com>
9040
9041         git-version-gen: convert leading TABs to spaces
9042         * build-aux/git-version-gen: Expand leading TABs.
9043
9044         git-version-gen: handle failed "git rev-list"
9045         * build-aux/git-version-gen: Rather than leaking a "fatal" error
9046         from git and proceeding as if it had succeeded but printed no SHA1
9047         checksums, suppress the diagnostic and handle the failure.
9048         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
9049
9050         git-version-gen: include command name in one more diagnostic
9051         * build-aux/git-version-gen: When the required .tarball-version file
9052         was missing or unreadable, you might see the diagnostic from "cat",
9053         but no trace of the name of the invoking script.  Now, you still see
9054         the diagnostic from cat, but also get one from "git-version-gen: ".
9055         Inspired by a patch from Bruce Korb.
9056
9057         update-copyright: adjust test to match changed code
9058         * tests/test-update-copyright.sh: Change test's expected output
9059         to match new actual output.
9060
9061 2011-01-02  Bruno Haible  <bruno@clisp.org>
9062
9063         getlogin_r: Avoid test failure on HP-UX 11.
9064         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
9065         ERANGE when the second argument is zero.
9066         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
9067         portability problem.
9068
9069 2011-01-02  Bruce Korb  <bkorb@gnu.org>
9070
9071         * build-aux/update-copyright: doc Simon's changes
9072
9073 2011-01-02  Simon Josefsson  <simon@josefsson.org>
9074
9075         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
9076         environment variable.
9077
9078 2011-01-02  Bruno Haible  <bruno@clisp.org>
9079
9080         unigbrk: Avoid gcc warnings.
9081         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
9082         unused variable.
9083         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
9084         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
9085         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
9086         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9087         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9088         Change type of first argument to 'const char *'.
9089         (main): Remove unused variable.
9090         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9091         type of first argument to 'const char *'.
9092         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9093         Likewise.
9094         (main): Change type of variable 's'.
9095         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9096         to 'int'.
9097
9098 2011-01-02  Bruno Haible  <bruno@clisp.org>
9099
9100         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9101         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9102         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9103         bug.
9104         * lib/pwrite.c: Undo 2010-12-31 patch.
9105         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9106
9107 2011-01-02  Bruno Haible  <bruno@clisp.org>
9108
9109         pread: Fix test whether it works.
9110         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9111
9112 2011-01-02  Bruno Haible  <bruno@clisp.org>
9113
9114         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9115         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9116         ends in "6". Don't require a specific month name. Try also the locale
9117         names found on HP-UX 11 and Solaris 7.
9118
9119 2011-01-02  Bruno Haible  <bruno@clisp.org>
9120
9121         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9122         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9123         C linkage.
9124         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9125
9126 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9127
9128         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9129         for consistency, since the "cluster" term is not used elsewhere.
9130         * lib/unigbrk.in.h: Update name.
9131         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9132         * lib/unigbrk/u16-grapheme-next.c: Update name.
9133         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9134         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9135         * lib/unigbrk/u32-grapheme-next.c: Update name.
9136         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9137         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9138         * lib/unigbrk/u8-grapheme-next.c: Update name.
9139         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9140         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9141         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9142         Suggested by Bruno Haible.
9143
9144 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9145
9146         Remove module 'u8-grapheme-len' as too redundant with
9147         'u8-grapheme-next'.
9148         * modules/unigbrk/u8-grapheme-len: Delete file.
9149         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9150         * lib/unigbrk.in.h: Remove prototype for deleted function.
9151         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9152         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9153
9154         Remove module 'u16-grapheme-len' as too redundant with
9155         'u16-grapheme-next'.
9156         * modules/unigbrk/u16-grapheme-len: Delete file.
9157         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9158         * lib/unigbrk.in.h: Remove prototype for deleted function.
9159         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9160         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9161
9162         Remove module 'u32-grapheme-len' as too redundant with
9163         'u32-grapheme-next'.
9164         * modules/unigbrk/u32-grapheme-len: Delete file.
9165         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9166         * lib/unigbrk.in.h: Remove prototype for deleted function.
9167         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9168         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9169
9170         Suggested by Bruno Haible.
9171
9172 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9173
9174         * unigbrk.in.h: Fix typo: "ben" => "been".
9175         Reported by Bruno Haible.
9176
9177 2011-01-01  Jim Meyering  <meyering@redhat.com>
9178
9179         maint: update almost all copyright ranges to include 2011
9180         Run the new "make update-copyright" rule.
9181
9182 2011-01-01  Jim Meyering  <meyering@redhat.com>
9183
9184         maint: update-copyright: exempt doc/INSTALL*
9185         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9186         since they are generated.  Suggested by Bruno Haible.
9187
9188 2011-01-01  Jim Meyering  <meyering@redhat.com>
9189
9190         maint: refine the update-copyright rule
9191         * Makefile (update-copyright): Also exclude any file that includes
9192         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9193         code that merely generates the comment.
9194
9195 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9196
9197         New module 'u8-grapheme-len'.
9198         * modules/unigbrk/u8-grapheme-len: New file.
9199         * modules/unigbrk/u8-grapheme-len-tests: New file.
9200         * lib/unigbrk.in.h: Add prototype for new function.
9201         * lib/unigbrk/u8-grapheme-len.c: New file.
9202         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9203
9204         New module 'u16-grapheme-len'.
9205         * modules/unigbrk/u16-grapheme-len: New file.
9206         * modules/unigbrk/u16-grapheme-len-tests: New file.
9207         * lib/unigbrk.in.h: Add prototype for new function.
9208         * lib/unigbrk/u16-grapheme-len.c: New file.
9209         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9210
9211         New module 'u32-grapheme-len'.
9212         * modules/unigbrk/u32-grapheme-len: New file.
9213         * modules/unigbrk/u32-grapheme-len-tests: New file.
9214         * lib/unigbrk.in.h: Add prototype for new function.
9215         * lib/unigbrk/u32-grapheme-len.c: New file.
9216         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9217
9218         New module 'u8-grapheme-next'.
9219         * modules/unigbrk/u8-grapheme-next: New file.
9220         * modules/unigbrk/u8-grapheme-next-tests: New file.
9221         * lib/unigbrk.in.h: Add prototype for new function.
9222         * lib/unigbrk/u8-grapheme-next.c: New file.
9223         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9224
9225         New module 'u16-grapheme-next'.
9226         * modules/unigbrk/u16-grapheme-next: New file.
9227         * modules/unigbrk/u16-grapheme-next-tests: New file.
9228         * lib/unigbrk.in.h: Add prototype for new function.
9229         * lib/unigbrk/u16-grapheme-next.c: New file.
9230         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9231
9232         New module 'u32-grapheme-next'.
9233         * modules/unigbrk/u32-grapheme-next: New file.
9234         * modules/unigbrk/u32-grapheme-next-tests: New file.
9235         * lib/unigbrk.in.h: Add prototype for new function.
9236         * lib/unigbrk/u32-grapheme-next.c: New file.
9237         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9238
9239         New module 'u8-grapheme-prev'.
9240         * modules/unigbrk/u8-grapheme-prev: New file.
9241         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9242         * lib/unigbrk.in.h: Add prototype for new function.
9243         * lib/unigbrk/u8-grapheme-prev.c: New file.
9244         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9245
9246         New module 'u16-grapheme-prev'.
9247         * modules/unigbrk/u16-grapheme-prev: New file.
9248         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9249         * lib/unigbrk.in.h: Add prototype for new function.
9250         * lib/unigbrk/u16-grapheme-prev.c: New file.
9251         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9252
9253         New module 'u32-grapheme-prev'.
9254         * modules/unigbrk/u32-grapheme-prev: New file.
9255         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9256         * lib/unigbrk.in.h: Add prototype for new function.
9257         * lib/unigbrk/u32-grapheme-prev.c: New file.
9258         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9259
9260         New module 'u8-grapheme-breaks'.
9261         * modules/unigbrk/u8-grapheme-breaks: New file.
9262         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9263         * lib/unigbrk.in.h: Add prototype for new function.
9264         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9265         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9266
9267         New module 'u16-grapheme-breaks'.
9268         * modules/unigbrk/u16-grapheme-breaks: New file.
9269         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9270         * lib/unigbrk.in.h: Add prototype for new function.
9271         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9272         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9273
9274         New module 'u32-grapheme-breaks'.
9275         * modules/unigbrk/u32-grapheme-breaks: New file.
9276         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9277         * lib/unigbrk.in.h: Add prototype for new function.
9278         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9279         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9280
9281         New module 'ulc-grapheme-breaks'.
9282         * modules/unigbrk/ulc-grapheme-breaks: New file.
9283         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9284         * m4/locale-ar.m4: New file.
9285         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9286         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9287         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9288
9289 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9290
9291         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9292         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9293         modified how this file was generated before I initially submitted
9294         the module, but failed to regenerate it.  This meant that several
9295         of the level2 entries were wrong.
9296         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9297         Remove the division-by-2 that is folded into the table now that
9298         gbrkprop.h has been regenerated properly.  Now -1 entries are
9299         handled correctly.
9300
9301         New module 'unigbrk/uc-gbrk-prop-tests'.
9302         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9303         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9304         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9305         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9306
9307 2011-01-01  Bruno Haible  <bruno@clisp.org>
9308
9309         Avoid use of hexadecimal escapes.
9310         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9311         instead of hexadecimal escapes.
9312
9313 2011-01-01  Jim Meyering  <meyering@redhat.com>
9314
9315         maint: new rule to update copyright year ranges
9316         * Makefile (update-copyright): New rule.
9317
9318         maint: indent with TABs in Makefile
9319         * Makefile: Expand leading sequences of spaces to TABs
9320
9321         version-etc: update the copyright year it reports
9322         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9323
9324 2010-12-31  Bruno Haible  <bruno@clisp.org>
9325
9326         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9327         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9328         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9329         zero.
9330
9331 2010-12-31  Bruno Haible  <bruno@clisp.org>
9332
9333         pwrite: Work around HP-UX 11.11 bug.
9334         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9335         works and set REPLACE_PWRITE if not.
9336         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9337         function.
9338         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9339
9340 2010-12-31  Bruno Haible  <bruno@clisp.org>
9341
9342         pread: Work around HP-UX 11 bugs.
9343         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9344         and set REPLACE_PREAD if not.
9345         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9346
9347 2010-12-31  Eric Blake  <eblake@redhat.com>
9348
9349         nl_langinfo: fix YESEXPR on Irix 6.5
9350         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9351         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9352         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9353         it.
9354
9355 2010-12-31  Bruno Haible  <bruno@clisp.org>
9356
9357         iconv: Document HP-UX 11 bug.
9358         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9359
9360 2010-12-31  Bruno Haible  <bruno@clisp.org>
9361
9362         ldexpl: Fix link error on HP-UX 11.
9363         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9364         LDEXPL_LIBM, using $ISNANL_LIBM.
9365
9366 2010-12-31  Eric Blake  <eblake@redhat.com>
9367
9368         ftello: avoid compilation failure with SunStudio c89
9369         * lib/ftello.c (ftello): Use lseek, not llseek.
9370
9371         tests: avoid failing coreutils tests on cygwin
9372         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9373         (create_exe_shims_): Return 0 when skipping.
9374
9375 2010-12-31  Bruno Haible  <bruno@clisp.org>
9376
9377         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9378         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9379
9380 2010-12-31  Bruno Haible  <bruno@clisp.org>
9381
9382         waitpid: Fix link error in C++ mode.
9383         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9384
9385 2010-12-31  Bruno Haible  <bruno@clisp.org>
9386
9387         isnan: Use GCC built-ins when possible.
9388         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9389         __builtin_isnan.
9390         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9391         (isnan): Define using GCC built-ins for GCC >= 4.0.
9392
9393 2010-12-31  Bruno Haible  <bruno@clisp.org>
9394
9395         isnand: Fix mistake.
9396         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9397         __builtin_isnand.
9398
9399 2010-12-31  Bruno Haible  <bruno@clisp.org>
9400
9401         open: Avoid C++ error on HP-UX 11.
9402         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9403
9404 2010-12-31  Bruno Haible  <bruno@clisp.org>
9405
9406         time_r: Add missing declarations on HP-UX 11.
9407         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9408         instead of HAVE_LOCALTIME_R.
9409         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9410         HAVE_LOCALTIME_R always.
9411         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9412         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9413         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9414         HAVE_LOCALTIME_R.
9415         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9416         * doc/posix-functions/localtime_r.texi: Likewise.
9417
9418 2010-12-29  Eric Blake  <eblake@redhat.com>
9419
9420         mountlist: tweak previous commit
9421         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9422         Reported by Paul Eggert.
9423
9424         mountlist: fix local drive detection on cygwin
9425         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9426         that works for cygwin.
9427
9428 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9429
9430         ftoastr, snprintf: ftoastr + snprintf module
9431         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9432         since the snprintf module now should be good enough here.
9433         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9434         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9435         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9436         GNULIB_SNPRINTF only for the test directory, and the latter
9437         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9438         seems to suffice by itself.
9439
9440 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9441
9442         alloca: one step towards thread-safety
9443         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9444         need for a static variable.  All callers changed.  This does not
9445         make the alloca replacement thread-safe, but it's one step.
9446
9447         tests: minor indenting change
9448         * tests/init.sh: Sync from coreutils housekeeping patch
9449         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9450         to keep lines within 80 columns.
9451
9452 2010-12-28  Jim Meyering  <meyering@redhat.com>
9453
9454         regex: don't infloop on persistent failing calloc
9455         * lib/regexec.c (build_trtable): Return failure indication upon
9456         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9457         In glibc, this was fixed for version 2.13:
9458         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9459
9460 2010-12-28  Bruno Haible  <bruno@clisp.org>
9461             Paul Eggert <eggert@cs.ucla.edu>
9462
9463         linkat: Make implementation robust against system behaviour variations.
9464         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9465         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9466         way, and to -2 if it needs a generic runtime test.
9467         * lib/linkat.c (solaris_optimized_link_immediate,
9468         solaris_optimized_link_follow): New functions.
9469         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9470         (check_same_link): Use it.
9471
9472 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9473
9474         New module 'unigbrk/base'.
9475         * modules/unigbrk/base: New file.
9476         * lib/unigbrk.in.h: New file.
9477
9478         New module 'unigbrk/uc-gbrk-prop'.
9479         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9480         * modules/unigbrk/uc-gbrk-prop: New file.
9481         * lib/unigbrk/gbrkprop.h: New file.
9482         * lib/unigbrk/uc-gbrk-prop.c: New file.
9483
9484         New module 'unigbrk/uc-is-grapheme-break'.
9485         * modules/unigbrk/uc-is-grapheme-break: New file.
9486         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9487         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9488         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9489         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9490         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9491
9492         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9493
9494 2010-12-27  Bruno Haible  <bruno@clisp.org>
9495
9496         linkat test: Avoid failure on Solaris 11 2010-11.
9497         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9498
9499 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9500
9501         utimens: work around glibc rounding bug on more platforms
9502         * lib/utimens.c (fdutimens): Work around rounding bug even if
9503         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9504         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9505
9506 2010-12-27  Bruno Haible  <bruno@clisp.org>
9507
9508         select tests: Improve comments.
9509         * tests/test-select.c (do_select): Add comments.
9510
9511 2010-12-27  Bruno Haible  <bruno@clisp.org>
9512
9513         select tests: Safer way of handling timeout.
9514         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9515         at every invocation.
9516
9517 2010-12-27  Bruno Haible  <bruno@clisp.org>
9518
9519         select tests: Use 'bool' where appropriate.
9520         * tests/test-select.c (connect_to_socket): Change argument type to
9521         'bool'.
9522
9523 2010-12-27  Bruno Haible  <bruno@clisp.org>
9524
9525         select tests: Use existing modules.
9526         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9527         (configure.ac): Don't test for unistd.h.
9528         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9529         declared in <unistd.h>.
9530
9531 2010-12-27  Bruno Haible  <bruno@clisp.org>
9532
9533         mbrtowc: Work around a Solaris 7 bug.
9534         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9535         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9536         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9537         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9538         MBRTOWC_NULL_ARG1_BUG.
9539         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9540         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9541         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9542         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9543
9544 2010-12-27  Jim Meyering  <meyering@redhat.com>
9545
9546         read-file.c: tweak syntax
9547         * lib/read-file.c (fread_file): Remove space after "*" in function
9548         definitions.
9549
9550 2010-12-27  Bruno Haible  <bruno@clisp.org>
9551
9552         times test: Avoid gcc warnings on OSF/1.
9553         * tests/test-times.c (main): Cast printf arguments from clock_t to
9554         'long int'.
9555
9556 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9557
9558         utimens: work around glibc rounding bug on older Linux kernels
9559         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9560         on Linux with a glibc whose utimes might not work, then work
9561         around a longstanding glibc bug involving rounding rather than
9562         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9563         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9564
9565 2010-12-26  Bruno Haible  <bruno@clisp.org>
9566
9567         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9568         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9569         _GL_CXXALIAS_SYS.
9570         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9571
9572 2010-12-26  Bruno Haible  <bruno@clisp.org>
9573
9574         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9575         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9576         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9577         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9578         looking for the declaration.
9579         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9580         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9581         problem.
9582         * doc/posix-functions/inet_pton.texi: Likewise.
9583
9584 2010-12-26  Bruno Haible  <bruno@clisp.org>
9585
9586         arpa_inet: Use the common idioms with C++ support.
9587         * lib/arpa_inet.in.h: Include c++defs.h.
9588         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9589         support.
9590         * modules/arpa_inet (Depends-on): Add c++defs.
9591         (Makefile.am): Substitute the contents of c++defs.h.
9592         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9593         * modules/arpa_inet-c++-tests: New file.
9594         * tests/test-arpa_inet-c++.cc: New file.
9595
9596 2010-12-25  Bruno Haible  <bruno@clisp.org>
9597
9598         Fix more C++ link errors on Solaris 8.
9599         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9600         $(LIB_EACCESS).
9601         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9602         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9603         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9604         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9605         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9606
9607 2010-12-25  Bruno Haible  <bruno@clisp.org>
9608
9609         printf-posix: Fix link error when a non-GCC compiler is used.
9610         * lib/stdio.in.h (printf): When not using GCC, override printf
9611         correctly.
9612         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9613
9614 2010-12-25  Bruno Haible  <bruno@clisp.org>
9615
9616         strerror_r-posix: Update doc.
9617         * doc/posix-functions/strerror_r.texi: Update doc about the return
9618         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9619
9620 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9621
9622         utimens: simplify the logic of the previous change
9623         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9624         This should not affect whether the test succeeds or fails.
9625
9626         utimens: configure better on hosts with NFS clock skew
9627         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9628         uses the clock of the local host.  It might use the clock of the
9629         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9630         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9631
9632 2010-12-25  Bruno Haible  <bruno@clisp.org>
9633
9634         ptsname test: Avoid failure on Solaris.
9635         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9636         open a pseudo-terminal; don't use BSD-style ptys.
9637         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9638
9639 2010-12-25  Bruno Haible  <bruno@clisp.org>
9640
9641         ptsname: Avoid ERANGE failure on some systems.
9642         * lib/ptsname.c (buffer): Increase size.
9643
9644 2010-12-25  Bruno Haible  <bruno@clisp.org>
9645
9646         rename, renameat: Avoid test failures at NFS mounted locations.
9647         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9648         so that subsequent mkdir calls succeed.
9649
9650 2010-12-25  Bruno Haible  <bruno@clisp.org>
9651
9652         iswblank: Fix C++ link error on Solaris 8.
9653         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9654         _GL_FUNCDECL_SYS.
9655
9656 2010-12-25  Bruno Haible  <bruno@clisp.org>
9657
9658         unistd: Fix C++ link error on Solaris 8.
9659         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9660
9661 2010-12-25  Bruno Haible  <bruno@clisp.org>
9662
9663         readlink doc: Mention an old glibc bug.
9664         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9665
9666 2010-12-25  Bruno Haible  <bruno@clisp.org>
9667
9668         fcntl-h: Fix for use of C++ on glibc systems.
9669         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9670         also on glibc systems in C++ mode.
9671         Reported by Gary V. Vaughan <gary@gnu.org>.
9672
9673 2010-12-25  Bruno Haible  <bruno@clisp.org>
9674
9675         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9676         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9677
9678 2010-12-25  Bruno Haible  <bruno@clisp.org>
9679
9680         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9681         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9682         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9683         test whether truncl works according to ISO C 99 with IEC 60559.
9684         * m4/truncl-ieee.m4: New file.
9685         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9686         m4/signbit.m4.
9687         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9688
9689 2010-12-25  Bruno Haible  <bruno@clisp.org>
9690
9691         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9692         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9693         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9694         test whether ceill works according to ISO C 99 with IEC 60559.
9695         * m4/ceill-ieee.m4: New file.
9696         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9697         m4/signbit.m4.
9698         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9699
9700 2010-12-25  Bruno Haible  <bruno@clisp.org>
9701
9702         Ensure all prerequisites of <wchar.h> are included.
9703         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9704         before <wchar.h>.
9705         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9706         gl_MBRLEN_NUL_RETVAL): Likewise.
9707         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9708         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9709         AC_FUNC_MBRTOWC): Likewise.
9710         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9711         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9712         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9713         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9714         Likewise.
9715         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9716         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9717         (gl_WCHAR_H): Improve comments.
9718         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9719
9720 2010-12-25  Bruno Haible  <bruno@clisp.org>
9721
9722         strtok_r: Fix C syntax error in autoconf macro.
9723         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9724         characters in test program.
9725
9726 2010-12-24  Bruno Haible  <bruno@clisp.org>
9727
9728         ceil, trunc, round: Fix gcc warnings.
9729         * lib/ceil.c (MIN): Undefine before redefining.
9730         * lib/trunc.c (MIN): Likewise.
9731         * lib/round.c (MIN): Likewise.
9732         Include <math.h> first.
9733
9734 2010-12-24  Bruno Haible  <bruno@clisp.org>
9735
9736         select tests: Avoid failures on OSF/1 5.1.
9737         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9738         failure of closing the last socket; it may fail with ECONNRESET.
9739
9740 2010-12-24  Eric Blake  <eblake@redhat.com>
9741
9742         stdint: avoid HP-UX 10.20 preprocessor bug
9743         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9744         than #if.
9745         * tests/test-floor2.c (main): Likewise.
9746         Reported by Peter O'Gorman.
9747
9748         pipe: make obsoletion transition easier
9749         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9750         * modules/pipe (Files): Include revived file.
9751         (Include): Drop reference, to mirror getdate's behavior.
9752
9753 2010-12-24  Bruno Haible  <bruno@clisp.org>
9754
9755         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9756         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9757         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9758         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9759
9760 2010-12-24  Bruno Haible  <bruno@clisp.org>
9761
9762         gethostname: Ensure declaration on NonStop Kernel.
9763         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
9764         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9765
9766 2010-12-24  Bruno Haible  <bruno@clisp.org>
9767
9768         sys_select: Ensure all necessary types on NonStop Kernel.
9769         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
9770         include <sys/time.h>.
9771         * doc/posix-headers/sys_select.texi: Mention that it's missing on
9772         NonStop Kernel.
9773         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9774
9775 2010-12-24  Bruno Haible  <bruno@clisp.org>
9776
9777         sys_select: Remove unneeded include.
9778         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
9779         have <sys/select.h>.
9780
9781 2010-12-24  Bruno Haible  <bruno@clisp.org>
9782
9783         gethostname: Provide a fallback for HOST_NAME_MAX.
9784         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
9785         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
9786         instead.
9787         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9788
9789 2010-12-24  Bruno Haible  <bruno@clisp.org>
9790
9791         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
9792         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
9793         (SA_RESTART): Likewise.
9794         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9795
9796 2010-12-24  Bruno Haible  <bruno@clisp.org>
9797
9798         signal: Define NSIG.
9799         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
9800         * tests/test-signal.c (nsig): New variable.
9801         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9802
9803 2010-12-24  Bruno Haible  <bruno@clisp.org>
9804
9805         rename, renameat: Avoid test failures on OSF/1 5.1.
9806         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
9807         alternative error codes.
9808         * tests/test-renameat.c (main): Likewise.
9809
9810 2010-12-24  Bruno Haible  <bruno@clisp.org>
9811
9812         *printf: Detect large precisions bug on Solaris 10/SPARC.
9813         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
9814         by Paul Eggert.
9815         * tests/test-snprintf-posix.h (test_function): Add this test code here
9816         too.
9817         * tests/test-sprintf-posix.h (test_function): Likewise.
9818         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9819         * tests/test-vasprintf-posix.c (test_function): Likewise.
9820         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
9821         around by gnulib.
9822         * doc/posix-functions/printf.texi: Likewise.
9823         * doc/posix-functions/snprintf.texi: Likewise.
9824         * doc/posix-functions/sprintf.texi: Likewise.
9825         * doc/posix-functions/vfprintf.texi: Likewise.
9826         * doc/posix-functions/vprintf.texi: Likewise.
9827         * doc/posix-functions/vsnprintf.texi: Likewise.
9828         * doc/posix-functions/vsprintf.texi: Likewise.
9829         * doc/posix-functions/dprintf.texi: Undo last commit.
9830         * doc/posix-functions/vdprintf.texi: Likewise.
9831
9832 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9833
9834         tests: port test-fdutimensat.c to Solaris 8
9835         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
9836         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
9837         On Solaris 8, it fails with errno == ENOSYS, because there is no
9838         futimens (so it can't use the fd), and there is no lutimens (so it
9839         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
9840
9841         vsnprintf: make more consistent with snprintf; doc fixes
9842
9843         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
9844         the byte count return problem was promoted from the snprintf-posix
9845         to the snprintf module.
9846         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9847         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
9848         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
9849         * tests/test-snprintf.c (main): Check the byte count returned.
9850         * tests/test-vsnprintf.c (main): Likewise.
9851
9852 2010-12-23  Eric Blake  <eblake@redhat.com>
9853
9854         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
9855         * modules/sigpipe (License): Relax license.
9856
9857 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9858
9859         doc: document Solaris printf bug with large float precisions
9860         * doc/posix-functions/dprintf.texi (dprintf):
9861         * doc/posix-functions/fprintf.texi (fprintf):
9862         * doc/posix-functions/printf.texi (printf):
9863         * doc/posix-functions/snprintf.texi (snprintf):
9864         * doc/posix-functions/sprintf.texi (sprintf):
9865         * doc/posix-functions/vdprintf.texi (vdprintf):
9866         * doc/posix-functions/vfprintf.texi (vfprintf):
9867         * doc/posix-functions/vprintf.texi (vprintf):
9868         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9869         * doc/posix-functions/vsprintf.texi (vsprintf):
9870         Mention that these functions mishandle large floating point
9871         precisions on Solaris 10.  The same bug is also present in Solaris
9872         8, and I assume earlier.  This causes "cd gnulib-tests; make
9873         check" to fail on Solaris 8 (and I assume, later) when building
9874         the latest coreutils, in test-vasprintf-posix's call to
9875         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
9876         the wide flavors (e.g., wprintf) so this patch just updates the
9877         documentation for the narrow ones.
9878
9879         test-posixtm.c: add two tests
9880         * tests/test-posixtm.c: Add two tests, to highlight the
9881         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
9882         around this bug; this is merely to document it.
9883
9884 2010-12-22  Bruno Haible  <bruno@clisp.org>
9885
9886         getlogin_r: Work around portability problem on OSF/1.
9887         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
9888         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
9889         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
9890         test for a truncated result.
9891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
9892         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
9893         * modules/getlogin_r (Depends-on): Add memchr.
9894         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
9895
9896 2010-12-22  Bruno Haible  <bruno@clisp.org>
9897
9898         ptsname: Avoid test failure on OSF/1 5.1.
9899         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
9900         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
9901         (same_slave): New function.
9902         (main): Use it to compare ptsname's result with the expected file name.
9903
9904 2010-12-22  Bruno Haible  <bruno@clisp.org>
9905
9906         Port extended stdio modules to HP NonStop Kernel.
9907         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
9908         macros.
9909         * lib/fbufmode.c: Update comments.
9910         * lib/fflush.c: Likewise.
9911         * lib/fpurge.c: Likewise.
9912         * lib/freadable.c: Likewise.
9913         * lib/freadahead.c: Likewise.
9914         * lib/freading.c: Likewise.
9915         * lib/freadptr.c: Likewise.
9916         * lib/freadseek.c: Likewise.
9917         * lib/fseeko.c: Likewise.
9918         * lib/fseterr.c: Likewise.
9919         * lib/fwritable.c: Likewise.
9920         * lib/fwriting.c: Likewise.
9921         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9922
9923 2010-12-22  Bruno Haible  <bruno@clisp.org>
9924
9925         ttyname_r: Work around bug on OSF/1 5.1.
9926         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
9927         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
9928         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
9929         present.
9930         * lib/ttyname_r.c (ttyname_r): Update comments.
9931
9932 2010-12-22  Bruno Haible  <bruno@clisp.org>
9933
9934         round: Implement result sign according to IEEE 754.
9935         * lib/round.c (MIN, MINUS_ZERO): New macros.
9936         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
9937         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
9938         * tests/test-round-ieee.c (main): Likewise.
9939         * tests/test-roundl-ieee.c (main): Likewise.
9940
9941         trunc: Implement result sign according to IEEE 754.
9942         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
9943         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
9944         * tests/test-trunc2.c: Include minus-zero.h.
9945         (MINUS_ZERO): New macro.
9946         (trunc_reference): Keep in sync with lib/trunc.c.
9947         * tests/test-truncf2.c: Include minus-zero.h.
9948         (MINUS_ZERO): New macro.
9949         (truncf_reference): Keep in sync with lib/trunc.c.
9950         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
9951         * tests/test-trunc-ieee.c (main): Likewise.
9952         * tests/test-truncl-ieee.c (main): Likewise.
9953
9954         ceil: Implement result sign according to IEEE 754.
9955         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9956         (FUNC): Return -0.0 for -1 < x < 0.
9957         * tests/test-ceil2.c: Include minus-zero.h.
9958         (MINUS_ZERO): New macro.
9959         (ceil_reference): Keep in sync with lib/ceil.c.
9960         * tests/test-ceilf2.c: Include minus-zero.h.
9961         (MINUS_ZERO): New macro.
9962         (ceilf_reference): Keep in sync with lib/ceil.c.
9963         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9964         * tests/test-ceil-ieee.c (main): Likewise.
9965         * tests/test-ceill-ieee.c (main): Likewise.
9966
9967         floor: Implement result sign according to IEEE 754.
9968         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9969         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9970         * tests/test-floorf2.c (floorf_reference): Likewise.
9971         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9972         * tests/test-floor-ieee.c (main): Likewise.
9973         * tests/test-floorl-ieee.c (main): Likewise.
9974
9975 2010-12-22  Bruno Haible  <bruno@clisp.org>
9976
9977         getaddrinfo: Update doc.
9978         * doc/posix-functions/gai_strerror.texi: Return type is also different
9979         on AIX and HP-UX.
9980
9981 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9982
9983         getaddrinfo, inet_ntop: Update doc for Solaris.
9984         * doc/posix-functions/gai_strerror.texi: Return type is also an
9985         issue on Solaris 9 and earlier.
9986         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9987         on Solaris 10 and earlier.
9988
9989 2010-12-21  Bruno Haible  <bruno@clisp.org>
9990
9991         New module 'roundl-ieee'.
9992         * modules/roundl-ieee: New file.
9993         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
9994         test whether roundl works according to ISO C 99 with IEC 60559.
9995         * m4/roundl-ieee.m4: New file.
9996         * modules/roundl-ieee-tests: New file.
9997         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
9998         * tests/test-roundl.c (main): Remove signbit tests.
9999         * modules/roundl-tests (Depends-on): Remove signbit.
10000         * doc/posix-functions/roundl.texi: Mention the new module.
10001
10002 2010-12-21  Bruno Haible  <bruno@clisp.org>
10003
10004         New module 'truncl-ieee'.
10005         * modules/truncl-ieee: New file.
10006         * modules/truncl-ieee-tests: New file.
10007         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
10008         * tests/test-truncl.c (main): Remove signbit tests.
10009         * modules/truncl-tests (Depends-on): Remove signbit.
10010         * doc/posix-functions/truncl.texi: Mention the new module.
10011
10012 2010-12-21  Bruno Haible  <bruno@clisp.org>
10013
10014         New module 'ceill-ieee'.
10015         * modules/ceill-ieee: New file.
10016         * modules/ceill-ieee-tests: New file.
10017         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
10018         * tests/test-ceill.c (main): Remove signbit tests.
10019         * modules/ceill-tests (Depends-on): Remove signbit.
10020         * doc/posix-functions/ceill.texi: Mention the new module.
10021
10022 2010-12-21  Bruno Haible  <bruno@clisp.org>
10023
10024         New module 'floorl-ieee'.
10025         * modules/floorl-ieee: New file.
10026         * modules/floorl-ieee-tests: New file.
10027         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
10028         * tests/test-floorl.c (main): Remove signbit tests.
10029         * modules/floorl-tests (Depends-on): Remove signbit.
10030         * doc/posix-functions/floorl.texi: Mention the new module.
10031
10032 2010-12-21  Bruno Haible  <bruno@clisp.org>
10033
10034         New module 'round-ieee'.
10035         * modules/round-ieee: New file.
10036         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
10037         whether round works according to ISO C 99 with IEC 60559.
10038         * m4/round-ieee.m4: New file.
10039         * modules/round-ieee-tests: New file.
10040         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
10041         * tests/test-round1.c (main): Remove signbit tests.
10042         * modules/round-tests (Depends-on): Remove 'signbit'.
10043         * doc/posix-functions/round.texi: Mention the new module.
10044
10045 2010-12-21  Bruno Haible  <bruno@clisp.org>
10046
10047         New module 'trunc-ieee'.
10048         * modules/trunc-ieee: New file.
10049         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10050         whether trunc works according to ISO C 99 with IEC 60559.
10051         * m4/trunc-ieee.m4: New file.
10052         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10054         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10055         * modules/trunc-ieee-tests: New file.
10056         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10057         * tests/test-trunc1.c (main): Remove signbit tests.
10058         * modules/trunc-tests (Depends-on): Remove 'signbit'.
10059         * doc/posix-functions/trunc.texi: Mention the new module.
10060
10061 2010-12-21  Bruno Haible  <bruno@clisp.org>
10062
10063         New module 'ceil-ieee'.
10064         * modules/ceil-ieee: New file.
10065         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
10066         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
10067         ISO C 99 with IEC 60559.
10068         * m4/ceil-ieee.m4: New file.
10069         * modules/ceil (Files): Add lib/ceil.c.
10070         (Depends-on): Add 'float'.
10071         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10072         * lib/math.in.h (ceil): New declaration.
10073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
10074         REPLACE_CEIL.
10075         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
10076         * modules/ceil-ieee-tests: New file.
10077         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
10078         * tests/test-math-c++.cc: Check the signature of 'ceil'.
10079         * doc/posix-functions/ceil.texi: Mention the new module.
10080
10081 2010-12-21  Bruno Haible  <bruno@clisp.org>
10082
10083         New module 'floor-ieee'.
10084         * modules/floor-ieee: New file.
10085         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
10086         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10087         ISO C 99 with IEC 60559.
10088         * m4/floor-ieee.m4: New file.
10089         * modules/floor (Files): Add lib/floor.c.
10090         (Depends-on): Add 'float'.
10091         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10092         * lib/math.in.h (floor): New declaration.
10093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10094         REPLACE_FLOOR.
10095         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10096         * modules/floor-ieee-tests: New file.
10097         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10098         * tests/test-math-c++.cc: Check the signature of 'floor'.
10099         * doc/posix-functions/floor.texi: Mention the new module.
10100
10101 2010-12-21  Bruno Haible  <bruno@clisp.org>
10102
10103         New module 'roundf-ieee'.
10104         * modules/roundf-ieee: New file.
10105         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10106         test whether roundf works according to ISO C 99 with IEC 60559.
10107         * m4/roundf-ieee.m4: New file.
10108         * modules/roundf-ieee-tests: New file.
10109         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10110         * tests/test-roundf1.c (main): Remove signbit tests.
10111         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10112         * doc/posix-functions/roundf.texi: Mention the new module.
10113
10114 2010-12-21  Bruno Haible  <bruno@clisp.org>
10115
10116         New module 'truncf-ieee'.
10117         * modules/truncf-ieee: New file.
10118         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10119         test whether truncf works according to ISO C 99 with IEC 60559.
10120         * m4/truncf-ieee.m4: New file.
10121         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10123         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10124         * modules/truncf-ieee-tests: New file.
10125         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10126         * tests/test-truncf1.c (main): Remove signbit tests.
10127         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10128         * doc/posix-functions/truncf.texi: Mention the new module.
10129
10130 2010-12-21  Bruno Haible  <bruno@clisp.org>
10131
10132         New module 'ceilf-ieee'.
10133         * modules/ceilf-ieee: New file.
10134         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10135         test whether ceilf works according to ISO C 99 with IEC 60559.
10136         * m4/ceilf-ieee.m4: New file.
10137         * modules/ceilf-ieee-tests: New file.
10138         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10139         * tests/test-ceilf1.c (main): Remove signbit tests.
10140         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10141         * doc/posix-functions/ceilf.texi: Mention the new module.
10142
10143 2010-12-21  Bruno Haible  <bruno@clisp.org>
10144
10145         New module 'floorf-ieee'.
10146         * modules/floorf-ieee: New file.
10147         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10148         test whether floorf works according to ISO C 99 with IEC 60559.
10149         * m4/floorf-ieee.m4: New file.
10150         * modules/floorf-ieee-tests: New file.
10151         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10152         * tests/test-floorf1.c (main): Remove signbit tests.
10153         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10154         * doc/posix-functions/floorf.texi: Mention the new module.
10155
10156 2010-12-21  Bruno Haible  <bruno@clisp.org>
10157
10158         Support for minus zero in autoconf macros.
10159         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10160         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10161         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10162         * tests/minus-zero.h: Update comments.
10163
10164 2010-12-21  Bruno Haible  <bruno@clisp.org>
10165
10166         Tests for module 'ceil'.
10167         * modules/ceil-tests: New file.
10168         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10169         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10170
10171 2010-12-21  Bruno Haible  <bruno@clisp.org>
10172
10173         Tests for module 'floor'.
10174         * modules/floor-tests: New file.
10175         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10176         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10177
10178 2010-12-21  Bruno Haible  <bruno@clisp.org>
10179
10180         math: Fix indentation.
10181         * lib/math.in.h (floorf): Fix indentation.
10182
10183 2010-12-21  Bruno Haible  <bruno@clisp.org>
10184
10185         Fix cross-compilation guesses on Solaris.
10186         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10187         not match "solaris2.10".
10188         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10189         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10190         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10191
10192 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10193
10194         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10195         This fixes a problem observed with the latest coreutils snapshot
10196         that caused a test to fail on Solaris 8.  src/csplit.c's call
10197         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10198         earlier, instead of returning the number of bytes that would have
10199         been generated; this causes csplit to incorrectly report memory
10200         exhaustion.
10201         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10202         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10203         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10204         comments to match.
10205         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10206         Fix typo in matching older versions of Solaris: "solaris2.10"
10207         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10208         only for guessing while cross-compiling.
10209         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10210
10211 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10212
10213         ftoastr: fix comment again
10214         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10215         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10216         Also, simplify example a bit by using flags = 0.
10217
10218 2010-12-20  Bruno Haible  <bruno@clisp.org>
10219
10220         round*, trunc*: Update documentation regarding glibc.
10221         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10222         * doc/posix-functions/round.texi: Likewise.
10223         * doc/posix-functions/roundl.texi: Likewise.
10224         * doc/posix-functions/truncf.texi: Likewise.
10225         * doc/posix-functions/trunc.texi: Likewise.
10226         * doc/posix-functions/truncl.texi: Likewise.
10227
10228 2010-12-20  Bruno Haible  <bruno@clisp.org>
10229
10230         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10231         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10232         * doc/posix-functions/round.texi: Likewise.
10233         * doc/posix-functions/roundl.texi: Likewise.
10234
10235 2010-12-20  Bruno Haible  <bruno@clisp.org>
10236
10237         ttyname_r: Add missing declaration on HP-UX 11.
10238         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10239         HAVE_TTYNAME_R.
10240         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10241         declared. Set HAVE_TTYNAME_R always.
10242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10243         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10244         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10245         HAVE_TTYNAME_R.
10246         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10247
10248 2010-12-20  Bruno Haible  <bruno@clisp.org>
10249
10250         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10251         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10252         * doc/posix-functions/getlogin_r.texi: Likewise.
10253         * tests/test-getlogin.c: Include <errno.h>.
10254         (main): Avoid test failure on HP-UX 11.11.
10255         * tests/test-getlogin_r.c (main): Likewise.
10256
10257 2010-12-20  Bruno Haible  <bruno@clisp.org>
10258
10259         getlogin_r: Add missing declaration on HP-UX 11.
10260         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10261         declared also when it exists as a function.
10262         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10263
10264 2010-12-20  Bruno Haible  <bruno@clisp.org>
10265
10266         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10267         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10268         through wcrtomb.
10269
10270 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10271
10272         ftoastr: fix comment
10273         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10274         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10275
10276 2010-12-19  Bruno Haible  <bruno@clisp.org>
10277
10278         isnan: Ensure it is a macro.
10279         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10280         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10281         Solaris.
10282
10283 2010-12-19  Bruno Haible  <bruno@clisp.org>
10284
10285         ldexpl test: Fix link error on OSF/1 5.1.
10286         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10287
10288 2010-12-19  Bruno Haible  <bruno@clisp.org>
10289
10290         wctype: Make it work in C++ mode on OSF/1 5.1.
10291         * lib/wctype.in.h (iswblank): Declare but not define here.
10292         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10293         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10294         * modules/wctype (Files): Add lib/iswblank.c.
10295
10296 2010-12-19  Bruno Haible  <bruno@clisp.org>
10297
10298         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10299         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10300         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10301
10302 2010-12-19  Bruno Haible  <bruno@clisp.org>
10303
10304         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10305         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10306         _POSIX_PII_SOCKET.
10307         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10308         * doc/posix-functions/recvfrom.texi: Likewise.
10309         * doc/posix-functions/send.texi: Likewise.
10310         * doc/posix-functions/sendto.texi: Likewise.
10311
10312 2010-12-19  Bruno Haible  <bruno@clisp.org>
10313
10314         tcgetsid: Add missing declaration on OSF/1 5.1.
10315         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10316         HAVE_TCGETSID.
10317         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10318         Don't set HAVE_TCGETSID.
10319         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10320         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10321         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10322         HAVE_TCGETSID.
10323         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10324
10325 2010-12-19  Bruno Haible  <bruno@clisp.org>
10326
10327         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10328         * lib/stdio.in.h: During the include_next statement, let recursive
10329         includes of this file include only the system header file.
10330
10331 2010-12-19  Bruno Haible  <bruno@clisp.org>
10332
10333         iconv_open: Fix regression from 2010-12-04.
10334         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10335         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10336
10337 2010-12-19  Bruno Haible  <bruno@clisp.org>
10338
10339         stdbool test: Avoid a gcc warning.
10340         * tests/test-stdbool.c (main): Fail if e1 is false.
10341         Reported by Jim Meyering.
10342
10343 2010-12-19  Jim Meyering  <meyering@redhat.com>
10344
10345         setenv: restore to working order
10346         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10347         mistakenly removed.
10348         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10349         HAVE_SETENV.
10350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10351         HAVE_SETENV.
10352
10353 2010-12-19  Bruno Haible  <bruno@clisp.org>
10354
10355         Document some different function declarations on OSF/1 5.1.
10356         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10357         * doc/posix-functions/inet_ntop.texi: Likewise.
10358         * doc/posix-functions/gethostname.texi: Likewise.
10359         * lib/unistd.in.h (gethostname): Update comment.
10360
10361 2010-12-19  Bruno Haible  <bruno@clisp.org>
10362
10363         doc: Mention vasprintf-posix module.
10364         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10365         the 'vasprintf-posix' module.
10366         * doc/glibc-functions/vasprintf.texi: Likewise.
10367
10368 2010-12-19  Bruno Haible  <bruno@clisp.org>
10369
10370         unsetenv: Add missing declaration on OSF/1 5.1.
10371         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10372         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10373         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10374         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10375         not HAVE_UNSETENV.
10376         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10377         HAVE_UNSETENV.
10378         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10379
10380 2010-12-19  Bruno Haible  <bruno@clisp.org>
10381
10382         setenv: Add missing declaration on OSF/1 5.1.
10383         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10384         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10385         declared. Don't set HAVE_SETENV.
10386         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10387         not HAVE_SETENV.
10388         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10389         HAVE_SETENV.
10390         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10391
10392 2010-12-19  Bruno Haible  <bruno@clisp.org>
10393
10394         nl_langinfo tests: Avoid gcc warning.
10395         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10396
10397 2010-12-19  Bruno Haible  <bruno@clisp.org>
10398
10399         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10400         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10401         _GL_CXXALIAS_SYS.
10402
10403 2010-12-19  Bruno Haible  <bruno@clisp.org>
10404
10405         stdbool: Relax test.
10406         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10407         address to 'bool' work in static initializer, for compilers other than
10408         GCC.
10409
10410 2010-12-19  Bruno Haible  <bruno@clisp.org>
10411
10412         ftello: Add missing declaration on OSF/1 5.1.
10413         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10414         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10416         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10417         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10418
10419 2010-12-19  Bruno Haible  <bruno@clisp.org>
10420
10421         fseeko: Add missing declaration on OSF/1 5.1.
10422         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10423         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10425         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10426         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10427
10428 2010-12-19  Bruno Haible  <bruno@clisp.org>
10429
10430         fchdir: Add missing declaration on OSF/1 5.1.
10431         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10432         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10434         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10435         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10436
10437 2010-12-19  Bruno Haible  <bruno@clisp.org>
10438
10439         relocatable-prog-wrapper: Separate from relocatable-prog.
10440         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10441         uninstall-relocwrapper rule here.
10442         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10443         Reported by Ian Beckwith <ianb@erislabs.net>.
10444
10445 2010-12-19  Bruno Haible  <bruno@clisp.org>
10446
10447         unistr/u8-mbsnlen: Add missing dependency.
10448         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10449         Reported by Ian Beckwith <ianb@erislabs.net>.
10450
10451 2010-12-19  Bruno Haible  <bruno@clisp.org>
10452
10453         iconv: Make it possible again to use this module without 'iconv-h'.
10454         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10455         if it is not defined.
10456         Reported by Ian Beckwith <ianb@erislabs.net>.
10457
10458 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10459
10460         acl: port to Solaris 8 when copying from tmpfs to ufs
10461         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10462         error number.  Problem observed on Solaris 8 with latest
10463         coreutils, with "mv A B", where A is on a tmpfs file system and B
10464         is on a ufs file system.  This caused coreutils' mv/part-symlink
10465         test to fail.
10466
10467         tests: set fail=0 at start
10468         * tests/init.sh (setup_): Move fail=0 initialization here ...
10469         (mktempd_): ... from here, so that tests can rely on fail being
10470         set to 0 initially.  This fixes a problem in coreutils; see:
10471         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10472
10473 2010-12-18  Bruno Haible  <bruno@clisp.org>
10474
10475         memmem-simple: Stylistic changes.
10476         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10477         Fix preprocessor directive indentation.
10478
10479 2010-12-15  Pádraig Brady <P@draigBrady.com>
10480
10481         memmem, memmem-simple: reorganize and expand empty needle check
10482         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10483         functional checks to memmem-simple so that one has a fully functional
10484         memmem by using just this module.
10485         Restrict the performance only check to the memmem module.
10486         Also expand the empty needle check to ensure the correct
10487         pointer is returned, not just a non NULL pointer.
10488         * doc/glibc-functions/memmem.texi: Rearrange the portability
10489         documentation to correlate with the rearranged checks.
10490         Clarify exactly how the memmem and memmem-simple modules
10491         relate to each other.
10492
10493 2010-12-15  Pádraig Brady <P@draigBrady.com>
10494             Bruno Haible  <bruno@clisp.org>
10495
10496         Improve cross-compilation guesses for uClibc.
10497         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10498         that uClibc does not have the glibc bug.
10499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10500         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10501
10502 2010-12-14  Eric Blake  <eblake@redhat.com>
10503
10504         configmake: provide fallbacks for oldest supported autotools
10505         * m4/configmake.m4: New file.
10506         * modules/configmake (Files): Ship it.
10507         (configure.ac): Use it to guarantee fallbacks.
10508
10509 2010-12-13  Pádraig Brady <P@draigBrady.com>
10510
10511         read-file: Improve handling of large files
10512         * lib/read-file.c (fread_file): Minimize realloc()s
10513         for regular files, and better manage sizes around SIZE_MAX.
10514
10515 2010-12-13  Eric Blake  <eblake@redhat.com>
10516
10517         cloexec, fcntl: relax license
10518         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10519         consent from all contributors.
10520         * modules/fcntl (License): Likewise.
10521
10522 2010-12-10  Bruno Haible  <bruno@clisp.org>
10523
10524         Tests for module 'pipe-posix'.
10525         * modules/pipe-posix-tests: New file.
10526         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10527
10528 2010-12-10  Bruno Haible  <bruno@clisp.org>
10529
10530         pipe-posix: Make it work in C++ mode.
10531         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10532         (pipe): Use common idiom, not a macro definition.
10533         * lib/pipe.c: New file.
10534         * m4/pipe.m4: New file.
10535         * modules/pipe-posix (Description): Enhance.
10536         (Files): Add lib/pipe.c, m4/pipe.m4.
10537         (configure.ac): Invoke gl_FUNC_PIPE.
10538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10539         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10540         * tests/test-unistd-c++.cc: Check the signature of pipe.
10541
10542 2010-12-10  Bruno Haible  <bruno@clisp.org>
10543
10544         Rename module 'pipe' to 'spawn-pipe'.
10545         * modules/spawn-pipe: New file, renamed from modules/pipe.
10546         (Files, configure.ac, Makefile.am): Update.
10547         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10548         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10549         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10550         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10551         "spawn-pipe.h" instead of "pipe.h".
10552         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10553         to gl_SPAWN_PIPE.
10554         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10555         (Files, Makefile.am): Update.
10556         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10557         Update.
10558         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10559         Include "spawn-pipe.h" instead of "pipe.h".
10560         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10561         * lib/javacomp.c: Likewise.
10562         * lib/javaversion.c: Likewise.
10563         * lib/pipe-filter-gi.c: Likewise.
10564         * lib/pipe-filter-ii.c: Likewise.
10565         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10566         * modules/javacomp (Depends-on): Likewise.
10567         * modules/javaversion (Depends-on): Likewise.
10568         * modules/pipe-filter-gi (Depends-on): Likewise.
10569         * modules/pipe-filter-ii (Depends-on): Likewise.
10570         * MODULES.html.sh (Executing programs): Update.
10571         * NEWS: Mention the change.
10572
10573 2010-12-10  Eric Blake  <eblake@redhat.com>
10574
10575         pipe-posix: new module
10576         * modules/pipe-posix: New file.
10577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10578         (gl_UNISTD_H): Check for declaration.
10579         * modules/unistd (Makefile.am): Substitute it.
10580         * lib/unistd.in.h (pipe): Provide it for mingw.
10581         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10582         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10583
10584 2010-12-07  Bruno Haible  <bruno@clisp.org>
10585
10586         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10587         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10588         u8_strcmp_gnu.
10589         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10590
10591 2010-12-06  Bruno Haible  <bruno@clisp.org>
10592
10593         Update internal documentation.
10594         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10595
10596 2010-12-04  Bruno Haible  <bruno@clisp.org>
10597
10598         Put more information about failed tests into the test return codes.
10599         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10600         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10601         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10602         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10603         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10604         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10605         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10606         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10607         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10609         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10610         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10611         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10612         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10613         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10614         returns a bit mask.
10615         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10616         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10617         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10618         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10619         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10620         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10621         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10622         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10623         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10624         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10625         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10626         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10627         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10628         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10629         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10630         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10631         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10632         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10633         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10634         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10635         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10636         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10637         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10638         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10639         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10640         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10641         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10642         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10643         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10644         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10645         gl_PRINTF_PRECISION): Likewise.
10646         * m4/regex.m4 (gl_REGEX): Likewise.
10647         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10648         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10649         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10650         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10651         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10653         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10654         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10655         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10656         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10657         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10658         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10659         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10660         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10661         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10662         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10663         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10664         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10666         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10667         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10668         enumerated value.
10669         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10670
10671 2010-12-04  Bruno Haible  <bruno@clisp.org>
10672
10673         Update for Solaris 11 2010-11.
10674         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10675         Express, released in November 2010.
10676
10677 2010-12-04  Bruno Haible  <bruno@clisp.org>
10678
10679         nproc: Relax license.
10680         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10681         and Paul Eggert.
10682         Requested by Ludovic Courtès <ludo@gnu.org>.
10683
10684 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10685
10686         utimecmp: fine-grained src to nearby coarse-grained dest
10687
10688         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10689         and the source is on a file system with higher-resolution time
10690         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10691         not work, and the time stamps are close together, the algorithm to
10692         determine the exact resolution from the read-back mtime was buggy:
10693         it had a "!=" where it should have had an "==".  This bug has been
10694         in the code ever since it was introduced to gnulib.
10695         Problem reported by Dan Jacobson in
10696         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10697
10698 2010-11-30  Bruno Haible  <bruno@clisp.org>
10699
10700         strerror_r-posix: Fix autoconf test.
10701         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10702
10703 2010-11-28  Bruno Haible  <bruno@clisp.org>
10704             Paul Eggert  <eggert@cs.ucla.edu>
10705
10706         Tests for module 'getdomainname'.
10707         * modules/getdomainname-tests: New file.
10708         * tests/test-getdomainname.c: New file, based on
10709         tests/test-gethostname.c.
10710
10711 2010-11-28  Bruno Haible  <bruno@clisp.org>
10712             Paul Eggert  <eggert@cs.ucla.edu>
10713
10714         getdomainname: Use the system function when possible.
10715         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10716         (getdomainname): Replace if needed. Provide the declaration if it is
10717         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10718         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10719         (getdomainname): When the system has getdomainname, call the system
10720         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10721         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10722         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10723         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10724         the function if its second argument is of type 'int' or if it is found
10725         in libnsl.
10726         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10727         <sys/systeminfo.h> and sysinfo().
10728         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10730         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10731         HAVE_GETDOMAINNAME.
10732         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10733         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10734         * doc/glibc-functions/getdomainname.texi: Document the problems with
10735         the getdomainname declaration.
10736
10737 2010-11-28  Bruno Haible  <bruno@clisp.org>
10738
10739         sys_socket: Ensure ss_family field on AIX.
10740         * lib/sys_socket.in.h (ss_family): New macro definition.
10741         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10742         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10743         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10744         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10745         * modules/sys_socket (Makefile.am): Substitute
10746         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10747         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10748
10749 2010-11-27  Bruno Haible  <bruno@clisp.org>
10750
10751         readline: Improve configure output.
10752         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10753         "checking for readline..." result understandable.
10754
10755 2010-11-27  Bruno Haible  <bruno@clisp.org>
10756
10757         *printf-posix: Detect a bug on Solaris 10/x86.
10758         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
10759         for floating-point output.
10760         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
10761         directive.
10762         * tests/test-snprintf-posix.h (test_function): Likewise.
10763         * tests/test-sprintf-posix.h (test_function): Likewise.
10764         * tests/test-vasprintf-posix.c (test_function): Likewise.
10765         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
10766         * doc/posix-functions/printf.texi: Likewise.
10767         * doc/posix-functions/snprintf.texi: Likewise.
10768         * doc/posix-functions/sprintf.texi: Likewise.
10769         * doc/posix-functions/vfprintf.texi: Likewise.
10770         * doc/posix-functions/vprintf.texi: Likewise.
10771         * doc/posix-functions/vsnprintf.texi: Likewise.
10772         * doc/posix-functions/vsprintf.texi: Likewise.
10773         * doc/glibc-functions/obstack_printf.texi: Likewise.
10774         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10775
10776 2010-11-27  Bruno Haible  <bruno@clisp.org>
10777
10778         Fix link error when module libunistring-optional is in use.
10779         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
10780         * modules/striconveha-tests (Makefile.am): Likewise.
10781
10782 2010-11-27  Bruno Haible  <bruno@clisp.org>
10783
10784         regex: Mention link dependencies.
10785         * modules/regex (Link): New section.
10786         * modules/rpmatch (Link): Likewise.
10787         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
10788
10789 2010-11-27  Bruno Haible  <bruno@clisp.org>
10790
10791         ftoastr: Fix compilation error on Solaris.
10792         * lib/ftoastr.c: Include <config.h>.
10793
10794 2010-11-27  Bruno Haible  <bruno@clisp.org>
10795
10796         getloadavg: Update documentation.
10797         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
10798
10799 2010-11-27  Bruno Haible  <bruno@clisp.org>
10800
10801         sys_socket: Fix test whether the functions are declared.
10802         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10803         not <sys/select.h>.
10804
10805 2010-11-27  Bruno Haible  <bruno@clisp.org>
10806
10807         getpass: Make sure to get system declaration on some platforms.
10808         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
10809         gl_USE_SYSTEM_EXTENSIONS.
10810         * modules/getpass (Depends-on): Add extensions.
10811
10812 2010-11-26  Bruno Haible  <bruno@clisp.org>
10813
10814         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
10815         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
10816         'iconv' module is present.
10817         (ICONV_CONST): New macro.
10818         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
10819         ICONV_CONST.
10820         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
10821         set ICONV_CONST.
10822         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
10823         here.
10824         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
10825         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
10826         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
10827         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
10828         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
10829         present.
10830
10831 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10832
10833         ftoastr: comment fix
10834         * lib/ftoastr.c: "little" -> "little or no" in comment
10835
10836 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10837
10838         stdint: port to GCC 4.3 + OSX + Octave
10839         On this platform, stdint.h is buggy and defines int64_t to long
10840         long int.  The replacement defined it to long int, causing
10841         problems with C++ style name mangling.  Instead, trust the system
10842         definition if INT64_MAX is defined, and likewise for the unsigned
10843         variant.   Problem reported by Jarno Rajahalme in
10844         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
10845         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
10846         and don't mess with int64_t and INT64_MAX in this case.
10847         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
10848
10849 2010-11-24  Bruno Haible  <bruno@clisp.org>
10850
10851         doc: Corrections regarding MacOS X 10.4 and 10.5.
10852         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
10853         MacOS X.
10854         Reported by Simon Josefsson.
10855
10856 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
10857
10858         Uninstall ".bin" files installed by relocwrapper.
10859         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
10860         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
10861         unless it is already there.
10862
10863 2010-11-21  Bruno Haible  <bruno@clisp.org>
10864
10865         Update for NetBSD 5.0.
10866         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10867         NetBSD; the test fails on NetBSD 5.0.
10868         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10869         about NetBSD.
10870
10871 2010-11-21  Bruno Haible  <bruno@clisp.org>
10872
10873         Update for HP-UX 11.23 and HP-UX 11.31.
10874         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
10875         HP-UX.
10876
10877 2010-11-21  Bruno Haible  <bruno@clisp.org>
10878
10879         Update for MacOS X 10.5.
10880         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10881         MacOS X; the test fails on MacOS X 10.5.8.
10882         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10883         about MacOS X.
10884
10885 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
10886
10887         bootstrap: add bootstrap_sync option.
10888         See discussion at
10889         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
10890         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
10891         * build-aux/bootstrap: Accept --bootstrap-sync to update
10892         bootstrap if it is not identical to the local gnulib's
10893         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
10894         enable this by default.  Accept --no-bootstrap-sync to disable
10895         it.
10896
10897 2010-11-20  Bruno Haible  <bruno@clisp.org>
10898
10899         Ensure that <features.h> is included before __GLIBC__ is tested.
10900         * lib/printf-parse.h: Include <features.h>.
10901         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
10902         Reported by Mike Frysinger <vapier@gentoo.org>.
10903
10904         Ensure that <features.h> is included before __GLIBC__ is tested.
10905         * lib/wchar.in.h: Include <features.h>.
10906         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
10907         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
10908         Reported by Mike Frysinger <vapier@gentoo.org>.
10909
10910         Ensure that <features.h> is included before __GLIBC__ is tested.
10911         * lib/arpa_inet.in.h: Include <features.h>.
10912         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
10913         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
10914         Reported by Mike Frysinger <vapier@gentoo.org>.
10915
10916         Ensure that <features.h> is included before __GLIBC__ is tested.
10917         * build-aux/link-warning.h: Include <features.h>.
10918         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
10919         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
10920         Reported by Mike Frysinger <vapier@gentoo.org>.
10921
10922         Ensure that <features.h> is included before __GLIBC__ is tested.
10923         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
10924         Reported by Mike Frysinger <vapier@gentoo.org>.
10925
10926 2010-11-20  Bruno Haible  <bruno@clisp.org>
10927
10928         memmem: Fix autoconf test.
10929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
10930
10931 2010-11-20  Bruno Haible  <bruno@clisp.org>
10932
10933         Port to uClibc.
10934         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
10935         * lib/fcntl.in.h: Likewise.
10936         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
10937         * lib/mbrtowc.c (mbrtowc): Likewise.
10938         * lib/relocatable.c (find_shared_library_fullname): Likewise.
10939         * lib/strerror_r.c: Likewise.
10940         * lib/unistr/u8-strnlen.c: Likewise.
10941         * lib/vasnprintf.c (decimal_point_char): Likewise.
10942         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10943         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10944         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10945         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10946         * tests/test-sigaction.c (handler, main): Likewise.
10947         * lib/freading.h: Treat uClibc like a non-glibc platform.
10948         * lib/freading.c: Likewise.
10949         * lib/gettext.h: Likewise.
10950         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
10951         Likewise.
10952         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
10953         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10954         * lib/propername.c (proper_name_utf8): Likewise.
10955         * lib/spawn.in.h: Likewise.
10956         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10957         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10958         mem_cd_iconveh_internal): Likewise.
10959         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10960         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10961         strstr, strcasestr): Likewise.
10962         * lib/unicodeio.c (unicode_to_mb): Likewise.
10963         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10964         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10965         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10966         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10967         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10968         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10969         * lib/unistr/u8-stpncpy.c: Likewise.
10970         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10971         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10972         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10973         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10974         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10975         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10976         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10977         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10978         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10979         Likewise.
10980         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10981         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10982         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10983         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10985         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10986         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10987         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10988         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10989         * tests/test-striconveha.c (main): Likewise.
10990         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10991         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10992         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10993         * doc/posix-functions/getline.texi: Likewise.
10994         Reported by Mike Frysinger <vapier@gentoo.org>.
10995
10996 2010-11-20  Bruno Haible  <bruno@clisp.org>
10997
10998         nproc: Fix condition.
10999         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
11000         HAVE_PTHREAD_AFFINITY_NP.
11001
11002 2010-11-20  Bruno Haible  <bruno@clisp.org>
11003
11004         Fix a comment.
11005         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
11006
11007 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11008
11009         ftoastr: don't assume snprintf
11010         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
11011         Implement a subset of snprintf here, by using sprintf safely.
11012         * modules/ftoastr (Depends-on): Remove snprintf.
11013
11014 2010-11-19  Jim Meyering  <meyering@redhat.com>
11015
11016         test-rename.h: fix compilation failure
11017         * tests/test-rename.h (test_rename): Add omitted "}".
11018
11019 2010-11-17  Jim Meyering  <meyering@redhat.com>
11020
11021         maint.mk: add a URL discussing the no-@acronym policy
11022         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
11023
11024 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11025
11026         ftoastr: depend on snprintf, improve comments
11027         * lib/ftoastr.c: Also mention Loitsch's draft.
11028         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
11029         needed in the current implementation, but it might simplify
11030         speeding up the code later.
11031         * modules/ftoastr: Depend on snprintf; this improves portability.
11032         Suggested by Bruno Haible in the same email.
11033
11034         ftoastr: port to hosts lacking strtof and strtold
11035         Problem reported by Bruno Haible in
11036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
11037         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
11038         environment and strtold (and presumably strtof) are not available.
11039         * modules/ftoastr (Files): Add m4/c-strtod.m4.
11040         (configure.ac): Require gl_C99_STRTOLD.
11041
11042 2010-11-18  Bruno Haible  <bruno@clisp.org>
11043
11044         c-strtold: Avoid link error on AIX 7.
11045         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
11046         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
11047         (gl_C_STRTOLD): Test whether strtold_l exists.
11048         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11049
11050 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11051
11052         intprops: new macro INT_BITS_STRLEN_BOUND
11053         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11054         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11055         not exposed.  Also, it uses a slightly tighter bound than before;
11056         though this makes no practical difference, we might as well be as
11057         tight as we easily can.
11058
11059         ftoastr: new module, for lossless conversion of floats to short strings
11060         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
11061         * modules/ftoastr: New files.
11062
11063 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11064
11065         bootstrap: port to Solaris sed
11066         * build-aux/bootstrap (get_version): Port to Solaris sed.
11067         See Ralf Wildenhues's note in
11068         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
11069
11070 2010-11-14  Jim Meyering  <meyering@redhat.com>
11071
11072         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
11073         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
11074         and move definition closer to sole use.
11075
11076 2010-11-13  Jim Meyering  <meyering@redhat.com>
11077
11078         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
11079         Now we require at least autoconf-2.59, which means the work-around
11080         is no longer needed.
11081         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
11082         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11083         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11084         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11085         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11086
11087 2010-11-13  Bruno Haible  <bruno@clisp.org>
11088
11089         rename, renameat: Avoid test failures at NFS mounted locations.
11090         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11091         functions.
11092         (test_rename): Use assert_nonexistent.
11093         * tests/test-rename.c: Include <dirent.h>.
11094         * tests/test-renameat.c: Likewise.
11095         Reported by Gary V. Vaughan <gary@gnu.org>.
11096
11097         rename, renameat: Document Linux bug with NFS
11098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11099         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11100         * doc/posix-functions/renameat.texi: Likewise.
11101         Suggested by Eric Blake.
11102
11103 2010-11-13  Bruno Haible  <bruno@clisp.org>
11104
11105         rename test: Add comments.
11106         * tests/test-rename.h (test_rename): Add structure and comments.
11107
11108 2010-11-13  Eric Blake  <eblake@redhat.com>
11109
11110         maintainer-makefile: cover a few more files
11111         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11112         scripts generated within C files, for libvirt.
11113
11114 2010-11-13  Bruno Haible  <bruno@clisp.org>
11115
11116         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11117         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11118         character, return the number of bytes that belong together, not always
11119         1.
11120         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11121         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11122         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11123         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11124         number of bytes of an invalid character.
11125         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11126         (main): Invoke it.
11127         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11128         results.
11129         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11130         malformed byte sequences.
11131         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11132         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11133         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11134         Reported by Ben Pfaff and Paolo Bonzini.
11135
11136 2010-11-13  Bruno Haible  <bruno@clisp.org>
11137
11138         openat: Work around glibc bug with fchownat() and empty file names.
11139         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11140         (gl_FUNC_FCHOWNAT): Invoke it.
11141         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11142         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11143         Reported by Gary V. Vaughan <gary@gnu.org>.
11144
11145 2010-11-13  Bruno Haible  <bruno@clisp.org>
11146
11147         openat: Ensure autoconf macro ordering.
11148         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11149         gl_USE_SYSTEM_EXTENSIONS.
11150         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11151
11152 2010-11-13  Bruno Haible  <bruno@clisp.org>
11153
11154         Update comments.
11155         * lib/unistr/u8-check.c: Update file name in comments.
11156         * lib/unistr/u8-mblen.c: Likewise.
11157         * lib/unistr/u8-prev.c: Likewise.
11158         * lib/unistr/u8-strmblen.c: Likewise.
11159         * lib/unistr/u8-strmbtouc.c: Likewise.
11160
11161 2010-11-13  Jim Meyering  <meyering@redhat.com>
11162
11163         tests: avoid test failure on Solaris 10 due to lack of PATH export
11164         * tests/test-update-copyright.sh: Don't forget to export PATH.
11165
11166         init.sh: ensure that IFS is defined, just in case...
11167         * tests/init.sh (setup_): Ensure that IFS is defined,
11168         so that saving and restoring it works as expected.  This
11169         appears to be useful at least for an old version of dash
11170         from a long time ago (RH 6).  See here for details:
11171         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11172
11173         maint.mk: tighten "test a == b" check
11174         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11175         test to files that contain something like #!/bin/sh.
11176         Without this, coreutils would get two false positives in
11177         the comments of C source files.
11178
11179 2010-11-12  Eric Blake  <eblake@redhat.com>
11180
11181         bootstrap: fix typo in previous attempt
11182         * build-aux/bootstrap (buildreq): Correct the grouping.
11183         Reported by Paul Eggert.
11184
11185         maintainer-makefile: prohibit test x == x
11186         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11187         Based on a report by Matthias Bolte.
11188
11189         bootstrap: allow FreeBSD gzip
11190         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11191         which has no '.' and goes to stderr.
11192         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11193         Reported by Matthias Bolte.
11194
11195         maintainer-makefile: check for i18n setup
11196         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11197         will likely work.
11198
11199 2010-11-12  Bruno Haible  <bruno@clisp.org>
11200
11201         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11202         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11203         * lib/nanosleep.c (nanosleep): Likewise.
11204
11205 2010-11-11  Bruno Haible  <bruno@clisp.org>
11206
11207         fcntl-h: Fix for use of C++ on glibc systems.
11208         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11209         also on glibc systems in C++ mode.
11210         Reported by Gary V. Vaughan <gary@gnu.org>.
11211
11212 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11213
11214         mknod: avoid false failure with dash
11215         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11216
11217 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11218
11219         unlink: Fix "is it should" typo in diagnostic.
11220         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11221         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11222
11223 2010-11-11  Bruno Haible  <bruno@clisp.org>
11224
11225         Tests for module 'strerror_r-posix'.
11226         * modules/strerror_r-posix-tests: New file.
11227         * tests/test-strerror_r.c: New file.
11228         * tests/test-string-c++.cc: Check the signature of strerror_r.
11229
11230         New module 'strerror_r-posix'.
11231         * lib/string.in.h (strerror_r): New declaration.
11232         * lib/strerror_r.c: New file.
11233         * m4/strerror_r.m4: New file.
11234         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11235         of strerror_r.
11236         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11237         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11238         * modules/strerror_r-posix: New file.
11239         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11240         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11241         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11242         portability problems.
11243
11244 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11245
11246         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11247         line is also considered for output. Quoted function name in shell
11248         command, so temporary files for functions like MyClass::operator()
11249         are removed correctly without errors.
11250
11251 2010-11-09  Bruno Haible  <bruno@clisp.org>
11252
11253         * doc/posix-functions/strerror.texi: List more failing platforms.
11254
11255         * doc/posix-functions/strerror.texi: Add a comment.
11256
11257 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11258
11259         fdopendir: fix bug on MacOS X when low on file descriptors
11260
11261         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11262         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11263         All callers changed.
11264         (fdopendir): Invoke save_cwd at the top level, not after using
11265         multiple dup() calls to use up file descriptors.  Then retry
11266         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11267         less than the maximum number of open file descriptors, because
11268         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11269         on Mac OS X 10.6.4 for tar 1.24
11270         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11271         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11272         and for tar 1.25
11273         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11274
11275 2010-11-07  Bruno Haible  <bruno@clisp.org>
11276
11277         vasnprintf: Support I flag on glibc systems.
11278         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11279         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11280         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11281         snprintf function.
11282         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11283         glibc systems.
11284         * tests/test-vasnprintf-posix3.c: New file.
11285         * modules/vasnprintf-posix-tests (Files): Add it.
11286         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11287
11288 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11289
11290         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11291         * MODULES.html.sh: For compiler warnings, use name
11292         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11293
11294 2010-11-05  Eric Blake  <eblake@redhat.com>
11295
11296         ceil, floor: avoid spurious failure with icc
11297         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11298         [denormals-as-zero] when optimizing without -mieee-fp option.
11299         * tests/test-floorf2.c (floorf_reference): Likewise.
11300         * tests/test-ceilf1.c (dummy): New function.
11301         (main): Use it to outsmart icc's optimization.
11302         * tests/test-floorf1.c (dummy, main): Likewise.
11303
11304         tests: require working signbit
11305         * modules/ceilf-tests (Depends-on): Add signbit.
11306         * modules/ceill-tests (Depends-on): Likewise.
11307         * modules/floorf-tests (Depends-on): Likewise.
11308         * modules/floorl-tests (Depends-on): Likewise.
11309         * modules/round-tests (Depends-on): Likewise.
11310         * modules/roundf-tests (Depends-on): Likewise.
11311         * modules/roundl-tests (Depends-on): Likewise.
11312         * modules/trunc-tests (Depends-on): Likewise.
11313         * modules/truncf-tests (Depends-on): Likewise.
11314         * modules/truncl-tests (Depends-on): Likewise.
11315
11316         strtod: work around icc bug
11317         * lib/strtod.c (minus_zero): Define to working value.
11318         (strtod): Use it to avoid icc bug.
11319
11320         copysign: enhance tests
11321         * modules/copysign-tests (Files): Add minus-zero.h.
11322         * tests/test-copysign.c (main): Also test zeros.
11323
11324 2010-11-04  Eric Blake  <eblake@redhat.com>
11325
11326         ceil, floor, round, trunc: enhance tests of -0
11327         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11328         * tests/test-ceill.c (main): Likewise.
11329         * tests/test-floorf1.c (main): Likewise.
11330         * tests/test-floorl.c (main): Likewise.
11331         * tests/test-round1.c (main): Likewise.
11332         * tests/test-roundf1.c (main): Likewise.
11333         * tests/test-roundl.c (main): Likewise.
11334         * tests/test-trunc1.c (main): Likewise.
11335         * tests/test-truncf1.c (main): Likewise.
11336         * tests/test-truncl.c (main): Likewise.
11337
11338 2010-11-04  Eric Blake  <eblake@redhat.com>
11339
11340         frexp, tests: work around ICC bug with -zero
11341         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11342         works with more compilers.
11343         * tests/minus-zero.h: New file.
11344         * modules/ceilf-tests (Files): Include it.
11345         * modules/ceill-tests (Files): Likewise.
11346         * modules/floorf-tests (Files): Likewise.
11347         * modules/floorl-tests (Files): Likewise.
11348         * modules/frexp-nolibm-tests (Files): Likewise.
11349         * modules/frexp-tests (Files): Likewise.
11350         * modules/frexpl-nolibm-tests (Files): Likewise.
11351         * modules/frexpl-tests (Files): Likewise.
11352         * modules/isnan-tests (Files): Likewise.
11353         * modules/isnand-nolibm-tests (Files): Likewise.
11354         * modules/isnand-tests (Files): Likewise.
11355         * modules/isnanf-nolibm-tests (Files): Likewise.
11356         * modules/isnanf-tests (Files): Likewise.
11357         * modules/isnanl-nolibm-tests (Files): Likewise.
11358         * modules/isnanl-tests (Files): Likewise.
11359         * modules/round-tests (Files): Likewise.
11360         * modules/roundf-tests (Files): Likewise.
11361         * modules/roundl-tests (Files): Likewise.
11362         * modules/ldexpl-tests (Files): Likewise.
11363         * modules/signbit-tests (Files): Likewise.
11364         * modules/snprintf-posix-tests (Files): Likewise.
11365         * modules/sprintf-posix-tests (Files): Likewise.
11366         * modules/strtod-tests (Files): Likewise.
11367         * modules/trunc-tests (Files): Likewise.
11368         * modules/truncf-tests (Files): Likewise.
11369         * modules/truncl-tests (Files): Likewise.
11370         * modules/vsnprintf-posix-tests (Files): Likewise.
11371         * modules/vsprintf-posix-tests (Files): Likewise.
11372         * modules/vasnprintf-posix-tests (Files): Likewise.
11373         * modules/vasprintf-posix-tests (Files): Likewise.
11374         * tests/test-ceilf1.c (main): Use it.
11375         * tests/test-ceill.c (main): Likewise.
11376         * tests/test-floorf1.c (main): Likewise.
11377         * tests/test-floorl.c (main): Likewise.
11378         * tests/test-frexp.c (main): Likewise.
11379         * tests/test-frexpl.c (main): Likewise.
11380         * tests/test-isnan.c (main): Likewise.
11381         * tests/test-isnand.h (main): Likewise.
11382         * tests/test-isnanf.h (main): Likewise.
11383         * tests/test-isnanl.h (main): Likewise.
11384         * tests/test-ldexpl.c (main): Likewise.
11385         * tests/test-round.c (main): Likewise.
11386         * tests/test-roundf.c (main): Likewise.
11387         * tests/test-roundl.c (main): Likewise.
11388         * tests/test-signbit.c (test_signbitf, test_signbitd)
11389         (test_signbitl): Likewise.
11390         * tests/test-snprintf-posix.h (test_function): Likewise.
11391         * tests/test-sprintf-posix.h (test_function): Likewise.
11392         * tests/test-strtod.c (main): Likewise.
11393         * tests/test-trunc1.c (main): Likewise.
11394         * tests/test-truncf1.c (main): Likewise.
11395         * tests/test-truncl.c (main): Likewise.
11396
11397         isnanl: work around icc bug
11398         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11399
11400 2010-11-03  Eric Blake  <eblake@redhat.com>
11401
11402         tests: fix compiler warnings
11403         * tests/test-getopt.h (test_getopt): Fix condition.
11404         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11405         * tests/test-pipe2.c (main): Likewise.
11406         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11407
11408         utimens: fix broken m4 test
11409         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11410
11411 2010-10-28  Bruno Haible  <bruno@clisp.org>
11412
11413         posix_spawn*, getdtablesize: Relax license.
11414         * modules/posix_spawn (License): Change to LGPLv2+.
11415         * modules/posix_spawnp (License): Likewise.
11416         * modules/posix_spawn-internal (License): Likewise.
11417         * modules/posix_spawnattr_init (License): Likewise.
11418         * modules/posix_spawnattr_getflags (License): Likewise.
11419         * modules/posix_spawnattr_setflags (License): Likewise.
11420         * modules/posix_spawnattr_getpgroup (License): Likewise.
11421         * modules/posix_spawnattr_setpgroup (License): Likewise.
11422         * modules/posix_spawnattr_getschedparam (License): Likewise.
11423         * modules/posix_spawnattr_setschedparam (License): Likewise.
11424         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11425         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11426         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11427         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11428         * modules/posix_spawnattr_getsigmask (License): Likewise.
11429         * modules/posix_spawnattr_setsigmask (License): Likewise.
11430         * modules/posix_spawnattr_destroy (License): Likewise.
11431         * modules/posix_spawn_file_actions_init (License): Likewise.
11432         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11433         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11434         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11435         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11436         * modules/getdtablesize (License): Likewise.
11437         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11438
11439 2010-10-26  Bruno Haible  <bruno@clisp.org>
11440
11441         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11442         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11443         Cygwin and mingw.
11444         Suggested by Eric Blake.
11445
11446 2010-10-26  Bruno Haible  <bruno@clisp.org>
11447
11448         stdio: Work around compilation error due to renameat() on Solaris 10.
11449         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11450         * lib/renameat.c: Don't include <unistd.h> here.
11451         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11452         Reported by Paul Eggert and Eric Blake.
11453
11454 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11455
11456         renameat: port to Solaris 10, which declares renameat in unistd.h
11457
11458         * lib/renameat.c: Include unistd.h before stdio.h, because
11459         Solaris 10 declares renameat in unistd.h.  Problem encountered
11460         when building GNU tar 1.24 on Solaris 10.
11461
11462 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11463
11464         fdopendir: fix C89 compilation
11465         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11466         compilers.
11467
11468 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11469
11470         inttostr: simplify by removing unnecessary redundancy
11471         * lib/anytostr.c: Don't include verify.h.
11472         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11473         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11474         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11475         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11476         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11477         Likewise.
11478         * modules/inttostr (Depends-on): Remove 'verify'.
11479
11480 2010-10-23  Bruno Haible  <bruno@clisp.org>
11481
11482         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11483         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11484         Reported by Eric Blake.
11485
11486 2010-10-23  Bruno Haible  <bruno@clisp.org>
11487
11488         Tests: Fix LOCALE_JA on MirBSD 10.
11489         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11490         to an UTF-8 locale.
11491         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11492         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11493         Reported by Eric Blake.
11494
11495 2010-10-21  Bruno Haible  <bruno@clisp.org>
11496
11497         nl_langinfo test: Avoid test failure on NetBSD 5.
11498         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11499         Reported by Eric Blake.
11500
11501 2010-10-21  Eric Blake  <eblake@redhat.com>
11502
11503         c-stack: work around libsigsegv 2.8 bug
11504         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11505         overflow on at least PowerPC64.
11506
11507 2010-10-17  Bruno Haible  <bruno@clisp.org>
11508
11509         userspec: Drop redundant file.
11510         * modules/userspec (Files): Remove lib/inttostr.h.
11511
11512 2010-10-17  Bruno Haible  <bruno@clisp.org>
11513
11514         nl_langinfo tests: Silence some warnings.
11515         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11516         Reported by Jim Meyering.
11517
11518 2010-10-17  Bruno Haible  <bruno@clisp.org>
11519
11520         Make use of GCC's attribute __alloc_size__.
11521         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11522         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11523         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11524         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11525         __alloc_size__.
11526         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11527         Suggested by Jim Meyering.
11528
11529 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11530
11531         bootstrap: anchor .gitignore entries.
11532         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11533         with...
11534         (insert_vc_ignore): ... this new function, which prepends `/' to
11535         all .gitignore entries before passing them to
11536         insert_sorted_if_absent.
11537
11538 2010-10-16  Bruno Haible  <bruno@clisp.org>
11539
11540         nextafter: Fix configure check.
11541         * modules/nextafter (configure.ac): Correct expected prototype.
11542
11543 2010-10-16  Bruno Haible  <bruno@clisp.org>
11544
11545         termios: Update documentation.
11546         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11547
11548 2010-10-16  Bruno Haible  <bruno@clisp.org>
11549
11550         tests: Make them compile with TinyCC.
11551         * tests/test-strstr.c (main): Remove parentheses around array
11552         initializer.
11553
11554 2010-10-15  Eric Blake  <eblake@redhat.com>
11555
11556         ignore-value: make header idempotent
11557         * lib/ignore-value.h: Add double-inclusion guards.
11558         Reported by Stefan Berger.
11559
11560 2010-10-15  Jim Meyering  <meyering@redhat.com>
11561
11562         GNUmakefile: handle "stable" target, not "major"
11563         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11564         lists in maint.mk and announce-gen.  Without this, "make stable"
11565         would fail to ensure that $(VERSION) is up to date.
11566
11567 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11568
11569         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11570         & co.
11571
11572 2010-10-14  Bruno Haible  <bruno@clisp.org>
11573
11574         vasnprintf: Don't set errno to 0.
11575         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11576         block that sets it to 0.
11577         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11578
11579 2010-10-14  Bruno Haible  <bruno@clisp.org>
11580
11581         socketlib: Fix.
11582         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11583         gl_PREREQ_SYS_H_WINSOCK2.
11584         Reported by Ian Beckwith <ianb@erislabs.net>.
11585
11586 2010-10-13  Jim Meyering  <meyering@redhat.com>
11587
11588         test-select-stdin.c: avoid warn_unused_result warnings
11589         * tests/test-select-stdin.c: Include "macros.h".
11590         ASSERT that read and fflush succeed.
11591
11592 2010-10-13  Jim Meyering  <meyering@redhat.com>
11593
11594         git-version-gen: do require git-VC'd files in cwd
11595         * build-aux/git-version-gen: Reject a git version string
11596         if there are no commits associated with the current directory.
11597         This avoids an unlikely false-positive (unrelated dir whose parent
11598         repository also contains a tag matching v*), as pointed out
11599         by Giuseppe Scrivano in
11600         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11601
11602 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11603
11604         argv-iter: omit nonconforming declaration
11605         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11606         enum arg_iter_err declaration, which doesn't conform to C99.
11607         Solaris 10 cc warns about this.
11608
11609 2010-10-13  Eric Blake  <eblake@redhat.com>
11610
11611         termios: fix compilation on mingw
11612         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11613         (gl_TERMIOS_H): Adjust it on mingw.
11614         * modules/termios (Makefile.am): Substitute new key.
11615         * lib/termios.in.h (includes): Make include_next conditional.
11616         * doc/posix-headers/termios.texi (termios.h): Update
11617         documentation.
11618         Reported by Daniel P. Berrange.
11619
11620 2010-10-13  Jim Meyering  <meyering@redhat.com>
11621
11622         git-version-gen: don't require that .git/ be in the current dir
11623         * build-aux/git-version-gen: Adjust this script so that it works
11624         when run from any working directory beneath the top-level .git/-
11625         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11626         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11627
11628         test-select: avoid warn_unused_result warnings
11629         * tests/test-select.c: Include "macros.h".
11630         ASSERT that each call to read, write, and pipe succeeds.
11631         While not technically required, also check each "close".
11632         * modules/select-tests (Files): Add tests/macros.h.
11633
11634         test-symlinkat: remove declaration of unused local
11635         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11636
11637         test-inttostr: avoid shadowing warnings
11638         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11639         and use malloc rather than the stack for the same reason as
11640         mentioned in the comment justifying the other allocation.
11641
11642 2010-10-11  Bruno Haible  <bruno@clisp.org>
11643
11644         stdlib: Allow multiple gnulib generated replacements to coexist.
11645         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11646         Reported by Sam Steingold <sds@gnu.org>.
11647
11648 2010-10-11  Jim Meyering  <meyering@redhat.com>
11649
11650         fix a documentation typo
11651         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11652
11653 2010-10-11  Eric Blake  <eblake@redhat.com>
11654
11655         futimens: work around Solaris 11 bug
11656         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11657         * tests/test-futimens.h (test_futimens): Enhance, rather than
11658         weaken test.
11659         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11660
11661 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11662
11663         Indentation.
11664         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11665         higher-level operators more to the left.
11666
11667 2010-10-11  Jim Meyering  <meyering@redhat.com>
11668
11669         test-futimens: avoid unwarranted test failure on Solaris 5.11
11670         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11671         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11672         because it tries to dereference the NULL name argument.
11673
11674 2010-10-11  Bruno Haible  <bruno@clisp.org>
11675
11676         Indentation.
11677         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11678         indentation.
11679
11680 2010-10-11  Jim Meyering  <meyering@redhat.com>
11681
11682         spawn.in.h: make indentation consistent with parentheses
11683         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11684         Make indentation consistent with parentheses.
11685
11686 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11687
11688         Fix mismatched parens in previous commit
11689         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11690         parens.
11691
11692 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11693
11694         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11695
11696         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11697         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11698         * lib/malloca.c: Include "verify.h".
11699         (verify1): Remove, replacing with a verify call.
11700         * lib/relocwrapper.c (verify1): Likewise.
11701         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11702         Likewise.
11703         * modules/malloca (Depends-on): Add 'verify'.
11704         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11705         * modules/vasnprintf (Depends-on): Add 'verify'.
11706         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11707         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11708         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11709         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11710         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11711         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11712         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11713
11714         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11715
11716         Formerly the style was sometimes 2*X - 1, because the C standard
11717         was wrongly thought to disallow ?: in integral constant expressions.
11718         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11719         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11720         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11721         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11722         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11723         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11724         verify that time_t cannot be floating.
11725
11726 2010-10-08  Eric Blake  <eblake@redhat.com>
11727
11728         time: enforce recent POSIX ruling that time_t is integral
11729         * lib/time.in.h (__time_t_must_be_integral): Detect any
11730         problematic systems, allowing the rest of gnulib to assume POSIX.
11731
11732 2010-10-08  Jim Meyering  <meyering@redhat.com>
11733
11734         fdopendir: fix a bug on systems lacking openat and /proc support
11735         OpenBSD 4.7 is one such system.  The most noticeable effect was
11736         failure of any application making nontrivial use of fts: rm, du,
11737         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11738           ./rm: traversal failed: `a': Bad file descriptor
11739         Debugging that, you see that even though FD 6 was closed just
11740         prior to the opendir call in fd_clone_opendir, its resulting
11741         dir->dd_fd was 8, rather than the expected value of 6:
11742
11743         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11744         93                close (fd);
11745         (gdb) n
11746         94                dir = fd_clone_opendir (dupfd);
11747         (gdb) n
11748         95                saved_errno = errno;
11749         (gdb) p dir->dd_fd
11750         $11 = 8
11751
11752         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11753         The problem is that on OpenBSD, fd_clone_opendir has to resort
11754         to using the old-style save/restore CWD mechanism, due to its
11755         lack of openat/proc support, and *that* would steal the FD (6)
11756         that opendir was supposed to use.
11757
11758         The fix is to squirrel away the desired FD so that save_cwd uses a
11759         different one, and then free the dest FD right before calling opendir.
11760         That guarantees opendir will use the required file descriptor.
11761
11762         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
11763
11764 2010-10-08  Bruno Haible  <bruno@clisp.org>
11765
11766         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
11767         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
11768
11769 2010-10-08  Bruno Haible  <bruno@clisp.org>
11770
11771         nanosleep: Make replacement POSIX compliant.
11772         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
11773         is out of range.
11774         Reported by Jim Meyering.
11775
11776 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11777
11778         bootstrap: add hook for altering gnulib.mk, for Bison
11779         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
11780         the Bison bootstrapping process can rewrite file names and variables
11781         in this file before later parts of 'bootstrap' use the file.
11782         Bison wants to include lib/gnulib.mk from the top-level makefile,
11783         so it needs the file names in this file to be relative to the top
11784         level, not relative to lib; plus it needs variable names to be
11785         rewritten.
11786         (slurp): Use the new function.
11787
11788         bootstrap: reformat for readability
11789         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
11790
11791 2010-10-08  Eric Blake  <eblake@redhat.com>
11792
11793         docs: update cygwin progress
11794         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
11795         1.7.7.
11796         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
11797         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
11798         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
11799         * doc/posix-functions/carg.texi (carg): Likewise.
11800         * doc/posix-functions/cargf.texi (cargf): Likewise.
11801         * doc/posix-functions/casin.texi (casin): Likewise.
11802         * doc/posix-functions/casinf.texi (casinf): Likewise.
11803         * doc/posix-functions/casinh.texi (casinh): Likewise.
11804         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
11805         * doc/posix-functions/catan.texi (catan): Likewise.
11806         * doc/posix-functions/catanf.texi (catanf): Likewise.
11807         * doc/posix-functions/catanh.texi (catanh): Likewise.
11808         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
11809         * doc/posix-functions/ccos.texi (ccos): Likewise.
11810         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
11811         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
11812         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
11813         * doc/posix-functions/cexp.texi (cexp): Likewise.
11814         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
11815         * doc/posix-functions/cimag.texi (cimag): Likewise.
11816         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
11817         * doc/posix-functions/clog.texi (clog): Likewise.
11818         * doc/posix-functions/clogf.texi (clogf): Likewise.
11819         * doc/posix-functions/conj.texi (conj): Likewise.
11820         * doc/posix-functions/conjf.texi (conjf): Likewise.
11821         * doc/posix-functions/cpow.texi (cpow): Likewise.
11822         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
11823         * doc/posix-functions/cproj.texi (cproj): Likewise.
11824         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
11825         * doc/posix-functions/creal.texi (creal): Likewise.
11826         * doc/posix-functions/crealf.texi (crealf): Likewise.
11827         * doc/posix-functions/csin.texi (csin): Likewise.
11828         * doc/posix-functions/csinf.texi (csinf): Likewise.
11829         * doc/posix-functions/csinh.texi (csinh): Likewise.
11830         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
11831         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
11832         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
11833         * doc/posix-functions/ctan.texi (ctan): Likewise.
11834         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
11835         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
11836         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
11837         * doc/posix-headers/complex.texi (complex.h): Likewise.
11838
11839 2010-10-07  Jim Meyering  <meyering@redhat.com>
11840
11841         parse-datetime: avoid compilation failure on OpenBSD 4.7
11842         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
11843         This works around a compilation failure on OpenBSD 4.7:
11844         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
11845
11846 2010-10-07  Eric Blake  <eblake@redhat.com>
11847
11848         docs: update cygwin progress
11849         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
11850         1.7.6.
11851         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11852         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
11853         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
11854         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
11855         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
11856         Likewise.
11857         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
11858         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
11859         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
11860         Likewise.
11861         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
11862         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
11863         Likewise.
11864         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
11865         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
11866         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
11867         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
11868         Likewise.
11869         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
11870         Likewise.
11871         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
11872
11873         docs: update parse-datetime history
11874         * doc/parse-datetime.texi (Authors of parse_datetime): Better
11875         documentation of this function's history and alternatives.
11876
11877         cygwin: use more robust version check
11878         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
11879         exclude an eventual cygwin 1.9.1.
11880         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11881         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11882         (gl_FUNC_STRCASESTR): Likewise.
11883         Reported by Bruno Haible.
11884
11885 2010-10-06  Bruno Haible  <bruno@clisp.org>
11886
11887         string, sys_select: Avoid #including large headers unless necessary.
11888         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
11889         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
11890         OSF/1, BeOS, Haiku.
11891         Reported by Jim Meyering.
11892
11893 2010-10-05  Eric Blake  <eblake@redhat.com>
11894
11895         memmem, strstr, strcasestr: fix bug with long periodic needle
11896         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
11897         periodic needle having false positive.
11898         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
11899         and cygwin 1.7.7.
11900         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
11901         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11902         (gl_FUNC_STRCASESTR): Likewise.
11903         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11904         * tests/test-memmem.c (main): Expose the bug.
11905         * tests/test-strcasestr.c (main): Likewise.
11906         * tests/test-strstr.c (main): Likewise.
11907         * tests/test-c-strcasestr.c (main): Likewise.
11908         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
11909         * doc/posix-functions/strstr.texi (strstr): Likewise.
11910         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11911         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
11912
11913 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11914
11915         parse-datetime: do some more renaming
11916         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
11917         parse_datetime, not get_date.  Mention the renaming.
11918         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
11919         in comments.
11920         * m4/bison.m4: Likewise.
11921
11922 2010-10-05  Eric Blake  <eblake@redhat.com>
11923
11924         parse-datetime: better name than get_date
11925         * NEWS: Reword the deprecation notice.
11926         * modules/get_date: Rename to modules/parse-datetime.
11927         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
11928         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
11929         * lib/get_date.y: Rename to lib/parse-datetime.y.
11930         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
11931         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
11932         * doc/getdate.texi: Provide fallback wrapper.
11933         * lib/getdate.h: Move guts, and wrap...
11934         * lib/parse-datetime.h: ...new file.
11935         * lib/parse-datetime.y (get_date): Rename...
11936         (parse_datetime): ...to this.
11937         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
11938         (gl_PARSE_DATETIME): ...to this.
11939         * doc/posix-functions/getdate.texi (get_date): Provide fallback
11940         documentation.
11941         * modules/getdate (Files): Provide fallback docs and header.
11942         (Notice, Depends-on): Update references.
11943         * tests/test-parse-datetime.c: Likewise.
11944         * DEPENDENCIES: Likewise.
11945         * MODULES.html.sh (Date and time <time.h>): Likewise.
11946         * doc/parse-datetime.texi (Date input formats)
11947         (Authors of parse_datetime): Likewise.
11948         * modules/parse-datetime (Files, configure.ac, Makefile.am)
11949         (Include): Likewise.
11950         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
11951         * gnulib-tool: Likewise.
11952         * m4/bison.m4 (gl_BISON): Likewise.
11953         Suggested by Bruno Haible.
11954
11955 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11956
11957         more ports to Solaris tr, which needs [] around ranges
11958         * gnulib-tool: Solaris tr needs [] around ranges.
11959         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11960         * tests/test-pipe-filter-gi1.c (main): Likewise.
11961         * tests/test-pipe-filter-ii1.c (main): Likewise.
11962
11963 2010-10-05  Eric Blake  <eblake@redhat.com>
11964
11965         bootstrap: fix Solaris regression
11966         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11967         around ranges.
11968         Reported by Pádraig Brady.
11969
11970         bootstrap: work with pkg-config
11971         * build-aux/bootstrap (check_versions): Also transliterate - in
11972         prerequisite name.
11973         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11974         prerequisites that were already found, to avoid confusion.
11975         Reported by Justin Clift.
11976
11977         faccessat: remove unused wrappers
11978         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11979         presence of these wrappers dragged in -lgen on Solaris.
11980         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11981
11982 2010-10-05  Jim Meyering  <meyering@redhat.com>
11983
11984         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11985         * Makefile (sc_pragma_columns): New syntax-check rule.
11986
11987 2010-10-04  Bruno Haible  <bruno@clisp.org>
11988
11989         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11990         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11991         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11992         Reported by Bruce Korb and Eric Blake.
11993
11994 2010-10-04  Bruno Haible  <bruno@clisp.org>
11995
11996         threadlib: Make option --with-libpth-prefix work.
11997         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
11998         use $LIBPTH, not just -lpth.
11999
12000 2010-10-04  Bruno Haible  <bruno@clisp.org>
12001
12002         Avoid line length limitation from HP NonStop system header files.
12003         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
12004         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
12005         * lib/ctype.in.h: Likewise.
12006         * lib/dirent.in.h: Likewise.
12007         * lib/errno.in.h: Likewise.
12008         * lib/fcntl.in.h: Likewise.
12009         * lib/float.in.h: Likewise.
12010         * lib/getopt.in.h: Likewise.
12011         * lib/iconv.in.h: Likewise.
12012         * lib/inttypes.in.h: Likewise.
12013         * lib/langinfo.in.h: Likewise.
12014         * lib/locale.in.h: Likewise.
12015         * lib/math.in.h: Likewise.
12016         * lib/netdb.in.h: Likewise.
12017         * lib/netinet_in.in.h: Likewise.
12018         * lib/poll.in.h: Likewise.
12019         * lib/pthread.in.h: Likewise.
12020         * lib/pty.in.h: Likewise.
12021         * lib/sched.in.h: Likewise.
12022         * lib/se-selinux.in.h: Likewise.
12023         * lib/search.in.h: Likewise.
12024         * lib/signal.in.h: Likewise.
12025         * lib/spawn.in.h: Likewise.
12026         * lib/stdarg.in.h: Likewise.
12027         * lib/stddef.in.h: Likewise.
12028         * lib/stdint.in.h: Likewise.
12029         * lib/stdio.in.h: Likewise.
12030         * lib/stdlib.in.h: Likewise.
12031         * lib/string.in.h: Likewise.
12032         * lib/strings.in.h: Likewise.
12033         * lib/sys_file.in.h: Likewise.
12034         * lib/sys_ioctl.in.h: Likewise.
12035         * lib/sys_select.in.h: Likewise.
12036         * lib/sys_socket.in.h: Likewise.
12037         * lib/sys_stat.in.h: Likewise.
12038         * lib/sys_time.in.h: Likewise.
12039         * lib/sys_times.in.h: Likewise.
12040         * lib/sys_utsname.in.h: Likewise.
12041         * lib/sys_wait.in.h: Likewise.
12042         * lib/sysexits.in.h: Likewise.
12043         * lib/termios.in.h: Likewise.
12044         * lib/time.in.h: Likewise.
12045         * lib/unistd.in.h: Likewise.
12046         * lib/wchar.in.h: Likewise.
12047         * lib/wctype.in.h: Likewise.
12048         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
12049         * modules/ctype (Makefile.am): Likewise.
12050         * modules/dirent (Makefile.am): Likewise.
12051         * modules/errno (Makefile.am): Likewise.
12052         * modules/fcntl-h (Makefile.am): Likewise.
12053         * modules/float (Makefile.am): Likewise.
12054         * modules/getopt-posix (Makefile.am): Likewise.
12055         * modules/iconv-h (Makefile.am): Likewise.
12056         * modules/inttypes (Makefile.am): Likewise.
12057         * modules/langinfo (Makefile.am): Likewise.
12058         * modules/locale (Makefile.am): Likewise.
12059         * modules/math (Makefile.am): Likewise.
12060         * modules/netdb (Makefile.am): Likewise.
12061         * modules/netinet_in (Makefile.am): Likewise.
12062         * modules/poll-h (Makefile.am): Likewise.
12063         * modules/pthread (Makefile.am): Likewise.
12064         * modules/pty (Makefile.am): Likewise.
12065         * modules/sched (Makefile.am): Likewise.
12066         * modules/search (Makefile.am): Likewise.
12067         * modules/selinux-h (Makefile.am): Likewise.
12068         * modules/signal (Makefile.am): Likewise.
12069         * modules/spawn (Makefile.am): Likewise.
12070         * modules/stdarg (Makefile.am): Likewise.
12071         * modules/stddef (Makefile.am): Likewise.
12072         * modules/stdint (Makefile.am): Likewise.
12073         * modules/stdio (Makefile.am): Likewise.
12074         * modules/stdlib (Makefile.am): Likewise.
12075         * modules/string (Makefile.am): Likewise.
12076         * modules/strings (Makefile.am): Likewise.
12077         * modules/sys_file (Makefile.am): Likewise.
12078         * modules/sys_ioctl (Makefile.am): Likewise.
12079         * modules/sys_select (Makefile.am): Likewise.
12080         * modules/sys_socket (Makefile.am): Likewise.
12081         * modules/sys_stat (Makefile.am): Likewise.
12082         * modules/sys_time (Makefile.am): Likewise.
12083         * modules/sys_times (Makefile.am): Likewise.
12084         * modules/sys_utsname (Makefile.am): Likewise.
12085         * modules/sys_wait (Makefile.am): Likewise.
12086         * modules/sysexits (Makefile.am): Likewise.
12087         * modules/termios (Makefile.am): Likewise.
12088         * modules/time (Makefile.am): Likewise.
12089         * modules/unistd (Makefile.am): Likewise.
12090         * modules/wchar (Makefile.am): Likewise.
12091         * modules/wctype (Makefile.am): Likewise.
12092
12093 2010-10-04  Bruno Haible  <bruno@clisp.org>
12094
12095         read-file tests: Avoid a test failure on NonStop Kernel.
12096         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12097         a regular file.
12098         Reported by Joachim Schmitz <schmitz@hp.com>.
12099
12100 2010-10-03  Bruno Haible  <bruno@clisp.org>
12101
12102         gnulib-tool: Fixes for --create-testdir with --libtool.
12103         * gnulib-tool (func_get_automake_snippet): Don't augment
12104         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12105         an executable.
12106         (func_create_testdir): Handle module 'alloca' like func_import.
12107         Reported by Bruce Korb <bruce.korb@gmail.com>.
12108
12109 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12110
12111         Avoid some lines longer than 80 characters.
12112         * lib/stdint.in.h: Break long comment lines.
12113         * lib/math.in.h: Likewise.
12114         (_GL_NUM_UINT_WORDS): New macro, for readability.
12115         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12116         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12117         * lib/stdlib.in.h: Likewise.
12118         * lib/spawn.in.h: Likewise.
12119         * lib/sys_socket.in.h: Update an URL.
12120         * lib/sys_stat.in.h: Break long line.
12121
12122 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12123
12124         Improve pmccabe2html.
12125         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12126         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12127         when the sources change. Remove the line in the HTML about "Used
12128         ranges" (which implied that there might be other unused ranges),
12129         rename "Resume" to "Summary" (easier to understand for more users).
12130         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12131         styles, and some unnecessary blank lines.
12132
12133 2010-10-03  Bruno Haible  <bruno@clisp.org>
12134             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12135
12136         acl: Add support for ACLs on NonStop Kernel.
12137         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12138         Check whether the function aclsort() exists.
12139         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12140         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12141         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12142         (acl_nontrivial [HAVE_ACLSORT]: New function.
12143         (file_has_acl): Implement for NonStop Kernel.
12144         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12145         (qset_acl): Implement for NonStop Kernel.
12146         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12147         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12148         (main): Implement for NonStop Kernel.
12149         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12150         Kernel. Handle this flavor.
12151         * tests/test-set-mode-acl.sh: Likewise.
12152         * tests/test-copy-acl.sh: Likewise.
12153         * tests/test-copy-file.sh: Likewise.
12154
12155 2010-10-03  Bruno Haible  <bruno@clisp.org>
12156
12157         Info about ACLs on NonStop Kernel.
12158         * doc/acl-resources.txt: Add info about NonStop Kernel.
12159         References by Joachim Schmitz <schmitz@hp.com>.
12160
12161 2010-10-02  Bruno Haible  <bruno@clisp.org>
12162
12163         Define missing EDQUOT on NonStop Kernel.
12164         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12165         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12166         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12167         missing.
12168         * doc/posix-headers/errno.texi: Mention the NSK bug.
12169         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12170         Reported by Joachim Schmitz <schmitz@hp.com>.
12171
12172 2010-10-02  Bruno Haible  <bruno@clisp.org>
12173
12174         Update doc for POSIX:2008.
12175         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12176         Update URL of POSIX specification.
12177
12178 2010-10-02  Bruno Haible  <bruno@clisp.org>
12179
12180         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12181         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12182         from gnulib, not from Automake.
12183
12184 2010-10-02  Bruno Haible  <bruno@clisp.org>
12185
12186         New module 'system-posix'.
12187         * modules/system-posix: New file.
12188         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12189         module is present.
12190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12191         GNULIB_SYSTEM_POSIX.
12192         * modules/stdlib (Depends-on): Remove sys_wait.
12193         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12194         * doc/posix-functions/system.texi: Mention the new module.
12195         * doc/posix-headers/stdlib.texi: Likewise.
12196         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12197         define test_sys_wait_macros to a no-op.
12198         Reported by Sam Steingold <sds@gnu.org>.
12199
12200 2010-09-30  Bruno Haible  <bruno@clisp.org>
12201
12202         More renaming from 'getdate' to 'get_date'.
12203         * doc/get_date.texi: Renamed from doc/getdate.texi.
12204         * modules/get_date (Files): Update.
12205         * MODULES.html.sh (Date and time <time.h>): Update.
12206         * DEPENDENCIES: Update.
12207         * gnulib-tool: Update comment.
12208         * m4/bison.m4 (gl_BISON): Likewise.
12209         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12210
12211 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12212
12213         bootstrap: support ACLOCAL_FLAGS during aclocal
12214         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12215         can add additional -I dir for third-party .m4 files.
12216
12217 2010-09-30  Eric Blake  <eblake@redhat.com>
12218
12219         bootstrap: use glibtoolize on MacOS
12220         * build-aux/bootstrap (check_versions): Convert libtool into
12221         libtoolize.
12222         (tool search): Move libtool check earlier, and look for
12223         glibtoolize for MacOS.
12224         (gnulib_tool_options): Auto-add --libtool when appropriate.
12225         Reported by Justin Clift.
12226
12227         poll: fix typo that broke test on MacOS
12228         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12229         Reported by Justin Clift.
12230
12231         getdate: rename to get_date
12232         Note: getdate.h is not renamed, to minimize client impact.
12233         * modules/getdate: Mark obsolete.  Move old contents...
12234         * modules/get_date: ...to new module name.
12235         * modules/getdate-tests: Move...
12236         * modules/get_date-tests: ...here.
12237         * m4/getdate.m4: Move...
12238         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12239         * lib/getdate.y: Move...
12240         * lib/get_date.y: ...here.
12241         * tests/test-getdate.c: Move...
12242         * tests/test-get_date.c: ...here.
12243         * doc/posix-functions/getdate.texi (getdate): Update name.
12244         * NEWS: Mention the change.
12245
12246 2010-09-29  Bruno Haible  <bruno@clisp.org>
12247
12248         Separate the module 'waitpid' from the module 'sys_wait'.
12249         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12250         present.
12251         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12252         gl_MODULE_INDICATOR_FOR_TESTS.
12253         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12254         * modules/sys_wait (Depends-on): Remove waitpid.
12255         (Makefile.am): Substitute GNULIB_WAITPID.
12256         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12257         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12258         signature only if the 'waitpid' module is present.
12259         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12260         * NEWS: Mention the change.
12261         * modules/grantpt (Depends-on): Add waitpid.
12262         * modules/wait-process (Depends-on): Likewise.
12263
12264 2010-09-29  Bruno Haible  <bruno@clisp.org>
12265
12266         More tests for module 'sys_wait'.
12267         * modules/sys_wait-c++-tests: New file.
12268         * tests/test-sys_wait-c++.cc: New file.
12269         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12270         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12271
12272 2010-09-29  Bruno Haible  <bruno@clisp.org>
12273
12274         New module 'waitpid'.
12275         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12276         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12277         Don't include <process.h>.
12278         (waitpid): Declare only, using modern idiom.
12279         * m4/waitpid.m4: New file.
12280         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12281         * modules/waitpid: New file.
12282         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12283         (Makefile.am): Update.
12284         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12285
12286 2010-09-28  Bruno Haible  <bruno@clisp.org>
12287
12288         poll: Assume ANSI C.
12289         * lib/poll.c (poll): Use an ANSI C declaration.
12290
12291 2010-09-28  Bruno Haible  <bruno@clisp.org>
12292
12293         poll-h: Create poll.h on all platforms.
12294         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12295         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12296         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12297         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12298         (gl_REPLACE_POLL_H): Don't set POLL_H.
12299         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12300         * modules/poll-h (Depends-on): Add include_next.
12301         (Makefile.am): Create poll.h unconditionally. Substitute also
12302         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12303
12304 2010-09-28  Bruno Haible  <bruno@clisp.org>
12305
12306         Tests for module 'poll-h'.
12307         * modules/poll-h-c++-tests: New file.
12308         * tests/test-poll-h-c++.cc: New file.
12309
12310         Tests for module 'poll-h'.
12311         * modules/poll-h-tests: New file.
12312         * tests/test-poll-h.c: New file.
12313
12314 2010-09-28  Bruno Haible  <bruno@clisp.org>
12315
12316         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12317         * modules/poll-h (Depends-on): Add 'extensions'.
12318
12319 2010-09-28  Bruno Haible  <bruno@clisp.org>
12320
12321         New module 'poll-h'.
12322         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12323         (poll): Use modern idiom.
12324         * modules/poll-h: New file.
12325         * modules/poll (Files): Remove lib/poll.in.h.
12326         (Depends-on): Add poll-h.
12327         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12328         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12329         * m4/poll_h.m4: New file.
12330         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12331         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12332         and invoke gl_REPLACE_POLL_H.
12333         * lib/poll.c: Use common idiom.
12334         * tests/test-poll.c: Likewise.
12335         * doc/posix-headers/poll.texi: Mention the poll-h module.
12336         Suggested by Eric Blake.
12337
12338 2010-09-26  Bruno Haible  <bruno@clisp.org>
12339
12340         sys_wait: Implement WSTOPSIG.
12341         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12342         Reported by Simon Josefsson.
12343
12344 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12345
12346         stdlib, sys_wait: Avoid compilation error on mingw.
12347         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12348
12349 2010-09-26  Bruno Haible  <bruno@clisp.org>
12350
12351         stdlib tests: Avoid code duplication.
12352         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12353         * modules/sys_wait-tests (Files): Likewise.
12354         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12355         * tests/test-stdlib.c: Include test-sys_wait.h.
12356         (main): Invoke test_sys_wait_macros.
12357         * tests/test-sys_wait.c: Include test-sys_wait.h.
12358         (main): Invoke test_sys_wait_macros.
12359
12360 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12361
12362         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12363         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12364         sure Windows sockets are working before calling getaddrinfo.
12365         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12366         * doc/gnulib.texi (Windows sockets): Fix typo.
12367
12368 2010-09-25  Bruno Haible  <bruno@clisp.org>
12369
12370         Tests for module 'regex-quote'.
12371         * modules/regex-quote-tests: New file.
12372         * tests/test-regex-quote.c: New file.
12373
12374         New module 'regex-quote'.
12375         * lib/regex-quote.h: New file.
12376         * lib/regex-quote.c: New file.
12377         * modules/regex-quote: New file.
12378         Suggested by Reuben Thomas <rrt@sc3d.org>.
12379
12380 2010-09-24  Bruno Haible  <bruno@clisp.org>
12381
12382         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12383         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12384
12385 2010-09-23  Bruno Haible  <bruno@clisp.org>
12386
12387         setenv: Relax license.
12388         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12389         Blake.
12390         Requested by Eric Blake.
12391
12392 2010-09-22  Bruno Haible  <bruno@clisp.org>
12393
12394         termios: Relax license.
12395         * modules/termios (License): Change to LGPLv2+.
12396         Requested by Eric Blake.
12397
12398 2010-09-22  Bruno Haible  <bruno@clisp.org>
12399
12400         threadlib: Allow the package to change the default to 'no'.
12401         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12402         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12403         Reported by Paul Eggert.
12404
12405 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12406             Bruno Haible  <bruno@clisp.org>
12407
12408         Fix endless loop in mbmemcasecoll.
12409         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12410         byte.
12411         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12412
12413 2010-09-22  Bruno Haible  <bruno@clisp.org>
12414
12415         Tests for module 'memcoll'.
12416         * modules/memcoll-tests: New file.
12417         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12418
12419         memcoll, xmemcoll: Clarify size vs. length.
12420         * modules/memcoll.c (memcoll0): Clarify specification.
12421         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12422         passed to collate_error.
12423
12424 2010-09-22  Bruno Haible  <bruno@clisp.org>
12425
12426         Tests for module 'memcasecmp'.
12427         * modules/memcasecmp-tests: New file.
12428         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12429
12430 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12431
12432         * lib/pthread.in.h: Add split double-inclusion guard, and include
12433         system <pthread.h> if there is one.  Use @@-style as in other
12434         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12435         pthread.h doesn't.
12436         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12437         (pthread_mutexattr_settype, pthread_mutex_trylock):
12438         New static inline functions, if there's no system <pthread.h>.
12439         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12440         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12441         Approximate with mutexes if the system lacks spinlocks, as in
12442         MacOS.
12443         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12444         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12445         @@-style.  Check for spinlocks separately.
12446         (gl_PTHREAD_DEFAULTS): New macro.
12447         * modules/pthread: Redo to use a more typical style for in.h files.
12448
12449 2010-09-21  Eric Blake  <eblake@redhat.com>
12450
12451         net_if: enhance tests
12452         * tests/test-net_if.c (main): Move signature checks earlier.
12453         Print failures to stderr.
12454         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12455         Document the bug that we do not yet fix.
12456
12457 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12458
12459         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12460         about gnulib, not GSS.
12461
12462 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12463
12464         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12465         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12466         for Emacs.
12467         * build-aux/pmccabe2html: Make Makefile.am example code more
12468         cut-and-paste friendly.
12469
12470 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12471
12472         * tests/test-net_if.c: New file.
12473         * modules/net_if-tests: New file.
12474
12475 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12476
12477         pthread: add pthread_spin_destroy
12478         * lib/pthread.in.h (pthread_spin_destroy): New function.
12479
12480 2010-09-19  Bruno Haible  <bruno@clisp.org>
12481
12482         gnulib-tool: Fix --help output.
12483         * gnulib-tool (func_usage): Fix help message.
12484         Reported by Reuben Thomas <rrt@sc3d.org>.
12485
12486 2010-09-18  Jim Meyering  <meyering@redhat.com>
12487
12488         maint.mk: avoid unexpanded \n in two diagnostics
12489         * top/maint.mk (sc_prohibit_always_true_header_tests):
12490         Don't use a literal \n in a halt=... assignment.  It would not be
12491         expanded, and the two \n bytes would appear in the diagnostic output
12492         rather than the desired newline.  Use halt=$$(printf ... instead.
12493         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12494
12495 2010-09-18  Bruno Haible  <bruno@clisp.org>
12496
12497         netinet_in: Doc tweak.
12498         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12499         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12500
12501 2010-09-18  Jim Meyering  <meyering@redhat.com>
12502
12503         init.sh: correct an outdated comment
12504         * tests/init.sh (create_exe_shims_):  s/function/alias/
12505
12506         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12507         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12508         a file named "*.exe" is removed between the glob expansion and the
12509         processing of that oddly named file.
12510
12511 2010-09-17  Eric Blake  <eblake@redhat.com>
12512
12513         mirbsd: add some more support
12514         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12515         in BSD family.
12516         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12517         devices as OpenBSD.
12518         * m4/host-os.m4 (mirbsd): Add MirBSD.
12519
12520         tests: fix unportable assumption on sys/wait.h
12521         * tests/test-sys_wait.c (main): Relax test.
12522         * tests/test-stdlib.c (main): Likewise.
12523
12524         init.sh: accomodate directory with no .exes
12525         * tests/init.sh: Accomodate directory containing only scripts.
12526
12527         tests: avoid compiler warning
12528         * tests/test-stdlib.c (main): Use the variable.
12529
12530         fdutimens, fdutimensat: update signature, again
12531         * lib/utimens.h (gl_futimens): Delete, and move signature...
12532         (fdutimens): ...here.
12533         (fdutimensat): Rearrange signature.
12534         (lutimensat): Rename variable for clarity.
12535         * lib/fdutimensat.c (fdutimensat): Update signature.
12536         * lib/utimens.c (fdutimens): Likewise.
12537         (gl_futimens): Delete.
12538         (utimens, lutimens): Update callers.
12539         * lib/futimens.c (futimens): Likewise.
12540         * tests/test-fdutimensat.c: Likewise.
12541         * tests/test-utimens.c: Likewise.
12542         * tests/test-futimens.h: Update comment.
12543         * NEWS: Mention this.
12544         Suggested by Paul Eggert.
12545
12546 2010-09-17  Bruno Haible  <bruno@clisp.org>
12547
12548         Take over the maintenance of some older macros from Autoconf.
12549         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12550         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12551         GNU Autoconf.
12552         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12553         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12554
12555 2010-09-17  Eric Blake  <eblake@redhat.com>
12556
12557         fdutimensat: drop atflag validation
12558         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12559         with valid fd, to close a race scenario where futimens is
12560         unsupported and FILE was replaced by a symlink.
12561         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12562         accordingly.
12563         Suggested by Paul Eggert.
12564
12565 2010-09-16  Bruno Haible  <bruno@clisp.org>
12566
12567         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12568         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12569
12570 2010-09-16  Bruno Haible  <bruno@clisp.org>
12571
12572         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12573         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12574         login_tty exists.
12575         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12576
12577 2010-09-16  Bruno Haible  <bruno@clisp.org>
12578
12579         login_tty: Make the replacement code work on BSD systems.
12580         * lib/login_tty.c: Include <sys/ioctl.h>.
12581         (login_tty): Use ioctl TIOCSCTTY when available.
12582         * modules/login_tty (Depends-on): Add sys_ioctl.
12583         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12584
12585 2010-09-16  Bruno Haible  <bruno@clisp.org>
12586
12587         login_tty: Stricter unit test.
12588         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12589         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12590         and tcgetsid() after login_tty.
12591         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12592
12593 2010-09-16  Bruno Haible  <bruno@clisp.org>
12594
12595         New module 'tcgetsid'.
12596         * lib/tcgetsid.c: New file.
12597         * m4/tcgetsid.m4: New file.
12598         * modules/tcgetsid: New file.
12599         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12600         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12601         GNULIB_TCGETSID, HAVE_TCGETSID.
12602         * lib/termios.in.h: Include <sys/types.h>.
12603         (tcgetsid): New declaration.
12604         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12605         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12606         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12607         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12608
12609 2010-09-16  Bruno Haible  <bruno@clisp.org>
12610
12611         Tests for module 'termios'.
12612         * modules/termios-c++-tests: New file.
12613         * modules/termios-tests: New file.
12614         * tests/test-termios-c++.cc: New file.
12615         * tests/test-termios.c: New file.
12616
12617         New module 'termios'.
12618         * modules/termios: New file.
12619         * lib/termios.in.h: New file.
12620         * m4/termios_h.m4: New file.
12621         * doc/posix-headers/termios.texi: Mention the new module.
12622
12623 2010-09-16  Eric Blake  <eblake@redhat.com>
12624
12625         fdutimensat: add an atflag parameter
12626         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12627         * lib/utimens.h (fdutimensat): Update prototype.
12628         * tests/test-fdutimensat.c: Adjust test to match.
12629         * NEWS: Document the change.
12630         Suggested by Paul Eggert.
12631
12632 2010-09-16  Bruno Haible  <bruno@clisp.org>
12633
12634         Fix typos in comments.
12635         * lib/striconveh.h: Fix typo in comment.
12636         * lib/login_tty.c (login_tty): Likewise.
12637
12638 2010-09-15  Bruno Haible  <bruno@clisp.org>
12639
12640         stdlib: clarify MirBSD WEXITSTATUS bug
12641         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12642         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12643
12644 2010-09-15  Eric Blake  <eblake@redhat.com>
12645
12646         stdlib: work around MirBSD WEXITSTATUS bug
12647         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12648         * modules/stdlib (Depends-on): Add sys_wait.
12649         * tests/test-sys_wait.c (main): Enhance test.
12650         * tests/test-stdlib.c (main): Likewise.
12651         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12652
12653         docs: mention MacOS issue with WEXITSTATUS(constant)
12654         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12655         issue.
12656         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12657
12658         strnlen: add tests
12659         * modules/strnlen-tests: New file.
12660         * tests/test-strnlen.c: Likewise.
12661
12662 2010-09-14  Bruno Haible  <bruno@clisp.org>
12663
12664         unistr/base: Avoid link errors when module 'libunistring' is also used.
12665         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12666         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12667         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12668         Declare also when HAVE_LIBUNISTRING is set.
12669         Reported by Pádraig Brady <P@draigbrady.com>.
12670
12671 2010-09-14  Eric Blake  <eblake@redhat.com>
12672
12673         test-rawmemchr: make more robust
12674         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12675         (Depends-on, configure.ac): Add needed prerequisites to use it.
12676         * modules/memchr-tests (Files, Depends-on, configure.ac):
12677         Likewise, to avoid implicit reliance on memchr module prereqs.
12678         * tests/test-memchr.c (main): Ensure proper masking.
12679         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12680         reads.
12681
12682         memchr: detect glibc Alpha bug
12683         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12684         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12685         Alpha.
12686         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12687         * tests/test-memchr.c (main): Enhance test.
12688         Reported by Nelson H. F. Beebe.
12689
12690 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12691
12692         fts, getcwd, glob: audit for dirfd returning -1
12693         * lib/fts.c (opendir): Remove #define; no longer used.
12694         (opendirat): New arg PDIR_FD.  All callers changed.
12695         (fts_build, _opendir2): Use new opendirat to avoid the need for
12696         dirfd, or for checking whether dirfd returns a negative value.
12697         Don't use opendir; always use openat followed by fdopendir.
12698         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12699         it.
12700         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12701         returns -1 here.
12702         * modules/fts (Depends-on): Remove dirfd.
12703         * modules/getcwd (Depends-on): Likewise.
12704
12705 2010-09-13  Eric Blake  <eblake@redhat.com>
12706
12707         float: fix broken MirBSD header
12708         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12709         * doc/posix-headers/float.texi (float.h): Document it.
12710
12711 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12712
12713         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12714         * lib/fts.c (opendirat): New arg extra_flags.
12715         (__opendir2): Use it to avoid following symlinks when opening
12716         a directory, if symlinks are not supposed to be followed.  See
12717         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12718
12719         fdopendir: preserve argument fd before returning
12720         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12721         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12722         (fdopendir): Use them, arranging for FD to be open to the same
12723         directory that it was when it started.  (It might be temporarily
12724         closed while fdopendir is running, so this not thread- or
12725         signal-safe.)  Be careful to do the right thing even when file
12726         descriptors are scarce and dup fails with errno == EMFILE.  See
12727         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12728
12729 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12730
12731         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12732         * NEWS: Document change.
12733         * m4/regex.m4: Disable test for regoff_t size.
12734
12735 2010-09-13  Jim Meyering  <meyering@redhat.com>
12736
12737         fts: don't operate on an invalid file descriptor after failed dup
12738         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12739         negative file descriptor.
12740
12741 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12742
12743         savedir: add streamsavedir, deprecate fdsavedir
12744         * NEWS: Mention deprecation of fdsavedir.
12745         * lib/savedir.c (streamsavedir): New extern function, whose name
12746         ends in "savedir" to be consistent with the others.  This differs
12747         from savedirstream in that it doesn't close its argument.  The
12748         next version of GNU tar will use this instead of fdsavedir, to
12749         avoid some race conditions and conserve file descriptors.
12750         (savedirstream): Reimplement as a wrapper around streamsavedir.
12751         (fdsavedir): Add a comment deprecating this function.  As far as
12752         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12753         * lib/savedir.h (streamsavedir): New decl.
12754         (fdsavedir): Add a comment deprecating this.
12755
12756 2010-09-10  Bruno Haible  <bruno@clisp.org>
12757
12758         langinfo: Fix last commit.
12759         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
12760         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
12761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12762
12763 2010-09-10  Bruno Haible  <bruno@clisp.org>
12764
12765         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
12766         * lib/progreloc.c (O_EXEC): Define fallback.
12767
12768 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12769
12770         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
12771         * NEWS: Document recent changes to fcntl-h.
12772         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
12773         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
12774         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
12775         Similarly for O_SEARCH; this last was already true, but not documented.
12776         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
12777         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
12778         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
12779         Likewise.
12780         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
12781         is zero, not whether it is defined.
12782         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
12783         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
12784         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
12785
12786 2010-09-10  Bruno Haible  <bruno@clisp.org>
12787
12788         langinfo, nl_langinfo: Fix for IRIX 5.3.
12789         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
12790         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
12791         HAVE_LANGINFO_YESEXPR.
12792         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
12793         HAVE_LANGINFO_YESEXPR.
12794         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
12795         HAVE_LANGINFO_T_FMT_AMPM is 0.
12796         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
12797         HAVE_LANGINFO_YESEXPR is 0.
12798         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
12799         NOEXPR.
12800         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
12801         * doc/posix-functions/nl_langinfo.texi: Likewise.
12802         Reported by Eric Blake.
12803
12804 2010-09-10  Bruno Haible  <bruno@clisp.org>
12805
12806         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
12807         * doc/glibc-functions/login_tty.texi: Mention the include file problem
12808         on FreeBSD 8.0 and OpenBSD 4.6.
12809         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
12810         * m4/pty_h.m4 (gl_PTY_H): Likewise.
12811         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
12812         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
12813         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
12814         ac_includes_default.
12815         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12816
12817 2010-09-09  Eric Blake  <eblake@redhat.com>
12818
12819         strsignal: work around NetBSD bug
12820         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
12821         * lib/string.in.h (includes): Likewise.
12822         * doc/posix-functions/strsignal.texi (strsignal): Document the
12823         bug.
12824         Reported by Nelson H. F. Beebe.
12825
12826         gnulib-tool: work with NetBSD /bin/sh
12827         * gnulib-tool (func_cache_var, func_cache_lookup_module)
12828         (func_get_description, func_get_comment, func_get_status)
12829         (func_get_notice, func_get_applicability, func_get_filelist)
12830         (func_get_dependencies, func_get_autoconf_early_snippet)
12831         (func_get_autoconf_snippet, func_get_automake_snippet)
12832         (func_get_include_directive, func_get_link_directive)
12833         (func_get_license, func_get_maintainer, func_import): Avoid
12834         shell syntax errors from parsing syntax extensions.
12835
12836 2010-09-09  Bruno Haible  <bruno@clisp.org>
12837
12838         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12839         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
12840         a reliable way to determine whether the 'alias' command works.
12841
12842 2010-09-08  Jim Meyering  <meyering@redhat.com>
12843
12844         init.sh: penalize a set-x-impaired shell; don't disqualify it
12845         * tests/init.sh: Too many shells corrupt application stderr when
12846         you set -x, so we can't afford to disqualify them, since at least
12847         on Irix-6.5, that would disqualify all bourne shells.
12848         Instead, use a two-pass approach.
12849         On the first pass, try to find a shell that meets the stricter
12850         condition that set -x does not corrupt stderr.
12851         If no shell meets the stricter condition, retest each candidate
12852         shell, but without that extra condition.  Finally, when
12853         VERBOSE=yes is requested and set -x might cause trouble, simply
12854         issue a warning and refrain from enabling debug output.
12855
12856 2010-09-08  Eric Blake  <eblake@redhat.com>
12857
12858         unsetenv: fix OpenBSD bug
12859         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
12860         * doc/posix-functions/unsetenv.texi (unsetenv): Update
12861         documentation.
12862         Reported by Jim Meyering.
12863
12864         strtod: work around IRIX 6.5 bug
12865         * lib/strtod.c (strtod): Reparse number on shorter string if
12866         exponent parse was invalid.
12867         * tests/test-strtod.c (main): Add check for "0x1p 2".
12868         Reported by Tom G. Christensen.
12869
12870         getopt: optimize previous patch
12871         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
12872         empty variable.  Speed up awk script.
12873         Reported by Paolo Bonzini.
12874
12875 2010-09-08  Jim Meyering  <meyering@redhat.com>
12876
12877         test.sh: disqualify shells for which set -x corrupts stderr
12878         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
12879         and OpenBSD 4.7.  They make it so with "set -x", environment settings
12880         appear in stderr output.  For example, this command:
12881             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
12882         prints "P=1" on those two systems:
12883
12884 2010-09-08  Bruno Haible  <bruno@clisp.org>
12885
12886         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12887         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
12888         commands, because some shells ignore redirections when there is an
12889         error in the command lookup.
12890         Reported by Eric Blake.
12891
12892 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
12893
12894         * lib/regex.h: Fix a mention of `regex_compile' (should be
12895         `re_compile_pattern').
12896         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
12897         (re_set_registers): Correct name of parameter in comment.
12898
12899         * doc/regex.texi: Add documentation for missing syntax flags.
12900         Remove commented-out documentation of defunct syntax option
12901         RE_NO_EMPTY_ALTS.
12902         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
12903         Add documentation of re_set_registers.
12904         Document trick to re-use a pattern buffer by setting fastmap manually.
12905         Update documentation of struct re_pattern_buffer per public members.
12906         Uncomment documentation of equivalence class operators and
12907         collating symbol operators, since they are now implemented,
12908         Explain leftmost-longest matching in relation to alternatives.
12909         Tidy documentation of substring matching.
12910         Remove POSIX documentation, which is done better in
12911         glibc, and refer the reader there. Keep BSD API documentation, as
12912         that is not readily available elsewhere.
12913
12914 2010-09-07  Eric Blake  <eblake@redhat.com>
12915
12916         getopt: handle POSIXLY_CORRECT set but not exported
12917         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
12918         export state of POSIXLY_CORRECT, due to bash set -o posix.
12919         Reported by Dustin J. Mitchell.
12920
12921 2010-09-05  Bruno Haible  <bruno@clisp.org>
12922
12923         gnulib-tool: Highlight the changed options.
12924         * gnulib-tool (func_usage): Display the --import, --add-import,
12925         --remove-import explanations in bold font.
12926
12927 2010-09-06  Karl Berry  <karl@gnu.org>
12928
12929         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
12930
12931 2010-09-05  Bruno Haible  <bruno@clisp.org>
12932
12933         uniwidth/width: Update comment.
12934         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
12935         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
12936
12937 2010-09-05  Bruno Haible  <bruno@clisp.org>
12938
12939         isinf, isnan: Relax license.
12940         * modules/isinf (License): Change from GPL to LGPL, with consent from
12941         Ben Pfaff.
12942         * modules/isnan (License): Likewise.
12943         Requested by Ludovic Courtès.
12944
12945 2010-09-04  Bruno Haible  <bruno@clisp.org>
12946
12947         gnulib-tool: Help migration from --import to --add-import or --update.
12948         * gnulib-tool: Emit a verbose error message when --import is used
12949         without any module name.
12950
12951 2010-09-04  Bruno Haible  <bruno@clisp.org>
12952
12953         Update doc about gnulib-tool.
12954         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12955         'gnulib-tool --update' in more detail.
12956         Reported by Eric Blake.
12957
12958 2010-09-04  Bruno Haible  <bruno@clisp.org>
12959
12960         gnulib-tool: Change --import. New options --add/remove-import.
12961         * gnulib-tool: New options --add-import, --remove-import.
12962         (func_usage): Document them.
12963         (have_associative): Define always.
12964         (func_import): In import mode, don't merge the specified settings with
12965         the cached settings. Implement remove-import mode.
12966         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12967         Explain when to use them versus --import.
12968         (Simple update): Use --add-import instead of --import.
12969         * NEWS: Mention the change.
12970
12971 2010-09-04  Bruno Haible  <bruno@clisp.org>
12972
12973         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12974         separate gnulib.mk.
12975
12976 2010-09-04  Bruno Haible  <bruno@clisp.org>
12977
12978         gnulib-tool: Don't talk about CVS any more.
12979         * gnulib-tool (func_usage, func_import): Write "version control"
12980         instead of CVS.
12981
12982 2010-09-04  Jim Meyering  <meyering@redhat.com>
12983
12984         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12985         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12986         false positives (whose names may be ill-chosen) when searching
12987         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12988         would cause a false-positive.
12989
12990         avoid coreutils "make distcheck" failure
12991         Coreutils tests with an absolute build directory name that contains
12992         a space.  Not quoting this directory name caused a failure.
12993         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
12994         * tests/test-vc-list-files-cvs.sh: Likewise.
12995
12996 2010-09-04  Bruno Haible  <bruno@clisp.org>
12997
12998         gnulib-tool: Avoid error when run in a package without Makefile.am.
12999         * gnulib-tool: When collecting the m4dirs in a package that does not
13000         have a Makefile.am, eliminate those directories that contain no
13001         gnulib-cache.m4. Fix expression that counts these directories.
13002
13003 2010-09-04  Bruno Haible  <bruno@clisp.org>
13004
13005         update-copyright test: Improve output when perl is missing or too old.
13006         * tests/test-update-copyright.sh: Move test of Perl version down after
13007         the test whether Perl exists. Provide an explanation relating Perl's
13008         error message to Automake's SKIP: message.
13009
13010 2010-09-04  Bruno Haible  <bruno@clisp.org>
13011
13012         Don't augment PATH in TESTS_ENVIRONMENT.
13013         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
13014         set abs_aux_dir instead of augmenting PATH.
13015         * modules/vc-list-files-tests (Makefile.am): Likewise.
13016         * tests/test-update-copyright.sh: Augment PATH here.
13017         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
13018         path_prepend_.
13019         * tests/test-vc-list-files-git.sh: Likewise.
13020
13021 2010-09-04  Jim Meyering  <meyering@redhat.com>
13022
13023         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
13024         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
13025
13026 2010-09-04  Bruno Haible  <bruno@clisp.org>
13027
13028         strdup: Fix compilation error in C++ mode.
13029         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
13030         the macro.
13031
13032 2010-09-04  Bruno Haible  <bruno@clisp.org>
13033
13034         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
13035         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
13036         macro into a function.
13037         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13038
13039 2010-09-04  Bruno Haible  <bruno@clisp.org>
13040
13041         Set PATH_SEPARATOR the same way autoconf does.
13042         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
13043         the value of PATH_SEPARATOR the same way autoconf-generated configure
13044         scripts do.
13045         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
13046         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13047
13048 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13049
13050         Set PATH_SEPARATOR the same way autoconf does.
13051         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13052         the same way autoconf-generated configure scripts do.
13053         * posix-modules: Likewise.
13054
13055 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13056
13057         hash: fix safe_hasher const typo
13058         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
13059         const; otherwise, there is a type error later.
13060
13061 2010-09-02  Jim Meyering  <meyering@redhat.com>
13062
13063         test-update-copyright.sh: require perl 5.8.0
13064         * tests/test-update-copyright.sh: Require 5.8.0,
13065         which Tom G. Christensen has confirmed is adequate,
13066         while 5.6.1 is not.
13067
13068 2010-09-02  Eric Blake  <eblake@redhat.com>
13069
13070         tests: init.sh improvements for re-exec'ing with zsh
13071         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
13072         -vx through shell re-exec.
13073         Reported by Tom G. Christensen.
13074
13075         wctype: fix typo in previous commit
13076         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
13077         Reported by Ludovic Courtès.
13078
13079 2010-09-02  Jim Meyering  <meyering@redhat.com>
13080
13081         test-update-copyright.sh: skip test if Perl is too old
13082         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
13083         Reported by Tom G. Christensen.
13084
13085 2010-09-02  Bruno Haible  <bruno@clisp.org>
13086
13087         wctype: Avoid compilation error on IRIX 6.5.30.
13088         * lib/wctype.in.h (iswblank): Declare with a replacement if
13089         REPLACE_ISWBLANK is set.
13090         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13091         declared. Set REPLACE_ISWBLANK.
13092         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13093         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13094         * doc/posix-headers/wctype.texi: Likewise.
13095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13096
13097 2010-09-01  Bruno Haible  <bruno@clisp.org>
13098
13099         New module 'socketlib'.
13100         * modules/socketlib: New file.
13101         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13102         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13103         * modules/sockets (Depends-on): Add socketlib.
13104         Suggested by Sam Steingold <sds@gnu.org>.
13105
13106 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13107
13108         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13109
13110         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13111         when one needs search access to a directory but not read access.
13112         On systems where it is available, it works in some cases where
13113         O_RDONLY does not, namely on directories that are searchable but
13114         not readable, and which need only to be searchable.  If O_SEARCH
13115         is not available, fall back to the traditional method of using
13116         O_RDONLY.
13117
13118         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13119         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13120         when opening a directory that needs only to be searchable.
13121         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13122         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13123         * lib/openat-proc.c (openat_proc_name): Likewise.
13124         * lib/openat.c (openat_needs_fchdir): Likewise.
13125         * lib/save-cwd.c (save_cwd): Likewise.
13126         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13127
13128 2010-08-28  Bruno Haible  <bruno@clisp.org>
13129
13130         New module 'host-cpu-c-abi'.
13131         * modules/host-cpu-c-abi: New file.
13132         * m4/host-cpu-c-abi.m4: New file, based on part of
13133         clisp/src/m4/general.m4.
13134         Requested by Sam Steingold <sds@gnu.org>.
13135
13136 2010-08-31  Eric Blake  <eblake@redhat.com>
13137         and Jim Meyering  <meyering@redhat.com>
13138
13139         hash: factor, and guard against misbehaving hasher function
13140         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13141         of table->hasher's return value.  Also protect against a hash value
13142         so large that adding it to table->bucket results in a NULL pointer.
13143         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13144         Use it in place of open-coded check-and-abort.
13145
13146 2010-08-30  Bruno Haible  <bruno@clisp.org>
13147
13148         hash: silence spurious clang warning
13149         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13150         Reported by Eric Blake.
13151
13152 2010-08-30  Eric Blake  <eblake@redhat.com>
13153
13154         strstr, memmem, strcasestr: avoid leaked shell message
13155         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13156         FreeBSD.
13157         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13158         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13159
13160         tests: silence clang warning
13161         * tests/test-malloca.c (do_allocation): Avoid dead store.
13162
13163 2010-08-29  Bruno Haible  <bruno@clisp.org>
13164
13165         gettext: Fix recent mistake.
13166         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13167
13168 2010-08-29  Bruno Haible  <bruno@clisp.org>
13169
13170         selinux-h: Offer a --without-selinux option.
13171         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13172         --without-selinux was specified, skip all tests and define
13173         HAVE_SELINUX_SELINUX_H to 0.
13174         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13175         set LIB_SELINUX to empty.
13176         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13177         gl_LIBSELINUX. If --without-selinux was specified, replace
13178         selinux/context.h.
13179         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13180
13181 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13182             Bruno Haible  <bruno@clisp.org>
13183
13184         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13185         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13186         of HAVE_REALLOC.
13187         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13188         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13189         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13190         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13191
13192 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13193             Bruno Haible  <bruno@clisp.org>
13194
13195         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13196         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13197         HAVE_CALLOC.
13198         * lib/xmalloc.c: Update accordingly.
13199         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13200         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13201         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13202
13203 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13204             Bruno Haible  <bruno@clisp.org>
13205
13206         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13207         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13208         HAVE_MALLOC.
13209         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13210         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13211         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13212
13213 2010-08-29  Bruno Haible  <bruno@clisp.org>
13214
13215         Update modules list.
13216         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13217         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13218         (String handling <string.h>): Add astrxfrm.
13219         (File system functions): Add readlinkat.
13220
13221 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13222
13223         Tests for module 'realloc-gnu'.
13224         * modules/realloc-gnu-tests: New file.
13225         * tests/test-realloc-gnu.c: New file.
13226
13227         Tests for module 'calloc-gnu'.
13228         * modules/calloc-gnu-tests: New file.
13229         * tests/test-calloc-gnu.c: New file.
13230
13231         Tests for module 'malloc-gnu'.
13232         * modules/malloc-gnu-tests: New file.
13233         * tests/test-malloc-gnu.c: New file.
13234
13235 2010-08-28  Bruno Haible  <bruno@clisp.org>
13236
13237         Rename module 'realloc' -> 'realloc-gnu'.
13238         * modules/realloc-gnu: New file, copied from modules/realloc.
13239         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13240         obsolete.
13241         * modules/mgetgroups (Depends-on): Update.
13242         * doc/posix-functions/realloc.texi: Update.
13243         * NEWS: Mention the change.
13244
13245         Rename module 'calloc' -> 'calloc-gnu'.
13246         * modules/calloc-gnu: New file, copied from modules/calloc.
13247         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13248         obsolete.
13249         * doc/posix-functions/calloc.texi: Update.
13250         * NEWS: Mention the change.
13251
13252         Rename module 'malloc' -> 'malloc-gnu'.
13253         * modules/malloc-gnu: New file, copied from modules/malloc.
13254         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13255         obsolete.
13256         * modules/argp (Depends-on): Update.
13257         * modules/regex (Depends-on): Update.
13258         * doc/posix-functions/malloc.texi: Update.
13259         * NEWS: Mention the change.
13260
13261 2010-08-28  Eric Blake  <eblake@redhat.com>
13262
13263         pread, pwrite: add missing dependency
13264         * modules/pread (Depends-on): Add extensions.
13265         * modules/pwrite (Depends-on): Likewise.
13266
13267 2010-08-28  Bruno Haible  <bruno@clisp.org>
13268
13269         unistr/u*-strchr: Fix tests dependencies.
13270         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13271         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13272         Reported by Ian Beckwith <ianb@erislabs.net>.
13273
13274 2010-08-28  Bruno Haible  <bruno@clisp.org>
13275
13276         read-file: Don't occupy too much unused memory.
13277         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13278
13279 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13280             Eric Blake  <eblake@redhat.com>
13281             Bruno Haible  <bruno@clisp.org>
13282
13283         read-file: Avoid memory reallocations with regular files.
13284         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13285         (fread_file): With regular files, use the remaining length as the
13286         initial buffer size.  Check against overflow.
13287         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13288         sys_stat.
13289
13290 2010-08-28  Bruno Haible  <bruno@clisp.org>
13291
13292         ftello: Relax license.
13293         * modules/ftello (License): Relax to LGPLv2+.
13294         Reported by Eric Blake.
13295
13296 2010-08-28  Bruno Haible  <bruno@clisp.org>
13297
13298         Avoid relocwrapper link errors due to gnulib replacement functions.
13299         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13300         function.
13301         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13302
13303 2010-08-28  Bruno Haible  <bruno@clisp.org>
13304
13305         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13306         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13307         defined.
13308         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13309         Suggested by Eric Blake.
13310
13311 2010-08-28  Bruno Haible  <bruno@clisp.org>
13312
13313         sys_socket, netdb: Ensure socklen_t gets defined.
13314         * modules/sys_socket (Depends-on): Add socklen.
13315         * modules/netdb (Depends-on): Likewise.
13316         * modules/getaddrinfo (Depends-on): Remove socklen.
13317         * modules/getsockopt (Depends-on): Likewise.
13318         * modules/setsockopt (Depends-on): Likewise.
13319         * tests/test-sys_socket.c: Check that socklen_t is defined.
13320         * tests/test-netdb.c: Likewise.
13321         * m4/socklen.m4: Update comments.
13322         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13323
13324 2010-08-27  Eric Blake  <eblake@redhat.com>
13325
13326         login_tty: add missing dependency
13327         * modules/login_tty (Depends-on): Add pty.
13328
13329 2010-08-26  Eric Blake  <eblake@redhat.com>
13330
13331         lib-symbol-versions: fix m4 quoting
13332         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13333         format for AC_LINK_IFELSE.
13334
13335         glob: fix compile test
13336         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13337
13338         btowc: fix missing file
13339         * modules/btowc (Files): Also ship locale-fr.m4.
13340
13341         lseek: fix link test
13342         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13343         AC_LINK_IFELSE.
13344
13345         include_next: silence autoconf 2.68 warning
13346         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13347         AC_COMPILE_IFELSE as special.
13348         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13349         autoconf < 2.68.
13350
13351         acl: fix compilation test
13352         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13353         AC_COMPILE_IFELSE.
13354
13355 2010-08-26  Bruno Haible  <bruno@clisp.org>
13356
13357         Modernize AC_TRY_RUN invocations.
13358         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13359         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13360         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13361         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13362         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13363         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13364         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13365         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13366         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13367         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13368         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13369         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13370         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13371         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13372         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13373         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13374         gl_MBRLEN_NUL_RETVAL): Likewise.
13375         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13376         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13377         Likewise.
13378         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13379         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13380         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13381         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13382         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13383         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13384         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13385         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13386         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13387         Likewise.
13388         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13389         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13390         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13391         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13392         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13393         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13394         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13395         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13396         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13397         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13398
13399 2010-08-26  Bruno Haible  <bruno@clisp.org>
13400
13401         Modernize AC_TRY_LINK invocations.
13402         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13403         AC_TRY_LINK.
13404         * m4/argp.m4 (gl_ARGP): Likewise.
13405         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13406         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13407         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13408         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13409         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13410         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13411         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13412         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13413         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13414         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13415         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13416         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13417         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13418         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13419         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13420         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13421         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13422         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13423         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13424         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13425         Likewise.
13426         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13427         Likewise.
13428         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13429         Likewise.
13430         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13431         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13432         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13433         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13434         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13435         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13436         * m4/servent.m4 (gl_SERVENT): Likewise.
13437         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13438         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13439         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13440         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13441         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13442         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13443         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13444         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13445         * modules/tsearch-tests (configure.ac): Likewise.
13446
13447 2010-08-26  Bruno Haible  <bruno@clisp.org>
13448
13449         Modernize AC_TRY_COMPILE invocations.
13450         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13451         AC_TRY_COMPILE.
13452         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13453         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13454         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13455         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13456         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13457         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13458         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13459         * m4/lock.m4 (gl_LOCK): Likewise.
13460         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13461         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13462         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13463         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13464         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13465         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13466         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13467         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13468         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13469         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13470         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13471         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13472         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13473         extraneous semicolon.
13474
13475 2010-08-26  Jim Meyering  <meyering@redhat.com>
13476
13477         stat-time: relax license LGPL
13478         * modules/stat-time (License): Change from GPL to LGPL,
13479         with consent from all contributors, for use in libguile.
13480         Requested by Ludovic Courtès.
13481
13482 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13483
13484         poll: return immediately on POLLHUP.
13485         * lib/poll.c (poll): Always set timeout before wait_timeout is
13486         computed.
13487
13488 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13489
13490         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13491         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13492         rmdir ("dir/.//"), unlinkat.
13493
13494 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13495
13496         stdbool: avoid spurious failure with modern xlc
13497         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13498
13499 2010-08-24  Bruno Haible  <bruno@clisp.org>
13500
13501         getloadavg: simplify code
13502         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13503         gl_have_func. Update comments.
13504
13505 2010-08-24  Eric Blake  <eblake@redhat.com>
13506
13507         getloadavg: don't define SVR4 on cygwin
13508         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13509         only define SVR4 when -lkvm is required.
13510         Reported by Yaakov Selkowitz.
13511
13512 2010-08-24  Bruno Haible  <bruno@clisp.org>
13513
13514         priv-set: fix comment
13515         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13516
13517 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13518
13519         priv-set: fix comments
13520         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13521         to match code, as suggested by David Bartley in:
13522         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13523
13524 2010-08-23  Eric Blake  <eblake@redhat.com>
13525
13526         stdbool: avoid rejecting clang
13527         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13528         * tests/test-stdbool.c: Enable more tests if using the system
13529         <stdbool.h> instead of the gnulib replacement.
13530         (main): Move xlc bug test to a runtime test for all compilers.
13531         Reported by Anders Kaseorg.
13532
13533         argz: fix shell quoting issue
13534         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13535         Reported by Charles Wilson.
13536
13537 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13538             Erik Faye-Lund <kusmabite@gmail.com>
13539
13540         poll, select: handle ERROR_BROKEN_PIPE.
13541         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13542         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13543         * lib/select.c (win32_compute_revents): Do not mark a pipe
13544         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13545
13546 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13547
13548         fts: allow compilation with C++
13549         * lib/fts_.h: Specify extern "C" linkage with C++.
13550
13551 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13552
13553         Fix gnulib-tool sed script de-commentation for AIX sed.
13554         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13555         sed.
13556
13557 2010-08-17  Eric Blake  <eblake@redhat.com>
13558
13559         test-stddef: test for (some) offsetof bugs
13560         * tests/test-stddef.c: Enhance test to ensure correct type of
13561         offsetof.
13562         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13563         that we are not fixing at this time.
13564
13565 2010-08-15  Bruno Haible  <bruno@clisp.org>
13566
13567         stpncpy: Allow stpncpy to be defined as a macro.
13568         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13569         if it's already correctly declared.
13570         * lib/string.in.h (stpncpy): Undefine before redefining.
13571         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13572
13573 2010-08-14  Bruno Haible  <bruno@clisp.org>
13574
13575         Rename module 'memxfrm' to 'amemxfrm'.
13576         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13577         (amemxfrm): Renamed from memxfrm.
13578         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13579         (amemxfrm): Renamed from memxfrm.
13580         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13581         * NEWS: Mention the change.
13582         * MODULES.html.sh (String handling <string.h>): Update.
13583         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13584         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13585         * lib/unicase/u16-casexfrm.c: Likewise.
13586         * lib/unicase/u32-casexfrm.c: Likewise.
13587         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13588         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13589         * lib/uninorm/u16-normxfrm.c: Likewise.
13590         * lib/uninorm/u32-normxfrm.c: Likewise.
13591         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13592         memxfrm.
13593         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13594         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13595         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13596         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13597         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13598         Suggested by Paul Eggert.
13599
13600 2010-08-14  Bruno Haible  <bruno@clisp.org>
13601
13602         Tests for module 'astrxfrm'.
13603         * modules/astrxfrm-tests: New file.
13604         * tests/test-astrxfrm.c: New file.
13605
13606         New module 'astrxfrm'.
13607         * lib/astrxfrm.h: New file.
13608         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13609         * modules/astrxfrm: New file.
13610
13611 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13612
13613         regex: Tweak doc.
13614         * doc/regex.texi (Overview): Don't mention regex.c.
13615         (GNU Regular Expression Compiling): Likewise.
13616         (Match-end-of-line Operator): Mention 'not_eol'.
13617
13618 2010-08-14  Brian Gough  <bjg@gnu.org>
13619             Bruno Haible  <bruno@clisp.org>
13620
13621         git-merge-changelog: add doc relating to use with bzr and hg.
13622         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13623
13624 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13625
13626         pthread: fix pthread.h creation for srcdir != builddir
13627         * modules/pthread (Makefile.am): Fix the rule to work also in a
13628         non-srcdir build.
13629
13630 2010-08-13  Karl Berry  <karl@gnu.org>
13631
13632         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13633         * doc/posix-*/*: force line break before @url of POSIX
13634         specifications.
13635         Suggested by Werner Lemberg.
13636
13637 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13638
13639         strtod: fix const diagnostic
13640         * lib/strtod.c (strtod): Don't assign const char * to char *,
13641         as this elicits a warning from GCC when warnings are enabled.
13642
13643 2010-08-10  Pádraig Brady <P@draigbrady.com>
13644         and Eric Blake  <eblake@redhat.com>
13645
13646         copy-acl: ignore ENOTSUP on HP-UX
13647         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13648         so that it is available for HP-UX.
13649         * lib/copy-acl.c (qcopy_acl): Use it.
13650         Reported by Patrick M. Callahan.
13651
13652 2010-08-10  Eric Blake  <eblake@redhat.com>
13653
13654         open, chown: relax license
13655         * modules/open (License): Change to LGPLv2+, with consent by all
13656         authors, for use in augeas.
13657         * modules/chown (License): Likewise.
13658         * modules/lchown (Likewise): Likewise.
13659         Requested by Adam Stokes.
13660
13661 2010-08-09  Karl Berry  <karl@gnu.org>
13662
13663         * build-aux/ar-lib: new file, import from Automake.
13664         * config/srclist.txt: autocheck for updates.
13665
13666 2010-08-09  Eric Blake  <eblake@redhat.com>
13667
13668         readlinkat: adjust client modules
13669         * modules/areadlinkat (Depends-on): Use readlinkat, not
13670         symlinkat.
13671         * modules/areadlinkat-with-size (Depends-on): Likewise.
13672
13673         mknod: be more vocal about danger of running tests as root
13674         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13675         root, since that is just asking for problems.
13676         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13677
13678         readlinkat: split into its own module
13679         * modules/symlinkat: Split readlinkat...
13680         * modules/readlinkat: ...into separate module.
13681         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13682         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13683         * lib/symlinkat.c (readlinkat): Move...
13684         * lib/readlinkat.c: ...into new file.
13685         * modules/symlinkat-tests: Split readlinkat test...
13686         * modules/readlinkat-tests: ...into separate module.
13687         * tests/test-symlinkat.c: Split...
13688         * tests/test-readlinkat.c: ...into new file.
13689         * NEWS: Document the split.
13690         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13691         * lib/unistd.in.h (readlinkat): Likewise.
13692         Suggested by Bruno Haible.
13693
13694 2010-08-08  Bruno Haible  <bruno@clisp.org>
13695
13696         memxfrm: Speed up.
13697         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13698         that usually only one call to strxfrm is necessary for each string
13699         part.
13700         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13701
13702 2010-08-07  Karl Berry  <karl@gnu.org>
13703
13704         * doc/posix-headers/limits.texi,
13705         * doc/posix-functions/malloc.texi,
13706         * doc/posix-functions/strsignal.texi: missing @item.
13707         * doc/ld-version-script.texi: spurious leading i.
13708         * doc/regex.texi (Interval Operators): no commas inside @var.
13709
13710 2010-08-01  Bruno Haible  <bruno@clisp.org>
13711
13712         Integrate the regex documentation.
13713         * doc/gnulib.texi: Define 'cn' index.
13714         (Regular expressions): New a chapter that includes regex.texi and
13715         regexprops-generic.texi.
13716         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13717         syntax.
13718
13719         Whitespace cleanup.
13720         * doc/regex.texi: Remove trailing spaces.
13721
13722         Add regex documentation.
13723         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13724         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13725         Written by Kathy A. Hargreaves and Karl Berry.
13726
13727 2010-08-01  Bruno Haible  <bruno@clisp.org>
13728
13729         link: Update documentation.
13730         * doc/posix-functions/link.texi: Update regarding Solaris.
13731
13732 2010-07-31  Bruno Haible  <bruno@clisp.org>
13733
13734         Update modules list.
13735         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13736         (String handling <string.h>): Add memcmp2, memxfrm.
13737         (Container data structures): Add xlist, xsublist, xoset.
13738         (Core language properties): Add alignof, unused-parameter.
13739         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13740         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13741         (Unibyte characters <ctype.h>): New section.
13742         (String handling <string.h>): New section.
13743         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13744         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13745         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13746         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13747         tan, tanh, tanl, y0, y1, yn.
13748         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13749         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13750         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13751         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13752         unlockpt, vdprintf, vdprintf-posix.
13753         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13754         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13755         xconcat-filename.
13756         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13757         getdtablesize, pipe2, pipe2-safer.
13758         (Security): New section.
13759         (Networking functions): Add accept4.
13760         (Signal handling): Add sigpipe.
13761         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
13762         mbmemcasecoll.
13763         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
13764         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
13765         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
13766         pipe-filter-ii.
13767         (Misc): Add argp-version-etc, login_tty, parse-duration.
13768
13769 2010-07-31  Bruno Haible  <bruno@clisp.org>
13770
13771         Improve doc in MODULES.html.
13772         * modules/linkat (Description): Add the word "function".
13773         * modules/mkfifo (Description): Likewise.
13774         * modules/mknod (Description): Likewise.
13775         * modules/remove (Description): Likewise.
13776         * modules/renameat (Description): Likewise.
13777         * modules/stat (Description): Likewise.
13778         * modules/symlink (Description): Likewise.
13779         * modules/unlink (Description): Likewise.
13780
13781 2010-07-31  Bruno Haible  <bruno@clisp.org>
13782
13783         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
13784         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
13785         option --enable/disable-c++ instead of --enable/disable-cxx.
13786         * NEWS: Mention the change.
13787
13788 2010-07-31  Bruno Haible  <bruno@clisp.org>
13789
13790         readlink, areadlink: Relax test a bit.
13791         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
13792         alternative to ENOTDIR.
13793         * tests/test-areadlink.h (test_areadlink): Likewise.
13794         Reported by Rainer Tammer.
13795
13796 2010-07-31  Bruno Haible  <bruno@clisp.org>
13797
13798         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
13799         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13800         character, perform the search using U_STRCHR.
13801         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
13802         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
13803         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
13804         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
13805         Suggested by Paolo Bonzini.
13806
13807 2010-07-31  Bruno Haible  <bruno@clisp.org>
13808
13809         unistr/u*-strstr: Fix dependencies.
13810         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
13811         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
13812         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
13813
13814 2010-07-31  Bruno Haible  <bruno@clisp.org>
13815
13816         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
13817         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
13818         the beginning of the loop.
13819         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
13820         cases in 'switch' statement.
13821
13822         unistr/u8-strchr: Fix several bugs.
13823         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
13824         the string. When not found, return NULL, not a pointer near the end.
13825
13826         More tests for unistr/u8-strchr.
13827         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
13828         that the function does not read past the first occurrence of the byte
13829         being searched.
13830         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
13831         * tests/unistr/test-u16-strchr.c (main): New function.
13832         * tests/unistr/test-u32-strchr.c (main): New function.
13833
13834 2010-07-31  Bruno Haible  <bruno@clisp.org>
13835
13836         posix-modules: Ignore backup files of documentation files.
13837         * posix-modules: grep only through files named *.texi.
13838
13839 2010-07-31  Bruno Haible  <bruno@clisp.org>
13840
13841         symlinkat: Fix documentation.
13842         * doc/posix-functions/readlinkat.texi: Fix module name.
13843
13844 2010-07-31  Bruno Haible  <bruno@clisp.org>
13845
13846         fchownat: Replace also when chown has the trailing slash bug.
13847         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
13848         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
13849         introduced on 2010-04-10.
13850         Reported by Rainer Tammer.
13851
13852 2010-07-31  Bruno Haible  <bruno@clisp.org>
13853
13854         linkat: Work around AIX 7.1 bug.
13855         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
13856         whether linkat handles trailing slash correctly. If not, replace linkat
13857         and define LINKAT_TRAILING_SLASH_BUG.
13858         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
13859         check whether (fd1,file1) points to a directory if file1 or file2 ends
13860         in a slash. Code taken from lib/link.c.
13861         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
13862         Reported by Rainer Tammer.
13863
13864 2010-07-31  Bruno Haible  <bruno@clisp.org>
13865
13866         Correctly determine whether pow is available in libc on AIX 7 with xlc.
13867         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
13868         This disables an xlc optimization that was causing wrong test results.
13869         Reported by Rainer Tammer.
13870
13871 2010-07-31  Bruno Haible  <bruno@clisp.org>
13872
13873         iconv: Work around AIX 6.1..7.1 bug.
13874         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
13875         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
13876         cross-compiling, guess no on all versions of AIX.
13877         Reported by Rainer Tammer.
13878
13879 2010-07-31  Bruno Haible  <bruno@clisp.org>
13880
13881         readlink: Relax test a bit.
13882         * tests/test-readlink.h (test_readlink): Allow different errno value
13883         when readlink is called with a file name that ends in / and refers to
13884         a file.
13885         Suggested by Eric Blake.
13886         Reported by Rainer Tammer.
13887
13888 2010-07-31  Bruno Haible  <bruno@clisp.org>
13889
13890         copysign: Does not require -lm on glibc systems.
13891         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
13892         gl_COMMON_DOUBLE_MATHFUNC.
13893         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
13894
13895 2010-07-31  Bruno Haible  <bruno@clisp.org>
13896
13897         duplocale: Work around AIX 7.1 bug.
13898         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
13899         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13900         * lib/duplocale.c (rpl_duplocale): Update comment.
13901         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
13902         Reported by Rainer Tammer.
13903
13904 2010-07-30  Bruno Haible  <bruno@clisp.org>
13905
13906         dirfd: Avoid link error on AIX 7.1.
13907         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
13908         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
13909         exist, set REPLACE_DIRFD.
13910         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
13911         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
13912         * doc/posix-functions/dirfd.texi: Update.
13913         Reported by Rainer Tammer.
13914
13915 2010-07-30  Eric Blake  <eblake@redhat.com>
13916
13917         strtod: next round of AIX fixes
13918         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
13919         exponent.
13920         * tests/test-strtod.c (main): Enhance tests.
13921         * doc/posix-functions/strtod.texi (strtod): Document next bug.
13922         Reported by Rainer Tammer.
13923
13924         futimens: fix configure check
13925         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
13926         Reported by Bruno Haible.
13927
13928 2010-07-30  Bruno Haible  <bruno@clisp.org>
13929
13930         getline: Update regarding AIX.
13931         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
13932         Reported by Rainer Tammer.
13933
13934 2010-07-30  Bruno Haible  <bruno@clisp.org>
13935
13936         wcwidth: Drop replacement on AIX 7.
13937         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
13938         AIX 7.
13939         Reported by Rainer Tammer.
13940
13941 2010-07-30  Bruno Haible  <bruno@clisp.org>
13942
13943         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
13944         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
13945         a 'char *'.
13946         Reported by Rainer Tammer.
13947
13948 2010-07-30  Bruno Haible  <bruno@clisp.org>
13949
13950         unlink: Update regarding AIX.
13951         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
13952         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
13953         Reported by Rainer Tammer.
13954
13955 2010-07-30  Bruno Haible  <bruno@clisp.org>
13956
13957         symlink: Update regarding AIX.
13958         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13959         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13960         Reported by Rainer Tammer.
13961
13962 2010-07-30  Bruno Haible  <bruno@clisp.org>
13963
13964         strndup: Update regarding AIX.
13965         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13966         AIX 7.
13967         Reported by Rainer Tammer.
13968
13969 2010-07-30  Bruno Haible  <bruno@clisp.org>
13970
13971         stat: Update regarding AIX.
13972         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13973         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13974         Reported by Rainer Tammer.
13975
13976 2010-07-30  Bruno Haible  <bruno@clisp.org>
13977
13978         truncl: Fix autoconf test.
13979         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13980         whether truncl works.
13981         Reported by Rainer Tammer.
13982
13983 2010-07-30  Bruno Haible  <bruno@clisp.org>
13984
13985         round: Update regarding AIX.
13986         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13987         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13988         Reported by Rainer Tammer.
13989
13990 2010-07-30  Bruno Haible  <bruno@clisp.org>
13991
13992         rename: Update regarding AIX.
13993         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
13994         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
13995         Reported by Rainer Tammer.
13996
13997 2010-07-30  Bruno Haible  <bruno@clisp.org>
13998
13999         printf.m4: Update regarding AIX.
14000         * m4/printf.m4: Update comments regarding AIX.
14001         Reported by Rainer Tammer.
14002
14003 2010-07-30  Bruno Haible  <bruno@clisp.org>
14004
14005         iconv: Update regarding AIX.
14006         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
14007         AIX 7.
14008         Reported by Rainer Tammer.
14009
14010 2010-07-30  Bruno Haible  <bruno@clisp.org>
14011
14012         getopt: Update regarding AIX.
14013         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
14014         no on AIX.
14015         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
14016         Reported by Rainer Tammer.
14017
14018 2010-07-30  Bruno Haible  <bruno@clisp.org>
14019
14020         ldexpl; Update regarding AIX.
14021         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
14022         on AIX 7.
14023         Reported by Rainer Tammer.
14024
14025 2010-07-30  Bruno Haible  <bruno@clisp.org>
14026
14027         frexpl: Update regarding AIX.
14028         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
14029         on AIX 7.
14030         Reported by Rainer Tammer.
14031
14032 2010-07-30  Bruno Haible  <bruno@clisp.org>
14033
14034         open, fopen: Update regarding AIX.
14035         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
14036         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14037         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14038         * doc/posix-functions/fopen.texi: Likewise.
14039         Reported by Rainer Tammer.
14040
14041 2010-07-30  Bruno Haible  <bruno@clisp.org>
14042
14043         chown: Update doc regarding AIX.
14044         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
14045         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
14046         Reported by Rainer Tammer.
14047
14048 2010-07-30  Eric Blake  <eblake@redhat.com>
14049
14050         strtod: fix bug in replacement function on AIX
14051         * lib/strtod.c (strtod): Special case broken "0x" parse in
14052         underlying strtod.
14053         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14054         * doc/posix-functions/strtod.texi (strtod): Likewise.
14055         Reported by Rainer Tammer.
14056
14057 2010-07-30  Bruno Haible  <bruno@clisp.org>
14058
14059         mbrlen: Fix cross-compilation guess for AIX.
14060         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
14061         guess. Leftover from 2008-12-22.
14062
14063 2010-07-30  Bruno Haible  <bruno@clisp.org>
14064
14065         mbrtowc: Fix cross-compilation guess for AIX.
14066         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
14067         guess. Leftover from 2008-12-21.
14068
14069 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
14070
14071         init.sh: work around trap limitation of some shells
14072         * tests/init.sh (setup_): Move exit trap outside of shell function.
14073
14074 2010-07-29  Eric Blake  <eblake@redhat.com>
14075
14076         strtod: aid debugging
14077         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
14078         understanding why strtod is rejected.
14079
14080 2010-07-28  Bruno Haible  <bruno@clisp.org>
14081
14082         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
14083         * lib/unistr/u8-chr.c: Include <string.h>.
14084         * tests/unistr/test-u8-chr.c: Likewise.
14085         * tests/unistr/test-u16-chr.c: Likewise.
14086         * tests/unistr/test-u32-chr.c: Likewise.
14087         * tests/unistr/test-u8-strchr.c: Likewise.
14088         * tests/unistr/test-u16-strchr.c: Likewise.
14089         * tests/unistr/test-u32-strchr.c: Likewise.
14090         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14091         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14092         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14093         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14094
14095 2010-07-28  Bruno Haible  <bruno@clisp.org>
14096
14097         Use spaces for indentation, not tabs.
14098         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14099
14100 2010-07-27  Bruno Haible  <bruno@clisp.org>
14101
14102         mbspcasecmp: Fix function specification.
14103         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14104         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14105         Reported by Eric Blake <eblake@redhat.com>.
14106
14107 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14108
14109         timespec: use cast and not conditional, as truncation isn't possible
14110         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14111         instead of a conditional.  Comment about the situation in more detail.
14112         This undoes most of the 2009-10-29 patch.
14113
14114 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14115
14116         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14117         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14118         * lib/unistr/u8-strchr.c: Likewise.
14119         * modules/unistr/u8-chr: Depend on memchr.
14120
14121         unistr/u*-strchr: add tests
14122         * modules/unistr/u8-strchr-tests: New file.
14123         * modules/unistr/u16-strchr-tests: New file.
14124         * modules/unistr/u32-strchr-tests: New file.
14125         * tests/unistr/test-strchr.h: New file.
14126         * tests/unistr/test-u8-strchr.c: New file.
14127         * tests/unistr/test-u16-strchr.c: New file.
14128         * tests/unistr/test-u32-strchr.c: New file.
14129
14130         unistr/u*-chr: test multibyte sequences more
14131         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14132         test vector.
14133         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14134         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14135         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14136
14137         unistr/u*-chr: test multibyte sequences
14138         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14139
14140         unistr/u*-chr: prepare for multibyte tests
14141         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14142         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14143         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14144         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14145         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14146         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14147
14148 2010-07-18  Bruno Haible  <bruno@clisp.org>
14149
14150         unistr/u8-strchr: Optimize non-ASCII argument case.
14151         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14152         because the first byte often matches anyway.
14153         Reported by Pádraig Brady <P@draigbrady.com>.
14154
14155 2010-07-15  Karl Berry  <karl@gnu.org>
14156
14157         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14158
14159 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14160
14161         getcwd: on Solaris, work better if ancestors are inaccessible
14162         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14163         buffer and size, try again with a large buffer.  This works better
14164         on Solaris, since its getcwd succeeds even if the path to the root
14165         is inaccessible, and this is helpful in common cases such as .zfs
14166         hidden directories.  Problem reported by J Chapman Flack in
14167         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14168         Use system getcwd if it's declared, not merely if it's partly
14169         working; use the partly-working test only to avoid needless effort
14170         if the system getcwd fails.
14171         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14172         comment that was already obsolete and is now even more obsolete.
14173         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14174         now might call strdup.
14175
14176 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14177
14178         pthread: Add enough so that coreutils/src/sort.c compiles.
14179         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14180         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14181         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14182         Include <sys/types.h>, in case it defines pthread_t.
14183         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14184         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14185         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14186         (pthread_rwlockattr_t, pthread_spinlock_t):
14187         New typedefs, if HAVE_PTHREAD_T is not defined.
14188         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14189         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14190         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14191         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14192         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14193         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14194         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14195         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14196         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14197         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14198         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14199         New macros.
14200         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14201         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14202         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14203         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14204         (pthread_spin_unlock): New dummy functions.
14205         (pthread_create): Return EAGAIN; don't set errno.
14206         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14207         require AC_C_INLINE.
14208         * modules/pthread (Depends-on): Add sched, time.
14209         (pthread.h): Use AM_V_GEN.
14210
14211 2010-07-13  Bruno Haible  <bruno@clisp.org>
14212
14213         striconveh: Don't malloc memory if the result buffer is sufficient.
14214         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14215         buffer if its size is sufficient.
14216         Reported by Ludovic Courtès <ludo@gnu.org>.
14217
14218 2010-07-13  Bruno Haible  <bruno@clisp.org>
14219
14220         strtod: Add safety check.
14221         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14222
14223 2010-07-12  Bruno Haible  <bruno@clisp.org>
14224
14225         Unify tests that set gl_cv_func_ldexpl_no_libm.
14226         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14227         gl_FUNC_LDEXPL.
14228         (gl_FUNC_LDEXPL): Invoke it.
14229         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14230
14231 2010-07-12  Bruno Haible  <bruno@clisp.org>
14232
14233         Unify tests that set gl_cv_func_ldexp_no_libm.
14234         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14235         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14236         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14237         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14238         * modules/strtod (Files): Add m4/ldexp.m4.
14239
14240 2010-07-12  Bruno Haible  <bruno@clisp.org>
14241
14242         Unify tests that set gl_cv_func_frexpl_no_libm.
14243         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14244         gl_FUNC_FREXPL_NO_LIBM.
14245         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14246         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14247
14248 2010-07-12  Bruno Haible  <bruno@clisp.org>
14249
14250         Unify tests that set gl_cv_func_frexp_no_libm.
14251         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14252         gl_FUNC_FREXP_NO_LIBM.
14253         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14254         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14255
14256 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14257
14258         memcoll: clarify sizes versus lengths, document better, and tweak perf
14259         * lib/memcoll.c (strcoll_loop, memcoll0):
14260         Improve quality of descriptive comments.  Name variables
14261         consistently as to whether they are lengths (which do not include
14262         terminating null) versus sizes (which do).
14263         * lib/xmemcoll.c (xmemcoll0): Likewise.
14264         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14265         returned when s1size == 0; this is easier to compile and saves
14266         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14267
14268 2010-07-12  Bruno Haible  <bruno@clisp.org>
14269
14270         Tests for module '_Exit'.
14271         * modules/_Exit-tests: New file.
14272         * tests/test-_Exit.sh: New file.
14273         * tests/test-_Exit.c: New file.
14274
14275         New module '_Exit'.
14276         * lib/stdlib.in.h (__attribute__): New macro.
14277         (_Exit): New declaration.
14278         * lib/_Exit.c: New file.
14279         * m4/_Exit.m4: New file.
14280         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14281         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14282         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14283         * modules/_Exit: New file.
14284         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14285         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14286
14287 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14288
14289         strtod: make it more-accurate typically, and don't require libm
14290         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14291         Include limits.h.  Don't include string.h.
14292         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14293         (locale_isspace): New function, so that no casts are needed to
14294         check whether *s is a space.
14295         (ldexp): Provide an unused dummy if not available.
14296         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14297         (strtod): Use them.  This implementation prefers to use the
14298         underlying strtod if available, falling back on our own code
14299         only to fix known bugs.  This is more likely to produce an
14300         accurate result.  Also, it avoids the use of libm functions.
14301         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14302         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14303         was absent, but it caused a test failure with coreutils.
14304         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14305         with libm.
14306         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14307         * modules/strtod-tests (Makefile.am): Likewise.
14308
14309 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14310             Bruno Haible  <bruno@clisp.org>
14311
14312         unistr/u8-strchr: Optimize ASCII argument case.
14313         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14314
14315 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14316
14317         (x)memcoll: minor tweaks
14318         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14319         is after the type that it qualifies.
14320         (memcoll0): Likewise.
14321         * lib/memcoll.h (memcoll0): Likewise.
14322         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14323         * lib/xmemcoll.h (xmemcoll0): Likewise.
14324         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14325         differs from memcoll in that the NUL byte is part of the argument.
14326         Omit the abort-checks, as performance is a real issue here.  Plus,
14327         the checks were wrong anyway (an off-by-one error).  Omit local
14328         variable 'diff', as it's a bit clearer that way.
14329         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14330         no longer needed.
14331
14332 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14333
14334         (x)memcoll: speedup when input is known to be NUL delimited
14335         * lib/memcoll.c: Include stdlib.
14336         (memcoll0): New function.
14337         (strcoll_loop): New function, refactored for use in both memcoll
14338         and memcoll0.
14339         * lib/memcoll.h (memcoll0): Add prototype.
14340         * lib/xmemcoll.c (xmemcoll0): New function.
14341         (collate_error): New function, refactored for use in both xmemcoll
14342         and xmemcoll0.
14343         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14344         * m4/memcoll.m4: add inline invocation.
14345
14346 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14347
14348         * build-aux/bootstrap: Remove any local translations
14349         from the translation project synchronization directory,
14350         so that local only translations are not distributed.
14351
14352 2010-07-04  Bruno Haible  <bruno@clisp.org>
14353
14354         fsusage: Clarify which code applies to which platforms.
14355         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14356         platform.
14357         * lib/fsusage.c (get_fs_usage): Likewise.
14358
14359 2010-07-04  Bruno Haible  <bruno@clisp.org>
14360
14361         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14362         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14363         Reported by Martin Lambers <marlam@marlam.de>.
14364
14365 2010-07-04  Jim Meyering  <meyering@redhat.com>
14366
14367         hash: once again explicitly disallow insertion of NULL
14368         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14369         inserting a NULL pointer cannot work with these functions.
14370         Add a comment with details.
14371         This reverts part of the 2010-07-01 commit, 5bef1a35
14372         "hash: extend module to deal with non-pointer keys".
14373
14374 2010-07-01  Bruno Haible  <bruno@clisp.org>
14375
14376         stdbool: Update doc.
14377         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14378         Info from Christian Weisgerber <naddy@mips.inka.de>.
14379
14380 2010-07-01  Jim Meyering  <meyering@redhat.com>
14381
14382         hash: extend module to deal with non-pointer keys
14383         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14384         but that allows insertion of non-pointer entries.
14385         Do not disallow an ENTRY value of NULL.
14386         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14387         * lib/hash.h (hash_insert0): Declare.
14388
14389 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14390
14391         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14392         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14393         not present (i.e. with autoconf 2.59 and when using gettextize, not
14394         gnulib), require AC_GNU_SOURCE instead.
14395
14396 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14397
14398         idpriv-drop: Fix tests.
14399         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14400         not to the test-idpriv-droptemp program.
14401
14402 2010-06-29  Bruno Haible  <bruno@clisp.org>
14403
14404         string: Fix syntax error with g++ 2.96.
14405         * lib/string.in.h (__pure__): Remove definition.
14406         (_GL_ATTRIBUTE_PURE): New macro.
14407         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14408         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14409         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14410
14411 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14412
14413         unitypes: Fix bug introduced on 2010-05-18.
14414         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14415
14416 2010-06-22  Eric Blake  <eblake@redhat.com>
14417
14418         memmem: slight optimization
14419         * lib/str-two-way.h (critical_factorization): Update comments.
14420         Reduce work during factorization phase.
14421         Reported by Carlos Bueno <carlos@bueno.org>.
14422
14423 2010-06-21  Bruno Haible  <bruno@clisp.org>
14424
14425         Fix HAVE_CALLOC_POSIX misnomer.
14426         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14427         !HAVE_CALLOC_POSIX.
14428         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14429         HAVE_CALLOC_POSIX.
14430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14431         instead of HAVE_CALLOC_POSIX.
14432         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14433         HAVE_CALLOC_POSIX.
14434
14435         Use modern idiom for calloc() replacement.
14436         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14437         AC_FUNC_CALLOC.
14438         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14439         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14440         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14441         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14442         (gl_REPLACE_CALLOC): New macro.
14443
14444 2010-06-21  Bruno Haible  <bruno@clisp.org>
14445
14446         Fix HAVE_REALLOC_POSIX misnomer.
14447         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14448         !HAVE_REALLOC_POSIX.
14449         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14450         HAVE_REALLOC_POSIX.
14451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14452         instead of HAVE_REALLOC_POSIX.
14453         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14454         HAVE_REALLOC_POSIX.
14455
14456         Use modern idiom for realloc() replacement.
14457         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14458         AC_FUNC_REALLOC.
14459         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14460         Autoconf's AC_FUNC_REALLOC.
14461         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14462         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14463         (gl_REPLACE_REALLOC): New macro.
14464         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14465
14466 2010-06-21  Bruno Haible  <bruno@clisp.org>
14467
14468         Fix HAVE_MALLOC_POSIX misnomer.
14469         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14470         !HAVE_MALLOC_POSIX.
14471         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14472         HAVE_MALLOC_POSIX.
14473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14474         instead of HAVE_MALLOC_POSIX.
14475         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14476         HAVE_MALLOC_POSIX.
14477
14478         Use modern idiom for malloc() replacement.
14479         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14480         AC_FUNC_MALLOC.
14481         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14482         Autoconf's AC_FUNC_MALLOC.
14483         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14484         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14485         (gl_REPLACE_MALLOC): New macro.
14486         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14487
14488 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14489
14490         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14491         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14492         This macro takes 3 arguments, not 4.
14493
14494 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14495
14496         ipv6: fix detection under mingw
14497         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14498         in6_addr.
14499
14500 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14501
14502         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14503         that strtod() works when cross-compiling to a glibc version known
14504         to work.
14505
14506 2010-06-15  Bruno Haible  <bruno@clisp.org>
14507
14508         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14509
14510 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14511
14512         select: Correct timeout.
14513         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14514
14515 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14516
14517         git-version-gen: init shell var to avoid env var influence
14518         * build-aux/git-version-gen (v): Init shell var to empty.
14519
14520 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14521
14522         priv-set: Don't assume that priv.h exists merely because getppriv does.
14523         See Jan Andersen's bug report about AIX 5L in
14524         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14525         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14526         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14527         * lib/priv-set.h: Likewise.
14528         * tests/test-priv-set.c: Likewise.
14529
14530 2010-06-13  Bruno Haible  <bruno@clisp.org>
14531
14532         relocatable: Make it easier to test whether to install wrappers.
14533         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14534         RELOCATABLE_VIA_WRAPPER.
14535
14536 2010-06-13  Bruno Haible  <bruno@clisp.org>
14537
14538         gnulib-tool: Display specified modules and dependencies differently.
14539         * gnulib-tool (func_show_module_list): New function.
14540         (func_import, func_create_testdir): Invoke it.
14541         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14542
14543 2010-06-13  Bruno Haible  <bruno@clisp.org>
14544
14545         gnulib-tool: Align code of func_import and func_create_testdir.
14546         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14547         specified_modules.
14548
14549 2010-06-12  Jim Meyering  <meyering@redhat.com>
14550
14551         test-inttostr: avoid spurious failure on Solaris 9
14552         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14553         to accept "%ju".  Reported by Bruno Haible.
14554
14555 2010-06-11  Jim Meyering  <meyering@redhat.com>
14556
14557         test-sys_socket: mark variables as used more readably
14558         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14559         as "used" explicitly via (void) statement casts.  This is more
14560         readable than using them in an artificial return expression.
14561         Suggestion from Bruno Haible.
14562
14563 2010-06-11  Bruno Haible  <bruno@clisp.org>
14564
14565         Avoid some more warnings from "gcc -Wwrite-strings".
14566         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14567         to 'const char *'.
14568         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14569         * tests/test-c-strcasestr.c (main): Likewise.
14570         * tests/test-mbscasestr1.c (main): Likewise.
14571         * tests/test-mbscasestr2.c (main): Likewise.
14572         * tests/test-memmem.c (main): Likewise.
14573         * tests/test-strstr.c (main): Likewise.
14574         * tests/test-strcasestr.c (main): Likewise.
14575
14576 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14577
14578         init.sh: change framework_failure_ to fail with status 99, not 1
14579         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14580         automake's parallel-tests rule that this is an unexpected failure,
14581         even if the test is listed in XFAIL_TESTS.
14582
14583 2010-06-11  Jim Meyering  <meyering@redhat.com>
14584
14585         test-inttostr: avoid warnings about 4-6KB literal strings
14586         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14587         Include "macros.h", for its definition of ASSERT.
14588         (CK): s/assert/ASSERT/
14589         * modules/inttostr-tests (Files): Add macros.h.
14590
14591         init.sh: don't use $ME_ or skip_ before they are defined
14592         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14593         their first uses.  Also hoist their companions: warn_, fail_,
14594         framework_failure_, $stderr_fileno.  Prompted by a patch from
14595         Stefano Lattarini.
14596
14597         test-sys_socket: avoid set-but-not-used warnings from gcc
14598         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14599         avoid warning about set-but-not-used variables.
14600
14601         test-xvasprintf: avoid 'const' discard warnings
14602         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14603         "const" when assigning from literal strings.
14604         (test_xasprintf): Add "void" in function argument list to placate
14605         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14606
14607         tests: avoid compilation warnings in argmatch and exclude tests...
14608         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14609         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14610         Since it always exits, declare with the "noreturn" attribute.
14611         * tests/test-argmatch.c: Likewise.
14612
14613         tests: avoid 'const' discard warnings in mbsstr tests
14614         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14615         * tests/test-mbsstr2.c (main): Likewise.
14616
14617         test-verify: avoid warning from gcc's -Wmissing-declarations
14618         * tests/test-verify.c (function): Declare to be static.
14619
14620         test-inttostr.c: include <string.h> for use of strcmp
14621         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14622
14623         test-linkat: avoid failed assertion on "other" architectures
14624         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14625         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14626         sparc: https://bugs.launchpad.net/bugs/591968
14627
14628 2010-06-11  Jim Meyering  <meyering@redhat.com>
14629
14630         printf.m4: avoid autoconf's "Expanded Before Required" warning
14631         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14632         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14633         autoconf warning.
14634
14635 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14636
14637         Replacement header templates are now named with ".in", not "_".
14638         * doc/gnulib-intro.texi: Correct.
14639
14640 2010-06-10  Jim Meyering  <meyering@redhat.com>
14641
14642         inttostr-tests: depend on snprintf, not snprintf-posix
14643         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14644         snprintf-posix, to avoid this aclocal failure:
14645           missing file gnulib-tests/vasnprintf.c
14646           configure.ac:45: error: expected source file, required through \
14647           AC_LIBSOURCES, not found
14648
14649 2010-06-10  Jim Meyering  <meyering@redhat.com>
14650
14651         inttostr: add a new function, inttostr, and tests
14652         The namesake function was not available.  The existence of the
14653         template file, inttostr.c makes its addition nontrivial.
14654         * lib/anytostr.c: Rename from inttostr.c.
14655         (anytostr): Rename from inttostr.
14656         * lib/inttostr.c: New file.
14657         * modules/inttostr (Files): Add anytostr.c.
14658         (Makefile.am): Set lib_SOURCES instead of ...
14659         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14660         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14661         * lib/offtostr.c: Likewise.
14662         * lib/uinttostr.c: Likewise.
14663         * lib/umaxtostr.c: Likewise.
14664         * modules/inttostr-tests: New file.
14665         * tests/test-inttostr.c: New file.  Test these functions.
14666
14667 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14668             Bruno Haible  <bruno@clisp.org>
14669
14670         Add "Extending Gnulib" chapter to manual.
14671         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14672         chapter.
14673         (Extending Gnulib): New chapter.
14674         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14675         chapter.
14676
14677 2010-06-09  Bruno Haible  <bruno@clisp.org>
14678
14679         Avoid relocwrapper link errors due to gnulib replacement functions.
14680         * lib/areadlink.c: Use the system's malloc, realloc functions.
14681         (areadlink): Set errno to ENOMEM explicitly.
14682         * modules/areadlink (Depends-on): Remove malloc-posix.
14683         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14684
14685 2010-06-09  Bruno Haible  <bruno@clisp.org>
14686
14687         Avoid relocwrapper link errors due to gnulib replacement functions.
14688         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14689         * lib/malloca.c: Likewise.
14690         * lib/relocatable.c: Likewise.
14691         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14692         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14693         * lib/setenv.c: Use the system's malloc, realloc functions.
14694         * lib/strerror.c: Use the system's sprintf function.
14695         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14696
14697 2010-06-04  Bruno Haible  <bruno@clisp.org>
14698
14699         Prefer documented low-level autoconf macro names.
14700         * m4/lib-link.m4: Use m4_translit instead of translit.
14701         * m4/environ.m4: Likewise.
14702         * m4/mathfunc.m4: Likewise.
14703         * m4/onceonly.m4: Likewise.
14704         * m4/stdint.m4: Likewise.
14705         Suggested by Eric Blake.
14706
14707 2010-06-04  Martin Lambers  <marlam@marlam.de>
14708             Bruno Haible  <bruno@clisp.org>
14709
14710         havelib: Allow library names with '+' characters.
14711         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14712         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14713
14714 2010-06-09  Bruno Haible  <bruno@clisp.org>
14715
14716         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14717         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14718         realloc failed.
14719
14720 2010-06-08  Peter Simons  <simons@cryp.to>
14721
14722         maint.mk: make the news-check rule more configurable
14723         * top/maint.mk (news-check-lines-spec): New variable.
14724         (news-check): Use "sed -n 1,10p" in place of "head".
14725
14726 2010-06-07  Jim Meyering  <meyering@redhat.com>
14727
14728         do-release-commit-and-tag: fix typo in --help
14729         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14730
14731         regex: avoid new dead-code warning with gcc-4.6.0
14732         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14733         if-block containing a while-loop.  It's been unused for at least
14734         5 years.
14735
14736 2010-06-05  Bruno Haible  <bruno@clisp.org>
14737
14738         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14739         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14740
14741 2010-06-04  Bruno Haible  <bruno@clisp.org>
14742
14743         Update to GNU gettext 0.18.1.
14744         * modules/gettext (configure.ac): Require gettext infrastructure from
14745         version 0.18.1.
14746
14747 2010-06-03  Bruno Haible  <bruno@clisp.org>
14748
14749         Don't use AC_LIBOBJ with file names in subdirectories.
14750         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14751         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14752         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14753         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14754         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14755         gl_LIBUNISTRING_LIBSOURCE.
14756         (Makefile.am): Augment lib_SOURCES here, conditionally.
14757         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14758
14759 2010-06-03  Bruno Haible  <bruno@clisp.org>
14760
14761         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
14762         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
14763         expansion does not end with a newline.
14764         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
14765         unnecessary newline.
14766
14767 2010-06-03  Bruno Haible  <bruno@clisp.org>
14768
14769         Reduce dependencies.
14770         * tests/test-quotearg.h: New file, extracted from
14771         tests/test-quotearg.c.
14772         * tests/test-quotearg-simple.c: New file, extracted from
14773         tests/test-quotearg.c.
14774         * tests/test-quotearg.c: Don't include <ctype.h>.
14775         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
14776         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
14777         use_quote_double_quotes, use_quotearg_colon): Moved to
14778         tests/test-quotearg.h.
14779         (results_g, flag_results, custom_quotes, custom_results): Moved
14780         to tests/test-quotearg-simple.c.
14781         (main): Moved the part that does not depend on gettext to
14782         tests/test-quotearg-simple.c. Return 77 if the test cannot be
14783         performed.
14784         * modules/quotearg-simple: New file.
14785         * modules/quotearg-simple-tests: New file.
14786         * modules/quotearg (Depends-on): Add quotearg-simple.
14787         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
14788         (Files): Add tests/test-quotearg.h.
14789         Reported by Paolo Bonzini.
14790
14791 2010-06-03  Bruno Haible  <bruno@clisp.org>
14792
14793         Reduce dependencies.
14794         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
14795
14796 2010-06-03  Bruno Haible  <bruno@clisp.org>
14797
14798         time: Undefine more broken macros.
14799         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
14800         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
14801         Reported by Eric Blake.
14802
14803 2010-06-03  Bruno Haible  <bruno@clisp.org>
14804
14805         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
14806         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
14807         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
14808         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
14809         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
14810         Reported by Ludovic Courtès <ludo@gnu.org>.
14811
14812 2010-06-02  Eric Blake  <eblake@redhat.com>
14813
14814         time: work with mingw + pthreads-win32 library
14815         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
14816         if timespec is defined only in pthread.h.
14817         * modules/time (Makefile.am): Substitute it.
14818         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
14819         <pthread.h>, when needed.
14820         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
14821         from the library.
14822
14823 2010-05-31  Bruno Haible  <bruno@clisp.org>
14824
14825         Avoid expanding two macros in the wrong order.
14826         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
14827         gl_LIBUNISTRING if it is defined.
14828         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
14829         autoconf >= 2.64.
14830         Reported by Ludovic Courtès <ludo@gnu.org>.
14831
14832 2010-05-27  Jim Meyering  <meyering@redhat.com>
14833
14834         maint.mk: also prohibit "#undef" of always-defined symbols
14835         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
14836         Allow more than one space before the symbol name.
14837         (sc_prohibit_always-defined_macros): Use grep's -E, now that
14838         the regexp uses alternation.
14839
14840 2010-05-26  Eric Blake  <eblake@redhat.com>
14841
14842         maint.mk: avoid echo -e
14843         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
14844         Convert all uses of echo -* to printf.
14845         Reported by Matthias Bolte.
14846
14847 2010-05-25  Bruno Haible  <bruno@clisp.org>
14848
14849         Update to GNU gettext 0.18, part 2.
14850         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
14851         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
14852
14853 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14854
14855         Add missing include in test-pwrite.c.
14856         * tests/test-pwrite.c: Include string.h, for strcmp.
14857
14858 2010-05-24  Bruno Haible  <bruno@clisp.org>
14859
14860         * NEWS: Mention requirement for Automake option 'subdir-objects'.
14861
14862 2010-05-24  Bruno Haible  <bruno@clisp.org>
14863
14864         Don't use conversion with transliteration in u{8,16,32}_strcoll.
14865         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
14866         iconveh_error argument.
14867         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
14868         U_STRCONV_TO_LOCALE.
14869         * lib/unistr/u16-strcoll.c: Likewise.
14870         * lib/unistr/u32-strcoll.c: Likewise.
14871         * modules/unistr/u8-strcoll (Depends-on): Add
14872         uniconv/u8-strconv-to-enc, localcharset. Remove
14873         uniconv/u8-strconv-to-locale.
14874         (configure.ac): Bump version number.
14875         * modules/unistr/u16-strcoll (Depends-on): Add
14876         uniconv/u16-strconv-to-enc, localcharset. Remove
14877         uniconv/u16-strconv-to-locale.
14878         (configure.ac): Bump version number.
14879         * modules/unistr/u32-strcoll (Depends-on): Add
14880         uniconv/u32-strconv-to-enc, localcharset. Remove
14881         uniconv/u32-strconv-to-locale.
14882         (configure.ac): Bump version number.
14883
14884 2010-05-24  Bruno Haible  <bruno@clisp.org>
14885
14886         Avoid a test failure on NetBSD 5.0.
14887         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
14888         an iconv() bug.
14889
14890 2010-05-24  Bruno Haible  <bruno@clisp.org>
14891
14892         Adjust #include directive style.
14893         * modules/regex (Includes): Recommend to write <regex.h>.
14894
14895 2010-05-24  Bruno Haible  <bruno@clisp.org>
14896
14897         regex: Don't require alloca.
14898         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
14899         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
14900         only inside if (0).
14901
14902 2010-05-23  Jim Meyering  <meyering@redhat.com>
14903
14904         test-renameat.c: include <sys/stat.h>
14905         * tests/test-renameat.c: Include <sys/stat.h>; required for
14906         definition of S_IS* macros.
14907
14908 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
14909
14910         Update maintainer documentation for 'relocatable-prog' module.
14911         * doc/relocatable-maint.texi: Update.
14912         Comments by Bruno Haible.
14913
14914 2010-05-23  Bruno Haible  <bruno@clisp.org>
14915
14916         git-merge-changelog: Enable --split-merged-entry by default.
14917         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
14918         (usage): Don't mention this option any more.
14919         Reported by Ralf Wildenhues.
14920
14921 2010-05-23  Jim Meyering  <meyering@redhat.com>
14922
14923         test-pwrite: do not leave behind a test file named "out"
14924         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
14925         The trivial-looking use of init.sh is really necessary.
14926         It ensures that the temporary file, "out", is created in
14927         a temporary directory, and removed upon termination.
14928         * tests/test-pwrite.sh: Re-add file.
14929         * modules/pwrite-tests: Reference it.
14930
14931 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14932
14933         Fix output redirection buglet in init.sh.
14934         * tests/init.sh: Fix redirection of stderr.
14935
14936 2010-05-20  Simon Josefsson  <simon@josefsson.org>
14937
14938         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
14939
14940 2010-05-17  Simon Josefsson  <simon@josefsson.org>
14941
14942         * modules/valgrind-tests: New file.
14943         * m4/valgrind-tests.m4: New file.
14944         * doc/valgrind-tests.texi: New file.
14945         * doc/gnulib.texi (Running self-tests under valgrind): New
14946         section.
14947
14948 2010-05-19  Bruno Haible  <bruno@clisp.org>
14949
14950         Clean up dead code in recent commit.
14951         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
14952         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
14953         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14954         Suggested by Paolo Bonzini.
14955
14956 2010-05-19  Bruno Haible  <bruno@clisp.org>
14957
14958         Avoid valgrind error reports from libunistring.
14959         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14960         * modules/libunistring (Files): Add it.
14961         * modules/libunistring-optional (Files): Likewise.
14962
14963 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14964             Bruno Haible  <bruno@clisp.org>
14965
14966         New module 'libunistring-optional'.
14967         * modules/libunistring-optional: New file.
14968         * m4/libunistring-base.m4: New file.
14969         * m4/libunistring-optional.m4: New file.
14970         * lib/unicase.in.h: Renamed from lib/unicase.h.
14971         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14972         * lib/unictype.in.h: Renamed from lib/unictype.h.
14973         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14974         * lib/uniname.in.h: Renamed from lib/uniname.h.
14975         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14976         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14977         * lib/unistr.in.h: Renamed from lib/unistr.h.
14978         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14979         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14980         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14981         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14982         gl_LIBUNISTRING. If the library was found, determine the installed
14983         version and set LIBUNISTRING_VERSION.
14984         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14985         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14986         handle a configuration option --with-included-libunistring.
14987         * modules/libunistring (Files): Add m4/absolute-header.m4.
14988         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14989         Add m4/libunistring-base.m4.
14990         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14991         (Makefile.am): Build unicase.h from unicase.in.h.
14992         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14993         Add m4/libunistring-base.m4.
14994         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14995         (Makefile.am): Build uniconv.h from uniconv.in.h.
14996         * modules/unictype/base (Files): Use unictype.in.h instead of
14997         unictype.h. Add m4/libunistring-base.m4.
14998         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14999         (Makefile.am): Build unictype.h from unictype.in.h.
15000         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
15001         Add m4/libunistring-base.m4.
15002         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15003         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
15004         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
15005         Add m4/libunistring-base.m4.
15006         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15007         (Makefile.am): Build uniname.h from uniname.in.h.
15008         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
15009         Add m4/libunistring-base.m4.
15010         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15011         (Makefile.am): Build uninorm.h from uninorm.in.h.
15012         * modules/unistdio/base (Files): Use unistdio.in.h instead of
15013         unistdio.h. Add m4/libunistring-base.m4.
15014         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15015         (Makefile.am): Build unistdio.h from unistdio.in.h.
15016         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
15017         Add m4/libunistring-base.m4.
15018         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15019         (Makefile.am): Build unistr.h from unistr.in.h.
15020         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
15021         Add m4/libunistring-base.m4.
15022         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15023         (Makefile.am): Build unitypes.h from unitypes.in.h.
15024         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
15025         Add m4/libunistring-base.m4.
15026         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15027         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
15028         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
15029         uniwidth.h. Add m4/libunistring-base.m4.
15030         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15031         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
15032         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
15033         instead of augmenting lib_SOURCES.
15034         * modules/unicase/empty-suffix-context: Likewise.
15035         * modules/unicase/locale-language: Likewise.
15036         * modules/unicase/tolower: Likewise.
15037         * modules/unicase/totitle: Likewise.
15038         * modules/unicase/toupper: Likewise.
15039         * modules/unicase/u8-casecmp: Likewise.
15040         * modules/unicase/u8-casecoll: Likewise.
15041         * modules/unicase/u8-casefold: Likewise.
15042         * modules/unicase/u8-casexfrm: Likewise.
15043         * modules/unicase/u8-ct-casefold: Likewise.
15044         * modules/unicase/u8-ct-tolower: Likewise.
15045         * modules/unicase/u8-ct-totitle: Likewise.
15046         * modules/unicase/u8-ct-toupper: Likewise.
15047         * modules/unicase/u8-is-cased: Likewise.
15048         * modules/unicase/u8-is-casefolded: Likewise.
15049         * modules/unicase/u8-is-lowercase: Likewise.
15050         * modules/unicase/u8-is-titlecase: Likewise.
15051         * modules/unicase/u8-is-uppercase: Likewise.
15052         * modules/unicase/u8-prefix-context: Likewise.
15053         * modules/unicase/u8-suffix-context: Likewise.
15054         * modules/unicase/u8-tolower: Likewise.
15055         * modules/unicase/u8-totitle: Likewise.
15056         * modules/unicase/u8-toupper: Likewise.
15057         * modules/unicase/u16-casecmp: Likewise.
15058         * modules/unicase/u16-casecoll: Likewise.
15059         * modules/unicase/u16-casefold: Likewise.
15060         * modules/unicase/u16-casexfrm: Likewise.
15061         * modules/unicase/u16-ct-casefold: Likewise.
15062         * modules/unicase/u16-ct-tolower: Likewise.
15063         * modules/unicase/u16-ct-totitle: Likewise.
15064         * modules/unicase/u16-ct-toupper: Likewise.
15065         * modules/unicase/u16-is-cased: Likewise.
15066         * modules/unicase/u16-is-casefolded: Likewise.
15067         * modules/unicase/u16-is-lowercase: Likewise.
15068         * modules/unicase/u16-is-titlecase: Likewise.
15069         * modules/unicase/u16-is-uppercase: Likewise.
15070         * modules/unicase/u16-prefix-context: Likewise.
15071         * modules/unicase/u16-suffix-context: Likewise.
15072         * modules/unicase/u16-tolower: Likewise.
15073         * modules/unicase/u16-totitle: Likewise.
15074         * modules/unicase/u16-toupper: Likewise.
15075         * modules/unicase/u32-casecmp: Likewise.
15076         * modules/unicase/u32-casecoll: Likewise.
15077         * modules/unicase/u32-casefold: Likewise.
15078         * modules/unicase/u32-casexfrm: Likewise.
15079         * modules/unicase/u32-ct-casefold: Likewise.
15080         * modules/unicase/u32-ct-tolower: Likewise.
15081         * modules/unicase/u32-ct-totitle: Likewise.
15082         * modules/unicase/u32-ct-toupper: Likewise.
15083         * modules/unicase/u32-is-cased: Likewise.
15084         * modules/unicase/u32-is-casefolded: Likewise.
15085         * modules/unicase/u32-is-lowercase: Likewise.
15086         * modules/unicase/u32-is-titlecase: Likewise.
15087         * modules/unicase/u32-is-uppercase: Likewise.
15088         * modules/unicase/u32-prefix-context: Likewise.
15089         * modules/unicase/u32-suffix-context: Likewise.
15090         * modules/unicase/u32-tolower: Likewise.
15091         * modules/unicase/u32-totitle: Likewise.
15092         * modules/unicase/u32-toupper: Likewise.
15093         * modules/unicase/ulc-casecmp: Likewise.
15094         * modules/unicase/ulc-casecoll: Likewise.
15095         * modules/unicase/ulc-casexfrm: Likewise.
15096         * modules/uniconv/u8-conv-from-enc: Likewise.
15097         * modules/uniconv/u8-conv-to-enc: Likewise.
15098         * modules/uniconv/u8-strconv-from-enc: Likewise.
15099         * modules/uniconv/u8-strconv-from-locale: Likewise.
15100         * modules/uniconv/u8-strconv-to-enc: Likewise.
15101         * modules/uniconv/u8-strconv-to-locale: Likewise.
15102         * modules/uniconv/u16-conv-from-enc: Likewise.
15103         * modules/uniconv/u16-conv-to-enc: Likewise.
15104         * modules/uniconv/u16-strconv-from-enc: Likewise.
15105         * modules/uniconv/u16-strconv-from-locale: Likewise.
15106         * modules/uniconv/u16-strconv-to-enc: Likewise.
15107         * modules/uniconv/u16-strconv-to-locale: Likewise.
15108         * modules/uniconv/u32-conv-from-enc: Likewise.
15109         * modules/uniconv/u32-conv-to-enc: Likewise.
15110         * modules/uniconv/u32-strconv-from-enc: Likewise.
15111         * modules/uniconv/u32-strconv-from-locale: Likewise.
15112         * modules/uniconv/u32-strconv-to-enc: Likewise.
15113         * modules/uniconv/u32-strconv-to-locale: Likewise.
15114         * modules/unictype/bidicategory-byname: Likewise.
15115         * modules/unictype/bidicategory-name: Likewise.
15116         * modules/unictype/bidicategory-of: Likewise.
15117         * modules/unictype/bidicategory-test: Likewise.
15118         * modules/unictype/block-list: Likewise.
15119         * modules/unictype/block-test: Likewise.
15120         * modules/unictype/category-C: Likewise.
15121         * modules/unictype/category-Cc: Likewise.
15122         * modules/unictype/category-Cf: Likewise.
15123         * modules/unictype/category-Cn: Likewise.
15124         * modules/unictype/category-Co: Likewise.
15125         * modules/unictype/category-Cs: Likewise.
15126         * modules/unictype/category-L: Likewise.
15127         * modules/unictype/category-Ll: Likewise.
15128         * modules/unictype/category-Lm: Likewise.
15129         * modules/unictype/category-Lo: Likewise.
15130         * modules/unictype/category-Lt: Likewise.
15131         * modules/unictype/category-Lu: Likewise.
15132         * modules/unictype/category-M: Likewise.
15133         * modules/unictype/category-Mc: Likewise.
15134         * modules/unictype/category-Me: Likewise.
15135         * modules/unictype/category-Mn: Likewise.
15136         * modules/unictype/category-N: Likewise.
15137         * modules/unictype/category-Nd: Likewise.
15138         * modules/unictype/category-Nl: Likewise.
15139         * modules/unictype/category-No: Likewise.
15140         * modules/unictype/category-P: Likewise.
15141         * modules/unictype/category-Pc: Likewise.
15142         * modules/unictype/category-Pd: Likewise.
15143         * modules/unictype/category-Pe: Likewise.
15144         * modules/unictype/category-Pf: Likewise.
15145         * modules/unictype/category-Pi: Likewise.
15146         * modules/unictype/category-Po: Likewise.
15147         * modules/unictype/category-Ps: Likewise.
15148         * modules/unictype/category-S: Likewise.
15149         * modules/unictype/category-Sc: Likewise.
15150         * modules/unictype/category-Sk: Likewise.
15151         * modules/unictype/category-Sm: Likewise.
15152         * modules/unictype/category-So: Likewise.
15153         * modules/unictype/category-Z: Likewise.
15154         * modules/unictype/category-Zl: Likewise.
15155         * modules/unictype/category-Zp: Likewise.
15156         * modules/unictype/category-Zs: Likewise.
15157         * modules/unictype/category-and: Likewise.
15158         * modules/unictype/category-and-not: Likewise.
15159         * modules/unictype/category-byname: Likewise.
15160         * modules/unictype/category-name: Likewise.
15161         * modules/unictype/category-none: Likewise.
15162         * modules/unictype/category-of: Likewise.
15163         * modules/unictype/category-or: Likewise.
15164         * modules/unictype/category-test: Likewise.
15165         * modules/unictype/combining-class: Likewise.
15166         * modules/unictype/ctype-alnum: Likewise.
15167         * modules/unictype/ctype-alpha: Likewise.
15168         * modules/unictype/ctype-blank: Likewise.
15169         * modules/unictype/ctype-cntrl: Likewise.
15170         * modules/unictype/ctype-digit: Likewise.
15171         * modules/unictype/ctype-graph: Likewise.
15172         * modules/unictype/ctype-lower: Likewise.
15173         * modules/unictype/ctype-print: Likewise.
15174         * modules/unictype/ctype-punct: Likewise.
15175         * modules/unictype/ctype-space: Likewise.
15176         * modules/unictype/ctype-upper: Likewise.
15177         * modules/unictype/ctype-xdigit: Likewise.
15178         * modules/unictype/decimal-digit: Likewise.
15179         * modules/unictype/digit: Likewise.
15180         * modules/unictype/mirror: Likewise.
15181         * modules/unictype/numeric: Likewise.
15182         * modules/unictype/property-alphabetic: Likewise.
15183         * modules/unictype/property-ascii-hex-digit: Likewise.
15184         * modules/unictype/property-bidi-arabic-digit: Likewise.
15185         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15186         * modules/unictype/property-bidi-block-separator: Likewise.
15187         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15188         * modules/unictype/property-bidi-common-separator: Likewise.
15189         * modules/unictype/property-bidi-control: Likewise.
15190         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15191         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15192         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15193         * modules/unictype/property-bidi-european-digit: Likewise.
15194         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15195         * modules/unictype/property-bidi-left-to-right: Likewise.
15196         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15197         * modules/unictype/property-bidi-other-neutral: Likewise.
15198         * modules/unictype/property-bidi-pdf: Likewise.
15199         * modules/unictype/property-bidi-segment-separator: Likewise.
15200         * modules/unictype/property-bidi-whitespace: Likewise.
15201         * modules/unictype/property-byname: Likewise.
15202         * modules/unictype/property-combining: Likewise.
15203         * modules/unictype/property-composite: Likewise.
15204         * modules/unictype/property-currency-symbol: Likewise.
15205         * modules/unictype/property-dash: Likewise.
15206         * modules/unictype/property-decimal-digit: Likewise.
15207         * modules/unictype/property-default-ignorable-code-point: Likewise.
15208         * modules/unictype/property-deprecated: Likewise.
15209         * modules/unictype/property-diacritic: Likewise.
15210         * modules/unictype/property-extender: Likewise.
15211         * modules/unictype/property-format-control: Likewise.
15212         * modules/unictype/property-grapheme-base: Likewise.
15213         * modules/unictype/property-grapheme-extend: Likewise.
15214         * modules/unictype/property-grapheme-link: Likewise.
15215         * modules/unictype/property-hex-digit: Likewise.
15216         * modules/unictype/property-hyphen: Likewise.
15217         * modules/unictype/property-id-continue: Likewise.
15218         * modules/unictype/property-id-start: Likewise.
15219         * modules/unictype/property-ideographic: Likewise.
15220         * modules/unictype/property-ids-binary-operator: Likewise.
15221         * modules/unictype/property-ids-trinary-operator: Likewise.
15222         * modules/unictype/property-ignorable-control: Likewise.
15223         * modules/unictype/property-iso-control: Likewise.
15224         * modules/unictype/property-join-control: Likewise.
15225         * modules/unictype/property-left-of-pair: Likewise.
15226         * modules/unictype/property-line-separator: Likewise.
15227         * modules/unictype/property-logical-order-exception: Likewise.
15228         * modules/unictype/property-lowercase: Likewise.
15229         * modules/unictype/property-math: Likewise.
15230         * modules/unictype/property-non-break: Likewise.
15231         * modules/unictype/property-not-a-character: Likewise.
15232         * modules/unictype/property-numeric: Likewise.
15233         * modules/unictype/property-other-alphabetic: Likewise.
15234         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15235         * modules/unictype/property-other-grapheme-extend: Likewise.
15236         * modules/unictype/property-other-id-continue: Likewise.
15237         * modules/unictype/property-other-id-start: Likewise.
15238         * modules/unictype/property-other-lowercase: Likewise.
15239         * modules/unictype/property-other-math: Likewise.
15240         * modules/unictype/property-other-uppercase: Likewise.
15241         * modules/unictype/property-paired-punctuation: Likewise.
15242         * modules/unictype/property-paragraph-separator: Likewise.
15243         * modules/unictype/property-pattern-syntax: Likewise.
15244         * modules/unictype/property-pattern-white-space: Likewise.
15245         * modules/unictype/property-private-use: Likewise.
15246         * modules/unictype/property-punctuation: Likewise.
15247         * modules/unictype/property-quotation-mark: Likewise.
15248         * modules/unictype/property-radical: Likewise.
15249         * modules/unictype/property-sentence-terminal: Likewise.
15250         * modules/unictype/property-soft-dotted: Likewise.
15251         * modules/unictype/property-space: Likewise.
15252         * modules/unictype/property-terminal-punctuation: Likewise.
15253         * modules/unictype/property-test: Likewise.
15254         * modules/unictype/property-titlecase: Likewise.
15255         * modules/unictype/property-unassigned-code-value: Likewise.
15256         * modules/unictype/property-unified-ideograph: Likewise.
15257         * modules/unictype/property-uppercase: Likewise.
15258         * modules/unictype/property-variation-selector: Likewise.
15259         * modules/unictype/property-white-space: Likewise.
15260         * modules/unictype/property-xid-continue: Likewise.
15261         * modules/unictype/property-xid-start: Likewise.
15262         * modules/unictype/property-zero-width: Likewise.
15263         * modules/unictype/scripts: Likewise.
15264         * modules/unictype/syntax-c-ident: Likewise.
15265         * modules/unictype/syntax-c-whitespace: Likewise.
15266         * modules/unictype/syntax-java-ident: Likewise.
15267         * modules/unictype/syntax-java-whitespace: Likewise.
15268         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15269         * modules/unilbrk/u8-width-linebreaks: Likewise.
15270         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15271         * modules/unilbrk/u16-width-linebreaks: Likewise.
15272         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15273         * modules/unilbrk/u32-width-linebreaks: Likewise.
15274         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15275         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15276         * modules/uniname/uniname: Likewise.
15277         * modules/uninorm/canonical-decomposition: Likewise.
15278         * modules/uninorm/composition: Likewise.
15279         * modules/uninorm/decomposing-form: Likewise.
15280         * modules/uninorm/decomposition: Likewise.
15281         * modules/uninorm/filter: Likewise.
15282         * modules/uninorm/nfc: Likewise.
15283         * modules/uninorm/nfd: Likewise.
15284         * modules/uninorm/nfkc: Likewise.
15285         * modules/uninorm/nfkd: Likewise.
15286         * modules/uninorm/u8-normalize: Likewise.
15287         * modules/uninorm/u8-normcmp: Likewise.
15288         * modules/uninorm/u8-normcoll: Likewise.
15289         * modules/uninorm/u8-normxfrm: Likewise.
15290         * modules/uninorm/u16-normalize: Likewise.
15291         * modules/uninorm/u16-normcmp: Likewise.
15292         * modules/uninorm/u16-normcoll: Likewise.
15293         * modules/uninorm/u16-normxfrm: Likewise.
15294         * modules/uninorm/u32-normalize: Likewise.
15295         * modules/uninorm/u32-normcmp: Likewise.
15296         * modules/uninorm/u32-normcoll: Likewise.
15297         * modules/uninorm/u32-normxfrm: Likewise.
15298         * modules/unistdio/u8-asnprintf: Likewise.
15299         * modules/unistdio/u8-asprintf: Likewise.
15300         * modules/unistdio/u8-snprintf: Likewise.
15301         * modules/unistdio/u8-sprintf: Likewise.
15302         * modules/unistdio/u8-u8-asnprintf: Likewise.
15303         * modules/unistdio/u8-u8-asprintf: Likewise.
15304         * modules/unistdio/u8-u8-snprintf: Likewise.
15305         * modules/unistdio/u8-u8-sprintf: Likewise.
15306         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15307         * modules/unistdio/u8-u8-vasprintf: Likewise.
15308         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15309         * modules/unistdio/u8-u8-vsprintf: Likewise.
15310         * modules/unistdio/u8-vasnprintf: Likewise.
15311         * modules/unistdio/u8-vasprintf: Likewise.
15312         * modules/unistdio/u8-vsnprintf: Likewise.
15313         * modules/unistdio/u8-vsprintf: Likewise.
15314         * modules/unistdio/u16-asnprintf: Likewise.
15315         * modules/unistdio/u16-asprintf: Likewise.
15316         * modules/unistdio/u16-snprintf: Likewise.
15317         * modules/unistdio/u16-sprintf: Likewise.
15318         * modules/unistdio/u16-u16-asnprintf: Likewise.
15319         * modules/unistdio/u16-u16-asprintf: Likewise.
15320         * modules/unistdio/u16-u16-snprintf: Likewise.
15321         * modules/unistdio/u16-u16-sprintf: Likewise.
15322         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15323         * modules/unistdio/u16-u16-vasprintf: Likewise.
15324         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15325         * modules/unistdio/u16-u16-vsprintf: Likewise.
15326         * modules/unistdio/u16-vasnprintf: Likewise.
15327         * modules/unistdio/u16-vasprintf: Likewise.
15328         * modules/unistdio/u16-vsnprintf: Likewise.
15329         * modules/unistdio/u16-vsprintf: Likewise.
15330         * modules/unistdio/u32-asnprintf: Likewise.
15331         * modules/unistdio/u32-asprintf: Likewise.
15332         * modules/unistdio/u32-snprintf: Likewise.
15333         * modules/unistdio/u32-sprintf: Likewise.
15334         * modules/unistdio/u32-u32-asnprintf: Likewise.
15335         * modules/unistdio/u32-u32-asprintf: Likewise.
15336         * modules/unistdio/u32-u32-snprintf: Likewise.
15337         * modules/unistdio/u32-u32-sprintf: Likewise.
15338         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15339         * modules/unistdio/u32-u32-vasprintf: Likewise.
15340         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15341         * modules/unistdio/u32-u32-vsprintf: Likewise.
15342         * modules/unistdio/u32-vasnprintf: Likewise.
15343         * modules/unistdio/u32-vasprintf: Likewise.
15344         * modules/unistdio/u32-vsnprintf: Likewise.
15345         * modules/unistdio/u32-vsprintf: Likewise.
15346         * modules/unistdio/ulc-asnprintf: Likewise.
15347         * modules/unistdio/ulc-asprintf: Likewise.
15348         * modules/unistdio/ulc-fprintf: Likewise.
15349         * modules/unistdio/ulc-snprintf: Likewise.
15350         * modules/unistdio/ulc-sprintf: Likewise.
15351         * modules/unistdio/ulc-vasnprintf: Likewise.
15352         * modules/unistdio/ulc-vasprintf: Likewise.
15353         * modules/unistdio/ulc-vfprintf: Likewise.
15354         * modules/unistdio/ulc-vsnprintf: Likewise.
15355         * modules/unistdio/ulc-vsprintf: Likewise.
15356         * modules/unistr/u8-check: Likewise.
15357         * modules/unistr/u8-chr: Likewise.
15358         * modules/unistr/u8-cmp: Likewise.
15359         * modules/unistr/u8-cmp2: Likewise.
15360         * modules/unistr/u8-cpy: Likewise.
15361         * modules/unistr/u8-cpy-alloc: Likewise.
15362         * modules/unistr/u8-endswith: Likewise.
15363         * modules/unistr/u8-mblen: Likewise.
15364         * modules/unistr/u8-mbsnlen: Likewise.
15365         * modules/unistr/u8-mbtouc: Likewise.
15366         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15367         * modules/unistr/u8-mbtoucr: Likewise.
15368         * modules/unistr/u8-move: Likewise.
15369         * modules/unistr/u8-next: Likewise.
15370         * modules/unistr/u8-prev: Likewise.
15371         * modules/unistr/u8-set: Likewise.
15372         * modules/unistr/u8-startswith: Likewise.
15373         * modules/unistr/u8-stpcpy: Likewise.
15374         * modules/unistr/u8-stpncpy: Likewise.
15375         * modules/unistr/u8-strcat: Likewise.
15376         * modules/unistr/u8-strchr: Likewise.
15377         * modules/unistr/u8-strcmp: Likewise.
15378         * modules/unistr/u8-strcoll: Likewise.
15379         * modules/unistr/u8-strcpy: Likewise.
15380         * modules/unistr/u8-strcspn: Likewise.
15381         * modules/unistr/u8-strdup: Likewise.
15382         * modules/unistr/u8-strlen: Likewise.
15383         * modules/unistr/u8-strmblen: Likewise.
15384         * modules/unistr/u8-strmbtouc: Likewise.
15385         * modules/unistr/u8-strncat: Likewise.
15386         * modules/unistr/u8-strncmp: Likewise.
15387         * modules/unistr/u8-strncpy: Likewise.
15388         * modules/unistr/u8-strnlen: Likewise.
15389         * modules/unistr/u8-strpbrk: Likewise.
15390         * modules/unistr/u8-strrchr: Likewise.
15391         * modules/unistr/u8-strspn: Likewise.
15392         * modules/unistr/u8-strstr: Likewise.
15393         * modules/unistr/u8-strtok: Likewise.
15394         * modules/unistr/u8-to-u16: Likewise.
15395         * modules/unistr/u8-to-u32: Likewise.
15396         * modules/unistr/u8-uctomb: Likewise.
15397         * modules/unistr/u16-check: Likewise.
15398         * modules/unistr/u16-chr: Likewise.
15399         * modules/unistr/u16-cmp: Likewise.
15400         * modules/unistr/u16-cmp2: Likewise.
15401         * modules/unistr/u16-cpy: Likewise.
15402         * modules/unistr/u16-cpy-alloc: Likewise.
15403         * modules/unistr/u16-endswith: Likewise.
15404         * modules/unistr/u16-mblen: Likewise.
15405         * modules/unistr/u16-mbsnlen: Likewise.
15406         * modules/unistr/u16-mbtouc: Likewise.
15407         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15408         * modules/unistr/u16-mbtoucr: Likewise.
15409         * modules/unistr/u16-move: Likewise.
15410         * modules/unistr/u16-next: Likewise.
15411         * modules/unistr/u16-prev: Likewise.
15412         * modules/unistr/u16-set: Likewise.
15413         * modules/unistr/u16-startswith: Likewise.
15414         * modules/unistr/u16-stpcpy: Likewise.
15415         * modules/unistr/u16-stpncpy: Likewise.
15416         * modules/unistr/u16-strcat: Likewise.
15417         * modules/unistr/u16-strchr: Likewise.
15418         * modules/unistr/u16-strcmp: Likewise.
15419         * modules/unistr/u16-strcoll: Likewise.
15420         * modules/unistr/u16-strcpy: Likewise.
15421         * modules/unistr/u16-strcspn: Likewise.
15422         * modules/unistr/u16-strdup: Likewise.
15423         * modules/unistr/u16-strlen: Likewise.
15424         * modules/unistr/u16-strmblen: Likewise.
15425         * modules/unistr/u16-strmbtouc: Likewise.
15426         * modules/unistr/u16-strncat: Likewise.
15427         * modules/unistr/u16-strncmp: Likewise.
15428         * modules/unistr/u16-strncpy: Likewise.
15429         * modules/unistr/u16-strnlen: Likewise.
15430         * modules/unistr/u16-strpbrk: Likewise.
15431         * modules/unistr/u16-strrchr: Likewise.
15432         * modules/unistr/u16-strspn: Likewise.
15433         * modules/unistr/u16-strstr: Likewise.
15434         * modules/unistr/u16-strtok: Likewise.
15435         * modules/unistr/u16-to-u32: Likewise.
15436         * modules/unistr/u16-to-u8: Likewise.
15437         * modules/unistr/u16-uctomb: Likewise.
15438         * modules/unistr/u32-check: Likewise.
15439         * modules/unistr/u32-chr: Likewise.
15440         * modules/unistr/u32-cmp: Likewise.
15441         * modules/unistr/u32-cmp2: Likewise.
15442         * modules/unistr/u32-cpy: Likewise.
15443         * modules/unistr/u32-cpy-alloc: Likewise.
15444         * modules/unistr/u32-endswith: Likewise.
15445         * modules/unistr/u32-mblen: Likewise.
15446         * modules/unistr/u32-mbsnlen: Likewise.
15447         * modules/unistr/u32-mbtouc: Likewise.
15448         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15449         * modules/unistr/u32-mbtoucr: Likewise.
15450         * modules/unistr/u32-move: Likewise.
15451         * modules/unistr/u32-next: Likewise.
15452         * modules/unistr/u32-prev: Likewise.
15453         * modules/unistr/u32-set: Likewise.
15454         * modules/unistr/u32-startswith: Likewise.
15455         * modules/unistr/u32-stpcpy: Likewise.
15456         * modules/unistr/u32-stpncpy: Likewise.
15457         * modules/unistr/u32-strcat: Likewise.
15458         * modules/unistr/u32-strchr: Likewise.
15459         * modules/unistr/u32-strcmp: Likewise.
15460         * modules/unistr/u32-strcoll: Likewise.
15461         * modules/unistr/u32-strcpy: Likewise.
15462         * modules/unistr/u32-strcspn: Likewise.
15463         * modules/unistr/u32-strdup: Likewise.
15464         * modules/unistr/u32-strlen: Likewise.
15465         * modules/unistr/u32-strmblen: Likewise.
15466         * modules/unistr/u32-strmbtouc: Likewise.
15467         * modules/unistr/u32-strncat: Likewise.
15468         * modules/unistr/u32-strncmp: Likewise.
15469         * modules/unistr/u32-strncpy: Likewise.
15470         * modules/unistr/u32-strnlen: Likewise.
15471         * modules/unistr/u32-strpbrk: Likewise.
15472         * modules/unistr/u32-strrchr: Likewise.
15473         * modules/unistr/u32-strspn: Likewise.
15474         * modules/unistr/u32-strstr: Likewise.
15475         * modules/unistr/u32-strtok: Likewise.
15476         * modules/unistr/u32-to-u16: Likewise.
15477         * modules/unistr/u32-to-u8: Likewise.
15478         * modules/unistr/u32-uctomb: Likewise.
15479         * modules/uniwbrk/u8-wordbreaks: Likewise.
15480         * modules/uniwbrk/u16-wordbreaks: Likewise.
15481         * modules/uniwbrk/u32-wordbreaks: Likewise.
15482         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15483         * modules/uniwbrk/wordbreak-property: Likewise.
15484         * modules/uniwidth/u8-strwidth: Likewise.
15485         * modules/uniwidth/u8-width: Likewise.
15486         * modules/uniwidth/u16-strwidth: Likewise.
15487         * modules/uniwidth/u16-width: Likewise.
15488         * modules/uniwidth/u32-strwidth: Likewise.
15489         * modules/uniwidth/u32-width: Likewise.
15490         * modules/uniwidth/width: Likewise.
15491         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15492         with $(LIBUNISTRING).
15493         * modules/unicase/ignorable-tests: Likewise.
15494         * modules/unicase/locale-language-tests: Likewise.
15495         * modules/unicase/tolower-tests: Likewise.
15496         * modules/unicase/totitle-tests: Likewise.
15497         * modules/unicase/toupper-tests: Likewise.
15498         * modules/unicase/u8-casecmp-tests: Likewise.
15499         * modules/unicase/u8-casecoll-tests: Likewise.
15500         * modules/unicase/u8-casefold-tests: Likewise.
15501         * modules/unicase/u8-is-cased-tests: Likewise.
15502         * modules/unicase/u8-is-casefolded-tests: Likewise.
15503         * modules/unicase/u8-is-lowercase-tests: Likewise.
15504         * modules/unicase/u8-is-titlecase-tests: Likewise.
15505         * modules/unicase/u8-is-uppercase-tests: Likewise.
15506         * modules/unicase/u8-tolower-tests: Likewise.
15507         * modules/unicase/u8-totitle-tests: Likewise.
15508         * modules/unicase/u8-toupper-tests: Likewise.
15509         * modules/unicase/u16-casecmp-tests: Likewise.
15510         * modules/unicase/u16-casecoll-tests: Likewise.
15511         * modules/unicase/u16-casefold-tests: Likewise.
15512         * modules/unicase/u16-is-cased-tests: Likewise.
15513         * modules/unicase/u16-is-casefolded-tests: Likewise.
15514         * modules/unicase/u16-is-lowercase-tests: Likewise.
15515         * modules/unicase/u16-is-titlecase-tests: Likewise.
15516         * modules/unicase/u16-is-uppercase-tests: Likewise.
15517         * modules/unicase/u16-tolower-tests: Likewise.
15518         * modules/unicase/u16-totitle-tests: Likewise.
15519         * modules/unicase/u16-toupper-tests: Likewise.
15520         * modules/unicase/u32-casecmp-tests: Likewise.
15521         * modules/unicase/u32-casecoll-tests: Likewise.
15522         * modules/unicase/u32-casefold-tests: Likewise.
15523         * modules/unicase/u32-is-cased-tests: Likewise.
15524         * modules/unicase/u32-is-casefolded-tests: Likewise.
15525         * modules/unicase/u32-is-lowercase-tests: Likewise.
15526         * modules/unicase/u32-is-titlecase-tests: Likewise.
15527         * modules/unicase/u32-is-uppercase-tests: Likewise.
15528         * modules/unicase/u32-tolower-tests: Likewise.
15529         * modules/unicase/u32-totitle-tests: Likewise.
15530         * modules/unicase/u32-toupper-tests: Likewise.
15531         * modules/unicase/ulc-casecmp-tests: Likewise.
15532         * modules/unicase/ulc-casecoll-tests: Likewise.
15533         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15534         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15535         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15536         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15537         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15538         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15539         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15540         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15541         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15542         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15543         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15544         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15545         * modules/unictype/bidicategory-byname-tests: Likewise.
15546         * modules/unictype/bidicategory-name-tests: Likewise.
15547         * modules/unictype/bidicategory-of-tests: Likewise.
15548         * modules/unictype/bidicategory-test-tests: Likewise.
15549         * modules/unictype/block-list-tests: Likewise.
15550         * modules/unictype/block-of-tests: Likewise.
15551         * modules/unictype/block-test-tests: Likewise.
15552         * modules/unictype/category-C-tests: Likewise.
15553         * modules/unictype/category-Cc-tests: Likewise.
15554         * modules/unictype/category-Cf-tests: Likewise.
15555         * modules/unictype/category-Cn-tests: Likewise.
15556         * modules/unictype/category-Co-tests: Likewise.
15557         * modules/unictype/category-Cs-tests: Likewise.
15558         * modules/unictype/category-L-tests: Likewise.
15559         * modules/unictype/category-Ll-tests: Likewise.
15560         * modules/unictype/category-Lm-tests: Likewise.
15561         * modules/unictype/category-Lo-tests: Likewise.
15562         * modules/unictype/category-Lt-tests: Likewise.
15563         * modules/unictype/category-Lu-tests: Likewise.
15564         * modules/unictype/category-M-tests: Likewise.
15565         * modules/unictype/category-Mc-tests: Likewise.
15566         * modules/unictype/category-Me-tests: Likewise.
15567         * modules/unictype/category-Mn-tests: Likewise.
15568         * modules/unictype/category-N-tests: Likewise.
15569         * modules/unictype/category-Nd-tests: Likewise.
15570         * modules/unictype/category-Nl-tests: Likewise.
15571         * modules/unictype/category-No-tests: Likewise.
15572         * modules/unictype/category-P-tests: Likewise.
15573         * modules/unictype/category-Pc-tests: Likewise.
15574         * modules/unictype/category-Pd-tests: Likewise.
15575         * modules/unictype/category-Pe-tests: Likewise.
15576         * modules/unictype/category-Pf-tests: Likewise.
15577         * modules/unictype/category-Pi-tests: Likewise.
15578         * modules/unictype/category-Po-tests: Likewise.
15579         * modules/unictype/category-Ps-tests: Likewise.
15580         * modules/unictype/category-S-tests: Likewise.
15581         * modules/unictype/category-Sc-tests: Likewise.
15582         * modules/unictype/category-Sk-tests: Likewise.
15583         * modules/unictype/category-Sm-tests: Likewise.
15584         * modules/unictype/category-So-tests: Likewise.
15585         * modules/unictype/category-Z-tests: Likewise.
15586         * modules/unictype/category-Zl-tests: Likewise.
15587         * modules/unictype/category-Zp-tests: Likewise.
15588         * modules/unictype/category-Zs-tests: Likewise.
15589         * modules/unictype/category-and-not-tests: Likewise.
15590         * modules/unictype/category-and-tests: Likewise.
15591         * modules/unictype/category-byname-tests: Likewise.
15592         * modules/unictype/category-name-tests: Likewise.
15593         * modules/unictype/category-none-tests: Likewise.
15594         * modules/unictype/category-of-tests: Likewise.
15595         * modules/unictype/category-or-tests: Likewise.
15596         * modules/unictype/category-test-withtable-tests: Likewise.
15597         * modules/unictype/combining-class-tests: Likewise.
15598         * modules/unictype/ctype-alnum-tests: Likewise.
15599         * modules/unictype/ctype-alpha-tests: Likewise.
15600         * modules/unictype/ctype-blank-tests: Likewise.
15601         * modules/unictype/ctype-cntrl-tests: Likewise.
15602         * modules/unictype/ctype-digit-tests: Likewise.
15603         * modules/unictype/ctype-graph-tests: Likewise.
15604         * modules/unictype/ctype-lower-tests: Likewise.
15605         * modules/unictype/ctype-print-tests: Likewise.
15606         * modules/unictype/ctype-punct-tests: Likewise.
15607         * modules/unictype/ctype-space-tests: Likewise.
15608         * modules/unictype/ctype-upper-tests: Likewise.
15609         * modules/unictype/ctype-xdigit-tests: Likewise.
15610         * modules/unictype/decimal-digit-tests: Likewise.
15611         * modules/unictype/digit-tests: Likewise.
15612         * modules/unictype/mirror-tests: Likewise.
15613         * modules/unictype/numeric-tests: Likewise.
15614         * modules/unictype/property-alphabetic-tests: Likewise.
15615         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15616         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15617         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15618         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15619         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15620         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15621         * modules/unictype/property-bidi-control-tests: Likewise.
15622         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15623         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15624         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15625         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15626         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15627         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15628         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15629         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15630         * modules/unictype/property-bidi-pdf-tests: Likewise.
15631         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15632         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15633         * modules/unictype/property-byname-tests: Likewise.
15634         * modules/unictype/property-combining-tests: Likewise.
15635         * modules/unictype/property-composite-tests: Likewise.
15636         * modules/unictype/property-currency-symbol-tests: Likewise.
15637         * modules/unictype/property-dash-tests: Likewise.
15638         * modules/unictype/property-decimal-digit-tests: Likewise.
15639         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15640         * modules/unictype/property-deprecated-tests: Likewise.
15641         * modules/unictype/property-diacritic-tests: Likewise.
15642         * modules/unictype/property-extender-tests: Likewise.
15643         * modules/unictype/property-format-control-tests: Likewise.
15644         * modules/unictype/property-grapheme-base-tests: Likewise.
15645         * modules/unictype/property-grapheme-extend-tests: Likewise.
15646         * modules/unictype/property-grapheme-link-tests: Likewise.
15647         * modules/unictype/property-hex-digit-tests: Likewise.
15648         * modules/unictype/property-hyphen-tests: Likewise.
15649         * modules/unictype/property-id-continue-tests: Likewise.
15650         * modules/unictype/property-id-start-tests: Likewise.
15651         * modules/unictype/property-ideographic-tests: Likewise.
15652         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15653         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15654         * modules/unictype/property-ignorable-control-tests: Likewise.
15655         * modules/unictype/property-iso-control-tests: Likewise.
15656         * modules/unictype/property-join-control-tests: Likewise.
15657         * modules/unictype/property-left-of-pair-tests: Likewise.
15658         * modules/unictype/property-line-separator-tests: Likewise.
15659         * modules/unictype/property-logical-order-exception-tests: Likewise.
15660         * modules/unictype/property-lowercase-tests: Likewise.
15661         * modules/unictype/property-math-tests: Likewise.
15662         * modules/unictype/property-non-break-tests: Likewise.
15663         * modules/unictype/property-not-a-character-tests: Likewise.
15664         * modules/unictype/property-numeric-tests: Likewise.
15665         * modules/unictype/property-other-alphabetic-tests: Likewise.
15666         * modules/unictype/property-other-default-ignorable-code-point-tests:
15667         Likewise.
15668         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15669         * modules/unictype/property-other-id-continue-tests: Likewise.
15670         * modules/unictype/property-other-id-start-tests: Likewise.
15671         * modules/unictype/property-other-lowercase-tests: Likewise.
15672         * modules/unictype/property-other-math-tests: Likewise.
15673         * modules/unictype/property-other-uppercase-tests: Likewise.
15674         * modules/unictype/property-paired-punctuation-tests: Likewise.
15675         * modules/unictype/property-paragraph-separator-tests: Likewise.
15676         * modules/unictype/property-pattern-syntax-tests: Likewise.
15677         * modules/unictype/property-pattern-white-space-tests: Likewise.
15678         * modules/unictype/property-private-use-tests: Likewise.
15679         * modules/unictype/property-punctuation-tests: Likewise.
15680         * modules/unictype/property-quotation-mark-tests: Likewise.
15681         * modules/unictype/property-radical-tests: Likewise.
15682         * modules/unictype/property-sentence-terminal-tests: Likewise.
15683         * modules/unictype/property-soft-dotted-tests: Likewise.
15684         * modules/unictype/property-space-tests: Likewise.
15685         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15686         * modules/unictype/property-test-tests: Likewise.
15687         * modules/unictype/property-titlecase-tests: Likewise.
15688         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15689         * modules/unictype/property-unified-ideograph-tests: Likewise.
15690         * modules/unictype/property-uppercase-tests: Likewise.
15691         * modules/unictype/property-variation-selector-tests: Likewise.
15692         * modules/unictype/property-white-space-tests: Likewise.
15693         * modules/unictype/property-xid-continue-tests: Likewise.
15694         * modules/unictype/property-xid-start-tests: Likewise.
15695         * modules/unictype/property-zero-width-tests: Likewise.
15696         * modules/unictype/scripts-tests: Likewise.
15697         * modules/unictype/syntax-c-ident-tests: Likewise.
15698         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15699         * modules/unictype/syntax-java-ident-tests: Likewise.
15700         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15701         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15702         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15703         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15704         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15705         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15706         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15707         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15708         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15709         * modules/uniname/uniname-tests: Likewise.
15710         * modules/uninorm/canonical-decomposition-tests: Likewise.
15711         * modules/uninorm/compat-decomposition-tests: Likewise.
15712         * modules/uninorm/composition-tests: Likewise.
15713         * modules/uninorm/decomposing-form-tests: Likewise.
15714         * modules/uninorm/decomposition-tests: Likewise.
15715         * modules/uninorm/filter-tests: Likewise.
15716         * modules/uninorm/nfc-tests: Likewise.
15717         * modules/uninorm/nfd-tests: Likewise.
15718         * modules/uninorm/nfkc-tests: Likewise.
15719         * modules/uninorm/nfkd-tests: Likewise.
15720         * modules/uninorm/u8-normcmp-tests: Likewise.
15721         * modules/uninorm/u8-normcoll-tests: Likewise.
15722         * modules/uninorm/u16-normcmp-tests: Likewise.
15723         * modules/uninorm/u16-normcoll-tests: Likewise.
15724         * modules/uninorm/u32-normcmp-tests: Likewise.
15725         * modules/uninorm/u32-normcoll-tests: Likewise.
15726         * modules/unistdio/u8-asnprintf-tests: Likewise.
15727         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15728         * modules/unistdio/u8-vasprintf-tests: Likewise.
15729         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15730         * modules/unistdio/u8-vsprintf-tests: Likewise.
15731         * modules/unistdio/u16-asnprintf-tests: Likewise.
15732         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15733         * modules/unistdio/u16-vasprintf-tests: Likewise.
15734         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15735         * modules/unistdio/u16-vsprintf-tests: Likewise.
15736         * modules/unistdio/u32-asnprintf-tests: Likewise.
15737         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15738         * modules/unistdio/u32-vasprintf-tests: Likewise.
15739         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15740         * modules/unistdio/u32-vsprintf-tests: Likewise.
15741         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15742         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15743         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15744         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15745         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15746         * modules/unistr/u8-check-tests: Likewise.
15747         * modules/unistr/u8-chr-tests: Likewise.
15748         * modules/unistr/u8-cmp-tests: Likewise.
15749         * modules/unistr/u8-cmp2-tests: Likewise.
15750         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15751         * modules/unistr/u8-cpy-tests: Likewise.
15752         * modules/unistr/u8-mblen-tests: Likewise.
15753         * modules/unistr/u8-mbsnlen-tests: Likewise.
15754         * modules/unistr/u8-mbtouc-tests: Likewise.
15755         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15756         * modules/unistr/u8-mbtoucr-tests: Likewise.
15757         * modules/unistr/u8-move-tests: Likewise.
15758         * modules/unistr/u8-next-tests: Likewise.
15759         * modules/unistr/u8-prev-tests: Likewise.
15760         * modules/unistr/u8-set-tests: Likewise.
15761         * modules/unistr/u8-stpcpy-tests: Likewise.
15762         * modules/unistr/u8-stpncpy-tests: Likewise.
15763         * modules/unistr/u8-strcat-tests: Likewise.
15764         * modules/unistr/u8-strcmp-tests: Likewise.
15765         * modules/unistr/u8-strcoll-tests: Likewise.
15766         * modules/unistr/u8-strcpy-tests: Likewise.
15767         * modules/unistr/u8-strdup-tests: Likewise.
15768         * modules/unistr/u8-strlen-tests: Likewise.
15769         * modules/unistr/u8-strmblen-tests: Likewise.
15770         * modules/unistr/u8-strmbtouc-tests: Likewise.
15771         * modules/unistr/u8-strncat-tests: Likewise.
15772         * modules/unistr/u8-strncmp-tests: Likewise.
15773         * modules/unistr/u8-strncpy-tests: Likewise.
15774         * modules/unistr/u8-strnlen-tests: Likewise.
15775         * modules/unistr/u8-to-u16-tests: Likewise.
15776         * modules/unistr/u8-to-u32-tests: Likewise.
15777         * modules/unistr/u8-uctomb-tests: Likewise.
15778         * modules/unistr/u16-check-tests: Likewise.
15779         * modules/unistr/u16-chr-tests: Likewise.
15780         * modules/unistr/u16-cmp-tests: Likewise.
15781         * modules/unistr/u16-cmp2-tests: Likewise.
15782         * modules/unistr/u16-cpy-alloc-tests: Likewise.
15783         * modules/unistr/u16-cpy-tests: Likewise.
15784         * modules/unistr/u16-mblen-tests: Likewise.
15785         * modules/unistr/u16-mbsnlen-tests: Likewise.
15786         * modules/unistr/u16-mbtouc-tests: Likewise.
15787         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
15788         * modules/unistr/u16-mbtoucr-tests: Likewise.
15789         * modules/unistr/u16-move-tests: Likewise.
15790         * modules/unistr/u16-next-tests: Likewise.
15791         * modules/unistr/u16-prev-tests: Likewise.
15792         * modules/unistr/u16-set-tests: Likewise.
15793         * modules/unistr/u16-stpcpy-tests: Likewise.
15794         * modules/unistr/u16-stpncpy-tests: Likewise.
15795         * modules/unistr/u16-strcat-tests: Likewise.
15796         * modules/unistr/u16-strcmp-tests: Likewise.
15797         * modules/unistr/u16-strcoll-tests: Likewise.
15798         * modules/unistr/u16-strcpy-tests: Likewise.
15799         * modules/unistr/u16-strdup-tests: Likewise.
15800         * modules/unistr/u16-strlen-tests: Likewise.
15801         * modules/unistr/u16-strmblen-tests: Likewise.
15802         * modules/unistr/u16-strmbtouc-tests: Likewise.
15803         * modules/unistr/u16-strncat-tests: Likewise.
15804         * modules/unistr/u16-strncmp-tests: Likewise.
15805         * modules/unistr/u16-strncpy-tests: Likewise.
15806         * modules/unistr/u16-strnlen-tests: Likewise.
15807         * modules/unistr/u16-to-u32-tests: Likewise.
15808         * modules/unistr/u16-to-u8-tests: Likewise.
15809         * modules/unistr/u16-uctomb-tests: Likewise.
15810         * modules/unistr/u32-check-tests: Likewise.
15811         * modules/unistr/u32-chr-tests: Likewise.
15812         * modules/unistr/u32-cmp-tests: Likewise.
15813         * modules/unistr/u32-cmp2-tests: Likewise.
15814         * modules/unistr/u32-cpy-alloc-tests: Likewise.
15815         * modules/unistr/u32-cpy-tests: Likewise.
15816         * modules/unistr/u32-mblen-tests: Likewise.
15817         * modules/unistr/u32-mbsnlen-tests: Likewise.
15818         * modules/unistr/u32-mbtouc-tests: Likewise.
15819         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
15820         * modules/unistr/u32-mbtoucr-tests: Likewise.
15821         * modules/unistr/u32-move-tests: Likewise.
15822         * modules/unistr/u32-next-tests: Likewise.
15823         * modules/unistr/u32-prev-tests: Likewise.
15824         * modules/unistr/u32-set-tests: Likewise.
15825         * modules/unistr/u32-stpcpy-tests: Likewise.
15826         * modules/unistr/u32-stpncpy-tests: Likewise.
15827         * modules/unistr/u32-strcat-tests: Likewise.
15828         * modules/unistr/u32-strcmp-tests: Likewise.
15829         * modules/unistr/u32-strcoll-tests: Likewise.
15830         * modules/unistr/u32-strcpy-tests: Likewise.
15831         * modules/unistr/u32-strdup-tests: Likewise.
15832         * modules/unistr/u32-strlen-tests: Likewise.
15833         * modules/unistr/u32-strmblen-tests: Likewise.
15834         * modules/unistr/u32-strmbtouc-tests: Likewise.
15835         * modules/unistr/u32-strncat-tests: Likewise.
15836         * modules/unistr/u32-strncmp-tests: Likewise.
15837         * modules/unistr/u32-strncpy-tests: Likewise.
15838         * modules/unistr/u32-strnlen-tests: Likewise.
15839         * modules/unistr/u32-to-u16-tests: Likewise.
15840         * modules/unistr/u32-to-u8-tests: Likewise.
15841         * modules/unistr/u32-uctomb-tests: Likewise.
15842         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
15843         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
15844         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
15845         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
15846         * modules/uniwidth/u8-strwidth-tests: Likewise.
15847         * modules/uniwidth/u8-width-tests: Likewise.
15848         * modules/uniwidth/u16-strwidth-tests: Likewise.
15849         * modules/uniwidth/u16-width-tests: Likewise.
15850         * modules/uniwidth/u32-strwidth-tests: Likewise.
15851         * modules/uniwidth/u32-width-tests: Likewise.
15852         * modules/uniwidth/width-tests: Likewise.
15853
15854 2010-05-18  Richard Jones  <rjones@redhat.com>
15855
15856         doc: users.txt: list hivex
15857         * users.txt: Add hivex.
15858
15859 2010-05-18  Richard Jones  <rjones@redhat.com>
15860
15861         doc: users.txt: list febootstrap
15862         * users.txt: Add febootstrap.
15863
15864 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
15865
15866         bootstrap: fix an error when gnulib is not used as a git submodule
15867         * build-aux/bootstrap (gnulib_path): If its length is zero then
15868         assign "gnulib" to it.
15869         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
15870
15871 2010-05-16  Bruno Haible  <bruno@clisp.org>
15872
15873         Avoid autoconf warnings about AM_ICONV.
15874         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
15875         2.64.
15876
15877 2010-05-16  Bruno Haible  <bruno@clisp.org>
15878
15879         absolute-header: Make the macro usable in more situations.
15880         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
15881         from gl_ABSOLUTE_HEADER.
15882         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
15883
15884 2010-05-16  James Youngman  <jay@gnu.org>
15885
15886         doc: update users.txt
15887         * users.txt: Add CSSC.
15888
15889 2010-05-16  Jim Meyering  <meyering@redhat.com>
15890
15891         init.sh: fix an error in the previous change; add more comments
15892         * tests/init.sh: Compare exit code in loop against 9, not 2.
15893         Patch by Bruno Haible.
15894         Make the two tests more similar by adding an empty "then" clause.
15895         Add comments.
15896
15897         init.sh: avoid unnecessary shell re-exec
15898         * tests/init.sh: Improve the re-exec-required check to first test the
15899         current shell.  If it passes the test, do not search for a shell that
15900         does pass, and do not re-exec.  This test is particularly contorted to
15901         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
15902         of $(...) evokes a syntax error and causes immediate shell exit with
15903         status 2.  Bruno Haible reported that the re-exec made it impossible
15904         to single-step through any init.sh-using script.
15905
15906 2010-05-16  Bruno Haible  <bruno@clisp.org>
15907
15908         Fix collision between gnulib's and libintl's printf replacements.
15909         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
15910         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
15911         (printf): When using GNU C, map the __printf__ function to rpl_printf
15912         via __asm__. When not using GNU C, define rpl_printf instead of
15913         __printf__.
15914         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
15915         commit.
15916         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
15917         commit.
15918         * m4/asm-underscore.m4: New file.
15919         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
15920         * modules/stdio (Files): Add m4/asm-underscore.m4.
15921         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
15922         Reported by Ben Pfaff.
15923
15924 2010-05-16  Bruno Haible  <bruno@clisp.org>
15925
15926         verify: Avoid skipping the test on openSUSE 11.0.
15927         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
15928
15929 2010-05-13  Bruno Haible  <bruno@clisp.org>
15930
15931         Avoid useless warnings from G++.
15932         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
15933         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
15934         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15935
15936 2010-05-11  Jim Meyering  <meyering@redhat.com>
15937
15938         maint.mk: tweak preceding change
15939         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
15940         regexps tighter by anchoring at EOL, and make the new group "shy"
15941         for slightly decreased overhead.
15942
15943 2010-05-11  Eric Blake  <eblake@redhat.com>
15944
15945         maint.mk: gnulib doesn't guarantee NSIG
15946         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
15947
15948 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15949
15950         test-pwrite.c: Remove unused variable declaration.
15951         * tests/test-pwrite.c (main): Remove read_buf declaration.
15952
15953         Remove useless test-pwrite.sh file.
15954         * tests/test-pwrite.sh: Delete file.
15955         * modules/pwrite-tests: Remove references.
15956         Reported by Bruno Haible.
15957
15958 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15959
15960         init.sh: fix a typo
15961         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15962
15963 2010-05-10  Jim Meyering  <meyering@redhat.com>
15964
15965         maint.mk: avoid using a temporary file in the always-defined-macros check
15966         * top/maint.mk (.re-defmac): Remove rule.
15967         (gl_trap_): Remove definition.
15968         (sc_prohibit_always-defined_macros): Rewrite not to create and
15969         depend on a temporary file.  Instead, depend on GNU grep's ability
15970         to read a list of regular expressions from stdin when given "-f -".
15971
15972 2010-05-09  Bruno Haible  <bruno@clisp.org>
15973
15974         Update to GNU gettext 0.18, part 1.
15975         * m4/gettext.m4: Update to GNU gettext 0.18.
15976         * m4/intl.m4: Likewise.
15977         * m4/po.m4: Likewise.
15978         * modules/gettext (Files): Add m4/fcntl-o.m4.
15979         (configure.ac): Require gettext infrastructure from version 0.18.
15980
15981 2010-05-09  Jim Meyering  <meyering@redhat.com>
15982
15983         init.sh: enable MALLOC_PERTURB_
15984         * tests/init.sh: Enable glibc's malloc-perturbing option.
15985
15986         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15987         With my recent change in init.sh from the two-line form:
15988             -#   : ${srcdir=.}
15989             -#   . "$srcdir/init.sh"; path_prepend_ .
15990             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15991         I noticed that using the one-line form would cause this test
15992         to fail with a false-positive, or to stop working altogether,
15993         depending on whether help-version changed or all the tests did.
15994         * top/maint.mk (_hv_regex): Remove this definition.
15995         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
15996         (_hv_regex_strong): Use a stronger regex to check for conformance.
15997         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
15998         Give a separate diagnostic for lack of conforming use.
15999
16000         maint.mk: prohibit definition of symbols defined by gnulib
16001         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
16002         definition of symbols defined by gnulib.
16003
16004 2010-05-09  Bruno Haible  <bruno@clisp.org>
16005
16006         acl: Avoid test failure on Cygwin-hosted mingw.
16007         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
16008
16009 2010-05-09  Bruno Haible  <bruno@clisp.org>
16010
16011         error: Use system's fcntl function.
16012         * lib/error.c (fcntl): Undefine.
16013
16014 2010-05-09  Jim Meyering  <meyering@redhat.com>
16015
16016         verify: adjust formatting to be more consistent
16017         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
16018         argument-list '('s, and after one comma.
16019
16020 2010-05-09  Bruno Haible  <bruno@clisp.org>
16021
16022         error: More reliable output on mingw.
16023         * lib/error.c: Include <windows.h>.
16024         (is_open): New function.
16025         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
16026         defined.
16027
16028 2010-05-09  Bruno Haible  <bruno@clisp.org>
16029
16030         vasnprintf: Fix syntax errors in libintl build on mingw.
16031         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
16032         pad_ourselves and prec_ourselves after use.
16033
16034 2010-05-08  Bruno Haible  <bruno@clisp.org>
16035
16036         * lib/config.charset: Update comments for Cygwin 1.7.
16037         * lib/localcharset.c: Likewise.
16038
16039 2010-05-07  Jim Meyering  <meyering@redhat.com>
16040
16041         init.sh: improve comments
16042         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
16043         . "${srcdir=.}/init.sh"; path_prepend_ .
16044         Add a note about path_prepend_ and the alternative of using
16045         TESTS_ENVIRONMENT.
16046
16047 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16048
16049         exclude: Unescape hashed patterns in wildcard mode.
16050         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16051         to the hash list.
16052         * tests/test-exclude8.sh: New test case.
16053         * modules/exclude-tests: Add new test.
16054
16055 2010-05-05  Eric Blake  <eblake@redhat.com>
16056
16057         verify: automate tests
16058         * modules/verify-tests: New module.
16059         * tests/test-verify.sh: New file.
16060         * tests/test-verify.c: Guard each negative test with a unique id.
16061         Also avoid warning about unused left hand of comma expressions.
16062
16063 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16064
16065         Further improvements to verify.h, suggested by Eric Blake.
16066         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
16067         the GL_* versions, to avoid collision with OpenGL.
16068         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
16069         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
16070         than testing merely whether it's defined.
16071
16072         Modify verify.h to pacify gcc -Wredundant_decls.
16073         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
16074         These use the prefix "GL_" since they're likely to be useful elsewhere.
16075         We may need to break them out into a different .h file.
16076         (__COUNTER__): Define to 0 if the compiler doesn't support it.
16077         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
16078         of verify_function__.
16079
16080 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16081
16082         Tests for module pwrite.
16083         * modules/pwrite-tests: New file.
16084         * tests/test-pwrite.sh: New file.
16085         * tests/test-pwrite.c: New file.
16086
16087         New module pwrite.
16088         * lib/unistd.in.h (pwrite): New declaration.
16089         * lib/pwrite.c: New file, from glibc with modifications.
16090         * m4/pwrite.m4: New file.
16091         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16092         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16093         REPLACE_PWRITE.
16094         * modules/pwrite: New file.
16095         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16096         REPLACE_PWRITE.
16097         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16098         * doc/posix-functions/pwrite.texi: Mention the new module.
16099
16100 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16101
16102         pread: Update documentation.
16103         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16104
16105 2010-05-04  Eric Blake  <eblake@redhat.com>
16106
16107         docs: update cygwin progress
16108         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16109         this bug.
16110         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16111         Added in cygwin 1.7.2.
16112         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16113         Likewise.
16114         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16115         Likewise.
16116         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16117         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16118         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16119         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16120         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16121         Mention nproc module.
16122         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16123         bug in cygwin 1.7.5 addition.
16124         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16125         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16126         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16127         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16128         1.7.5.
16129         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16130         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16131         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16132         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16133         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16134         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16135         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16136         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16137         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16138         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16139         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16140         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16141         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16142         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16143         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16144         Likewise.
16145         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16146         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16147         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16148         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16149         Likewise.
16150         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16151         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16152         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16153         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16154         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16155         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16156         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16157         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16158         Likewise.
16159         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16160         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16161         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16162         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16163         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16164         Likewise.
16165         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16166         Likewise.
16167         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16168         Likewise.
16169         * doc/glibc-functions/xdrrec_endofrecord.texi
16170         (xdrrec_endofrecord): Likewise.
16171         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16172         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16173         Likewise.
16174         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16175         Likewise.
16176
16177 2010-05-04  Jim Meyering  <meyering@redhat.com>
16178
16179         gendocs.sh: make its "-s FILE" option more useful
16180         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16181         $PACKAGE to reflect the probably-different basename of "FILE".
16182
16183 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16184
16185         bootstrap: don't ignore download_po_files failure
16186         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16187         failure.
16188
16189 2010-05-03  Jim Meyering  <meyering@redhat.com>
16190
16191         maint.mk: allow to pass options to gendocs.sh
16192         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16193         (gendocs_options_): New overridable variable.
16194
16195         gnu-web-doc-update: don't ignore configure or build failure
16196         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16197
16198         announce-gen: backslash-escape '@'s in --help output
16199         * build-aux/announce-gen: Fix syntax errors.
16200
16201         maint.mk, announce-gen: allow project-specific announcement mail headers
16202         * top/maint.mk (translation_project_): Define default.
16203         (announcement_Cc_, announcement_mail_headers_): Likewise.
16204         (announcement): Invoke announce-gen with new --mail-headers option.
16205         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16206
16207         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16208         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16209         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16210         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16211         line in the "err2" output file when running "make check" in verbose
16212         mode (i.e., with set -x enabled).
16213
16214 2010-05-03  Bruno Haible  <bruno@clisp.org>
16215
16216         wctob: Fix for weird platforms.
16217         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16218         argument value.
16219
16220 2010-05-03  Jim Meyering  <meyering@redhat.com>
16221
16222         maint.mk: prohibit unwarranted use of <strings.h>
16223         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16224         strings.h in a file that does not also use strcasecmp, strncasecmp,
16225         ffs or ffsll.
16226
16227         maint.mk: remove obsolete comments
16228         * top/maint.mk: Remove stale, commented-out rules.
16229
16230 2010-05-02  Bruno Haible  <bruno@clisp.org>
16231
16232         wcwidth: Declare also when it's aliased.
16233         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16234         macro.
16235
16236 2010-05-02  Bruno Haible  <bruno@clisp.org>
16237
16238         Fix regression from 2010-04-25.
16239         * gnulib-tool (func_modules_transitive_closure): Check the status of
16240         all modules, not only of the tests that are of the form foo-tests where
16241         foo is a module.
16242
16243 2010-05-02  Bruno Haible  <bruno@clisp.org>
16244
16245         wctob: Work around nasty Cygwin 1.7.2 bug.
16246         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16247         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16248
16249 2010-05-01  Bruno Haible  <bruno@clisp.org>
16250
16251         fpurge: Sharper test.
16252         * tests/test-fpurge.c (main): Add one more ftell check.
16253         * modules/fpurge-tests (Depends-on): Add ftell.
16254         Suggested by Eric Blake.
16255
16256 2010-05-01  Bruno Haible  <bruno@clisp.org>
16257
16258         ftello: Another test.
16259         * tests/test-ftello3.c: New file.
16260         * modules/ftello-tests (Files): Add it.
16261         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16262         MOSTLYCLEANFILES.
16263
16264         ftell: Another test.
16265         * tests/test-ftell3.c: New file.
16266         * modules/ftell-tests (Files): Add it.
16267         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16268         MOSTLYCLEANFILES.
16269
16270 2010-05-01  Bruno Haible  <bruno@clisp.org>
16271
16272         ftell, ftello: Work around Solaris bug.
16273         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16274         * lib/ftello.c: Include stdio-impl.h.
16275         (ftello): On Solaris, when _IOWRT is set, compute the result without
16276         looking at _IOREAD.
16277         * modules/ftello (Files): Add lib/stdio-impl.h.
16278         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16279         * doc/posix-functions/ftello.texi: Likewise.
16280         Reported by Eric Blake.
16281
16282 2010-05-01  Bruno Haible  <bruno@clisp.org>
16283
16284         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16285         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16286         the _IOWRT flag is also set.
16287
16288 2010-05-01  Bruno Haible  <bruno@clisp.org>
16289
16290         Fix doc about a HP-UX stdio bug.
16291         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16292         * doc/posix-functions/ftello.texi: Likewise.
16293
16294 2010-05-01  Bruno Haible  <bruno@clisp.org>
16295
16296         lseek test: Fix failure on Solaris.
16297         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16298         output.
16299
16300 2010-04-30  Jim Meyering  <meyering@redhat.com>
16301
16302         bootstrap: don't ignore failure to generate po*/Makevars
16303         * build-aux/bootstrap (with_gettext): Don't ignore failure
16304         to create po/Makevars or runtime-po/Makevars.
16305
16306 2010-04-29  Eric Blake  <eblake@redhat.com>
16307
16308         headers: relax license to LGPLv2+
16309         * modules/fcntl-h (License): Relax license.
16310         * modules/getopt-posix (License): Likewise.
16311         * modules/locale (License): Likewise.
16312         * modules/math (License): Likewise.
16313         * modules/pty (License): Likewise.
16314         * modules/sched (License): Likewise.
16315         * modules/search (License): Likewise.
16316         * modules/spawn (License): Likewise.
16317         * modules/stdarg (License): Likewise.
16318         * modules/sysexits (License): Likewise.
16319
16320 2010-04-29  Jim Meyering  <meyering@redhat.com>
16321
16322         inttypes: relax license to LGPLv2+
16323         * modules/inttypes (License): Relax license.
16324
16325 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16326
16327         * top/maint.mk (indent): Run twice to produce idempotent results.
16328
16329 2010-04-28  Bruno Haible  <bruno@clisp.org>
16330
16331         getdate: Generate getdate.c in the source directory.
16332         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16333         MOSTLYCLEANFILES.
16334         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16335
16336 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16337
16338         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16339         is not declared as a const *; avoid warnings in that case.
16340
16341 2010-04-28  Eric Blake  <eblake@redhat.com>
16342
16343         canonicalize-lgpl: avoid compiler warning
16344         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16345         declaration' / 'extraneous semicolon' warning with some compilers.
16346         Reported by Andreas Gruenbacher.
16347
16348 2010-04-28  Jim Meyering  <meyering@redhat.com>
16349
16350         init.sh: ensure a more reliable exit status when exiting via trap
16351         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16352         Inspired by patches from Dmitry V. Levin.
16353         Also trap on signal 3 (SIGQUIT).
16354
16355 2010-04-27  Bruno Haible  <bruno@clisp.org>
16356
16357         Update doc about utimes().
16358         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16359         'utimens' module.
16360         Reported by Andreas Gruenbacher <agruen@suse.de>.
16361
16362 2010-04-27  Eric Blake  <eblake@redhat.com>
16363
16364         full-read, full-write: relax license
16365         * modules/full-read (License): Drop to LGPLv2+.
16366         * modules/full-write (License): Likewise.
16367         * modules/safe-read (License): Likewise.
16368         * modules/safe-write (License): Likewise.
16369
16370         pthread: mention library for linking
16371         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16372
16373 2010-04-27  Jim Meyering  <meyering@redhat.com>
16374
16375         maint.mk: fix a bug introduced in last change
16376         * top/maint.mk (gl_assured_headers_): Now that all names are on
16377         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16378         is not anchored to end of word, it should be adequate.
16379
16380         maint.mk: avoid side-effect in latest syntax-check
16381         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16382         to run commands via $(shell...), and hence to incur cost only when
16383         the new rule is actually run.
16384
16385         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16386         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16387         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16388         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16389         (gl_assured_headers_, az_, AZ_): Define.
16390         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16391
16392 2010-04-26  Jim Meyering  <jim@meyering.net>
16393             Bruno Haible  <bruno@clisp.org>
16394
16395         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16396         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16397         Prompted by an exchange with Gilles Espinasse.
16398
16399 2010-04-26  Jim Meyering  <meyering@redhat.com>
16400
16401         git-version-gen: aesthetic tweak
16402         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16403         so that the command remains on a single line.
16404
16405 2010-04-26  Eric Blake  <eblake@redhat.com>
16406
16407         git-version-gen: allow use on EBCDIC hosts
16408         * build-aux/git-version-gen (dirty): Use literal rather than tying
16409         ourselves to ascii.
16410         Reported by Steve Goetze.
16411
16412 2010-04-25  Bruno Haible  <bruno@clisp.org>
16413
16414         netdb: Add support for GNULIB_POSIXCHECK.
16415         * lib/netdb.in.h: Include warn-on-use.h.
16416         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16417         functions are used when GNULIB_POSIXCHECK is defined and the
16418         getaddrinfo module is not in use.
16419         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16420         freeaddrinfo, gai_strerror, getnameinfo are declared.
16421         * modules/netdb (Depends-on): Add warn-on-use.
16422         (Makefile.am): Include warn-on-use.h in netdb.h.
16423
16424 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16425
16426         build: avoid "make check" failure without .git/ directory
16427         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16428         there is no .git/ directory.
16429
16430 2010-04-25  Bruno Haible  <bruno@clisp.org>
16431
16432         ptsname: Fix misuse of ttyname_r.
16433         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16434         of errno.
16435
16436 2010-04-25  Bruno Haible  <bruno@clisp.org>
16437
16438         ttyname_r: Make it work on Solaris 10.
16439         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16440         if the system function has the POSIX declaration. Test whether the
16441         function fails if the buffer is less than 128 bytes large.
16442         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16443         system's ttyname_r function. Provide a reasonably large buffer.
16444         * modules/ttyname_r (Depends-on): Add extensions.
16445         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16446
16447 2010-04-25  Bruno Haible  <bruno@clisp.org>
16448
16449         Use the 'extensions' module for some more functions on Solaris.
16450         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16451         module.
16452         * doc/posix-functions/ctime_r.texi: Likewise.
16453         * doc/posix-functions/getgrgid_r.texi: Likewise.
16454         * doc/posix-functions/getgrnam_r.texi: Likewise.
16455         * doc/posix-functions/getpwnam_r.texi: Likewise.
16456         * doc/posix-functions/getpwuid_r.texi: Likewise.
16457         * doc/posix-functions/readdir_r.texi: Likewise.
16458         * doc/posix-functions/sigwait.texi: Likewise.
16459         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16460         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16461
16462 2010-04-25  Bruno Haible  <bruno@clisp.org>
16463
16464         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16465         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16466         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16467         * lib/ttyname_r.c: Include <limits.h>.
16468         (ttyname_r): Define using the system's ttyname_r function, if it exists
16469         and not on Solaris.
16470         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16471         set.
16472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16473         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16474         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16475         Reported by Simon Josefsson.
16476
16477 2010-04-25  Bruno Haible  <bruno@clisp.org>
16478
16479         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16480         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16481         * doc/posix-functions/ctime_r.texi: Likewise.
16482         * doc/posix-functions/getgrgid_r.texi: Likewise.
16483         * doc/posix-functions/getgrnam_r.texi: Likewise.
16484         * doc/posix-functions/getlogin_r.texi: Likewise.
16485         * doc/posix-functions/getpwnam_r.texi: Likewise.
16486         * doc/posix-functions/getpwuid_r.texi: Likewise.
16487         * doc/posix-functions/readdir_r.texi: Likewise.
16488         * doc/posix-functions/sigwait.texi: Likewise.
16489         * doc/posix-functions/ttyname_r.texi: Likewise.
16490         Reported by Simon Josefsson.
16491
16492 2010-04-25  Bruno Haible  <bruno@clisp.org>
16493
16494         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16495         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16496         also to --create-testdir.
16497         (func_acceptable): Don't consider the status of *-tests modules here.
16498         (func_modules_transitive_closure): Consider it here, before including a
16499         test module.
16500         (func_import, func_create_testdir): Set inc_all_direct_tests,
16501         inc_all_indirect_tests.
16502         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16503         --create-testdir and --create-megatestdir.
16504
16505 2010-04-25  Bruno Haible  <bruno@clisp.org>
16506
16507         gnulib-tool: Add --without-*-tests options.
16508         * gnulib-tool (func_usage): Document the --without-*-tests options.
16509         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16510         excl_unportable_tests): New variables.
16511         Fail if they are specified with --import or --update.
16512         (func_acceptable): Respect the excl_*_tests variables.
16513         (func_import): Set the excl_*_tests variables to empty.
16514
16515 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16516             Bruno Haible  <bruno@clisp.org>
16517
16518         Work around a MacOS X 10.4 bug with openpty.
16519         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16520         * tests/test-openpty.c (main): Close the master side explicitly.
16521
16522 2010-04-25  Bruno Haible  <bruno@clisp.org>
16523
16524         strnlen: Fix a C++ test error on MacOS X and Solaris.
16525         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16526         the function is not declared.
16527         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16528         Simon Josefsson.
16529
16530 2010-04-24  Bruno Haible  <bruno@clisp.org>
16531
16532         Avoid a gcc warning.
16533         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16534         of correct type for %08lx directive.
16535         Reported by Eric Blake.
16536
16537 2010-04-24  Bruno Haible  <bruno@clisp.org>
16538
16539         vasnprintf: Correct errno value in case of out-of-memory.
16540         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16541         or sprintf. Use the errno value from SNPRINTF or sprintf.
16542         Reported by Ian Beckwith <ianb@erislabs.net>.
16543
16544 2010-04-24  Bruno Haible  <bruno@clisp.org>
16545
16546         ansi-c++-opt: Find correct compiler when cross-compiling.
16547         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16548         AC_CHECK_PROGS.
16549         Reported by Simon Josefsson.
16550
16551 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16552
16553         vc-list-files: Add support for subversion
16554         * build-aux/vc-list-files: Use "svn list" to generate the list of
16555         files controlled by subversion.
16556
16557 2010-04-23  Jim Meyering  <meyering@redhat.com>
16558
16559         vc-list-files tests: convert to use init.sh
16560         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16561         path_prepend_.
16562         Use Exit, not exit.
16563         Use skip_ rather than open coding it.
16564         Remove trap set-up and compare definitions.
16565         * tests/test-vc-list-files-git.sh: Likewise.
16566         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16567
16568 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16569
16570         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16571         backup files.
16572
16573 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16574
16575         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16576
16577 2010-04-20  Eric Blake  <eblake@redhat.com>
16578
16579         tests: be robust to ignored SIGPIPE
16580         * tests/test-select-in.sh: Consume all output.
16581         * tests/test-lseek.sh: Check correct exit status, while avoiding
16582         EPIPE.
16583
16584 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16585             Bruno Haible  <bruno@clisp.org>
16586
16587         visibility: Don't use -fvisibility if it leads to a warning.
16588         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16589         yes, don't pretend that visibility works if it leads to a warning.
16590         Reported by Mike Gran <spk121@yahoo.com>.
16591
16592 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16593
16594         * build-aux/bootstrap: Use "git -h" for testing for supported options
16595         instead of "git --help".  The short-form option only shows a summary,
16596         and doesn't layout the full man page.  Grep for the full option name
16597         in the summary, too.
16598
16599 2010-04-19  Bruno Haible  <bruno@clisp.org>
16600
16601         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16602         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16603         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16604         mention of RELOCATABLE_STRIP.
16605         Reported by Sylvain Beucler <beuc@beuc.net>.
16606
16607 2010-04-19  Bruno Haible  <bruno@clisp.org>
16608
16609         * lib/diffseq.h: Fix typo in comment.
16610         Reported by Eric Blake.
16611
16612 2010-04-19  Bruno Haible  <bruno@clisp.org>
16613
16614         ioctl: Move autoconf macro to a .m4 file.
16615         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16616         * modules/ioctl (Files): Add it.
16617         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16618         Reported by Ian Beckwith <ianb@erislabs.net>.
16619
16620 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16621             Bruno Haible  <bruno@clisp.org>
16622
16623         diffseq: Accommodate use-case with abstract arrays.
16624         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16625         is not defined.
16626         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16627         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16628
16629 2010-04-18  Bruno Haible  <bruno@clisp.org>
16630
16631         * doc/posix-headers/stdbool.texi: More precise wording.
16632
16633 2010-04-17  Jim Meyering  <meyering@redhat.com>
16634
16635         maint.mk: use gnu-style indentation in an embedded perl script
16636         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16637         Rename variable: s/two/last_two_bytes/
16638
16639 2010-04-16  Eric Blake  <eblake@redhat.com>
16640
16641         test-stdbool: skip test that fails with Solaris CC
16642         * tests/test-stdbool.c (f): Skip test that causes compilation
16643         error under buggy C++ compiler.
16644         * lib/stdbool.in.h: Document the limitation.
16645         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16646
16647         setenv: allow compilation with C++
16648         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16649         register keyword.
16650
16651         stdint: allow test to pass with C++
16652         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16653
16654         getopt: allow compilation with C++
16655         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16656         struct.
16657         * lib/getopt.c (_getopt_internal_r): Use correct type.
16658         Reported by Dagobert Michelson, via Joel E. Denny.
16659
16660 2010-04-16  Bruno Haible  <bruno@clisp.org>
16661
16662         Override netdb.h always.
16663         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16664         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16665         Reported by Ludovic Courtès <ludo@gnu.org>.
16666
16667 2010-04-15  Bruno Haible  <bruno@clisp.org>
16668
16669         openpty: Fix mistake from 2010-03-21.
16670         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16671         Reported by Simon Josefsson.
16672
16673 2010-04-15  Eric Blake  <eblake@redhat.com>
16674
16675         test-forkpty: fix expected signature
16676         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16677         Reported by Simon Josefsson.
16678
16679 2010-04-15  Jim Meyering  <meyering@redhat.com>
16680
16681         maint.mk: texinfo_suffix_re_: correct the default regexp
16682         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16683
16684         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16685         make it configurable via texinfo_suffix_re_.
16686
16687 2010-04-14  Eric Blake  <eblake@redhat.com>
16688
16689         strtok_r: relax license to LGPLv2+
16690         * modules/strtok_r (License): Relax license.
16691         Reported by Matthias Bolte.
16692
16693 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16694
16695         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16696         version 1.4.4 by default instead of requiring the libgcrypt
16697         version used during build.  This makes it possible to use the
16698         application with older but still binary compatible libgcrypt
16699         versions.
16700
16701 2010-04-13  Eric Blake  <eblake@redhat.com>
16702
16703         getopt-gnu: match recent glibc fixes and posix ruling
16704         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16705         '+' handling, when requesting extensions.
16706         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16707         'W;' handling.
16708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16709         * doc/posix-functions/getopt.texi (getopt): Document this.
16710         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16711         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16712         Likewise.
16713
16714         getopt: merge bug fixes from glibc
16715         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16716         diagnostics.  Honor '+:' correctly.  Reject ';'.
16717
16718         getopt-posix: detect MacOS bug
16719         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16720         optind when missing a required argument.
16721         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16722         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16723         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16724         Likewise.
16725
16726         getopt-posix: avoid spurious failure on Solaris
16727         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16728         an indicator that setting optind=1 is sufficient for reset.
16729
16730         getopt-posix: avoid spurious failure on FreeBSD
16731         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16732         in POSIX mode, since the m4 test uses it.
16733
16734         gnulib-tool: silence warning on BSD sh
16735         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16736
16737 2010-04-13  Jim Meyering  <meyering@redhat.com>
16738
16739         doc: users.txt: GNU patch now uses gnulib
16740         * users.txt: Add patch.
16741
16742 2010-04-12  Jim Meyering  <meyering@redhat.com>
16743
16744         maint.mk: generate more concise timing data for syntax-check rules
16745         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16746         " done" from each line that reports a syntax-check test duration.
16747
16748 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16749
16750         git-version-gen: use "git update-index..." rather than "git status"
16751         * build-aux/git-version-gen: Use git update-index --refresh, not
16752         "git status".  With some versions of git, "git status" would fail
16753         to update the index and result in an unwarranted "-dirty" suffix.
16754
16755 2010-04-11  Jim Meyering  <meyering@redhat.com>
16756
16757         openat: correct formatting (no semantic change)
16758         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
16759         Suggested by Bruno Haible.
16760
16761 2010-04-11  Bruno Haible  <bruno@clisp.org>
16762
16763         Stricter declaration checking in testdirs.
16764         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16765         If for_tests is true, augment AM_CPPFLAGS to define
16766         GNULIB_STRICT_CHECKING.
16767         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
16768         GNULIB_STRICT_CHECKING is defined, verify that the function is
16769         declared.
16770
16771 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
16772             Bruno Haible  <bruno@clisp.org>
16773
16774         libunistring: Improve configure output.
16775         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16776         Don't say "consider installing GNU libunistring" when checking again
16777         with libiconv.
16778
16779 2010-04-11  Bruno Haible  <bruno@clisp.org>
16780
16781         libunistring: Correct value of $LTLIBUNISTRING.
16782         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
16783         correct the value of $LTLIBUNISTRING.
16784
16785 2010-04-11  Bruno Haible  <bruno@clisp.org>
16786
16787         havelib: Add static libraries to LIBS in the right order.
16788         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
16789         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
16790
16791 2010-04-11  Bruno Haible  <bruno@clisp.org>
16792
16793         libunistring: Detect libunistring also when it depends on libiconv.
16794         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
16795         the second AC_LIB_HAVE_LINKFLAGS invocation.
16796
16797 2010-04-11  James Youngman  <jay@gnu.org>
16798
16799         close-stream: declare local scalars to be "const"
16800         * lib/close-stream.c (close_stream): Make boolean variables const
16801         to document the fact that we set but do not change them.
16802
16803 2010-04-11  Bruno Haible  <bruno@clisp.org>
16804
16805         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
16806
16807 2010-04-11  Jim Meyering  <meyering@redhat.com>
16808
16809         maint.mk: don't include dist-check.mk
16810         * top/maint.mk: Remove bogus include directive.
16811
16812         maint.mk: improve empty-line-at-EOF check
16813         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
16814         solution, rather than tail+Perl-based one.  The latter would read
16815         a few kilobytes from the end of each file, and did not handle empty
16816         files properly.
16817
16818         maint.mk: print the elapsed time for each syntax-check rule
16819         * top/maint.mk (sc_m_rules_): Save start time in a file.
16820         (sc_z_rules_): New rules: remove temp file and print elapsed time.
16821         (local-check): Interpose the .z rules
16822
16823 2010-04-11  Jim Meyering  <meyering@redhat.com>
16824
16825         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
16826         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
16827         empty file with one that ends in an empty line.
16828
16829 2010-04-10  Bruno Haible  <bruno@clisp.org>
16830
16831         mkdir: Make it work on mingw64.
16832         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
16833         * lib/mkdir.c: Update comment.
16834         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
16835
16836 2010-04-10  Bruno Haible  <bruno@clisp.org>
16837
16838         Don't override improved macro from newer autoconf.
16839         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
16840         autoconf >= 2.62.
16841         Reported by Joel E. Denny <jdenny@clemson.edu>.
16842
16843 2010-04-10  Jim Meyering  <meyering@redhat.com>
16844
16845         maint.mk: new syntax-check rule: prohibit empty lines at end of file
16846         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
16847
16848         maint.mk: correct a diagnostic
16849         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
16850         in diagnostic; now use $prohibit.
16851
16852 2010-04-10  Bruno Haible  <address@hidden>
16853
16854         fchownat: Fix a C++ test error on Solaris 8.
16855         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
16856         the function does not exist.
16857
16858 2010-04-10  Bruno Haible  <bruno@clisp.org>
16859
16860         vasnprintf: Add more tests.
16861         * tests/test-vasnprintf-posix.c: Include <errno.h>.
16862         (test_function): Test converting an invalid wide string.
16863
16864         vasnprintf: Correct handling of unconvertible wide string arguments.
16865         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
16866         VASNPRINTF.
16867         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
16868         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
16869         smaller than the expected maximum need for the directive. Set errno to
16870         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
16871         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
16872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
16873         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
16874         * modules/vasnprintf (Files): Add m4/printf.m4.
16875         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16876
16877 2010-04-10  Bruno Haible  <bruno@clisp.org>
16878
16879         vasnprintf: Fix crash in %ls directive.
16880         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
16881         string is passed as argument to %ls, with no precision and no width.
16882         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16883
16884 2010-04-10  Bruno Haible  <bruno@clisp.org>
16885
16886         vasnprintf: Fix multiple test failures on mingw.
16887         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
16888         _snprintf, or snwprintf, not _snwprintf.
16889
16890 2010-04-10  Bruno Haible  <bruno@clisp.org>
16891
16892         write: Fix a C++ test error on mingw.
16893         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
16894
16895 2010-04-10  Bruno Haible  <bruno@clisp.org>
16896
16897         vasnprintf test: Reduce code duplication.
16898         * tests/test-vasnprintf.c (test_function): New function, extracted from
16899         test_vasnprintf.
16900         (test_vasnprintf, test_asnprintf): Invoke it.
16901
16902 2010-04-10  Bruno Haible  <bruno@clisp.org>
16903
16904         strnlen: Fix warning in C++ mode on MacOS X.
16905         * lib/string.in.h (strnlen): Use the modern idiom.
16906         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
16907         defining strnlen as a macro already in <config.h>.
16908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16909         REPLACE_STRNLEN.
16910         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
16911         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16912
16913 2010-04-08  James Youngman  <jay@gnu.org>
16914
16915         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
16916         the example.
16917
16918 2010-04-09  Jim Meyering  <meyering@redhat.com>
16919
16920         maint.mk: print better diagnostic when there is no $(_hv_file)
16921         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
16922         announce that when $(_hv_file) (aka help-version) does not exist.
16923
16924         init.sh: run tr in the "C" locale to avoid multibyte interpretation
16925         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
16926         not try to interpret its random input bytes.  Jarno Rajahalme reported
16927         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
16928         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
16929         (mktempd_): Likewise, just in case.
16930
16931         ftruncate: add two years to projected module removal date: 2012
16932         * m4/ftruncate.m4: Adjust comments.
16933
16934         ftruncate: mark module as obsolete; even MinGW provides it, now
16935         * modules/ftruncate (Status): Obsolete.
16936         (Notice): Say that.
16937         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
16938         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
16939
16940 2010-04-08  Bruno Haible  <bruno@clisp.org>
16941
16942         Fix side effects from tests-related modules.
16943         * modules/dprintf-posix (Comment): New section.
16944         * modules/fprintf-posix (Comment): Likewise.
16945         * modules/obstack-printf-posix (Comment): Likewise.
16946         * modules/printf-posix (Comment): Likewise.
16947         * modules/snprintf-posix (Comment): Likewise.
16948         * modules/sprintf-posix (Comment): Likewise.
16949         * modules/vasnprintf-posix (Comment): Likewise.
16950         * modules/vasprintf-posix (Comment): Likewise.
16951         * modules/vdprintf-posix (Comment): Likewise.
16952         * modules/vfprintf-posix (Comment): Likewise.
16953         * modules/vprintf-posix (Comment): Likewise.
16954         * modules/vsnprintf-posix (Comment): Likewise.
16955         * modules/vsprintf-posix (Comment): Likewise.
16956         * modules/xprintf-posix (Comment): Likewise.
16957         * modules/xvasprintf-posix (Comment): Likewise.
16958         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16959         * modules/floorf-tests (Depends-on): Likewise.
16960         * modules/round-tests (Depends-on): Likewise.
16961         * modules/roundf-tests (Depends-on): Likewise.
16962         * modules/trunc-tests (Depends-on): Likewise.
16963         * modules/truncf-tests (Depends-on): Likewise.
16964         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16965         'fprintf-posix' module is not present.
16966         * tests/test-floorf2.c (check): Likewise.
16967         * tests/test-trunc2.c (check): Likewise.
16968         * tests/test-truncf2.c (check): Likewise.
16969         * tests/test-round2.c (equal): Likewise.
16970         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16971
16972 2010-04-07  Karl Berry  <karl@gnu.org>
16973
16974         * config/srclist.txt,
16975         * config/srclistvars.sh,
16976         * config/srclist-update: doc fixes.
16977
16978 2010-04-07  Jim Meyering  <meyering@redhat.com>
16979
16980         maint.mk: add a PATH crosschecking syntax-check rule
16981         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16982         Useful if you use a test like the one in help-version (coreutils,
16983         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16984         printed by prog --version.
16985
16986 2010-04-06  Bruno Haible  <bruno@clisp.org>
16987
16988         Fix link error on mingw.
16989         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16990         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16991
16992 2010-04-06  Bruno Haible  <bruno@clisp.org>
16993
16994         Assume rmdir exists.
16995         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
16996
16997 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
16998
16999         doc: update users.txt
17000         * users.txt: Add gcal.
17001
17002 2010-04-06  Jim Meyering  <meyering@redhat.com>
17003
17004         init.sh: simply unset TMPDIR rather than risking env -i
17005         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
17006         although it probably works fine on all Unix-based systems, some
17007         systems (Cygwin?) cannot tolerate a totally cleared environment.
17008         Suggestion from Eric Blake.
17009
17010 2010-04-06  Jim Meyering  <meyering@redhat.com>
17011
17012         init.sh: portability fix: use env's POSIX-specified -i option not -u
17013         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
17014         than unportable env -u.  Solaris 5.11's env lacks support for -u.
17015
17016 2010-04-05  Bruno Haible  <bruno@clisp.org>
17017
17018         btowc: Work around Cygwin 1.7.2 bug.
17019         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
17020         does not map NUL to 0.
17021         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
17022
17023 2010-04-05  Bruno Haible  <bruno@clisp.org>
17024
17025         Make the multithread modules work on Cygwin 1.7.2.
17026         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
17027         imported symbols can be declared weak, so that it returns "no" on
17028         Cygwin 1.7.2.
17029
17030 2010-04-05  Bruno Haible  <bruno@clisp.org>
17031
17032         Use the module 'strncat'.
17033         * modules/unistr/u8-strncat (Depends-on): Add strncat.
17034
17035         Tests for module 'strncat'.
17036         * modules/strncat-tests: New file.
17037         * tests/test-strncat.c: New file.
17038
17039         New module 'strncat'.
17040         * lib/string.in.h (strncat): New declaration.
17041         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
17042         * m4/strncat.m4: New file, based on m4/memchr.m4.
17043         * modules/strncat: New file.
17044         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
17045         is declared.
17046         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
17047         REPLACE_STRNCAT.
17048         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
17049         REPLACE_STRNCAT.
17050         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17051         module.
17052         * tests/test-string-c++.cc: Check signature of strncat.
17053
17054 2010-04-05  Jim Meyering  <meyering@redhat.com>
17055
17056         xstrtoumax-tests: convert to use init.sh
17057         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
17058         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17059         Use Exit, not exit.
17060         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17061
17062         xstrtoimax-tests: convert to use init.sh
17063         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
17064         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17065         Use Exit, not exit.
17066         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17067
17068 2010-04-05  Bruno Haible  <bruno@clisp.org>
17069
17070         sys_socket: Avoid #define replacements in C++ mode.
17071         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
17072         warning to the function if possible, rather than #defining the symbol
17073         to a dysfunctional alias.
17074
17075 2010-04-05  Bruno Haible  <bruno@clisp.org>
17076
17077         fseeko: Fix C++ test error on mingw.
17078         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
17079         gl_FUNC_FSEEKO.
17080         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
17081         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
17082         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
17083         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
17084
17085 2010-04-05  Bruno Haible  <bruno@clisp.org>
17086
17087         duplocale: Improve test output.
17088         * tests/test-duplocale.c (main): Print reason for skipped test.
17089
17090 2010-04-05  Bruno Haible  <bruno@clisp.org>
17091
17092         Assume rmdir exists.
17093         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17094         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17095
17096 2010-04-05  Bruno Haible  <bruno@clisp.org>
17097
17098         Fix link error on Solaris 8 with cc.
17099         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17100
17101 2010-04-05  Bruno Haible  <bruno@clisp.org>
17102
17103         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17104         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17105
17106 2010-04-05  Bruno Haible  <bruno@clisp.org>
17107
17108         vasprintf: Update documentation.
17109         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17110
17111 2010-04-05  Bruno Haible  <bruno@clisp.org>
17112
17113         ptsname: Improve test.
17114         * tests/test-ptsname.c (main): Also try the various master names of BSD
17115         systems.
17116
17117 2010-04-05  Bruno Haible  <bruno@clisp.org>
17118
17119         memchr: Avoid a possible C++ test error.
17120         * lib/string.in.h (memchr): Provide declaration if function is missing.
17121         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17122         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17123         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17124         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17125
17126 2010-04-05  Bruno Haible  <bruno@clisp.org>
17127
17128         strtok_r: Improve idiom.
17129         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17130         AC_LIBOBJ is used.
17131
17132 2010-04-05  Bruno Haible  <bruno@clisp.org>
17133
17134         strdup: Improve idiom.
17135         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17136         AC_LIBOBJ is used.
17137         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17138         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17139         when AC_LIBOBJ is used.
17140
17141 2010-04-05  Bruno Haible  <bruno@clisp.org>
17142
17143         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17144         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17145         don't set REPLACE_MBSINIT to 1.
17146         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17147         don't set REPLACE_MBRTOWC to 1.
17148         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17149         exist, don't set REPLACE_MBSRTOWCS to 1.
17150         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17151         exist, don't set REPLACE_MBSNRTOWCS to 1.
17152         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17153         don't set REPLACE_WCRTOMB to 1.
17154         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17155         exist, don't set REPLACE_WCSRTOMBS to 1.
17156         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17157         exist, don't set REPLACE_WCSNRTOMBS to 1.
17158
17159 2010-04-05  Bruno Haible  <bruno@clisp.org>
17160
17161         ldexpl: Improve idiom.
17162         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17163         make sure to set HAVE_DECL_LDEXPL to 0.
17164
17165 2010-04-05  Jim Meyering  <meyering@redhat.com>
17166
17167         xstrtol-tests: convert to use init.sh
17168         * modules/xstrtol-tests (Files): Add tests/init.sh.
17169         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17170         Use Exit, not exit.
17171         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17172
17173         atexit-tests: convert to use init.sh
17174         * modules/atexit-tests (Files): Add tests/init.sh.
17175         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17176         Use Exit, not exit.
17177         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17178
17179         init.sh: fix typo
17180         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17181
17182         init.sh: make it easier for a test script to write to the tty, ...
17183         when using automake's parallel-tests mode.
17184         * tests/init.sh (stderr_fileno_): Define overridable variable.
17185         (warn_): New function, to use it.
17186         (fail_, skip_, framework_failure_): Use warn_.
17187
17188 2010-04-04  Bruno Haible  <bruno@clisp.org>
17189
17190         btowc: Avoid warning.
17191         * lib/btowc.c: Include <stdlib.h>.
17192         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17193
17194 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17195             Bruno Haible  <bruno@clisp.org>
17196
17197         wchar: Port to NetBSD 1.5.
17198         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17199         * lib/wctype.in.h (WEOF): Likewise.
17200
17201 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17202             Bruno Haible  <bruno@clisp.org>
17203
17204         Port extended stdio to NetBSD 1.5.
17205         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17206         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17207         older.
17208
17209 2010-04-04  Bruno Haible  <bruno@clisp.org>
17210
17211         string: Remove unused substitution.
17212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17213         HAVE_DECL_STRERROR.
17214         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17215
17216 2010-04-04  Bruno Haible  <bruno@clisp.org>
17217
17218         strtod: Avoid a possible C++ test error.
17219         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17220         set REPLACE_STRTOD.
17221
17222 2010-04-04  Bruno Haible  <bruno@clisp.org>
17223
17224         strerror: Update documentation.
17225         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17226
17227 2010-04-04  Bruno Haible  <bruno@clisp.org>
17228
17229         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17230         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17231         _GL_CXXALIAS_SYS_CAST.
17232
17233 2010-04-04  Bruno Haible  <bruno@clisp.org>
17234
17235         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17236         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17237         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17238         REPLACE_FREXPL to 1.
17239         * doc/posix-functions/frexpl.texi: Update documentation.
17240
17241 2010-04-04  Bruno Haible  <bruno@clisp.org>
17242
17243         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17244         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17245
17246 2010-04-04  Bruno Haible  <bruno@clisp.org>
17247
17248         Implement nanosleep for native Windows.
17249         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17250
17251 2010-04-04  Bruno Haible  <bruno@clisp.org>
17252
17253         math: Fix some C++ test errors on Solaris 8.
17254         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17255
17256 2010-04-04  Bruno Haible  <bruno@clisp.org>
17257
17258         math: Fix some C++ test errors on Cygwin.
17259         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17260         truncl): Provide declaration if the system does not have it.
17261         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17262         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17263         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17264         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17265         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17266         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17267         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17268         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17269         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17270         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17271         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17272         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17273         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17274         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17275         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17276         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17278         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17279         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17280         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17281         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17282         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17283
17284 2010-04-04  Bruno Haible  <bruno@clisp.org>
17285
17286         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17287         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17288         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17289         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17290         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17291         * m4/isinf.m4 (gl_ISINF): Likewise.
17292         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17293
17294 2010-04-04  Bruno Haible  <bruno@clisp.org>
17295
17296         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17297         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17298
17299 2010-04-04  Bruno Haible  <bruno@clisp.org>
17300
17301         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17302         * modules/tmpfile (configure.ac): Update.
17303
17304         tmpfile: Fix C++ test error on mingw.
17305         * lib/stdio.in.h (tmpfile): New declaration.
17306         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17307         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17308         * modules/tmpfile (Depends-on): Add stdio.
17309         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17310         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17311         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17312         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17313         REPLACE_TMPFILE.
17314         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17315
17316 2010-04-04  Bruno Haible  <bruno@clisp.org>
17317
17318         ioctl: Fix C++ test error on mingw.
17319         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17320         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17321         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17322
17323 2010-04-03  Bruno Haible  <bruno@clisp.org>
17324
17325         wcwidth: Fix C++ test error on mingw.
17326         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17328         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17329
17330 2010-04-03  Bruno Haible  <bruno@clisp.org>
17331
17332         nanosleep: Fix C++ test error on mingw.
17333         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17334         * lib/time.in.h (nanosleep): Use modern idiom.
17335         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17336         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17337         REPLACE_NANOSLEEP to 1.
17338         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17339         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17340
17341 2010-04-03  Bruno Haible  <bruno@clisp.org>
17342
17343         strptime: Fix C++ test error on mingw.
17344         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17345         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17346         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17347         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17348         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17349         not REPLACE_STRPTIME.
17350         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17351         REPLACE_STRPTIME.
17352
17353 2010-04-03  Bruno Haible  <bruno@clisp.org>
17354
17355         timegm: Fix C++ test error on mingw.
17356         * lib/time.in.h (timegm): Use modern idiom.
17357         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17358         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17359         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17360         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17361
17362 2010-04-03  Bruno Haible  <bruno@clisp.org>
17363
17364         timegm: Assume declaration if function exists.
17365         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17366         if it exists. Don't clobber ac_cv_func_timegm.
17367
17368 2010-04-03  Bruno Haible  <bruno@clisp.org>
17369
17370         time_r: Fix C++ test error on mingw.
17371         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17372         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17373         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17374         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17375         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17376
17377 2010-04-03  Bruno Haible  <bruno@clisp.org>
17378
17379         time_r: Minor updates.
17380         * modules/time_r (Description): Mention the provided functions.
17381         * lib/time_r.c: Don't include <string.h>.
17382         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17383         * doc/posix-functions/localtime_r.texi: Likewise.
17384
17385 2010-04-03  Bruno Haible  <bruno@clisp.org>
17386
17387         time: Fix regression introduced on 2010-03-08.
17388         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17389         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17390
17391 2010-04-03  Jim Meyering  <meyering@redhat.com>
17392
17393         maint.mk: don't silently disable project-specific syntax-check rules
17394         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17395         that they need to convert their project-specific syntax-check rules
17396         to use the new _sc_search_regexp.
17397
17398 2010-04-03  Bruno Haible  <bruno@clisp.org>
17399
17400         fchdir: Fix regression introduced on 2010-03-08.
17401         * lib/unistd.in.h (fchdir): Fix declaration.
17402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17404         REPLACE_FCHDIR.
17405         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17406         REPLACE_FCHDIR.
17407
17408 2010-04-03  Bruno Haible  <bruno@clisp.org>
17409
17410         getpagesize: Fix C++ test error on mingw.
17411         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17412         system does not declare the function.
17413         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17414         declared.
17415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17416         HAVE_DECL_GETPAGESIZE.
17417         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17418
17419 2010-04-03  Bruno Haible  <bruno@clisp.org>
17420
17421         stdio: Make C++ tests work on mingw.
17422         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17423         does not declare the function.
17424
17425 2010-04-03  Bruno Haible  <bruno@clisp.org>
17426
17427         ftello: Fix C++ test error on mingw.
17428         * lib/stdio.in.h (ftello): Use modern idiom.
17429         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17430         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17431         is missing and that it needs to be replaced.
17432         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17434         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17435
17436 2010-04-03  Bruno Haible  <bruno@clisp.org>
17437
17438         fseeko: Fix C++ test error on mingw.
17439         * lib/stdio.in.h (fseeko): Use modern idiom.
17440         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17441         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17442         is missing and that it needs to be replaced.
17443         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17445         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17446
17447 2010-04-03  Bruno Haible  <bruno@clisp.org>
17448
17449         mkstemp: Fix C++ test error on mingw.
17450         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17451         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17452         function is missing and that it needs to be replaced.
17453         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17454         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17455
17456 2010-04-03  Bruno Haible  <bruno@clisp.org>
17457
17458         stpncpy: Fix C++ test error on mingw.
17459         * lib/string.in.h (stpncpy): Use modern idiom.
17460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17461         function is missing and that it needs to be replaced.
17462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17463         REPLACE_STPNCPY.
17464         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17465
17466 2010-04-03  Bruno Haible  <bruno@clisp.org>
17467
17468         sys_stat: Fix C++ test error on mingw.
17469         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17470         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17471
17472 2010-04-03  Bruno Haible  <bruno@clisp.org>
17473
17474         pty: Update doc.
17475         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17476
17477 2010-04-03  Bruno Haible  <bruno@clisp.org>
17478
17479         unistd: Fix C++ test error on mingw.
17480         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17481
17482 2010-04-03  Bruno Haible  <bruno@clisp.org>
17483
17484         Update doc regarding mingw.
17485         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17486         * doc/glibc-functions/login_tty.texi: Likewise.
17487         * doc/glibc-functions/forkpty.texi: Likewise.
17488
17489 2010-04-03  Bruno Haible  <bruno@clisp.org>
17490
17491         stdlib: Avoid compilation failure of c-strtold on mingw.
17492         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17493
17494 2010-04-03  Bruno Haible  <bruno@clisp.org>
17495
17496         locale: Make C++ tests work on Cygwin and mingw.
17497         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17498         cannot provide the function.
17499         Reported by Simon Josefsson.
17500
17501 2010-04-03  Bruno Haible  <bruno@clisp.org>
17502
17503         localename: Port to MacOS X 10.6.
17504         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17505         memory layout of the locales in MacOS X 10.6 as well.
17506         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17507
17508 2010-04-02  Bruno Haible  <bruno@clisp.org>
17509
17510         gnulib-tool: Ensure that long-running tests are executed last.
17511         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17512         running tests after the one for the other tests.
17513
17514 2010-04-02  Bruno Haible  <bruno@clisp.org>
17515
17516         gnulib-tool: Ensure the tests in the main directory are executed first.
17517         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17518         start with the current directory.
17519
17520 2010-04-02  Bruno Haible  <bruno@clisp.org>
17521
17522         Tests for module 'havelib', moved here from GNU gettext.
17523         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17524         modifications.
17525         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17526         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17527         with modifications.
17528         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17529         modifications.
17530         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17531         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17532         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17533         with modifications.
17534         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17535         with modifications.
17536         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17537         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17538         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17539         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17540         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17541         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17542         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17543         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17544         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17545         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17546         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17547         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17548         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17549         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17550         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17551         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17552         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17553         with modifications.
17554         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17555         with modifications.
17556         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17557         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17558         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17559         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17560         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17561         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17562         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17563         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17564         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17565         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17566         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17567         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17568         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17569         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17570         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17571         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17572         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17573         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17574         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17575         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17576         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17577         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17578         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17579         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17580         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17581         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17582         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17583         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17584         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17585         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17586         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17587         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17588         * tests/havelib/rpathx/rpathx.c: New file, from
17589         gettext/autoconf-lib-link.
17590         * tests/havelib/rpathx/Makefile.am: New file, from
17591         gettext/autoconf-lib-link.
17592         * tests/havelib/rpathx/configure.ac: New file, from
17593         gettext/autoconf-lib-link with modifications.
17594         * tests/havelib/rpathy/rpathy.c: New file, from
17595         gettext/autoconf-lib-link.
17596         * tests/havelib/rpathy/Makefile.am: New file, from
17597         gettext/autoconf-lib-link.
17598         * tests/havelib/rpathy/configure.ac: New file, from
17599         gettext/autoconf-lib-link with modifications.
17600         * tests/havelib/rpathz/rpathz.c: New file, from
17601         gettext/autoconf-lib-link.
17602         * tests/havelib/rpathz/Makefile.am: New file, from
17603         gettext/autoconf-lib-link.
17604         * tests/havelib/rpathz/configure.ac: New file, from
17605         gettext/autoconf-lib-link with modifications.
17606         * tests/havelib/rpathlx/usex.c: New file, from
17607         gettext/autoconf-lib-link.
17608         * tests/havelib/rpathlx/Makefile.am: New file, from
17609         gettext/autoconf-lib-link.
17610         * tests/havelib/rpathlx/configure.ac: New file, from
17611         gettext/autoconf-lib-link with modifications.
17612         * tests/havelib/rpathly/usey.c: New file, from
17613         gettext/autoconf-lib-link.
17614         * tests/havelib/rpathly/Makefile.am: New file, from
17615         gettext/autoconf-lib-link.
17616         * tests/havelib/rpathly/configure.ac: New file, from
17617         gettext/autoconf-lib-link with modifications.
17618         * tests/havelib/rpathlz/usez.c: New file, from
17619         gettext/autoconf-lib-link.
17620         * tests/havelib/rpathlz/Makefile.am: New file, from
17621         gettext/autoconf-lib-link.
17622         * tests/havelib/rpathlz/configure.ac: New file, from
17623         gettext/autoconf-lib-link with modifications.
17624         * tests/havelib/rpathlyx/usey.c: New file, from
17625         gettext/autoconf-lib-link.
17626         * tests/havelib/rpathlyx/Makefile.am: New file, from
17627         gettext/autoconf-lib-link.
17628         * tests/havelib/rpathlyx/configure.ac: New file, from
17629         gettext/autoconf-lib-link with modifications.
17630         * tests/havelib/rpathlzyx/usez.c: New file, from
17631         gettext/autoconf-lib-link.
17632         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17633         gettext/autoconf-lib-link.
17634         * tests/havelib/rpathlzyx/configure.ac: New file, from
17635         gettext/autoconf-lib-link with modifications.
17636         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17637         with modifications.
17638
17639 2010-04-02  Bruno Haible  <bruno@clisp.org>
17640
17641         gnulib-tool: Create distributed built sources also for the tests.
17642         * gnulib-tool (func_create_testdir): Also generate distributed built
17643         sources in the tests directory.
17644
17645 2010-04-02  Bruno Haible  <bruno@clisp.org>
17646
17647         gnulib-tool: Obey user's environment variables.
17648         * gnulib-tool (func_create_testdir): When creating built sources,
17649         respect the environment variables for autoconf, automake, etc. given by
17650         the user.
17651
17652 2010-04-02  Bruno Haible  <bruno@clisp.org>
17653
17654         gnulib-tool: Provide the value of --m4-base to modules.
17655         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17656         of gl_m4_base.
17657
17658 2010-04-02  Eric Blake  <eblake@redhat.com>
17659
17660         maint.mk: fix some fallout
17661         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17662         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17663
17664 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17665
17666         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17667         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17668         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17669         (sc_cast_of_x_alloc_return_value): Likewise.
17670         (sc_cast_of_alloca_return_value): Likewise.
17671         (sc_space_tab): Likewise.
17672         (sc_prohibit_atoi_atof): Likewise.
17673         (sc_prohibit_magic_number_exit): Likewise.
17674         (sc_error_exit_success): Likewise.
17675         (sc_file_system): Likewise.
17676         (sc_prohibit_have_config_h): Likewise.
17677         (sc_require_config_h): Likewise.
17678         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17679         (sc_obsolete_symbols): Likewise.
17680         (sc_changelog): Likewise.
17681         (sc_program_name): Likewise.
17682         (sc_the_the): Likewise.
17683         (sc_trailing_blank): Likewise.
17684         (sc_two_space_separator_in_usage): Likewise.
17685         (sc_useless_cpp_parens): Likewise.
17686         (sc_GPL_version): Likewise.
17687         (sc_GFDL_version): Likewise.
17688         (sc_texinfo_acronym): Likewise.
17689         (sc_prohibit_cvs_keyword): Likewise.
17690         (sc_prohibit_stat_st_blocks): Likewise.
17691         (sc_prohibit_S_IS_definition): Likewise.
17692         (sc_redundant_const): Likewise.
17693         (sc_makefile_TAB_only_indentation): Likewise.
17694         (sc_m4_quote_check): Likewise.
17695         (sc_makefile_path_separator_check): Likewise.
17696         (sc_copyright_check): Likewise.
17697         (sc_Wundef_boolean): Likewise.
17698         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17699
17700         maint.mk: match 0 or more whitespace-before-function-call '('
17701         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17702         that have zero or two-and-more spaces between the function name
17703         and the open parenthesis.
17704         (sc_error_message_warn_fatal): Likewise.
17705         (sc_error_message_uppercase): Likewise.
17706         (sc_error_message_period): Likewise.
17707
17708 2010-03-31  Eric Blake  <eblake@redhat.com>
17709
17710         maint.mk: check for [ as well as test
17711         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17712         Based on a libvirt report by Matthias Bolte.
17713
17714         gnumakefile: don't squelch _version output
17715         * top/GNUmakefile (_version): Create one-shot dependency rather
17716         than using $(shell) when version must be regenerated.
17717         (_autoreconf): Run verbosely, by default.
17718
17719         sys_time: avoid compiler warnings
17720         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17721         unconditional, fixing regression from 2010-03-29.
17722         Reported by Simon Josefsson.
17723
17724 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17725
17726         maint.mk: s/_header_without_use/_sc_header_without_use/
17727         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17728         (sc_prohibit_assert_without_use): Use the new name.
17729         (sc_prohibit_close_stream_without_use): Likewise.
17730         (sc_prohibit_getopt_without_use): Likewise.
17731         (sc_prohibit_quotearg_without_use): Likewise.
17732         (sc_prohibit_quote_without_use): Likewise.
17733         (sc_prohibit_long_options_without_use): Likewise.
17734         (sc_prohibit_inttostr_without_use): Likewise.
17735         (sc_prohibit_ignore_value_without_use): Likewise.
17736         (sc_prohibit_error_without_use): Likewise.
17737         (sc_prohibit_xalloc_without_use): Likewise.
17738         (sc_prohibit_hash_without_use): Likewise.
17739         (sc_prohibit_hash_pjw_without_use): Likewise.
17740         (sc_prohibit_safe_read_without_use): Likewise.
17741         (sc_prohibit_argmatch_without_use): Likewise.
17742         (sc_prohibit_canonicalize_without_use): Likewise.
17743         (sc_prohibit_root_dev_ino_without_use): Likewise.
17744         (sc_prohibit_openat_without_use): Likewise.
17745         (sc_prohibit_c_ctype_without_use): Likewise.
17746         (sc_prohibit_signal_without_use): Likewise.
17747         (sc_prohibit_intprops_without_use): Likewise.
17748
17749 2010-03-30  Eric Blake  <eblake@redhat.com>
17750
17751         maint: improve module indicators
17752         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17753         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17754         columns, and avoid extra macro expansion.
17755
17756         fdopendir: work around FreeBSD bug
17757         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17758         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
17759         * modules/dirent (Makefile.am): Substitute it.
17760         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
17761         declaration.
17762         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
17763         fix.
17764         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17765
17766 2010-03-29  Bruno Haible  <bruno@clisp.org>
17767
17768         Emit #pragma system_header after the inclusion guard, not before.
17769         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17770         guard that spans the entire file, not before. This enables an
17771         optimization in GCC's preprocessor.
17772         * lib/ctype.in.h: Likewise.
17773         * lib/dirent.in.h: Likewise.
17774         * lib/errno.in.h: Likewise.
17775         * lib/float.in.h: Likewise.
17776         * lib/getopt.in.h: Likewise.
17777         * lib/iconv.in.h: Likewise.
17778         * lib/langinfo.in.h: Likewise.
17779         * lib/locale.in.h: Likewise.
17780         * lib/math.in.h: Likewise.
17781         * lib/netdb.in.h: Likewise.
17782         * lib/netinet_in.in.h: Likewise.
17783         * lib/pty.in.h: Likewise.
17784         * lib/sched.in.h: Likewise.
17785         * lib/se-selinux.in.h: Likewise.
17786         * lib/search.in.h: Likewise.
17787         * lib/spawn.in.h: Likewise.
17788         * lib/stdarg.in.h: Likewise.
17789         * lib/stdint.in.h: Likewise.
17790         * lib/string.in.h: Likewise.
17791         * lib/strings.in.h: Likewise.
17792         * lib/sys_file.in.h: Likewise.
17793         * lib/sys_ioctl.in.h: Likewise.
17794         * lib/sys_time.in.h: Likewise.
17795         * lib/sys_times.in.h: Likewise.
17796         * lib/sys_utsname.in.h: Likewise.
17797         * lib/sys_wait.in.h: Likewise.
17798         * lib/sysexits.in.h: Likewise.
17799         * lib/wctype.in.h: Likewise.
17800
17801 2010-03-28  James Youngman  <jay@gnu.org>
17802
17803         save-cwd: don't leak a file descriptor when the caller execs.
17804         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
17805         saved file descriptor.
17806         * modules/save-cwd (Depends-on): Depend on cloexec.
17807
17808 2010-03-29  Bruno Haible  <bruno@clisp.org>
17809
17810         Remove vestiges of fts-lgpl module.
17811         * lib/fts_.h: Assume GNULIB_FTS is 1.
17812         * lib/fts.c: Likewise.
17813         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17814
17815 2010-03-28  Bruno Haible  <bruno@clisp.org>
17816
17817         Fix definition of tests witness macro.
17818         * gnulib-tool (func_import): Fix definition of witness macro.
17819
17820 2010-03-28  Bruno Haible  <bruno@clisp.org>
17821
17822         Fix ioctl's protoype on glibc systems.
17823         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17824         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
17825         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
17826         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
17827         signature. If not, arrange to replace the ioctl function.
17828         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17829         REPLACE_IOCTL.
17830         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
17831         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
17832         Reported by Ludovic Courtès <ludo@gnu.org>.
17833
17834 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
17835
17836         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
17837         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
17838         made it so grep -r --include=GLOB* ... did not work.
17839
17840 2010-03-26  Jim Meyering  <meyering@redhat.com>
17841             Eric Blake  <eblake@redhat.com>
17842
17843         maint.mk: prohibit use of test's -o and -a operators
17844         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
17845
17846 2010-03-28  Bruno Haible  <bruno@clisp.org>
17847
17848         Remove unused GNULIB_XYZ macro definitions.
17849         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
17850         invocation.
17851
17852 2010-03-28  Bruno Haible  <bruno@clisp.org>
17853
17854         Mark privileged tests modules.
17855         * modules/idpriv-drop-tests (Status): New section.
17856         * modules/idpriv-droptemp-tests (Status): New section.
17857
17858 2010-03-28  Bruno Haible  <bruno@clisp.org>
17859
17860         Split C++ tests into separate tests modules.
17861         * modules/dirent-c++-tests: New file, extracted from
17862         modules/dirent-tests.
17863         * modules/dirent-tests: Depend on it.
17864         * modules/fcntl-h-c++-tests: New file, extracted from
17865         modules/fcntl-h-tests.
17866         * modules/fcntl-h-tests: Depend on it.
17867         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17868         * modules/glob-tests: Depend on it.
17869         * modules/iconv-h-c++-tests: New file, extracted from
17870         modules/iconv-h-tests.
17871         * modules/iconv-h-tests: Depend on it.
17872         * modules/langinfo-c++-tests: New file, extracted from
17873         modules/langinfo-tests.
17874         * modules/langinfo-tests: Depend on it.
17875         * modules/locale-c++-tests: New file, extracted from
17876         modules/locale-tests.
17877         * modules/locale-tests: Depend on it.
17878         * modules/math-c++-tests: New file, extracted from modules/math-tests.
17879         * modules/math-tests: Depend on it.
17880         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
17881         * modules/pty-tests: Depend on it.
17882         * modules/search-c++-tests: New file, extracted from
17883         modules/search-tests.
17884         * modules/search-tests: Depend on it.
17885         * modules/signal-c++-tests: New file, extracted from
17886         modules/signal-tests.
17887         * modules/signal-tests: Depend on it.
17888         * modules/spawn-c++-tests: New file, extracted from
17889         modules/spawn-tests.
17890         * modules/spawn-tests: Depend on it.
17891         * modules/stdio-c++-tests: New file, extracted from
17892         modules/stdio-tests.
17893         * modules/stdio-tests: Depend on it.
17894         * modules/stdlib-c++-tests: New file, extracted from
17895         modules/stdlib-tests.
17896         * modules/stdlib-tests: Depend on it.
17897         * modules/string-c++-tests: New file, extracted from
17898         modules/string-tests.
17899         * modules/string-tests: Depend on it.
17900         * modules/sys_ioctl-c++-tests: New file, extracted from
17901         modules/sys_ioctl-tests.
17902         * modules/sys_ioctl-tests: Depend on it.
17903         * modules/sys_select-c++-tests: New file, extracted from
17904         modules/sys_select-tests.
17905         * modules/sys_select-tests: Depend on it.
17906         * modules/sys_socket-c++-tests: New file, extracted from
17907         modules/sys_socket-tests.
17908         * modules/sys_socket-tests: Depend on it.
17909         * modules/sys_stat-c++-tests: New file, extracted from
17910         modules/sys_stat-tests.
17911         * modules/sys_stat-tests: Depend on it.
17912         * modules/sys_time-c++-tests: New file, extracted from
17913         modules/sys_time-tests.
17914         * modules/sys_time-tests: Depend on it.
17915         * modules/time-c++-tests: New file, extracted from modules/time-tests.
17916         * modules/time-tests: Depend on it.
17917         * modules/unistd-c++-tests: New file, extracted from
17918         modules/unistd-tests.
17919         * modules/unistd-tests: Depend on it.
17920         * modules/wchar-c++-tests: New file, extracted from
17921         modules/wchar-tests.
17922         * modules/wchar-tests: Depend on it.
17923         * modules/wctype-c++-tests: New file, extracted from
17924         modules/wctype-tests.
17925         * modules/wctype-tests: Depend on it.
17926         Reported by Simon Josefsson.
17927
17928 2010-03-28  Bruno Haible  <bruno@clisp.org>
17929
17930         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
17931         * gnulib-tool (func_exists_module): New function, extracted from
17932         func_verify_module.
17933         (func_verify_module): Use it.
17934         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
17935         'foo' only if 'foo' exists.
17936         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
17937         module.
17938
17939 2010-03-28  Bruno Haible  <bruno@clisp.org>
17940
17941         gnulib-tool: Add support for special categories of tests.
17942         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
17943         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17944         (func_usage): Document them.
17945         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
17946         inc_unportable_tests, inc_all_tests): New variables.
17947         (func_acceptable): Consider these variables.
17948         (func_modules_transitive_closure): Make it work when the 'Status' field
17949         consists of multiple words.
17950         (func_import): Store and restore the values of inc_cxx_tests,
17951         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
17952         inc_all_tests in gnulib-comp.m4.
17953         (func_create_testdir): Set inc_all_tests to true.
17954         * doc/gnulib.texi (Extra tests modules): New section.
17955         Suggested by Jim Meyering.
17956
17957 2010-03-28  Bruno Haible  <bruno@clisp.org>
17958
17959         ansi-c++-opt: Allow turning off the C++ build by default.
17960         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17961         gl_CXX_CHOICE_DEFAULT_NO is defined.
17962         Requested by Eric Blake.
17963
17964 2010-03-28  Bruno Haible  <bruno@clisp.org>
17965
17966         unistd: Avoid #define replacements in C++ mode.
17967         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17968         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17969         setsockopt, shutdown, select): In C++, attach a warning to the function
17970         if possible, rather than #defining the symbol to a dysfunctional alias.
17971         Reported by John W. Eaton <jwe@gnu.org>.
17972
17973 2010-03-28  Bruno Haible  <bruno@clisp.org>
17974
17975         Fix link errors on mingw.
17976         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17977         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17978         $(LIBSOCKET).
17979         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17980         $(LIBSOCKET).
17981
17982 2010-03-28  Bruno Haible  <bruno@clisp.org>
17983             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17984
17985         lib-ignore: Determine different options for different compilers.
17986         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17987         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17988         Add comments.
17989         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17990         * NEWS: Mention the change.
17991
17992 2010-03-27  Bruno Haible  <bruno@clisp.org>
17993
17994         Remove unused GNULIB_XYZ macro definitions.
17995         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17996         * modules/fseek (configure.ac): Likewise.
17997         * modules/ioctl (configure.ac): Likewise.
17998         * modules/open (configure.ac): Likewise.
17999         * modules/stdlib-safer (configure.ac): Likewise.
18000
18001 2010-03-27  Bruno Haible  <bruno@clisp.org>
18002
18003         Add a remark about certain modules.
18004         * modules/malloc (Comment): New section.
18005         * modules/realloc (Comment): Likewise.
18006         * modules/sigpipe (Comment): Likewise.
18007
18008 2010-03-27  Bruno Haible  <bruno@clisp.org>
18009
18010         Resolve conflict between the two kinds of module indicators.
18011         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
18012         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
18013         * modules/canonicalize (configure.ac): Invoke
18014         gl_MODULE_INDICATOR_FOR_TESTS.
18015         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
18016         GNULIB_XYZ.
18017         * tests/test-dirent-c++.cc: Likewise.
18018         * tests/test-dirent-safer.c: Likewise.
18019         * tests/test-dup2.c: Likewise.
18020         * tests/test-fchdir.c: Likewise.
18021         * tests/test-fcntl-h-c++.cc: Likewise.
18022         * tests/test-getopt.c: Likewise.
18023         * tests/test-getopt.h: Likewise.
18024         * tests/test-langinfo-c++.cc: Likewise.
18025         * tests/test-locale-c++.cc: Likewise.
18026         * tests/test-math-c++.cc: Likewise.
18027         * tests/test-pty-c++.cc: Likewise.
18028         * tests/test-search-c++.cc: Likewise.
18029         * tests/test-signal-c++.cc: Likewise.
18030         * tests/test-spawn-c++.cc: Likewise.
18031         * tests/test-stdio-c++.cc: Likewise.
18032         * tests/test-stdlib-c++.cc: Likewise.
18033         * tests/test-string-c++.cc: Likewise.
18034         * tests/test-sys_ioctl-c++.cc: Likewise.
18035         * tests/test-sys_select-c++.cc: Likewise.
18036         * tests/test-sys_socket-c++.cc: Likewise.
18037         * tests/test-sys_stat-c++.cc: Likewise.
18038         * tests/test-sys_time-c++.cc: Likewise.
18039         * tests/test-time-c++.cc: Likewise.
18040         * tests/test-unistd-c++.cc: Likewise.
18041         * tests/test-wchar-c++.cc: Likewise.
18042         * tests/uninorm/test-u8-nfc.c: Likewise.
18043         * tests/uninorm/test-u8-nfd.c: Likewise.
18044         * tests/uninorm/test-u8-nfkc.c: Likewise.
18045         * tests/uninorm/test-u8-nfkd.c: Likewise.
18046         * tests/uninorm/test-u16-nfc.c: Likewise.
18047         * tests/uninorm/test-u16-nfd.c: Likewise.
18048         * tests/uninorm/test-u16-nfkc.c: Likewise.
18049         * tests/uninorm/test-u16-nfkd.c: Likewise.
18050         * tests/uninorm/test-u32-nfc.c: Likewise.
18051         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18052         * tests/uninorm/test-u32-nfd.c: Likewise.
18053         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18054         * tests/uninorm/test-u32-nfkc.c: Likewise.
18055         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18056         * tests/uninorm/test-u32-nfkd.c: Likewise.
18057         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
18058         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18059
18060 2010-03-27  Bruno Haible  <bruno@clisp.org>
18061
18062         Distinguish two kinds of module indicators.
18063         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
18064         gl_MODULE_INDICATOR.
18065         (gl_MODULE_INDICATOR): New macro.
18066         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18067         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
18068         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18069         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18070         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18071         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18072         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18073         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18074         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18075         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18076         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18077         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18078         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18079         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18080         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18081         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18082         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18083         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18084         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18085         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18086         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18087         * modules/cloexec (configure.ac): Likewise.
18088         * modules/getopt-gnu (configure.ac): Likewise.
18089         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18090         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18091         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18092         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18093
18094 2010-03-27  Bruno Haible  <bruno@clisp.org>
18095
18096         New module description field 'Comment'.
18097         * gnulib-tool: New option --extract-comment.
18098         (func_usage): Document it.
18099         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18100         (func_get_comment): New function.
18101         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18102
18103 2010-03-27  Bruno Haible  <bruno@clisp.org>
18104
18105         Addendum to 2010-02-07 commit.
18106         * gnulib-tool (func_usage): Document --extract-applicability option.
18107
18108 2010-03-27  Bruno Haible  <bruno@clisp.org>
18109
18110         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18111         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18112         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18113         rather than link errors.
18114
18115 2010-03-27  Bruno Haible  <bruno@clisp.org>
18116
18117         Avoid side effects from tests-related modules on the compilation of lib.
18118         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18119         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18120         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18121         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18122         macro.
18123         (func_import): Define a witness macro. Assign it a value that depends
18124         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18125         tests-related modules.
18126         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18127         Reported by Jim Meyering.
18128
18129 2010-03-27  Bruno Haible  <bruno@clisp.org>
18130
18131         Factorize common .m4 code.
18132         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18133         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18134         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18135         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18136         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18137         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18138         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18139         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18140         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18141         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18142         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18143         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18144         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18145         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18146         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18147         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18148         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18149         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18150         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18151         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18152         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18153         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18154         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18155         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18156         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18157         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18158         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18159         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18160         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18161         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18162         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18163         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18164
18165 2010-03-27  Bruno Haible  <bruno@clisp.org>
18166
18167         Fix a compilation error on Cygwin with g++ >= 4.3.
18168         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18169         if it is undefined or if we alias it to chmod.
18170         (lstat): Don't warn about the use of this function if it is undefined
18171         or if we alias it to stat.
18172         Reported by Simon Josefsson.
18173
18174 2010-03-27  Bruno Haible  <bruno@clisp.org>
18175
18176         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18177         * modules/getlogin (configure.ac): Update.
18178
18179         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18180         * modules/getlogin_r (configure.ac): Update.
18181
18182         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18183         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18184         * modules/inet_ntop (configure.ac): Update.
18185
18186         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18187         * modules/inet_pton (configure.ac): Update.
18188
18189         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18190         * modules/mbslen (configure.ac): Update.
18191
18192         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18193         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18194         * modules/forkpty (configure.ac): Update.
18195         * modules/openpty (configure.ac): Update.
18196
18197 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18198
18199         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18200         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18201
18202 2010-03-25  Eric Blake  <eblake@redhat.com>
18203
18204         maint: use pragma consistently across replacement headers
18205         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18206         * lib/dirent.in.h (system_header): Likewise.
18207         * lib/errno.in.h (system_header): Likewise.
18208         * lib/float.in.h (system_header): Likewise.
18209         * lib/getopt.in.h (system_header): Likewise.
18210         * lib/iconv.in.h (system_header): Likewise.
18211         * lib/inttypes.in.h (system_header): Likewise.
18212         * lib/langinfo.in.h (system_header): Likewise.
18213         * lib/locale.in.h (system_header): Likewise.
18214         * lib/math.in.h (system_header): Likewise.
18215         * lib/netdb.in.h (system_header): Likewise.
18216         * lib/netinet_in.in.h (system_header): Likewise.
18217         * lib/pty.in.h (system_header): Likewise.
18218         * lib/sched.in.h (system_header): Likewise.
18219         * lib/se-selinux.in.h (system_header): Likewise.
18220         * lib/search.in.h (system_header): Likewise.
18221         * lib/spawn.in.h (system_header): Likewise.
18222         * lib/stdarg.in.h (system_header): Likewise.
18223         * lib/stdint.in.h (system_header): Likewise.
18224         * lib/string.in.h (system_header): Likewise.
18225         * lib/strings.in.h (system_header): Likewise.
18226         * lib/sys_file.in.h (system_header): Likewise.
18227         * lib/sys_ioctl.in.h (system_header): Likewise.
18228         * lib/sys_socket.in.h (system_header): Likewise.
18229         * lib/sys_times.in.h (system_header): Likewise.
18230         * lib/sys_utsname.in.h (system_header): Likewise.
18231         * lib/sys_wait.in.h (system_header): Likewise.
18232         * lib/sysexits.in.h (system_header): Likewise.
18233         * lib/unistd.in.h (system_header): Likewise.
18234         * lib/wctype.in.h (system_header): Likewise.
18235
18236         arpa/inet: fix mingw compilation warning
18237         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18238         Reported by Matthew Bolte.
18239
18240 2010-03-25  Bruno Haible  <bruno@clisp.org>
18241
18242         Avoid collision between gnulib wrapper and libintl wrapper.
18243         * lib/printf.c (printf): Don't define if a printf wrapper is already
18244         defined in intl/printf.c.
18245         Reported by Michel Boaventura <michel@michelboaventura.com>.
18246
18247 2010-03-25  Bruno Haible  <bruno@clisp.org>
18248
18249         Use ANSI C.
18250         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18251
18252 2010-03-25  Bruno Haible  <bruno@clisp.org>
18253
18254         Minor formatting changes.
18255         * lib/acosl.c: Insert space before function argument list.
18256         * lib/argz.c: Likewise.
18257         * lib/asinl.c: Likewise.
18258         * lib/expl.c: Likewise.
18259         * lib/gen-uni-tables.c: Likewise.
18260         * lib/gettext.h: Likewise.
18261         * lib/glthread/lock.h: Likewise.
18262         * lib/tanl.c: Likewise.
18263         * lib/uniname/uniname.c: Likewise.
18264         * tests/test-idpriv-drop.c: Likewise.
18265         * tests/test-idpriv-droptemp.c: Likewise.
18266         * tests/test-lock.c: Likewise.
18267         * tests/test-tls.c: Likewise.
18268         * lib/argp-help.c: Insert space before function-like macro argument
18269         list.
18270         * lib/memcmp.c: Likewise.
18271         * tests/test-base64.c: Likewise.
18272         * lib/localename.c: Insert space before sizeof's argument list.
18273         * lib/safe-alloc.h: Likewise.
18274         * lib/file-set.h: Insert space before macro argument list.
18275         * tests/test-argp.c: Likewise.
18276         * lib/argp-namefrob.h: Insert space before function parameter list.
18277         * lib/getaddrinfo.c: Likewise.
18278         * lib/netdb.in.h: Likewise.
18279         * lib/parse-duration.h: Likewise.
18280         * lib/parse-duration.c: Likewise.
18281         * lib/poll.c: Likewise.
18282         * lib/select.c: Likewise.
18283         * lib/trim.h: Likewise.
18284         * tests/test-usleep.c: Likewise.
18285         * lib/ldexpl.c: Insert space before function parameter list and before
18286         function argument list.
18287         * lib/logl.c: Likewise.
18288         * lib/sqrtl.c: Likewise.
18289         * lib/trim.c: Likewise.
18290         * lib/cosl.c: Use GNU style indentation. Insert space before function
18291         argument list.
18292         * lib/sinl.c: Likewise.
18293         * lib/tsearch.c: Insert space after 'for'.
18294         Reported by Jim Meyering.
18295
18296 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18297
18298         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18299         config header before grepping, as it's not present before
18300         autoreconf/configure are run.  Reported by Simon Josefsson.
18301
18302 2010-03-23  Bruno Haible  <bruno@clisp.org>
18303
18304         pt_chown: Make it work with automake < 1.11.
18305         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18306         Reported by Simon Josefsson.
18307
18308 2010-03-23  Bruno Haible  <bruno@clisp.org>
18309
18310         pt_chown: Don't depend on GPLed modules.
18311         * lib/pt_chown.c: Don't include idpriv.h.
18312         (main): Don't drop privileges.
18313         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18314         Reported by Simon Josefsson.
18315
18316 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18317
18318         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18319         suggestions from karl@freefriends.org (Karl Berry).
18320
18321 2010-03-22  Eric Blake  <eblake@redhat.com>
18322
18323         gethostname: further tweaks
18324         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18325         are overriding gethostname.
18326         Suggested by Bruno Haible.
18327
18328 2010-03-21  Bruno Haible  <bruno@clisp.org>
18329
18330         Fix comments.
18331         * lib/forkpty.c (rpl_forkpty): Fix comment.
18332         * lib/openpty.c (rpl_openpty): Likewise.
18333         Reported by Eric Blake.
18334
18335 2010-03-22  Eric Blake  <eblake@redhat.com>
18336
18337         gethostname: fix build on mingw
18338         * lib/unistd.in.h (includes): Work around fact that mingw
18339         <winsock2.h> re-includes <unistd.h>, by avoiding any
18340         redeclarations if we are being included by <winsock2.h>.
18341         Reported by Matthias Bolte.
18342
18343 2010-03-21  Bruno Haible  <bruno@clisp.org>
18344
18345         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18346         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18347         modifications.
18348         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18349         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18350         provide the replacement.
18351         * modules/forkpty (Depends-on): Add openpty, login_tty.
18352         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18353         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18354         * doc/glibc-functions/forkpty.texi: More supported platforms.
18355         * config/srclist.txt: Add forkpty.c (commented).
18356
18357 2010-03-21  Bruno Haible  <bruno@clisp.org>
18358
18359         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18360         (Makefile.am): Verify that PTY_LIB is defined.
18361
18362         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18363
18364 2010-03-21  Bruno Haible  <bruno@clisp.org>
18365
18366         Tests for module 'login_tty'.
18367         * modules/login_tty-tests: New file.
18368         * tests/test-login_tty.c: New file.
18369
18370         New module 'login_tty'.
18371         * lib/login_tty.c: New file.
18372         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18373         * modules/login_tty: New file.
18374         * doc/glibc-functions/login_tty.texi: Mention the new module.
18375
18376 2010-03-21  Bruno Haible  <bruno@clisp.org>
18377
18378         login_tty: Documentation.
18379         * doc/glibc-functions/login_tty.texi: New file.
18380         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18381
18382 2010-03-21  Bruno Haible  <bruno@clisp.org>
18383
18384         pty: Consistent macro naming.
18385         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18386         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18387         * modules/pty (configure.ac): Update.
18388
18389 2010-03-21  Bruno Haible  <bruno@clisp.org>
18390
18391         Tests for openpty: Make stricter.
18392         * tests/test-openpty.c (main): Add test of canonical processing and
18393         erase.
18394         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18395
18396         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18397         * lib/openpty.c (openpty): New replacement function.
18398         * lib/pty.in.h: Include <termios.h>.
18399         (openpty): Update declaration. Add comments.
18400         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18401         is not declared, arrange to provide the replacement. Check for _getpty
18402         and posix_openpt.
18403         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18404         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18405         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18406         * modules/pty-tests (test_pty_c___LDADD): New variable.
18407         * doc/glibc-functions/openpty.texi: More supported platforms.
18408
18409 2010-03-21  Bruno Haible  <bruno@clisp.org>
18410
18411         setenv: Tweaks.
18412         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18413         the test program.
18414         * doc/posix-functions/setenv.texi: Update platforms list.
18415
18416 2010-03-21  Bruno Haible  <bruno@clisp.org>
18417
18418         New module 'unlockpt'.
18419         * lib/unlockpt.c: New file, from glibc with modifications.
18420         * m4/unlockpt.m4: New file.
18421         * modules/unlockpt: New file.
18422         * lib/stdlib.in.h (unlockpt): New declaration.
18423         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18424         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18425         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18426         HAVE_UNLOCKPT.
18427         * doc/posix-functions/unlockpt.texi: Mention the new module.
18428         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18429         * config/srclist.txt: Add unlockpt.c (commented).
18430
18431 2010-03-21  Jim Meyering  <meyering@redhat.com>
18432
18433         maint.mk: prohibit inclusion of "intprops.h" without use
18434         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18435
18436 2010-03-21  Bruno Haible  <bruno@clisp.org>
18437
18438         New module 'grantpt'.
18439         * lib/grantpt.c: New file, from glibc with modifications.
18440         * m4/grantpt.m4: New file.
18441         * modules/grantpt: New file.
18442         * lib/stdlib.in.h (grantpt): New declaration.
18443         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18444         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18445         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18446         HAVE_GRANTPT.
18447         * doc/posix-functions/grantpt.texi: Mention the new module.
18448         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18449         * config/srclist.txt: Add grantpt.c (commented).
18450
18451 2010-03-21  Bruno Haible  <bruno@clisp.org>
18452
18453         New module 'pt_chown'.
18454         * lib/pt_chown.c: New file, from glibc with modifications.
18455         * lib/pty-private.h: New file, from glibc with modifications.
18456         * modules/pt_chown: New file.
18457         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18458
18459 2010-03-21  Bruno Haible  <bruno@clisp.org>
18460
18461         Tests for module 'ptsname'.
18462         * modules/ptsname-tests: New file.
18463         * tests/test-ptsname.c: New file.
18464
18465         New module 'ptsname'.
18466         * lib/ptsname.c: New file, from glibc with modifications.
18467         * m4/ptsname.m4: New file.
18468         * modules/ptsname: New file.
18469         * lib/stdlib.in.h (ptsname): New declaration.
18470         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18471         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18472         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18473         HAVE_PTSNAME.
18474         * doc/posix-functions/ptsname.texi: Mention the new module.
18475         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18476         * config/srclist.txt: Add ptsname.c (commented).
18477
18478 2010-03-21  Bruno Haible  <bruno@clisp.org>
18479
18480         Tests for module 'ttyname_r'.
18481         * modules/ttyname_r-tests: New file.
18482         * tests/test-ttyname_r.c: New file.
18483
18484         New module 'ttyname_r'.
18485         * lib/ttyname_r.c: New file.
18486         * m4/ttyname_r.m4: New file.
18487         * modules/ttyname_r: New file.
18488         * lib/unistd.in.h (ttyname_r): New declaration.
18489         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18490         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18491         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18492         HAVE_TTYNAME_R.
18493         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18494         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18495
18496 2010-03-20  Bruno Haible  <bruno@clisp.org>
18497
18498         signal: Undefine macro definitions in C++ mode.
18499         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18500         sigfillset): Undefine macro definitions from the system header in C++
18501         mode.
18502         Reported by John W. Eaton <jwe@gnu.org>.
18503
18504 2010-03-20  Bruno Haible  <bruno@clisp.org>
18505
18506         Ensure no #include statements inside extern "C" { ... }.
18507         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18508         contain #include statements.
18509         * lib/time.in.h: Likewise.
18510
18511 2010-03-20  Bruno Haible  <bruno@clisp.org>
18512
18513         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18514         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18515         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18516         Reported by John W. Eaton <jwe@gnu.org>.
18517
18518 2010-03-20  Bruno Haible  <bruno@clisp.org>
18519
18520         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18521         Reported by Jim Meyering.
18522
18523 2010-03-20  Bruno Haible  <bruno@clisp.org>
18524
18525         pipe: Set errno upon failure.
18526         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18527         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18528         errno value in error message.
18529
18530 2010-03-20  Bruno Haible  <bruno@clisp.org>
18531             Jim Meyering  <meyering@redhat.com>
18532
18533         lchown: Avoid "unused variable" warning.
18534         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18535
18536 2010-03-20  Bruno Haible  <bruno@clisp.org>
18537
18538         Work around unlink() bug on MacOS X 10.5.6.
18539         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18540         attempting to unlink a parent directory.
18541         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18542         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18543         activate for the replacement function.
18544         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18545
18546 2010-03-20  Bruno Haible  <bruno@clisp.org>
18547
18548         Fix link errors on Solaris 8.
18549         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18550         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18551
18552 2010-03-19  Jim Meyering  <meyering@redhat.com>
18553
18554         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18555         The _LIBC implementation of build_range_exp correctly honors the
18556         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18557         However, the non-_LIBC implementation would ignore that syntax-bit
18558         flag and return REG_ERANGE unconditionally.
18559         This change makes it honor that flag.
18560         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18561         Make two pointer parameters "const".
18562         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18563         (parse_bracket_exp): Update caller.
18564
18565         regex.m4: correct the reversed range endpoint ([b-a]) test
18566         * m4/regex.m4: When requiring that [b-a] evoke failure,
18567         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18568         test pass once again for x86-based systems.
18569
18570 2010-03-19  Bruno Haible  <bruno@clisp.org>
18571
18572         scandir: Fix link error on Solaris 8.
18573         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18574         macros.
18575
18576 2010-03-19  Bruno Haible  <bruno@clisp.org>
18577
18578         getusershell: Fix documentation.
18579         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18580         module.
18581         * doc/glibc-functions/setusershell.texi: Likewise.
18582
18583         getusershell: Provide declaration, missing on Solaris 9.
18584         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18585         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18586         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18587         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18589         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18590         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18591         HAVE_GETUSERSHELL.
18592         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18593
18594 2010-03-19  Bruno Haible  <bruno@clisp.org>
18595
18596         wctype: Provide iswblank function.
18597         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18598         exists and is fine.
18599         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18600         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18601         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18602         * doc/posix-functions/iswblank.texi: Update.
18603
18604 2010-03-19  Bruno Haible  <bruno@clisp.org>
18605
18606         Tests of module 'pty' in C++ mode.
18607         * modules/pty-tests: New file.
18608         * tests/test-pty-c++.cc: New file.
18609         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18610
18611 2010-03-19  Eric Blake  <eblake@redhat.com>
18612
18613         logb: fix documentation
18614         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18615         1.5 declaration bug.
18616
18617         forkpty, openpty: prefer glibc's const-safe prototype
18618         * lib/forkpty.c (rpl_forkpty): New file.
18619         * lib/openpty.c (rpl_openpty): Likewise.
18620         * modules/forkpty (Files): Distribute it.
18621         * modules/openpty (Files): Likewise.
18622         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18623         check...
18624         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18625         replacement for for non-const BSD signature.
18626         * modules/pty (Makefile.am): Substitute witnesses.
18627         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18628         * tests/test-forkpty.c: Update signature check.
18629         * tests/test-openpty.c: Likewise.
18630         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18631         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18632
18633         forkpty, openpty: split functions into new modules
18634         * modules/pty (Makefile.am): Substitute new witnesses.
18635         (Libraries): Move library detection...
18636         * modules/forkpty: ...into new module.
18637         * modules/openpty: Another new module.
18638         * modules/pty-tests: Rename and split...
18639         * modules/forkpty-tests: ...to this...
18640         * modules/openpty-tests: ...and this.
18641         * tests/test-pty.c: Rename and split...
18642         * tests/test-forkpty.c: ...to this...
18643         * tests/test-openpty.c: ...and this.
18644         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18645         (gl_PTY): Split library searching...
18646         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18647         (gl_FORKPTY, gl_OPENPTY): New macros.
18648         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18649         * NEWS: Mention the split.
18650         * MODULES.html.sh (Misc): Document the modules.
18651         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18652         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18653
18654         pty: improve replacement header
18655         * lib/pty.in.h: New file.
18656         * modules/pty (Files): Ship it.
18657         (Makefile.am): Always build replacement.
18658         * m4/pty.m4: Rename...
18659         * m4/pty_h.m4: ...to this.
18660         (gl_PTY): Modernize setting of witness macros; update check of
18661         forkpty to take proper advantage of cache.
18662         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18663
18664         getopt: avoid compiler warning
18665         * lib/getopt.c (attribute_hidden): Remove unused macro.
18666
18667 2010-03-18  Bruno Haible  <bruno@clisp.org>
18668
18669         Fix link errors on Solaris 8.
18670         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18671         * modules/search-tests (test_search_c___LDADD): Likewise.
18672         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18673         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18674         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18675         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18676         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18677         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18678         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18679
18680 2010-03-18  Bruno Haible  <bruno@clisp.org>
18681
18682         Fix bug introduced on 2010-03-14.
18683         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18684         (gl_SPAWN_H): Require it.
18685         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18686         Reported by Simon Josefsson.
18687
18688 2010-03-18  Bruno Haible  <bruno@clisp.org>
18689
18690         Fix typo introduced on 2009-12-31.
18691         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18692         posix_spawn_file_actions_adddup2.
18693
18694 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18695         and Eric Blake  <eblake@redhat.com>
18696
18697         test-vc-list-files-git: make more robust
18698         * tests/test-vc-list-files-git.sh: Unset problematic environment
18699         variables.  Chain commands together.
18700
18701 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18702
18703         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18704         `AC_CHECK_DECL' invocation.
18705
18706 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18707
18708         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18709         appears before executable statements. Suggested by Petr Sumbera
18710         <Petr.Sumbera@Sun.COM>.
18711
18712 2010-03-14  Bruno Haible  <bruno@clisp.org>
18713
18714         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18715         portability problems. Instead use a simpler test.
18716         (main): Check that invalid arguments are rejected only on Linux.
18717
18718 2010-03-14  Bruno Haible  <bruno@clisp.org>
18719
18720         Fix bug introduced on 2009-12-31.
18721         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18722         gl_PREREQ_SYS_H_WINSOCK2 always.
18723         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18724         SYS_SOCKET_H variable.
18725         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18726         Update comments.
18727         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18728         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18729         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18730         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18731         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18732
18733 2010-03-14  Bruno Haible  <bruno@clisp.org>
18734
18735         Fix values returned by sinl, cosl.
18736         * lib/trigl.h: Add specification comments.
18737         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18738         that combines the values from the precomputed table with the values of
18739         the Chebyshev polynomials.
18740
18741 2010-03-14  Bruno Haible  <bruno@clisp.org>
18742
18743         Fix compilation error when modules 'posix_spawn[p]' are not used.
18744         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18745         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18746
18747 2010-03-14  Bruno Haible  <bruno@clisp.org>
18748
18749         Fix compilation error on mingw when module 'time_r' is not used.
18750         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18751         is 1.
18752         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18753         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18754         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18755         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18756
18757 2010-03-14  Bruno Haible  <bruno@clisp.org>
18758
18759         Fix compilation error with Sun C.
18760         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
18761         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
18762         instead of GCC specific ULONG_LONG_MAX.
18763         * lib/xstrtoll.c: Likewise.
18764         * lib/xstrtoull.c: Likewise.
18765
18766 2010-03-13  Bruno Haible  <bruno@clisp.org>
18767
18768         Allow the user to disable C++ code and tests.
18769         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
18770         (gl_PROG_ANSI_CXX): Require it.
18771
18772 2010-03-13  Bruno Haible  <bruno@clisp.org>
18773
18774         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
18775         cases.
18776
18777 2010-03-13  Bruno Haible  <bruno@clisp.org>
18778
18779         Test that gnulib does not break the standard C++ headers.
18780         * tests/test-locale-c++2.cc: New file.
18781         * modules/locale-tests (Files): Add it.
18782         (Makefile.am): Compile it for test-locale-c++.
18783         * tests/test-math-c++2.cc: New file.
18784         * modules/math-tests (Files): Add it.
18785         (Makefile.am): Compile it for test-math-c++.
18786         * tests/test-signal-c++2.cc: New file.
18787         * modules/signal-tests (Files): Add it.
18788         (Makefile.am): Compile it for test-signal-c++.
18789         * tests/test-stdio-c++2.cc: New file.
18790         * modules/stdio-tests (Files): Add it.
18791         (Makefile.am): Compile it for test-stdio-c++.
18792         * tests/test-stdlib-c++2.cc: New file.
18793         * modules/stdlib-tests (Files): Add it.
18794         (Makefile.am): Compile it for test-stdlib-c++.
18795         * tests/test-string-c++2.cc: New file.
18796         * modules/string-tests (Files): Add it.
18797         (Makefile.am): Compile it for test-string-c++.
18798         * tests/test-time-c++2.cc: New file.
18799         * modules/time-tests (Files): Add it.
18800         (Makefile.am): Compile it for test-time-c++.
18801         Reported by John W. Eaton <jwe@gnu.org>.
18802
18803 2010-03-13  Bruno Haible  <bruno@clisp.org>
18804
18805         * gnulib-tool (func_usage): Clarify which options are available for
18806         --create-testdir and --create-megatestdir.
18807
18808 2010-03-13  Bruno Haible  <bruno@clisp.org>
18809
18810         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
18811         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
18812         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
18813         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18814         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
18815         when appropriate.
18816         Reported by Jim Meyering.
18817
18818 2010-03-12  Simon Josefsson  <simon@josefsson.org>
18819
18820         * gnulib-tool (func_import): Explain origin of code.
18821
18822 2010-03-12  Bruno Haible  <bruno@clisp.org>
18823
18824         Fix problem with automake's definition of CXXLINK.
18825         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
18826         Reported by Simon Josefsson and Ludovic Courtès.
18827
18828 2010-03-12  Bruno Haible  <bruno@clisp.org>
18829
18830         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
18831         stable releases.
18832
18833 2010-03-11  Bruno Haible  <bruno@clisp.org>
18834
18835         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
18836         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
18837         whether the system provides one variant or multiple variants of the
18838         function.
18839         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
18840         C++ compilers.
18841         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
18842         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
18843         Reported by Jim Meyering.
18844
18845 2010-03-09  Simon Josefsson  <simon@josefsson.org>
18846
18847         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
18848
18849 2010-03-08  Bruno Haible  <bruno@clisp.org>
18850
18851         gnulib-tool: Add support for --libtool in --create-testdir.
18852         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
18853         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
18854
18855 2010-03-08  Eric Blake  <eblake@redhat.com>
18856
18857         gnulib-tool.texi: mention possibility of git submodule
18858         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
18859         submodules.
18860         * doc/.gitignore: Ignore another generated file.
18861
18862 2010-03-08  Karl Berry  <karl@gnu.org>
18863
18864         * doc/gnulib-tool.texi (VCS Issues): Mention third option
18865         of committing gnulib files while skipping others.
18866
18867 2010-03-07  Bruno Haible  <bruno@clisp.org>
18868
18869         Tests of module 'wctype' in C++ mode.
18870         * tests/test-wctype-c++.cc: New file.
18871         * modules/wctype-tests (Files): Add it and tests/signature.h.
18872         (Depends-on): Add ansi-c++-opt.
18873         (Makefile.am): Arrange to compile and run test-wctype-c++.
18874
18875         Tests of module 'wchar' in C++ mode.
18876         * tests/test-wchar-c++.cc: New file.
18877         * modules/wchar-tests (Files): Add it and tests/signature.h.
18878         (Depends-on): Add ansi-c++-opt.
18879         (Makefile.am): Arrange to compile and run test-wchar-c++.
18880         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
18881         gl_MODULE_INDICATOR.
18882
18883         Tests of module 'unistd' in C++ mode.
18884         * tests/test-unistd-c++.cc: New file.
18885         * modules/unistd-tests (Files): Add it and tests/signature.h.
18886         (Depends-on): Add ansi-c++-opt.
18887         (Makefile.am): Arrange to compile and run test-unistd-c++.
18888         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
18889         gl_MODULE_INDICATOR.
18890
18891         Tests of module 'time' in C++ mode.
18892         * tests/test-time-c++.cc: New file.
18893         * modules/time-tests (Files): Add it and tests/signature.h.
18894         (Depends-on): Add ansi-c++-opt.
18895         (Makefile.am): Arrange to compile and run test-time-c++.
18896         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18897
18898         Tests of module 'sys_time' in C++ mode.
18899         * tests/test-sys_time-c++.cc: New file.
18900         * modules/sys_time-tests (Files): Add it and tests/signature.h.
18901         (Depends-on): Add ansi-c++-opt.
18902         (Makefile.am): Arrange to compile and run test-sys_time-c++.
18903         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
18904         gl_MODULE_INDICATOR.
18905
18906         Tests of module 'sys_stat' in C++ mode.
18907         * tests/test-sys_stat-c++.cc: New file.
18908         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
18909         (Depends-on): Add ansi-c++-opt.
18910         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
18911         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
18912         gl_MODULE_INDICATOR.
18913
18914         Tests of module 'sys_socket' in C++ mode.
18915         * tests/test-sys_socket-c++.cc: New file.
18916         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
18917         (Depends-on): Add ansi-c++-opt.
18918         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
18919         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
18920         gl_MODULE_INDICATOR.
18921
18922         Tests of module 'sys_select' in C++ mode.
18923         * tests/test-sys_select-c++.cc: New file.
18924         * modules/sys_select-tests (Files): Add it and tests/signature.h.
18925         (Depends-on): Add ansi-c++-opt.
18926         (Makefile.am): Arrange to compile and run test-sys_select-c++.
18927         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
18928         gl_MODULE_INDICATOR.
18929
18930         Tests of module 'sys_ioctl' in C++ mode.
18931         * tests/test-sys_ioctl-c++.cc: New file.
18932         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
18933         (Depends-on): Add ansi-c++-opt.
18934         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
18935         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
18936         gl_MODULE_INDICATOR.
18937
18938         Tests of module 'string' in C++ mode.
18939         * tests/test-string-c++.cc: New file.
18940         * modules/string-tests (Files): Add it and tests/signature.h.
18941         (Depends-on): Add ansi-c++-opt.
18942         (Makefile.am): Arrange to compile and run test-string-c++.
18943         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
18944         gl_MODULE_INDICATOR.
18945
18946         Tests of module 'stdlib' in C++ mode.
18947         * tests/test-stdlib-c++.cc: New file.
18948         * modules/stdlib-tests (Files): Add it and tests/signature.h.
18949         (Depends-on): Add ansi-c++-opt.
18950         (Makefile.am): Arrange to compile and run test-stdlib-c++.
18951         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
18952         gl_MODULE_INDICATOR.
18953
18954         Tests of module 'stdio' in C++ mode.
18955         * tests/test-stdio-c++.cc: New file.
18956         * modules/stdio-tests (Files): Add it and tests/signature.h.
18957         (Depends-on): Add ansi-c++-opt.
18958         (Makefile.am): Arrange to compile and run test-stdio-c++.
18959         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18960         gl_MODULE_INDICATOR.
18961
18962         Tests of module 'spawn' in C++ mode.
18963         * tests/test-spawn-c++.cc: New file.
18964         * modules/spawn-tests (Files): Add it and tests/signature.h.
18965         (Depends-on): Add ansi-c++-opt.
18966         (Makefile.am): Arrange to compile and run test-spawn-c++.
18967         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18968         gl_MODULE_INDICATOR.
18969
18970         Tests of module 'signal' in C++ mode.
18971         * tests/test-signal-c++.cc: New file.
18972         * modules/signal-tests (Files): Add it and tests/signature.h.
18973         (Depends-on): Add ansi-c++-opt.
18974         (Makefile.am): Arrange to compile and run test-signal-c++.
18975         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18976         gl_MODULE_INDICATOR.
18977
18978         Tests of module 'search' in C++ mode.
18979         * tests/test-search-c++.cc: New file.
18980         * modules/search-tests (Files): Add it and tests/signature.h.
18981         (Depends-on): Add ansi-c++-opt.
18982         (Makefile.am): Arrange to compile and run test-search-c++.
18983         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18984         gl_MODULE_INDICATOR.
18985
18986         Tests of module 'math' in C++ mode.
18987         * tests/test-math-c++.cc: New file.
18988         * modules/math-tests (Files): Add it and tests/signature.h.
18989         (Depends-on): Add ansi-c++-opt.
18990         (Makefile.am): Arrange to compile and run test-math-c++.
18991         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18992
18993         Tests of module 'locale' in C++ mode.
18994         * tests/test-locale-c++.cc: New file.
18995         * modules/locale-tests (Files): Add it and tests/signature.h.
18996         (Depends-on): Add ansi-c++-opt.
18997         (Makefile.am): Arrange to compile and run test-locale-c++.
18998         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
18999         gl_MODULE_INDICATOR.
19000
19001         Tests of module 'langinfo' in C++ mode.
19002         * tests/test-langinfo-c++.cc: New file.
19003         * modules/langinfo-tests (Files): Add it and tests/signature.h.
19004         (Depends-on): Add ansi-c++-opt.
19005         (Makefile.am): Arrange to compile and run test-langinfo-c++.
19006         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
19007         gl_MODULE_INDICATOR.
19008
19009         Tests of module 'iconv-h' in C++ mode.
19010         * tests/test-iconv-h-c++.cc: New file.
19011         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
19012         (Depends-on): Add ansi-c++-opt.
19013         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
19014
19015         Tests of module 'glob' in C++ mode.
19016         * tests/test-glob-c++.cc: New file.
19017         * modules/glob-tests (Files): Add it.
19018         (Depends-on): Add ansi-c++-opt.
19019         (Makefile.am): Arrange to compile and run test-glob-c++.
19020
19021         Tests of module 'fcntl-h' in C++ mode.
19022         * tests/test-fcntl-h-c++.cc: New file.
19023         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
19024         (Depends-on): Add ansi-c++-opt.
19025         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
19026         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
19027         gl_MODULE_INDICATOR.
19028
19029         Tests of module 'dirent' in C++ mode.
19030         * tests/test-dirent-c++.cc: New file.
19031         * modules/dirent-tests (Files): Add it and tests/signature.h.
19032         (Depends-on): Add ansi-c++-opt.
19033         (Makefile.am): Arrange to compile and run test-dirent-c++.
19034         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19035         gl_MODULE_INDICATOR.
19036
19037         New module 'ansi-c++-opt'.
19038         * modules/ansi-c++-opt: New file.
19039         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
19040
19041         Document C++ namespace mode.
19042         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
19043
19044         wctype: Avoid #define replacements in C++ mode.
19045         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
19046         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
19047         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
19048         In C++, define a namespaced alias symbol.
19049         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19050         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19051         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19052         rule.
19053
19054         wchar: Avoid #define replacements in C++ mode.
19055         * lib/wchar.in.h: Include c++defs.h.
19056         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19057         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
19058         symbol.
19059         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
19060         * modules/wchar (Depends-on): Add c++defs.
19061         (Makefile.am): Update wchar.h rule.
19062
19063         unistd: Avoid #define replacements in C++ mode.
19064         * lib/unistd.in.h: Include c++defs.h.
19065         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
19066         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
19067         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
19068         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
19069         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
19070         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
19071         symbol.
19072         (environ): Update.
19073         * modules/unistd (Depends-on): Add c++defs.
19074         (Makefile.am): Update unistd.h rule.
19075
19076         time: Avoid #define replacements in C++ mode.
19077         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
19078         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
19079         define a namespaced alias symbol.
19080         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
19081         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
19082         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
19083         * modules/time (Depends-on): Add c++defs, warn-on-use.
19084         (Makefile.am): Update time.h rule.
19085         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19086         * modules/nanosleep (configure.ac): Likewise.
19087         * modules/strptime (configure.ac): Likewise.
19088         * modules/timegm (configure.ac): Likewise.
19089
19090         sys_time: Avoid #define replacements in C++ mode.
19091         * lib/sys_time.in.h: Include c++defs.h.
19092         (gettimeofday): In C++, define a namespaced alias symbol.
19093         * modules/sys_time (Depends-on): Add c++defs.
19094         (Makefile.am): Update sys/time.h rule.
19095
19096         sys_stat: Avoid #define replacements in C++ mode.
19097         * lib/sys_stat.in.h: Include c++defs.h.
19098         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19099         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19100         namespaced alias symbol.
19101         In C++, define a namespaced alias symbol.
19102         * modules/sys_stat (Depends-on): Add c++defs.
19103         (Makefile.am): Update sys/stat.h rule.
19104
19105         sys_socket: Avoid #define replacements in C++ mode.
19106         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19107         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19108         definitions also when the system has a <sys/socket.h>.
19109         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19110         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19111         In C++, define a namespaced alias symbol.
19112         * modules/sys_socket (Depends-on): Add c++defs.
19113         (Makefile.am): Update sys/socket.h rule.
19114
19115         sys_select: Avoid #define replacements in C++ mode.
19116         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19117         definitions also when the system has a <sys/select.h>.
19118         (select): In C++, define a namespaced alias symbol.
19119         * modules/sys_select (Depends-on): Add c++defs.
19120         (Makefile.am): Update sys/select.h rule.
19121
19122         sys_ioctl: Avoid #define replacements in C++ mode.
19123         * lib/sys_ioctl.in.h: Include c++defs.h.
19124         (ioctl): In C++, define a namespaced alias symbol.
19125         * modules/sys_ioctl (Depends-on): Add c++defs.
19126         (Makefile.am): Update sys/ioctl.h rule.
19127
19128         string: Avoid #define replacements in C++ mode.
19129         * lib/string.in.h: Include c++defs.h.
19130         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19131         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19132         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19133         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19134         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19135         * modules/string (Depends-on): Add c++defs.
19136         (Makefile.am): Update string.h rule.
19137
19138         stdlib: Avoid #define replacements in C++ mode.
19139         * lib/stdlib.in.h: Include c++defs.h.
19140         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19141         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19142         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19143         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19144         symbol.
19145         * modules/stdlib (Depends-on): Add c++defs.
19146         (Makefile.am): Update stdlib.h rule.
19147
19148         stdio: Avoid #define replacements in C++ mode.
19149         * lib/stdio.in.h: Include c++defs.h.
19150         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19151         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19152         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19153         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19154         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19155         namespaced alias symbol.
19156         * modules/stdio (Depends-on): Add c++defs.
19157         (Makefile.am): Update stdio.h rule.
19158
19159         spawn: Avoid #define replacements in C++ mode.
19160         * lib/spawn.in.h: Include c++defs.h.
19161         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19162         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19163         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19164         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19165         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19166         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19167         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19168         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19169         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19170         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19171         In C++, define a namespaced alias symbol.
19172         * modules/spawn (Depends-on): Add c++defs.
19173         (Makefile.am): Update spawn.h rule.
19174
19175         signal: Avoid #define replacements in C++ mode.
19176         * lib/signal.in.h: Include c++defs.h.
19177         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19178         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19179         namespaced alias symbol.
19180         * modules/signal (Depends-on): Add c++defs.
19181         (Makefile.am): Update signal.h rule.
19182
19183         search: Avoid #define replacements in C++ mode.
19184         * lib/search.in.h: Include c++defs.h.
19185         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19186         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19187         symbol.
19188         * modules/search (Depends-on): Add c++defs.
19189         (Makefile.am): Update search.h rule.
19190
19191         math: Avoid #define replacements in C++ mode.
19192         * lib/math.in.h: Include c++defs.h.
19193         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19194         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19195         trunc, truncl): In C++, define a namespaced alias symbol.
19196         * modules/math (Depends-on): Add c++defs.
19197         (Makefile.am): Update math.h rule.
19198
19199         locale: Avoid #define replacements in C++ mode.
19200         * lib/locale.in.h: Include c++defs.h.
19201         (duplocale): In C++, define a namespaced alias symbol.
19202         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19203         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19204         * modules/locale (Depends-on): Add c++defs.
19205         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19206
19207         langinfo: Avoid #define replacements in C++ mode.
19208         * lib/langinfo.in.h: Include c++defs.h.
19209         (nl_langinfo): In C++, define a namespaced alias symbol.
19210         * modules/langinfo (Depends-on): Add c++defs.
19211         (Makefile.am): Update langinfo.h rule.
19212
19213         iconv-h: Avoid #define replacements in C++ mode.
19214         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19215         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19216         symbol.
19217         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19218         whenever iconv is present.
19219         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19220         (Makefile.am): Update iconv.h rule.
19221
19222         glob: Avoid #define replacements in C++ mode.
19223         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19224         (_gl_glob_errfunc_fn): New type.
19225         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19226         symbol.
19227         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19228         (Makefile.am): Update glob.h rule.
19229
19230         fcntl-h: Avoid #define replacements in C++ mode.
19231         * lib/fcntl.in.h: Include c++defs.h.
19232         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19233         * modules/fcntl-h (Depends-on): Add c++defs.
19234         (Makefile.am): Update fcntl.h rule.
19235
19236         dirent: Avoid #define replacements in C++ mode.
19237         * lib/dirent.in.h: Include c++defs.h.
19238         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19239         namespaced alias symbol.
19240         (dirfd): Update declaration.
19241         * modules/dirent (Depends-on): Add c++defs.
19242         (Makefile.am): Update dirent.h rule.
19243
19244         ctype: Make it usable in C++ code.
19245         * lib/ctype.in.h: Include c++defs.h.
19246         (isblank): Declare as extern "C".
19247         * modules/ctype (Depends-on): Add c++defs.
19248         (Makefile.am): Update ctype.h rule.
19249
19250         New module 'c++defs'.
19251         * modules/c++defs: New file.
19252         * build-aux/c++defs.h: New file.
19253         Reported by John W. Eaton <jwe@gnu.org>.
19254
19255 2010-03-07  Bruno Haible  <bruno@clisp.org>
19256
19257         logb: Provide missing declaration for Cygwin.
19258         * lib/math.in.h (logb): New declaration.
19259         * m4/logb.m4: New file.
19260         * modules/logb (Files): Add m4/logb.m4.
19261         (Depends-on): Add math.
19262         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19263         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19265         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19266         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19267
19268 2010-03-07  Bruno Haible  <bruno@clisp.org>
19269
19270         Fix test-cond link error.
19271         * tests/test-cond.c: Include <stdio.h>.
19272
19273 2010-03-07  Bruno Haible  <bruno@clisp.org>
19274
19275         Fix test-dirent-safer link error.
19276         * modules/dirent-safer-tests (Makefile.am): Define
19277         test_dirent_safer_LDADD.
19278
19279 2010-03-07  Bruno Haible  <bruno@clisp.org>
19280
19281         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19282         among default module list.
19283
19284 2010-03-07  Bruno Haible  <bruno@clisp.org>
19285
19286         Fix link error on platforms with GNU libiconv.
19287         * modules/unistr/u8-strcoll-tests (Makefile): Define
19288         test_u8_strcoll_LDADD.
19289         * modules/unistr/u16-strcoll-tests (Makefile): Define
19290         test_u16_strcoll_LDADD.
19291         * modules/unistr/u32-strcoll-tests (Makefile): Define
19292         test_u32_strcoll_LDADD.
19293
19294 2010-03-07  Bruno Haible  <bruno@clisp.org>
19295
19296         Use POSIX declarations for socket functions.
19297         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19298         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19299         rpl_sendto): Change declaration to match POSIX.
19300         * lib/connect.c (rpl_connect): Likewise.
19301         * lib/accept.c (rpl_accept): Likewise.
19302         * lib/bind.c (rpl_bind): Likewise.
19303         * lib/getpeername.c (rpl_getpeername): Likewise.
19304         * lib/getsockname.c (rpl_getsockname): Likewise.
19305         * lib/recv.c (rpl_recv): Likewise.
19306         * lib/send.c (rpl_send): Likewise.
19307         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19308         * lib/sendto.c (rpl_sendto): Likewise.
19309
19310 2010-03-06  Bruno Haible  <bruno@clisp.org>
19311
19312         Clarify access, euidaccess, faccessat.
19313         * doc/posix-functions/faccessat.texi: Mention security problem under
19314         "Other problems", not "Portability problems".
19315         * doc/posix-functions/access.texi: Likewise. Mention a related security
19316         problem.
19317         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19318         * lib/euidaccess.c: Add comments about platforms.
19319         * lib/unistd.in.h (access, euidaccess): Add warnings.
19320
19321 2010-03-07  Bruno Haible  <bruno@clisp.org>
19322
19323         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19324         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19325         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19326         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19327         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19328         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19329         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19330         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19331         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19332         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19333         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19334         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19335         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19336         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19337         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19338         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19339         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19340         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19341         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19342         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19343         Likewise.
19344         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19345         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19346         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19347         Likewise.
19348         * tests/test-spawn.c (main): Make it work when
19349         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19350
19351 2010-03-07  Bruno Haible  <bruno@clisp.org>
19352
19353         Fix incorrect Makefile.am generation in German locale.
19354         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19355         Execute sed command with character range in C locale.
19356
19357 2010-03-06  Bruno Haible  <bruno@clisp.org>
19358
19359         Tests for module 'iconv-h'.
19360         * modules/iconv-h-tests: New file.
19361         * tests/test-iconv-h.c: New file.
19362
19363         New module 'iconv-h'.
19364         * modules/iconv-h: New file.
19365         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19366         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19367         (configure.ac): Remove gl_ICONV_H.
19368         (Makefile.am): Remove rule for iconv.h.
19369
19370 2010-03-06  Bruno Haible  <bruno@clisp.org>
19371
19372         More consistent naming of *.m4 files.
19373         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19374         * modules/wctype (Files): Update.
19375
19376         More consistent naming of *.m4 files.
19377         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19378         * modules/wchar (Files): Update.
19379
19380 2010-03-06  Jim Meyering  <meyering@redhat.com>
19381
19382         euidaccess: relax license to LGPLv2+
19383         * modules/euidaccess (License): Relax to LGPLv2+.
19384
19385 2010-03-06  Bruno Haible  <bruno@clisp.org>
19386
19387         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19388         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19389         (Makefile.am): Augment lib_SOURCES instead.
19390
19391 2010-03-04  Jim Meyering  <meyering@redhat.com>
19392
19393         utime: remove obsolete module
19394         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19395         unnecessary for years, and has been marked as obsolete for 10 months.
19396         * modules/utime: Remove file.
19397         * lib/utime.c: Remove file.
19398         * m4/utime.m4: Remove file.
19399         * m4/utimes-null.m4: Remove file.
19400         * doc/posix-functions/utime.texi (utime): Remove reference to
19401         the module.  Move the sole "fixed by gnulib" item into the
19402         "problems not fixed by Gnulib" list.
19403         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19404
19405 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19406
19407         * modules/exit (License): Relax license to LGPLv2+.
19408         (Status): Mark as obsolete.
19409         * NEWS: Mention deprecated 'exit' module.
19410         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19411         of now obsolete 'exit'.
19412
19413 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19414
19415         fts-lgpl: remove unused module
19416         * modules/fts-lgpl: Remove.
19417         * MODULES.html.sh (func_all_modules): Adjust.
19418         * check-module (find_included_lib_files): Adjust.
19419         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19420
19421 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19422
19423         copy-acl: enhance Solaris ACL error handling
19424         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19425         * lib/set-mode-acl.c (qset_acl): Likewise.
19426
19427 2010-03-02  Bruno Haible  <bruno@clisp.org>
19428
19429         spawn: Don't override the system defined values on FreeBSD 8.
19430         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19431         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19432         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19433         if HAVE_POSIX_SPAWN is 1.
19434         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19435
19436 2010-03-01  Bruno Haible  <bruno@clisp.org>
19437
19438         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19439         regarding Automake.
19440
19441 2010-02-25  Bruno Haible  <bruno@clisp.org>
19442
19443         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19444         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19445         setting, not afterwards.
19446         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19447
19448 2010-02-24  Eric Blake  <eblake@redhat.com>
19449
19450         bootstrap, git-version-gen: use timestamp
19451         * build-aux/git-version-gen (scriptversion): Force UTC.
19452         * build-aux/bootstrap (scriptversion): New variable.
19453
19454         bootstrap: allow older git
19455         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19456         older than 1.6.4.  Requested by the libvirt project.
19457
19458 2010-02-23  Eric Blake  <eblake@redhat.com>
19459
19460         warn-on-use: work with old autoconf
19461         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19462         AS_VAR semantics of autoconf 2.60.
19463         Reported by Bruno Haible.
19464
19465         bootstrap: improve some comments
19466         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19467         clarification comments.
19468
19469         gettimeofday: provide correct function
19470         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19471         when replacement is declared, otherwise provide gettimeofday.
19472         Reported by Michael Goffioul.
19473
19474 2010-02-23  Jim Meyering  <meyering@redhat.com>
19475
19476         lib-ignore: relax license to "unlimited", not LGPLv2+
19477         * modules/lib-ignore (License): Relax to "unlimited".
19478
19479 2010-02-23  Jim Meyering  <meyering@redhat.com>
19480
19481         lib-ignore: relax license to LGPLv2+
19482         * modules/lib-ignore (License): Relax to LGPLv2+.
19483
19484 2010-02-22  Eric Blake  <eblake@redhat.com>
19485
19486         lseek: avoid bash 3.2 broken pipe bug
19487         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19488         warning from bash 3.2.
19489         Reported by Ben Pfaff, with analysis from Bruno Haible.
19490
19491         bootstrap: support non-FSF copyright holder
19492         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19493         bootstrap.conf override of COPYRIGHT_HOLDER.
19494         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19495
19496         bootstrap: interoperate with gettext 0.14.1
19497         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19498
19499         bootstrap: allow for alternate submodule location
19500         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19501         hardcoding submodule location.
19502         (gnulib_mk): Allow direct use of Makefile.am.
19503
19504         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19505         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19506         rather than reconfiguring where the submodule points.
19507
19508         gettimeofday: restore support for platforms that lack function
19509         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19510         replacement if function is missing.
19511         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19512         * modules/sys_time (Makefile.am): Substitute it.
19513         * lib/sys_time.in.h (gettimeofday): Check it.
19514         Reported by Michael Goffioul.
19515
19516 2010-02-21  Bruno Haible  <bruno@clisp.org>
19517
19518         * lib/stdio.in.h (obstack_printf): Fix typo.
19519
19520 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19521
19522         vc-list-files: use bzr ls's -R option
19523         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19524         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19525
19526 2010-02-21  Jim Meyering  <meyering@redhat.com>
19527
19528         init.sh: fix EXEEXT shims to work also for names like test-prog
19529         * tests/init.sh: Re-exec a better shell, when needed.
19530         If the current shell lacks support for posix $(...), an init.sh-using
19531         test will now try to find a shell that supports that.  If EXEEXT is
19532         nonempty, we also require support for hyphen-in-alias-name and shell
19533         substitutions like ${var#glob}.  Failure to find such a shell results
19534         in a skipped test.
19535
19536 2010-02-21  Bruno Haible  <bruno@clisp.org>
19537
19538         Really work around around "broken pipe" error message from bash 3.2.
19539         * gnulib-tool (func_reset_sigpipe): Remove function.
19540         (echo): In bash 3.2, define to a function that uses printf.
19541         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19542
19543 2010-02-20  Bruno Haible  <bruno@clisp.org>
19544
19545         Restore support for automake 1.9.6 with autoconf 2.61.
19546         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19547         Reported by James Youngman <jay@gnu.org>.
19548
19549 2010-02-20  Bruno Haible  <bruno@clisp.org>
19550
19551         Improve *printf warning condition.
19552         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19553         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19554         and the function is overridden due to SIGPIPE emulation.
19555
19556 2010-02-20  Bruno Haible  <bruno@clisp.org>
19557
19558         * lib/stdio.in.h: Tweak comments.
19559
19560 2010-02-19  Bruno Haible  <bruno@clisp.org>
19561
19562         Make it easier to find modules. New gnulib-tool option '--find'.
19563         * gnulib-tool: New option --find.
19564         (func_usage): Document it.
19565         (func_sanitize_modulelist): New function, extracted from
19566         func_all_modules.
19567         (func_all_modules): Invoke it.
19568         * doc/gnulib-tool.texi (Which modules?): New node.
19569
19570 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19571
19572         * lib/sys_select.in.h: Provide select replacement even if
19573         sys/select.h exists on a system, for Interix.
19574
19575 2010-02-18  Jim Meyering  <meyering@redhat.com>
19576
19577         init.sh: don't use $(...) just yet
19578         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19579         to accommodate e.g., Solaris' /bin/sh.
19580
19581 2010-02-17  Bruno Haible  <bruno@clisp.org>
19582
19583         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19584         Reported by Ludovic Courtès <ludo@gnu.org>.
19585
19586 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19587
19588         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19589         linking with -lintl.
19590
19591 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19592
19593         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19594         if not provided by the system's netdb.h.  Reported by
19595         ludo@gnu.org (Ludovic Courtès).
19596
19597 2010-02-15  Jim Meyering  <meyering@redhat.com>
19598
19599         init.sh: improve portability and efficiency
19600         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19601         "dummy" in a for loop.
19602         Use '!', not '^' to select the complement of a character set used
19603         in a "case" statement.
19604         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19605         Suggestions from Eric Blake.
19606
19607         init.sh: automatically accommodate programs with the .exe suffix
19608         Automatically arrange for an invocation of "prog" to execute the
19609         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19610         may use the simpler "prog", yet still work when built on a system
19611         that requires specifying the added suffix.
19612         Do this by constructing a function named "prog" that invokes
19613         "prog.exe" for each .exe file in selected directories.
19614         * tests/init.sh (find_exe_basenames_): New function.
19615         (create_exe_shim_functions_): New function.
19616         (path_prepend_): Use it.
19617
19618         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19619         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19620         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19621
19622 2010-02-14  Jim Meyering  <meyering@redhat.com>
19623
19624         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19625         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19626         (sc_prohibit_hash_pjw_without_use): New rule.
19627
19628         maint.mk: allow the default upload destination dir to be overridden
19629         * top/maint.mk (upload_dest_dir_): Define with a default that
19630         preserves the status quo.
19631         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19632         Reported by Peter Simons.
19633
19634         maint.mk: prohibit inclusion of "hash.h" without_use
19635         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19636
19637 2010-02-10  Jim Meyering  <meyering@redhat.com>
19638
19639         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19640         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19641
19642 2010-02-09  Eric Blake  <ebb9@byu.net>
19643         and Bruno Haible  <bruno@clisp.org>
19644
19645         obstack-printf-posix: ensure declaration
19646         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19647         extracted from gl_FUNC_OBSTACK_PRINTF.
19648         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19649         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19650         Likewise.
19651         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19652         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19653         0.
19654
19655 2010-02-08  Bruno Haible  <bruno@clisp.org>
19656
19657         gnulib-tool: Fix typo in 2010-02-07 commit.
19658         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19659         Reported by Eric Blake.
19660
19661 2010-02-07  Bruno Haible  <bruno@clisp.org>
19662
19663         gnulib-tool: Fix up caching patches.
19664         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19665         option --no-cache. Use associative arrays when supported by the shell.
19666         (sed_comments): New variable.
19667         (modcache): Renamed from do_cache.
19668         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19669         abbreviate unnecessarily.
19670         (have_associative): New variable.
19671         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19672         way also for ksh and zsh.
19673         (func_init_sed_convert_to_cache_statements): New function, extracted
19674         from func_cache_lookup_module. Add support for associative arrays.
19675         Don't set the c_MODULE_cached variable here. Ignore all lines before
19676         the first field header. Remove only the final newline, not all trailing
19677         newlines. Support empty fields correctly. Limit the use of 'eval' to
19678         assignments.
19679         (func_get_description, func_get_status, func_get_notice,
19680         func_get_applicability, func_get_filelist, func_get_dependencies,
19681         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19682         func_get_automake_snippet, func_get_include_directive,
19683         func_get_link_directive, func_get_license, func_get_maintainer):
19684         Update documentation. List the unoptimized code first. Add support for
19685         associative arrays. Limit the use of 'eval' to assignments.
19686         (func_get_applicability): Undo stylistic pessimisations.
19687         (func_get_automake_snippet, func_get_include_directive): Reduce code
19688         duplication.
19689         (func_modules_transitive_closure, func_modules_add_dummy,
19690         func_modules_notice, func_modules_to_filelist, func_add_file,
19691         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19692         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19693         func_create_testdir, func_create_megatestdir): Update documentation.
19694
19695 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19696
19697         * gnulib-tool (func_cache_lookup_module): Store the module name
19698         belonging to the cache variable; error out if two different
19699         module names map to the same cache variable name.
19700
19701 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19702
19703         gnulib-tool: Make caching optional.
19704         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19705         Update matching short versions of --no-changelog.
19706         (func_usage): Update.
19707         (sed_extract_cache_prog): Renamed from ...
19708         (sed_extract_prog): ... this; revert to old extraction script.
19709         (func_get_description, func_get_status)
19710         (func_get_notice, func_get_applicability, func_get_filelist)
19711         (func_get_dependencies, func_get_autoconf_early_snippet)
19712         (func_get_autoconf_snippet, func_get_automake_snippet)
19713         (func_get_include_directive, func_get_link_directive)
19714         (func_get_license, func_get_maintainer): If $do_cache is false,
19715         use old, non-caching extraction scripts.
19716         Suggestion by Bruno Haible.
19717
19718 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19719
19720         gnulib-tool: cache module metainformation.
19721         * gnulib-tool (sed_extract_prog): Match newline before each
19722         header, and rewrite header to a shell variable suffix.
19723         (func_cache_var, func_cache_lookup_module): New functions,
19724         to turn a module name into a cache variable prefix, and to
19725         look up and cache module metainformation.
19726         (func_get_description, func_get_status)
19727         (func_get_notice, func_get_applicability, func_get_filelist)
19728         (func_get_dependencies, func_get_autoconf_early_snippet)
19729         (func_get_autoconf_snippet, func_get_automake_snippet)
19730         (func_get_include_directive, func_get_link_directive)
19731         (func_get_license, func_get_maintainer): Use
19732         func_cache_lookup_module.
19733
19734 2010-02-07  Bruno Haible  <bruno@clisp.org>
19735
19736         fnctl: Fix missing dependency.
19737         * modules/fcntl (Depends-on): Add getdtablesize.
19738         Reported by John W. Eaton <jwe@gnu.org>.
19739
19740 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19741
19742         Argp: fix recognition of short alias options.
19743
19744         * lib/argp-parse.c (convert_options): Fix improper use of
19745         `|' between character values.
19746         * tests/test-argp.c (group1_option): New alias option
19747         --read (-r).
19748         (group1_parser): Special handling for 'r'.
19749         (test15): New test case.
19750         (test_fun): Add test15.
19751         * tests/test-argp-2.sh: Update expected --help and --usage
19752         outputs.
19753
19754 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19755
19756         * tests/test-argp.c: Fix indentation.
19757
19758 2010-02-04  Eric Blake  <ebb9@byu.net>
19759
19760         gettimeofday: expose type of second argument
19761         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
19762         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
19763         * tests/test-gettimeofday.c: Use it to silence warning.
19764         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
19765         the issue.
19766
19767 2010-02-03  Jim Meyering  <meyering@redhat.com>
19768
19769         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
19770         * lib/regcomp.c (TYPE_SIGNED): Define.
19771         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
19772
19773         regcomp.c: avoid a new -Wshadow warning
19774         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
19775
19776 2010-02-01  Jim Meyering  <meyering@redhat.com>
19777
19778         removing useless parentheses in cpp #define directives
19779         For motivation, see commit c0221df4, "define STREQ(a,b)
19780         consistently, removing useless parentheses"
19781         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
19782         * lib/mountlist.c (MNT_IGNORE): Likewise.
19783         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
19784
19785 2010-02-01  Eric Blake  <ebb9@byu.net>
19786
19787         sys_time: use link-warning
19788         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
19789         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
19790         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
19791         * modules/sys_time (Depends-on): Add warn-on-use.
19792         (Makefile.am): Always build replacement.
19793         (configure.ac): Update substitutions.
19794         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
19795         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
19796         bother with SYS_TIME_H.
19797         * modules/gettimeofday (configure.ac): Declare indicator.
19798         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
19799         in use.
19800
19801         closein-tests: silence compiler warning
19802         * tests/test-closein.c (main): Ignore fread result.
19803         * modules/closein-tests (Depends-on): Add ignore-value.
19804
19805         tests: silence warning about system return
19806         * tests/test-areadlink-with-size.c (main): Ignore system result.
19807         * tests/test-areadlink.c (main): Likewise.
19808         * tests/test-areadlinkat-with-size.c (main): Likewise.
19809         * tests/test-areadlinkat.c (main): Likewise.
19810         * tests/test-canonicalize-lgpl.c (main): Likewise.
19811         * tests/test-canonicalize.c (main): Likewise.
19812         * tests/test-chown.c (main): Likewise.
19813         * tests/test-fchownat.c (main): Likewise.
19814         * tests/test-fdutimensat.c (main): Likewise.
19815         * tests/test-fstatat.c (main): Likewise.
19816         * tests/test-futimens.c (main): Likewise.
19817         * tests/test-lchown.c (main): Likewise.
19818         * tests/test-link.c (main): Likewise.
19819         * tests/test-linkat.c (main): Likewise.
19820         * tests/test-lstat.c (main): Likewise.
19821         * tests/test-mkdir.c (main): Likewise.
19822         * tests/test-mkdirat.c (main): Likewise.
19823         * tests/test-mkfifo.c (main): Likewise.
19824         * tests/test-mkfifoat.c (main): Likewise.
19825         * tests/test-mknod.c (main): Likewise.
19826         * tests/test-readlink.c (main): Likewise.
19827         * tests/test-remove.c (main): Likewise.
19828         * tests/test-rename.c (main): Likewise.
19829         * tests/test-renameat.c (main): Likewise.
19830         * tests/test-rmdir.c (main): Likewise.
19831         * tests/test-symlink.c (main): Likewise.
19832         * tests/test-symlinkat.c (main): Likewise.
19833         * tests/test-unlink.c (main): Likewise.
19834         * tests/test-unlinkat.c (main): Likewise.
19835         * tests/test-utimens.c (main): Likewise.
19836         * tests/test-utimensat.c (main): Likewise.
19837         * modules/areadlink-tests (Depends-on): Add ignore-value.
19838         * modules/areadlink-with-size-tests (Depends-on): Likewise.
19839         * modules/areadlinkat-tests (Depends-on): Likewise.
19840         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
19841         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19842         * modules/canonicalize-tests (Depends-on): Likewise.
19843         * modules/chown-tests (Depends-on): Likewise.
19844         * modules/fdutimensat-tests (Depends-on): Likewise.
19845         * modules/futimens-tests (Depends-on): Likewise.
19846         * modules/lchown-tests (Depends-on): Likewise.
19847         * modules/link-tests (Depends-on): Likewise.
19848         * modules/linkat-tests (Depends-on): Likewise.
19849         * modules/lstat-tests (Depends-on): Likewise.
19850         * modules/mkdir-tests (Depends-on): Likewise.
19851         * modules/mkfifo-tests (Depends-on): Likewise.
19852         * modules/mkfifoat-tests (Depends-on): Likewise.
19853         * modules/mknod-tests (Depends-on): Likewise.
19854         * modules/openat-tests (Depends-on): Likewise.
19855         * modules/readlink-tests (Depends-on): Likewise.
19856         * modules/remove-tests (Depends-on): Likewise.
19857         * modules/rename-tests (Depends-on): Likewise.
19858         * modules/renameat-tests (Depends-on): Likewise.
19859         * modules/rmdir-tests (Depends-on): Likewise.
19860         * modules/symlink-tests (Depends-on): Likewise.
19861         * modules/symlinkat-tests (Depends-on): Likewise.
19862         * modules/unlink-tests (Depends-on): Likewise.
19863         * modules/utimens-tests (Depends-on): Likewise.
19864         * modules/utimensat-tests (Depends-on): Likewise.
19865
19866 2010-01-31  Bruno Haible  <bruno@clisp.org>
19867
19868         Perform the same test for many <math.h> functions.
19869         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
19870         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
19871         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
19872         of gl_MATHFUNC.
19873         * modules/acos (configure.ac): Likewise.
19874         * modules/asin (configure.ac): Likewise.
19875         * modules/atan (configure.ac): Likewise.
19876         * modules/atan2 (configure.ac): Likewise.
19877         * modules/cbrt (configure.ac): Likewise.
19878         * modules/copysign (configure.ac): Likewise.
19879         * modules/cos (configure.ac): Likewise.
19880         * modules/cosh (configure.ac): Likewise.
19881         * modules/erf (configure.ac): Likewise.
19882         * modules/erfc (configure.ac): Likewise.
19883         * modules/exp (configure.ac): Likewise.
19884         * modules/fmod (configure.ac): Likewise.
19885         * modules/hypot (configure.ac): Likewise.
19886         * modules/j0 (configure.ac): Likewise.
19887         * modules/j1 (configure.ac): Likewise.
19888         * modules/jn (configure.ac): Likewise.
19889         * modules/lgamma (configure.ac): Likewise.
19890         * modules/log (configure.ac): Likewise.
19891         * modules/log10 (configure.ac): Likewise.
19892         * modules/log1p (configure.ac): Likewise.
19893         * modules/pow (configure.ac): Likewise.
19894         * modules/remainder (configure.ac): Likewise.
19895         * modules/sin (configure.ac): Likewise.
19896         * modules/sinh (configure.ac): Likewise.
19897         * modules/tan (configure.ac): Likewise.
19898         * modules/tanh (configure.ac): Likewise.
19899         * modules/y0 (configure.ac): Likewise.
19900         * modules/y1 (configure.ac): Likewise.
19901         * modules/yn (configure.ac): Likewise.
19902         Suggested by Paolo Bonzini.
19903
19904 2010-01-31  Bruno Haible  <bruno@clisp.org>
19905
19906         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
19907
19908 2010-01-31  Bruno Haible  <bruno@clisp.org>
19909
19910         Work around getdelim() bug on FreeBSD 8.0.
19911         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
19912         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
19913         not work.
19914         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
19915         is 1.
19916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
19917         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
19918         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
19919         a non-zero size.
19920         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
19921
19922 2010-01-31  Bruno Haible  <bruno@clisp.org>
19923
19924         Work around getline() bug on FreeBSD 8.0.
19925         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
19926         and a non-zero size.
19927         * tests/test-getline.c (main): Likewise.
19928         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
19929         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
19930
19931 2010-01-28  Eric Blake  <ebb9@byu.net>
19932
19933         regex: fix build failure
19934         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
19935         platforms.
19936
19937 2010-01-28  Jim Meyering  <meyering@redhat.com>
19938
19939         regex: do not ignore memory allocation failure
19940         * lib/regex_internal.c (create_cd_newstate): Detect
19941         re_node_set_init_copy failure.   Extracted from glibc commit
19942         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19943
19944         regex: sync more white-space changes from libc
19945         * lib/regex_internal.c: White-space only changes.
19946         * lib/regexec.c: Likewise.
19947
19948         regex: add many uses of __attribute_warn_unused_result__
19949         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
19950         * lib/regexec.c: Likewise.
19951         Extracted from a messy glibc commit.
19952
19953         regcomp.c: spelling and merge-artifact from glibc
19954         * lib/regcomp.c: Merge remainder of glibc's
19955         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19956
19957         regcomp.c: sync white-space changes from glibc
19958         * lib/regcomp.c: Merge to accommodate white space
19959         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19960
19961         regcomp.c: do not ignore internal return values
19962         * lib/regcomp.c: Do not ignore internal return values.
19963         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19964         but without its white-space changes and spelling fixes.
19965
19966         regex_internal.h: define __attribute_warn_unused_result__
19967         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19968
19969         maint: add a syntax-check rule to check for vulnerable Makefile.in
19970         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19971
19972 2010-01-27  Jim Meyering  <meyering@redhat.com>
19973
19974         ncftpput-ftp: clean up spaces
19975         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19976         Remove trailing blanks.
19977
19978 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19979
19980         * build-aux/git-version-gen: Fix copyright statement.
19981         * build-aux/gnupload: Likewise.
19982         * tests/test-arcfour.c: Likewise.
19983         * tests/test-arctwo.c: Likewise.
19984         * tests/test-count-one-bits.c: Likewise.
19985         * tests/test-crc.c: Likewise.
19986         * tests/test-des.c: Likewise.
19987         * tests/test-gc-arcfour.c: Likewise.
19988         * tests/test-gc-arctwo.c: Likewise.
19989         * tests/test-gc-des.c: Likewise.
19990         * tests/test-gc-hmac-md5.c: Likewise.
19991         * tests/test-gc-hmac-sha1.c: Likewise.
19992         * tests/test-gc-md2.c: Likewise.
19993         * tests/test-gc-md4.c: Likewise.
19994         * tests/test-gc-md5.c: Likewise.
19995         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19996         * tests/test-gc-rijndael.c: Likewise.
19997         * tests/test-gc-sha1.c: Likewise.
19998         * tests/test-gc.c: Likewise.
19999         * tests/test-gethostname.c: Likewise.
20000         * tests/test-gettimeofday.c: Likewise.
20001         * tests/test-hash.c: Likewise.
20002         * tests/test-hmac-md5.c: Likewise.
20003         * tests/test-hmac-sha1.c: Likewise.
20004         * tests/test-md2.c: Likewise.
20005         * tests/test-md4.c: Likewise.
20006         * tests/test-md5.c: Likewise.
20007         * tests/test-memchr.c: Likewise.
20008         * tests/test-memchr2.c: Likewise.
20009         * tests/test-memcmp.c: Likewise.
20010         * tests/test-memmem.c: Likewise.
20011         * tests/test-memrchr.c: Likewise.
20012         * tests/test-rawmemchr.c: Likewise.
20013         * tests/test-read-file.c: Likewise.
20014         * tests/test-rijndael.c: Likewise.
20015         * tests/test-sockets.c: Likewise.
20016         * tests/test-strchrnul.c: Likewise.
20017         * tests/test-strstr.c: Likewise.
20018         * tests/test-strtod.c: Likewise.
20019         * build-aux/ncftpput-ftp: Likewise.
20020
20021 2010-01-26  Eric Blake  <ebb9@byu.net>
20022
20023         ignore-value: update recommended header name
20024         * modules/ignore-value (Include): Only use <> for headers that
20025         exist in glibc.
20026
20027 2010-01-26  Jim Meyering  <meyering@redhat.com>
20028
20029         test-userspec.c: avoid compiler warnings
20030         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
20031         and "initialization discards qualifiers..." warnings.
20032         Put the first "uid" in its own scope, and make char* members "const".
20033
20034 2010-01-25  Bruno Haible  <bruno@clisp.org>
20035
20036         gnulib-tool: Make warning diagnostics consistent.
20037         * gnulib-tool (func_warning): New function.
20038         Use it everywhere where gnulib-tool produces output to stderr and it is
20039         not a fatal error.
20040
20041 2010-01-25  Bruno Haible  <bruno@clisp.org>
20042
20043         Fix test dependencies.
20044         * modules/xstrtol-tests (Depends-on): Add inttypes.
20045         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
20046
20047 2010-01-25 Pádraig Brady <P@draigBrady.com>
20048
20049         syntax-check: detect incorrect boolean macro values in config.h
20050         * modules/maintainer-makefile (configure.ac): Parameterize the location
20051         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20052         The logic is from Eric Blake and the location indicated by Jim Meyering.
20053         Note the more natural CONFIG_HEADER name is prohibited by automake
20054         for backwards compatibility reasons.
20055         * top/maint.mk (sc_Wundef_boolean): New rule.
20056
20057 2010-01-25  Jim Meyering  <meyering@redhat.com>
20058
20059         bootstrap: detect MacOS 10.6's shasum, too
20060         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
20061         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
20062
20063 2010-01-23  Jim Meyering  <meyering@redhat.com>
20064
20065         xstrtoll: new module
20066         * modules/xstrtoll: New file.
20067         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
20068         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
20069         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
20070         ./configure fails if you use this module and lack "long long".
20071         * modules/xstrtoll-tests: New module.
20072         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
20073         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
20074         new init.sh-based test framework.
20075
20076 2010-01-24  Bruno Haible  <bruno@clisp.org>
20077
20078         Tests for module 'yn'.
20079         * modules/yn-tests: New file.
20080         * tests/test-yn.c: New file.
20081
20082         Tests for module 'y1'.
20083         * modules/y1-tests: New file.
20084         * tests/test-y1.c: New file.
20085
20086         Tests for module 'y0'.
20087         * modules/y0-tests: New file.
20088         * tests/test-y0.c: New file.
20089
20090         Tests for module 'tanh'.
20091         * modules/tanh-tests: New file.
20092         * tests/test-tanh.c: New file.
20093
20094         Tests for module 'tan'.
20095         * modules/tan-tests: New file.
20096         * tests/test-tan.c: New file.
20097
20098         Tests for module 'sqrt'.
20099         * modules/sqrt-tests: New file.
20100         * tests/test-sqrt.c: New file.
20101
20102         Tests for module 'sinh'.
20103         * modules/sinh-tests: New file.
20104         * tests/test-sinh.c: New file.
20105
20106         Tests for module 'sin'.
20107         * modules/sin-tests: New file.
20108         * tests/test-sin.c: New file.
20109
20110         Tests for module 'rint'.
20111         * modules/rint-tests: New file.
20112         * tests/test-rint.c: New file.
20113
20114         Tests for module 'remainder'.
20115         * modules/remainder-tests: New file.
20116         * tests/test-remainder.c: New file.
20117
20118         Tests for module 'pow'.
20119         * modules/pow-tests: New file.
20120         * tests/test-pow.c: New file.
20121
20122         Tests for module 'nextafter'.
20123         * modules/nextafter-tests: New file.
20124         * tests/test-nextafter.c: New file.
20125
20126         Tests for module 'modf'.
20127         * modules/modf-tests: New file.
20128         * tests/test-modf.c: New file.
20129
20130         Tests for module 'logb'.
20131         * modules/logb-tests: New file.
20132         * tests/test-logb.c: New file.
20133
20134         Tests for module 'log1p'.
20135         * modules/log1p-tests: New file.
20136         * tests/test-log1p.c: New file.
20137
20138         Tests for module 'log10'.
20139         * modules/log10-tests: New file.
20140         * tests/test-log10.c: New file.
20141
20142         Tests for module 'log'.
20143         * modules/log-tests: New file.
20144         * tests/test-log.c: New file.
20145
20146         Tests for module 'lgamma'.
20147         * modules/lgamma-tests: New file.
20148         * tests/test-lgamma.c: New file.
20149
20150         Tests for module 'ldexp'.
20151         * modules/ldexp-tests: New file.
20152         * tests/test-ldexp.c: New file.
20153
20154         Tests for module 'jn'.
20155         * modules/jn-tests: New file.
20156         * tests/test-jn.c: New file.
20157
20158         Tests for module 'j1'.
20159         * modules/j1-tests: New file.
20160         * tests/test-j1.c: New file.
20161
20162         Tests for module 'j0'.
20163         * modules/j0-tests: New file.
20164         * tests/test-j0.c: New file.
20165
20166         Tests for module 'hypot'.
20167         * modules/hypot-tests: New file.
20168         * tests/test-hypot.c: New file.
20169
20170         Tests for module 'fmod'.
20171         * modules/fmod-tests: New file.
20172         * tests/test-fmod.c: New file.
20173
20174         Tests for module 'fabs'.
20175         * modules/fabs-tests: New file.
20176         * tests/test-fabs.c: New file.
20177
20178         Tests for module 'exp'.
20179         * modules/exp-tests: New file.
20180         * tests/test-exp.c: New file.
20181
20182         Tests for module 'erfc'.
20183         * modules/erfc-tests: New file.
20184         * tests/test-erfc.c: New file.
20185
20186         Tests for module 'erf'.
20187         * modules/erf-tests: New file.
20188         * tests/test-erf.c: New file.
20189
20190         Tests for module 'cosh'.
20191         * modules/cosh-tests: New file.
20192         * tests/test-cosh.c: New file.
20193
20194         Tests for module 'cos'.
20195         * modules/cos-tests: New file.
20196         * tests/test-cos.c: New file.
20197
20198         Tests for module 'copysign'.
20199         * modules/copysign-tests: New file.
20200         * tests/test-copysign.c: New file.
20201
20202         Tests for module 'cbrt'.
20203         * modules/cbrt-tests: New file.
20204         * tests/test-cbrt.c: New file.
20205
20206         Tests for module 'atan2'.
20207         * modules/atan2-tests: New file.
20208         * tests/test-atan2.c: New file.
20209
20210         Tests for module 'atan'.
20211         * modules/atan-tests: New file.
20212         * tests/test-atan.c: New file.
20213
20214         Tests for module 'asin'.
20215         * modules/asin-tests: New file.
20216         * tests/test-asin.c: New file.
20217
20218         Tests for module 'acos'.
20219         * modules/acos-tests: New file.
20220         * tests/test-acos.c: New file.
20221
20222 2010-01-24  Bruno Haible  <bruno@clisp.org>
20223
20224         Fix tests for common <math.h> functions.
20225         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20226         code snippet that references the function pointer, rather than merely
20227         calling the function. Substitute the FUNC_LIBM variable.
20228         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20229         * modules/acos (configure.ac): Likewise.
20230         * modules/asin (configure.ac): Likewise.
20231         * modules/atan (configure.ac): Likewise.
20232         * modules/atan2 (configure.ac): Likewise.
20233         * modules/cbrt (configure.ac): Likewise.
20234         * modules/copysign (configure.ac): Likewise.
20235         * modules/cos (configure.ac): Likewise.
20236         * modules/cosh (configure.ac): Likewise.
20237         * modules/erf (configure.ac): Likewise.
20238         * modules/erfc (configure.ac): Likewise.
20239         * modules/exp (configure.ac): Likewise.
20240         * modules/fabs (configure.ac): Likewise.
20241         * modules/fmod (configure.ac): Likewise.
20242         * modules/hypot (configure.ac): Likewise.
20243         * modules/j0 (configure.ac): Likewise.
20244         * modules/j1 (configure.ac): Likewise.
20245         * modules/jn (configure.ac): Likewise.
20246         * modules/ldexp (configure.ac): Likewise.
20247         * modules/lgamma (configure.ac): Likewise.
20248         * modules/log (configure.ac): Likewise.
20249         * modules/log10 (configure.ac): Likewise.
20250         * modules/log1p (configure.ac): Likewise.
20251         * modules/logb (configure.ac): Likewise.
20252         * modules/modf (configure.ac): Likewise.
20253         * modules/nextafter (configure.ac): Likewise.
20254         * modules/pow (configure.ac): Likewise.
20255         * modules/remainder (configure.ac): Likewise.
20256         * modules/rint (configure.ac): Likewise.
20257         * modules/sin (configure.ac): Likewise.
20258         * modules/sinh (configure.ac): Likewise.
20259         * modules/tan (configure.ac): Likewise.
20260         * modules/tanh (configure.ac): Likewise.
20261         * modules/y0 (configure.ac): Likewise.
20262         * modules/y1 (configure.ac): Likewise.
20263         * modules/yn (configure.ac): Likewise.
20264
20265 2010-01-24  Bruno Haible  <bruno@clisp.org>
20266
20267         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20268         * tests/test-acosl.c (x): New variable.
20269         (main): Store argument in x and fetch it from x.
20270         * tests/test-asinl.c (x): New variable.
20271         (main): Store argument in x and fetch it from x.
20272         * tests/test-atanl.c (x): New variable.
20273         (main): Store argument in x and fetch it from x.
20274         * tests/test-cosl.c (x): New variable.
20275         (main): Store argument in x and fetch it from x.
20276         * tests/test-expl.c (x): New variable.
20277         (main): Store argument in x and fetch it from x.
20278         * tests/test-logl.c (x): New variable.
20279         (main): Store argument in x and fetch it from x.
20280         * tests/test-sinl.c (x): New variable.
20281         (main): Store argument in x and fetch it from x.
20282         * tests/test-sqrtl.c (x): New variable.
20283         (main): Store argument in x and fetch it from x.
20284         * tests/test-tanl.c (x): New variable.
20285         (main): Store argument in x and fetch it from x.
20286
20287 2010-01-24  Bruno Haible  <bruno@clisp.org>
20288
20289         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20290         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20291         assignments to the initial TESTS_ENVIRONMENT.
20292         * doc/gnulib.texi (Unit test modules): Document it.
20293         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20294         TESTS_ENVIRONMENT.
20295         * modules/btowc-tests (Makefile.am): Likewise.
20296         * modules/c-stack-tests (Makefile.am): Likewise.
20297         * modules/c-strcase-tests (Makefile.am): Likewise.
20298         * modules/copy-file-tests (Makefile.am): Likewise.
20299         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20300         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20301         * modules/mbrtowc-tests (Makefile.am): Likewise.
20302         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20303         * modules/mbscasestr-tests (Makefile.am): Likewise.
20304         * modules/mbschr-tests (Makefile.am): Likewise.
20305         * modules/mbscspn-tests (Makefile.am): Likewise.
20306         * modules/mbsinit-tests (Makefile.am): Likewise.
20307         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20308         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20309         * modules/mbspbrk-tests (Makefile.am): Likewise.
20310         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20311         * modules/mbsrchr-tests (Makefile.am): Likewise.
20312         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20313         * modules/mbsspn-tests (Makefile.am): Likewise.
20314         * modules/mbsstr-tests (Makefile.am): Likewise.
20315         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20316         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20317         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20318         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20319         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20320         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20321         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20322         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20323         * modules/wcrtomb-tests (Makefile.am): Likewise.
20324         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20325         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20326         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20327         assignments from TESTS_ENVIRONMENT.
20328         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20329         augmentation.
20330         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20331         * modules/atexit-tests (Makefile.am): Likewise.
20332         * modules/binary-io-tests (Makefile.am): Likewise.
20333         * modules/closein-tests (Makefile.am): Likewise.
20334         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20335         * modules/exclude-tests (Makefile.am): Likewise.
20336         * modules/fflush-tests (Makefile.am): Likewise.
20337         * modules/fpending-tests (Makefile.am): Likewise.
20338         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20339         * modules/freadahead-tests (Makefile.am): Likewise.
20340         * modules/freadptr-tests (Makefile.am): Likewise.
20341         * modules/freadseek-tests (Makefile.am): Likewise.
20342         * modules/fseek-tests (Makefile.am): Likewise.
20343         * modules/fseeko-tests (Makefile.am): Likewise.
20344         * modules/ftell-tests (Makefile.am): Likewise.
20345         * modules/ftello-tests (Makefile.am): Likewise.
20346         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20347         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20348         * modules/lseek-tests (Makefile.am): Likewise.
20349         * modules/parse-duration-tests (Makefile.am): Likewise.
20350         * modules/perror-tests (Makefile.am): Likewise.
20351         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20352         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20353         * modules/pipe-tests (Makefile.am): Likewise.
20354         * modules/pread-tests (Makefile.am): Likewise.
20355         * modules/printf-posix-tests (Makefile.am): Likewise.
20356         * modules/select-tests (Makefile.am): Likewise.
20357         * modules/sigpipe-tests (Makefile.am): Likewise.
20358         * modules/tsearch-tests (Makefile.am): Likewise.
20359         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20360         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20361         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20362         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20363         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20364         * modules/version-etc-tests (Makefile.am): Likewise.
20365         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20366         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20367         * modules/xalloc-die-tests (Makefile.am): Likewise.
20368         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20369         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20370         * modules/xstrtol-tests (Makefile.am): Likewise.
20371         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20372         * modules/yesno-tests (Makefile.am): Likewise.
20373         Suggested by Jim Meyering.
20374
20375 2010-01-24  Bruno Haible  <bruno@clisp.org>
20376
20377         More documentation.
20378         * doc/gnulib.texi (Writing modules): New chapter.
20379         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20380         the new chapter.
20381
20382 2010-01-24  Jim Meyering  <meyering@redhat.com>
20383
20384         maint.mk: do not prepend "./" after filtering
20385         * top/maint.mk (_prepend_srcdir_prefix): New variable
20386         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20387         "./" when $(srcdir) is ".".
20388
20389         define STREQ(a,b) consistently, removing useless parentheses
20390         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20391         since the only risk is that "a" or "b" contains an unparenthesized
20392         comma, but if either did that, STREQ would have 3 or more arguments.
20393         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20394         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20395         * lib/hash-triple.c (STREQ): Likewise.
20396         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20397         * lib/getugroups.c (STREQ): Likewise.
20398
20399 2010-01-23  Jim Meyering  <meyering@redhat.com>
20400
20401         maint.mk: fix syntax-check in a non-srcdir build directory
20402         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20403         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20404
20405 2010-01-22  Jim Meyering  <meyering@redhat.com>
20406
20407         userspec: add unit tests
20408         * tests/test-userspec.c: New file.
20409         * modules/userspec-tests: Likewise.
20410
20411 2010-01-21  Jim Meyering  <meyering@redhat.com>
20412
20413         maint.mk: handle source file names containing "." robustly
20414         * top/maint.mk (_dot_escaped_srcdir): Define.
20415         (VC_LIST): Use it in LHS of sed substitution.
20416
20417 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20418
20419         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20420         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20421         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20422         from a non-srcdir build.
20423
20424 2010-01-20  Eric Blake  <ebb9@byu.net>
20425
20426         warn-on-use: use instead of link-warning
20427         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20428         * modules/unistd (Depends-on, Makefile.am): Likewise.
20429         * modules/arpa_inet (Depends-on): Replace link-warning with
20430         warn-on-use.
20431         (Makefile.am): Update rules accordingly.
20432         * modules/ctype (Depends-on, Makefile.am): Likewise.
20433         * modules/dirent (Depends-on, Makefile.am): Likewise.
20434         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20435         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20436         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20437         * modules/locale (Depends-on, Makefile.am): Likewise.
20438         * modules/math (Depends-on, Makefile.am): Likewise.
20439         * modules/search (Depends-on, Makefile.am): Likewise.
20440         * modules/signal (Depends-on, Makefile.am): Likewise.
20441         * modules/spawn (Depends-on, Makefile.am): Likewise.
20442         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20443         * modules/string (Depends-on, Makefile.am): Likewise.
20444         * modules/strings (Depends-on, Makefile.am): Likewise.
20445         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20446         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20447         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20448         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20449         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20450         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20451         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20452         * modules/wchar (Depends-on, Makefile.am): Likewise.
20453         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20454         should be poisoned.
20455         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20456         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20457         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20458         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20459         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20460         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20461         * m4/math_h.m4 (gl_MATH_H): Likewise.
20462         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20463         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20464         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20465         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20466         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20467         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20468         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20469         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20470         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20471         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20472         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20473         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20474         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20475         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20476         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20477         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20478         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20479         GL_LINK_WARNING.
20480         * lib/ctype.in.h: Likewise.
20481         * lib/dirent.in.h: Likewise.
20482         * lib/fcntl.in.h: Likewise.
20483         * lib/inttypes.in.h: Likewise.
20484         * lib/langinfo.in.h: Likewise.
20485         * lib/locale.in.h: Likewise.
20486         * lib/math.in.h: Likewise.
20487         * lib/search.in.h: Likewise.
20488         * lib/signal.in.h: Likewise.
20489         * lib/spawn.in.h: Likewise.
20490         * lib/stdio.in.h: Likewise.
20491         * lib/stdlib.in.h: Likewise.
20492         * lib/string.in.h: Likewise.
20493         * lib/strings.in.h: Likewise.
20494         * lib/sys_file.in.h: Likewise.
20495         * lib/sys_ioctl.in.h: Likewise.
20496         * lib/sys_select.in.h: Likewise.
20497         * lib/sys_socket.in.h: Likewise.
20498         * lib/sys_stat.in.h: Likewise.
20499         * lib/sys_times.in.h: Likewise.
20500         * lib/sys_utsname.in.h: Likewise.
20501         * lib/unistd.in.h: Likewise.
20502         * lib/wchar.in.h: Likewise.
20503
20504 2010-01-20  Bruno Haible  <bruno@clisp.org>
20505
20506         Avoid duplicate -lm.
20507         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20508         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20509         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20510         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20511         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20512         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20513         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20514         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20515         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20516         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20517         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20518         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20519         Reported by Paolo Bonzini.
20520
20521 2010-01-19  Bruno Haible  <bruno@clisp.org>
20522
20523         langinfo, nl_langinfo: Relicense under LGPLv2+.
20524         * modules/langinfo (License): Change to LGPLv2+.
20525         * modules/nl_langinfo (License): Likewise.
20526         Patch by David Lutterkort <lutter@redhat.com>.
20527
20528 2010-01-19  Bruno Haible  <bruno@clisp.org>
20529
20530         Avoid compilation error with cc on OSF/1 5.1.
20531         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20532         statement, not before.
20533         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20534
20535 2010-01-18  Bruno Haible  <bruno@clisp.org>
20536
20537         Avoid a link error due to the __printf__ symbol.
20538         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20539         and 2.6.x.
20540         (__format__, __printf__): Remove definitions.
20541         * lib/argp-fmtstream.h: Likewise.
20542         * lib/argp.h: Likewise.
20543         * lib/error.h: Likewise.
20544         * lib/vasnprintf.h: Likewise.
20545         * lib/xprintf.h: Likewise.
20546         * lib/xvasprintf.h: Likewise.
20547         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20548
20549 2010-01-18  Bruno Haible  <bruno@clisp.org>
20550
20551         Tests for module 'tanl'.
20552         * modules/tanl-tests: New file.
20553         * tests/test-tanl.c: New file.
20554
20555         Tests for module 'sqrtl'.
20556         * modules/sqrtl-tests: New file.
20557         * tests/test-sqrtl.c: New file.
20558
20559         Tests for module 'sinl'.
20560         * modules/sinl-tests: New file.
20561         * tests/test-sinl.c: New file.
20562
20563         Tests for module 'logl'.
20564         * modules/logl-tests: New file.
20565         * tests/test-logl.c: New file.
20566
20567         Tests for module 'expl'.
20568         * modules/expl-tests: New file.
20569         * tests/test-expl.c: New file.
20570
20571         Tests for module 'cosl'.
20572         * modules/cosl-tests: New file.
20573         * tests/test-cosl.c: New file.
20574
20575         Tests for module 'atanl'.
20576         * modules/atanl-tests: New file.
20577         * tests/test-atanl.c: New file.
20578
20579         Tests for module 'asinl'.
20580         * modules/asinl-tests: New file.
20581         * tests/test-asinl.c: New file.
20582
20583         Tests for module 'acosl'.
20584         * modules/acosl-tests: New file.
20585         * tests/test-acosl.c: New file.
20586
20587         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20588         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20589         tanl): Use the standard gnulib idiom.
20590         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20591         * lib/sinl.c: Likewise.
20592         * lib/tanl.c: Don't include trigl.c.
20593         (kernel_tanl): Make static.
20594         * lib/sincosl.c: Include trigl.h first.
20595         * lib/trigl.c: Likewise.
20596         * m4/acosl.m4: New file.
20597         * m4/asinl.m4: New file.
20598         * m4/atanl.m4: New file.
20599         * m4/cosl.m4: New file.
20600         * m4/expl.m4: New file.
20601         * m4/logl.m4: New file.
20602         * m4/sinl.m4: New file.
20603         * m4/sqrtl.m4: New file.
20604         * m4/tanl.m4: New file.
20605         * m4/mathl.m4: Remove file.
20606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20607         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20608         Don't initialize GNULIB_MATHL.
20609         * modules/acosl: New file.
20610         * modules/asinl: New file.
20611         * modules/atanl: New file.
20612         * modules/cosl: New file.
20613         * modules/expl: New file.
20614         * modules/logl: New file.
20615         * modules/sinl: New file.
20616         * modules/sqrtl: New file.
20617         * modules/tanl: New file.
20618         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20619         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20620         substitute GNULIB_MATHL.
20621         * modules/mathl: Rewritten.
20622         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20623         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20624         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20625         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20626         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20627         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20628         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20629         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20630         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20631
20632 2010-01-18  Bruno Haible  <bruno@clisp.org>
20633
20634         sqrt: Make gl_FUNC_SQRT requirable.
20635         * m4/sqrt.m4: New file.
20636         * modules/sqrt (Files): Add it.
20637         (configure.ac): Invoke gl_FUNC_SQRT.
20638
20639 2010-01-18  Bruno Haible  <bruno@clisp.org>
20640
20641         New modules for common <math.h> functions.
20642         * m4/mathfunc.m4: New file.
20643         * modules/acos: New file.
20644         * modules/asin: New file.
20645         * modules/atan: New file.
20646         * modules/atan2: New file.
20647         * modules/cbrt: New file.
20648         * modules/copysign: New file.
20649         * modules/cos: New file.
20650         * modules/cosh: New file.
20651         * modules/erf: New file.
20652         * modules/erfc: New file.
20653         * modules/exp: New file.
20654         * modules/fabs: New file.
20655         * modules/fmod: New file.
20656         * modules/hypot: New file.
20657         * modules/j0: New file.
20658         * modules/j1: New file.
20659         * modules/jn: New file.
20660         * modules/ldexp: New file.
20661         * modules/lgamma: New file.
20662         * modules/log: New file.
20663         * modules/log10: New file.
20664         * modules/log1p: New file.
20665         * modules/logb: New file.
20666         * modules/modf: New file.
20667         * modules/nextafter: New file.
20668         * modules/pow: New file.
20669         * modules/remainder: New file.
20670         * modules/rint: New file.
20671         * modules/sin: New file.
20672         * modules/sinh: New file.
20673         * modules/sqrt: New file.
20674         * modules/tan: New file.
20675         * modules/tanh: New file.
20676         * modules/y0: New file.
20677         * modules/y1: New file.
20678         * modules/yn: New file.
20679         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20680         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20681         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20682         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20683         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20684         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20685         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20686         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20687         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20688         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20689         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20690         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20691         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20692         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20693         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20694         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20695         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20696         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20697         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20698         * doc/posix-functions/log.texi: Mention the 'log' module.
20699         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20700         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20701         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20702         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20703         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20704         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20705         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20706         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20707         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20708         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20709         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20710         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20711         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20712         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20713         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20714         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20715
20716 2010-01-18  Jim Meyering  <meyering@redhat.com>
20717
20718         ignore-value: relax license to LGPLv2+
20719         * modules/ignore-value (License): Relax to LGPLv2+.
20720
20721         getdate: don't leak when TZ contains two or more '"'s
20722         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20723         double quote in TZ after the first one.
20724
20725         readtokens: do not leak internal token_lengths buffer
20726         * lib/readtokens.c (readtokens): Free the local, lengths,
20727         when the supplied "token_lengths" parameter is NULL.
20728
20729 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20730
20731         Fix a couple of missing LIBTHREAD link failures on AIX.
20732         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20733         $(LIBTHREAD).
20734         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20735
20736         Link test-poll against INET_PTON_LIB.
20737         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20738         for inet_pton on Solaris 10.
20739
20740 2010-01-17  Bruno Haible  <bruno@clisp.org>
20741
20742         unistdio/*-sprintf: Fix typo in module description.
20743         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20744         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20745         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20746         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20747         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20748         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20749         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20750         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20751
20752 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20753
20754         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20755         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20756         variables in shell case patterns, for AIX and HP-UX ksh.
20757
20758         Split large sed scripts, for HP-UX sed.
20759         * modules/stdio: Split sed scripts around 50 sed commands,
20760         to avoid HP-UX limit of 99 commands, in the near future.
20761         * modules/string: Likewise.
20762         * modules/unistd: Likewise.
20763
20764         gnulib-tool: avoid writing in the current directory.
20765         * gnulib-tool (func_emit_lib_Makefile_am)
20766         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
20767         not in the current directory, so concurrent gnulib-tool
20768         instances do not interfere.
20769
20770 2010-01-16  Jim Meyering  <meyering@redhat.com>
20771
20772         doc: update users.txt
20773         * users.txt: Add grep.
20774         (diffutils, gzip): Update URLs.
20775
20776 2010-01-12  Bruno Haible  <bruno@clisp.org>
20777
20778         posix_spawn: Avoid test failure on Cygwin.
20779         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
20780         characters.
20781         Reported by Simon Josefsson.
20782
20783 2010-01-12  Bruno Haible  <bruno@clisp.org>
20784
20785         * tests/test-cond.c (main): When skipping the test, show the reason.
20786
20787 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20788
20789         * lib/striconv.c (str_cd_iconv): Avoid if before free.
20790
20791 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20792
20793         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
20794         VC_LIST_ALWAYS_EXCLUDE_REGEX.
20795
20796 2010-01-12  Eric Blake  <ebb9@byu.net>
20797
20798         build: guarantee AS_VAR_IF
20799         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
20800         (gl_AS_VAR_IF): Move...
20801         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
20802         Reported by Simon Josefsson.
20803
20804 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20805
20806         * lib/stdio.in.h: Fix typo.
20807
20808 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20809
20810         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
20811         libgpg-error.
20812
20813 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20814
20815         * tests/test-xalloc-die.sh: Use $EXEEXT.
20816
20817 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20818             Bruno Haible  <bruno@clisp.org>
20819
20820         getlogin, getlogin_r: Avoid test failure.
20821         * tests/test-getlogin.c: Include <stdio.h>.
20822         (main): Skip the test when the function fails because stdin is not a
20823         tty.
20824         * tests/test-getlogin_r.c: Include <stdio.h>.
20825         (main): Skip the test when the function fails because stdin is not a
20826         tty.
20827
20828 2010-01-11  Eric Blake  <ebb9@byu.net>
20829
20830         tests: avoid more large file warnings
20831         * tests/test-fflush.c: Avoid warning about ftell use.
20832         * tests/test-fseek.c: Avoid warning about fseek use.
20833
20834 2010-01-10  Bruno Haible  <bruno@clisp.org>
20835
20836         nproc: Work better on Linux when /proc and /sys are not mounted.
20837         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
20838         as lower bound when, on glibc/Linux systems,
20839         sysconf (_SC_NPROCESSORS_CONF) returns 1.
20840         Suggested by Pádraig Brady <P@draigbrady.com>.
20841         Reported by Dmitry V. Levin <ldv@altlinux.org>.
20842
20843         nproc: Refactor.
20844         * lib/nproc.c (num_processors_via_affinity_mask): New function,
20845         extracted from num_processors.
20846         (num_processors): Call it.
20847
20848 2010-01-11  Jim Meyering  <meyering@redhat.com>
20849
20850         utimecmp: avoid new warning from upcoming gcc-4.5.0
20851         * lib/utimecmp.c (BILLION): Define using #define rather than an
20852         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
20853
20854 2010-01-11  Eric Blake  <ebb9@byu.net>
20855
20856         math: add portability warnings for classification macros
20857         * modules/math (Depends-on): Add warn-on-use.
20858         (Makefile.am): Provide new substitutions.
20859         * m4/math_h.m4 (gl_MATH_H): Require inline.
20860         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
20861         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
20862         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
20863         implement warnings.
20864
20865         unistd: warn on use of environ without module
20866         * modules/unistd (Depends-on): Add warn-on-use.
20867         (Makefile.am): Provide new substitutions.
20868         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
20869         * lib/unistd.in.h (environ): Wrap with a warning helper function.
20870
20871         stdio: warn on suspicious uses
20872         * modules/stdio (Depends-on): Add warn-on-use.
20873         (Makefile.am): Provide new substitutions.
20874         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
20875         fseeko.
20876         * lib/stdio.in.h (gets): Always warn on use.
20877         (fseek, ftell): Adjust when warnings are issued, and honor
20878         _GL_NO_LARGE_FILES as a way to silence the warning.
20879         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
20880         any warning about large file offsets.
20881         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
20882         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
20883         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
20884         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
20885         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
20886         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
20887         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
20888         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
20889
20890         warn-on-use: new module
20891         * modules/warn-on-use: New file.
20892         * build-aux/warn-on-use.h: Likewise.
20893         * m4/warn-on-use.m4: Likewise.
20894         * MODULES.html.sh (Support for building): Mention it.
20895
20896 2010-01-10  Bruno Haible  <bruno@clisp.org>
20897
20898         Tests for module 'unistr/u32-strdup'.
20899         * modules/unistr/u32-strdup-tests: New file.
20900         * tests/unistr/test-u32-strdup.c: New file.
20901
20902         Tests for module 'unistr/u16-strdup'.
20903         * modules/unistr/u16-strdup-tests: New file.
20904         * tests/unistr/test-u16-strdup.c: New file.
20905
20906         Tests for module 'unistr/u8-strdup'.
20907         * modules/unistr/u8-strdup-tests: New file.
20908         * tests/unistr/test-u8-strdup.c: New file.
20909         * tests/unistr/test-strdup.h: New file.
20910
20911         Tests for module 'unistr/u32-strncmp'.
20912         * modules/unistr/u32-strncmp-tests: New file.
20913         * tests/unistr/test-u32-strncmp.c: New file.
20914
20915         Tests for module 'unistr/u16-strncmp'.
20916         * modules/unistr/u16-strncmp-tests: New file.
20917         * tests/unistr/test-u16-strncmp.c: New file.
20918
20919         Tests for module 'unistr/u8-strncmp'.
20920         * modules/unistr/u8-strncmp-tests: New file.
20921         * tests/unistr/test-u8-strncmp.c: New file.
20922         * tests/unistr/test-strncmp.h: New file.
20923
20924         Tests for module 'unistr/u32-strcoll'.
20925         * modules/unistr/u32-strcoll-tests: New file.
20926         * tests/unistr/test-u32-strcoll.c: New file.
20927
20928         Tests for module 'unistr/u16-strcoll'.
20929         * modules/unistr/u16-strcoll-tests: New file.
20930         * tests/unistr/test-u16-strcoll.c: New file.
20931
20932         Tests for module 'unistr/u8-strcoll'.
20933         * modules/unistr/u8-strcoll-tests: New file.
20934         * tests/unistr/test-u8-strcoll.c: New file.
20935
20936         Tests for module 'unistr/u32-strcmp'.
20937         * modules/unistr/u32-strcmp-tests: New file.
20938         * tests/unistr/test-u32-strcmp.c: New file.
20939         * tests/unistr/test-u32-strcmp.h: New file.
20940
20941         Tests for module 'unistr/u16-strcmp'.
20942         * modules/unistr/u16-strcmp-tests: New file.
20943         * tests/unistr/test-u16-strcmp.c: New file.
20944         * tests/unistr/test-u16-strcmp.h: New file.
20945
20946         Tests for module 'unistr/u8-strcmp'.
20947         * modules/unistr/u8-strcmp-tests: New file.
20948         * tests/unistr/test-u8-strcmp.c: New file.
20949         * tests/unistr/test-u8-strcmp.h: New file.
20950         * tests/unistr/test-strcmp.h: New file.
20951
20952         Tests for module 'unistr/u32-strncat'.
20953         * modules/unistr/u32-strncat-tests: New file.
20954         * tests/unistr/test-u32-strncat.c: New file.
20955
20956         Tests for module 'unistr/u16-strncat'.
20957         * modules/unistr/u16-strncat-tests: New file.
20958         * tests/unistr/test-u16-strncat.c: New file.
20959
20960         Tests for module 'unistr/u8-strncat'.
20961         * modules/unistr/u8-strncat-tests: New file.
20962         * tests/unistr/test-u8-strncat.c: New file.
20963         * tests/unistr/test-strncat.h: New file.
20964
20965         Tests for module 'unistr/u32-strcat'.
20966         * modules/unistr/u32-strcat-tests: New file.
20967         * tests/unistr/test-u32-strcat.c: New file.
20968
20969         Tests for module 'unistr/u16-strcat'.
20970         * modules/unistr/u16-strcat-tests: New file.
20971         * tests/unistr/test-u16-strcat.c: New file.
20972
20973         Tests for module 'unistr/u8-strcat'.
20974         * modules/unistr/u8-strcat-tests: New file.
20975         * tests/unistr/test-u8-strcat.c: New file.
20976         * tests/unistr/test-strcat.h: New file.
20977
20978         Tests for module 'unistr/u32-stpncpy'.
20979         * modules/unistr/u32-stpncpy-tests: New file.
20980         * tests/unistr/test-u32-stpncpy.c: New file.
20981
20982         Tests for module 'unistr/u16-stpncpy'.
20983         * modules/unistr/u16-stpncpy-tests: New file.
20984         * tests/unistr/test-u16-stpncpy.c: New file.
20985
20986         Tests for module 'unistr/u8-stpncpy'.
20987         * modules/unistr/u8-stpncpy-tests: New file.
20988         * tests/unistr/test-u8-stpncpy.c: New file.
20989         * tests/unistr/test-stpncpy.h: New file.
20990
20991         Tests for module 'unistr/u32-strncpy'.
20992         * modules/unistr/u32-strncpy-tests: New file.
20993         * tests/unistr/test-u32-strncpy.c: New file.
20994
20995         Tests for module 'unistr/u16-strncpy'.
20996         * modules/unistr/u16-strncpy-tests: New file.
20997         * tests/unistr/test-u16-strncpy.c: New file.
20998
20999         Tests for module 'unistr/u8-strncpy'.
21000         * modules/unistr/u8-strncpy-tests: New file.
21001         * tests/unistr/test-u8-strncpy.c: New file.
21002         * tests/unistr/test-strncpy.h: New file.
21003
21004         Tests for module 'unistr/u32-stpcpy'.
21005         * modules/unistr/u32-stpcpy-tests: New file.
21006         * tests/unistr/test-u32-stpcpy.c: New file.
21007
21008         Tests for module 'unistr/u16-stpcpy'.
21009         * modules/unistr/u16-stpcpy-tests: New file.
21010         * tests/unistr/test-u16-stpcpy.c: New file.
21011
21012         Tests for module 'unistr/u8-stpcpy'.
21013         * modules/unistr/u8-stpcpy-tests: New file.
21014         * tests/unistr/test-u8-stpcpy.c: New file.
21015         * tests/unistr/test-stpcpy.h: New file.
21016
21017         Tests for module 'unistr/u32-strcpy'.
21018         * modules/unistr/u32-strcpy-tests: New file.
21019         * tests/unistr/test-u32-strcpy.c: New file.
21020
21021         Tests for module 'unistr/u16-strcpy'.
21022         * modules/unistr/u16-strcpy-tests: New file.
21023         * tests/unistr/test-u16-strcpy.c: New file.
21024
21025         Tests for module 'unistr/u8-strcpy'.
21026         * modules/unistr/u8-strcpy-tests: New file.
21027         * tests/unistr/test-u8-strcpy.c: New file.
21028         * tests/unistr/test-strcpy.h: New file.
21029
21030         Tests for module 'unistr/u32-strnlen'.
21031         * modules/unistr/u32-strnlen-tests: New file.
21032         * tests/unistr/test-u32-strnlen.c: New file.
21033
21034         Tests for module 'unistr/u16-strnlen'.
21035         * modules/unistr/u16-strnlen-tests: New file.
21036         * tests/unistr/test-u16-strnlen.c: New file.
21037
21038         Tests for module 'unistr/u8-strnlen'.
21039         * modules/unistr/u8-strnlen-tests: New file.
21040         * tests/unistr/test-u8-strnlen.c: New file.
21041         * tests/unistr/test-strnlen.h: New file.
21042
21043         Tests for module 'unistr/u32-strlen'.
21044         * modules/unistr/u32-strlen-tests: New file.
21045         * tests/unistr/test-u32-strlen.c: New file.
21046
21047         Tests for module 'unistr/u16-strlen'.
21048         * modules/unistr/u16-strlen-tests: New file.
21049         * tests/unistr/test-u16-strlen.c: New file.
21050
21051         Tests for module 'unistr/u8-strlen'.
21052         * modules/unistr/u8-strlen-tests: New file.
21053         * tests/unistr/test-u8-strlen.c: New file.
21054
21055         Tests for module 'unistr/u32-prev'.
21056         * modules/unistr/u32-prev-tests: New file.
21057         * tests/unistr/test-u32-prev.c: New file.
21058
21059         Tests for module 'unistr/u16-prev'.
21060         * modules/unistr/u16-prev-tests: New file.
21061         * tests/unistr/test-u16-prev.c: New file.
21062
21063         Tests for module 'unistr/u8-prev'.
21064         * modules/unistr/u8-prev-tests: New file.
21065         * tests/unistr/test-u8-prev.c: New file.
21066
21067         Tests for module 'unistr/u32-next'.
21068         * modules/unistr/u32-next-tests: New file.
21069         * tests/unistr/test-u32-next.c: New file.
21070
21071         Tests for module 'unistr/u16-next'.
21072         * modules/unistr/u16-next-tests: New file.
21073         * tests/unistr/test-u16-next.c: New file.
21074
21075         Tests for module 'unistr/u8-next'.
21076         * modules/unistr/u8-next-tests: New file.
21077         * tests/unistr/test-u8-next.c: New file.
21078
21079         Tests for module 'unistr/u32-strmbtouc'.
21080         * modules/unistr/u32-strmbtouc-tests: New file.
21081         * tests/unistr/test-u32-strmbtouc.c: New file.
21082
21083         Tests for module 'unistr/u16-strmbtouc'.
21084         * modules/unistr/u16-strmbtouc-tests: New file.
21085         * tests/unistr/test-u16-strmbtouc.c: New file.
21086
21087         Tests for module 'unistr/u8-strmbtouc'.
21088         * modules/unistr/u8-strmbtouc-tests: New file.
21089         * tests/unistr/test-u8-strmbtouc.c: New file.
21090
21091         Tests for module 'unistr/u32-strmblen'.
21092         * modules/unistr/u32-strmblen-tests: New file.
21093         * tests/unistr/test-u32-strmblen.c: New file.
21094
21095         Tests for module 'unistr/u16-strmblen'.
21096         * modules/unistr/u16-strmblen-tests: New file.
21097         * tests/unistr/test-u16-strmblen.c: New file.
21098
21099         Tests for module 'unistr/u8-strmblen'.
21100         * modules/unistr/u8-strmblen-tests: New file.
21101         * tests/unistr/test-u8-strmblen.c: New file.
21102
21103         Tests for module 'unistr/u32-cpy-alloc'.
21104         * modules/unistr/u32-cpy-alloc-tests: New file.
21105         * tests/unistr/test-u32-cpy-alloc.c: New file.
21106
21107         Tests for module 'unistr/u16-cpy-alloc'.
21108         * modules/unistr/u16-cpy-alloc-tests: New file.
21109         * tests/unistr/test-u16-cpy-alloc.c: New file.
21110
21111         Tests for module 'unistr/u8-cpy-alloc'.
21112         * modules/unistr/u8-cpy-alloc-tests: New file.
21113         * tests/unistr/test-u8-cpy-alloc.c: New file.
21114         * tests/unistr/test-cpy-alloc.h: New file.
21115
21116         Tests for module 'unistr/u32-mbsnlen'.
21117         * modules/unistr/u32-mbsnlen-tests: New file.
21118         * tests/unistr/test-u32-mbsnlen.c: New file.
21119
21120         Tests for module 'unistr/u16-mbsnlen'.
21121         * modules/unistr/u16-mbsnlen-tests: New file.
21122         * tests/unistr/test-u16-mbsnlen.c: New file.
21123
21124         Tests for module 'unistr/u8-mbsnlen'.
21125         * modules/unistr/u8-mbsnlen-tests: New file.
21126         * tests/unistr/test-u8-mbsnlen.c: New file.
21127
21128         Tests for module 'unistr/u32-chr'.
21129         * modules/unistr/u32-chr-tests: New file.
21130         * tests/unistr/test-u32-chr.c: New file.
21131
21132         Tests for module 'unistr/u16-chr'.
21133         * modules/unistr/u16-chr-tests: New file.
21134         * tests/unistr/test-u16-chr.c: New file.
21135
21136         Tests for module 'unistr/u8-chr'.
21137         * modules/unistr/u8-chr-tests: New file.
21138         * tests/unistr/test-u8-chr.c: New file.
21139         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21140
21141         Tests for module 'unistr/u32-cmp2'.
21142         * modules/unistr/u32-cmp2-tests: New file.
21143         * tests/unistr/test-u32-cmp2.c: New file.
21144
21145         Tests for module 'unistr/u16-cmp2'.
21146         * modules/unistr/u16-cmp2-tests: New file.
21147         * tests/unistr/test-u16-cmp2.c: New file.
21148
21149         Tests for module 'unistr/u8-cmp2'.
21150         * modules/unistr/u8-cmp2-tests: New file.
21151         * tests/unistr/test-u8-cmp2.c: New file.
21152         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21153
21154         Tests for module 'unistr/u32-cmp'.
21155         * modules/unistr/u32-cmp-tests: New file.
21156         * tests/unistr/test-u32-cmp.c: New file.
21157
21158         Tests for module 'unistr/u16-cmp'.
21159         * modules/unistr/u16-cmp-tests: New file.
21160         * tests/unistr/test-u16-cmp.c: New file.
21161
21162         Tests for module 'unistr/u8-cmp'.
21163         * modules/unistr/u8-cmp-tests: New file.
21164         * tests/unistr/test-u8-cmp.c: New file.
21165         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21166
21167         Tests for module 'unistr/u32-set'.
21168         * modules/unistr/u32-set-tests: New file.
21169         * tests/unistr/test-u32-set.c: New file.
21170
21171         Tests for module 'unistr/u16-set'.
21172         * modules/unistr/u16-set-tests: New file.
21173         * tests/unistr/test-u16-set.c: New file.
21174
21175         Tests for module 'unistr/u8-set'.
21176         * modules/unistr/u8-set-tests: New file.
21177         * tests/unistr/test-u8-set.c: New file.
21178         * tests/unistr/test-set.h: New file.
21179
21180         Tests for module 'unistr/u32-move'.
21181         * modules/unistr/u32-move-tests: New file.
21182         * tests/unistr/test-u32-move.c: New file.
21183
21184         Tests for module 'unistr/u16-move'.
21185         * modules/unistr/u16-move-tests: New file.
21186         * tests/unistr/test-u16-move.c: New file.
21187
21188         Tests for module 'unistr/u8-move'.
21189         * modules/unistr/u8-move-tests: New file.
21190         * tests/unistr/test-u8-move.c: New file.
21191         * tests/unistr/test-move.h: New file.
21192
21193         Tests for module 'unistr/u32-cpy'.
21194         * modules/unistr/u32-cpy-tests: New file.
21195         * tests/unistr/test-u32-cpy.c: New file.
21196
21197         Tests for module 'unistr/u16-cpy'.
21198         * modules/unistr/u16-cpy-tests: New file.
21199         * tests/unistr/test-u16-cpy.c: New file.
21200
21201         Tests for module 'unistr/u8-cpy'.
21202         * modules/unistr/u8-cpy-tests: New file.
21203         * tests/unistr/test-u8-cpy.c: New file.
21204         * tests/unistr/test-cpy.h: New file.
21205
21206 2010-01-09  Bruno Haible  <bruno@clisp.org>
21207
21208         Tests for module 'unistr/u32-uctomb'.
21209         * modules/unistr/u32-uctomb-tests: New file.
21210         * tests/unistr/test-u32-uctomb.c: New file.
21211
21212         Tests for module 'unistr/u16-uctomb'.
21213         * modules/unistr/u16-uctomb-tests: New file.
21214         * tests/unistr/test-u16-uctomb.c: New file.
21215
21216         Tests for module 'unistr/u8-uctomb'.
21217         * modules/unistr/u8-uctomb-tests: New file.
21218         * tests/unistr/test-u8-uctomb.c: New file.
21219
21220         Tests for module 'unistr/u32-mbtoucr'.
21221         * modules/unistr/u32-mbtoucr-tests: New file.
21222         * tests/unistr/test-u32-mbtoucr.c: New file.
21223
21224         Tests for module 'unistr/u16-mbtoucr'.
21225         * modules/unistr/u16-mbtoucr-tests: New file.
21226         * tests/unistr/test-u16-mbtoucr.c: New file.
21227
21228         Tests for module 'unistr/u8-mbtoucr'.
21229         * modules/unistr/u8-mbtoucr-tests: New file.
21230         * tests/unistr/test-u8-mbtoucr.c: New file.
21231
21232         Tests for module 'unistr/u32-mbtouc'.
21233         * modules/unistr/u32-mbtouc-tests: New file.
21234         * tests/unistr/test-u32-mbtouc.c: New file.
21235
21236         Tests for module 'unistr/u16-mbtouc'.
21237         * modules/unistr/u16-mbtouc-tests: New file.
21238         * tests/unistr/test-u16-mbtouc.c: New file.
21239
21240         Tests for module 'unistr/u8-mbtouc'.
21241         * modules/unistr/u8-mbtouc-tests: New file.
21242         * tests/unistr/test-u8-mbtouc.c: New file.
21243
21244         Tests for module 'unistr/u32-mbtouc-unsafe'.
21245         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21246         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21247         * tests/unistr/test-u32-mbtouc.h: New file.
21248
21249         Tests for module 'unistr/u16-mbtouc-unsafe'.
21250         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21251         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21252         * tests/unistr/test-u16-mbtouc.h: New file.
21253
21254         Tests for module 'unistr/u8-mbtouc-unsafe'.
21255         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21256         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21257         * tests/unistr/test-u8-mbtouc.h: New file.
21258
21259         Tests for module 'unistr/u32-mblen'.
21260         * modules/unistr/u32-mblen-tests: New file.
21261         * tests/unistr/test-u32-mblen.c: New file.
21262
21263         Tests for module 'unistr/u16-mblen'.
21264         * modules/unistr/u16-mblen-tests: New file.
21265         * tests/unistr/test-u16-mblen.c: New file.
21266
21267         Tests for module 'unistr/u8-mblen'.
21268         * modules/unistr/u8-mblen-tests: New file.
21269         * tests/unistr/test-u8-mblen.c: New file.
21270
21271         Tests for module 'unistr/u32-to-u16'.
21272         * modules/unistr/u32-to-u16-tests: New file.
21273         * tests/unistr/test-u32-to-u16.c: New file.
21274
21275         Tests for module 'unistr/u32-to-u8'.
21276         * modules/unistr/u32-to-u8-tests: New file.
21277         * tests/unistr/test-u32-to-u8.c: New file.
21278
21279         Tests for module 'unistr/u16-to-u32'.
21280         * modules/unistr/u16-to-u32-tests: New file.
21281         * tests/unistr/test-u16-to-u32.c: New file.
21282
21283         Tests for module 'unistr/u16-to-u8'.
21284         * modules/unistr/u16-to-u8-tests: New file.
21285         * tests/unistr/test-u16-to-u8.c: New file.
21286
21287         Tests for module 'unistr/u8-to-u32'.
21288         * modules/unistr/u8-to-u32-tests: New file.
21289         * tests/unistr/test-u8-to-u32.c: New file.
21290
21291         Tests for module 'unistr/u8-to-u16'.
21292         * modules/unistr/u8-to-u16-tests: New file.
21293         * tests/unistr/test-u8-to-u16.c: New file.
21294
21295         Tests for module 'unistr/u32-check'.
21296         * modules/unistr/u32-check-tests: New file.
21297         * tests/unistr/test-u32-check.c: New file.
21298
21299         Tests for module 'unistr/u16-check'.
21300         * modules/unistr/u16-check-tests: New file.
21301         * tests/unistr/test-u16-check.c: New file.
21302
21303         Tests for module 'unistr/u8-check'.
21304         * modules/unistr/u8-check-tests: New file.
21305         * tests/unistr/test-u8-check.c: New file.
21306
21307         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21308         (category_equals): New function.
21309         (main): Add more tests.
21310         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21311
21312         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21313
21314 2010-01-10  Bruno Haible  <bruno@clisp.org>
21315
21316         unistr/u*-strcoll: Try harder to distinguish different strings.
21317         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21318         compare s1 and s2 to see if they are different.
21319
21320 2010-01-10  Bruno Haible  <bruno@clisp.org>
21321
21322         unistr/u*-stpncpy: Fix the return value.
21323         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21324         description of the return value consistent with stpncpy in glibc.
21325         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21326         written non-NUL unit.
21327
21328 2010-01-10  Bruno Haible  <bruno@clisp.org>
21329
21330         unistr/u*-next: Add missing dependencies.
21331         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21332         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21333         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21334
21335 2010-01-10  Bruno Haible  <bruno@clisp.org>
21336
21337         unistr/u8-mbsnlen: Fix return value for incomplete character.
21338         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21339         u8_mblen.
21340         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21341         Remove unistr/u8-mblen.
21342         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21343         u16_mblen.
21344         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21345         Remove unistr/u16-mblen.
21346
21347 2010-01-10  Bruno Haible  <bruno@clisp.org>
21348
21349         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21350         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21351         Reported by Brian Gough <bjg@gnu.org> and
21352         Chris Clayton <chris2553@googlemail.com> via
21353         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21354
21355 2010-01-09  Bruno Haible  <bruno@clisp.org>
21356
21357         unistr/u16-to-u32: Reject invalid input.
21358         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21359         u16_mbtouc.
21360         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21361         Remove unistr/u16-mbtouc.
21362
21363         unistr/u16-to-u8: Reject invalid input.
21364         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21365         u16_mbtouc.
21366         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21367         Remove unistr/u16-mbtouc.
21368
21369         unistr/u8-to-u32: Reject invalid input.
21370         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21371         u8_mbtouc.
21372         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21373         Remove unistr/u8-mbtouc.
21374
21375         unistr/u8-to-u16: Reject invalid input.
21376         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21377         u8_mbtouc.
21378         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21379         Remove unistr/u8-mbtouc.
21380
21381 2010-01-09  Bruno Haible  <bruno@clisp.org>
21382
21383         Tests for module 'getlogin'.
21384         * modules/getlogin-tests: New file.
21385         * tests/test-getlogin.c: New file.
21386
21387         New module 'getlogin'.
21388         * lib/unistd.in.h (getlogin): New declaration.
21389         * lib/getlogin.c: New file.
21390         * m4/getlogin.m4: New file.
21391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21392         HAVE_GETLOGIN.
21393         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21394         HAVE_GETLOGIN.
21395         * modules/getlogin: New file.
21396         * doc/posix-functions/getlogin.texi: Mention the new module.
21397         Reported by John W. Eaton <jwe@gnu.org>.
21398
21399 2010-01-09  Bruno Haible  <bruno@clisp.org>
21400
21401         getlogin_r: Support for native Windows.
21402         * lib/getlogin_r.c: Include <windows.h>
21403         (getlogin_r): Implement for native Windows.
21404         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21405         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21406         via John W. Eaton <jwe@gnu.org>.
21407
21408 2010-01-09  Bruno Haible  <bruno@clisp.org>
21409
21410         getlogin_r: Small fixes.
21411         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21412         succeeds.
21413         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21414         before testing whether getlogin_r is declared. No need to set
21415         HAVE_DECL_GETLOGIN_R to 1.
21416         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21417
21418 2010-01-09  Bruno Haible  <bruno@clisp.org>
21419
21420         * lib/unistd.in.h (getlogin_r): Add comment.
21421
21422 2010-01-09  Bruno Haible  <bruno@clisp.org>
21423
21424         Tests for module 'getlogin_r'.
21425         * modules/getlogin_r-tests: New file.
21426         * tests/test-getlogin_r.c: New file.
21427
21428 2010-01-09  Jim Meyering  <meyering@redhat.com>
21429
21430         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21431         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21432         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21433
21434 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21435
21436         * lib/dup2.c (rpl_dup2): Improve comment.
21437
21438 2010-01-08  Eric Blake  <ebb9@byu.net>
21439
21440         maint.mk: allow packages to add makefile @@ exceptions
21441         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21442         (sc_makefile_check): Rename...
21443         (sc_makefile_at_at_check): ...to this, and use hook.
21444
21445         dup2: work around mingw bug
21446         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21447         Reported by Simon Josefsson.
21448
21449 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21450
21451         glob: Fix C++ compilation.
21452         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21453         C++.
21454
21455 2010-01-07  Bruno Haible  <bruno@clisp.org>
21456
21457         Fix indentation of wctype.in.h, broken since 2007-01-06.
21458         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21459
21460 2010-01-07  Bruno Haible  <bruno@clisp.org>
21461
21462         mbslen: Avoid collision with system function.
21463         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21464         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21465         * m4/mbslen.m4: New file.
21466         * modules/mbslen (Files): Add it.
21467         (configure.ac): Invoke gl_MBSLEN.
21468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21469         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21470         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21471         via Ian Beckwith <ianb@erislabs.net>.
21472
21473 2010-01-07  Bruno Haible  <bruno@clisp.org>
21474
21475         dirent: Document the last fix.
21476         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21477
21478 2010-01-07  Bruno Haible  <bruno@clisp.org>
21479
21480         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21481         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21482         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21483         va_list are defined.
21484         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21485         Reported by Eric Blake.
21486
21487 2010-01-07  Bruno Haible  <bruno@clisp.org>
21488
21489         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21490         * modules/xlist (Depends-on): Add 'list',
21491         * modules/xoset (Depends-on): Add 'oset'.
21492         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21493
21494 2010-01-07  Bruno Haible  <bruno@clisp.org>
21495
21496         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21497         * doc/posix-functions/strncasecmp.texi: Likewise.
21498
21499 2010-01-07  Bruno Haible  <bruno@clisp.org>
21500
21501         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21502
21503 2010-01-07  John W. Eaton  <jwe@octave.org>
21504
21505         wctype: allow C++ use
21506         * lib/wctype.in.h: Add extern "C" block for C++.
21507
21508 2010-01-06  Eric Blake  <ebb9@byu.net>
21509
21510         maint.mk: detect incorrect GFDL usage
21511         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21512
21513 2010-01-06  Jim Meyering  <meyering@redhat.com>
21514         and Eric Blake  <ebb9@byu.net>
21515
21516         maint.mk: ignore multi-line copyright in NEWS
21517         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21518
21519 2010-01-06  Eric Blake  <ebb9@byu.net>
21520
21521         select: add missing dependency
21522         * modules/select-tests (Depends-on): Move sockets dependency...
21523         * modules/select (Depends-on): ...here.
21524         Reported by Ian Beckwith.
21525
21526         doc: regenerate INSTALL
21527         * doc/INSTALL: Reflect recent autoconf update.
21528         * doc/INSTALL.ISO: Likewise.
21529         * doc/INSTALL.UTF-8: Likewise.
21530
21531         pread: fix compilation on glibc
21532         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21533         Reported by Ralf Wildenhues.
21534
21535         dirent: fix test failure
21536         * lib/dirent.in.h (includes): Guarantee ino_t.
21537         Reported by Ralf Wildenhues.
21538
21539 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21540
21541         linkat, renameat: avoid bad free
21542         * lib/at-func2.c (at_func2): Fix typo.
21543         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21544
21545 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21546
21547         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21548         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21549         to avoid failure of symlink test later.
21550
21551 2010-01-06  Eric Blake  <ebb9@byu.net>
21552
21553         stdio, unistd: guarantee ssize_t
21554         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21555         2008 are exposed when needed.
21556         * lib/stdio.in.h (includes): Likewise.
21557         Reported by Ralf Wildenhues.
21558
21559 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21560
21561         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21562         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21563         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21564
21565 2010-01-06  Jim Meyering  <meyering@redhat.com>
21566
21567         readtokens: this module *does* require xalloc.h
21568         It uses only functions that were omitted by the old syntax-check rule.
21569         * lib/readtokens.c: Include "xalloc.h" once again.
21570         * modules/readtokens (Depends-on): Add xalloc.
21571         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21572
21573 2010-01-05  Eric Blake  <ebb9@byu.net>
21574
21575         maint: support 'make announcement' from a VPATH build
21576         * top/maint.mk (announcement): Look for correct NEWS file.
21577
21578 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21579
21580         utimens (fdutimens): ignore a negative FD, per contract
21581         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21582         when we have a valid file descriptor.  Otherwise, using a brand
21583         new glibc (with just-patched futimens that now fails with EBADF)
21584         would cause this function to fail with ENOSYS.
21585         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21586         See also http://bugzilla.redhat.com/552320.
21587
21588 2010-01-05  Eric Blake  <ebb9@byu.net>
21589
21590         strcase: document what it provides
21591         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21592         gnulib module.
21593         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21594         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21595
21596 2010-01-05  Jim Meyering  <meyering@redhat.com>
21597
21598         maint: remove useless inclusions of "xalloc.h"
21599         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21600         * lib/readtokens.c: Likewise.
21601         * lib/same.c: Likewise.
21602         * modules/getloadavg (Depends-on): Remove xalloc.
21603         * modules/readtokens: Likewise.
21604         * modules/same: Likewise.
21605
21606         maint.mk: include 4 more function names in alloca.h-checking regexp
21607         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21608         regexp.  Before, we would give a false-positive (saying alloca.h
21609         is included unnecessarily) when the only uses involved omitted symbols.
21610
21611         xalloc.h: use consistent formatting
21612         * lib/xalloc.h: Move declarations to start in the first column.
21613
21614 2010-01-05  Eric Blake  <ebb9@byu.net>
21615
21616         mkdir: avoid xalloc
21617         * lib/mkdir.c (includes): Drop unused header.
21618         Reported by John W. Eaton.
21619
21620 2010-01-04  Jim Meyering  <meyering@redhat.com>
21621
21622         nl_langinfo: avoid configure-time syntax error
21623         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21624         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21625         the empty string.  Don't let that provoke a shell syntax error.
21626
21627         regcomp, regexec, fnmatch: avoid array bounds read error
21628         * lib/regcomp.c (build_equiv_class): From glibc:
21629         Use only the low 24 bits of a findidx return value as an index
21630         into the weights array.  Patch by Ulrich Drepper:
21631         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21632         * lib/regexec.c (check_node_accept_bytes): Likewise.
21633         * lib/fnmatch_loop.c (FCT): Likewise.
21634
21635         regcomp: skip collseq lookup when there are no rules
21636         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21637         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21638
21639         regcomp: recognize ill-formed { } expressions
21640         * lib/regcomp.c (parse_dup_op): From glibc:
21641         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21642
21643         regcomp: fix typo in comment
21644         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21645         s/satisfy/satisfies/.
21646
21647         regcomp: sync from glibc: remove dead store
21648         * lib/regcomp.c (duplicate_node_closure): Remove useless
21649         search_duplicated_node call and dead store.
21650
21651         regcomp: sync from glibc; always use nl_langinfo
21652         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21653         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21654         * modules/regex (Depends-on): Add nl_langinfo.
21655
21656 2010-01-04  Eric Blake  <ebb9@byu.net>
21657
21658         fdopendir: fix configure test
21659         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21660
21661 2010-01-01  Bruno Haible  <bruno@clisp.org>
21662
21663         wchar: Remove unused configure check.
21664         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21665
21666 2010-01-01  Eric Blake  <ebb9@byu.net>
21667
21668         headers: make check of system header explicit
21669         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21670         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21671         ourselves.
21672         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21673         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21674         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21675         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21676         internals.
21677         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21678         missing.
21679         Suggested by Bruno Haible.
21680
21681 2010-01-01  Jim Meyering  <meyering@redhat.com>
21682
21683         ChangeLog: tweak to eliminate unnecessary copyright line
21684         * ChangeLog: Remove a copyright line that was mistakenly updated
21685         by today's update-copyright run.  Reported by Eric Blake.
21686
21687         test-update-copyright: don't let envvar setting cause test failure
21688         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21689
21690 2010-01-01  Bruno Haible  <bruno@clisp.org>
21691
21692         localename: Avoid gcc warning.
21693         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21694         function if it is not used.
21695
21696 2010-01-01  Jim Meyering  <meyering@redhat.com>
21697
21698         update nearly all FSF copyright year lists to include 2010
21699         Use the same procedure as for 2009, outlined in
21700         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21701
21702         version-etc: set COPYRIGHT_YEAR to 2010
21703         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21704
21705 2009-12-31  Eric Blake  <ebb9@byu.net>
21706
21707         doc: correct availability of cygwin 1.5.x getopt
21708         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21709         variables.
21710         * doc/posix-functions/opterr.texi (opterr): Likewise.
21711         * doc/posix-functions/optind.texi (optind): Likewise.
21712         * doc/posix-functions/optopt.texi (optopt): Likewise.
21713         * doc/posix-functions/tzname.texi (tzname): Likewise.
21714
21715         openat: update maintainer
21716         * modules/openat (Maintainer): Add myself.
21717
21718         utimens: avoid shadowing warning
21719         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21720         buffers into one, to avoid shadowing, as well as avoiding a
21721         redundant stat.
21722         Reported by Jim Meyering.
21723
21724         test-dup2: avoid compiler warning
21725         * tests/test-dup2.c (is_inheritable): Only define if used.
21726
21727 2010-01-01  Bruno Haible  <bruno@clisp.org>
21728
21729         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21730         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21731         defined, use wctomb instead of wcrtomb.
21732
21733 2010-01-01  Bruno Haible  <bruno@clisp.org>
21734
21735         iconv: Reject native Solaris iconv.
21736         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21737         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21738
21739 2009-12-31  Bruno Haible  <bruno@clisp.org>
21740
21741         * tests/test-signal.c (main): Remove test of 'SIG'.
21742
21743 2009-12-31  Bruno Haible  <bruno@clisp.org>
21744
21745         spawn: Fix incomplete fix.
21746         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21747         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21748         warnings for GNULIB_POSIXCHECK again.
21749         Reported by Eric Blake.
21750
21751 2009-12-31  Bruno Haible  <bruno@clisp.org>
21752
21753         Avoid namespace pollution on glibc systems.
21754         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21755         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21756         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21757         glibc systems.
21758
21759 2009-12-31  Bruno Haible  <bruno@clisp.org>
21760
21761         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
21762         (gl_REPLACE_WCHAR_H): Turn into a no-op.
21763         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
21764         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21765         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21766         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21767         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21768
21769 2009-12-31  Bruno Haible  <bruno@clisp.org>
21770
21771         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21772         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
21773         afterwards.
21774
21775 2009-12-31  Bruno Haible  <bruno@clisp.org>
21776
21777         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
21778         SYS_UTSNAME_H.
21779
21780 2009-12-31  Bruno Haible  <bruno@clisp.org>
21781
21782         spawn: Fix misapplied patch.
21783         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21784         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21785         warnings for GNULIB_POSIXCHECK.
21786
21787 2009-12-31  Bruno Haible  <bruno@clisp.org>
21788
21789         times: Update after sys_times changed.
21790         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
21791         * modules/times (Files): Add it.
21792         (configure.ac): Invoke gl_FUNC_TIMES.
21793
21794 2009-12-31  Bruno Haible  <bruno@clisp.org>
21795
21796         Use AC_C_INLINE where necessary.
21797         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
21798         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21799         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21800         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21801         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21802         * m4/mbiter.m4 (gl_MBITER): Likewise.
21803         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21804         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21805         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
21806         * modules/u64 (configure.ac): Likewise.
21807
21808 2009-12-31  Bruno Haible  <bruno@clisp.org>
21809
21810         Use AC_C_INLINE instead of module 'inline' where possible.
21811         * modules/inline (Description): Clarify purpose.
21812         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
21813         * modules/count-one-bits (Depends-on): Remove inline.
21814         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
21815         * modules/openat (Depends-on): Remove inline.
21816         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
21817         instead of depending on module 'inline'.
21818         * modules/filevercmp (Depends-on, configure.ac): Likewise.
21819         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
21820         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
21821         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
21822         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
21823         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
21824         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
21825         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
21826         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
21827         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
21828         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
21829         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
21830         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
21831         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
21832         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
21833         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
21834         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
21835         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
21836         Likewise.
21837         * modules/unictype/property-ascii-hex-digit (Depends-on,
21838         configure.ac): Likewise.
21839         * modules/unictype/property-bidi-arabic-digit (Depends-on,
21840         configure.ac): Likewise.
21841         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
21842         configure.ac): Likewise.
21843         * modules/unictype/property-bidi-block-separator (Depends-on,
21844         configure.ac): Likewise.
21845         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
21846         configure.ac): Likewise.
21847         * modules/unictype/property-bidi-common-separator (Depends-on,
21848         configure.ac): Likewise.
21849         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
21850         Likewise.
21851         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
21852         configure.ac): Likewise.
21853         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
21854         configure.ac): Likewise.
21855         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
21856         configure.ac): Likewise.
21857         * modules/unictype/property-bidi-european-digit (Depends-on,
21858         configure.ac): Likewise.
21859         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
21860         configure.ac): Likewise.
21861         * modules/unictype/property-bidi-left-to-right (Depends-on,
21862         configure.ac): Likewise.
21863         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
21864         configure.ac): Likewise.
21865         * modules/unictype/property-bidi-other-neutral (Depends-on,
21866         configure.ac): Likewise.
21867         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
21868         Likewise.
21869         * modules/unictype/property-bidi-segment-separator (Depends-on,
21870         configure.ac): Likewise.
21871         * modules/unictype/property-bidi-whitespace (Depends-on,
21872         configure.ac): Likewise.
21873         * modules/unictype/property-combining (Depends-on, configure.ac):
21874         Likewise.
21875         * modules/unictype/property-composite (Depends-on, configure.ac):
21876         Likewise.
21877         * modules/unictype/property-currency-symbol (Depends-on,
21878         configure.ac): Likewise.
21879         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
21880         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
21881         Likewise.
21882         * modules/unictype/property-default-ignorable-code-point (Depends-on,
21883         configure.ac): Likewise.
21884         * modules/unictype/property-deprecated (Depends-on, configure.ac):
21885         Likewise.
21886         * modules/unictype/property-diacritic (Depends-on, configure.ac):
21887         Likewise.
21888         * modules/unictype/property-extender (Depends-on, configure.ac):
21889         Likewise.
21890         * modules/unictype/property-format-control (Depends-on, configure.ac):
21891         Likewise.
21892         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
21893         Likewise.
21894         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
21895         Likewise.
21896         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
21897         Likewise.
21898         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
21899         Likewise.
21900         * modules/unictype/property-hyphen (Depends-on, configure.ac):
21901         Likewise.
21902         * modules/unictype/property-id-continue (Depends-on, configure.ac):
21903         Likewise.
21904         * modules/unictype/property-id-start (Depends-on, configure.ac):
21905         Likewise.
21906         * modules/unictype/property-ideographic (Depends-on, configure.ac):
21907         Likewise.
21908         * modules/unictype/property-ids-binary-operator (Depends-on,
21909         configure.ac): Likewise.
21910         * modules/unictype/property-ids-trinary-operator (Depends-on,
21911         configure.ac): Likewise.
21912         * modules/unictype/property-ignorable-control (Depends-on,
21913         configure.ac): Likewise.
21914         * modules/unictype/property-iso-control (Depends-on, configure.ac):
21915         Likewise.
21916         * modules/unictype/property-join-control (Depends-on, configure.ac):
21917         Likewise.
21918         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
21919         Likewise.
21920         * modules/unictype/property-line-separator (Depends-on, configure.ac):
21921         Likewise.
21922         * modules/unictype/property-logical-order-exception (Depends-on,
21923         configure.ac): Likewise.
21924         * modules/unictype/property-lowercase (Depends-on, configure.ac):
21925         Likewise.
21926         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
21927         * modules/unictype/property-non-break (Depends-on, configure.ac):
21928         Likewise.
21929         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
21930         Likewise.
21931         * modules/unictype/property-numeric (Depends-on, configure.ac):
21932         Likewise.
21933         * modules/unictype/property-other-alphabetic (Depends-on,
21934         configure.ac): Likewise.
21935         * modules/unictype/property-other-default-ignorable-code-point
21936         (Depends-on, configure.ac): Likewise.
21937         * modules/unictype/property-other-grapheme-extend (Depends-on,
21938         configure.ac): Likewise.
21939         * modules/unictype/property-other-id-continue (Depends-on,
21940         configure.ac): Likewise.
21941         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
21942         Likewise.
21943         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
21944         Likewise.
21945         * modules/unictype/property-other-math (Depends-on, configure.ac):
21946         Likewise.
21947         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
21948         Likewise.
21949         * modules/unictype/property-paired-punctuation (Depends-on,
21950         configure.ac): Likewise.
21951         * modules/unictype/property-paragraph-separator (Depends-on,
21952         configure.ac): Likewise.
21953         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21954         Likewise.
21955         * modules/unictype/property-pattern-white-space (Depends-on,
21956         configure.ac): Likewise.
21957         * modules/unictype/property-private-use (Depends-on, configure.ac):
21958         Likewise.
21959         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21960         Likewise.
21961         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21962         Likewise.
21963         * modules/unictype/property-radical (Depends-on, configure.ac):
21964         Likewise.
21965         * modules/unictype/property-sentence-terminal (Depends-on,
21966         configure.ac): Likewise.
21967         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21968         Likewise.
21969         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21970         * modules/unictype/property-terminal-punctuation (Depends-on,
21971         configure.ac): Likewise.
21972         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21973         Likewise.
21974         * modules/unictype/property-unassigned-code-value (Depends-on,
21975         configure.ac): Likewise.
21976         * modules/unictype/property-unified-ideograph (Depends-on,
21977         configure.ac): Likewise.
21978         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21979         Likewise.
21980         * modules/unictype/property-variation-selector (Depends-on,
21981         configure.ac): Likewise.
21982         * modules/unictype/property-white-space (Depends-on, configure.ac):
21983         Likewise.
21984         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21985         Likewise.
21986         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21987         Likewise.
21988         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21989         Likewise.
21990         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21991         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21992         Likewise.
21993
21994 2009-12-31  Bruno Haible  <bruno@clisp.org>
21995
21996         Remove unnecessary AC_C_INLINE invocation.
21997         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
21998         since 2009-08-21.
21999
22000 2009-12-31  Jim Meyering  <meyering@redhat.com>
22001
22002         maint.mk: don't require explicit gpg_key_ID in cfg.mk
22003         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
22004         With this change, we can all remove the gpg_key_ID = ... definition
22005         from our respective cfg.mk files.
22006
22007         maint.mk: create announcement template in ~/, not in /tmp
22008         * top/maint.mk (emit_upload_commands): Adjust.
22009         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
22010         Remove temporary file, .ci-msg.
22011
22012 2009-12-31  Eric Blake  <ebb9@byu.net>
22013
22014         link-warning: always build headers with link warnings
22015         * modules/arpa_inet (Makefile.am): Always build replacement
22016         header.
22017         * modules/ctype (Makefile.am): Likewise.
22018         * modules/dirent (Makefile.am): Likewise.
22019         * modules/inttypes (Makefile.am): Likewise.
22020         * modules/langinfo (Makefile.am): Likewise.
22021         * modules/locale (Makefile.am): Likewise.
22022         * modules/spawn (Makefile.am): Likewise.
22023         * modules/sys_file (Makefile.am): Likewise.
22024         * modules/sys_ioctl (Makefile.am): Likewise.
22025         * modules/sys_select (Makefile.am): Likewise.
22026         * modules/sys_socket (Makefile.am): Likewise.
22027         * modules/sys_times (Makefile.am): Likewise.
22028         * modules/sys_utsname (Makefile.am): Likewise.
22029         * modules/sys_wait (Makefile.am): Likewise.
22030         * modules/wchar (Makefile.am): Likewise.
22031         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
22032         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
22033         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
22034         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
22035         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
22036         Likewise.
22037         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22038         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22039         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
22040         Likewise.
22041         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
22042         Likewise.
22043         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22044         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
22045         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
22046         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22047         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22048         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22049         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22050         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22051         (gl_WCHAR_H_DEFAULTS): Likewise.
22052
22053 2009-12-31  Eric Blake  <ebb9@byu.net>
22054
22055         signal, spawn: use link warnings
22056         * lib/signal.in.h (sigset_t): Make unconditional.
22057         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
22058         (sigpending, sigprocmask, sigaction): Add link warnings.
22059         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
22060         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
22061         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
22062         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
22063         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
22064         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
22065         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
22066         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
22067         (posix_spawn_file_actions_destroy)
22068         (posix_spawn_file_actions_addopen)
22069         (posix_spawn_file_actions_addclose)
22070         (posix_spawn_file_actions_adddup2): Likewise.
22071         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
22072         * tests/test-signal.c (main): Enhance test.
22073
22074         spawn: improve wrapper support
22075         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
22076         (gl_SPAWN_H_DEFAULTS): New defaults.
22077         * modules/spawn (Makefile.am): Substitute them.
22078         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
22079         Only declare if missing or broken.
22080
22081         sys_times, sys_utsname: use include_next
22082         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
22083         header.
22084         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
22085         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22086         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22087         * modules/sys_times (Depends-on): Add include_next.
22088         (Makefile.am): Substitute additional values.
22089         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22090         * lib/sys_times.in.h (includes): Include native header, if
22091         available.
22092         * lib/sys_utsname.in.h (includes): Likewise.
22093         * tests/test-sys_times.c (main): Enhance test.
22094
22095         fdutimensat: revert prior patch
22096         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22097         utimens.h.
22098         Reported by Bruno Haible.
22099
22100 2009-12-30  Eric Blake  <ebb9@byu.net>
22101
22102         sys_wait: drop link-warning dependency
22103         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22104         link-warning efforts.
22105         * lib/sys_wait.in.h: Likewise.
22106
22107         fdutimensat: remove bogus dependency
22108         * modules/fdutimensat (Depends-on): Drop inline.
22109
22110         unistd: fix typo
22111         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22112
22113 2009-12-30  Bruno Haible  <bruno@clisp.org>
22114
22115         Fix compilation error with Solaris cc.
22116         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22117         * lib/unicase/u16-is-invariant.c: Likewise.
22118         * lib/unicase/u32-is-invariant.c: Likewise.
22119         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22120
22121 2009-12-30  Bruno Haible  <bruno@clisp.org>
22122
22123         Fix test crash.
22124         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22125         locales.
22126         Reported by Simon Josefsson <simon@josefsson.org>.
22127
22128 2009-12-30  Bruno Haible  <bruno@clisp.org>
22129
22130         Fix compilation error on most platforms.
22131         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22132         Reported by Simon Josefsson <simon@josefsson.org>
22133         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22134
22135 2009-12-30  Eric Blake  <ebb9@byu.net>
22136
22137         futimens, utimensat: work around ntfs-3g bug
22138         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22139         a ctime bug is present, and expand workaround to cover ntfs-3g.
22140         * lib/utimens.c (fdutimens, lutimens): Likewise.
22141         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22142         (validate_timespec): Adjust return value.
22143         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22144         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22145         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22146
22147 2009-12-29  Eric Blake  <ebb9@byu.net>
22148
22149         link-warning: make usage consistent
22150         * modules/ctype (Depends-on): Add link-warning.
22151         (Makefile.am): Update rules accordingly.
22152         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22153         * modules/locale (Depends-on, Makefile.am): Likewise.
22154         * modules/sys_file (Makefile.am): Likewise.
22155         * modules/getopt-posix (Makefile.am): Delete unused link warning
22156         efforts.
22157         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22158         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22159         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22160         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22161
22162         stdio: remove unused variables
22163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22164         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22165         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22166
22167         tests: test more substitute headers
22168         * modules/ctype-tests: New file.
22169         * modules/dirent-tests: Likewise.
22170         * modules/spawn-tests: Likewise.
22171         * modules/sys_file-tests: Likewise.
22172         * modules/sys_ioctl-tests: Likewise.
22173         * modules/sys_wait-tests: Likewise.
22174         * tests/test-ctype.c: Likewise.
22175         * tests/test-dirent.c: Likewise.
22176         * tests/test-spawn.c: Likewise.
22177         * tests/test-sys_file.c: Likewise.
22178         * tests/test-sys_ioctl.c: Likewise.
22179         * tests/test-sys_wait.c: Likewise.
22180         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22181         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22182         whether or not flock is in use.
22183
22184         tests: remove License section from module
22185         * modules/arpa_inet-tests: Remove unneeded section.
22186         * modules/byteswap-tests: Likewise.
22187         * modules/ceilf-tests: Likewise.
22188         * modules/ceill-tests: Likewise.
22189         * modules/crypto/des-tests: Likewise.
22190         * modules/crypto/gc-arcfour-tests: Likewise.
22191         * modules/crypto/gc-arctwo-tests: Likewise.
22192         * modules/crypto/gc-des-tests: Likewise.
22193         * modules/crypto/gc-hmac-md5-tests: Likewise.
22194         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22195         * modules/crypto/gc-md2-tests: Likewise.
22196         * modules/crypto/gc-md4-tests: Likewise.
22197         * modules/crypto/gc-md5-tests: Likewise.
22198         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22199         * modules/crypto/gc-rijndael-tests: Likewise.
22200         * modules/crypto/gc-sha1-tests: Likewise.
22201         * modules/crypto/gc-tests: Likewise.
22202         * modules/crypto/md2-tests: Likewise.
22203         * modules/crypto/md4-tests: Likewise.
22204         * modules/fcntl-h-tests: Likewise.
22205         * modules/floorf-tests: Likewise.
22206         * modules/floorl-tests: Likewise.
22207         * modules/frexp-nolibm-tests: Likewise.
22208         * modules/frexp-tests: Likewise.
22209         * modules/frexpl-nolibm-tests: Likewise.
22210         * modules/frexpl-tests: Likewise.
22211         * modules/getaddrinfo-tests: Likewise.
22212         * modules/inttypes-tests: Likewise.
22213         * modules/isfinite-tests: Likewise.
22214         * modules/isinf-tests: Likewise.
22215         * modules/ldexpl-tests: Likewise.
22216         * modules/locale-tests: Likewise.
22217         * modules/math-tests: Likewise.
22218         * modules/netdb-tests: Likewise.
22219         * modules/netinet_in-tests: Likewise.
22220         * modules/printf-frexp-tests: Likewise.
22221         * modules/printf-frexpl-tests: Likewise.
22222         * modules/priv-set-tests: Likewise.
22223         * modules/random_r-tests: Likewise.
22224         * modules/round-tests: Likewise.
22225         * modules/roundf-tests: Likewise.
22226         * modules/roundl-tests: Likewise.
22227         * modules/search-tests: Likewise.
22228         * modules/select-tests: Likewise.
22229         * modules/signal-tests: Likewise.
22230         * modules/stdbool-tests: Likewise.
22231         * modules/stddef-tests: Likewise.
22232         * modules/stdint-tests: Likewise.
22233         * modules/stdio-tests: Likewise.
22234         * modules/stdlib-tests: Likewise.
22235         * modules/string-tests: Likewise.
22236         * modules/strings-tests: Likewise.
22237         * modules/sys_select-tests: Likewise.
22238         * modules/sys_socket-tests: Likewise.
22239         * modules/sys_stat-tests: Likewise.
22240         * modules/sys_time-tests: Likewise.
22241         * modules/sys_utsname-tests: Likewise.
22242         * modules/sysexits-tests: Likewise.
22243         * modules/time-tests: Likewise.
22244         * modules/trunc-tests: Likewise.
22245         * modules/truncf-tests: Likewise.
22246         * modules/truncl-tests: Likewise.
22247         * modules/tsearch-tests: Likewise.
22248         * modules/unistd-tests: Likewise.
22249         * modules/wchar-tests: Likewise.
22250         * modules/wctype-tests: Likewise.
22251
22252         tests: fix license on several tests
22253         * tests/test-des.c: Update to GPLv3+.
22254         * tests/test-flock.c: Likewise.
22255         * tests/test-fsync.c: Likewise.
22256         * tests/test-futimens.h: Likewise.
22257         * tests/test-gc-arcfour.c: Likewise.
22258         * tests/test-gc-arctwo.c: Likewise.
22259         * tests/test-gc-des.c: Likewise.
22260         * tests/test-gc-hmac-md5.c: Likewise.
22261         * tests/test-gc-hmac-sha1.c: Likewise.
22262         * tests/test-gc-md2.c: Likewise.
22263         * tests/test-gc-md4.c: Likewise.
22264         * tests/test-gc-md5.c: Likewise.
22265         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22266         * tests/test-gc-rijndael.c: Likewise.
22267         * tests/test-gc-sha1.c: Likewise.
22268         * tests/test-gc.c: Likewise.
22269         * tests/test-getcwd.c: Likewise.
22270         * tests/test-link.c: Likewise.
22271         * tests/test-link.h: Likewise.
22272         * tests/test-lutimens.h: Likewise.
22273         * tests/test-md2.c: Likewise.
22274         * tests/test-md4.c: Likewise.
22275         * tests/test-mkdir.h: Likewise.
22276         * tests/test-rename.c: Likewise.
22277         * tests/test-rename.h: Likewise.
22278         * tests/test-safe-alloc.c: Likewise.
22279         * tests/test-utimens-common.h: Likewise.
22280         * tests/test-utimens.h: Likewise.
22281
22282         maint: sync license texts
22283         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22284         * doc/gpl-3.0.texi: Revert copyright year update.
22285         * doc/lgpl-3.0.texi: Likewise.
22286
22287 2009-12-29  Jim Meyering  <meyering@redhat.com>
22288
22289         update nearly all FSF copyright year lists to include 2009
22290         The files named by the following are exempted:
22291             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22292               test -f "$dst" && { echo "$dst"; continue; }
22293               test -d "$dst" || continue
22294               echo "$dst"/$(basename "$src")
22295             done > exempt
22296             git ls-files tests/unictype >> exempt
22297         In the remaining files, convert to all-interval notation if
22298         - there is already at least one year interval like 2000-2003
22299         - the file is maintained by me
22300         - the file is in lib/uni*/, where that style already prevails
22301         Otherwise, use update-copyright's default.
22302
22303 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22304         and Eric Blake  <ebb9@byu.net>
22305
22306         tests: don't require debug system() to pass
22307         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22308         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22309         * tests/test-unlink.h (test_unlink_func): Likewise.
22310         * tests/test-fstatat.c (main): ...into callers.
22311         * tests/test-lstat.c (main): Likewise.
22312         * tests/test-rmdir.c (main): Likewise.
22313         * tests/test-unlink.c (main): Likewise.
22314         * tests/test-unlinkat.c (main): Likewise.
22315         * tests/test-areadlink-with-size.c (main): Don't require a
22316         debug-only system call to pass, aiding cross-testing to mingw.
22317         * tests/test-areadlink.c (main): Likewise.
22318         * tests/test-areadlinkat-with-size.c (main): Likewise.
22319         * tests/test-areadlinkat.c (main): Likewise.
22320         * tests/test-canonicalize-lgpl.c (main): Likewise.
22321         * tests/test-canonicalize.c (main): Likewise.
22322         * tests/test-chown.c (main): Likewise.
22323         * tests/test-fchownat.c (main): Likewise.
22324         * tests/test-lchown.c (main): Likewise.
22325         * tests/test-fdutimensat.c (main): Likewise.
22326         * tests/test-futimens.c (main): Likewise.
22327         * tests/test-link.c (main): Likewise.
22328         * tests/test-linkat.c (main): Likewise.
22329         * tests/test-mkdir.c (main): Likewise.
22330         * tests/test-mkdirat.c (main): Likewise.
22331         * tests/test-mkfifo.c (main): Likewise.
22332         * tests/test-mkfifoat.c (main): Likewise.
22333         * tests/test-mknod.c (main): Likewise.
22334         * tests/test-readlink.c (main): Likewise.
22335         * tests/test-remove.c (main): Likewise.
22336         * tests/test-rename.c (main): Likewise.
22337         * tests/test-renameat.c (main): Likewise.
22338         * tests/test-symlink.c (main): Likewise.
22339         * tests/test-symlinkat.c (main): Likewise.
22340         * tests/test-utimens.c (main): Likewise.
22341         * tests/test-utimensat.c (main): Likewise.
22342
22343 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22344
22345         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22346         on $(UNUSED_PARAMETER_H) to avoid build failure.
22347
22348 2009-12-28  Jim Meyering  <meyering@redhat.com>
22349
22350         update-copyright: you may specify a max. line length other than 72
22351         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22352
22353         maint: use consistent FSF copyright line syntax
22354         * lib/posixtm.c: Add missing comma in FSF copyright line.
22355         * lib/posixtm.h: Likewise.
22356         * lib/getugroups.c: Add missing ", Inc.".
22357
22358         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22359         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22360         FSF copyright line.  Remove trailing blanks.
22361
22362 2009-12-28  Eric Blake  <ebb9@byu.net>
22363
22364         test-dup2: reduce dependencies
22365         * modules/cloexec (Configure.ac): Set witness.
22366         * modules/dup2-tests (Depends-on): Drop cloexec.
22367         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22368         not present.
22369         Suggested by Bruno Haible.
22370
22371 2009-12-26  Bruno Haible  <bruno@clisp.org>
22372
22373         Remove an unneeded dependency.
22374         * modules/fseterr (Depends-on): Remove dup2.
22375
22376 2009-12-26  Eric Blake  <ebb9@byu.net>
22377
22378         tests: use macros.h in more places
22379         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22380         (ASSERT_STREAM): Provide default of stderr.
22381         * tests/test-dirent-safer.c: Include macros.h, using alternate
22382         stream for assertions.
22383         * tests/test-dup-safer.c: Likewise.
22384         * tests/test-freopen-safer.c: Likewise.
22385         * tests/test-getopt.c: Likewise.
22386         * tests/test-openat-safer.c: Likewise.
22387         * tests/test-pipe.c: Likewise.
22388         * tests/test-popen-safer.c: Likewise.
22389         * modules/dirent-safer-tests (Files): Include macros.h.
22390         * modules/unistd-safer-tests (Files): Likewise.
22391         * modules/freopen-safer-tests (Files): Likewise.
22392         * modules/getopt-posix-tests (Files): Likewise.
22393         * modules/openat-safer-tests (Files): Likewise.
22394         * modules/pipe-tests (Files): Likewise.
22395
22396 2009-12-26  Bruno Haible  <bruno@clisp.org>
22397
22398         javacomp: Portability fix.
22399         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22400         that it also works on Solaris.
22401
22402 2009-12-26  Bruno Haible  <bruno@clisp.org>
22403
22404         localename: Fix storage allocation of gl_locale_name_thread's result.
22405         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22406         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22407         all platforms that have 'uselocale'.
22408         (gl_locale_name_thread_unsafe): New function, extracted from
22409         gl_locale_name_thread.
22410         (gl_locale_name_thread): Call struniq on all platforms that have
22411         'uselocale'.
22412         * tests/test-localename.c (test_locale_name_thread): Check that the
22413         resulting strings are permanently allocated.
22414         * modules/localename-tests (Depends-on): Add strdup.
22415
22416 2009-12-26  Bruno Haible  <bruno@clisp.org>
22417
22418         * tests/test-localename.c (categories): Fill in the strings.
22419
22420 2009-12-26  Jim Meyering  <meyering@redhat.com>
22421
22422         isdir: complete the removal of m4/isdir.m4
22423         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22424
22425         isdir: clean up, since at least grep still uses it
22426         * lib/isdir.c: Include "isdir.h".
22427         (S_ISDIR): Remove now-unneeded definition.
22428         * modules/isdir (Files): Add lib/isdir.h.
22429         * lib/isdir.h: New file, with declaration.
22430         * m4/isdir.m4: Remove file -- unneeded.
22431
22432 2009-12-25  Bruno Haible  <bruno@clisp.org>
22433
22434         selinux-h: Make generated .h files standalone.
22435         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22436         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22437         * lib/se-selinux.in.h: Likewise.
22438         * modules/selinux-h (Depends-on): Add unused-parameter.
22439         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22440         selinux/selinux.h and selinux/context.h.
22441         Suggested by Eric Blake.
22442
22443 2009-12-25  Bruno Haible  <bruno@clisp.org>
22444
22445         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22446         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22447         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22448         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22449         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22450
22451 2009-12-24  Bruno Haible  <bruno@clisp.org>
22452
22453         openat: Fix warning.
22454         * lib/openat-proc.c: Include <unistd.h>.
22455
22456 2009-12-24  Bruno Haible  <bruno@clisp.org>
22457
22458         New module 'unused-parameter'.
22459         * build-aux/unused-parameter.h: New file, extracted from earlier
22460         gnulib-common.m4.
22461         * modules/unused-parameter: New file.
22462         * lib/unistr.h: Include unused-parameter.h.
22463         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22464         _GL_UNUSED.
22465         * modules/unistr/base (Depends-on): Add unused-parameter.
22466
22467 2009-12-24  Bruno Haible  <bruno@clisp.org>
22468
22469         Add missing dependencies to 'extensions' module.
22470         * m4/extensions.m4: Add comment.
22471         * modules/accept4 (Depends-on): Add extensions.
22472         * modules/dup3 (Depends-on): Likewise.
22473         * modules/fcntl (Depends-on): Likewise.
22474         * modules/futimens (Depends-on): Likewise.
22475         * modules/mknod (Depends-on): Likewise.
22476         * modules/pipe2 (Depends-on): Likewise.
22477         * modules/stat-time (Depends-on): Likewise.
22478         * modules/strcasestr-simple (Depends-on): Likewise.
22479         * modules/strsignal (Depends-on): Likewise.
22480         * modules/utimensat (Depends-on): Likewise.
22481         * modules/localcharset (Depends-on): Likewise. Needed because of
22482         gl_FCNTL_O_FLAGS.
22483         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22484         AC_TYPE_MBSTATE_T.
22485         * modules/wcsnrtombs (Depends-on): Likewise.
22486         * modules/wcsrtombs (Depends-on): Likewise.
22487
22488 2009-12-24  Bruno Haible  <bruno@clisp.org>
22489
22490         binary-io: Avoid gcc warning due to SET_BINARY.
22491         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22492         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22493
22494 2009-12-24  Bruno Haible  <bruno@clisp.org>
22495
22496         Avoid future namespace pollution on glibc systems.
22497         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22498         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22499         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22500         glibc systems.
22501
22502 2009-12-24  Bruno Haible  <bruno@clisp.org>
22503
22504         Refactor common macros used in tests.
22505         * tests/macros.h: New file.
22506         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22507         and/or <stdlib.h>, if appropriate.
22508         (ASSERT, SIZEOF): Remove macros.
22509         * tests/test-areadlink-with-size.c: Likewise.
22510         * tests/test-areadlinkat.c: Likewise.
22511         * tests/test-areadlinkat-with-size.c: Likewise.
22512         * tests/test-argmatch.c: Likewise.
22513         * tests/test-argv-iter.c: Likewise.
22514         * tests/test-array-mergesort.c: Likewise.
22515         * tests/test-array_list.c: Likewise.
22516         * tests/test-array_oset.c: Likewise.
22517         * tests/test-avltree_list.c: Likewise.
22518         * tests/test-avltree_oset.c: Likewise.
22519         * tests/test-avltreehash_list.c: Likewise.
22520         * tests/test-base64.c: Likewise.
22521         * tests/test-binary-io.c: Likewise.
22522         * tests/test-bitrotate.c: Likewise.
22523         * tests/test-btowc.c: Likewise.
22524         * tests/test-byteswap.c: Likewise.
22525         * tests/test-c-ctype.c: Likewise.
22526         * tests/test-c-stack.c: Likewise.
22527         * tests/test-c-strcasecmp.c: Likewise.
22528         * tests/test-c-strcasestr.c: Likewise.
22529         * tests/test-c-strncasecmp.c: Likewise.
22530         * tests/test-c-strstr.c: Likewise.
22531         * tests/test-canonicalize-lgpl.c: Likewise.
22532         * tests/test-canonicalize.c: Likewise.
22533         * tests/test-carray_list.c: Likewise.
22534         * tests/test-ceilf1.c: Likewise.
22535         * tests/test-ceilf2.c: Likewise.
22536         * tests/test-ceill.c: Likewise.
22537         * tests/test-chown.c: Likewise.
22538         * tests/test-cloexec.c: Likewise.
22539         * tests/test-copy-acl.c: Likewise.
22540         * tests/test-copy-file.c: Likewise.
22541         * tests/test-count-one-bits.c: Likewise.
22542         * tests/test-dprintf-posix.c: Likewise.
22543         * tests/test-dup2.c: Likewise.
22544         * tests/test-dup3.c: Likewise.
22545         * tests/test-duplocale.c: Likewise.
22546         * tests/test-fbufmode.c: Likewise.
22547         * tests/test-fchdir.c: Likewise.
22548         * tests/test-fchownat.c: Likewise.
22549         * tests/test-fcntl-safer.c: Likewise.
22550         * tests/test-fcntl.c: Likewise.
22551         * tests/test-fdopendir.c: Likewise.
22552         * tests/test-fdutimensat.c: Likewise.
22553         * tests/test-fflush2.c: Likewise.
22554         * tests/test-file-has-acl.c: Likewise.
22555         * tests/test-filevercmp.c: Likewise.
22556         * tests/test-flock.c: Likewise.
22557         * tests/test-floorf1.c: Likewise.
22558         * tests/test-floorf2.c: Likewise.
22559         * tests/test-floorl.c: Likewise.
22560         * tests/test-fnmatch.c: Likewise.
22561         * tests/test-fopen.h: Likewise.
22562         * tests/test-fpending.c: Likewise.
22563         * tests/test-fprintf-posix.c: Likewise.
22564         * tests/test-fpurge.c: Likewise.
22565         * tests/test-freadable.c: Likewise.
22566         * tests/test-freadahead.c: Likewise.
22567         * tests/test-freading.c: Likewise.
22568         * tests/test-freadptr.c: Likewise.
22569         * tests/test-freadptr2.c: Likewise.
22570         * tests/test-freadseek.c: Likewise.
22571         * tests/test-freopen.c: Likewise.
22572         * tests/test-frexp.c: Likewise.
22573         * tests/test-frexpl.c: Likewise.
22574         * tests/test-fseek.c: Likewise.
22575         * tests/test-fseeko.c: Likewise.
22576         * tests/test-fstatat.c: Likewise.
22577         * tests/test-fstrcmp.c: Likewise.
22578         * tests/test-fsync.c: Likewise.
22579         * tests/test-ftell.c: Likewise.
22580         * tests/test-ftello.c: Likewise.
22581         * tests/test-func.c: Likewise.
22582         * tests/test-futimens.c: Likewise.
22583         * tests/test-fwritable.c: Likewise.
22584         * tests/test-fwriting.c: Likewise.
22585         * tests/test-getcwd.c: Likewise.
22586         * tests/test-getdate.c: Likewise.
22587         * tests/test-getdelim.c: Likewise.
22588         * tests/test-getdtablesize.c: Likewise.
22589         * tests/test-getgroups.c: Likewise.
22590         * tests/test-getline.c: Likewise.
22591         * tests/test-getndelim2.c: Likewise.
22592         * tests/test-glob.c: Likewise.
22593         * tests/test-hash.c: Likewise.
22594         * tests/test-i-ring.c: Likewise.
22595         * tests/test-iconv-utf.c: Likewise.
22596         * tests/test-iconv.c: Likewise.
22597         * tests/test-idpriv-drop.c: Likewise.
22598         * tests/test-idpriv-droptemp.c: Likewise.
22599         * tests/test-inet_ntop.c: Likewise.
22600         * tests/test-inet_pton.c: Likewise.
22601         * tests/test-isblank.c: Likewise.
22602         * tests/test-isfinite.c: Likewise.
22603         * tests/test-isinf.c: Likewise.
22604         * tests/test-isnan.c: Likewise.
22605         * tests/test-isnand.h: Likewise.
22606         * tests/test-isnanf.h: Likewise.
22607         * tests/test-isnanl.h: Likewise.
22608         * tests/test-lchown.c: Likewise.
22609         * tests/test-ldexpl.c: Likewise.
22610         * tests/test-link.c: Likewise.
22611         * tests/test-linkat.c: Likewise.
22612         * tests/test-linked_list.c: Likewise.
22613         * tests/test-linkedhash_list.c: Likewise.
22614         * tests/test-localename.c: Likewise.
22615         * tests/test-lseek.c: Likewise.
22616         * tests/test-lstat.c: Likewise.
22617         * tests/test-mbmemcasecmp.c: Likewise.
22618         * tests/test-mbmemcasecoll.c: Likewise.
22619         * tests/test-mbrtowc.c: Likewise.
22620         * tests/test-mbscasecmp.c: Likewise.
22621         * tests/test-mbscasestr1.c: Likewise.
22622         * tests/test-mbscasestr2.c: Likewise.
22623         * tests/test-mbscasestr3.c: Likewise.
22624         * tests/test-mbscasestr4.c: Likewise.
22625         * tests/test-mbschr.c: Likewise.
22626         * tests/test-mbscspn.c: Likewise.
22627         * tests/test-mbsinit.c: Likewise.
22628         * tests/test-mbsncasecmp.c: Likewise.
22629         * tests/test-mbsnrtowcs.c: Likewise.
22630         * tests/test-mbspbrk.c: Likewise.
22631         * tests/test-mbspcasecmp.c: Likewise.
22632         * tests/test-mbsrchr.c: Likewise.
22633         * tests/test-mbsrtowcs.c: Likewise.
22634         * tests/test-mbsspn.c: Likewise.
22635         * tests/test-mbsstr1.c: Likewise.
22636         * tests/test-mbsstr2.c: Likewise.
22637         * tests/test-mbsstr3.c: Likewise.
22638         * tests/test-memchr.c: Likewise.
22639         * tests/test-memchr2.c: Likewise.
22640         * tests/test-memcmp.c: Likewise.
22641         * tests/test-memmem.c: Likewise.
22642         * tests/test-memrchr.c: Likewise.
22643         * tests/test-mkdir.c: Likewise.
22644         * tests/test-mkdirat.c: Likewise.
22645         * tests/test-mkfifo.c: Likewise.
22646         * tests/test-mkfifoat.c: Likewise.
22647         * tests/test-mknod.c: Likewise.
22648         * tests/test-nanosleep.c: Likewise.
22649         * tests/test-nl_langinfo.c: Likewise.
22650         * tests/test-obstack-printf.c: Likewise.
22651         * tests/test-open.c: Likewise.
22652         * tests/test-openat.c: Likewise.
22653         * tests/test-pipe-filter-gi1.c: Likewise.
22654         * tests/test-pipe-filter-gi2-main.c: Likewise.
22655         * tests/test-pipe-filter-ii1.c: Likewise.
22656         * tests/test-pipe-filter-ii2-main.c: Likewise.
22657         * tests/test-pipe2.c: Likewise.
22658         * tests/test-popen.h: Likewise.
22659         * tests/test-posixtm.c: Likewise.
22660         * tests/test-pread.c: Likewise.
22661         * tests/test-printf-frexp.c: Likewise.
22662         * tests/test-printf-frexpl.c: Likewise.
22663         * tests/test-printf-posix.c: Likewise.
22664         * tests/test-priv-set.c: Likewise.
22665         * tests/test-quotearg.c: Likewise.
22666         * tests/test-random_r.c: Likewise.
22667         * tests/test-rawmemchr.c: Likewise.
22668         * tests/test-rbtree_list.c: Likewise.
22669         * tests/test-rbtree_oset.c: Likewise.
22670         * tests/test-rbtreehash_list.c: Likewise.
22671         * tests/test-readlink.c: Likewise.
22672         * tests/test-remove.c: Likewise.
22673         * tests/test-rename.c: Likewise.
22674         * tests/test-renameat.c: Likewise.
22675         * tests/test-rmdir.c: Likewise.
22676         * tests/test-round1.c: Likewise.
22677         * tests/test-roundf1.c: Likewise.
22678         * tests/test-roundl.c: Likewise.
22679         * tests/test-safe-alloc.c: Likewise.
22680         * tests/test-sameacls.c: Likewise.
22681         * tests/test-set-mode-acl.c: Likewise.
22682         * tests/test-setenv.c: Likewise.
22683         * tests/test-sigaction.c: Likewise.
22684         * tests/test-signbit.c: Likewise.
22685         * tests/test-sleep.c: Likewise.
22686         * tests/test-snprintf-posix.c: Likewise.
22687         * tests/test-snprintf.c: Likewise.
22688         * tests/test-sprintf-posix.c: Likewise.
22689         * tests/test-stat-time.c: Likewise.
22690         * tests/test-stat.c: Likewise.
22691         * tests/test-strcasestr.c: Likewise.
22692         * tests/test-strchrnul.c: Likewise.
22693         * tests/test-strerror.c: Likewise.
22694         * tests/test-striconv.c: Likewise.
22695         * tests/test-striconveh.c: Likewise.
22696         * tests/test-striconveha.c: Likewise.
22697         * tests/test-strsignal.c: Likewise.
22698         * tests/test-strstr.c: Likewise.
22699         * tests/test-strtod.c: Likewise.
22700         * tests/test-strverscmp.c: Likewise.
22701         * tests/test-symlink.c: Likewise.
22702         * tests/test-symlinkat.c: Likewise.
22703         * tests/test-trunc1.c: Likewise.
22704         * tests/test-trunc2.c: Likewise.
22705         * tests/test-truncf1.c: Likewise.
22706         * tests/test-truncf2.c: Likewise.
22707         * tests/test-truncl.c: Likewise.
22708         * tests/test-uname.c: Likewise.
22709         * tests/test-unlink.c: Likewise.
22710         * tests/test-unlinkat.c: Likewise.
22711         * tests/test-unsetenv.c: Likewise.
22712         * tests/test-usleep.c: Likewise.
22713         * tests/test-utimens.c: Likewise.
22714         * tests/test-utimensat.c: Likewise.
22715         * tests/test-vasnprintf-posix.c: Likewise.
22716         * tests/test-vasnprintf-posix2.c: Likewise.
22717         * tests/test-vasnprintf.c: Likewise.
22718         * tests/test-vasprintf-posix.c: Likewise.
22719         * tests/test-vasprintf.c: Likewise.
22720         * tests/test-vdprintf-posix.c: Likewise.
22721         * tests/test-vfprintf-posix.c: Likewise.
22722         * tests/test-vprintf-posix.c: Likewise.
22723         * tests/test-vsnprintf-posix.c: Likewise.
22724         * tests/test-vsnprintf.c: Likewise.
22725         * tests/test-vsprintf-posix.c: Likewise.
22726         * tests/test-wcrtomb.c: Likewise.
22727         * tests/test-wcsnrtombs.c: Likewise.
22728         * tests/test-wcsrtombs.c: Likewise.
22729         * tests/test-wctype.c: Likewise.
22730         * tests/test-wcwidth.c: Likewise.
22731         * tests/test-xfprintf-posix.c: Likewise.
22732         * tests/test-xmemdup0.c: Likewise.
22733         * tests/test-xprintf-posix.c: Likewise.
22734         * tests/test-xvasprintf.c: Likewise.
22735         * tests/unicase/test-locale-language.c: Likewise.
22736         * tests/unicase/test-mapping-part1.h: Likewise.
22737         * tests/unicase/test-predicate-part1.h: Likewise.
22738         * tests/unicase/test-u8-casecmp.c: Likewise.
22739         * tests/unicase/test-u8-casecoll.c: Likewise.
22740         * tests/unicase/test-u8-casefold.c: Likewise.
22741         * tests/unicase/test-u8-is-cased.c: Likewise.
22742         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22743         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22744         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22745         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22746         * tests/unicase/test-u8-tolower.c: Likewise.
22747         * tests/unicase/test-u8-totitle.c: Likewise.
22748         * tests/unicase/test-u8-toupper.c: Likewise.
22749         * tests/unicase/test-u16-casecmp.c: Likewise.
22750         * tests/unicase/test-u16-casecoll.c: Likewise.
22751         * tests/unicase/test-u16-casefold.c: Likewise.
22752         * tests/unicase/test-u16-is-cased.c: Likewise.
22753         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22754         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22755         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22756         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22757         * tests/unicase/test-u16-tolower.c: Likewise.
22758         * tests/unicase/test-u16-totitle.c: Likewise.
22759         * tests/unicase/test-u16-toupper.c: Likewise.
22760         * tests/unicase/test-u32-casecmp.c: Likewise.
22761         * tests/unicase/test-u32-casecoll.c: Likewise.
22762         * tests/unicase/test-u32-casefold.c: Likewise.
22763         * tests/unicase/test-u32-is-cased.c: Likewise.
22764         * tests/unicase/test-u32-is-casefolded.c: Likewise.
22765         * tests/unicase/test-u32-is-lowercase.c: Likewise.
22766         * tests/unicase/test-u32-is-titlecase.c: Likewise.
22767         * tests/unicase/test-u32-is-uppercase.c: Likewise.
22768         * tests/unicase/test-u32-tolower.c: Likewise.
22769         * tests/unicase/test-u32-totitle.c: Likewise.
22770         * tests/unicase/test-u32-toupper.c: Likewise.
22771         * tests/unicase/test-ulc-casecmp.c: Likewise.
22772         * tests/unicase/test-ulc-casecoll.c: Likewise.
22773         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22774         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22775         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22776         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22777         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22778         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22779         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22780         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22781         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22782         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22783         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22784         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22785         * tests/unictype/test-bidi_byname.c: Likewise.
22786         * tests/unictype/test-bidi_name.c: Likewise.
22787         * tests/unictype/test-bidi_of.c: Likewise.
22788         * tests/unictype/test-bidi_test.c: Likewise.
22789         * tests/unictype/test-block_list.c: Likewise.
22790         * tests/unictype/test-block_of.c: Likewise.
22791         * tests/unictype/test-block_test.c: Likewise.
22792         * tests/unictype/test-categ_and.c: Likewise.
22793         * tests/unictype/test-categ_and_not.c: Likewise.
22794         * tests/unictype/test-categ_byname.c: Likewise.
22795         * tests/unictype/test-categ_name.c: Likewise.
22796         * tests/unictype/test-categ_none.c: Likewise.
22797         * tests/unictype/test-categ_of.c: Likewise.
22798         * tests/unictype/test-categ_or.c: Likewise.
22799         * tests/unictype/test-categ_test_withtable.c: Likewise.
22800         * tests/unictype/test-combining.c: Likewise.
22801         * tests/unictype/test-decdigit.c: Likewise.
22802         * tests/unictype/test-digit.c: Likewise.
22803         * tests/unictype/test-mirror.c: Likewise.
22804         * tests/unictype/test-numeric.c: Likewise.
22805         * tests/unictype/test-pr_byname.c: Likewise.
22806         * tests/unictype/test-pr_test.c: Likewise.
22807         * tests/unictype/test-predicate-part1.h: Likewise.
22808         * tests/unictype/test-scripts.c: Likewise.
22809         * tests/unictype/test-sy_c_ident.c: Likewise.
22810         * tests/unictype/test-sy_java_ident.c: Likewise.
22811         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
22812         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
22813         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
22814         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
22815         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
22816         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
22817         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
22818         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
22819         * tests/uninorm/test-canonical-decomposition.c: Likewise.
22820         * tests/uninorm/test-compat-decomposition.c: Likewise.
22821         * tests/uninorm/test-composition.c: Likewise.
22822         * tests/uninorm/test-decomposing-form.c: Likewise.
22823         * tests/uninorm/test-decomposition.c: Likewise.
22824         * tests/uninorm/test-u8-nfc.c: Likewise.
22825         * tests/uninorm/test-u8-nfd.c: Likewise.
22826         * tests/uninorm/test-u8-nfkc.c: Likewise.
22827         * tests/uninorm/test-u8-nfkd.c: Likewise.
22828         * tests/uninorm/test-u8-normcmp.c: Likewise.
22829         * tests/uninorm/test-u8-normcoll.c: Likewise.
22830         * tests/uninorm/test-u16-nfc.c: Likewise.
22831         * tests/uninorm/test-u16-nfd.c: Likewise.
22832         * tests/uninorm/test-u16-nfkc.c: Likewise.
22833         * tests/uninorm/test-u16-nfkd.c: Likewise.
22834         * tests/uninorm/test-u16-normcmp.c: Likewise.
22835         * tests/uninorm/test-u16-normcoll.c: Likewise.
22836         * tests/uninorm/test-u32-nfc.c: Likewise.
22837         * tests/uninorm/test-u32-nfd.c: Likewise.
22838         * tests/uninorm/test-u32-nfkc.c: Likewise.
22839         * tests/uninorm/test-u32-nfkd.c: Likewise.
22840         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22841         * tests/uninorm/test-u32-normcmp.c: Likewise.
22842         * tests/uninorm/test-u32-normcoll.c: Likewise.
22843         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
22844         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22845         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22846         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22847         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22848         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22849         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22850         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22851         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22852         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22853         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22854         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22855         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22856         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22857         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22858         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22859         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22860         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22861         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22862         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22863         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22864         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22865         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22866         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22867         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22868         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22869         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22870         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22871         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22872         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
22873         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
22874         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
22875         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
22876         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22877         * tests/uniwidth/test-u8-width.c: Likewise.
22878         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22879         * tests/uniwidth/test-u16-width.c: Likewise.
22880         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22881         * tests/uniwidth/test-u32-width.c: Likewise.
22882         * tests/uniwidth/test-uc_width.c: Likewise.
22883         * tests/uniwidth/test-uc_width2.c: Likewise.
22884         * modules/acl-tests (Files): Add tests/macros.h.
22885         * modules/areadlink-tests (Files): Likewise.
22886         * modules/areadlink-with-size-tests (Files): Likewise.
22887         * modules/areadlinkat-tests (Files): Likewise.
22888         * modules/areadlinkat-with-size-tests (Files): Likewise.
22889         * modules/argmatch-tests (Files): Likewise.
22890         * modules/argv-iter-tests (Files): Likewise.
22891         * modules/array-list-tests (Files): Likewise.
22892         * modules/array-mergesort-tests (Files): Likewise.
22893         * modules/array-oset-tests (Files): Likewise.
22894         * modules/avltree-list-tests (Files): Likewise.
22895         * modules/avltree-oset-tests (Files): Likewise.
22896         * modules/avltreehash-list-tests (Files): Likewise.
22897         * modules/base64-tests (Files): Likewise.
22898         * modules/binary-io-tests (Files): Likewise.
22899         * modules/bitrotate-tests (Files): Likewise.
22900         * modules/btowc-tests (Files): Likewise.
22901         * modules/byteswap-tests (Files): Likewise.
22902         * modules/c-ctype-tests (Files): Likewise.
22903         * modules/c-stack-tests (Files): Likewise.
22904         * modules/c-strcase-tests (Files): Likewise.
22905         * modules/c-strcasestr-tests (Files): Likewise.
22906         * modules/c-strstr-tests (Files): Likewise.
22907         * modules/canonicalize-lgpl-tests (Files): Likewise.
22908         * modules/canonicalize-tests (Files): Likewise.
22909         * modules/carray-list-tests (Files): Likewise.
22910         * modules/ceilf-tests (Files): Likewise.
22911         * modules/ceill-tests (Files): Likewise.
22912         * modules/chown-tests (Files): Likewise.
22913         * modules/cloexec-tests (Files): Likewise.
22914         * modules/copy-file-tests (Files): Likewise.
22915         * modules/count-one-bits-tests (Files): Likewise.
22916         * modules/dprintf-posix-tests (Files): Likewise.
22917         * modules/dup2-tests (Files): Likewise.
22918         * modules/dup3-tests (Files): Likewise.
22919         * modules/duplocale-tests (Files): Likewise.
22920         * modules/fbufmode-tests (Files): Likewise.
22921         * modules/fchdir-tests (Files): Likewise.
22922         * modules/fcntl-safer-tests (Files): Likewise.
22923         * modules/fcntl-tests (Files): Likewise.
22924         * modules/fdopendir-tests (Files): Likewise.
22925         * modules/fdutimensat-tests (Files): Likewise.
22926         * modules/fflush-tests (Files): Likewise.
22927         * modules/filevercmp-tests (Files): Likewise.
22928         * modules/flock-tests (Files): Likewise.
22929         * modules/floorf-tests (Files): Likewise.
22930         * modules/floorl-tests (Files): Likewise.
22931         * modules/fnmatch-tests (Files): Likewise.
22932         * modules/fopen-safer-tests (Files): Likewise.
22933         * modules/fopen-tests (Files): Likewise.
22934         * modules/fpending-tests (Files): Likewise.
22935         * modules/fprintf-posix-tests (Files): Likewise.
22936         * modules/fpurge-tests (Files): Likewise.
22937         * modules/freadable-tests (Files): Likewise.
22938         * modules/freadahead-tests (Files): Likewise.
22939         * modules/freading-tests (Files): Likewise.
22940         * modules/freadptr-tests (Files): Likewise.
22941         * modules/freadseek-tests (Files): Likewise.
22942         * modules/freopen-tests (Files): Likewise.
22943         * modules/frexp-nolibm-tests (Files): Likewise.
22944         * modules/frexp-tests (Files): Likewise.
22945         * modules/frexpl-nolibm-tests (Files): Likewise.
22946         * modules/frexpl-tests (Files): Likewise.
22947         * modules/fseek-tests (Files): Likewise.
22948         * modules/fseeko-tests (Files): Likewise.
22949         * modules/fstrcmp-tests (Files): Likewise.
22950         * modules/fsync-tests (Files): Likewise.
22951         * modules/ftell-tests (Files): Likewise.
22952         * modules/ftello-tests (Files): Likewise.
22953         * modules/func-tests (Files): Likewise.
22954         * modules/futimens-tests (Files): Likewise.
22955         * modules/fwritable-tests (Files): Likewise.
22956         * modules/fwriting-tests (Files): Likewise.
22957         * modules/getcwd-tests (Files): Likewise.
22958         * modules/getdate-tests (Files): Likewise.
22959         * modules/getdelim-tests (Files): Likewise.
22960         * modules/getdtablesize-tests (Files): Likewise.
22961         * modules/getgroups-tests (Files): Likewise.
22962         * modules/getline-tests (Files): Likewise.
22963         * modules/getndelim2-tests (Files): Likewise.
22964         * modules/glob-tests (Files): Likewise.
22965         * modules/hash-tests (Files): Likewise.
22966         * modules/i-ring-tests (Files): Likewise.
22967         * modules/iconv-tests (Files): Likewise.
22968         * modules/iconv_open-utf-tests (Files): Likewise.
22969         * modules/idpriv-drop-tests (Files): Likewise.
22970         * modules/idpriv-droptemp-tests (Files): Likewise.
22971         * modules/inet_ntop-tests (Files): Likewise.
22972         * modules/inet_pton-tests (Files): Likewise.
22973         * modules/isblank-tests (Files): Likewise.
22974         * modules/isfinite-tests (Files): Likewise.
22975         * modules/isinf-tests (Files): Likewise.
22976         * modules/isnan-tests (Files): Likewise.
22977         * modules/isnand-nolibm-tests (Files): Likewise.
22978         * modules/isnand-tests (Files): Likewise.
22979         * modules/isnanf-nolibm-tests (Files): Likewise.
22980         * modules/isnanf-tests (Files): Likewise.
22981         * modules/isnanl-nolibm-tests (Files): Likewise.
22982         * modules/isnanl-tests (Files): Likewise.
22983         * modules/lchown-tests (Files): Likewise.
22984         * modules/ldexpl-tests (Files): Likewise.
22985         * modules/link-tests (Files): Likewise.
22986         * modules/linkat-tests (Files): Likewise.
22987         * modules/linked-list-tests (Files): Likewise.
22988         * modules/linkedhash-list-tests (Files): Likewise.
22989         * modules/localename-tests (Files): Likewise.
22990         * modules/lseek-tests (Files): Likewise.
22991         * modules/lstat-tests (Files): Likewise.
22992         * modules/mbmemcasecmp-tests (Files): Likewise.
22993         * modules/mbmemcasecoll-tests (Files): Likewise.
22994         * modules/mbrtowc-tests (Files): Likewise.
22995         * modules/mbscasecmp-tests (Files): Likewise.
22996         * modules/mbscasestr-tests (Files): Likewise.
22997         * modules/mbschr-tests (Files): Likewise.
22998         * modules/mbscspn-tests (Files): Likewise.
22999         * modules/mbsinit-tests (Files): Likewise.
23000         * modules/mbsncasecmp-tests (Files): Likewise.
23001         * modules/mbsnrtowcs-tests (Files): Likewise.
23002         * modules/mbspbrk-tests (Files): Likewise.
23003         * modules/mbspcasecmp-tests (Files): Likewise.
23004         * modules/mbsrchr-tests (Files): Likewise.
23005         * modules/mbsrtowcs-tests (Files): Likewise.
23006         * modules/mbsspn-tests (Files): Likewise.
23007         * modules/mbsstr-tests (Files): Likewise.
23008         * modules/memchr-tests (Files): Likewise.
23009         * modules/memchr2-tests (Files): Likewise.
23010         * modules/memcmp-tests (Files): Likewise.
23011         * modules/memmem-tests (Files): Likewise.
23012         * modules/memrchr-tests (Files): Likewise.
23013         * modules/mkdir-tests (Files): Likewise.
23014         * modules/mkfifo-tests (Files): Likewise.
23015         * modules/mkfifoat-tests (Files): Likewise.
23016         * modules/mknod-tests (Files): Likewise.
23017         * modules/nanosleep-tests (Files): Likewise.
23018         * modules/nl_langinfo-tests (Files): Likewise.
23019         * modules/obstack-printf-tests (Files): Likewise.
23020         * modules/open-tests (Files): Likewise.
23021         * modules/openat-tests (Files): Likewise.
23022         * modules/pipe-filter-gi-tests (Files): Likewise.
23023         * modules/pipe-filter-ii-tests (Files): Likewise.
23024         * modules/pipe2-tests (Files): Likewise.
23025         * modules/popen-safer-tests (Files): Likewise.
23026         * modules/popen-tests (Files): Likewise.
23027         * modules/posixtm-tests (Files): Likewise.
23028         * modules/pread-tests (Files): Likewise.
23029         * modules/printf-frexp-tests (Files): Likewise.
23030         * modules/printf-frexpl-tests (Files): Likewise.
23031         * modules/printf-posix-tests (Files): Likewise.
23032         * modules/priv-set-tests (Files): Likewise.
23033         * modules/quotearg-tests (Files): Likewise.
23034         * modules/random_r-tests (Files): Likewise.
23035         * modules/rawmemchr-tests (Files): Likewise.
23036         * modules/rbtree-list-tests (Files): Likewise.
23037         * modules/rbtree-oset-tests (Files): Likewise.
23038         * modules/rbtreehash-list-tests (Files): Likewise.
23039         * modules/readlink-tests (Files): Likewise.
23040         * modules/remove-tests (Files): Likewise.
23041         * modules/rename-tests (Files): Likewise.
23042         * modules/renameat-tests (Files): Likewise.
23043         * modules/rmdir-tests (Files): Likewise.
23044         * modules/round-tests (Files): Likewise.
23045         * modules/roundf-tests (Files): Likewise.
23046         * modules/roundl-tests (Files): Likewise.
23047         * modules/safe-alloc-tests (Files): Likewise.
23048         * modules/setenv-tests (Files): Likewise.
23049         * modules/sigaction-tests (Files): Likewise.
23050         * modules/signbit-tests (Files): Likewise.
23051         * modules/sleep-tests (Files): Likewise.
23052         * modules/snprintf-posix-tests (Files): Likewise.
23053         * modules/snprintf-tests (Files): Likewise.
23054         * modules/sprintf-posix-tests (Files): Likewise.
23055         * modules/stat-tests (Files): Likewise.
23056         * modules/stat-time-tests (Files): Likewise.
23057         * modules/strcasestr-tests (Files): Likewise.
23058         * modules/strchrnul-tests (Files): Likewise.
23059         * modules/strerror-tests (Files): Likewise.
23060         * modules/striconv-tests (Files): Likewise.
23061         * modules/striconveh-tests (Files): Likewise.
23062         * modules/striconveha-tests (Files): Likewise.
23063         * modules/strsignal-tests (Files): Likewise.
23064         * modules/strstr-tests (Files): Likewise.
23065         * modules/strtod-tests (Files): Likewise.
23066         * modules/strverscmp-tests (Files): Likewise.
23067         * modules/symlink-tests (Files): Likewise.
23068         * modules/symlinkat-tests (Files): Likewise.
23069         * modules/trunc-tests (Files): Likewise.
23070         * modules/truncf-tests (Files): Likewise.
23071         * modules/truncl-tests (Files): Likewise.
23072         * modules/uname-tests (Files): Likewise.
23073         * modules/unicase/cased-tests (Files): Likewise.
23074         * modules/unicase/ignorable-tests (Files): Likewise.
23075         * modules/unicase/locale-language-tests (Files): Likewise.
23076         * modules/unicase/tolower-tests (Files): Likewise.
23077         * modules/unicase/totitle-tests (Files): Likewise.
23078         * modules/unicase/toupper-tests (Files): Likewise.
23079         * modules/unicase/u8-casecmp-tests (Files): Likewise.
23080         * modules/unicase/u8-casecoll-tests (Files): Likewise.
23081         * modules/unicase/u8-casefold-tests (Files): Likewise.
23082         * modules/unicase/u8-is-cased-tests (Files): Likewise.
23083         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
23084         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
23085         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
23086         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23087         * modules/unicase/u8-tolower-tests (Files): Likewise.
23088         * modules/unicase/u8-totitle-tests (Files): Likewise.
23089         * modules/unicase/u8-toupper-tests (Files): Likewise.
23090         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23091         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23092         * modules/unicase/u16-casefold-tests (Files): Likewise.
23093         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23094         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23095         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23096         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23097         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23098         * modules/unicase/u16-tolower-tests (Files): Likewise.
23099         * modules/unicase/u16-totitle-tests (Files): Likewise.
23100         * modules/unicase/u16-toupper-tests (Files): Likewise.
23101         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23102         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23103         * modules/unicase/u32-casefold-tests (Files): Likewise.
23104         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23105         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23106         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23107         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23108         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23109         * modules/unicase/u32-tolower-tests (Files): Likewise.
23110         * modules/unicase/u32-totitle-tests (Files): Likewise.
23111         * modules/unicase/u32-toupper-tests (Files): Likewise.
23112         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23113         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23114         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23115         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23116         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23117         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23118         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23119         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23120         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23121         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23122         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23123         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23124         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23125         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23126         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23127         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23128         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23129         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23130         * modules/unictype/block-list-tests (Files): Likewise.
23131         * modules/unictype/block-of-tests (Files): Likewise.
23132         * modules/unictype/block-test-tests (Files): Likewise.
23133         * modules/unictype/category-C-tests (Files): Likewise.
23134         * modules/unictype/category-Cc-tests (Files): Likewise.
23135         * modules/unictype/category-Cf-tests (Files): Likewise.
23136         * modules/unictype/category-Cn-tests (Files): Likewise.
23137         * modules/unictype/category-Co-tests (Files): Likewise.
23138         * modules/unictype/category-Cs-tests (Files): Likewise.
23139         * modules/unictype/category-L-tests (Files): Likewise.
23140         * modules/unictype/category-Ll-tests (Files): Likewise.
23141         * modules/unictype/category-Lm-tests (Files): Likewise.
23142         * modules/unictype/category-Lo-tests (Files): Likewise.
23143         * modules/unictype/category-Lt-tests (Files): Likewise.
23144         * modules/unictype/category-Lu-tests (Files): Likewise.
23145         * modules/unictype/category-M-tests (Files): Likewise.
23146         * modules/unictype/category-Mc-tests (Files): Likewise.
23147         * modules/unictype/category-Me-tests (Files): Likewise.
23148         * modules/unictype/category-Mn-tests (Files): Likewise.
23149         * modules/unictype/category-N-tests (Files): Likewise.
23150         * modules/unictype/category-Nd-tests (Files): Likewise.
23151         * modules/unictype/category-Nl-tests (Files): Likewise.
23152         * modules/unictype/category-No-tests (Files): Likewise.
23153         * modules/unictype/category-P-tests (Files): Likewise.
23154         * modules/unictype/category-Pc-tests (Files): Likewise.
23155         * modules/unictype/category-Pd-tests (Files): Likewise.
23156         * modules/unictype/category-Pe-tests (Files): Likewise.
23157         * modules/unictype/category-Pf-tests (Files): Likewise.
23158         * modules/unictype/category-Pi-tests (Files): Likewise.
23159         * modules/unictype/category-Po-tests (Files): Likewise.
23160         * modules/unictype/category-Ps-tests (Files): Likewise.
23161         * modules/unictype/category-S-tests (Files): Likewise.
23162         * modules/unictype/category-Sc-tests (Files): Likewise.
23163         * modules/unictype/category-Sk-tests (Files): Likewise.
23164         * modules/unictype/category-Sm-tests (Files): Likewise.
23165         * modules/unictype/category-So-tests (Files): Likewise.
23166         * modules/unictype/category-Z-tests (Files): Likewise.
23167         * modules/unictype/category-Zl-tests (Files): Likewise.
23168         * modules/unictype/category-Zp-tests (Files): Likewise.
23169         * modules/unictype/category-Zs-tests (Files): Likewise.
23170         * modules/unictype/category-and-not-tests (Files): Likewise.
23171         * modules/unictype/category-and-tests (Files): Likewise.
23172         * modules/unictype/category-byname-tests (Files): Likewise.
23173         * modules/unictype/category-name-tests (Files): Likewise.
23174         * modules/unictype/category-none-tests (Files): Likewise.
23175         * modules/unictype/category-of-tests (Files): Likewise.
23176         * modules/unictype/category-or-tests (Files): Likewise.
23177         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23178         * modules/unictype/combining-class-tests (Files): Likewise.
23179         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23180         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23181         * modules/unictype/ctype-blank-tests (Files): Likewise.
23182         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23183         * modules/unictype/ctype-digit-tests (Files): Likewise.
23184         * modules/unictype/ctype-graph-tests (Files): Likewise.
23185         * modules/unictype/ctype-lower-tests (Files): Likewise.
23186         * modules/unictype/ctype-print-tests (Files): Likewise.
23187         * modules/unictype/ctype-punct-tests (Files): Likewise.
23188         * modules/unictype/ctype-space-tests (Files): Likewise.
23189         * modules/unictype/ctype-upper-tests (Files): Likewise.
23190         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23191         * modules/unictype/decimal-digit-tests (Files): Likewise.
23192         * modules/unictype/digit-tests (Files): Likewise.
23193         * modules/unictype/mirror-tests (Files): Likewise.
23194         * modules/unictype/numeric-tests (Files): Likewise.
23195         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23196         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23197         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23198         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23199         Likewise.
23200         * modules/unictype/property-bidi-block-separator-tests (Files):
23201         Likewise.
23202         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23203         Likewise.
23204         * modules/unictype/property-bidi-common-separator-tests (Files):
23205         Likewise.
23206         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23207         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23208         Likewise.
23209         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23210         Likewise.
23211         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23212         Likewise.
23213         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23214         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23215         Likewise.
23216         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23217         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23218         Likewise.
23219         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23220         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23221         * modules/unictype/property-bidi-segment-separator-tests (Files):
23222         Likewise.
23223         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23224         * modules/unictype/property-byname-tests (Files): Likewise.
23225         * modules/unictype/property-combining-tests (Files): Likewise.
23226         * modules/unictype/property-composite-tests (Files): Likewise.
23227         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23228         * modules/unictype/property-dash-tests (Files): Likewise.
23229         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23230         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23231         Likewise.
23232         * modules/unictype/property-deprecated-tests (Files): Likewise.
23233         * modules/unictype/property-diacritic-tests (Files): Likewise.
23234         * modules/unictype/property-extender-tests (Files): Likewise.
23235         * modules/unictype/property-format-control-tests (Files): Likewise.
23236         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23237         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23238         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23239         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23240         * modules/unictype/property-hyphen-tests (Files): Likewise.
23241         * modules/unictype/property-id-continue-tests (Files): Likewise.
23242         * modules/unictype/property-id-start-tests (Files): Likewise.
23243         * modules/unictype/property-ideographic-tests (Files): Likewise.
23244         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23245         * modules/unictype/property-ids-trinary-operator-tests (Files):
23246         Likewise.
23247         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23248         * modules/unictype/property-iso-control-tests (Files): Likewise.
23249         * modules/unictype/property-join-control-tests (Files): Likewise.
23250         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23251         * modules/unictype/property-line-separator-tests (Files): Likewise.
23252         * modules/unictype/property-logical-order-exception-tests (Files):
23253         Likewise.
23254         * modules/unictype/property-lowercase-tests (Files): Likewise.
23255         * modules/unictype/property-math-tests (Files): Likewise.
23256         * modules/unictype/property-non-break-tests (Files): Likewise.
23257         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23258         * modules/unictype/property-numeric-tests (Files): Likewise.
23259         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23260         * modules/unictype/property-other-default-ignorable-code-point-tests
23261         (Files): Likewise.
23262         * modules/unictype/property-other-grapheme-extend-tests (Files):
23263         Likewise.
23264         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23265         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23266         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23267         * modules/unictype/property-other-math-tests (Files): Likewise.
23268         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23269         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23270         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23271         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23272         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23273         * modules/unictype/property-private-use-tests (Files): Likewise.
23274         * modules/unictype/property-punctuation-tests (Files): Likewise.
23275         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23276         * modules/unictype/property-radical-tests (Files): Likewise.
23277         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23278         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23279         * modules/unictype/property-space-tests (Files): Likewise.
23280         * modules/unictype/property-terminal-punctuation-tests (Files):
23281         Likewise.
23282         * modules/unictype/property-test-tests (Files): Likewise.
23283         * modules/unictype/property-titlecase-tests (Files): Likewise.
23284         * modules/unictype/property-unassigned-code-value-tests (Files):
23285         Likewise.
23286         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23287         * modules/unictype/property-uppercase-tests (Files): Likewise.
23288         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23289         * modules/unictype/property-white-space-tests (Files): Likewise.
23290         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23291         * modules/unictype/property-xid-start-tests (Files): Likewise.
23292         * modules/unictype/property-zero-width-tests (Files): Likewise.
23293         * modules/unictype/scripts-tests (Files): Likewise.
23294         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23295         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23296         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23297         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23298         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23299         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23300         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23301         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23302         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23303         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23304         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23305         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23306         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23307         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23308         * modules/uninorm/composition-tests (Files): Likewise.
23309         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23310         * modules/uninorm/decomposition-tests (Files): Likewise.
23311         * modules/uninorm/filter-tests (Files): Likewise.
23312         * modules/uninorm/nfc-tests (Files): Likewise.
23313         * modules/uninorm/nfd-tests (Files): Likewise.
23314         * modules/uninorm/nfkc-tests (Files): Likewise.
23315         * modules/uninorm/nfkd-tests (Files): Likewise.
23316         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23317         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23318         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23319         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23320         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23321         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23322         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23323         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23324         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23325         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23326         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23327         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23328         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23329         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23330         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23331         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23332         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23333         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23334         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23335         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23336         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23337         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23338         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23339         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23340         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23341         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23342         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23343         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23344         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23345         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23346         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23347         * modules/uniwidth/u8-width-tests (Files): Likewise.
23348         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23349         * modules/uniwidth/u16-width-tests (Files): Likewise.
23350         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23351         * modules/uniwidth/u32-width-tests (Files): Likewise.
23352         * modules/uniwidth/width-tests (Files): Likewise.
23353         * modules/unlink-tests (Files): Likewise.
23354         * modules/unsetenv-tests (Files): Likewise.
23355         * modules/usleep-tests (Files): Likewise.
23356         * modules/utimens-tests (Files): Likewise.
23357         * modules/utimensat-tests (Files): Likewise.
23358         * modules/vasnprintf-posix-tests (Files): Likewise.
23359         * modules/vasnprintf-tests (Files): Likewise.
23360         * modules/vasprintf-posix-tests (Files): Likewise.
23361         * modules/vasprintf-tests (Files): Likewise.
23362         * modules/vdprintf-posix-tests (Files): Likewise.
23363         * modules/vfprintf-posix-tests (Files): Likewise.
23364         * modules/vprintf-posix-tests (Files): Likewise.
23365         * modules/vsnprintf-posix-tests (Files): Likewise.
23366         * modules/vsnprintf-tests (Files): Likewise.
23367         * modules/vsprintf-posix-tests (Files): Likewise.
23368         * modules/wcrtomb-tests (Files): Likewise.
23369         * modules/wcsnrtombs-tests (Files): Likewise.
23370         * modules/wcsrtombs-tests (Files): Likewise.
23371         * modules/wctype-tests (Files): Likewise.
23372         * modules/wcwidth-tests (Files): Likewise.
23373         * modules/xmemdup0-tests (Files): Likewise.
23374         * modules/xprintf-posix-tests (Files): Likewise.
23375         * modules/xvasprintf-tests (Files): Likewise.
23376
23377 2009-12-24  Eric Blake  <ebb9@byu.net>
23378
23379         test-nanosleep: fix typo
23380         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23381         patch.
23382         Reported by Bruno Haible.
23383
23384 2009-12-24  Bruno Haible  <bruno@clisp.org>
23385
23386         Reduce namespace pollution on glibc systems.
23387         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23388         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23389         systems.
23390         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23391         <getopt.h> on glibc systems.
23392         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23393         systems.
23394         * lib/fcntl.c: Include <unistd.h> here instead.
23395
23396 2009-12-24  Bruno Haible  <bruno@clisp.org>
23397
23398         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23399
23400 2009-12-24  Eric Blake  <ebb9@byu.net>
23401
23402         tests: add signature checks
23403         * tests/signature.h (SIGNATURE_CHECK): New file.
23404         * modules/atexit-tests (Files): Use it.
23405         * modules/btowc-tests (Files): Likewise.
23406         * modules/canonicalize-lgpl-tests (Files): Likewise.
23407         * modules/ceilf-tests (Files): Likewise.
23408         * modules/ceill-tests (Files): Likewise.
23409         * modules/chown-tests (Files): Likewise.
23410         * modules/dprintf-posix-tests (Files): Likewise.
23411         * modules/dup2-tests (Files): Likewise.
23412         * modules/dup3-tests (Files): Likewise.
23413         * modules/duplocale-tests (Files): Likewise.
23414         * modules/fchdir-tests (Files): Likewise.
23415         * modules/fcntl-tests (Files): Likewise.
23416         * modules/fdopendir-tests (Files): Likewise.
23417         * modules/fflush-tests (Files): Likewise.
23418         * modules/flock-tests (Files): Likewise.
23419         * modules/floorf-tests (Files): Likewise.
23420         * modules/floorl-tests (Files): Likewise.
23421         * modules/fnmatch-tests (Files): Likewise.
23422         * modules/fopen-tests (Files): Likewise.
23423         * modules/fprintf-posix-tests (Files): Likewise.
23424         * modules/freopen-tests (Files): Likewise.
23425         * modules/frexp-nolibm-tests (Files): Likewise.
23426         * modules/frexp-tests (Files): Likewise.
23427         * modules/frexpl-nolibm-tests (Files): Likewise.
23428         * modules/frexpl-tests (Files): Likewise.
23429         * modules/fseek-tests (Files): Likewise.
23430         * modules/fseeko-tests (Files): Likewise.
23431         * modules/fsync-tests (Files): Likewise.
23432         * modules/ftell-tests (Files): Likewise.
23433         * modules/ftello-tests (Files): Likewise.
23434         * modules/futimens-tests (Files): Likewise.
23435         * modules/getaddrinfo-tests (Files): Likewise.
23436         * modules/getcwd-tests (Files): Likewise.
23437         * modules/getdelim-tests (Files): Likewise.
23438         * modules/getdtablesize-tests (Files): Likewise.
23439         * modules/getgroups-tests (Files): Likewise.
23440         * modules/gethostname-tests (Files): Likewise.
23441         * modules/getline-tests (Files): Likewise.
23442         * modules/getopt-posix-tests (Files): Likewise.
23443         * modules/gettimeofday-tests (Files): Likewise.
23444         * modules/glob-tests (Files): Likewise.
23445         * modules/iconv-tests (Files): Likewise.
23446         * modules/inet_ntop-tests (Files): Likewise.
23447         * modules/inet_pton-tests (Files): Likewise.
23448         * modules/isblank-tests (Files): Likewise.
23449         * modules/lchown-tests (Files): Likewise.
23450         * modules/ldexpl-tests (Files): Likewise.
23451         * modules/link-tests (Files): Likewise.
23452         * modules/linkat-tests (Files): Likewise.
23453         * modules/lseek-tests (Files): Likewise.
23454         * modules/lstat-tests (Files): Likewise.
23455         * modules/mbrtowc-tests (Files): Likewise.
23456         * modules/mbsinit-tests (Files): Likewise.
23457         * modules/mbsnrtowcs-tests (Files): Likewise.
23458         * modules/mbsrtowcs-tests (Files): Likewise.
23459         * modules/memchr-tests (Files): Likewise.
23460         * modules/memcmp-tests (Files): Likewise.
23461         * modules/memmem-tests (Files): Likewise.
23462         * modules/memrchr-tests (Files): Likewise.
23463         * modules/mkdir-tests (Files): Likewise.
23464         * modules/mkfifo-tests (Files): Likewise.
23465         * modules/mkfifoat-tests (Files): Likewise.
23466         * modules/mknod-tests (Files): Likewise.
23467         * modules/nanosleep-tests (Files): Likewise.
23468         * modules/nl_langinfo-tests (Files): Likewise.
23469         * modules/obstack-printf-tests (Files): Likewise.
23470         * modules/open-tests (Files): Likewise.
23471         * modules/openat-tests (Files): Likewise.
23472         * modules/perror-tests (Files): Likewise.
23473         * modules/pipe2-tests (Files): Likewise.
23474         * modules/poll-tests (Files): Likewise.
23475         * modules/popen-tests (Files): Likewise.
23476         * modules/posix_spawn-tests (Files): Likewise.
23477         * modules/posix_spawnp-tests (Files): Likewise.
23478         * modules/pread-tests (Files): Likewise.
23479         * modules/printf-posix-tests (Files): Likewise.
23480         * modules/pty-tests (Files): Likewise.
23481         * modules/random_r-tests (Files): Likewise.
23482         * modules/rawmemchr-tests (Files): Likewise.
23483         * modules/readlink-tests (Files): Likewise.
23484         * modules/remove-tests (Files): Likewise.
23485         * modules/rename-tests (Files): Likewise.
23486         * modules/renameat-tests (Files): Likewise.
23487         * modules/rmdir-tests (Files): Likewise.
23488         * modules/round-tests (Files): Likewise.
23489         * modules/roundf-tests (Files): Likewise.
23490         * modules/roundl-tests (Files): Likewise.
23491         * modules/select-tests (Files): Likewise.
23492         * modules/setenv-tests (Files): Likewise.
23493         * modules/sigaction-tests (Files): Likewise.
23494         * modules/sleep-tests (Files): Likewise.
23495         * modules/snprintf-posix-tests (Files): Likewise.
23496         * modules/snprintf-tests (Files): Likewise.
23497         * modules/sprintf-posix-tests (Files): Likewise.
23498         * modules/stat-tests (Files): Likewise.
23499         * modules/strcasestr-tests (Files): Likewise.
23500         * modules/strchrnul-tests (Files): Likewise.
23501         * modules/strerror-tests (Files): Likewise.
23502         * modules/strsignal-tests (Files): Likewise.
23503         * modules/strstr-tests (Files): Likewise.
23504         * modules/strtod-tests (Files): Likewise.
23505         * modules/strverscmp-tests (Files): Likewise.
23506         * modules/symlink-tests (Files): Likewise.
23507         * modules/symlinkat-tests (Files): Likewise.
23508         * modules/times-tests (Files): Likewise.
23509         * modules/trunc-tests (Files): Likewise.
23510         * modules/truncf-tests (Files): Likewise.
23511         * modules/truncl-tests (Files): Likewise.
23512         * modules/tsearch-tests (Files): Likewise.
23513         * modules/uname-tests (Files): Likewise.
23514         * modules/unlink-tests (Files): Likewise.
23515         * modules/unsetenv-tests (Files): Likewise.
23516         * modules/usleep-tests (Files): Likewise.
23517         * modules/utimensat-tests (Files): Likewise.
23518         * modules/vasprintf-tests (Files): Likewise.
23519         * modules/vdprintf-posix-tests (Files): Likewise.
23520         * modules/vfprintf-posix-tests (Files): Likewise.
23521         * modules/vprintf-posix-tests (Files): Likewise.
23522         * modules/vsnprintf-posix-tests (Files): Likewise.
23523         * modules/vsnprintf-tests (Files): Likewise.
23524         * modules/vsprintf-posix-tests (Files): Likewise.
23525         * modules/wcrtomb-tests (Files): Likewise.
23526         * modules/wcsnrtombs-tests (Files): Likewise.
23527         * modules/wcsrtombs-tests (Files): Likewise.
23528         * modules/wcwidth-tests (Files): Likewise.
23529         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23530         * tests/test-isinf.c (isinf): Likewise.
23531         * tests/test-isnan.c (isnan): Likewise.
23532         * tests/test-signbit.c (signbit): Likewise.
23533         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23534         declaration, either as macro or with correct signature.
23535         (select): Ensure function under test is declared with correct
23536         signature in correct header.
23537         * tests/test-atexit.c (atexit): Likewise.
23538         * tests/test-btowc.c (btowc): Likewise.
23539         * tests/test-canonicalize-lgpl.c (realpath)
23540         (canonicalize_file_name): Likewise.
23541         * tests/test-ceilf1.c (ceilf): Likewise.
23542         * tests/test-ceill.c (ceill): Likewise.
23543         * tests/test-chown.c (chown): Likewise.
23544         * tests/test-dprintf-posix.c (dprintf): Likewise.
23545         * tests/test-dup2.c (dup2): Likewise.
23546         * tests/test-dup3.c (dup3): Likewise.
23547         * tests/test-duplocale.c (duplocale): Likewise.
23548         * tests/test-fchdir.c (fchdir): Likewise.
23549         * tests/test-fchownat.c (fchownat): Likewise.
23550         * tests/test-fcntl.c (fcntl): Likewise.
23551         * tests/test-fdopendir.c (fdopendir): Likewise.
23552         * tests/test-fflush.c (fflush): Likewise.
23553         * tests/test-flock.c (flock): Likewise.
23554         * tests/test-floorf1.c (floorf): Likewise.
23555         * tests/test-floorl.c (floorl): Likewise.
23556         * tests/test-fnmatch.c (fnmatch): Likewise.
23557         * tests/test-fopen.c (fopen): Likewise.
23558         * tests/test-fprintf-posix.c (fprintf): Likewise.
23559         * tests/test-freopen.c (freopen): Likewise.
23560         * tests/test-frexp.c (frexp): Likewise.
23561         * tests/test-frexpl.c (frexpl): Likewise.
23562         * tests/test-fseek.c (fseek): Likewise.
23563         * tests/test-fseeko.c (fseeko): Likewise.
23564         * tests/test-fstatat.c (fstatat): Likewise.
23565         * tests/test-fsync.c (fsync): Likewise.
23566         * tests/test-ftell.c (ftell): Likewise.
23567         * tests/test-ftello.c (ftello): Likewise.
23568         * tests/test-futimens.c (futimens): Likewise.
23569         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23570         (gai_strerror): Likewise.
23571         * tests/test-getcwd.c (getcwd): Likewise.
23572         * tests/test-getdelim.c (getdelim): Likewise.
23573         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23574         * tests/test-getgroups.c (getgroups): Likewise.
23575         * tests/test-gethostname.c (gethostname): Likewise.
23576         * tests/test-getline.c (getline): Likewise.
23577         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23578         Likewise.
23579         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23580         * tests/test-glob.c (glob, globfree): Likewise.
23581         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23582         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23583         * tests/test-inet_pton.c (inet_pton): Likewise.
23584         * tests/test-isblank.c (isblank): Likewise.
23585         * tests/test-lchown.c (lchown): Likewise.
23586         * tests/test-ldexpl.c (ldexpl): Likewise.
23587         * tests/test-link.c (link): Likewise.
23588         * tests/test-linkat.c (linkat): Likewise.
23589         * tests/test-lseek.c (lseek): Likewise.
23590         * tests/test-lstat.c (lstat): Likewise.
23591         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23592         * tests/test-mbsinit.c (mbsinit): Likewise.
23593         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23594         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23595         * tests/test-memchr.c (memchr): Likewise.
23596         * tests/test-memcmp.c (memcmp): Likewise.
23597         * tests/test-memmem.c (memmem): Likewise.
23598         * tests/test-memrchr.c (memrchr): Likewise.
23599         * tests/test-mkdir.c (mkdir): Likewise.
23600         * tests/test-mkdirat.c (mkdirat): Likewise.
23601         * tests/test-mkfifo.c (mkfifo): Likewise.
23602         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23603         * tests/test-mknod.c (mknod): Likewise.
23604         * tests/test-nanosleep.c (nanosleep): Likewise.
23605         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23606         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23607         Likewise.
23608         * tests/test-open.c (open): Likewise.
23609         * tests/test-openat.c (openat): Likewise.
23610         * tests/test-perror.c (perror): Likewise.
23611         * tests/test-pipe2.c (pipe2): Likewise.
23612         * tests/test-poll.c (poll): Likewise.
23613         * tests/test-popen.c (popen, pclose): Likewise.
23614         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23615         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23616         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23617         (posix_spawn_file_actions_destroy)
23618         (posix_spawn_file_actions_addclose)
23619         (posix_spawn_file_actions_addopen)
23620         (posix_spawn_file_actions_adddup2): Likewise.
23621         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23622         * tests/test-pread.c (pread): Likewise.
23623         * tests/test-printf-posix.c (printf): Likewise.
23624         * tests/test-pty.c (openpty, forkpty): Likewise.
23625         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23626         (random_r): Likewise.
23627         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23628         * tests/test-readlink.c (readlink): Likewise.
23629         * tests/test-remove.c (remove): Likewise.
23630         * tests/test-rename.c (rename): Likewise.
23631         * tests/test-renameat.c (renameat): Likewise.
23632         * tests/test-rmdir.c (rmdir): Likewise.
23633         * tests/test-round1.c (round): Likewise.
23634         * tests/test-roundf1.c (roundf): Likewise.
23635         * tests/test-roundl.c (roundl): Likewise.
23636         * tests/test-setenv.c (setenv): Likewise.
23637         * tests/test-sigaction.c (sigaction): Likewise.
23638         * tests/test-sleep.c (sleep): Likewise.
23639         * tests/test-snprintf.c (snprintf): Likewise.
23640         * tests/test-sprintf-posix.c (sprintf): Likewise.
23641         * tests/test-stat.c (stat): Likewise.
23642         * tests/test-stpncpy.c (stpncpy): Likewise.
23643         * tests/test-strcasestr.c (strcasestr): Likewise.
23644         * tests/test-strchrnul.c (strchrnul): Likewise.
23645         * tests/test-strerror.c (strerror): Likewise.
23646         * tests/test-strsignal.c (strsignal): Likewise.
23647         * tests/test-strstr.c (strstr): Likewise.
23648         * tests/test-strtod.c (strtod): Likewise.
23649         * tests/test-strverscmp.c (strverscmp): Likewise.
23650         * tests/test-symlink.c (symlink): Likewise.
23651         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23652         * tests/test-times.c (times): Likewise.
23653         * tests/test-trunc1.c (trunc): Likewise.
23654         * tests/test-truncf1.c (truncf): Likewise.
23655         * tests/test-truncl.c (truncl): Likewise.
23656         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23657         Likewise.
23658         * tests/test-uname.c (uname): Likewise.
23659         * tests/test-unlink.c (unlink): Likewise.
23660         * tests/test-unlinkat.c (unlinkat): Likewise.
23661         * tests/test-unsetenv.c (unsetenv): Likewise.
23662         * tests/test-usleep.c (usleep): Likewise.
23663         * tests/test-utimensat.c (utimensat): Likewise.
23664         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23665         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23666         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23667         * tests/test-vprintf-posix.c (vprintf): Likewise.
23668         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23669         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23670         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23671         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23672         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23673         * tests/test-wcwidth.c (wcwidth): Likewise.
23674
23675         build: pull in conditional headers during GNULIB_POSIXCHECK
23676         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23677         definitions from any conditionally-included headers.
23678         * lib/stdlib.in.h (includes): Likewise.
23679         * lib/unistd.in.h (includes): Likewise.
23680
23681 2009-12-24  Bruno Haible  <bruno@clisp.org>
23682
23683         * tests/test-argv-iter.c: Include header file being tested immediately
23684         after config.h.
23685         * tests/test-base64.c: Likewise.
23686         * tests/test-flock.c: Likewise.
23687         * tests/test-fsync.c: Likewise.
23688         * tests/test-getdate.c: Likewise.
23689         * tests/test-getndelim2.c: Likewise.
23690         * tests/test-isfinite.c: Likewise.
23691         * tests/test-isinf.c: Likewise.
23692         * tests/test-strerror.c: Likewise.
23693         * tests/test-strsignal.c: Likewise.
23694
23695 2009-12-23  Eric Blake  <ebb9@byu.net>
23696
23697         unistd: work around cygwin bug
23698         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23699         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23700         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23701
23702 2009-12-23  Bruno Haible  <bruno@clisp.org>
23703
23704         localename: More tests.
23705         * tests/test-localename.c (SIZEOF): New macro.
23706         (categories): New variable.
23707         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23708         test_locale_name_default): Add test w.r.t. thread locale.
23709         (test_locale_name_thread): New function.
23710         (main): Invoke it.
23711
23712         localename: Make aware of thread locale.
23713         * lib/localename.h (gl_locale_name_thread): New declaration.
23714         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23715         behaviour with respect to thread locale.
23716         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23717         <langinfo.h>, glthread/lock.h.
23718         (SIZE_BITS): New macro.
23719         (string_hash): New function.
23720         (struct hash_node): New type.
23721         (HASH_TABLE_SIZE): New macro.
23722         (struniq_hash_table, struniq_lock): New variables.
23723         (struniq): New function.
23724         (gl_locale_name_thread): New function.
23725         (gl_locale_name): Invoke it.
23726         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23727         * modules/localename (Depends-on): Add lock.
23728         Reported by Mike Gran <spk121@yahoo.com>.
23729
23730 2009-12-23  Eric Blake  <ebb9@byu.net>
23731
23732         va-args: new module
23733         * modules/va-args: New file.
23734         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23735         * MODULES.html.sh (Core language properties): Mention it.
23736
23737         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23738         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23739         named alias for __attribute__((__unused__)).
23740         * lib/chown.c: Update client.
23741         * lib/fchmodat.c: Likewise.
23742         * lib/fts.c: Likewise.
23743         * lib/getdate.y: Likewise.
23744         * lib/getgroups.c: Likewise.
23745         * lib/getopt.c: Likewise.
23746         * lib/getugroups.c: Likewise.
23747         * lib/mkdir.c: Likewise.
23748         * lib/mkfifo.c: Likewise.
23749         * lib/mkfifoat.c: Likewise.
23750         * lib/mknod.c: Likewise.
23751         * lib/mknodat.c: Likewise.
23752         * lib/readlink.c: Likewise.
23753         * lib/se-context.in.h: Likewise.
23754         * lib/se-selinux.in.h: Likewise.
23755         * lib/sockets.c: Likewise.
23756         * lib/symlink.c: Likewise.
23757         * lib/symlinkat.c: Likewise.
23758         * lib/unicodeio.c: Likewise.
23759         * lib/unistr.h: Likewise.
23760         * tests/test-areadlink.c: Likewise.
23761         * tests/test-areadlinkat.c: Likewise.
23762         * tests/test-filenamecat.c: Likewise.
23763         * tests/test-fseeko.c: Likewise.
23764         * tests/test-ftello.c: Likewise.
23765         * tests/test-getdate.c: Likewise.
23766         * tests/test-getgroups.c: Likewise.
23767         * tests/test-gethostname.c: Likewise.
23768         * tests/test-quotearg.c: Likewise.
23769         * tests/test-version-etc.c: Likewise.
23770         * tests/test-xalloc-die.c: Likewise.
23771         * tests/test-xfprintf-posix.c: Likewise.
23772         * tests/test-xprintf-posix.c: Likewise.
23773         * tests/test-xvasprintf.c: Likewise.
23774
23775         tests: avoid compiler warnings
23776         * tests/test-fcntl.c (main): Delete unused parameters.
23777         * tests/test-freopen-safer.c (main): Likewise.
23778         * tests/test-xalloc-die.c (main): Mark unused parameters.
23779         * tests/test-fseeko.c (main): Likewise.
23780         * tests/test-ftello.c (main): Likewise.
23781         * tests/test-nanosleep.c (main): Avoid declaration warning.
23782         * tests/test-sleep.c (main): Likewise.
23783         * tests/test-unsetenv.c (main): Silence warning about string
23784         literal.
23785         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23786
23787 2009-12-23  Bruno Haible  <bruno@clisp.org>
23788
23789         * tests/test-localename.c (test_locale_name): New function, extracted
23790         from main. Also test mixed situations.
23791         (test_locale_name_posix, test_locale_name_environ,
23792         test_locale_name_default): New functions.
23793         (main): Invoke them all.
23794         * modules/localename-tests (configure.ac): Test for newlocale.
23795
23796 2009-12-23  Bruno Haible  <bruno@clisp.org>
23797
23798         unistd: Ensure getcwd gets declared before being overridden.
23799         * lib/unistd.in.h: Conditionally include <io.h>.
23800
23801 2009-12-22  Bruno Haible  <bruno@clisp.org>
23802
23803         wchar: Diagnose broken combination of glibc and gcc versions and flags.
23804         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
23805         (gl_WCHAR_H): Invoke it.
23806         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
23807         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
23808         Reported by Karl Berry <karl@freefriends.org>.
23809
23810 2009-12-22  Eric Blake  <ebb9@byu.net>
23811
23812         math, unistd: avoid redundant includes
23813         * lib/math.in.h (isnan): No need to re-include <math.h>.
23814         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
23815
23816         getsubopt: work around cygwin bug
23817         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
23818         avoid conflicting with system getsubopt.
23819         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
23820         bug.
23821
23822         getopt: synchronize from glibc
23823         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
23824         parameter order.  Adjust all callers.
23825         (_getopt_internal_r, main): Adjust quoting in error messages.
23826         Drop considerations for outdated POSIX 1003.2 error message.
23827         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
23828         callers.
23829         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
23830
23831         test-getopt: test stderr behavior
23832         * modules/getopt-posix-tests (Depends-on): Add dup2.
23833         * tests/test-getopt.c (ASSERT): Avoid stderr.
23834         (main): Move stderr to a temporary file.
23835         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
23836         Instead, add parameter to inform caller if output occurred.
23837         (test_getopt): Adjust all existing tests to expect silence, and
23838         add new tests of leading ":".
23839         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23840         glibc shortcomings with leading "-:" or "+:" in optstring.
23841         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23842         Likewise.
23843         * doc/posix-functions/getopt.texi (getopt): Likewise.
23844
23845         test-getopt: enhance test
23846         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
23847         supports optind=0.
23848         * tests/test-getopt.c (OPTIND_MIN): Move...
23849         * tests/test-getopt.h (OPTIND_MIN): ...here.
23850         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
23851         Require that optind=0 works, since modern BSD supports it in
23852         addition to optreset, and since coreutils expects it.
23853         (test_getopt_long_only): New test.
23854         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23855         glibc shortcomings with 'W;', and enforcement of optind=0.
23856         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23857         Likewise.
23858
23859 2009-12-21  Bruno Haible  <bruno@clisp.org>
23860
23861         localename: Improvements for MacOS X and Cygwin.
23862         * lib/localename.h (gl_locale_name_environ): New declaration.
23863         * lib/localename.c (gl_locale_name_environ): New function, extracted from
23864         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
23865         (gl_locale_name_posix): Invoke it.
23866         (gl_locale_name_default): Add comments. Use Windows native API also on
23867         Cygwin.
23868
23869 2009-12-21  Bruno Haible  <bruno@clisp.org>
23870
23871         Update list of Win32 locale ids.
23872         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
23873         (LANG_SAMI): Renamed from LANG_SAAMI.
23874         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
23875         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
23876         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
23877         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
23878         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
23879         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
23880         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
23881         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
23882         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
23883         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
23884         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
23885         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
23886         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
23887         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
23888         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
23889         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
23890         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
23891         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
23892         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
23893         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
23894         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
23895         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
23896         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
23897         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
23898         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
23899         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
23900         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
23901         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
23902         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
23903         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
23904         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
23905         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
23906         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
23907         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
23908         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
23909         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
23910         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
23911         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
23912         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
23913         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
23914         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
23915         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
23916         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
23917         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
23918         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
23919         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
23920         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
23921         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
23922         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
23923         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
23924         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
23925         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
23926         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
23927         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
23928         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
23929         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
23930         Add more languages and countries for Sami, Sorbian. Add more countries
23931         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
23932         for Pashto. Change country for Syriac, Tswana.
23933
23934 2009-12-21  Eric Blake  <ebb9@byu.net>
23935
23936         test-utimens: avoid spurious failure
23937         * tests/test-chown.h (nap): Factor...
23938         * tests/nap.h: ...into new file.
23939         * tests/test-lchown.h (nap): Avoid duplication.
23940         * tests/test-utimens-common.h (nap): Use shared implementation,
23941         necessary on file systems with 1-second resolution.
23942         * modules/chown-tests (Files): Include new file.
23943         * modules/fdutimensat-tests (Files): Likewise.
23944         * modules/futimens-tests (Files): Likewise.
23945         * modules/lchown-tests (Files): Likewise.
23946         * modules/openat-tests (Files): Likewise.
23947         * modules/utimens-tests (Files): Likewise.
23948         * modules/utimensat-tests (Files): Likewise.
23949
23950 2009-12-19  Eric Blake  <ebb9@byu.net>
23951
23952         futimens, utimensat: work around Linux bug
23953         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23954         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23955         * lib/utimensat.c (rpl_utimensat): Work around it.
23956         * lib/futimens.c (rpl_futimens): Adjust comment.
23957
23958         utimens: work around Linux ctime bug
23959         * lib/utimens.c (detect_ctime_bug): New helper function.
23960         (update_timespec): Differentiate between workaround needed for
23961         this bug vs. what is needed for systems that lack utimensat.
23962         (fdutimens, lutimens): Work around bug.
23963
23964         utimens: check for ctime update
23965         * tests/test-utimens-common.h (check_ctime): Define.
23966         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23967         * tests/test-futimens.h (test_futimens): Likewise.
23968         * tests/test-lutimens.h (test_lutimens): Likewise.
23969         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23970         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23971
23972 2009-12-19  Bruno Haible  <bruno@clisp.org>
23973
23974         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23975         * tests/test-dprintf-posix2.sh: New file.
23976         * tests/test-dprintf-posix2.c: New file.
23977         * modules/dprintf-posix-tests (Files): Add them.
23978         (configure.ac): Check for getrlimit and setrlimit.
23979         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23980
23981 2009-12-19  Bruno Haible  <bruno@clisp.org>
23982
23983         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23984         * tests/test-fprintf-posix3.sh: New file.
23985         * tests/test-fprintf-posix3.c: New file.
23986         * modules/fprintf-posix-tests (Files): Add them.
23987         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23988
23989 2009-12-19  Eric Blake  <ebb9@byu.net>
23990
23991         dirfd: fix prototype
23992         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23993         * lib/dirfd.c (dirfd): Likewise.
23994
23995         canonicalize: reduce memory usage
23996         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
23997         allocation to size.
23998         Reported by Solar Designer <solar@openwall.com>.
23999
24000 2009-12-19  Bruno Haible  <bruno@clisp.org>
24001
24002         New module attribute 'Applicability'.
24003         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
24004         * gnulib-tool: New option --extract-applicability.
24005         (func_usage): Document it.
24006         (sed_extract_prog): Recognize it.
24007         (func_get_applicability): New function.
24008         (func_import): Generalize handling of 'link-warning' module.
24009         * modules/link-warning (Applicability): New section.
24010         * modules/arg-nonnull (Applicability): New section.
24011         Repoted by Simon Josefsson <simon@josefsson.org>.
24012
24013 2009-12-19  Bruno Haible  <bruno@clisp.org>
24014
24015         fflush: tweak
24016         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
24017         * lib/fseeko.c (rpl_fseeko): Likewise.
24018
24019 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
24020
24021         * lib/gl_list.h: Fix typo in comment.
24022
24023 2009-12-16  Eric Blake  <ebb9@byu.net>
24024
24025         fcntl: use to simplify other modules
24026         * modules/cloexec (Depends-on): Add fcntl.
24027         * modules/fchdir (Depends-on): Likewise.
24028         * modules/fd-safer-flag (Depends-on): Likewise.
24029         * modules/unistd-safer (Depends-on): Likewise.
24030         * modules/dup3 (configure.ac): Set module indicator.
24031         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
24032         missing.
24033         * lib/fchdir.c (_gl_register_dup): Fix comment.
24034         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24035         * lib/dup-safer.c (dup_safer): Likewise.
24036         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
24037         * lib/dup3.c (dup3): Likewise.
24038         * tests/test-fchdir.c (main): Enhance test.
24039         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
24040
24041         fcntl: port portions of fcntl to mingw
24042         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
24043         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
24044         replacement for mingw.
24045         * modules/fcntl (Description): Update.
24046         (Depends-on): Add dup2.
24047         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
24048         * modules/fcntl-h (Makefile.am): Substitute it.
24049         * lib/fcntl.in.h (fcntl): Update declaration.
24050         (F_DUPFD, F_GETFD): New macros, when needed.
24051         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24052         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24053         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24054         we now guarantee.
24055
24056         fcntl: work around cygwin bug in F_DUPFD
24057         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
24058         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
24059         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
24060         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
24061         * doc/posix-functions/fcntl.texi (fcntl): Document it.
24062
24063         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
24064         * modules/fcntl (Files): List new files.
24065         (configure.ac): Run a test.
24066         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
24067         * lib/fcntl.c (rpl_fcntl): Likewise.
24068         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
24069         (gl_FCNTL_H): Always replace fcntl.h.
24070         * modules/fcntl-h (Makefile.am): Substitute witnesses.
24071         * lib/fcntl.in.h (fcntl): Declare replacement.
24072         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
24073         needed, plus a witness.
24074         * doc/posix-functions/fcntl.texi (fcntl): Document this.
24075         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24076         * tests/test-fcntl.c: New file.
24077         * modules/fcntl-tests: Likewise.
24078
24079         binary-io: avoid potential compilation warning
24080         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
24081         directives.
24082
24083         fflush: avoid compilation error on NetBSD
24084         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
24085         between off_t and fpos_t, since the latter is sometimes a struct.
24086         * lib/fseeko.c (rpl_fseeko): Likewise.
24087         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24088
24089 2009-12-15  Eric Blake  <ebb9@byu.net>
24090
24091         fcntl-h, stdio, sys_ioctl: fix declarations
24092         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24093         function must not take arguments.
24094         * lib/sys_ioctl.in.h (ioctl): Likewise.
24095         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24096         (open): Add a link warning.
24097
24098 2009-12-15  Jim Meyering  <meyering@redhat.com>
24099
24100         areadlink, areadlink-with-size: relax license to LGPLv2+
24101         * modules/areadlink (License): Relax to LGPLv2+.
24102         * modules/areadlink-with-size (License): Likewise.
24103
24104 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24105             Bruno Haible  <bruno@clisp.org>
24106
24107         *printf: Fix memory leak.
24108         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24109         * lib/vfprintf.c (vfprintf): Likewise.
24110         * lib/dprintf.c (dprintf): Likewise.
24111         * lib/vdprintf.c (vdprintf): Likewise.
24112
24113 2009-12-14  Eric Blake  <ebb9@byu.net>
24114
24115         accept4: adjust module dependencies
24116         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24117
24118         utimens: one more try at avoiding compiler warning
24119         * lib/utimens.c (lutimens): Lower scope of result.
24120
24121 2009-12-13  Bruno Haible  <bruno@clisp.org>
24122
24123         Move the malloc checking from module 'list' to new module 'xlist'.
24124         * modules/xlist: New file.
24125         * lib/gl_xlist.h: New file.
24126         * lib/gl_xlist.c: New file.
24127         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24128         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24129         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24130         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24131         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24132         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24133         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24134         gl_sortedlist_nx_add): New declarations.
24135         (struct gl_list_implementation): Rename and change methods accordingly.
24136         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24137         (gl_list_nx_create): Renamed from gl_list_create.
24138         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24139         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24140         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24141         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24142         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24143         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24144         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24145         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24146         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24147         gl_list_create_empty.
24148         (gl_list_nx_create): Renamed from gl_list_create.
24149         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24150         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24151         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24152         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24153         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24154         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24155         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24156         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24157         * lib/gl_array_list.c: Don't include xalloc.h.
24158         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24159         NULL upon out-of-memory.
24160         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24161         out-of-memory.
24162         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24163         Change return type to 'int'.
24164         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24165         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24166         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24167         upon out-of-memory.
24168         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24169         upon out-of-memory.
24170         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24171         upon out-of-memory.
24172         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24173         upon out-of-memory.
24174         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24175         out-of-memory.
24176         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24177         Update.
24178         (gl_array_list_implementation): Update.
24179         * lib/gl_carray_list.c: Don't include xalloc.h.
24180         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24181         Return NULL upon out-of-memory.
24182         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24183         out-of-memory.
24184         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24185         Change return type to 'int'.
24186         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24187         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24188         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24189         upon out-of-memory.
24190         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24191         upon out-of-memory.
24192         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24193         out-of-memory.
24194         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24195         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24196         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24197         Update.
24198         (gl_carray_list_implementation): Update.
24199         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24200         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24201         gl_linked_create_empty. Return NULL upon out-of-memory.
24202         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24203         out-of-memory.
24204         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24205         Change return type to 'int'. Return -1 upon out-of-memory.
24206         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24207         out-of-memory.
24208         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24209         upon out-of-memory.
24210         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24211         upon out-of-memory.
24212         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24213         NULL upon out-of-memory.
24214         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24215         upon out-of-memory.
24216         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24217         out-of-memory.
24218         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24219         Update.
24220         * lib/gl_linked_list.c: Don't include xalloc.h.
24221         (gl_linked_list_implementation): Update.
24222         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24223         (add_to_bucket): Change return type to 'int'.
24224         (gl_linkedhash_list_implementation): Update.
24225         * lib/gl_anytree_list1.h (free_subtree): New function.
24226         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24227         gl_tree_create_empty. Return NULL upon out-of-memory.
24228         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24229         Change return type to 'int'. Return -1 upon out-of-memory.
24230         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24231         out-of-memory.
24232         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24233         (gl_tree_remove_node): New function, moved here from
24234         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24235         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24236         Update.
24237         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24238         malloc, not xmalloc. Return NULL upon out-of-memory.
24239         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24240         out-of-memory.
24241         (gl_tree_remove_node_from_tree): New function, extracted from
24242         gl_tree_remove_node.
24243         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24244         upon out-of-memory.
24245         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24246         out-of-memory.
24247         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24248         upon out-of-memory.
24249         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24250         upon out-of-memory.
24251         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24252         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24253         not xmalloc. Return NULL upon out-of-memory.
24254         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24255         out-of-memory.
24256         (gl_tree_remove_node_from_tree): New function, extracted from
24257         gl_tree_remove_node.
24258         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24259         upon out-of-memory.
24260         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24261         out-of-memory.
24262         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24263         upon out-of-memory.
24264         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24265         upon out-of-memory.
24266         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24267         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24268         gl_anytree_list1.h before gl_anyavltree_list2.h.
24269         (gl_avltree_list_implementation): Update.
24270         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24271         gl_anytree_list1.h before gl_anyavltree_list2.h.
24272         (gl_rbtree_list_implementation): Update.
24273         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24274         Change return type to 'int'. Return -1 upon out-of-memory. Use
24275         __builtin_expect.
24276         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24277         (gl_avltreehash_list_implementation): Update.
24278         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24279         (gl_rbtreehash_list_implementation): Update.
24280         * modules/array-list (Depends-on): Remove xalloc.
24281         * modules/carray-list (Depends-on): Likewise.
24282         * modules/linked-list (Depends-on): Likewise.
24283         * modules/linkedhash-list (Depends-on): Likewise.
24284         * modules/avltree-list (Depends-on): Likewise.
24285         * modules/rbtree-list (Depends-on): Likewise.
24286         * modules/avltreehash-list (Depends-on): Likewise.
24287         * modules/rbtreehash-list (Depends-on): Likewise.
24288
24289         * modules/xsublist: New file.
24290         * lib/gl_xsublist.h: New file.
24291         * lib/gl_xsublist.c: New file.
24292         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24293         (gl_sublist_nx_create): New declaration.
24294         * lib/gl_sublist.c: Don't include xalloc.h.
24295         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24296         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24297         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24298         Change return type to 'int'. Return -1 upon out-of-memory.
24299         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24300         upon out-of-memory.
24301         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24302         NULL upon out-of-memory.
24303         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24304         upon out-of-memory.
24305         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24306         NULL upon out-of-memory.
24307         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24308         NULL upon out-of-memory.
24309         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24310         upon out-of-memory.
24311         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24312         (gl_sublist_list_implementation): Update.
24313         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24314         upon out-of-memory.
24315         * modules/sublist (Depends-on): Remove xalloc.
24316
24317         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24318         * tests/test-carray_list.c: Likewise.
24319         * tests/test-linked_list.c: Likewise.
24320         * tests/test-linkedhash_list.c: Likewise.
24321         * tests/test-avltree_list.c: Likewise.
24322         * tests/test-rbtree_list.c: Likewise.
24323         * tests/test-avltreehash_list.c: Likewise.
24324         * tests/test-rbtreehash_list.c: Likewise.
24325         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24326         * modules/carray-list-tests (Makefile.am): Likewise.
24327         * modules/linked-list-tests (Makefile.am): Likewise.
24328         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24329         * modules/avltree-list-tests (Makefile.am): Likewise.
24330         * modules/rbtree-list-tests (Makefile.am): Likewise.
24331         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24332         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24333
24334         * NEWS: Mention the changes.
24335
24336         * lib/clean-temp.c: Include gl_xlist.h.
24337         * modules/clean-temp (Depends-on): Add xlist.
24338
24339         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24340         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24341
24342         * tests/test-array_oset.c: Include gl_xlist.h.
24343         * modules/array-oset-tests (Depends-on): Add xlist.
24344
24345         Reported by José E. Marchesi <jemarch@gnu.org>.
24346
24347 2009-12-13  Bruno Haible  <bruno@clisp.org>
24348
24349         Move the malloc checking from module 'oset' to new module 'xoset'.
24350         * modules/xoset: New file.
24351         * lib/gl_xoset.h: New file.
24352         * lib/gl_xoset.c: New file.
24353         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24354         declarations.
24355         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24356         (struct gl_oset_implementation): Rename and change methods accordingly.
24357         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24358         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24359         'int'. Mark as __warn_unused_result__.
24360         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24361         gl_oset_create_empty.
24362         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24363         'int'.
24364         * lib/gl_array_oset.c: Don't include xalloc.h.
24365         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24366         malloc, not xmalloc.
24367         (grow): Change return type to 'int'. Don't call xalloc_die.
24368         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24369         to 'int'.
24370         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24371         'int'.
24372         (gl_array_oset_implementation): Update.
24373         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24374         gl_tree_create_empty.
24375         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24376         'int'.
24377         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24378         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24379         xmalloc.
24380         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24381         not xmalloc.
24382         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24383         xmalloc.
24384         (gl_avltree_oset_implementation): Update.
24385         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24386         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24387         xmalloc.
24388         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24389         not xmalloc.
24390         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24391         xmalloc.
24392         (gl_rbtree_oset_implementation): Update.
24393         * modules/array-oset (Depends-on): Remove xalloc.
24394         * modules/avltree-oset (Depends-on): Likewise.
24395         * modules/rbtree-oset (Depends-on): Likewise.
24396         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24397         * tests/test-avltree_oset.c: Likewise.
24398         * tests/test-rbtree_oset.c: Likewise.
24399         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24400         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24401         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24402         * NEWS: Mention the change.
24403
24404 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24405
24406         maint.mk: allow a project to override release-prep commands
24407         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24408         commands into a new rule.
24409         (release-prep): New rule.
24410         (release-prep-hook): New overridable variable.
24411
24412 2009-12-13  Bruno Haible  <bruno@clisp.org>
24413
24414         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24415
24416 2009-12-13  Jim Meyering  <meyering@redhat.com>
24417
24418         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24419         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24420
24421 2009-12-12  Bruno Haible  <bruno@clisp.org>
24422
24423         duplocale: Tweak.
24424         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24425
24426 2009-12-12  Karl Berry  <karl@gnu.org>
24427
24428         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24429
24430 2009-12-12  Bruno Haible  <bruno@clisp.org>
24431
24432         * m4/po.m4: Undo incorrect untabification.
24433
24434 2009-12-12  Bruno Haible  <bruno@clisp.org>
24435
24436         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24437         * modules/c-strtod (Depends-on): Add locale.
24438         * modules/c-strtold (Depends-on): Likewise.
24439
24440 2009-12-12  Bruno Haible  <bruno@clisp.org>
24441
24442         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24443
24444 2009-12-11  Eric Blake  <ebb9@byu.net>
24445
24446         setenv: relax requirement in light of POSIX ruling
24447         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24448         not NULL.
24449         * tests/test-setenv.c (main): Relax test.
24450         * tests/test-unsetenv.c (main): Likewise.
24451         * doc/posix-functions/setenv.texi (setenv): Document this.
24452         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24453
24454 2009-12-11  Bruno Haible  <bruno@clisp.org>
24455
24456         New module 'fd-safer-flag'.
24457         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24458         * lib/dup-safer.c (dup_safer_flag): Remove function.
24459         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24460         * lib/fd-safer.c (fd_safer_flag): Remove function.
24461         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24462         * modules/cloexec (configure.ac): Drop indicator macro.
24463         * modules/fd-safer-flag: New file.
24464         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24465         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24466         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24467
24468 2009-12-11  Bruno Haible  <bruno@clisp.org>
24469
24470         Tests for module 'nl_langinfo'.
24471         * modules/nl_langinfo-tests: New file.
24472         * tests/test-nl_langinfo.sh: New file.
24473         * tests/test-nl_langinfo.c: New file.
24474
24475         New module 'nl_langinfo'.
24476         * lib/nl_langinfo.c: New file.
24477         * m4/nl_langinfo.m4: New file.
24478         * modules/nl_langinfo: New file.
24479         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24480
24481 2009-12-11  Bruno Haible  <bruno@clisp.org>
24482
24483         Tests for module 'langinfo'.
24484         * modules/langinfo-tests: New file.
24485         * tests/test-langinfo.c: New file.
24486
24487         New module 'langinfo'.
24488         * lib/langinfo.in.h: New file.
24489         * m4/langinfo_h.m4: New file.
24490         * modules/langinfo: New file.
24491         * doc/posix-headers/langinfo.texi: Mention the new module.
24492
24493 2009-12-11  Bruno Haible  <bruno@clisp.org>
24494
24495         * lib/config.charset: Untabify.
24496
24497 2009-12-11  Bruno Haible  <bruno@clisp.org>
24498
24499         * modules/unistd-safer (configure.ac): Drop indicator macro.
24500
24501 2009-12-11  Bruno Haible  <bruno@clisp.org>
24502
24503         Move pipe2-safer code to its own file.
24504         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24505         * lib/pipe-safer.c (pipe2_safer): Remove function.
24506         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24507         (Makefile.am): Add it to lib_SOURCES.
24508
24509 2009-12-10  Bruno Haible  <bruno@clisp.org>
24510
24511         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24512
24513 2009-12-10  Bruno Haible  <bruno@clisp.org>
24514
24515         Declare which arguments expect non-NULL values, for GCC and clang.
24516         * build-aux/arg-nonnull.h: New file.
24517         * modules/arg-nonnull: New file.
24518         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24519         (inet_ntop, inet_pton): Use it.
24520         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24521         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24522         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24523         (open, openat): Use it.
24524         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24525         (fnmatch): Use it.
24526         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24527         (getopt, getopt_long, getopt_long_only): Use it.
24528         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24529         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24530         Use it.
24531         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24532         (iconv_open): Use it.
24533         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24534         (strtoimax, strtoumax): Use it.
24535         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24536         (duplocale): Use it.
24537         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24538         (frexp, frexpl): Use it.
24539         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24540         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24541         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24542         (tsearch, tfind, tdelete, twalk): Use it.
24543         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24544         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24545         sigpending): Use it.
24546         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24547         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24548         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24549         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24550         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24551         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24552         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24553         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24554         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24555         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24556         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24557         Use it.
24558         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24559         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24560         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24561         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24562         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24563         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24564         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24565         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24566         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24567         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24568         strtoull, unsetenv): Use it.
24569         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24570         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24571         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24572         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24573         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24574         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24575         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24576         (strcasecmp, strncasecmp): Use it.
24577         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24578         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24579         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24580         rpl_setsockopt): Use it.
24581         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24582         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24583         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24584         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24585         (gettimeofday): Use it.
24586         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24587         (times): Use it.
24588         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24589         (uname): Use it.
24590         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24591         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24592         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24593         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24594         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24595         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24596         unlinkat, write): Use it.
24597         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24598         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24599         * lib/argv-iter.h: Include arg-nonnull.h.
24600         (_ATTRIBUTE_NONNULL_): Remove macro.
24601         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24602         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24603         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24604         optimization.
24605         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24606         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24607         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24608         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24609         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24610         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24611         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24612         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24613         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24614         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24615         * modules/dirent (Depends-on): Add arg-nonnull.
24616         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24617         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24618         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24619         * modules/fnmatch (Depends-on): Add arg-nonnull.
24620         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24621         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24622         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24623         * modules/glob (Depends-on): Add arg-nonnull.
24624         (Makefile.am): Insert arg-nonnull.h into glob.h.
24625         * modules/iconv_open (Depends-on): Add arg-nonnull.
24626         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24627         * modules/inttypes (Depends-on): Add arg-nonnull.
24628         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24629         * modules/locale (Depends-on): Add arg-nonnull.
24630         (Makefile.am): Insert arg-nonnull.h into locale.h.
24631         * modules/math (Depends-on): Add arg-nonnull.
24632         (Makefile.am): Insert arg-nonnull.h into math.h.
24633         * modules/netdb (Depends-on): Add arg-nonnull.
24634         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24635         * modules/search (Depends-on): Add arg-nonnull.
24636         (Makefile.am): Insert arg-nonnull.h into search.h.
24637         * modules/signal (Depends-on): Add arg-nonnull.
24638         (Makefile.am): Insert arg-nonnull.h into signal.h.
24639         * modules/spawn (Depends-on): Add arg-nonnull.
24640         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24641         * modules/stdio (Depends-on): Add arg-nonnull.
24642         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24643         * modules/stdlib (Depends-on): Add arg-nonnull.
24644         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24645         * modules/string (Depends-on): Add arg-nonnull.
24646         (Makefile.am): Insert arg-nonnull.h into string.h.
24647         * modules/strings (Depends-on): Add arg-nonnull.
24648         (Makefile.am): Insert arg-nonnull.h into strings.h.
24649         * modules/sys_socket (Depends-on): Add arg-nonnull.
24650         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24651         * modules/sys_stat (Depends-on): Add arg-nonnull.
24652         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24653         * modules/sys_time (Depends-on): Add arg-nonnull.
24654         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24655         * modules/sys_times (Depends-on): Add arg-nonnull.
24656         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24657         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24658         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24659         * modules/time (Depends-on): Add arg-nonnull.
24660         (Makefile.am): Insert arg-nonnull.h into time.h.
24661         * modules/unistd (Depends-on): Add arg-nonnull.
24662         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24663         * modules/wchar (Depends-on): Add arg-nonnull.
24664         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24665         * modules/argv-iter (Depends-on): Add arg-nonnull.
24666         * tests/test-canonicalize.c (null_ptr): New function.
24667         (main): Use it.
24668         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24669         (main): Use it.
24670         * tests/test-memmem.c (null_ptr): New function.
24671         (main): Use it.
24672         Reported by Jim Meyering.
24673
24674 2009-12-10  Bruno Haible  <bruno@clisp.org>
24675
24676         Use spaces for indentation, not tabs.
24677         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24678         * m4/*.m4: Untabify.
24679         * build-aux/*.h: Untabify.
24680         * tests/**/*.[hc]: Untabify.
24681         * README: New section "Indent with spaces, not TABs", based on
24682         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24683         * NEWS: Mention the change.
24684
24685 2009-12-10  Bruno Haible  <bruno@clisp.org>
24686
24687         pty test: Fix link error.
24688         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24689         test_pty_LDADD.
24690
24691 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24692
24693         * modules/pty: New file.
24694         * modules/pty-tests: New file.
24695         * m4/pty.m4: New file.
24696         * tests/test-pty.c: New file.
24697         * doc/glibc-headers/pty.texi: Modified.
24698         * doc/glibc-functions/forkpty.texi: Modified.
24699         * doc/glibc-functions/openpty.texi: Modified.
24700
24701 2009-12-10  Bruno Haible  <bruno@clisp.org>
24702
24703         Avoid syntax error in C++ mode.
24704         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24705
24706 2009-12-10  Bruno Haible  <bruno@clisp.org>
24707
24708         Use sed with option -e.
24709         * gnulib-tool (func_version, func_emit_copyright_notice,
24710         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24711         option -e to sed.
24712         * modules/link-warning (Makefile.am): Likewise.
24713
24714 2009-12-10  Jim Meyering  <meyering@redhat.com>
24715
24716         mgetgroups: do not write bytes beyond end of malloc'd buffer
24717         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24718         username, we call getgroups with a one-element-shorter buffer,
24719         but still told it the length was original, max_n_groups.
24720
24721 2009-12-09  Eric Blake  <ebb9@byu.net>
24722
24723         cloexec: relax license
24724         * modules/cloexec (Maintainer): Add myself.
24725         (License): Use LGPL, not GPL.
24726
24727         link-warning: optimize generation
24728         * modules/link-warning (Makefile.am): Reduce process usage.
24729
24730 2009-12-09  Bruno Haible  <bruno@clisp.org>
24731
24732         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24733         workaround was added on 2009-11-17.
24734
24735 2009-12-09  Jim Meyering  <meyering@redhat.com>
24736             Bruno Haible  <bruno@clisp.org>
24737
24738         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24739         * modules/link-warning (Makefile.am): Make the comment-removing sed
24740         command more robust in the face of bootstrap-prepended comment lines.
24741
24742 2009-12-09  Bruno Haible  <bruno@clisp.org>
24743
24744         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24745         most one group.
24746
24747 2009-12-09  Simon Josefsson <simon@josefsson.org>
24748             Bruno Haible  <bruno@clisp.org>
24749
24750         * build-aux/link-warning.h: Add copyright notice.
24751         * modules/link-warning (Makefile.am): Generate link-warning.h from
24752         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24753         * NEWS: Mention change in link-warning module.
24754         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24755         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24756         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24757         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24758         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
24759         * modules/math (Makefile.am): Add dependency to math.h.
24760         * modules/search (Makefile.am): Add dependency to search.h.
24761         * modules/signal (Makefile.am): Add dependency to signal.h.
24762         * modules/spawn (Makefile.am): Add dependency to spawn.h.
24763         * modules/stdio (Makefile.am): Add dependency to stdio.h.
24764         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
24765         * modules/string (Makefile.am): Add dependency to string.h.
24766         * modules/strings (Makefile.am): Add dependency to strings.h.
24767         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
24768         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
24769         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
24770         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
24771         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
24772         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
24773         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
24774         * modules/unistd (Makefile.am): Add dependency to unistd.h.
24775         * modules/wchar (Makefile.am): Add dependency to wchar.h.
24776
24777 2009-12-09  Bruno Haible  <bruno@clisp.org>
24778
24779         fchdir: Optimize away rpl_fstat when possible.
24780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
24781         REPLACE_OPEN_DIRECTORY.
24782         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
24783
24784 2009-12-09  Bruno Haible  <bruno@clisp.org>
24785
24786         * lib/fchdir.c: Update comment.
24787
24788 2009-12-09  Bruno Haible  <bruno@clisp.org>
24789
24790         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
24791
24792 2009-12-08  Eric Blake  <ebb9@byu.net>
24793
24794         fchdir: avoid memory leak on re-registration.
24795         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
24796
24797 2009-12-08  Jim Meyering  <meyering@redhat.com>
24798
24799         init.sh: avoid Solaris 10 /bin/sh portability problem
24800         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
24801         sourced script:
24802           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
24803           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
24804           bar
24805         tests/init.sh relied on that, accepting a --set-path=DIR argument,
24806         and two tests used that idiom.
24807         * tests/init.sh: Update suggested usage comments.
24808         (path_prepend_): New function, to be used in place
24809         of the --src-path=DIR option.
24810         (setup_): Move PATH-prepending code into path_prepend_.
24811         * tests/test-pread.sh: Adapt to new usage.
24812         * tests/test-xalloc-die.sh: Likewise.
24813
24814 2009-12-08  Simon Josefsson  <simon@josefsson.org>
24815
24816         * doc/gnulib.texi (Glibc pty.h): Add.
24817         * doc/glibc-functions/forkpty.texi: Add.
24818         * doc/glibc-functions/openpty.texi: Add.
24819         Suggested by Bruno Haible.
24820
24821 2009-12-08  Eric Blake  <ebb9@byu.net>
24822
24823         fchdir: fix logic bugs
24824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
24825         * tests/test-fchdir.c (main): Enhance test.
24826         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
24827         is in use.
24828
24829         dup2: fix logic bugs
24830         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
24831         REPLACE_DUP2 to decide when rpl_dup2 is needed.
24832         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
24833         exists.
24834         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
24835
24836 2009-12-07  Eric Blake  <ebb9@byu.net>
24837
24838         unlink: fix m4 detection
24839         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
24840
24841         unistd-safer: add unit test
24842         * modules/unistd-safer-tests: New file.
24843         * tests/test-dup-safer.c: Likewise.
24844         * tests/test-cloexec.c (setmode): Avoid compiler warning.
24845         * tests/test-dup2.c (setmode): Likewise.
24846         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
24847
24848         cloexec: preserve text vs. binary across dup_cloexec
24849         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
24850         mode.
24851         * modules/dup2-tests (Depends-on): Add binary-io.
24852         * modules/cloexec-tests (Depends-on): Likewise.
24853         * tests/test-dup2.c (setmode, is_mode): New helpers.
24854         (main): Add tests that translation mode is preserved.
24855         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
24856         Reported by Bruno Haible.
24857
24858         mgetgroups: reduce duplicate listings
24859         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
24860         resulting array.
24861         * tests/test-chown.h (test_chown): Simplify client.
24862         * tests/test-lchown.h (test_lchown): Likewise.
24863
24864 2009-12-06  Bruno Haible  <bruno@clisp.org>
24865
24866         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
24867         value.
24868
24869 2009-12-06  Bruno Haible  <bruno@clisp.org>
24870
24871         * lib/progname.c: Include stdio.h, stdlib.h.
24872         (set_program_name): Reject a NULL argument.
24873
24874 2009-12-05  Eric Blake  <ebb9@byu.net>
24875
24876         pipe2-safer: new module
24877         * modules/pipe2-safer: New file.
24878         * lib/unistd-safer.h (pipe2_safer): New prototype.
24879         * lib/unistd--.h (pipe2): New wrapper.
24880         * lib/pipe-safer.c (pipe2_safer): New function.
24881         * modules/pipe (Depends-on): Add pipe2-safer.
24882         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
24883
24884         stdlib-safer: preserve cloexec flag for mkostemp[s]
24885         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
24886         fd_safer_flag.
24887
24888         unistd-safer: allow preservation of cloexec status via flag
24889         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
24890         prototypes.
24891         * lib/dup-safer.c (dup_safer_flag): New function.
24892         * lib/fd-safer.c (fd_safer_flag): Likewise.
24893         * modules/cloexec (configure.ac): Set witness.
24894
24895         test-dup2: enhance test
24896         * modules/dup2-tests (Depends-on): Add cloexec.
24897         * tests/test-dup2.c (main): Enhance test.
24898
24899         cloexec: add dup_cloexec
24900         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
24901         header and comments.
24902         * lib/cloexec.c (set_cloexec_flag): Add comments.
24903         (dup_cloexec): New function, with mingw implementation borrowed
24904         from...
24905         * lib/w32spawn.h (dup_noinherit): ...here.
24906         * modules/execute (Depends-on): Add cloexec.
24907         * modules/pipe (Depends-on): Likewise.
24908         * modules/cloexec (Depends-on): Add dup2.
24909         * modules/cloexec-tests (Files): New file.
24910         * tests/test-cloexec.c: Likewise.
24911
24912         test-xalloc-die: fix test for mingw
24913         * modules/xalloc-die-tests (Files): Add tests/init.sh.
24914         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
24915         directory and .exe suffix off argv[0] output.
24916
24917         test-fseeko: fix test for mingw
24918         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
24919         than undefining fseek, so test will pass on mingw.
24920
24921 2009-12-05  Bruno Haible  <bruno@clisp.org>
24922
24923         * lib/progname.h (set_program_name): Clarify specification.
24924         * lib/progname.c (set_program_name): Likewise.
24925         Reported by Jim Meyering.
24926
24927 2009-12-05  Jim Meyering  <meyering@redhat.com>
24928
24929         maint.mk: backslash-escape parens in default regexp
24930         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
24931         backslash-escape the literal parentheses.
24932
24933         maint.mk: news-date-check: use grep -E
24934         * top/maint.mk (today): Define a Make variable, not a...
24935         (news-date-check): ...shell variable.
24936         (news-date-regexp): Use the Make variable.
24937         Use grep's -E option.  Change the failing diagnostic to mention
24938         the variable, $(news-date-regexp).
24939
24940 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
24941
24942         maintainer-makefile: allow customization of NEWS entry format
24943         * top/maint.mk (news-date-regexp): New overridable variable.
24944         (news-date-check): Use it.
24945
24946 2009-12-04  Eric Blake  <ebb9@byu.net>
24947
24948         mgetgroups: add xgetgroups, and avoid ENOSYS failures
24949         * lib/mgetgroups.h (xgetgroups): New prototype.
24950         * lib/mgetgroups.c (xgetgroups): New wrapper.
24951         (mgetgroups): Handle ENOSYS.
24952         * modules/mgetgroups (Depends-on): Add realloc.
24953         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24954
24955         mgetgroups: avoid argument promotion issues with -1
24956         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24957         for invalid gid_t.
24958         * tests/test-chown.h (getegid, test_chown): Likewise.
24959         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24960
24961 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24962
24963         exclude: Fix header file problems.
24964         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24965
24966 2009-12-01  Jim Meyering  <meyering@redhat.com>
24967
24968         fts: fts_open: do not let an empty string cause immediate failure
24969         This is required in support of GNU rm, for which the command
24970         "rm A '' B" must process and remove both A and B, in spite of
24971         the empty string argument.
24972         * lib/fts.c (fts_open): Do not let the presence of an empty string
24973         cause fts_open to fail immediately.  Most fts-using tools must be
24974         able to process all arguments, in order, and can be expected to
24975         diagnose such arguments themselves.
24976
24977 2009-11-30  Eric Blake  <ebb9@byu.net>
24978
24979         utimens: fix compilation error
24980         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24981         Declare variable at right scope.
24982
24983 2009-11-29  Jim Meyering  <meyering@redhat.com>
24984
24985         bootstrap: handle perl-5.11's changed --version output
24986         * build-aux/bootstrap (get_version): Handle perl separately,
24987         since perl-5.11's --version output is different.
24988
24989 2009-11-28  Jim Meyering  <meyering@redhat.com>
24990
24991         userspec: depend on the inttostr module, too
24992         * modules/userspec (Depends-on): Add inttostr.
24993
24994         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
24995         * lib/userspec.c (parse_with_separator): Do not accept a user ID
24996         number of MAXUID when it evaluates to (uid_t) -1.
24997         Likewise for group ID.  Reported by Matt McCutchen in
24998         <http://savannah.gnu.org/bugs/?28113>
24999
25000         userspec: reformat to use spaces, not TABs
25001         * lib/userspec.c: Expand TABs to spaces.
25002         Add Emacs' "indent-tabs-mode: nil" hint.
25003
25004 2009-11-27  Eric Blake  <ebb9@byu.net>
25005
25006         getopt-gnu: flush out another BSD bug
25007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
25008         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
25009         flush out BSD bug.
25010         * tests/test-getopt.h (test_getopt): End lists with NULL.
25011         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25012         (test_getopt_long_posix): Enhance test.
25013         * modules/getopt-posix-tests (Depends-on): Add stdbool.
25014         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
25015         getopt-gnu.
25016         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25017         Likewise.
25018
25019 2009-11-27  Simon Josefsson  <simon@josefsson.org>
25020
25021         * modules/idpriv-droptemp-tests (Notice): Fix text.
25022
25023 2009-11-27  Jim Meyering  <meyering@redhat.com>
25024
25025         test-xalloc-die: avoid spurious failure due to libtool argv difference
25026         In a libtool-enabled project, this test would fail due to a difference
25027         in the emitted program name, e.g.,
25028         -test-xalloc-die: memory exhausted
25029         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
25030         Use program to avoid that.
25031         * modules/xalloc-die-tests (Depends-on): Add progname.
25032         * tests/test-xalloc-die.c: Include progname.h".
25033         (program_name): Remove decl.
25034         (main): Call set_program_name.
25035         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
25036
25037 2009-11-26  Richard Jones  <rjones@redhat.com>
25038
25039         w32sock: leave win32 error in place.
25040         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
25041
25042 2009-11-26  Eric Blake  <ebb9@byu.net>
25043
25044         init.sh: suggest to use skip_ and fail_ functions in comments
25045         * tests/init.sh: Add a sentence.
25046
25047 2009-11-25  Bruno Haible  <bruno@clisp.org>
25048
25049         init.sh: add documentation in comments
25050         * tests/init.sh: Add some developer and user documentation.
25051
25052 2009-11-26  Jim Meyering  <meyering@redhat.com>
25053
25054         init.sh: accommodate even those who specify bogus srcdir manually
25055         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25056         configure-time tests to be sanitized, so that there is no need to
25057         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
25058         (with no double quotes) suffices.  However, since tests may be
25059         invoked manually, and since you may explicitly set srcdir to the
25060         name of a directory containing spaces, do quote its uses here.
25061         * tests/test-pread.sh: Likewise.
25062         Suggested by Bruno Haible.
25063
25064         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
25065         * tests/test-pread.sh: Write no data into the pipe, because
25066         test-pread actually reads none.  This avoids a diagnostic,
25067         "bash: echo: write error: Broken pipe", that arises in the unusual
25068         event something is ignoring SIGPIPE, and might be interpreted
25069         as some sort of failure.  Reported by Bruno Haible.
25070
25071 2009-11-25  Jim Meyering  <meyering@redhat.com>
25072
25073         test-pread: cover failure with ESPIPE and EINVAL
25074         * tests/test-pread.c (main): Test for failure, too.
25075         * tests/test-pread.sh: Invoke with stdin on a pipe.
25076         Suggested by Eric Blake.
25077
25078         pread: improvement and fix
25079         * modules/pread (Depends-on): Depend on lseek, for portability to
25080         e.g., mingw.  Suggested by Eric Blake.
25081         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
25082
25083         unistd.in.h: correct declaration of pread
25084         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
25085         Reported by Richard W.M. Jones.
25086
25087         test-pread.sh: distribute the test script
25088         * modules/pread-tests (Files): Include test-pread.sh.
25089
25090         test-pread.sh: clean up
25091         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25092         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25093         That is unnecessary, since it's always ".".
25094         Suggestion from Eric Blake.
25095
25096         test-pread.sh: make executable
25097         * tests/test-pread.sh: Set executable bit.
25098         Reported by Eric Blake.
25099
25100         correct typo in test-pread.sh
25101         * tests/test-pread.sh: Add #! line.
25102
25103         test pread
25104         * tests/test-pread.c: New file.
25105         * tests/test-pread.sh: Likewise.
25106         * modules/pread-tests: Likewise.
25107
25108         pread: new module
25109         * modules/pread: New file.
25110         * lib/unistd.in.h (pread): Define/declare.
25111         * lib/pread.c (pread): New file.
25112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25113         * modules/unistd (Makefile.am): Substitute witnesses.
25114         * doc/posix-functions/pread.texi (pread): Update.
25115         * MODULES.html.sh: Add pread.
25116
25117 2009-11-25  Jim Meyering  <meyering@redhat.com>
25118
25119         tests/init.sh: new file to be used via most *.sh tests
25120         * tests/init.sh: New file.
25121
25122 2009-11-25  Eric Blake  <ebb9@byu.net>
25123
25124         utimens: work around older Linux failure with symlinks
25125         * lib/utimens.c (lutimensat_works_really): New variable.
25126         (fdutimens, lutimens): Use it to manage kernels that support
25127         nanosecond times on files, but not on symlinks.
25128         Reported by OndÅ™ej Vašík.
25129
25130         utimes: fix configure grammar
25131         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25132
25133 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25134
25135         regex: Fix fastmap for multibyte character ranges.
25136         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25137         characters when a multibyte character range is included.
25138
25139 2009-11-22  Andy Wingo  <wingo@pobox.com>
25140
25141         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25142         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25143
25144 2009-11-24  Bruno Haible  <bruno@clisp.org>
25145
25146         doc: Most *_l functions exist in MacOS X 10.5.
25147         * doc/posix-functions/duplocale.texi: Update platforms list.
25148         * doc/posix-functions/freelocale.texi: Likewise.
25149         * doc/posix-functions/newlocale.texi: Likewise.
25150         * doc/posix-functions/uselocale.texi: Likewise.
25151         * doc/posix-functions/isalnum_l.texi: Likewise.
25152         * doc/posix-functions/isalpha_l.texi: Likewise.
25153         * doc/posix-functions/isblank_l.texi: Likewise.
25154         * doc/posix-functions/iscntrl_l.texi: Likewise.
25155         * doc/posix-functions/isdigit_l.texi: Likewise.
25156         * doc/posix-functions/isgraph_l.texi: Likewise.
25157         * doc/posix-functions/islower_l.texi: Likewise.
25158         * doc/posix-functions/isprint_l.texi: Likewise.
25159         * doc/posix-functions/ispunct_l.texi: Likewise.
25160         * doc/posix-functions/isspace_l.texi: Likewise.
25161         * doc/posix-functions/isupper_l.texi: Likewise.
25162         * doc/posix-functions/iswalnum_l.texi: Likewise.
25163         * doc/posix-functions/iswalpha_l.texi: Likewise.
25164         * doc/posix-functions/iswblank_l.texi: Likewise.
25165         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25166         * doc/posix-functions/iswctype_l.texi: Likewise.
25167         * doc/posix-functions/iswdigit_l.texi: Likewise.
25168         * doc/posix-functions/iswgraph_l.texi: Likewise.
25169         * doc/posix-functions/iswlower_l.texi: Likewise.
25170         * doc/posix-functions/iswprint_l.texi: Likewise.
25171         * doc/posix-functions/iswpunct_l.texi: Likewise.
25172         * doc/posix-functions/iswspace_l.texi: Likewise.
25173         * doc/posix-functions/iswupper_l.texi: Likewise.
25174         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25175         * doc/posix-functions/isxdigit_l.texi: Likewise.
25176         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25177         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25178         * doc/posix-functions/strcoll_l.texi: Likewise.
25179         * doc/posix-functions/strfmon_l.texi: Likewise.
25180         * doc/posix-functions/strftime_l.texi: Likewise.
25181         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25182         * doc/posix-functions/strxfrm_l.texi: Likewise.
25183         * doc/posix-functions/tolower_l.texi: Likewise.
25184         * doc/posix-functions/toupper_l.texi: Likewise.
25185         * doc/posix-functions/towctrans_l.texi: Likewise.
25186         * doc/posix-functions/towlower_l.texi: Likewise.
25187         * doc/posix-functions/towupper_l.texi: Likewise.
25188         * doc/posix-functions/wcscoll_l.texi: Likewise.
25189         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25190         * doc/posix-functions/wctrans_l.texi: Likewise.
25191         * doc/posix-functions/wctype_l.texi: Likewise.
25192         * doc/glibc-functions/strptime_l.texi: Likewise.
25193         * doc/glibc-functions/strtod_l.texi: Likewise.
25194         * doc/glibc-functions/strtof_l.texi: Likewise.
25195         * doc/glibc-functions/strtol_l.texi: Likewise.
25196         * doc/glibc-functions/strtold_l.texi: Likewise.
25197         * doc/glibc-functions/strtoll_l.texi: Likewise.
25198         * doc/glibc-functions/strtoul_l.texi: Likewise.
25199         * doc/glibc-functions/strtoull_l.texi: Likewise.
25200         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25201         * doc/glibc-functions/wcstod_l.texi: Likewise.
25202         * doc/glibc-functions/wcstof_l.texi: Likewise.
25203         * doc/glibc-functions/wcstol_l.texi: Likewise.
25204         * doc/glibc-functions/wcstold_l.texi: Likewise.
25205         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25206         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25207         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25208
25209 2009-11-24  Bruno Haible  <bruno@clisp.org>
25210
25211         duplocale: Fix logic bug.
25212         * lib/duplocale.c: Don't include <langinfo.h>.
25213         (_NL_LOCALE_NAME): Remove macro.
25214         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25215         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25216
25217 2009-11-23  Jim Meyering  <meyering@redhat.com>
25218
25219         test-update-copyright: don't hard-code /usr/bin/perl
25220         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25221         perl to print the current year.  Gilles Espinasse reported that
25222         the replaced use of perl was hard-coded as /usr/bin/perl.
25223
25224 2009-11-23  Bruno Haible  <bruno@clisp.org>
25225
25226         duplocale: Add support for glibc 2.3.x.
25227         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25228
25229 2009-11-22  Bruno Haible  <bruno@clisp.org>
25230
25231         vasnprintf: Tiny optimization.
25232         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25233         MacOS X.
25234
25235 2009-11-22  Bruno Haible  <bruno@clisp.org>
25236
25237         Tests for module 'duplocale'.
25238         * modules/duplocale-tests: New file.
25239         * tests/test-duplocale.c: New file.
25240
25241         New module 'duplocale'.
25242         * m4/duplocale.m4: New file.
25243         * lib/locale.in.h (duplocale): New declaration.
25244         * lib/duplocale.c: New file.
25245         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25246         gl_LOCALE_H_DEFAULTS): New macros.
25247         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25248         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25249         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25250         REPLACE_DUPLOCALE.
25251         * modules/duplocale: New file.
25252         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25253
25254 2009-11-22  Bruno Haible  <bruno@clisp.org>
25255
25256         * modules/locale-tests (configure.ac): Test for newlocale function.
25257         * tests/test-locale.c: When the system has extended locale functions,
25258         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25259
25260         locale: Make locale_t available when possible.
25261         * lib/locale.in.h: Include <xlocale.h> when it exists.
25262         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25263         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25264         * modules/locale (Depends-on): Add extensions.
25265         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25266         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25267
25268 2009-11-22  Bruno Haible  <bruno@clisp.org>
25269
25270         Add comments.
25271         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25272         invocation.
25273         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25274         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25275         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25276
25277 2009-11-22  Bruno Haible  <bruno@clisp.org>
25278
25279         error: account for the possibility of freopen (stdout).
25280         * lib/error.c: Include <unistd.h>.
25281         (flush_stdout): New function, extracted from error and error_at_line.
25282         Determine stdout's fd dynamically.
25283         (error, error_at_line): Invoke flush_stdout.
25284         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25285         * modules/error (Depends-on): Add unistd.
25286
25287 2009-11-22  Bruno Haible  <bruno@clisp.org>
25288
25289         diffseq: Add comment.
25290         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25291
25292 2009-11-22  Jim Meyering  <meyering@redhat.com>
25293
25294         c-stack: avoid defining an unused static function
25295         * lib/c-stack.c (find_stack_direction): Do not define this function
25296         when it will not be used.
25297
25298         diffseq: avoid spurious gcc warnings
25299         * lib/diffseq.h (IF_LINT2): Define.
25300         (compareseq): Use it to initialize two members of "part".
25301         This avoids two used-uninitialized warnings.
25302
25303 2009-11-21  Jim Meyering  <meyering@redhat.com>
25304
25305         c-stack: avoid "ignoring return value of `write'" warning
25306         * lib/c-stack.c: Include "ignore-value.h".
25307         (die): Explicitly ignore each write return value.
25308         * modules/c-stack (Depends-on): Add ignore-value.
25309
25310 2009-11-21  Bruno Haible  <bruno@clisp.org>
25311
25312         diffseq: reduce scope of variable 'best'.
25313         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25314         variable, earlier used for two different purposes.
25315
25316 2009-11-21  Jim Meyering  <meyering@redhat.com>
25317
25318         diffseq: remove useless assignment to "best"
25319         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25320         assignment.  At that point "best" is already guaranteed to be zero.
25321
25322 2009-11-20  Eric Blake  <ebb9@byu.net>
25323
25324         build: mention ftp redirector in release announcements
25325         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25326         values that used to come from cfg.mk; mention FTP redirect URL.
25327         * build-aux/announce-gen: Mention the mirror list.
25328         Suggested by Karl Berry.
25329
25330         nanosleep: improve port to mingw
25331         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25333         LIB_NANOSLEEP, but only when needed.
25334         * modules/select (Link): Document LIBSOCKET.
25335         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25336         enough.
25337
25338         nanosleep: work around cygwin bug
25339         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25340         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25341         bug.
25342         (getnow): Delete, not needed.
25343         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25344         LIB_CLOCK_GETTIME.
25345         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25346         clock-time, gettime.
25347         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25348         bug.
25349         * modules/nanosleep-tests: New test.
25350         * tests/test-nanosleep.c: New file.
25351
25352         sleep: work around cygwin bug
25353         * lib/sleep.c (rpl_sleep): Work around the bug.
25354         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25355         (gl_PREREQ_SLEEP): Delete unused macro.
25356         * modules/sleep (Depends-on): Add verify.
25357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25358         * modules/unistd (Makefile.am): Substitute witness.
25359         * lib/unistd.in.h (sleep): Update prototype.
25360         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25361         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25362         * modules/sleep-tests (Depends-on): Check for alarm.
25363
25364 2009-11-20  Jim Meyering  <meyering@redhat.com>
25365
25366         maint.mk: improve sc_prohibit_magic_number_exit
25367         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25368         so it does not match uses like System.exit(1).
25369         Add comments showing how to correct all offenders.
25370
25371 2009-11-19  Eric Blake  <ebb9@byu.net>
25372
25373         xalloc-die-tests: add missing library
25374         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25375
25376         test-xvasprintf: silence compiler warnings
25377         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25378         empty string from gcc.
25379
25380 2009-11-19  Jim Meyering  <meyering@redhat.com>
25381
25382         xfreopen: new module, from coreutils
25383         * modules/xfreopen: New module.
25384         * lib/xfreopen.c: New file.
25385         * lib/xfreopen.h: New file.
25386         * MODULES.html.sh (File stream based Input/Output"): Add it.
25387
25388 2009-11-19  Eric Blake  <ebb9@byu.net>
25389
25390         manywarnings: depend on warnings
25391         * modules/manywarnings (Depends-on): Add warnings.
25392
25393         build: avoid compiler warnings
25394         * lib/select.c (rpl_select): Delete unused variable.
25395         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25396
25397 2009-11-18  Eric Blake  <ebb9@byu.net>
25398
25399         tests: avoid false negative with --with-packager
25400         * tests/test-version-etc.sh: Discard packager information.
25401         * tests/test-argp-version-etc-1.sh: Likewise.
25402         Reported by Mike Frysinger.
25403
25404         utimens: fix regression on Solaris
25405         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25406         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25407         can only change fd timestamps via futimesat.  Instead, use an
25408         additional witness macro to avoid BSD bug.
25409         Reported by Jim Meyering.
25410
25411 2009-11-17  Eric Blake  <ebb9@byu.net>
25412
25413         usleep: use it to simplify tests
25414         * modules/stat-time-tests (Depends-on): Add usleep.
25415         (configure.ac): Drop usleep check.
25416         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25417         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25418         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25419         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25420         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25421         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25422         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25423         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25424         Likewise.
25425         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25426         * tests/test-lchown.h (nap): Likewise.
25427         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25428         * tests/test-stat-time.c (nap): Likewise.
25429         * tests/test-utimens-common.h (nap): Update comments.
25430
25431         usleep: new module
25432         * modules/usleep: New file.
25433         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25434         * lib/usleep.c (usleep): Likewise.
25435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25436         * modules/unistd (Makefile.am): Substitute witnesses.
25437         * lib/unistd.in.h (usleep): Add declaration.
25438         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25439         * MODULES.html.sh (Date and time): Likewise.
25440         * modules/usleep-tests (Depends-on): New test.
25441         * tests/test-usleep.c: New file.
25442
25443         chown: work around OpenBSD bug
25444         * lib/chown.c (rpl_chown): Work around the bug.
25445         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25446         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25447         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25448         * modules/chown (Depends-on): Add stdbool.
25449         * modules/lchown (Depends-on): Likewise.
25450         * doc/posix-functions/chown.texi (chown): Document the bug.
25451         * doc/posix-functions/lchown.texi (lchown): Likewise.
25452         * tests/test-lchown.h (test_chown): Relax test.
25453
25454         mkstemp: avoid conflict with C++ keyword template
25455         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25456         * lib/mkostemp.c (mkostemp): Likewise.
25457         * lib/mkostemps.c (mkostemps): Likewise.
25458         * lib/mkstemp.c (mkstemp): Likewise.
25459         * lib/mkstemps.c (mkstemps): Likewise.
25460
25461         xalloc-die-tests: optimize
25462         * tests/test-xalloc-die.sh: Reduce number of processes.
25463
25464 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25465
25466         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25467         patch from ludo@gnu.org (Ludovic Courtès).
25468
25469 2009-11-17  Jim Meyering  <meyering@redhat.com>
25470
25471         version-etc: use proper license string
25472         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25473         * modules/version-etc-fsf: Likewise.
25474
25475 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25476
25477         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25478         printed to stdout.  Deal with EOL differences.
25479
25480 2009-11-17  Eric Blake  <ebb9@byu.net>
25481
25482         unsetenv: work around Solaris bug
25483         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25484         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25485         Reported by Jim Meyering.
25486
25487         vasnprintf: avoid compiler warnings
25488         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25489         variables.
25490         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25491
25492 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25493
25494         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25495         settings since xalloc-die is no longer the self test,
25496         xalloc-die.sh is.
25497
25498 2009-11-17  Jim Meyering  <meyering@redhat.com>
25499
25500         test-xalloc-die.sh: make the code agree with the commit log
25501         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25502         at the end, just in case you happen to have a test-xalloc-die
25503         program in some other PATH directory.
25504
25505         test-xalloc-die.sh: fix a portability bug
25506         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25507         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25508         Otherwise, argv[0] (as often seen in diagnostics) would be too
25509         system-dependent, sometimes with, and sometimes without the leading "./".
25510
25511         version-etc-fsf: relax license to LGPLv3+
25512         * modules/version-etc-fsf (License): Relax license.
25513
25514 2009-11-16  Eric Blake  <ebb9@byu.net>
25515
25516         xalloc-die-tests: avoid printing null pointer
25517         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25518         shell script.
25519         * tests/test-xalloc-die.c (program_name): Declare.
25520         * tests/test-xalloc-die.sh (tmpfiles): New file.
25521
25522         setenv, unsetenv: work around various bugs
25523         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25524         (setenv) [HAVE_SETENV]: Work around bugs.
25525         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25526         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25527         for bugs.
25528         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25529         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25531         * modules/stdlib (Makefile.am): Update substitutions.
25532         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25533         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25534         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25535         * modules/setenv-tests: New test.
25536         * modules/unsetenv-tests: Likewise.
25537         * tests/test-setenv.c: New file.
25538         * tests/test-unsetenv.c: Likewise.
25539
25540 2009-11-16  Jim Meyering  <meyering@redhat.com>
25541
25542         version-etc: relax license to LGPLv3+
25543         * modules/version-etc (License): Relax license.
25544
25545         better AC_REQUIRE expanded-before-required-warning avoidance
25546         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25547         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25548         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25549         which is no longer needed.
25550
25551 2009-11-16  Eric Blake  <ebb9@byu.net>
25552
25553         test-freading: clean up temporary file
25554         * tests/test-freading.c (main): Remove file on success, and use
25555         ASSERT more liberally.
25556         Reported by Jim Meyering.
25557
25558 2009-11-16  Jim Meyering  <meyering@redhat.com>
25559
25560         avoid new AC_REQUIRE expanded-before-required warnings
25561         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25562         merely using it.
25563         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25564         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25565
25566 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25567
25568         * tests/test-xalloc-die.c: New file.
25569         * modules/xalloc-die-tests: New file.
25570         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25571         XFAIL_TESTS so it can be appended by modules.
25572
25573 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25574
25575         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25576         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25577
25578 2009-11-14  Eric Blake  <ebb9@byu.net>
25579
25580         fnmatch: avoid compiler warning
25581         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25582         to silence compiler warning about mismatch signedness in ?:.
25583         Reported by Robert Millan.
25584
25585         intprops: add double-inclusion guard
25586         * lib/intprops.h: Allow idempotent includes.
25587         Suggested by Bruce Korb.
25588
25589         openat: detect Solaris fchownat bug
25590         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25591         penalizing glibc chownat when only lchownat is broken.
25592         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25593         trailing slash bugs.
25594         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25595         * modules/openat-tests (Files): Include more files.
25596         (Depends-on): Add mgetgroups, sleep, stat-time.
25597         (configure.ac): Add additional checks.
25598         (Makefile.am): Build new test.
25599         * tests/test-fchownat.c: New file.
25600
25601         lchown: detect Solaris and FreeBSD bug
25602         * lib/lchown.c (rpl_lchown): Work around bug.
25603         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25605         * modules/unistd (Makefile.am): Populate it.
25606         * lib/unistd.in.h (lchown): Update declaration.
25607         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25608         * modules/lchown-tests: New file.
25609         * tests/test-lchown.h (test_lchown): Likewise.
25610         * tests/test-lchown.c (main): Likewise.
25611
25612         chown: detect Solaris and FreeBSD bug
25613         * lib/chown.c (rpl_chown): Work around bug.
25614         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25615         (gl_PREREQ_CHOWN): Delete.
25616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25617         * modules/unistd (Makefile.am): Populate it.
25618         * lib/unistd.in.h (chown): Update declaration.
25619         * lib/lchown.c (chown): Update client.
25620         * modules/lchown (Depends-on): Add lstat.
25621         * doc/posix-functions/chown.texi (chown): Document the bug.
25622         * doc/posix-functions/getgroups.texi (getgroups): Document
25623         getgroups pitfall.
25624         * modules/chown-tests: New file.
25625         * tests/test-chown.h (test_chown): Likewise.
25626         * tests/test-chown.c (main): Likewise.
25627
25628 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25629
25630         gnulib-tool: correctly detect absence of m4 directories
25631         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25632
25633 2009-11-14  Jim Meyering  <meyering@redhat.com>
25634
25635         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25636         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25637
25638 2009-11-14  John W. Eaton  <jwe@gnu.org>
25639
25640         strftime.h: wrap funtion declaration in extern "C" block
25641         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25642
25643 2009-11-13  Eric Blake  <ebb9@byu.net>
25644
25645         getgroups: avoid compiler warning
25646         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25647
25648         getgroups: work around FreeBSD bug
25649         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25650         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25651         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25652         * tests/test-getgroups.c (main): Fix buffer overrun.
25653
25654         getgroups: avoid compilation failure
25655         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25656         * modules/getgroups (Depends-on): Add stdint.
25657
25658 2009-11-13  Jim Meyering  <meyering@redhat.com>
25659
25660         test-getgroups: avoid compilation failure
25661         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25662
25663 2009-11-13  Eric Blake  <ebb9@byu.net>
25664
25665         mgetgroups: new module, taken from coreutils
25666         * modules/mgetgroups: New file.
25667         * lib/mgetgroups.h: Likewise.
25668         * lib/mgetgroups.c (mgetgroups): Likewise.
25669         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25670         * MODULES.html.sh (Users and groups): Mention it.
25671
25672         getgroups: don't expose GETGROUPS_T to user
25673         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25674         an element at a time if GETGROUPS_T is wrong size.
25675         * lib/getugroups.h (getugroups): Change signature.
25676         * lib/unistd.in.h (getgroups): Likewise.
25677         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25678         signature needs fixing.
25679         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25680         AC_TYPE_GETGROUPS.
25681         * modules/group-member (Depends-on): Add getgroups.
25682         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25683         (group_member): Rely on getgroups replacement.
25684         * lib/getugroups.c (getugroups): Use gid_t.
25685         * tests/test-getgroups.c (main): Likewise.
25686         * NEWS: Mention the signature change.
25687         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25688         problem with signature.
25689         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25690         GETGROUPS_T is still useful for setgroups.
25691
25692         getgroups, getugroups: provide stubs for mingw
25693         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25694         * lib/getugroups.c (getugroups): Likewise.
25695         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25696         function.  Modernize replacement scheme.
25697         (gl_PREREQ_GETGROUPS): Delete.
25698         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25699         * modules/getgroups (configure.ac): Declare witness.
25700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25701         * modules/unistd (Depends-on): Substitute witness.
25702         * lib/unistd.in.h (getgroups): Declare replacement.
25703
25704         getgroups: avoid calling exit
25705         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25706         drop xalloc.
25707         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25708         dependencies.
25709         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25710         exiting, in the rare case of malloc failure.
25711
25712         getgroups: fix logic error
25713         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25714         has more than 20 groups.
25715         * modules/getgroups-tests: New test.
25716         * tests/test-getgroups.c: New file.
25717
25718 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25719
25720         * tests/test-base64.c: Improve.
25721
25722 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25723
25724         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25725         Blake <ebb9@byu.net>.
25726
25727 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25728
25729         * tests/test-xvasprintf.c: Add %s%s related checks.
25730
25731 2009-11-12  Eric Blake  <ebb9@byu.net>
25732
25733         version-etc: match standards.texi style
25734         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25735         and use <> only for URLs.
25736
25737 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25738
25739         fts: do not fail on a submount during traversal
25740         * lib/fts.c (fts_build): Read the stat info again after opening
25741         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25742         Original report at http://bugzilla.redhat.com/501848.
25743
25744 2009-11-12  Jim Meyering  <meyering@redhat.com>
25745
25746         bootstrap: sync from coreutils
25747         * build-aux/bootstrap (bootstrap_epilogue): New function.
25748         Use git_modules_config in one more place.  This make bootstrap's
25749         --gnulib-srcdir option more useful for testing.
25750
25751         bootstrap: generalize autoheader check
25752         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25753         AC_CONFIG_HEADERS.
25754
25755 2009-11-11  Eric Blake  <ebb9@byu.net>
25756
25757         mkfifoat: use new modules for Solaris and BSD bugs
25758         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
25759         * lib/mkfifoat.c (mknodat): Split...
25760         * lib/mknodat.c (mknodat): ...into new file.
25761         * modules/mkfifoat (Files): Ship new file.
25762         (Depends-on): Add mkfifo, mknod.
25763         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
25764         (Depends-on): Add symlink.
25765         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
25766         redundant with test_mkfifo.h.
25767         (do_mkfifoat, do_mknodat): New helpers.
25768
25769         mknod: new module
25770         * modules/mknod: New file.
25771         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
25772         * lib/mknod.c (mknod): Likewise.
25773         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25774         defaults.
25775         * modules/sys_stat (Makefile.am): Substitute them.
25776         * lib/sys_stat.in.h (mknod): Declare replacement.
25777         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25778         Document it.
25779         * doc/posix-functions/mknod.texi (mknod): Likewise.
25780         * modules/mknod-tests: New test.
25781         * tests/test-mknod.c: Likewise.
25782
25783         mkfifo: new module
25784         * modules/mkfifo: New file.
25785         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25786         * lib/mkfifo.c (mkfifo): Likewise.
25787         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25788         defaults.
25789         * modules/sys_stat (Makefile.am): Substitute them.
25790         * lib/sys_stat.in.h (mkfifo): Declare replacement.
25791         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25792         Document it.
25793         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
25794         * modules/mkfifo-tests: New test.
25795         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
25796         from test-mkfifoat.c.
25797         * tests/test-mkfifo.c: New file.
25798
25799         readlink: detect FreeBSD bug
25800         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
25801         slash on symlink.
25802         * doc/posix-functions/readlink.texi (readlink): Document the bug.
25803         * tests/test-readlink.h (test_readlink): Enhance test.
25804
25805         symlink: detect FreeBSD bug
25806         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
25807         slash on symlink.
25808         * doc/posix-functions/symlink.texi (symlink): Document the bug.
25809         * tests/test-symlink.h (test_symlink): Enhance test.
25810
25811 2009-11-10  Eric Blake  <ebb9@byu.net>
25812
25813         link: detect FreeBSD bug
25814         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
25815         symlink.
25816         * doc/posix-functions/link.texi (link): Document the bug.
25817         * tests/test-link.h (test_link): Enhance test.
25818         * tests/test-linkat.c (main): Update caller.
25819
25820         unlink, remove: detect FreeBSD bug
25821         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
25822         slash on symlink.
25823         * doc/posix-functions/unlink.texi (unlink): Document the bug.
25824         * doc/posix-functions/remove.texi (remove): Likewise.
25825         * tests/test-unlink.h (test_unlink): Enhance test.
25826         * tests/test-remove.c (main): Likewise.
25827
25828 2009-11-09  Eric Blake  <ebb9@byu.net>
25829
25830         rename: detect FreeBSD bug
25831         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
25832         slash on symlink.
25833         * modules/renameat-tests (Depends-on): Add filenamecat.
25834         * tests/test-rename.h (test_rename): Allow one more errno.
25835         * tests/test-renameat.c (main): Likewise.
25836         * doc/posix-functions/rename.texi (rename): Document the bug.
25837
25838         open: detect FreeBSD bug
25839         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
25840         symlink.
25841         * doc/posix-functions/open.texi (open): Document the bug.
25842         * doc/posix-functions/utimes.texi (utimes): Likewise.
25843         * tests/test-open.h (test_open): Add parameters, and test symlink
25844         handling.
25845         * tests/test-open.c (main): Adjust caller.
25846         * tests/test-fcntl-safer.c (main): Likewise.
25847         * modules/open-tests (Depends-on): Add stdbool, symlink.
25848         * modules/fcntl-safer-tests (Depends-on): Likewise.
25849         * tests/test-openat.c (main): Add test-open tests.
25850
25851         stat: detect FreeBSD bug
25852         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
25853         symlink.
25854         * doc/posix-functions/stat.texi (stat): Document the bug.
25855         * tests/test-stat.h (test_stat_func): Add argument.
25856         * tests/test-stat.c (main): Adjust caller.
25857         * tests/test-fstatat.c (main): Likewise.
25858         * modules/stat-tests (Depends-on): Add stdbool, symlink.
25859         Reported by Jim Meyering.
25860
25861 2009-11-09  James Youngman  <jay@gnu.org>
25862
25863         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
25864         * lib/strftime.c: Correct placement of #include "ignore-value.h".
25865
25866 2009-11-08  Jim Meyering  <meyering@redhat.com>
25867
25868         utimens: remove invalid futimesat call
25869         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
25870         It used the file descriptor of the target file as the DIR_FD
25871         parameter and NULL as the file name.  That caused failure with
25872         errno == EFAULT on FreeBSD-8.0-rc2
25873
25874 2009-11-07  Eric Blake  <ebb9@byu.net>
25875
25876         fflush, freadseek: use fseeko, not fseek
25877         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25878         (clear_ungetc_buffer): Avoid potential problems on large files.
25879         * lib/freadseek.c (freadseek): Likewise.
25880         * modules/freadseek (Depends-on): Add fseeko.
25881         * modules/fseek (configure.ac): Set a witness.
25882         * tests/test-fflush.c (main): Use fseeko.
25883         * tests/test-fpurge.c (fseek): Disable link warning.
25884         * tests/test-freadable.c (fseek): Likewise.
25885         * tests/test-freading.c (fseek): Likewise.
25886         * tests/test-fseeko.c (fseek): Likewise.
25887         * tests/test-ftell.c (fseek): Likewise.
25888         * tests/test-ftello.c (fseek): Likewise.
25889         * tests/test-fwritable.c (fseek): Likewise.
25890         * tests/test-fwriting.c (fseek): Likewise.
25891
25892 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25893
25894         * modules/memchr (Depends-on): Drop getpagesize dependency.
25895
25896 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25897
25898         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
25899         Reported by Ludovic Courtès.
25900         * build-aux/pmccabe2html: Improve example usage.
25901         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
25902
25903 2009-11-06  Jim Meyering  <meyering@redhat.com>
25904
25905         do-release-commit-and-tag: New module.
25906         Automate the release-commit and tag process.
25907         * build-aux/do-release-commit-and-tag: New script, from coreutils.
25908         * modules/do-release-commit-and-tag: New file.
25909         * MODULES.html.sh (Support for maintaining and releasing): Add it.
25910
25911 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25912
25913         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
25914         because test-select.c uses inet_pton.
25915
25916 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25917
25918         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
25919         GETADDRINFO_LIB.  Bump serial number.
25920         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
25921         Suggested by Eric Blake <ebb9@byu.net>.
25922
25923 2009-11-05  Eric Blake  <ebb9@byu.net>
25924
25925         strtod: detect darwin bug
25926         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
25927         Reported by Leo Davis.
25928
25929         freopen-safer: new module
25930         * modules/freopen-safer: New module.
25931         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
25932         * lib/freopen-safer.c (freopen_safer): New file.
25933         * lib/stdio-safer.h (freopen_safer): New declaration.
25934         * lib/stdio--.h (freopen): New override.
25935         * MODULES.html.sh (File stream based Input/Output): Mention it.
25936         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
25937         freopen-safer module.
25938         * doc/posix-functions/stderr.texi (stderr): Likewise.
25939         * doc/posix-functions/stdin.texi (stdin): Likewise.
25940         * doc/posix-functions/stdout.texi (stdout): Likewise.
25941         * modules/freopen-safer-tests: New test.
25942         * tests/test-reopen-safer.c: New file.
25943
25944 2009-11-05  Jim Meyering  <meyering@redhat.com>
25945
25946         maint.mk: Prohibit inclusion of "close-stream.h" without use.
25947         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25948
25949 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25950
25951         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
25952
25953 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25954
25955         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25956
25957 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25958
25959         Fix link error.
25960         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25961         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25962
25963 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25964
25965         * tests/test-func.c: Also test value of __func__.
25966
25967 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25968
25969         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25970         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25971
25972 2009-11-05  Bruno Haible  <bruno@clisp.org>
25973
25974         Fix link error.
25975         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25976         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25977         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25978
25979 2009-11-05  Bruno Haible  <bruno@clisp.org>
25980
25981         Tests for module 'inet_pton'.
25982         * modules/inet_pton-tests: New file.
25983         * tests/test-inet_pton.c: New file.
25984
25985 2009-11-05  Bruno Haible  <bruno@clisp.org>
25986
25987         Tests for module 'inet_ntop'.
25988         * modules/inet_ntop-tests: New file.
25989         * tests/test-inet_ntop.c: New file.
25990
25991 2009-11-04  Eric Blake  <ebb9@byu.net>
25992
25993         stdlib-safer: wrap all mkstemp variants
25994         * modules/mkostemp (configure.ac): Set witness.
25995         * modules/mkostemps (configure.ac): Likewise.
25996         * modules/mkstemps (configure.ac): Likewise.
25997         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
25998         (mkstemps_safer): Wrap more functions.
25999         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
26000         wrapping.
26001         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
26002         (mkstemps_safer): Implement the wrappers.
26003
26004         mkstemps, mkostemps: new modules
26005         * modules/mkostemps: New module.
26006         * modules/mkstemps: Likewise.
26007         * lib/mkostemps.c (mkostemps): New file.
26008         * lib/mkstemps.c (mkstemps): Likewise.
26009         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
26010         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
26011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
26012         * modules/stdlib (Makefile.am): Substitute them.
26013         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
26014         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
26015         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26016         * doc/gnulib.texi (Glibc stdlib.h): Include them.
26017         * MODULES.html.sh (File system functions): Mention them.
26018
26019         tempname: resync from glibc
26020         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
26021         same values for __GT_FILE as glibc.  Abort even when assertions
26022         are disabled.
26023         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
26024         match its value otherwise.  Allow idempotent inclusion.
26025         * lib/mkdtemp.c (mkdtemp): Adjust caller.
26026         * lib/mkostemp.c (mkostemp): Likewise.
26027         * lib/mkstemp.c (mkstemp): Likewise.
26028         * lib/tmpfile.c (tmpfile): Likewise.
26029         * NEWS: Document this.
26030
26031         utimens: fix use of futimens on older Linux
26032         * lib/utimens.c (fdutimens): Use updated, rather than original,
26033         timespec to avoid bug in older Linux kernel.
26034         Reported by Simon Josefsson.
26035
26036 2009-11-04  Bruno Haible  <bruno@clisp.org>
26037
26038         Make num_processors more flexible and consistent.
26039         * lib/nproc.h (enum nproc_query): New type.
26040         (num_processors): Add a 'query' argument.
26041         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
26042         (num_processors): Add a 'query' argument. Test the value of the
26043         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
26044         mingw, count the number of CPUs available for the current process.
26045         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
26046         Check for sched_getaffinity and sched_getaffinity_np.
26047         * modules/nproc (Depends-on): Add c-ctype, extensions.
26048         * NEWS: Mention the change.
26049
26050 2009-11-03  Bruno Haible  <bruno@clisp.org>
26051
26052         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26053
26054 2009-11-03  Jim Meyering  <meyering@redhat.com>
26055
26056         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26057         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
26058         if it is defined.
26059
26060 2009-11-02  Eric Blake  <ebb9@byu.net>
26061
26062         mktime, timegm: share common declaration
26063         * lib/mktime-internal.h: New file.
26064         * lib/mktime.c: Use it rather than open-coding a declaration.
26065         * lib/timegm.c: Likewise.
26066         * modules/mktime (Files): Ship it.
26067         * modules/timegm (Files): Likewise.
26068         Suggested by Bruno Haible.
26069
26070         test-update-copyright: update test to match script changes
26071         * tests/test-update-copyright.sh: Avoid hard-coding perl
26072         location.  Don't update *.bak created by earlier runs.
26073
26074 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26075             Simon Josefsson  <simon@josefsson.org>
26076             Bruno Haible  <bruno@clisp.org>
26077
26078         Fix link error on Solaris 8.
26079         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
26080         also in libnsl. Define also INET_PTON_LIB.
26081         * modules/inet_pton (Link): New section.
26082
26083 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26084             Bruno Haible  <bruno@clisp.org>
26085
26086         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26087         * modules/inet_ntop (Link): New section.
26088         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26089
26090 2009-11-02  Eric Blake  <ebb9@byu.net>
26091
26092         maint: avoid compiler warnings in m4 macros
26093         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26094         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26095
26096 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26097
26098         * m4/pmccabe2html.m4: Remove file.
26099         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26100         function.  Change maintainer.
26101         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26102         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26103         Courtès).
26104
26105 2009-10-31  Eric Blake  <ebb9@byu.net>
26106
26107         fseeko: fix m4 regression
26108         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26109         regression from 2009-10-27.
26110         Reported by Ralf Wildenhues.
26111
26112 2009-10-31  Jim Meyering  <meyering@redhat.com>
26113
26114         inttostr: aesthetics and improved (compile-time) safety
26115         Define inttype_is_signed rather than inttype_is_unsigned,
26116         since the sole use is via "#if inttype_is_signed".
26117         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26118         inttype_is_unsigned.
26119         * lib/offtostr.c (inttype_is_signed): Likewise.
26120         * lib/uinttostr.c (inttype_is_signed): Likewise.
26121         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26122         * lib/inttostr.c (inttostr): Use verify to cross-check the
26123         inttype_is_signed value and the signedness of the actual type.
26124         * modules/inttostr (Depends-on): Add verify.
26125
26126 2009-10-30  Eric Blake  <ebb9@byu.net>
26127
26128         build: avoid compiler warnings
26129         * lib/fchmodat.c (lchmod): Mark unused variables.
26130         * lib/getopt.c (_getopt_initialize): Likewise.
26131         * lib/mktime.c (__mktime_internal): Provide prototype.
26132         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26133         older gcc that do not understand #pragma GCC diagnostic.
26134         * lib/uinttostr.c (inttype_is_unsigned): Define.
26135         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26136
26137 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26138
26139         stat: fix compilation on AIX
26140         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26141         only see struct stat64.
26142
26143 2009-10-30  Eric Blake  <ebb9@byu.net>
26144
26145         exclude: make more robust
26146         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26147         rather than masking a coding bug.
26148         Suggested by Bruno Haible.
26149
26150 2009-10-30  Jim Meyering  <meyering@redhat.com>
26151
26152         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26153         Rather than putting #!/usr/bin/perl on the first line,
26154         start with a variant of what's recommended by "man perlrun" that
26155         invokes the first "perl" program from your shell's search path.
26156         * build-aux/gitlog-to-changelog: Replace #!... as above.
26157         Add a "Local Variables" perl mode setting.
26158         Prompted by a patch from Ludovic Courtès.
26159         Improved by Eric Blake.
26160         * build-aux/useless-if-before-free: Likewise.
26161         * build-aux/announce-gen: Likewise.
26162         * build-aux/update-copyright: Likewise.
26163
26164 2009-10-29  Eric Blake  <ebb9@byu.net>
26165
26166         filenamecat-lgpl: adjust clients
26167         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26168         filenamecat.
26169         * modules/renameat (Depends-on): Likewise.
26170
26171         filenamecat: split into filenamecat-lgpl
26172         * modules/filenamecat-lgpl: New module.
26173         * modules/filenamecat (Files): Move library-safe files into
26174         filenamecat-lgpl.
26175         (Depends-on): Add filenamecat-lgpl.
26176         (configure.ac): Declare witness.
26177         * lib/filenamecat.h (file_name_concat): Only declare when using
26178         GPL module.
26179         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26180         Move...
26181         * lib/filenamecat-lgpl.c: ...into new file.
26182         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26183         (gl_FILE_NAME_CONCAT): Use it.
26184         * MODULES.html.sh (File system functions): Mention new module.
26185
26186         argp: avoid memory leak
26187         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26188         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26189         base_name, since the latter malloc()s and can call exit().
26190         Leak introduced 2006-07-03.
26191
26192         dirname-lgpl: adjust clients that don't need full dirname
26193         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26194         * modules/filenamecat (Depends-on): Likewise.
26195         * modules/linkat (Depends-on): Likewise.
26196         * modules/mkancesdirs (Depends-on): Likewise.
26197         * modules/mkdir (Depends-on): Likewise.
26198         * modules/openat (Depends-on): Likewise.
26199         * modules/savewd (Depends-on): Likewise.
26200         * modules/rename (Depends-on): Likewise.
26201         (License): Relax license.
26202         * modules/mkdir-tests (Depends-on): Drop progname.
26203         (Makefile.am): Delete unneeded LDADD.
26204         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26205
26206         dirname: split into dirname-lgpl
26207         * modules/dirname-lgpl: New module.
26208         * modules/dirname (Files): Move library-safe files into
26209         dirname-lgpl.
26210         (Depends-on): Add dirname-lgpl.
26211         (configure.ac): Declare witness.
26212         * modules/double-slash-root (License): Relax license.
26213         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26214         module.
26215         * lib/dirname.c (dir_len, mdir_name): Move...
26216         * lib/dirname-lgpl.c: ...into new file.
26217         * lib/basename.c (last_component, base_len): Move...
26218         * lib/basename-lgpl.c: ...into new file.
26219         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26220         (gl_DIRNAME): Use it.
26221         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26222         Mention new module.
26223         * modules/dirname-tests (Depends-on): Add progname.
26224         * tests/test-dirname.c (program_name): Delete.
26225
26226         mkdir: make safe for libraries
26227         * modules/mkdir (Depends-on): Drop xalloc.
26228         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26229         exit.
26230
26231         tests: avoid some compiler warnings
26232         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26233         literals.
26234         * tests/test-memchr.c (main): Avoid type mismatch.
26235         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26236         * tests/test-base64.c (main): Likewise.
26237         * tests/test-getdelim.c (main): Likewise.
26238         * tests/test-gethostname.c (main): Likewise.
26239         * tests/test-getline.c (main): Likewise.
26240         * tests/test-netinet_in.c (main): Likewise.
26241         * tests/test-select.c (open_server_socket, main): Likewise.
26242         * tests/test-select-stdin.c (main): Likewise.
26243         * tests/test-sockets.c (main): Likewise.
26244         * tests/test-strsignal.c (main): Likewise.
26245         * tests/test-sys_select.c (main): Likewise.
26246         * tests/test-sys_socket.c (main): Likewise.
26247         * tests/test-u64.c (main): Likewise.
26248         * tests/test-xfprintf-posix.c (main): Likewise.
26249         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26250
26251         sockets: avoid compiler warning
26252         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26253
26254         maint: detect usage(1) and other suspicious exits
26255         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26256
26257 2009-10-29  Jim Meyering  <meyering@redhat.com>
26258
26259         timespec: long-to-int truncation could make timespec_cmp malfunction
26260         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26261         a multiple of 2^32 nanoseconds as no difference.
26262
26263 2009-10-28  Jim Meyering  <meyering@redhat.com>
26264
26265         fprintftime: wrap macro code argument in "do {...} while(0)"
26266         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26267         cpy macro must be a statement that can be followed by a semicolon.
26268         Now that the else clause contains a comment and is hence longer
26269         than one line, I require curly braces.  That in turn requires
26270         that we wrap this code block in the standard do...while(0).
26271
26272         fprintftime: remove stray semicolon from previous change
26273         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26274
26275         fprintftime: avoid a warning about ignored fwrite return value
26276         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26277         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26278         that is unsafe.
26279         * modules/fprintftime (Depends-on): Add ignore-value.
26280
26281         exclude: avoid an unwarranted warning
26282         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26283
26284 2009-10-27  Eric Blake  <ebb9@byu.net>
26285
26286         fseek: avoid compilation failure when fflush is replaced
26287         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26288         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26289         module is in use.
26290         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26291         module is not in use; since REPLACE_FSEEK worked otherwise.
26292         (GNULIB_FTELLO): Likewise for ftell.
26293         Reported by Ian Beckwith and others.
26294
26295 2009-10-27  Bruno Haible  <bruno@clisp.org>
26296
26297         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26298         Reported by Jim Meyering.
26299
26300 2009-10-27  Jim Meyering  <jim@meyering.net>
26301             Bruno Haible  <bruno@clisp.org>
26302
26303         Avoid warning despite dropping the return value of fwrite.
26304         * lib/unicodeio.c: Include ignore-value.h.
26305         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26306         * modules/unicodeio (Depends-on): Add ignore-value.
26307
26308 2009-10-26  Eric Blake  <ebb9@byu.net>
26309
26310         areadlinkat: fix fallback path
26311         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26312         pointer and zero.
26313
26314 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26315
26316         Use a better IO block size for modern systems
26317         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26318         * lib/md2.c: Likewise.
26319         * lib/md4.c: Likewise.
26320         * lib/md5.c: Likewise.
26321         * lib/sha1.c: Likewise.
26322         * lib/sha256.c: Likewise.
26323         * lib/sha512.c: Likewise.
26324
26325 2009-10-22  Eric Blake  <ebb9@byu.net>
26326
26327         tests: avoid several compiler warnings
26328         * tests/test-getcwd.c (main): Avoid buffer underflow.
26329         * tests/test-getdate.c (main): String literals are not safe with
26330         putenv, so use setenv.  Declare unused argument.
26331         * modules/getdate-tests (Depends-on): Add setenv.
26332         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26333         problems with string literals in char *.
26334         * tests/test-hash.c (main): Avoid shadowing declaration.
26335         (insert_new): Treat string literals as char const *.
26336         * tests/test-getopt.h (test_getopt): Likewise.
26337         (getopt_loop): Alter types to minimize casting elsewhere.
26338         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26339         (test_getopt_long_posix): Likewise.
26340         (do_getopt_long): Add wrapper to minimize casting.
26341         * tests/test-atexit.c (clear_temp_file): Use void.
26342         * tests/test-areadlink-with-size.c (main): Declare unused
26343         arguments.
26344         * tests/test-areadlink.c (main): Likewise.
26345         * tests/test-areadlinkat-with-size.c (main): Likewise.
26346         * tests/test-areadlinkat.c (main): Likewise.
26347         * tests/test-canonicalize-lgpl.c (main): Likewise.
26348         * tests/test-canonicalize.c (main): Likewise.
26349         * tests/test-dirent-safer.c (main): Likewise.
26350         * tests/test-dirname.c (main): Likewise.
26351         * tests/test-dup2.c (main): Likewise.
26352         * tests/test-fchdir.c (main): Likewise.
26353         * tests/test-fcntl-h.c (main): Likewise.
26354         * tests/test-fcntl-safer.c (main): Likewise.
26355         * tests/test-fdopendir.c (main): Likewise.
26356         * tests/test-fdutimensat.c (main): Likewise.
26357         * tests/test-fflush.c (main): Likewise.
26358         * tests/test-filenamecat.c (main): Likewise.
26359         * tests/test-filevercmp.c (main): Likewise.
26360         * tests/test-fopen-safer.c (main): Likewise.
26361         * tests/test-fopen.c (main): Likewise.
26362         * tests/test-fpending.c (main): Likewise.
26363         * tests/test-fpurge.c (main): Likewise.
26364         * tests/test-freading.c (main): Likewise.
26365         * tests/test-fstatat.c (main): Likewise.
26366         * tests/test-fsync.c (main): Likewise.
26367         * tests/test-futimens.c (main): Likewise.
26368         * tests/test-getndelim2.c (main): Likewise.
26369         * tests/test-gettimeofday.c (main): Likewise.
26370         * tests/test-getopt.c (main): Likewise.
26371         * tests/test-i-ring.c (main): Likewise.
26372         * tests/test-inttypes.c (main): Likewise.
26373         * tests/test-link.c (main): Likewise.
26374         * tests/test-lstat.c (main): Likewise.
26375         * tests/test-math.c (main): Likewise.
26376         * tests/test-md5.c (main): Likewise.
26377         * tests/test-memchr2.c (main): Likewise.
26378         * tests/test-memrchr.c (main): Likewise.
26379         * tests/test-mkdir.c (main): Likewise.
26380         * tests/test-mkdirat.c (main): Likewise.
26381         * tests/test-mkfifoat.c (main): Likewise.
26382         * tests/test-open.c (main): Likewise.
26383         * tests/test-openat-safer.c (main): Likewise.
26384         * tests/test-openat.c (main): Likewise.
26385         * tests/test-quotearg.c (main): Likewise.
26386         * tests/test-rawmemchr.c (main): Likewise.
26387         * tests/test-readlink.c (main): Likewise.
26388         * tests/test-remove.c (main): Likewise.
26389         * tests/test-rename.c (main): Likewise.
26390         * tests/test-renameat.c (main): Likewise.
26391         * tests/test-rmdir.c (main): Likewise.
26392         * tests/test-sha1.c (main): Likewise.
26393         * tests/test-signal.c (main): Likewise.
26394         * tests/test-sigaction.c (main): Likewise.
26395         * tests/test-stat.c (main): Likewise.
26396         * tests/test-stat-time.c (main): Likewise.
26397         * tests/test-stddef.c (main): Likewise.
26398         * tests/test-stdint.c (main): Likewise.
26399         * tests/test-stdio.c (main): Likewise.
26400         * tests/test-stdlib.c (main): Likewise.
26401         * tests/test-strchrnul.c (main): Likewise.
26402         * tests/test-strerror.c (main): Likewise.
26403         * tests/test-string.c (main): Likewise.
26404         * tests/test-strtod.c (main): Likewise.
26405         * tests/test-strverscmp.c (main): Likewise.
26406         * tests/test-symlink.c (main): Likewise.
26407         * tests/test-symlinkat.c (main): Likewise.
26408         * tests/test-sys_stat.c (main): Likewise.
26409         * tests/test-sys_time.c (main): Likewise.
26410         * tests/test-time.c (main): Likewise.
26411         * tests/test-unistd.c (main): Likewise.
26412         * tests/test-unlink.c (main): Likewise.
26413         * tests/test-unlinkat.c (main): Likewise.
26414         * tests/test-utimens.c (main): Likewise.
26415         * tests/test-utimensat.c (main): Likewise.
26416         * tests/test-version-etc.c (main): Likewise.
26417         * tests/test-wchar.c (main): Likewise.
26418         * tests/test-wctype.c (main): Likewise.
26419         * tests/test-xprintf-posix.c (main): Likewise.
26420         * tests/test-posixtm.c (main): Likewise.
26421         (STREQ): Delete unused macro.
26422         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26423         shadowed variables.
26424         * tests/test-memchr.c (main): Likewise.
26425
26426 2009-10-21  Eric Blake  <ebb9@byu.net>
26427
26428         areadlinkat: avoid failure on older glibc
26429         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26430         rather than mis-comparing 0 against FUNC_RESULT of char*.
26431
26432 2009-10-21  Bruno Haible  <bruno@clisp.org>
26433
26434         * modules/stpncpy (License): Relicense under LGPLv2+.
26435         Reported by David Lutterkort <lutter@redhat.com>.
26436
26437 2009-10-20  Eric Blake  <ebb9@byu.net>
26438
26439         utimensat: work around Solaris 9 bug
26440         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26441         has trailing slash bugs.
26442         * tests/test-lutimens.h (test_lutimens): Enhance test.
26443         * tests/test-utimens.h (test_utimens): Likewise.
26444         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26445         * doc/posix-functions/utimes.texi (utimes): Likewise.
26446         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26447         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26448         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26449         * doc/posix-functions/futimens.texi (futimens): Likewise.
26450
26451         fdutimensat: new module
26452         * modules/fdutimensat: New file.
26453         * lib/fdutimensat.c (fdutimensat): Likewise.
26454         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26455         * MODULES.html.sh (File system functions): Mention module.
26456         * modules/fdutimensat-tests: New test.
26457         * tests/test-fdutimensat.c: Likewise.
26458
26459         doc: regenerate INSTALL
26460         * doc/INSTALL: Reflect recent autoconf update.
26461         * doc/INSTALL.ISO: Likewise.
26462         * doc/INSTALL.UTF-8: Likewise.
26463
26464 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26465
26466         acl: warn if ACL support is not detected
26467         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26468
26469 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26470
26471         * lib/nproc.h: Add extern "C" block for C++.
26472
26473 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26474             Bruno Haible  <bruno@clisp.org>
26475
26476         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26477         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26478         * doc/posix-functions/isalpha.texi: Likewise.
26479         * doc/posix-functions/isblank.texi: Likewise.
26480         * doc/posix-functions/iscntrl.texi: Likewise.
26481         * doc/posix-functions/isdigit.texi: Likewise.
26482         * doc/posix-functions/isgraph.texi: Likewise.
26483         * doc/posix-functions/islower.texi: Likewise.
26484         * doc/posix-functions/isprint.texi: Likewise.
26485         * doc/posix-functions/ispunct.texi: Likewise.
26486         * doc/posix-functions/isspace.texi: Likewise.
26487         * doc/posix-functions/isupper.texi: Likewise.
26488         * doc/posix-functions/isxdigit.texi: Likewise.
26489
26490 2009-10-18  Bruno Haible  <bruno@clisp.org>
26491
26492         Tests for module 'isblank'.
26493         * modules/isblank-tests: New file.
26494         * tests/test-isblank.c: New file.
26495
26496         New module 'isblank'.
26497         * lib/isblank.c: New file.
26498         * m4/isblank.m4: New file.
26499         * modules/isblank: New file.
26500         * doc/posix-functions/isblank.texi: Mention the new module.
26501
26502 2009-10-18  Bruno Haible  <bruno@clisp.org>
26503
26504         New module 'ctype'.
26505         * lib/ctype.in.h: New file.
26506         * m4/ctype.m4: New file.
26507         * modules/ctype: New file.
26508         * doc/posix-headers/ctype.texi: Mention the new module.
26509
26510 2009-10-18  Jim Meyering  <meyering@redhat.com>
26511
26512         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26513         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26514         right after its initialization, rather than farther down.
26515         Keeping these in close proximity makes it easier to ensure
26516         that each such variable is initialized.  E.g.,
26517
26518             LIB_CLOCK_GETTIME=
26519             AC_SUBST([LIB_CLOCK_GETTIME])
26520
26521         This change also increments these serial numbers.
26522         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26523         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26525
26526 2009-10-18  Bruno Haible  <bruno@clisp.org>
26527
26528         Don't let environment variables perturb build.
26529         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26530         (gl_PREREQ_GETHRXTIME): ... not here.
26531
26532 2009-10-18  Bruno Haible  <bruno@clisp.org>
26533
26534         Avoid symlink attack in localcharset module.
26535         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26536         (O_NOFOLLOW): Define fallback.
26537         (get_charset_aliases): Don't open the file if it is a symbolic link.
26538         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26539         gl_FCNTL_H.
26540         (gl_FCNTL_H): Require it.
26541         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26542         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26543         Reported by Fergal Glynn <fglynn@veracode.com>.
26544
26545 2009-10-18  Bruno Haible  <bruno@clisp.org>
26546
26547         Implement nproc for mingw.
26548         * lib/nproc.c: Include <windows.h>
26549         (num_processors): On native Windows platforms, try GetSystemInfo.
26550
26551 2009-10-18  Bruno Haible  <bruno@clisp.org>
26552
26553         Implement nproc for IRIX.
26554         * lib/nproc.c: Include <sys/sysmp.h>.
26555         (num_processors): On IRIX systems, try sysmp.
26556         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26557
26558 2009-10-18  Bruno Haible  <bruno@clisp.org>
26559
26560         Implement nproc for HP-UX.
26561         * lib/nproc.c: Include <sys/pstat.h>
26562         (num_processors): On HP-UX systems, try pstat_getdynamic.
26563         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26564         pstat_getdynamic.
26565
26566 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26567             Bruno Haible  <bruno@clisp.org>
26568
26569         Implement nproc for NetBSD, OpenBSD.
26570         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26571         (ARRAY_SIZE): New macro.
26572         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26573         * m4/nproc.m4: New file.
26574         * modules/nproc (Files): Add m4/nproc.m4.
26575         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26576         (Makefile.am): Instead, augment lib_SOURCES.
26577
26578 2009-10-18  Bruno Haible  <bruno@clisp.org>
26579
26580         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26581         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26582         sys/param.h.
26583
26584 2009-10-16  Eric Blake  <ebb9@byu.net>
26585
26586         utimensat: new module
26587         * modules/utimensat: New file.
26588         * lib/utimensat.c (utimensat): Likewise.
26589         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26590         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26591         so we can work around Linux bugs.
26592         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26593         * modules/sys_stat (Makefile.am): Substitute them.
26594         * lib/sys_stat.in.h (utimensat): Declare it.
26595         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26596         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26597         * modules/utimensat-tests: New test.
26598         * tests/test-utimensat.c: Likewise.
26599
26600         utimens: let lutimens work on non-symlinks
26601         * lib/utimens.c (lutimens): Fall back to utimens rather than
26602         failing with ENOSYS, when file is not a symlink.
26603         (utimens): Reduce redirection.
26604         * tests/test-lutimens.h (test_lutimens): Update test to cover
26605         non-symlinks.
26606         * tests/test-utimens.h (test_utimens): Update test to cover
26607         symlinks.
26608         * tests/test-utimens.c (main): Update caller.
26609
26610         utimens: cache whether utimensat syscall works
26611         * lib/utimens.c (utimensat_works_really): New cache variable.
26612         (fdutimens, lutimens): Use it to avoid failing syscall.
26613
26614         test-stat-time, test-utimens: improve portability
26615         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26616         ext4 on alpha, and for cygwin.
26617         * tests/test-utimens-common.h: New file.
26618         (nap): Factor delays into single function.
26619         * tests/test-lutimens.h (test_lutimens): Use new header.
26620         * tests/test-futimens.h (test_futimens): Likewise.
26621         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26622         timestamps to occur from same machine, as was done previously for
26623         test_utimens.
26624         * modules/utimens-tests (Files): Ship new file.
26625         * modules/futimens-tests (Files): Likewise.
26626         Reported in part by Jim Meyering.
26627
26628         sys_stat: sort replacement declarations
26629         * lib/sys_stat.in.h: Sort declarations.
26630         * lib/futimens.c (futimens): Fix typo.
26631
26632 2009-10-15  Jim Meyering  <meyering@redhat.com>
26633
26634         don't let environment settings perturb build
26635         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26636         could cause a configure-time and/or build-time malfunction.
26637         Typically, a configure-time function-in-library test is performed
26638         via code like this:
26639
26640           LIB_VAR=
26641           AC_SUBST([LIB_VAR])
26642           prefix_saved_LIBS=$LIBS
26643             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26644                        [test "$ac_cv_search_FUNC" = "none required" ||
26645                         LIB_VAR=$ac_cv_search_FUNC])
26646           LIBS=$prefix_saved_LIBS
26647
26648         However, in each of the files affected by this change, the LIB_VAR=
26649         initialization was omitted.  Thus, when set in the environment, its
26650         value would propagate into generated Makefiles when FUNC is not found
26651         in LIB_NAME.
26652         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26653         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26655
26656 2009-10-14  Eric Blake  <ebb9@byu.net>
26657
26658         fchdir: avoid infinite recursion in mingw
26659         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26660         recursing.
26661
26662         test-stat-time: port to mingw
26663         * tests/test-stat-time.c (force_unlink): Return a value.
26664         (test_ctime) [W32]: Fix compilation error.
26665         (nap): Don't call usleep with too large an argument.  Use
26666         force_unlink.
26667         * doc/pastposix-functions/usleep.texi (usleep): Document the
26668         portability issue.
26669
26670 2009-10-13  Jim Meyering  <meyering@redhat.com>
26671
26672         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26673         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26674         * modules/pipe-filter-ii: Likewise.
26675         * modules/sys_socket-tests: Likewise.
26676         * modules/tsearch-tests: Likewise.
26677         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26678         (check): Depend on it.
26679
26680 2009-10-12  Eric Blake  <ebb9@byu.net>
26681
26682         utimens-tests: port to NFS file systems
26683         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26684         comparisons to avoid spurious failures from timestamp drift
26685         between NFS machines.
26686
26687 2009-10-12  Eric Blake  <ebb9@byu.net>
26688
26689         stat-time-tests: minor cleanups
26690         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26691         * tests/test-stat-time.c (nap): Separate assignment from call.
26692         Suggested by Paolo Bonzini and Bruno Haible.
26693
26694         sys_stat: guarantee struct timespec
26695         * lib/sys_stat.in.h (includes): Always include <time.h>
26696         * modules/sys_stat (Depends-on): Add time.
26697         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26698         mode_t permission values.
26699         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26700         get at subsecond timestamps.
26701
26702 2009-10-10  Eric Blake  <ebb9@byu.net>
26703
26704         futimens: new module
26705         * modules/futimens: New file.
26706         * lib/futimens.c (futimens): Likewise.
26707         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26708         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26709         we can work around Linux bugs.
26710         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26711         * modules/sys_stat (Makefile.am): Substitute them.
26712         * lib/sys_stat.in.h (futimens): Declare it.
26713         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26714         * doc/posix-functions/futimens.texi (futimens): Likewise.
26715         * modules/futimens-tests: New test.
26716         * tests/test-futimens.c: Likewise.
26717
26718         utimens: introduce fdutimens
26719         * lib/utimens.h (fdutimens): New prototype.
26720         * lib/utimens.c (gl_futimens): Move guts...
26721         (fdutimens): ...to new interface.
26722         * tests/test-utimens.c (do_fdutimens): Use it.
26723
26724         utimens: add UTIME_NOW and UTIME_OMIT support
26725         * lib/utimens.c (validate_timespec, update_timespec): New helper
26726         functions.
26727         (gl_futimens, lutimens): Use them.
26728         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26729         stdbool, sys_stat.
26730         (Link): Mention resulting library dependency.
26731         * modules/utimecmp (Link): Likewise.
26732         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26733         (Makefile.am): Pick up library dependency.
26734         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26735         definition.
26736         * tests/test-sys_stat.c: Test the definitions.
26737         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26738         * NEWS: Document library dependency.
26739
26740         utimecmp: support symlink timestamps
26741         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26742         hashing when possible.  Use pathconf when available.
26743         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26744         * modules/utimecmp (Depends-on): Add lstat.
26745
26746         utimens: add lutimens interface
26747         * lib/utimens.c (lutimens): New function.
26748         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26749         * lib/utimens.h (lutimens): Declare new interface.
26750         * tests/test-utimens.c (main): Enhance test.
26751         * tests/test-lutimens.h (test_lutimens): New file.
26752         * modules/utimens-tests (Files): Distribute it.
26753         (Depends-on): Add symlink.
26754         (configure.ac): Check for usleep.
26755
26756         utimens: validate futimens usage
26757         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26758         fewer syscalls on failure later on.  Avoid compiler warning on
26759         mingw.
26760         * modules/utimens (Depends-on): Add dup2.
26761
26762         utimens: add test
26763         * modules/utimens-tests: New test.
26764         * tests/test-utimens.h: New file.
26765         * tests/test-futimens.h: Likewise.
26766         * tests/test-utimens.c: Likewise.
26767
26768         doc: mention timestamp portability issues
26769         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
26770         instead.
26771         * doc/posix-functions/utime.texi (utime): Likewise.
26772         * doc/posix-functions/utimes.texi (utimes): Likewise.
26773         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
26774         instead.
26775         * doc/posix-functions/futimens.texi (futimens): Mention utimens
26776         module.
26777         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26778         Mention weakness with symlink timestamps.
26779         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
26780         to utimensat/futimens instead.
26781         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
26782
26783         test-dup2: enhance test
26784         * tests/test-dup2.c (main): Also check AT_FDCWD.
26785
26786         test-stat-time: avoid more spurious failures
26787         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
26788         xfs; and avoid race if the two timestamps cross quantization edge.
26789
26790         relocatable: prefer 'file system' over 'filesystem'
26791         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
26792         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
26793         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
26794         * doc/relocatable.texi (Enabling Relocatability): Likewise.
26795         * lib/relocatable.c (compute_curr_prefix): Likewise.
26796
26797 2009-10-10  Jim Meyering  <meyering@redhat.com>
26798
26799         stat-time-tests: check for the usleep function
26800         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
26801
26802 2009-10-10  Bruno Haible  <bruno@clisp.org>
26803
26804         * modules/xnanosleep: Put the Link section after the Include section.
26805
26806 2009-10-09  Eric Blake  <ebb9@byu.net>
26807
26808         dup2: work around FreeBSD 6.1 bug
26809         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
26810         * doc/posix-functions/dup2.texi (dup2): Document it.
26811         Reported by Nelson H. F. Beebe and Jim Meyering.
26812
26813         test-stat-time: port to buggy NFS clients
26814         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
26815         (test_ctime): Also skip test if mtime and ctime are skewed.
26816
26817         maint: prefer 'file system' over 'filesystem'
26818         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26819         * doc/posix-functions/lstat.texi (lstat): Likewise.
26820         * lib/file-has-acl.c (file_has_acl): Likewise.
26821         * lib/fwriteerror.c [TEST]: Likewise.
26822         * tests/test-areadlink.h (test_areadlink): Likewise.
26823         * tests/test-areadlinkat-with-size.c (main): Likewise.
26824         * tests/test-areadlinkat.c (main): Likewise.
26825         * tests/test-canonicalize-lgpl.c (main): Likewise.
26826         * tests/test-canonicalize.c (main): Likewise.
26827         * tests/test-fstatat.c (main): Likewise.
26828         * tests/test-linkat.c (main): Likewise.
26829         * tests/test-lstat.h (test_lstat_func): Likewise.
26830         * tests/test-mkdir.h (test_mkdir): Likewise.
26831         * tests/test-readlink.h (test_readlink): Likewise.
26832         * tests/test-remove.c (main): Likewise.
26833         * tests/test-rename.h (test_rename): Likewise.
26834         * tests/test-renameat.c (main): Likewise.
26835         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26836         * tests/test-symlink.h (test_symlink): Likewise.
26837         * tests/test-symlinkat.c (main): Likewise.
26838         * tests/test-unlink.h (test_unlink_func): Likewise.
26839         * tests/test-unlinkat.c (main): Likewise.
26840
26841         maint: make realtime library usage explicit
26842         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
26843         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
26844         * modules/settime (Link): Likewise.
26845         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
26846
26847         test-stat-time: speed up execution
26848         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
26849         warning on mingw.
26850         (nap): New helper function.
26851         (prepare_test): Use it to reduce sleep time.
26852         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
26853         execution.
26854         * modules/stat-time-tests (configure.ac): Check for usleep.
26855
26856 2009-10-09  Jim Meyering  <meyering@redhat.com>
26857
26858         selinux-h: always use getfilecon wrappers
26859         * lib/getfilecon.c: New file.
26860         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
26861         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
26862         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
26863         (fgetfilecon): Provide a stub.
26864         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
26865         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
26866         file unconditionally.
26867         When <selinux/selinux.h> is found, arrange to use wrappers.
26868         * modules/selinux-h (Files): Add getfilecon.c.
26869         (Makefile.am): Substitute include-next-related bits
26870         into the now-always-generated selinux/selinux.h file.
26871         * doc/glibc-functions/lgetfilecon.texi: New file.
26872         * doc/glibc-functions/fgetfilecon.texi: New file.
26873         * doc/glibc-functions/getfilecon.texi: New file.
26874         * doc/glibc-functions/getfilecon-desc.texi: New file.
26875         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
26876         which to pull in the new files.
26877         * MODULES.html.sh (Misc): Add selinux-h.
26878
26879 2009-10-08  Jim Meyering  <meyering@redhat.com>
26880
26881         unistd: fix comment typo
26882         * lib/unistd.in.h (euidaccess): Fix a comment typo.
26883
26884 2009-10-08  Eric Blake  <ebb9@byu.net>
26885
26886         areadlink: use SIZE_MAX consistently
26887         * modules/areadlink (Depends-on): Add stdint.
26888         * modules/areadlink-with-size (Depends-on): Likewise.
26889         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
26890         gives NULL; drop sys/types, since unistd gives size_t; and add
26891         stdint for SIZE_MAX.
26892         (SIZE_MAX): Rely on headers.
26893         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
26894         and add stdint.
26895         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
26896         (SIZE_MAX): Likewise.
26897         (INITIAL_BUF_SIZE): Turn into enum.
26898         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
26899
26900 2009-10-08  Jim Meyering  <meyering@redhat.com>
26901
26902         areadlinkat: avoid compilation failure
26903         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
26904         Fix typo in comment.
26905
26906 2009-10-07  Eric Blake  <ebb9@byu.net>
26907
26908         areadlinkat-with-size: new module
26909         * modules/areadlinkat-with-size: New module.
26910         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
26911         * lib/areadlink.h (areadlinkat): Declare it.
26912         * MODULES.html.sh (File system functions): Mention it.
26913         * modules/areadlinkat-with-size-tests: New test.
26914         * tests/test-areadlinkat-with-size.c: New file.
26915
26916         xreadlinkat: new module
26917         * modules/xreadlinkat: New module.
26918         * lib/xreadlinkat.c (xreadlinkat): New file.
26919         * lib/xreadlink.h (xreadlinkat): Declare it.
26920         * MODULES.html.sh (File system functions): Mention it.
26921
26922         areadlinkat: new module
26923         * lib/at-func.c (FUNC_FAIL): New define.
26924         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
26925         * modules/areadlinkat: New module.
26926         * lib/linkat.c (areadlinkat): Move...
26927         * lib/areadlinkat.c (areadlinkat): ...to new file.
26928         * lib/areadlink.h (areadlinkat): Declare it.
26929         * modules/linkat (Depends-on): Add areadlinkat.
26930         * MODULES.html.sh (File system functions): Mention it.
26931         * modules/areadlinkat-tests: New test.
26932         * tests/test-areadlinkat.c: New file.
26933
26934         areadlink, areadlink-with-size: add tests
26935         * modules/areadlink-tests: New test.
26936         * modules/areadlink-with-size-tests: Likewise.
26937         * tests/test-areadlink.h: New file.
26938         * tests/test-areadlink.c: Likewise.
26939         * tests/test-areadlink-with-size.c: Likewise.
26940
26941         maint: minor cleanups
26942         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
26943         _UNUSED_PARAMETER_ instead.
26944         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
26945         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
26946         * modules/linkat-tests (Files): Distribute test-link.h.
26947
26948         openat, utimens: whitespace cleanup
26949         * lib/openat.c: Prefer space throughout, rather than mix of 8
26950         spaces vs. tabs.
26951         * lib/at-func.c: Likewise.
26952         * lib/utimens.c: Likewise.
26953
26954         openat: avoid using wrong fd
26955         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26956         working directory chooses same fd.
26957         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26958
26959         mkdir, mkdirat: fix cygwin 1.5.x bug
26960         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26961         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26962         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26963         bug.
26964         (gl_PREREQ_MKDIR): Delete unused macro.
26965         * modules/mkdir (Files): Track file rename.
26966         (configure.ac): Update macro name.
26967         * modules/openat (Depends-on): Add mkdir.
26968         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26969
26970         mkdir, mkdirat: add tests
26971         * modules/mkdir-tests: New test.
26972         * tests/test-mkdir.h: New file.
26973         * tests/test-mkdir.c: Likewise.
26974         * tests/test-mkdirat.c: Likewise.
26975         * modules/openat-tests (Files): Add new files.
26976         (Makefile.am): Run new test.
26977
26978 2009-10-06  Eric Blake  <ebb9@byu.net>
26979
26980         doc: tweak *at function documentation
26981         * doc/posix-functions/faccessat.texi (faccessat): Mention
26982         known issue with replacement.
26983         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26984         * doc/posix-functions/linkat.texi (linkat): Likewise.
26985         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26986         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26987         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26988         * doc/posix-functions/renameat.texi (renameat): Likewise.
26989         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26990
26991         openat: fix GNU/Hurd bug in unlinkat
26992         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26993         broken.
26994         * doc/posix-functions/unlink.texi (unlink): Document this.
26995         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
26996
26997         fdopendir: fix GNU/Hurd bug
26998         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
26999         allowing non-directory fds.
27000         * lib/fdopendir.c (rpl_fdopendir): Work around it.
27001         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27002         * modules/dirent (Makefile.am): Substitute it.
27003         * lib/dirent.in.h (fdopendir): Declare replacement.
27004         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
27005         * tests/test-fdopendir.c (main): Test something other than
27006         /dev/null, since on Hurd that behaves like a directory.
27007
27008         test-symlink: port to GNU/Hurd
27009         * tests/test-symlink.h (test_symlink): Relax expected errno.
27010
27011         doc: tweak more cygwin information
27012         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
27013         now compatible with glibc.
27014         * doc/posix-functions/getopt.texi (getopt): Likewise.
27015
27016         getopt-gnu: add another test
27017         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
27018         guarantee behavior relied on by m4.
27019         * tests/test-getopt.c (main): Use it.
27020         * modules/getopt-posix-tests (Depends-on): Add setenv.
27021         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
27022
27023         getopt: fix compilation on darwin
27024         * lib/getopt.in.h (includes): Leave breadcrumbs during system
27025         include.
27026         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
27027         Reported by Ludovic Courtès.
27028
27029 2009-10-06  Bruno Haible  <bruno@clisp.org>
27030
27031         * modules/size_max (Description): Discourage its use.
27032         Reported by Simon Josefsson.
27033
27034 2009-10-06  Jim Meyering  <meyering@redhat.com>
27035
27036         linkat: avoid compilation failure
27037         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
27038
27039 2009-10-05  Eric Blake  <ebb9@byu.net>
27040
27041         linkat: support Linux 2.6.17
27042         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
27043         linkat on Linux, but allow cache variable override.
27044         * lib/linkat.c (rpl_linkat): Define override.
27045         * modules/linkat (Depends-on): Add symlinkat.
27046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
27047         * modules/unistd (Makefile.am): Substitute it.
27048         * lib/unistd.in.h (linkat): Declare replacement.
27049         Reported by Pádraig Brady.
27050
27051         quotearg: port test to systems with C.UTF-8 locale
27052         * tests/test-quotearg.c (struct result_strings): Add another
27053         member, differentiating between C.ASCII and C.UTF-8 handling.
27054         (compare_strings): Add parameter.
27055         (main): Adjust all callers.
27056
27057         getopt: avoid clash with FreeBSD _getopt_internal
27058         * lib/getopt.in.h (_getopt_internal): Override the name.
27059         * lib/getopt_int.h (includes): Pick up any overrides.
27060         Reported by Reuben Thomas.
27061
27062         hash: allow C89 compilation
27063         * lib/hash.c (check_tuning): Move declaration before statement.
27064         Reported by Reuben Thomas.
27065
27066 2009-10-05  Karl Berry  <karl@gnu.org>
27067
27068         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
27069
27070 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
27071             Bruno Haible  <bruno@clisp.org>
27072
27073         * lib/uname.c (uname): Use a table-driven algorithm to compute
27074         Windows NT versions.
27075
27076 2009-10-04  Bruno Haible  <bruno@clisp.org>
27077
27078         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
27079         program_invocation_short_name.
27080         * modules/progname (configure.ac): Test for presence of
27081         program_invocation_short_name.
27082         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27083
27084 2009-10-04  Bruno Haible  <bruno@clisp.org>
27085
27086         * lib/progname.c (set_program_name): Fix comment.
27087         Reported by Jim Meyering.
27088
27089 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27090             Bruno Haible  <bruno@clisp.org>
27091
27092         * lib/uname.c: Include <string.h>.
27093         (uname): Do only one call to GetVersionEx in the common case.
27094
27095 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27096             Bruno Haible  <bruno@clisp.org>
27097
27098         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27099         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27100         (uname): Add support for Windows CE and various non-x86 CPU types.
27101
27102 2009-10-03  Bruno Haible  <bruno@clisp.org>
27103
27104         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27105         invocation to tests/configure.ac.
27106         Reported by Ian Beckwith <ianb@erislabs.net>.
27107
27108 2009-10-02  Eric Blake  <ebb9@byu.net>
27109
27110         fchdir: avoid compiler warning
27111         * lib/fchdir.c (canonicalize_file_name)
27112         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27113
27114         test-open: support mingw errno values
27115         * tests/test-open.h (test_open): Relax test.
27116         * tests/test-fopen.h (test_fopen): Likewise.
27117         * tests/test-openat-safer.c (main): Likewise.
27118
27119         open: fix opening directory on mingw
27120         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27121
27122         test-open: on GNU/Hurd, /dev/null is a directory
27123         * tests/test-fopen.h (main): Rename...
27124         (test_fopen): ...to this.  Use a guaranteed non-directory when
27125         confirming open behavior on trailing slash.
27126         * tests/test-openat-safer.c (main): Likewise.
27127         * tests/test-open.h (main): Likewise....
27128         (test_open): ...to this.
27129         * tests/test-fopen.c (main): Adjust caller.
27130         * tests/test-fopen-safer.c (main): Likewise.
27131         * tests/test-open.c (main): Likewise.
27132         * tests/test-fcntl-safer.c (main): Likewise.
27133         Reported by Samuel Thibault.
27134
27135         rename, fchdir: don't ignore chdir failure
27136         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27137         * lib/rename.c (rpl_rename) [W32]: Likewise.
27138         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27139         an empty destination directory if source cannot be renamed,
27140         although there is still possibility for failure.
27141         * doc/posix-functions/rename.texi (rename): Document the race.
27142         Reported by Jim Meyering.
27143
27144         maint: cleanup whitespace in recent commits
27145         * lib/rename.c (rpl_rename): Remove tabs.
27146         * tests/test-link.h (test_link): Likewise.
27147         * lib/fchdir.c (get_name): Likewise.
27148         Reported by Jim Meyering.
27149
27150 2009-10-02  Ben Pfaff  <blp@gnu.org>
27151
27152         relocatable-prog-wrapper: Add missing dependency on
27153         double-slash-root.
27154         * modules/relocatable-prog-wrapper: Add dependency.
27155         Reported by Ian Beckwith <ianb@erislabs.net>.
27156
27157 2009-10-02  Eric Blake  <ebb9@byu.net>
27158
27159         renameat: fix Solaris bugs
27160         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27161         needed fixing.
27162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27163         * modules/stdio (Makefile.am): Substitute it.
27164         * lib/stdio.in.h (renameat): Declare replacement.
27165         * lib/renameat.c (rpl_renameat): Implement fix.
27166
27167         renameat: new module
27168         * modules/renameat: New file.
27169         * lib/renameat.c (renameat): Likewise.
27170         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27172         * modules/stdio (Makefile.am): Substitute them.
27173         * lib/stdio.in.h (renameat): Declare it.
27174         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27175         * doc/posix-functions/renameat.texi (renameat): Likewise.
27176         * modules/renameat-tests: New test.
27177         * tests/test-renameat.c: Likewise.
27178
27179         rename: fix mingw bugs
27180         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27181         directory overwrite bugs.
27182
27183         rename: fix another cygwin 1.5 bug
27184         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27185         checks.
27186         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27187         unnecessary cygwin workarounds.  Also work around bug with moving
27188         full directory onto an empty one.
27189         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27190
27191         rename-dest-slash: merge into rename module
27192         * modules/rename-dest-slash (Status): Mark obsolete.
27193         (Depends-on): Add rename.
27194         (Files): Let rename do it all.
27195         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27196         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27197         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27198         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27199         * lib/rename.c (rpl_rename): Update comments.
27200
27201         rename: fix cygwin 1.5.x bugs
27202         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27203         * lib/rename.c (rpl_rename): Work around them.
27204         * modules/rename (Depends-on): Add same-inode.
27205
27206         rename: fix Solaris 10 bug
27207         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27208         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27209         was the only bug.
27210
27211         rename: fix Solaris 9 bug
27212         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27213         on non-directory.  Avoid calling exit.
27214         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27215         strdup.
27216         * modules/rename-tests (Depends-on): Drop lstat.
27217         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27218         (gl_PREREQ_RENAME): Delete unused macro.
27219
27220         rename-dest-slash: fix NetBSD bug
27221         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27222         links.
27223         * modules/rename-dest-slash (Depends-on): Add same-inode.
27224
27225         rename-tests: new test, exposes several platform bugs
27226         * modules/rename-tests: New file.
27227         * tests/test-rename.h: Likewise.
27228         * tests/test-rename.c: Likewise.
27229         * doc/posix-functions/rename.texi (rename): Improve documentation,
27230         including bugs that will eventually be fixed in gnulib.
27231
27232 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27233
27234         * lib/uname.c: Include <stdlib.h>
27235         (uname): Assume version info is available.
27236
27237 2009-10-02  Jim Meyering  <meyering@redhat.com>
27238
27239         gnu-web-doc-update: correct --help output
27240         * build-aux/gnu-web-doc-update: Make --help output relevant.
27241
27242         gnu-web-doc-update: add standard options
27243         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27244
27245         gnu-web-doc-update: New module.
27246         Use this script to automatically update the on-line web documentation
27247         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27248         * modules/gnu-web-doc-update: New file, from coreutils.
27249         * build-aux/gnu-web-doc-update: New script.
27250
27251 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27252
27253         link: LoadLibrary is not needed.
27254         * lib/link.c: Use GetModuleHandle.
27255
27256 2009-10-01  Eric Blake  <ebb9@byu.net>
27257
27258         getopt: bump serial number
27259         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27260         change.
27261
27262         tests: tighten link, rmdir, and remove tests
27263         * tests/test-link.h (includes): No need to use <config.h> here.
27264         Clean up if directory hard link was created, otherwise test for
27265         trailing '.'.
27266         * tests/test-linkat.c (main): Simplify.
27267         * tests/test-remove.c (main): Enhance test for trailing '.'.
27268         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27269
27270 2009-10-01  Jim Meyering  <meyering@redhat.com>
27271
27272         maint.mk: requiring "make major" was annoying, for a "minor" release.
27273         What is intended is "stable", to contrast with alpha and beta,
27274         so require "make stable", not "make major".
27275         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27276         (get_tool_versions): Likewise.
27277         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27278
27279 2009-09-30  Ben Pfaff  <blp@gnu.org>
27280
27281         Fix broken build of replacement for Windows tmpfile().
27282         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27283         flags argument added along with the 'mkostemp' module.
27284
27285 2009-09-28  Bruno Haible  <bruno@clisp.org>
27286
27287         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27288         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27289         to 'remove_elt'.
27290         (gl_list_remove): Update.
27291         * lib/gl_list.c (gl_list_remove): Update.
27292         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27293         to 'remove_elt'.
27294         (gl_oset_remove): Update.
27295         * lib/gl_list.c (gl_oset_remove): Update.
27296         Reported by Eric Blake.
27297
27298 2009-09-28  Eric Blake  <ebb9@byu.net>
27299
27300         doc: mention yet more cygwin 1.7 status
27301         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27302         cygwin.
27303         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27304         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27305
27306         argp: fix test failure
27307         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27308         that are not upper-case.  Pass correct range to tolower.
27309
27310 2009-09-27  Jim Meyering  <meyering@redhat.com>
27311
27312         test-yesno: work around sparc-dash here-document infelicity
27313         Without this change, the literal \177 byte in a here document
27314         would make dash 0.5.5.1-3 access uninitialized memory.
27315         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27316         Instead, use a marker, "@", and filter through tr to create the desired
27317         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27318
27319 2009-09-27  Bruno Haible  <bruno@clisp.org>
27320
27321         Disable untested support for new flavours of ACLs on AIX.
27322         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27323         progress.
27324         * lib/set-mode-acl.c (qset_acl): Likewise.
27325
27326 2008-12-07  Bruno Haible  <bruno@clisp.org>
27327
27328         Add support for new flavours of ACLs on AIX. (Untested.)
27329         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27330         (file_has_acl): Add support for newer AIX.
27331         * lib/set-mode-acl.c (qset_acl): Likewise.
27332         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27333         Rainer Tammer <tammer@tammer.net>.
27334
27335 2009-09-26  Eric Blake  <ebb9@byu.net>
27336
27337         argp: fix compilation of getopt
27338         * lib/getopt.in.h (includes): Use different guard than glibc.
27339         Reported by Sergey Poznyakoff.
27340
27341         doc: mention more cygwin 1.7 status
27342         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27343         bug.
27344         * doc/posix-functions/execl.texi (execl): Likewise.
27345         * doc/posix-functions/execle.texi (execle): Likewise.
27346         * doc/posix-functions/execlp.texi (execlp): Likewise.
27347         * doc/posix-functions/execv.texi (execv): Likewise.
27348         * doc/posix-functions/execve.texi (execve): Likewise.
27349         * doc/posix-functions/execvp.texi (execvp): Likewise.
27350         * doc/glibc-functions/canonicalize_file_name.texi
27351         (canonicalize_file_name): Cygwin 1.7 now provides this.
27352         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27353         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27354         on AT_SYMLINK_NOFOLLOW.
27355
27356 2009-09-24  Eric Blake  <ebb9@byu.net>
27357
27358         test-linkat: make test more robust
27359         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27360
27361         getopt: fix inclusion guards for cygwin
27362         * modules/getopt-posix (Depends-on): Add include-next.
27363         (Makefile.am): Substitute more items in replacement header.
27364         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27365         <getopt.h>.
27366         * lib/getopt.in.h (includes): Use split inclusion guard, and
27367         prefer <getopt.h> over include <unistd.h> when one is present.
27368         (option): Also override name of 'struct option'.
27369
27370         same-inode: revert prior change; it is not yet ready
27371         * NEWS: Undo mention of this change.
27372         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27373         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27374         * lib/cycle-check.c (cycle_check): Likewise.
27375         * lib/same.c (same_name): Likewise.
27376         * lib/at-func2.c (at_func2): Likewise.
27377
27378 2009-09-23  Eric Blake  <ebb9@byu.net>
27379
27380         linkat: new module
27381         * modules/linkat: New file.
27382         * lib/at-func2.c (at_func2): Likewise.
27383         * lib/linkat.c (linkat): Likewise.
27384         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27385         * lib/openat-priv.h (at_func2): Add declaration.
27386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27387         * modules/unistd (Makefile.am): Substitute them.
27388         * lib/unistd.in.h (linkat): Declare it.
27389         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27390         * doc/posix-functions/linkat.texi (linkat): Likewise.
27391         * doc/posix-functions/link.texi (link): Tweak wording.
27392         * tests/test-link.c (main): Move guts...
27393         * tests/test-link.h (test_link): ...into new file.
27394         * modules/linkat-tests: New test.
27395         * tests/test-linkat.c: Likewise.
27396         * modules/link-tests (Files): Ship new file.
27397         (Depends-on): Add stdbool.
27398
27399         dirname: add library-safe mdir_name
27400         * lib/dirname.h (mdir_name): New prototype.
27401         * lib/dirname.c (dir_name): Move guts...
27402         (mdir_name): ...to new function that avoids xalloc_die.
27403
27404         fchdir: another mingw fix
27405         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27406         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27407         on mingw (where it has not yet been ported), and make it optional
27408         elsewhere.
27409         (_gl_register_fd): Use it.
27410
27411         same-inode: make SAME_INODE tri-state, to port to mingw
27412         * NEWS: Mention this change.
27413         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27414         st_ino always being 0.
27415         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27416         * lib/cycle-check.c (cycle_check): Likewise.
27417         * lib/same.c (same_name): Likewise.
27418
27419         lstat: avoid mingw compilation error
27420         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27421         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27422         lstat ourselves.
27423         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27424         was adequate.
27425         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27426         the checks for lstat.
27427         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27428
27429         link: fix test failure on Solaris 9
27430         * lib/link.c (rpl_link): Don't assume link will catch bogus
27431         trailing slash on source.
27432
27433         test-symlinkat: enhance test
27434         * tests/test-readlink.c (main): Move guts...
27435         * tests/test-readlink.h (test_readlink): ...into new file.
27436         * tests/test-symlink.c (main): Move guts...
27437         * tests/test-symlink.h (test_symlink): ...into new file.
27438         * tests/test-symlinkat.c (main): Use new files for further
27439         coverage.
27440         (do_symlink, do_readlink): New helper functions.
27441         * modules/symlink-tests (Files): Ship new file.
27442         (Depends-on): Add stdbool.
27443         * modules/readlink-tests (Files): Ship new file.
27444         (Depends-on): Add stdbool.
27445         * modules/symlinkat-tests (Files): Use new files.
27446
27447 2009-09-23  Eric Blake  <ebb9@byu.net>
27448
27449         readlink: document portability issue with symlink length
27450         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27451         systems have bogus st_size on symlinks, and mention the
27452         areadlink-with-size module.
27453         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27454         * doc/posix-functions/readlink.texi (readlink): Mention the
27455         areadlink module, and ERANGE failure.
27456         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27457         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27458
27459         readlink: fix Solaris 9 bug with trailing slash
27460         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27461         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27462         * doc/posix-functions/readlink.texi (readlink): Document this.
27463         * modules/readlink-tests: New test.
27464         * tests/test-readlink.c: Likewise.
27465
27466         readlink: fix cygwin 1.5.x bug with return type
27467         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27468         * lib/unistd.in.h (readlink): Use ssize_t.
27469         * lib/readlink.c (readlink): Likewise.
27470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27471         * modules/unistd (Makefile.am): Substitute it.
27472         * lib/unistd.in.h (readlink): Declare replacement.
27473         * doc/posix-functions/readlink.texi (readlink): Document this.
27474
27475         symlink: use throughout gnulib
27476         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27477         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27478         symlink is not used.
27479         * modules/symlinkat (Depends-on): Add symlink.
27480         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27481         * modules/canonicalize-tests (Depends-on): Likewise.
27482         * modules/lstat-tests (Depends-on): Likewise.
27483         * modules/openat-tests (Depends-on): Likewise.
27484         * modules/remove-tests (Depends-on): Likewise.
27485         * modules/rmdir-tests (Depends-on): Likewise.
27486         * modules/unlink-tests (Depends-on): Likewise.
27487         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27488         * tests/test-canonicalize.c (symlink): Likewise.
27489         * tests/test-fstatat.c (symlink): Likewise.
27490         * tests/test-lstat.c (symlink): Likewise.
27491         * tests/test-remove.c (symlink): Likewise.
27492         * tests/test-rmdir.c (symlink): Likewise.
27493         * tests/test-unlink.c (symlink): Likewise.
27494         * tests/test-unlinkat.c (symlink): Likewise.
27495
27496         symlink: new module, for Solaris 9 bug
27497         * modules/symlink: New file.
27498         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27499         * lib/symlink.c: Likewise.
27500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27501         * modules/unistd (Makefile.am): Substitute them.
27502         * lib/unistd.in.h (symlink): Declare replacement.
27503         * MODULES.html.sh (File system functions): Mention it.
27504         * doc/posix-functions/symlink.texi (symlink): Likewise.
27505         * modules/symlink-tests: New test.
27506         * tests/test-symlink.c: Likewise.
27507
27508 2009-09-23  Bruno Haible  <bruno@clisp.org>
27509
27510         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27511         when needed.
27512         Test case: gnulib-tool --import --with-tests atexit inttypes.
27513         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27514
27515 2009-09-23  Bruno Haible  <bruno@clisp.org>
27516
27517         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27518         subcommand, not in a subshell.
27519
27520 2009-09-22  Eric Blake  <ebb9@byu.net>
27521
27522         unistd: sort replacement declarations
27523         * lib/unistd.in.h: Sort declarations.
27524
27525         open, openat: minor optimization
27526         * lib/open.c (open): If open succeeded, len is non-zero.
27527         * lib/openat.c (rpl_openat): Likewise.
27528
27529         link-follow: ensure correct result
27530         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27531         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27532         distinguish between possible failures.
27533
27534 2009-09-21  Eric Blake  <ebb9@byu.net>
27535
27536         fts: avoid compiler warning
27537         * lib/fts.c (dirent_inode_sort_may_be_useful)
27538         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27539
27540 2009-09-19  Bruno Haible  <bruno@clisp.org>
27541
27542         * lib/progreloc.c (canonicalize_file_name): New declaration.
27543
27544 2009-09-19  Eric Blake  <ebb9@byu.net>
27545
27546         link: fix quoting
27547         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27548
27549         openat: fix openat bugs on Solaris 9
27550         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27551         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27552         * modules/openat (Depends-on): Add open.
27553         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27554         * modules/fcntl-h (Makefile.am): Substitute it.
27555         * lib/fcntl.in.h (openat): Declare replacement.
27556         * doc/posix-functions/openat.texi (openat): Document this.
27557
27558         openat: move fstatat and unlinkat into correct files
27559         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27560         compiled.
27561         * lib/openat.c (fstatat, unlinkat): Move...
27562         * lib/fstatat.c (fstatat): ...into correct files.
27563         * lib/unlinkat.c (unlinkat): Likewise.
27564
27565         openat: fix unlinkat bugs on Solaris 9
27566         * lib/unlinkat.c (unlinkat): New file.
27567         * modules/openat (Depends-on): Add unlink.
27568         (Files): Distribute it.
27569         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27570         trailing slash behavior is broken.
27571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27572         * modules/unistd (Makefile.am): Substitute it.
27573         * lib/unistd.in.h (unlinkat): Declare replacement.
27574         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27575
27576         openat: fix fstatat bugs on Solaris 9
27577         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27578         stat.
27579         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27580
27581         test-unlinkat: enhance test, to expose Solaris 9 bug
27582         * tests/test-unlink.c (main): Factor guts...
27583         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27584         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27585         * tests/test-rmdir.c (main): Adjust caller.
27586         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27587         (unlinker): New helper function.
27588         (rmdirat): Enhance check.
27589         * modules/rmdir-tests (Depends-on): Add stdbool.
27590         * modules/unlink-tests (Depends-on): Likewise.
27591         (Files): Add test-unlink.h.
27592         * modules/openat-tests (Files): Likewise.
27593         (Depends-on): Add unlinkdir.
27594
27595         test-fstatat: new test, to expose Solaris 9 bugs
27596         * tests/test-stat.c (main): Factor guts...
27597         * tests/test-stat.h (test_stat_func): ...into new file.
27598         * tests/test-lstat.c (main): Factor guts...
27599         * tests/test-lstat.h (test_lstat_func): ...into new file.
27600         * tests/test-fstatat.c: New file.
27601         * modules/stat-tests (Files): Add test-stat.h.
27602         * modules/lstat-tests (Files): Add test-lstat.h.
27603         (Depends-on): Add stdbool.
27604         * modules/openat-tests (Depends-on): Add pathmax.
27605         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27606         (Makefile.am): Run new test.
27607
27608         remove: new module, for mingw and Solaris 9 bugs
27609         * modules/remove: New file.
27610         * lib/remove.c: Likewise.
27611         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27613         * modules/stdio (Makefile.am): Use them.
27614         * lib/stdio.in.h (remove): Declare replacement.
27615         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27616         * doc/posix-functions/remove.texi (remove): Likewise.
27617         * modules/remove-tests: New test.
27618         * tests/test-remove.c: Likewise.
27619
27620         unlink: new module, for Solaris 9 bug
27621         * modules/unlink: New file.
27622         * lib/unlink.c: Likewise.
27623         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27625         * modules/unistd (Makefile.am): Use them.
27626         * lib/unistd.in.h (stat): Declare replacement.
27627         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27628         * doc/posix-functions/unlink.texi (unlink): Likewise.
27629         * modules/unlink-tests: New test.
27630         * tests/test-unlink.c: Likewise.
27631
27632         lstat: fix Solaris 9 bug
27633         * lib/lstat.c (lstat): Also check for trailing slash on
27634         non-symlink, non-directories.  Use stat module to simplify logic.
27635         * doc/posix-functions/lstat.texi (lstat): Document it.
27636         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27637         (configure.ac): Check for symlink.
27638         * tests/test-lstat.c (main): Add more tests.
27639
27640         stat: add as dependency to other modules
27641         * modules/chown (Depends-on): Add stat.
27642         * modules/euidaccess (Depends-on): Likewise.
27643         * modules/fchdir (Depends-on): Likewise.
27644         * modules/isdir (Depends-on): Likewise.
27645         * modules/link (Depends-on): Likewise.
27646         * modules/lstat (Depends-on): Likewise.
27647         * modules/mkdir-p (Depends-on): Likewise.
27648         * modules/modechange (Depends-on): Likewise.
27649         * modules/open (Depends-on): Likewise.
27650         * modules/readlink (Depends-on): Likewise.
27651         * modules/same (Depends-on): Likewise.
27652
27653         stat: fix Solaris 9 bug
27654         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27655         slash.
27656         * lib/stat.c (rpl_stat): Work around it.
27657         * doc/posix-functions/stat.texi (stat): Update documentation.
27658
27659         stat: new module, for mingw bug
27660         * modules/stat: New file.
27661         * lib/stat.c: Likewise.
27662         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27663         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27664         * modules/sys_stat (Makefile.am): Use them.
27665         * lib/sys_stat.in.h (stat): Declare replacement.
27666         * lib/openat.c (fstatat): Deal with lstat and stat being function
27667         macros.
27668         * modules/openat (Depends-on): Add inline.
27669         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27670         * doc/posix-functions/stat.texi (stat): Likewise.
27671         * modules/stat-tests: New test.
27672         * tests/test-stat.c: Likewise.
27673
27674 2009-09-19  Jim Meyering  <meyering@redhat.com>
27675
27676         syntax-check: detect unnecessary inclusion of canonicalize.h
27677         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27678
27679 2009-09-19  Eric Blake  <ebb9@byu.net>
27680
27681         canonicalize-lgpl: adjust clients to use correct header
27682         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27683         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27684         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27685         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27686         * lib/progreloc.c (includes): Likewise.
27687
27688 2009-09-19  Jim Meyering  <meyering@redhat.com>
27689
27690         test-posixtm.c: correct a comment
27691         * tests/test-posixtm.c: Correct first-line comment.
27692         Spotted by Eric Blake.
27693
27694 2009-09-16  Jim Meyering  <meyering@redhat.com>
27695
27696         posixtm-tests: make T const-correct; add a test case
27697         * tests/test-posixtm.c (T): Declare const.
27698         Add a test for -(2^31+1).
27699         Remove useless can-succeed-only-in-2002 test.
27700
27701         posixtm-tests: adjust the sole failing test
27702         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27703         expected output matches what mktime now produces.  Cross-checked via
27704         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27705
27706         posixtm: move #ifdef'd tests into a new module
27707         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27708         * tests/test-posixtm.c: ... this new file.
27709         * modules/posixtm-tests: New module.
27710
27711 2009-09-19  Eric Blake  <ebb9@byu.net>
27712
27713         openat: simplify use of at-func.c
27714         * lib/at-func.c (includes): Include prerequisites here, to
27715         simplify requirements on client files.
27716         * lib/openat-priv.h: Add double-inclusion guard.
27717         * lib/faccessat.c (includes): Simplify.
27718         * lib/fchmodat.c (includes): Likewise.
27719         * lib/fchownat.c (includes): Likewise.
27720         * lib/mkdirat.c (includes): Likewise.
27721         * lib/mkfifoat.c (includes): Likewise.
27722         * lib/symlinkat.c (includes): Likewise.
27723
27724         openat: allow return of fd 0
27725         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27726         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27727         unistd-safer.
27728         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27729         <fcntl.h>; this module does not leak fds.
27730         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27731         must be allowed to return 0, leaving openat_safer to add the
27732         safety.
27733         (openat_permissive): Avoid writing to just-opened fd 2 if
27734         restoring the current directory fails.
27735         * lib/openat-die.c (openat_restore_fail): Add comment.
27736         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27737         (save_cwd): Guarantee safe fd, but without use of open_safer.
27738         * tests/test-openat.c: New test.
27739         * modules/openat-tests (Files, Makefile.am): Distribute and build
27740         new file.
27741
27742         relocatable-prog-wrapper: fix build
27743         * modules/relocatable-prog-wrapper (Files): Update name of
27744         canonicalize m4 file, broken on 2009-09-17.
27745         Reported by emad hajjar <aleppos@hotmail.com>.
27746
27747 2009-09-19  Bruno Haible  <bruno@clisp.org>
27748
27749         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27750         * lib/safe-alloc.c: Likewise.
27751         Reported by Ian Beckwith <ianb@erislabs.net>.
27752
27753 2009-09-18  Bruno Haible  <bruno@clisp.org>
27754
27755         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27756         Reported by <erobles@sensacd.com.mx>.
27757
27758 2009-09-17  Eric Blake  <ebb9@byu.net>
27759
27760         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
27761         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
27762         slashes when checking if last component is missing.
27763         * tests/test-canonicalize.c (main): Test this.
27764
27765         canonicalize, canonicalize-lgpl: honor // if distinct from /
27766         * modules/canonicalize (Files): Add double-slash-root.m4.
27767         * modules/canonicalize-lgpl (Files): Likewise.
27768         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27769         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
27770         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
27771         fallback definition.
27772         (canonicalize_filename_mode): Use it to protect //.
27773         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
27774         (__realpath): Likewise.
27775         * tests/test-canonicalize.c (main): Test this.
27776         * tests/test-canonicalize-lgpl.c (main): Likewise.
27777         * modules/canonicalize-tests (Depends-on): Add same-inode.
27778         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27779
27780         canonicalize-lgpl: fix glibc bug with trailing slash
27781         * m4/canonicalize-lgpl.m4: Move contents...
27782         * m4/canonicalize.m4: ...here.
27783         (gl_CANONICALIZE_LGPL): Factor realpath check...
27784         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
27785         glibc 2.3.5 bug, fixed 2005-04-27.
27786         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
27787         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
27788         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
27789         * modules/canonicalize-lgpl (Files): Manage file rename.
27790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27791         * modules/stdlib (Makefile.am): Substitute witness.
27792         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
27793         is needed.
27794         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
27795         replacement is required.
27796         * lib/canonicalize.c (canonicalize_file_name): Likewise.
27797         * doc/glibc-functions/canonicalize_file_name.texi
27798         (canonicalize_file_name): Document this.
27799         * doc/posix-functions/realpath.texi (realpath): Likewise.
27800
27801         canonicalize-lgpl: reject non-directory with trailing slash
27802         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
27803         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
27804         catches failures in glibc 2.3.5.
27805         * tests/test-canonicalize.c (main): Likewise.
27806
27807         canonicalize-lgpl: use native realpath if it works
27808         * lib/canonicalize-lgpl.c (realpath): Guard with
27809         FUNC_REALPATH_WORKS.
27810         * lib/stdlib.in.h (realpath): Make declaration optional based on
27811         HAVE_REALPATH.
27812         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
27813         native realpath works.
27814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27815         * modules/stdlib (Makefile.am): Substitute witness.
27816
27817         canonicalize, canonicalize-lgpl: use <stdlib.h>
27818         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
27819         (Include): Mention <stdlib.h>.
27820         (configure.ac): Mention functions we provide.
27821         * modules/canonicalize (configure.ac): Likewise.
27822         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
27823         realpath if canonicalize_file_name is missing.
27824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
27825         * modules/stdlib (Makefile.am): Substitute witnesses.
27826         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
27827         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
27828         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
27829         * NEWS: Document this.
27830         * doc/glibc-functions/canonicalize_file_name.texi
27831         (canonicalize_file_name): Likewise.
27832         * doc/posix-functions/realpath.texi (realpath): Likewise.
27833         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
27834
27835         test-canonicalize: consolidate into single C program
27836         * tests/test-canonicalize.sh: Delete; move setup into...
27837         * tests/test-canonicalize.c (main): ...the program, making it
27838         easier to run in debugger.  Add some tests.
27839         * modules/canonicalize-tests (Files): Remove unused file.
27840         (Depends-on): Add progname.
27841         (configure.ac, Makefile.am): Simplify.
27842
27843         test-canonicalize-lgpl: consolidate into single C program
27844         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
27845         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
27846         easier to run in debugger.  Add some tests.
27847         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
27848         (configure.ac, Makefile.am): Simplify.
27849
27850         canonicalize: avoid resolvepath
27851         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
27852         unnecessary checks.
27853         * lib/canonicalize.c (includes): Simplify.
27854         (canonicalize_file_name): Drop resolvepath implementation.
27855         * modules/canonicalize (Depends-on): Drop filenamecat.
27856
27857         canonicalize: don't lose errno
27858         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
27859         over calls to free.
27860
27861         canonicalize: simplify errno handling
27862         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
27863         assignment.
27864
27865         canonicalize, canonicalize-lgpl: update module dependencies
27866         * modules/canonicalize (Depends-on): Add extensions, lstat,
27867         pathmax, stdlib.
27868         (Files): Drop pathmax.h.
27869         (configure.ac): Adjust macro name.
27870         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
27871         lstat, stdlib, sys_stat.
27872         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
27873         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
27874         extensions.
27875         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
27876         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
27877         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
27878         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
27879         declaration, if available.
27880         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
27881         we can rely on the readlink module.
27882         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
27883         (includes): Use <unistd.h> unconditionally.
27884
27885 2009-09-17  Eric Blake  <ebb9@byu.net>
27886
27887         maint: make Include sections of modules consistent
27888         * modules/alloca: Use only header name; no need to list #include.
27889         * modules/alloca-opt: Likewise.
27890         * modules/arpa_inet: Likewise.
27891         * modules/canon-host: Likewise.
27892         * modules/configmake: Likewise.
27893         * modules/dirent: Likewise.
27894         * modules/eealloc: Likewise.
27895         * modules/environ: Likewise.
27896         * modules/fchdir: Likewise.
27897         * modules/fcntl: Likewise.
27898         * modules/fcntl-h: Likewise.
27899         * modules/gethrxtime: Likewise.
27900         * modules/gettime: Likewise.
27901         * modules/ignore-value: Likewise.
27902         * modules/inet_ntop: Likewise.
27903         * modules/inet_pton: Likewise.
27904         * modules/inttypes: Likewise.
27905         * modules/isnand-nolibm: Likewise.
27906         * modules/isnanf-nolibm: Likewise.
27907         * modules/mbchar: Likewise.
27908         * modules/mbfile: Likewise.
27909         * modules/mbiter: Likewise.
27910         * modules/mbuiter: Likewise.
27911         * modules/netdb: Likewise.
27912         * modules/netinet_in: Likewise.
27913         * modules/nproc: Likewise.
27914         * modules/pagealign_alloc: Likewise.
27915         * modules/poll: Likewise.
27916         * modules/printf-frexp: Likewise.
27917         * modules/pthread: Likewise.
27918         * modules/putenv: Likewise.
27919         * modules/random_r: Likewise.
27920         * modules/relocatable-prog: Likewise.
27921         * modules/search: Likewise.
27922         * modules/select: Likewise.
27923         * modules/selinux-h: Likewise.
27924         * modules/settime: Likewise.
27925         * modules/signal: Likewise.
27926         * modules/size_max: Likewise.
27927         * modules/socklen: Likewise.
27928         * modules/ssize_t: Likewise.
27929         * modules/stdarg: Likewise.
27930         * modules/stdbool: Likewise.
27931         * modules/stddef: Likewise.
27932         * modules/stdint: Likewise.
27933         * modules/stdio: Likewise.
27934         * modules/stdlib: Likewise.
27935         * modules/string: Likewise.
27936         * modules/strings: Likewise.
27937         * modules/sys_file: Likewise.
27938         * modules/sys_ioctl: Likewise.
27939         * modules/sys_select: Likewise.
27940         * modules/sys_socket: Likewise.
27941         * modules/sys_stat: Likewise.
27942         * modules/sys_time: Likewise.
27943         * modules/sys_times: Likewise.
27944         * modules/sys_utsname: Likewise.
27945         * modules/sys_wait: Likewise.
27946         * modules/sysexits: Likewise.
27947         * modules/time: Likewise.
27948         * modules/times: Likewise.
27949         * modules/tmpfile: Likewise.
27950         * modules/trim: Likewise.
27951         * modules/unistd: Likewise.
27952         * modules/wchar: Likewise.
27953         * modules/wctype: Likewise.
27954
27955 2009-09-17  Bruno Haible  <bruno@clisp.org>
27956
27957         Make getdate.y compile on QNX and NetBSD 5 / i386.
27958         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27959         TIME_T_FITS_IN_LONG_INT.
27960         * lib/getdate.y (long_time_t): New type.
27961         (relative_time): Change type of 'seconds' field to long_time_t.
27962         (get_date): Update types of local variables. Check against overflow
27963         during conversion from long_time_t to time_t.
27964         Reported by Matt Kraai <kraai@ftbfs.org>
27965         and Hasso Tepper <hasso@netbsd.org>.
27966
27967 2009-09-17  Bruno Haible  <bruno@clisp.org>
27968
27969         * modules/COPYING: Update copyright years.
27970         * modules/README: Likeiwse.
27971         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27972         Reported by Ian Beckwith <ianb@erislabs.net>.
27973
27974 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27975
27976         * users.txt: Update references for gnuit package.
27977
27978 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27979
27980         * m4/getdelim.m4: Fix typo in copyright line.
27981
27982 2009-09-17  Bruno Haible  <bruno@clisp.org>
27983
27984         * lib/atoll.c: Use the standard header with GPL copyright.
27985         * lib/argz.in.h: Likewise.
27986         * lib/glob.c: Likewise.
27987         * lib/glob-libc.h: Likewise.
27988         * lib/random_r.c: Likewise.
27989         * lib/siglist.h: Likewise.
27990         * lib/strsignal.c: Likewise.
27991         Reported by Ian Beckwith <ianb@erislabs.net>.
27992
27993 2009-09-17  Eric Blake  <ebb9@byu.net>
27994
27995         rmdir: ensure correct dependency order
27996         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
27997
27998 2009-09-17  Bruno Haible  <bruno@clisp.org>
27999
28000         Disable assertion that fails on NetBSD 5 / i386.
28001         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
28002         Reported by Sam Steingold <sds@gnu.org>
28003         and Hasso Tepper <hasso@netbsd.org>.
28004
28005 2009-09-16  Eric Blake  <ebb9@byu.net>
28006
28007         unlinkdir: port to mingw
28008         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
28009         on which no one can unlink a directory.
28010
28011         stdlib: sort witness names
28012         * modules/stdlib (Makefile.am): Sort replacements.
28013         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28014         * lib/stdlib.in.h: Likewise.
28015
28016         parse-duration-tests: avoid link failure
28017         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
28018         LIBINTL.
28019         Reported by Tom G. Christensen.
28020
28021         openat-tests: ensure unlinkat behaves like rmdir
28022         * tests/test-rmdir.c (main): Factor guts...
28023         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
28024         * modules/rmdir-tests (Files): Ship new file.
28025         * modules/openat-tests: New test.
28026         * tests/test-unlinkat.c: Likewise.
28027
28028         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
28029         * modules/rmdir-errno (Status, Notice): Now obsolete.
28030
28031         rmdir: work around cygwin 1.5.x and mingw bugs
28032         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
28033         * lib/rmdir.c (rmdir): Work around it.
28034         * modules/rmdir (Status, Notice): No longer obsolete.
28035         (Files): Add dos.m4.
28036         (Depends-on): Add unistd.
28037         (configure.ac): Set witnesses.
28038         (License): Relax to LGPLv2+.
28039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
28040         * modules/unistd (Makefile.am): Substitute witnesses.
28041         * lib/unistd.in.h (rmdir): Declare replacement.
28042         * doc/posix-functions/rmdir.texi (rmdir): Document this.
28043         * modules/rmdir-tests: New tests.
28044         * tests/test-rmdir.c: Likewise.
28045
28046 2009-09-15  Eric Blake  <ebb9@byu.net>
28047
28048         fchdir: improve use of replacement functions
28049         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28050         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28051         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28052         REPLACE_CLOSEDIR.
28053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28054         * modules/sys_stat (Makefile.am): Substitute correct witness.
28055         * modules/dirent (Makefile.am): Likewise.
28056         * modules/unistd (Makefile.am): Likewise.
28057         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
28058         * lib/unistd.in.h (dup): Likewise.
28059         * lib/sys_stat.in.h (fstat): Likewise.
28060
28061         maint: ignore gnulib-tool temp files
28062         * .gitignore: Ignore files created during gnulib-tool --test.
28063
28064 2009-09-13  Jim Meyering  <meyering@redhat.com>
28065
28066         posixtm: don't reject a time that specify "60" as the number of seconds
28067         * lib/posixtm.c (posixtime): The code to reject invalid dates
28068         would also reject a time specified with the .60 suffix.
28069         But POSIX allows that, in order to accommodate leap seconds.
28070         So don't reject it.
28071         (main): Adjust tests accordingly.
28072         * modules/posixtm (Depends-on): Add stpcpy.
28073
28074 2009-09-11  Jim Meyering  <meyering@redhat.com>
28075
28076         announce-gen: include [$release_type] in emitted Subject:
28077         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
28078         e.g., [stable] in the emitted Subject: line.
28079
28080 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28081
28082         Remove obsolete macros from several modules.
28083         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
28084         obsolete Autoconf macros with their modern counterparts.
28085         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
28086         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28087         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28088         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28089         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28090         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28091         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28092         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28093         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28094         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28095         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28096         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28097         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28098         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28099         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28100         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28101         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28102         * m4/time_r.m4 (gl_TIME_R): Likewise.
28103         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28104         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28105         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28106
28107         Fix copyright header in build-aux scripts.
28108         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28109         recommendation.
28110         * build-aux/ncftpput-ftp: Likewise.
28111         * build-aux/update-copyright: Likewise.
28112
28113 2009-09-09  Eric Blake  <ebb9@byu.net>
28114
28115         test-link: allow Linux choice of errno
28116         * tests/test-link.c (main): Relax test for alternate error.
28117
28118         strndup: fix improper m4 caching
28119         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28120         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28121         (gl_PREREQ_STRNDUP): Delete.
28122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28123         * modules/string (Makefile.am): Substitute it.
28124         * lib/string.in.h (strndup): Modernize prototype.
28125
28126         getcwd: port to mingw
28127         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28128         different from the POSIX assumptions made throughout the getcwd
28129         module; fortunately, the mingw getcwd does not need replacement.
28130         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28131         * modules/getcwd-tests: New test.
28132         * tests/test-getcwd.c: Likewise.
28133
28134         link: fix platform bugs
28135         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28136         * lib/link.c (link): Work around them.  Fix related mingw bug.
28137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28138         * modules/unistd (Makefile.am): Substitute it.
28139         * lib/unistd.in.h (link): Declare replacement.
28140         * doc/posix-functions/link.texi (link): Document this.
28141         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28142
28143         test-link: consolidate into single C program, test more cases
28144         * tests/test-link.sh: Delete.
28145         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28146         at least Cygwin and Solaris.
28147         * modules/link-tests (Files): Remove unused file.
28148         (Depends-on): Add errno, sys_stat.
28149         (Makefile.am): Simplify.
28150
28151 2009-09-08  Bruno Haible  <bruno@clisp.org>
28152
28153         Work around towlower, towupper bug on mingw.
28154         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28155         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28156         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28157         * doc/posix-functions/towupper.texi: Likewise.
28158         Reported by Eric Blake.
28159
28160 2009-09-08  Jim Meyering  <meyering@redhat.com>
28161
28162         build: don't try to run autoheader if we don't use it
28163         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28164         is not used in configure.ac.
28165
28166 2009-09-08  Eric Blake  <ebb9@byu.net>
28167
28168         euidaccess: fix compilation error
28169         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28170
28171         rawmemchr: relax license
28172         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28173         okay.
28174         Reported by Jim Meyering.
28175
28176         mkfifoat: new module
28177         * modules/mkfifoat: New file.
28178         * lib/mkfifoat.c: Likewise.
28179         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28180         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28181         * modules/sys_stat (Makefile.am): Use them.
28182         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28183         * MODULES.html.sh (File system functions): Mention module.
28184         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28185         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28186         * modules/mkfifoat-tests: New test.
28187         * tests/test-mkfifoat.c: Likewise.
28188
28189         strchrnul: relax license
28190         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28191         okay.
28192         Reported by Jim Meyering.
28193
28194 2009-09-08  Eric Blake  <ebb9@byu.net>
28195
28196         fstatat: fix compilation on Solaris
28197         * lib/fstatat.c (includes): Add fcntl.h.
28198         Reported by Pádraig Brady.
28199
28200 2009-09-07  Eric Blake  <ebb9@byu.net>
28201
28202         rename: modernize replacement
28203         * modules/rename (Depends-on): Add stdio.
28204         (configure.ac): Declare witness.
28205         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28206         stdio take care of replacement.
28207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28208         * modules/stdio (Makefile.am): Substitute them.
28209         * lib/stdio.in.h (rename): Declare replacement.
28210         * lib/rename.c (includes): Allow cross-compilation to non-windows
28211         machines.
28212         * doc/posix-functions/rename.texi (rename): Improve
28213         documentation.
28214
28215         stdio: sort witness names
28216         * modules/stdio (Makefile.am): Sort replacements.
28217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28218         * lib/stdio.in.h: Likewise.
28219
28220         getcwd: minor cleanups
28221         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28222         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28223
28224         openat: provide more convenience names
28225         * modules/faccessat (configure.ac): Add C witness.
28226         * lib/unistd.in.h (readlinkat): Fix typo.
28227         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28228         convenience wrappers.
28229         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28230         wrappers in syntax checks.
28231
28232 2009-09-06  Eric Blake  <ebb9@byu.net>
28233
28234         doc: fix comments in recent patches
28235         * lib/faccessat.c: Mention correct function.
28236         * lib/fchmodat.c: Likewise.
28237         * lib/fchownat.c: Likewise.
28238         * lib/symlinkat.c: Likewise.
28239         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28240         constants.
28241
28242         faccessat, symlinkat: continue cleanup of previous patch
28243         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28244         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28245         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28247         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28248         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28249         set.
28250
28251 2009-09-06  Bruno Haible  <bruno@clisp.org>
28252
28253         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28254         (fstatat): Declare if GNULIB_FSTATAT is set.
28255         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28256         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28257         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28258         * modules/fcntl-h (Files): Remove m4/openat.m4.
28259         * modules/sys_stat (Files): Remove m4/openat.m4.
28260         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28261         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28262         * modules/unistd (Files): Remove m4/openat.m4.
28263         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28264         GNULIB_OPENAT.
28265         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28266         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28267         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28268         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28269         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28270         gl_OPENAT_DEFAULTS.
28271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28272         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28273         Don't require gl_OPENAT_DEFAULTS.
28274         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28275         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28276         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28277         (gl_OPENAT_DEFAULTS): Remove macro.
28278
28279 2009-09-06  Bruno Haible  <bruno@clisp.org>
28280
28281         * modules/openat (configure.ac): Remove unneeded witness.
28282
28283 2009-09-06  Bruno Haible  <bruno@clisp.org>
28284
28285         Set errno to ENOSYS when a function is entirely unsupported.
28286         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28287         EOPNOTSUPP.
28288         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28289         * modules/chown (Depends-on): Remove errno.
28290
28291 2009-09-06  Bruno Haible  <bruno@clisp.org>
28292
28293         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28294
28295 2009-09-06  Bruno Haible  <bruno@clisp.org>
28296
28297         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28298
28299 2009-09-06  Ben Pfaff  <blp@gnu.org>
28300             Bruno Haible  <bruno@clisp.org>
28301
28302         Work around a glibc bug in strtok_r.
28303         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28304         Undefine if UNDEFINE_STRTOK_R is set.
28305         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28306         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28307         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28308         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28309         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28310         UNDEFINE_STRTOK_R.
28311         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28312
28313 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28314
28315         exclude: minor fix
28316         * lib/exclude.c: Include wctype.h
28317
28318 2009-09-06  Akim Demaille  <demaille@gostai.com>
28319
28320         bootstrap: improve error message
28321         * build-aux/bootstrap (find_tool): Upon failure, report the list
28322         of candidates.
28323         Honor the initial value of the envvar.
28324
28325 2009-09-05  Eric Blake  <ebb9@byu.net>
28326
28327         symlinkat: new module
28328         * modules/symlinkat: New file.
28329         * lib/symlinkat.c: Likewise.
28330         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28332         * modules/unistd (Makefile.am): Use them.
28333         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28334         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28335         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28336         * MODULES.html.sh (File system functions): Mention module.
28337         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28338         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28339         * modules/symlinkat-tests: New test.
28340         * tests/test-symlinkat.c: Likewise.
28341
28342         test-openat-safer: add more checks
28343         * tests/test-openat-safer.c (main): Check more code paths.
28344
28345 2009-09-05  Jim Meyering  <meyering@redhat.com>
28346
28347         syntax-check: detect unnecessary inclusion of openat.h
28348         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28349
28350 2009-09-05  Bruno Haible  <bruno@clisp.org>
28351
28352         Support towlower, towupper.
28353         * doc/posix-functions/towlower.texi: Mention module wctype.
28354         * doc/posix-functions/towupper.texi: Likewise.
28355         * lib/wctype.in.h (towlower, towupper): New functions.
28356         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28357         (ASSERT): New macro.
28358         (e): New variable.
28359         (main): Test also towlower, towupper. Test WEOF argument.
28360         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28361
28362 2009-09-05  Bruno Haible  <bruno@clisp.org>
28363
28364         Fix conversion behaviour when the input is invalid.
28365         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28366         mark occurring in first pass of indirect conversion.
28367         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28368         input.
28369         Found by clang's static analyzer.
28370
28371 2009-09-05  Bruno Haible  <bruno@clisp.org>
28372
28373         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28374         where direct conversion is possible.
28375
28376 2009-09-04  Eric Blake  <ebb9@byu.net>
28377
28378         openat: fail with ENOENT on empty name
28379         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28380         buffer.
28381
28382         link-follow: fix logic bug in prior patch
28383         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28384         reversed sense of yes and no in prior patch.  Avoid confusing
28385         compilation failure with desired semantics.
28386
28387         link-follow: accomodate mingw and cross-compilation
28388         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28389         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28390         cross-compilation results to -1, to make linkat easier to
28391         implement when cross-compiling.  Trivially support mingw.
28392         * modules/link-follow (configure.ac): Call new name.
28393         * NEWS: Mention this.
28394
28395 2009-09-03  Eric Blake  <ebb9@byu.net>
28396
28397         faccessat: compile replacement
28398         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28399         needed.
28400
28401         fts: fix compilation error
28402         * lib/fts.c (includes): Re-add "openat.h", for
28403         openat_needs_fchdir.
28404
28405         faccessat: new module
28406         * modules/faccessat: New file.
28407         * lib/faccessat.c: Likewise.
28408         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28410         * modules/unistd (Makefile.am): Use it.
28411         * lib/unistd.in.h (faccessat): Declare it.
28412         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28413         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28414         * MODULES.html.sh (File system functions): Mention it.
28415         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28416         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28417
28418         euidaccess: prefer POSIX over non-standard implementation
28419         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28420         * lib/euidaccess.c (euidaccess): Use it if available.
28421
28422         openat: make template easier to use
28423         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28424         AT_FUNC_F2 to be undefined.
28425         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28426         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28427         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28428         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28429         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28430         Likewise.
28431         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28432         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28433         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28434         Likewise.
28435
28436         openat: declare in POSIX headers
28437         * NEWS: Mention this.
28438         * modules/openat (configure.ac): Declare witnesses.
28439         (Depends-on): Add fcntl-h, sys_stat, unistd.
28440         (Include): Mention correct headers.
28441         * modules/fcntl-h (Depends-on): Add link-warning.
28442         (Files): Add openat.m4.
28443         (Makefile.am): Substitute witnesses.
28444         * modules/sys_stat (Files, Makefile.am): Likewise.
28445         * modules/unistd (Files, Makefile.am): Likewise.
28446         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28447         (gl_OPENAT_DEFAULTS): New macro.
28448         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28450         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28451         (SYS_STAT_H): Remove unused variable.
28452         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28453         * lib/fcntl--.h (includes): Remove unneeded header.
28454         * lib/openat-safer.c (includes): Likewise.
28455         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28456         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28457         appropriate headers.
28458         (__OPENAT_PREFIX): Delete.
28459         * lib/fcntl.in.h (openat): Provide declaration.
28460         (AT_FDCWD): Fix Solaris bug.
28461         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28462         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28463         * lib/fchmodat.c (includes):  Adjust to find declaration.
28464         * lib/fchownat.c (includes): Likewise.
28465         * lib/mkdirat.c (includes): Likewise.
28466         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28467         still visible.
28468
28469 2009-09-02  Eric Blake  <ebb9@byu.net>
28470
28471         errno: use consistently
28472         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28473         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28474         * lib/canonicalize.c (ELOOP): Likewise.
28475         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28476         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28477         * lib/lchown.c (EOPNOTSUPP): Likewise.
28478         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28479         * lib/savewd.c (ESTALE): Likewise.
28480         * lib/settime.c (ENOSYS): Likewise.
28481         * lib/utimens.c (ENOSYS): Likewise.
28482         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28483         * lib/chdir-safer.c (ELOOP): Likewise.
28484         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28485         * modules/c-stack (Depends-on): Add errno.
28486         * modules/canonicalize (Depends-on): Likewise.
28487         * modules/chdir-safer (Depends-on): Likewise.
28488         * modules/fdopendir (Depends-on): Likewise.
28489         * modules/inet_ntop (Depends-on): Likewise.
28490         * modules/inet_pton (Depends-on): Likewise.
28491         * modules/lchown (Depends-on): Likewise.
28492         * modules/openat (Depends-on): Likewise.
28493         * modules/savewd (Depends-on): Likewise.
28494         * modules/settime (Depends-on): Likewise.
28495         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28496
28497         fts: avoid leaking fds
28498         * modules/fts (Depends-on): Add cloexec.
28499         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28500         flag.
28501
28502         fts: make directory fds more robust
28503         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28504         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28505
28506         backupfile, chdir-long, fts, savedir: make safer
28507         * lib/backupfile.c (includes): Use "dirent--.h", since
28508         numbered_backup can write to stderr during readdir.
28509         * lib/savedir.c (includes): Likewise.
28510         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28511         emulation can write to stderr on failure.
28512         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28513         * lib/getcwd.c: Document why opendir_safer is unused.
28514         * lib/glob.c: Likewise.
28515         * lib/scandir.c: Likewise.
28516         * lib/openat-proc.c: Likewise, for open_safer.
28517         * modules/backupfile (Depends-on): Add dirent-safer.
28518         * modules/savedir (Depends-on): Likewise.
28519         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28520         * modules/chdir-long (Depends-on): Add openat-safer.
28521
28522         openat-safer: new module
28523         * modules/openat-safer: New file.
28524         * lib/openat-safer.c: Likewise.
28525         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28526         * lib/fcntl-safer.h (openat_safer): Declare.
28527         * lib/fcntl--.h (openat): Override.
28528         * MODULES.html.sh (File descriptor based I/O): Mention it.
28529         * lib/openat.h: Add double-inclusion guards.
28530         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28531         "fcntl--.h", so we can implement openat.
28532         * modules/openat-safer-tests: New test.
28533         * tests/test-openat-safer.c: New file.
28534
28535         dirent-safer: new module
28536         * modules/dirent-safer: New file.
28537         * lib/dirent--.h: Likewise.
28538         * lib/dirent-safer.h: Likewise.
28539         * lib/opendir-safer.c: Likewise.
28540         * m4/dirent-safer.m4: Likewise.
28541         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28542         * modules/dirent-safer-tests: New test.
28543         * tests/test-dirent-safer.c: New file.
28544         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28545
28546         fdopendir: optimize on mingw
28547         * lib/unistd.in.h (_gl_directory_name): New prototype.
28548         * lib/fchdir.c (_gl_directory_name): Implement it.
28549         (fchdir): Use it to simplify implementation.
28550         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28551         fchdir, when available, to avoid calling [f]chdir().
28552
28553         fdopendir: split into its own module
28554         * lib/openat.c (fdopendir): Move...
28555         * lib/fdopendir.c: ...into new file.
28556         * modules/fdopendir: New module.
28557         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28558         * modules/openat (Depends-on): Add fdopendir.
28559         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28560         fdopendir here.
28561         * modules/savedir (Depends-on): Only need fdopendir, not full
28562         openat.
28563         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28564         * lib/openat.h (fdopendir): Drop prototype.
28565         * lib/dirent.in.h (fdopendir): Provide prototype.
28566         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28567         * modules/dirent (Makefile.am): Substitute them.
28568         * MODULES.html.sh (File system functions): Mention it.
28569         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28570         * modules/fdopendir-tests: New file.
28571         * tests/test-fdopendir.c: Likewise.
28572
28573         fchdir: use more consistent macro convention
28574         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28575         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28576         REPLACE_FCHDIR, rather than relying on config.h macros.
28577         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28578         inside a single make-time REPLACE_FCHDIR block, rather than using
28579         the config.h FCHDIR_REPLACEMENT.
28580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28581         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28582         Manage fstat replacement.
28583         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28584         REPLACE_FCHDIR.
28585         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28586         (Makefile.am): Substitute REPLACE_FCHDIR.
28587         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28588         FCHDIR_REPLACEMENT.
28589         * lib/dup-safer.c (dup_safer): Likewise.
28590         * lib/dup2.c (rpl_dup2): Likewise.
28591         * lib/dup3.c (rpl_dup3): Likewise.
28592         * lib/open.c (rpl_open): Likewise.
28593
28594         fchdir: simplify error handling, and support dup3
28595         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28596         stdbool, malloc-posix, realloc-posix.
28597         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28598         (ensure_dirs_slot): Return false on allocation failure.
28599         (rpl_dup2): Delete.
28600         (_gl_register_dup): New function.
28601         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28602         (_gl_register_fd): Close fd on allocation failure.
28603         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28604         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28605         prototype.
28606         (rpl_dup2_fchdir): Delete prototype.
28607         * lib/open.c (open): Update caller.
28608         * lib/dup2.c (dup2): Track fchdir metadata.
28609         * lib/dup3.c (dup3): Likewise.
28610         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28612
28613 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28614
28615         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28616         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28617         don't pass arguments to AC_OUTPUT.
28618
28619 2009-09-02  Bruno Haible  <bruno@clisp.org>
28620
28621         * modules/mkdtemp (License): Relicense under LGPLv2+.
28622         Reported by Paolo Bonzini.
28623
28624 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28625
28626         Replace uses of obsolete autoconf macros in Jim's modules.
28627         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28628         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28629         can evoke a warning from autoconf when run with -Wobsolete
28630         enabled.  They were declared obsolete for good reasons (see
28631         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28632         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28633         should not continue using the deprecated macros.
28634         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28635         obsolete Autoconf macros with modern counterparts.
28636         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28637         * m4/dos.m4 (gl_AC_DOS): Likewise.
28638         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28639         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28640         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28641         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28642         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28643         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28644         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28645         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28646         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28647         Likewise.
28648         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28649         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28650         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28651         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28652         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28653         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28654
28655 2009-09-01  Eric Blake  <ebb9@byu.net>
28656
28657         fchdir: fix off-by-one bug in previous patch
28658         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28659         (_gl_unregister_fd): Delete useless if.
28660
28661 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28662
28663         maint.mk: sort the list of syntax-check rules
28664         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28665         easier to get a sense of progress when the rules are run sequentially
28666         and take a long time.
28667
28668 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28669
28670         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28671         * modules/netinet_in: Likewise.
28672         * modules/sys_file: Likewise.
28673         * modules/sys_ioctl: Likewise.
28674         * modules/sys_select: Likewise.
28675         * modules/sys_socket: Likewise.
28676         * modules/sys_stat: Likewise.
28677         * modules/sys_time: Likewise.
28678         * modules/sys_times: Likewise.
28679         * modules/sys_utsname: Likewise.
28680         * modules/sys_wait: Likewise.
28681
28682 2009-09-01  Jim Meyering  <meyering@redhat.com>
28683
28684         fts: help ensure that return values are not ignored
28685         * lib/fts_.h (__GNUC_PREREQ): Define.
28686         (__attribute_warn_unused_result__): Define.
28687         (fts_children, fts_close, fts_open, fts_read): Declare with
28688         __attribute_warn_unused_result__.
28689
28690         fts: fts_close now fails also when closing a dir file descriptor fails
28691         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28692         and propagate to caller, along with errno.
28693
28694         announce-gen: correct formatting in --help output
28695         * build-aux/announce-gen (usage): Move the one-line description in
28696         --help output "up", to where it belongs, just after Usage:.
28697
28698 2009-08-31  Eric Blake  <ebb9@byu.net>
28699
28700         fchdir: port to mingw
28701         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28702         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28703         opened, then use a substitute.
28704         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28705         replacement.
28706         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28707         (_gl_register_fd): No need to check stat if open already filters
28708         all directories.
28709         (fchdir): Fix error condition to match POSIX.
28710         * modules/fchdir (Depends-on): Add sys_stat.
28711         * doc/posix-functions/open.texi (open): Document the limitation.
28712         * modules/fchdir-tests: New file.
28713         * tests/test-fchdir.c: Likewise.
28714
28715         canonicalize: allow cross-testing from cygwin to mingw
28716         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28717         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28718         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28719         Likewise.
28720         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28721         target does not support symlinks.
28722         * tests/test-canonicalize-lgpl.sh: Likewise.
28723
28724         chown: avoid compilation warning on mingw
28725         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28726         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28727         mingw.
28728         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28729         * modules/chown (Depends-on): Add errno.
28730
28731 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28732
28733         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28734         command.
28735
28736 2009-08-31  Jim Meyering  <meyering@redhat.com>
28737
28738         canonicalize: remove useless initialization
28739         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28740         initialization of local, "end".
28741
28742 2009-08-30  Bruno Haible  <bruno@clisp.org>
28743
28744         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28745         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28746         ENOSYS.
28747
28748 2009-08-30  Bruno Haible  <bruno@clisp.org>
28749
28750         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28751         /usr/xpg4/bin/tr when it exists.
28752         * tests/test-pipe-filter-gi1.sh: Likewise.
28753
28754 2009-08-30  Bruno Haible  <bruno@clisp.org>
28755
28756         Work around deficient /usr/bin/id program on Solaris.
28757         * tests/test-file-has-acl.sh (ID): New variable.
28758         * tests/test-set-mode-acl.sh (ID): Likewise.
28759         * tests/test-copy-acl.sh (ID): Likewise.
28760         * tests/test-copy-file.sh (ID): Likewise.
28761
28762 2009-08-30  Bruno Haible  <bruno@clisp.org>
28763
28764         New module 'xstriconveh'.
28765         * lib/xstriconveh.h: New file.
28766         * lib/xstriconveh.c: New file.
28767         * modules/xstriconveh: New file.
28768
28769 2009-08-30  Bruno Haible  <bruno@clisp.org>
28770
28771         Make it easier to use mem_cd_iconveh.
28772         * lib/striconveh.h (iconveh_t): New type.
28773         (iconveh_open, iconveh_close): New declarations.
28774         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28775         with a single 'const iconveh_t *' argument.
28776         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
28777         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28778         with a single 'const iconveh_t *' argument.
28779         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
28780         * tests/test-striconveh.c (main): Update.
28781         * NEWS: Mention the change.
28782
28783 2009-08-30  Bruno Haible  <bruno@clisp.org>
28784
28785         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
28786         problem.
28787
28788 2009-08-30  Bruno Haible  <bruno@clisp.org>
28789
28790         Work around iconv_open problem on Solaris.
28791         * lib/iconv_open-solaris.gperf: New file.
28792         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
28793         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
28794         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
28795         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
28796         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
28797         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
28798
28799 2009-08-29  Jim Meyering  <meyering@redhat.com>
28800
28801         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
28802         * top/maint.mk (cvs-check): Remove target; it was just an alias
28803         to the better-named vc-diff-check.
28804         (maintainer-distcheck): Remove rule.  It was used only from
28805         the (alpha/beta/major) target, and all of its commands but one
28806         were coreutils-specific.
28807         (vc-dist): Remove rule.
28808         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
28809         Run vc-diff-check, not vc-dist.
28810         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
28811
28812 2009-08-27  Bruno Haible  <bruno@clisp.org>
28813
28814         * tests/test-bitrotate.c (main): Remove test that uses a shift count
28815         of 0.
28816
28817 2009-08-27  Bruno Haible  <bruno@clisp.org>
28818
28819         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
28820         compilers.
28821         * doc/func.texi: Document the SunPRO C bug.
28822
28823 2009-08-27  Bruno Haible  <bruno@clisp.org>
28824
28825         Fix link error on Solaris.
28826         * tests/test-parse-duration.c (xstrdup): Remove function.
28827
28828 2009-08-26  Pádraig Brady  <P@draigbrady.com>
28829
28830         ignore-value: handle pointer types, too
28831         * lib/ignore-value.h (__attribute__): Remove definition.
28832         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
28833         of a more concise and more-often effective "(void) i" statement.
28834         (ignore_ptr): New function to suppress warnings from functions that
28835         return pointers, and to make it explicit that one function doesn't
28836         handle all cases.
28837
28838 2009-08-25  Bruno Haible  <bruno@clisp.org>
28839
28840         dup2: work around a Linux bug.
28841         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
28842         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
28843         * doc/posix-functions/dup2.texi: Mention the Linux bug.
28844         Reported by Simon Josefsson.
28845
28846 2009-08-25  Jim Meyering  <meyering@redhat.com>
28847
28848         libguestfs uses gnulib
28849         * users.txt: Add libguestfs.
28850
28851 2009-08-24  Eric Blake  <ebb9@byu.net>
28852
28853         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
28854         * lib/pipe2.c (includes): Add binary-io.h.
28855         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
28856
28857 2009-08-24  Bruno Haible  <bruno@clisp.org>
28858
28859         Tolerate declared but missing accept4 syscall.
28860         * lib/accept4.c (accept4): Invoke original accept4 function first, if
28861         available.
28862         * lib/sys_socket.in.h (accept4): If the function is already present,
28863         override it.
28864         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
28865         * modules/accept4 (Makefile.am): Compile accept4.c always.
28866         Reported by Paolo Bonzini and Eric Blake.
28867
28868 2009-08-23  Bruno Haible  <bruno@clisp.org>
28869
28870         New module 'accept4'.
28871         * lib/sys_socket.in.h (accept4): New declaration.
28872         * lib/accept4.c: New file.
28873         * m4/accept4.m4: New file.
28874         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28875         GNULIB_ACCEPT4, HAVE_ACCEPT4.
28876         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
28877         HAVE_ACCEPT4.
28878         * modules/accept4: New file.
28879         * doc/glibc-functions/accept4.texi: Mention the new module.
28880
28881 2009-08-24  Jim Meyering  <meyering@redhat.com>
28882
28883         progname: also set global program_invocation_name, when possible
28884         Before this change, a libtool-enabled program that calls glibc's
28885         error function would report the program name as
28886         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
28887         * modules/progname (configure.ac): Check for a declaration of
28888         program_invocation_name.
28889         * lib/progname.c:  Include <errno.h>.
28890         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
28891         Set program_invocation_name.
28892
28893 2009-08-23  Bruno Haible  <bruno@clisp.org>
28894
28895         * lib/dup3.c: Include <string.h>.
28896
28897 2009-08-23  Bruno Haible  <bruno@clisp.org>
28898
28899         * lib/dup3.c (dup3): Test only once whether the system actually exists.
28900         * lib/pipe2.c (pipe2): Likewise.
28901         Suggested by Eric Blake.
28902
28903 2009-08-23  Bruno Haible  <bruno@clisp.org>
28904
28905         Tolerate declared but missing dup3 syscall.
28906         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
28907         * lib/unistd.in.h (dup3): If the function is already present,
28908         override it.
28909         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
28910         * modules/dup3 (Makefile.am): Compile dup3.c always.
28911         Reported by Paolo Bonzini.
28912
28913 2009-08-23  Bruno Haible  <bruno@clisp.org>
28914
28915         Tolerate declared but missing pipe2 syscall.
28916         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
28917         available.
28918         * lib/unistd.in.h (pipe2): If the function is already present,
28919         override it.
28920         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
28921         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
28922         Reported by Paolo Bonzini.
28923
28924 2009-08-23  Bruno Haible  <bruno@clisp.org>
28925
28926         * lib/pipe2.c (pipe2): Move #ifs inside function.
28927
28928 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28929
28930         quotearg: document limitations of quote_these_too
28931         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
28932         those limitations are created.
28933         * lib/quotearg.h (set_char_quoting): Document that digits and
28934         letters that are special after backslash are not permitted.
28935         (quotearg_char): Cross-reference set_char_quoting documentation.
28936
28937 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
28938
28939         quotearg: implement custom_quoting_style
28940         * lib/quotearg.c: (struct quoting_options): Add left_quote and
28941         right_quote fields.
28942         (set_custom_quoting): New public function.
28943         (quotearg_buffer_restyled): Add left_quote and right_quote
28944         arguments, handle them very much like locale quoting, and update
28945         all uses.
28946         (quotearg_n_custom): New public function.
28947         (quotearg_n_custom_mem): New public function.
28948         (quotearg_custom): New public function.
28949         (quotearg_custom_mem): New public function.
28950         * lib/quotearg.h: Prototype and document new public functions.
28951         (enum quoting_style): For escape_quoting_style and
28952         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
28953         ignored even though they're otherwise like c_quoting_style.
28954         Add custom_quoting_style member and document with comparison to
28955         clocale_quoting_style.
28956         * tests/test-quotearg.c (custom_quotes): New array.
28957         (custom_results): New array.
28958         (main): Extend to test custom quoting.
28959
28960 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28961
28962         quotearg: fix right quote escaping when it's in quote_these_too
28963         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28964         quote, be sure to prepend only one backslash.
28965         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28966         (main): Test it.
28967
28968 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28969
28970         quotearg-tests: test escaping of embedded locale quotes
28971         * tests/test-quotearg.c (struct result_strings): Add member for
28972         new input.
28973         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28974         (inputs): Add new input.
28975         (results_g): Add expected results.
28976         (flag_results): Likewise.
28977         (locale_results): Likewise.
28978         (compare_strings): Check those.
28979
28980 2009-08-23  Bruno Haible  <bruno@clisp.org>
28981
28982         Tests for module 'dup3'.
28983         * modules/dup3-tests: New file.
28984         * tests/test-dup3.c: New file.
28985
28986         New module 'dup3'.
28987         * lib/unistd.in.h (dup3): New declaration.
28988         * lib/dup3.c: New file.
28989         * m4/dup3.m4: New file.
28990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28991         HAVE_DUP3.
28992         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28993         * modules/dup3: New file.
28994         * doc/glibc-functions/dup3.texi: Mention the new module.
28995
28996 2009-08-23  Bruno Haible  <bruno@clisp.org>
28997
28998         Tweak the dup2 test.
28999         * tests/test-dup2.c (main): Create the test file empty. Verify that an
29000         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
29001         the test file is still empty. Fix argument order of lseek.
29002
29003 2009-08-23  Bruno Haible  <bruno@clisp.org>
29004
29005         Avoid test link errors when the modules getopt-gnu, gettext are used.
29006         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
29007         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29008
29009 2009-08-23  Bruno Haible  <bruno@clisp.org>
29010
29011         Fix getdtablesize() on mingw.
29012         * lib/getdtablesize.c (getdtablesize): Implement differently.
29013         * lib/unistd.in.h (getdtablesize): Improve comment.
29014
29015 2009-08-23  Bruno Haible  <bruno@clisp.org>
29016
29017         New module 'mkostemp'.
29018         Based on Ulrich Drepper's 2007-08-10 change in glibc.
29019         * lib/stdlib.in.h (mksotemp): New declaration.
29020         * lib/mkostemp.c: New file, from glibc with modifications.
29021         * lib/tempname.h (GT_FILE): Remove outdated comment.
29022         (gen_tempname): Add flags argument.
29023         * lib/tempname.c (__GT_BIGFILE): Remove macro.
29024         (__GT_FILE): Map to 1.
29025         (small_open, large_open): Remove macros.
29026         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
29027         * lib/mkstemp.c (mkstemp): Update.
29028         * lib/mkdtemp.c (mkdtemp): Likewise.
29029         * m4/mkostemp.m4: New file.
29030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
29031         HAVE_MKOSTEMP.
29032         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
29033         HAVE_MKOSTEMP.
29034         * modules/mkostemp: New file, based on modules/mkstemp.
29035         * doc/glibc-functions/mkostemp.texi: Mention the new module.
29036         * NEWS: Mention the change.
29037
29038 2009-08-23  Bruno Haible  <bruno@clisp.org>
29039
29040         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
29041         Reported by Eric Blake.
29042
29043 2009-08-23  Bruno Haible  <bruno@clisp.org>
29044
29045         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
29046         Reported by Eric Blake.
29047
29048 2009-08-23  Bruno Haible  <bruno@clisp.org>
29049
29050         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29051         * modules/pipe2 (Depends-on): Likewise.
29052
29053 2009-08-23  Eric Blake  <ebb9@byu.net>
29054
29055         fcntl-h: add O_TTY_INIT support
29056         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29057         * tests/test-fcntl-h.c (o): Test it.
29058         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29059
29060         fcntl-h: rename from fcntl, in preparation for fcntl(2)
29061         * modules/fcntl: Move <fcntl.h> header replacement...
29062         * modules/fcntl-h: ...to new name, so as not to collide with
29063         like-named function.
29064         * tests/test-fcntl.c: Rename...
29065         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
29066         * modules/fcntl-tests: Rename...
29067         * modules/fcntl-h-tests: ...to this.  Update test file name.
29068         * modules/chdir-long (Depends-on): Update clients.
29069         * modules/chdir-safer (Depends-on): Likewise.
29070         * modules/fcntl-safer (Depends-on): Likewise.
29071         * modules/fts (Depends-on): Likewise.
29072         * modules/mkancesdirs (Depends-on): Likewise.
29073         * modules/mkdir-p (Depends-on): Likewise.
29074         * modules/open (Depends-on): Likewise.
29075         * modules/savewd (Depends-on): Likewise.
29076         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
29077         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29078
29079 2009-08-22  Bruno Haible  <bruno@clisp.org>
29080
29081         * modules/binary-io (License): Relicense under LGPL.
29082         * modules/pipe2 (License): Likewise.
29083
29084 2009-08-22  Bruno Haible  <bruno@clisp.org>
29085
29086         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29087         return value.
29088         * lib/pipe-filter-gi.c (filter_init): Likewise.
29089         Reported by Eric Blake.
29090
29091 2009-08-22  Bruno Haible  <bruno@clisp.org>
29092
29093         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29094         * modules/pipe (Depends-on): Add pipe2.
29095
29096 2009-08-22  Bruno Haible  <bruno@clisp.org>
29097
29098         Tests for module 'pipe2'.
29099         * modules/pipe2-tests: New file.
29100         * tests/test-pipe2.c: New file.
29101
29102         New module 'pipe2'.
29103         * lib/unistd.in.h (pipe2): New declaration.
29104         * lib/pipe2.c: New file.
29105         * m4/pipe2.m4: New file.
29106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29107         HAVE_PIPE2.
29108         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29109         * modules/pipe2: New file.
29110         * doc/glibc-functions/pipe2.texi: Mention the new module.
29111
29112 2009-08-22  Bruno Haible  <bruno@clisp.org>
29113
29114         Reference some new glibc functions.
29115         * doc/glibc-functions/accept4.texi: New file.
29116         * doc/glibc-functions/dup3.texi: New file.
29117         * doc/glibc-functions/mkostemp.texi: New file.
29118         * doc/glibc-functions/pipe2.texi: New file.
29119         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29120         (Glibc sys/socket.h): Refer to accept4.
29121         (Glibc unistd.h): Refer to dup3, pipe2.
29122         Reported by Eric Blake.
29123
29124 2009-08-22  Jim Meyering  <meyering@redhat.com>
29125             Bruno Haible  <bruno@clisp.org>
29126
29127         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29128         This makes it so packages using automake-1.11's silent-rules option
29129         can print e.g., a single "GEN    configmake.h" line, rather than
29130         the 30+ statements that perform the job.  If you want to see the
29131         actual commands, you can still run "make V=1".
29132         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29133         so that make output is abbreviated when those variables are defined
29134         appropriately.
29135         * modules/argz: Likewise.
29136         * modules/arpa_inet: Likewise.
29137         * modules/byteswap: Likewise.
29138         * modules/configmake: Likewise.
29139         * modules/dirent: Likewise.
29140         * modules/errno: Likewise.
29141         * modules/fcntl: Likewise.
29142         * modules/float: Likewise.
29143         * modules/fnmatch: Likewise.
29144         * modules/getopt-posix: Likewise.
29145         * modules/glob: Likewise.
29146         * modules/iconv_open: Likewise.
29147         * modules/inttypes: Likewise.
29148         * modules/localcharset: Likewise.
29149         * modules/locale: Likewise.
29150         * modules/math: Likewise.
29151         * modules/netdb: Likewise.
29152         * modules/netinet_in: Likewise.
29153         * modules/poll: Likewise.
29154         * modules/posix_spawnp-tests: Likewise.
29155         * modules/sched: Likewise.
29156         * modules/search: Likewise.
29157         * modules/selinux-h: Likewise.
29158         * modules/signal: Likewise.
29159         * modules/spawn: Likewise.
29160         * modules/stdarg: Likewise.
29161         * modules/stdbool: Likewise.
29162         * modules/stddef: Likewise.
29163         * modules/stdint: Likewise.
29164         * modules/stdio: Likewise.
29165         * modules/stdlib: Likewise.
29166         * modules/string: Likewise.
29167         * modules/strings: Likewise.
29168         * modules/sys_file: Likewise.
29169         * modules/sys_ioctl: Likewise.
29170         * modules/sys_select: Likewise.
29171         * modules/sys_socket: Likewise.
29172         * modules/sys_stat: Likewise.
29173         * modules/sys_time: Likewise.
29174         * modules/sys_times: Likewise.
29175         * modules/sys_utsname: Likewise.
29176         * modules/sys_wait: Likewise.
29177         * modules/sysexits: Likewise.
29178         * modules/time: Likewise.
29179         * modules/unistd: Likewise.
29180         * modules/wchar: Likewise.
29181         * modules/wctype: Likewise.
29182
29183 2009-08-22  Jim Meyering  <meyering@redhat.com>
29184
29185         announce-gen: detect write failure
29186         * build-aux/announce-gen: Add Coda at end.
29187         Remove equivalent-but-more-verbose block at top.
29188
29189 2009-08-19  Akim Demaille  <demaille@gostai.com>
29190
29191         bootstrap: --help to stdout.
29192         * bootstrap (usage): Don't send --help to stderr.
29193         Use a here doc instead of a long string.
29194
29195 2009-08-21  Eric Blake  <ebb9@byu.net>
29196
29197         test-popen-safer: split from test-popen
29198         * tests/test-popen.c (main): Move...
29199         * tests/test-popen.h: ...into new file.
29200         * tests/test-popen-safer2.c: New file.
29201         * modules/popen-tests (Files): Add test-popen.h.
29202         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29203         Suggested by Bruno Haible.
29204
29205         test-fcntl-safer: split from test-open
29206         * tests/test-open.c (main): Move...
29207         * tests/test-open.h: ...into new file.
29208         * tests/test-fcntl-safer.c: New file.
29209         * modules/open-tests (Files): Add test-open.h.
29210         * modules/fcntl-safer-tests: New file.
29211         Suggested by Bruno Haible.
29212
29213         test-fopen-safer: split from test-fopen
29214         * tests/test-fopen.c (main): Move...
29215         * tests/test-fopen.h: ...into new file.
29216         * tests/test-fopen-safer.c: New file.
29217         * modules/fopen-tests (Files): Add test-fopen.h.
29218         * modules/fopen-safer-tests: New file.
29219         Suggested by Bruno Haible.
29220
29221 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29222
29223         popen-safer: test O_CLOEXEC at run-time.
29224         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29225
29226 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29227
29228         fcntl: move more flags to the header
29229         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29230         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29231         * lib/fcntl.in.h: Do both things here.
29232
29233 2009-08-21  Jim Meyering  <meyering@redhat.com>
29234
29235         consistently remove $@-t before redirecting to it
29236         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29237         * modules/alloca-opt: Likewise.
29238         * modules/byteswap: Likewise.
29239         * modules/fnmatch: Likewise.
29240         * modules/getopt-posix: Likewise.
29241         * modules/glob: Likewise.
29242         * modules/poll: Likewise.
29243         * modules/posix_spawnp-tests: Likewise.
29244         * modules/sys_socket: Likewise.
29245         * modules/sysexits: Likewise.
29246
29247 2009-08-21  Eric Blake  <ebb9@byu.net>
29248
29249         popen: simplify access to original popen
29250         * lib/popen.c (rpl_popen): No need to worry about popen being a
29251         macro.
29252         Reported by Bruno Haible.
29253
29254 2009-08-20  Eric Blake  <ebb9@byu.net>
29255
29256         build: avoid some compiler warnings
29257         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29258         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29259         type.
29260         (new_exclude_segment, excluded_file_pattern_p)
29261         (excluded_file_name_p): Reduce scope.
29262         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29263         old-style declaration.
29264
29265 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29266
29267         * tests/test-exclude1.sh: Handle Windows EOL.
29268         * tests/test-exclude2.sh: Likewise.
29269         * tests/test-exclude3.sh: Likewise.
29270         * tests/test-exclude4.sh: Likewise.
29271         * tests/test-exclude5.sh: Likewise.
29272         * tests/test-exclude6.sh: Likewise.
29273         * tests/test-exclude7.sh: Likewise.
29274
29275 2009-08-19  Akim Demaille  <demaille@gostai.com>
29276
29277         bootstrap: find sha1sum when named gsha1sum.
29278         * bootstrap (find_tool): New.
29279         ($SHA1SUM): New.
29280         Use it.
29281
29282 2009-08-20  Jim Meyering  <meyering@redhat.com>
29283
29284         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29285         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29286         expression that converts "." in a file name to "\." in the resulting
29287         regexp.  Start with a dummy statement, so that prior shell variable
29288         definitions are expanded portably.  Reported by Simon Josefsson.
29289
29290 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29291
29292         Fix polling for writeability of a screen buffer.
29293         * lib/poll.c: Distinguish input and screen buffers for the
29294         Win32 implementation.
29295         * lib/select.c: Likewise.
29296
29297 2009-08-19  Eric Blake  <ebb9@byu.net>
29298
29299         popen-safer: prevent popen from clobbering std descriptors
29300         * modules/popen-safer: New file.
29301         * lib/popen-safer.c: Likewise.
29302         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29303         * lib/stdio--.h (popen): Provide override.
29304         * lib/stdio-safer.h (popen_safer): Provide declaration.
29305         * tests/test-popen.c (includes): Partially test this.
29306         * modules/popen-safer-tests: New file, for more tests.
29307         * tests/test-popen-safer.c: Likewise.
29308         * MODULES.html.sh (file stream based Input/Output): Mention it.
29309
29310         tests: test some of the *-safer modules
29311         * modules/fopen-safer (Depends-on): Add fopen.
29312         * modules/fcntl-safer (Depends-on): Add fcntl.
29313         * modules/stdlib-safer (Depends-on): Add stdlib.
29314         (configure.ac): Set indicator.
29315         * modules/unistd-safer (configure.ac): Likewise.
29316         * modules/tmpfile-safer (configure.ac): Likewise.
29317         (Depends-on): Add tmpfile.
29318         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29319         active.
29320         * tests/test-fopen.c (includes): Test safer versions when they are
29321         in use.
29322         * tests/test-open.c (includes): Likewise.
29323
29324         popen: fix cygwin 1.5 bug when stdin closed
29325         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29326         * modules/popen: New file.
29327         * modules/popen-tests: Likewise.
29328         * tests/test-popen.c: Likewise.
29329         * m4/popen.m4: Likewise.
29330         * lib/popen.c: Likewise.
29331         * lib/stdio.in.h (popen): New declaration.
29332         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29333         * modules/stdio (Makefile.am): Likewise.
29334         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29335
29336 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29337
29338         maint.mk: give full control over update-copyright exclusions
29339         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29340         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29341         (update-copyright): Don't force inclusion of top-level
29342         ChangeLog.  Don't force exclusion of all COPYING files, but make
29343         them the default exclusion instead.
29344
29345 2009-08-16  Bruno Haible  <bruno@clisp.org>
29346
29347         Fix test failures on Solaris 10.
29348         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29349         tests when Solaris iconv() is used.
29350         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29351         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29352         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29353         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29354         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29355
29356 2009-08-16  Bruno Haible  <bruno@clisp.org>
29357
29358         Fix test failures on Solaris 10.
29359         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29360         'tr' program and pass it as first argument.
29361         * tests/test-pipe-filter-gi1.sh: Likewise.
29362         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29363         program as first argument.
29364         * tests/test-pipe-filter-gi1.c (main): Likewise.
29365
29366 2009-08-16  Eric Blake  <ebb9@byu.net>
29367
29368         fpurge: fix previous commits
29369         * modules/fpurge (Makefile.am): Make replacement conditional,
29370         partially reverting 2007-04-29 change; missed in previous
29371         attempt.
29372         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29373         is missing.
29374
29375 2009-08-16  Bruno Haible  <bruno@clisp.org>
29376
29377         Clarify fpurge's effect on the file position.
29378         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29379         * tests/test-fpurge.c (main): Make a second pass for checking the file
29380         position.
29381
29382 2009-08-16  Bruno Haible  <bruno@clisp.org>
29383
29384         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29385         declaration of fpurge is missing.
29386         * tests/test-fpurge.c (main): Check that the file has not more contents
29387         than expected. Close the file before removing it.
29388
29389 2009-08-15  Eric Blake  <ebb9@byu.net>
29390
29391         fpurge: don't wrap working cygwin implementation
29392         * lib/fpurge.c (fpurge): Fix comment typo.
29393         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29394         1.7 to avoid replacement.
29395         * tests/test-fpurge.c (main): Enhance test.
29396
29397 2009-08-15  Eric Blake  <ebb9@byu.net>
29398         and Jim Meyering  <meyering@redhat.com>
29399
29400         test-update-copyright: skip if perl is insufficient
29401         * tests/test-update-copyright.sh: Failure to run maintainer tool
29402         should not cause testsuite failure on cygwin 1.5.
29403
29404 2009-08-14  Eric Blake  <ebb9@byu.net>
29405
29406         doc: mention more functions added in cygwin 1.7.0
29407         * doc/posix-headers/limits.texi (limits.h): Update for recent
29408         cygwin additions.
29409         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29410         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29411         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29412         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29413         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29414
29415 2009-08-14  Eric Blake  <ebb9@byu.net>
29416
29417         maint.mk: simplify update-copyright rule
29418         * top/maint.mk (update-copyright-local): Delete, and document how
29419         to do it in cfg.mk instead.
29420         (update-copyright-exclude-regexp): Delete, and document how to do
29421         it in .x-update-copyright instead.
29422         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29423         exclude ChangeLog.
29424
29425 2009-08-14  Bruno Haible  <bruno@clisp.org>
29426
29427         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29428
29429 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29430
29431         maint.mk: support update-copyright-env
29432         * top/maint.mk (update-copyright-env): Define place-holder.
29433         (update-copyright): Expand $(update-copyright-env) before
29434         invoking update-copyright.
29435
29436 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29437
29438         update-copyright: implement forced reformatting
29439         * build-aux/update-copyright: Implement and document
29440         UPDATE_COPYRIGHT_FORCE.
29441         * tests/test-update-copyright.sh: Test it.
29442
29443 2009-08-14  Eric Blake  <ebb9@byu.net>
29444         and Bruno Haible  <bruno@clisp.org>
29445
29446         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29447         * tests/test-locale.c: Revert previous patch related to NULL.
29448         * tests/test-stdio.c: Likewise.
29449         * tests/test-stdlib.c: Likewise.
29450         * tests/test-string.c: Likewise.
29451         * tests/test-unistd.c: Likewise.
29452         * modules/time-tests (Depends-on): Add verify.
29453         * modules/wchar-tests (Depends-on): Likewise.
29454         * tests/test-time.c: Test for NULL compliance.
29455         * tests/test-wchar.c: Likewise.
29456         * modules/locale (Depends-on): Add stddef.
29457         * modules/stdio (Depends-on): Likewise.
29458         * modules/stdlib (Depends-on): Likewise.
29459         * modules/string (Depends-on): Likewise.
29460         * modules/time (Depends-on): Likewise.
29461         * modules/unistd (Depends-on): Likewise.
29462         * modules/wchar (Depends-on): Likewise.
29463         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29464         * lib/stdlib.in.h (includes): Likewise.
29465         * lib/string.in.h (includes): Likewise.
29466         * lib/time.in.h (includes): Likewise.
29467         * lib/unistd.in.h (includes): Likewise.
29468         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29469         replaced.
29470         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29471         * m4/stddef_h.m4: New file.
29472         * modules/stddef: Likewise.
29473         * lib/stddef.in.h: Likewise.
29474         * modules/stddef-tests: Likewise.
29475         * tests/test-stddef.c: Likewise.
29476         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29477         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29478         * doc/posix-headers/locale.texi (locale.h): Likewise.
29479         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29480         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29481         * doc/posix-headers/string.texi (string.h): Likewise.
29482         * doc/posix-headers/time.texi (time.h): Likewise.
29483         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29484         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29485
29486 2009-08-14  Eric Blake  <ebb9@byu.net>
29487
29488         doc: improve git diff of texinfo files
29489         * .gitattributes: Add rule for *.texi files, with hint on how to
29490         use it.
29491         Copied from m4, and based on a report by Bruno Haible.
29492
29493 2009-08-14  Bruno Haible  <bruno@clisp.org>
29494
29495         Disable multithread support by default on Cygwin 1.5.x for real.
29496         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29497
29498 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29499
29500         update-copyright: much ado about intervals
29501         * build-aux/update-copyright: Implement and document
29502         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29503         of copyright year intervals.
29504         Also, document UPDATE_COPYRIGHT_YEAR.
29505         * tests/test-update-copyright.sh: Test it.
29506
29507         update-copyright: convert 2-digit to 4-digit years
29508         * build-aux/update-copyright: Implement and document.
29509         * tests/test-update-copyright.sh: Update.
29510
29511 2009-08-14  Jim Meyering  <meyering@redhat.com>
29512
29513         test-exclude: avoid coreutils "make check" failure
29514         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29515         just as in test-argmatch.c.
29516
29517 2009-08-13  Eric Blake  <ebb9@byu.net>
29518
29519         test-dup2: fix bad assumption
29520         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29521         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29522
29523         test-version-etc: fix CRLF portability issue
29524         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29525         recognize \r.
29526         * tests/test-argp-version-etc-1.sh: Likewise.
29527
29528         getopt: update client modules
29529         * modules/argp (Depends-on): Use getopt-gnu.
29530         * modules/git-merge-changelog (Depends-on): Likewise.
29531         * modules/long-options (Depends-on): Likewise.
29532         * modules/xstrtol (Depends-on): Likewise.
29533
29534 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29535
29536         * tests/test-version-etc.sh: Don't fail on different
29537         project/version.  Don't fail on CRLF differences.  Rewrite to use
29538         multiple -e instead of multiple sed forks, suggested by Eric Blake
29539         <ebb9@byu.net>.
29540         * tests/test-argp-version-etc-1.sh: Likewise.
29541
29542 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29543
29544         * tests/test-version-etc.sh: Don't fail on different
29545         project/version.
29546
29547 2009-08-12  Bruno Haible  <bruno@clisp.org>
29548
29549         Tests for modules 'getopt-posix', 'getopt-gnu'.
29550         * modules/getopt-posix-tests: New file.
29551         * tests/test-getopt.c: New file.
29552         * tests/test-getopt.h: New file.
29553         * tests/test-getopt_long.h: New file.
29554
29555         New modules 'getopt-posix', 'getopt-gnu'.
29556         * modules/getopt-gnu: New file, renamed from modules/getopt.
29557         * modules/getopt-posix: New file.
29558         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29559         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29560         (gl_GETOPT): Remove macro.
29561         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29562         Disable the test against BSD systems that declare optreset. Test
29563         against mingw bug. Test against lack of support of optional arguments
29564         on many platforms.
29565         * doc/glibc-headers/getopt.texi: Update module name and list of
29566         relevant platforms.
29567         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29568         'getopt-gnu' and more portability problems.
29569         * NEWS: Mention the changes.
29570
29571 2009-08-12  Bruno Haible  <bruno@clisp.org>
29572
29573         Ensure that optarg etc. get declared by <unistd.h>.
29574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29575         AC_USE_SYSTEM_EXTENSIONS.
29576         * modules/getopt (Depends-on): Add 'extensions'.
29577
29578 2009-08-12  Bruno Haible  <bruno@clisp.org>
29579
29580         Avoid test link errors.
29581         * modules/pipe-filter-ii-tests (Makefile.am): Define
29582         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29583         * modules/pipe-filter-gi-tests (Makefile.am): Define
29584         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29585         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29586
29587 2009-08-12  Bruno Haible  <bruno@clisp.org>
29588
29589         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29590         gl_GETOPT_SUBSTITUTE before.
29591         (gl_GETOPT): Use it.
29592         * m4/argp.m4 (gl_ARGP): Update.
29593         Reported by Sergey Poznyakoff.
29594
29595         * m4/getopt.m4: Reorder macros.
29596         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29597         (gl_GETOPT_SUBSTITUTE): Remove macro.
29598
29599 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29600
29601         Minor improvement in gitlog-to-changelog
29602
29603         * build-aux/gitlog-to-changelog: New option `--format' makes
29604         output format string configurable.
29605
29606 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29607
29608         Optimize exclude: use hash tables for non-wildcard patterns.
29609
29610         * lib/exclude.c: Include hash.h and mbuiter.h
29611         (struct exclude_pattern, exclude_segment): New data types.
29612         (struct exclude): Rewrite.
29613         (fnmatch_pattern_has_wildcards): New function.
29614         (new_exclude_segment, free_exclude_segment): New functions.
29615         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29616         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29617         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29618         * modules/exclude: Depend on hash and mbuiter.
29619
29620         * modules/exclude-tests: New file.
29621         * tests/test-exclude.c: New file.
29622         * tests/test-exclude1.sh: New file.
29623         * tests/test-exclude2.sh: New file.
29624         * tests/test-exclude3.sh: New file.
29625         * tests/test-exclude4.sh: New file.
29626         * tests/test-exclude5.sh: New file.
29627         * tests/test-exclude6.sh: New file.
29628         * tests/test-exclude7.sh: New file.
29629
29630 2009-08-12  Bruno Haible  <bruno@clisp.org>
29631
29632         Ensure that getopt() gets declared by <unistd.h>.
29633         * lib/unistd.in.h: Conditionally include getopt.h.
29634         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29635         Set GNULIB_UNISTD_H_GETOPT.
29636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29637         GNULIB_UNISTD_H_GETOPT.
29638         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29639
29640 2009-08-12  Bruno Haible  <bruno@clisp.org>
29641
29642         Clarify logic.
29643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29644         gl_replace_getopt instead of GETOPT_H.
29645
29646 2009-08-12  Bruno Haible  <bruno@clisp.org>
29647
29648         * m4/getopt.m4: Add comments.
29649
29650 2009-08-12  Bruno Haible  <bruno@clisp.org>
29651
29652         Disable multithread support by default on Cygwin 1.5.x.
29653         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29654         set gl_use_threads=no if not specified otherwise.
29655
29656 2009-08-11  Bruno Haible  <bruno@clisp.org>
29657
29658         Avoid compilation error on NetBSD 5.0.
29659         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29660         * tests/test-stdio.c: Likewise.
29661         * tests/test-stdlib.c: Likewise.
29662         * tests/test-string.c: Likewise.
29663         * tests/test-unistd.c: Likewise.
29664         Reported by Greg Troxel <gdt@ir.bbn.com>
29665         at <https://savannah.gnu.org/support/?106973>.
29666
29667 2009-08-11  Bruno Haible  <bruno@clisp.org>
29668
29669         * modules/dup2-tests (Depends-on): Remove close.
29670
29671         Undo 2009-07-19 commit.
29672         * modules/acl-tests (Depends-on): Remove close.
29673         * modules/binary-io-tests (Depends-on): Likewise.
29674         * modules/closein-tests (Depends-on): Likewise.
29675         * modules/flock-tests (Depends-on): Likewise.
29676         * modules/fsync-tests (Depends-on): Likewise.
29677         * modules/lseek-tests (Depends-on): Likewise.
29678         * modules/pipe-tests (Depends-on): Likewise.
29679         * modules/posix_spawn-tests (Depends-on): Likewise.
29680         * modules/posix_spawnp-tests (Depends-on): Likewise.
29681         * modules/stat-time-tests (Depends-on): Likewise.
29682         * modules/yesno-tests (Depends-on): Likewise.
29683
29684 2009-08-10  Bruno Haible  <bruno@clisp.org>
29685
29686         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29687
29688 2009-08-10  Bruno Haible  <bruno@clisp.org>
29689
29690         Fix a gcc warning.
29691         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29692
29693 2009-08-10  Bruno Haible  <bruno@clisp.org>
29694
29695         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29696         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29697         not only the first time.
29698         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29699         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29700         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29701         is 1, not only the the first time.
29702
29703 2009-08-10  Bruno Haible  <bruno@clisp.org>
29704
29705         Make it possible to use module 'gethostname' without module 'close'.
29706         * lib/unistd.in.h (close): Evoke a link error only if
29707         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29709         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29710         * modules/unistd (Makefile.am): Substitute
29711         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29712         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29713         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29714         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29715         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29716         * modules/sys_ioctl (Makefile.am): Substitute
29717         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29718         * modules/socket (configure.ac): On native Windows, set
29719         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29720         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29721         Reported by Sam Steingold <sds@gnu.org>.
29722
29723 2009-08-10  Bruno Haible  <bruno@clisp.org>
29724
29725         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29726         * modules/ioctl (configure.ac): Likewise.
29727
29728 2009-08-10  Bruno Haible  <bruno@clisp.org>
29729
29730         Avoid collision between gnulib wrapper and libintl wrapper.
29731         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29732         already defined in intl/printf.c.
29733         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29734         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29735
29736 2009-08-09  Bruno Haible  <bruno@clisp.org>
29737
29738         Make <sys/select.h> really self-contained, also on Solaris 10.
29739         * lib/sys_select.in.h: Include <string.h>.
29740         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29741         Solaris 10 problem.
29742         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29743         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29744         Reported by Jim Meyering.
29745
29746 2009-08-09  Bruno Haible  <bruno@clisp.org>
29747
29748         Avoid warnings from 'aclocal' that are due to a use of macro name
29749         AM_XGETTEXT_OPTION that is not defined in automake.
29750         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29751         automake.
29752         * modules/error (configure.ac): Likewise.
29753         * modules/propername (configure.ac): Likewise.
29754         * modules/vasprintf (configure.ac): Likewise.
29755         * modules/verror (configure.ac): Likewise.
29756         * modules/xprintf (configure.ac): Likewise.
29757         * modules/xvasprintf (configure.ac): Likewise.
29758
29759 2009-08-08  Bruno Haible  <bruno@clisp.org>
29760
29761         Avoid compilation error in C++ mode.
29762         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
29763         Reported by Sam Steingold <sds@gnu.org>.
29764
29765 2009-08-08  Bruno Haible  <bruno@clisp.org>
29766
29767         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
29768         for the various Unix platforms.
29769         * doc/posix-headers/limits.texi: Update platforms list regarding
29770         HOST_NAME_MAX.
29771         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29772
29773 2009-08-07  Jim Meyering  <meyering@redhat.com>
29774
29775         selinux-at: fix typo in a comment
29776         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
29777         Spotted by Paolo Bonzini.
29778
29779         selinux-at: remove redundant m4 code, add documentation
29780         * modules/selinux-at (configure.ac): Remove redundant code.
29781         LIB_SELINUX is already set via the dependent module, selinux-h.
29782         (Include): Add quotes around selinux-at.h.
29783         * lib/selinux-at.h: Add documentation.
29784         Reported by Bruno Haible in
29785         http://marc.info/?l=gnulib-bug&m=124958988300749
29786
29787 2009-08-07  Bruno Haible  <bruno@clisp.org>
29788
29789         Avoid link error on MacOS X 10.3 and 10.4.
29790         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
29791         on non-ELF systems.
29792         * lib/argp-pv.c (argp_program_version): Likewise.
29793         Reported by Simon Josefsson.
29794
29795 2009-08-07  Simon Josefsson  <simon@josefsson.org>
29796
29797         * tests/test-version-etc.sh: Use $EXEEXT.
29798
29799 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
29800
29801         update-copyright: update documentation to point to maint.mk
29802         * build-aux/update-copyright: Here.
29803
29804 2009-08-06  Jim Meyering  <meyering@redhat.com>
29805
29806         maint.mk: support update-copyright-local
29807         * top/maint.mk (update-copyright-local): Define place-holder.
29808         (update-copyright): Depend on $(update-copyright-local).
29809
29810 2009-08-06  Jim Meyering  <meyering@redhat.com>
29811
29812         selinux-at: new module
29813         Initially written for coreutils, this module will soon be
29814         used by findutils, too.
29815         * MODULES.html.sh [Misc]: Add selinux-at.
29816         * lib/selinux-at.h: New file, from coreutils.
29817         * lib/selinux-at.c: Likewise.
29818         * modules/selinux-at: Likewise.
29819         (License): Change from LGPL to GPL, since it depends
29820         on the GPL'd openat module.
29821
29822         doc: update README
29823         * README: Remove references to cogito.
29824         Remove cvs-repo-updating instructions from 2007.
29825         Don't imply that CVS is better if you have limited disk space.
29826
29827 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29828
29829         update-copyright: support C-style comments
29830         * build-aux/update-copyright: Implement and document.
29831         * tests/test-update-copyright.sh: Test.
29832
29833 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29834
29835         update-copyright: support omitted "(C)"
29836         * build-aux/update-copyright: Implement and document.  Also,
29837         allow variable whitespace before "(C)".
29838         * tests/test-update-copyright.sh: Test.
29839
29840 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29841
29842         update-copyright: don't trip on non-FSF copyright statements
29843         * build-aux/update-copyright: Fix so that the first correctly
29844         formatted FSF copyright statement is recognized no matter what
29845         appears before it.  Update documentation.
29846         * tests/test-update-copyright.sh: Test that.
29847
29848 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29849
29850         update-copyright: clean up code a little
29851         * build-aux/update-copyright: Append "_re" to the name of any
29852         variable holding a regular expression.
29853         Replace "old" and "new" with "stmt" in variable names.
29854         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
29855         handled correctly.
29856         Format code more consistently.
29857
29858 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29859
29860         update-copyright-tests: improve portability
29861         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
29862         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
29863
29864 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29865
29866         update-copyright: support @copyright{} and &copy;
29867         * build-aux/update-copyright: Implement and document.
29868         * tests/test-update-copyright.sh: Test.
29869
29870 2009-08-04  Jim Meyering  <meyering@redhat.com>
29871
29872         update-copyright-tests: correctly test EOL=\r\n handling
29873         * tests/test-update-copyright.sh: Put \r at the end of some lines
29874         for the dos-eol tests.  Based on a patch by Joel E. Denny.
29875
29876         maint.mk: make update-copyright exclusion list more configurable
29877         * top/maint.mk (update-copyright): Default to excluding COPYING,
29878         but allow an override, in case someone does want to update that file.
29879
29880         maint.mk: don't update copyright date in COPYING
29881         * top/maint.mk (update-copyright): Exclude COPYING.
29882
29883         maint.mk: add a copyright-updating rule
29884         * top/maint.mk (update-copyright): New rule.
29885         Derived from coreutils/Makefile.am.
29886
29887         update-copyright: rename some variables
29888         * build-aux/update-copyright: Rename a few variables for clarity.
29889         Tweak syntax.  List Joel E. Denny as coauthor.
29890
29891 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29892
29893         update-copyright: fix bug for 2-digit last year and add tests
29894         * build-aux/update-copyright: Fix bug.
29895         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
29896         specified.
29897         * modules/update-copyright-tests: New
29898         * tests/test-update-copyright.sh: New.
29899
29900 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29901
29902         update-copyright: handle leading tabs in line prefix
29903         * build-aux/update-copyright: Count leading tabs as 8 spaces
29904         when computing margin.  This helps with the formatting of
29905         ChangeLogs, for example.
29906         Fix documentation a little.
29907
29908 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29909
29910         update-copyright: support EOL=\r\n
29911         * build-aux/update-copyright: Implement that.
29912
29913 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29914
29915         update-copyright: automatically format copyright statements
29916         * build-aux/update-copyright: Implement that.
29917         Also, be a little more predictable and safer by always failing
29918         when the full copyright format is not perfectly recognized as an
29919         unbroken whole.  Discussed at
29920         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
29921         Rewrite documentation.
29922
29923 2009-08-03  Bruno Haible  <bruno@clisp.org>
29924
29925         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
29926
29927 2009-08-02  Bruno Haible  <bruno@clisp.org>
29928
29929         Tests for module 'uname'.
29930         * modules/uname-tests: New file.
29931         * tests/test-uname.c: New file.
29932
29933         New module 'uname'.
29934         * lib/uname.c: New file.
29935         * m4/uname.m4: New file.
29936         * modules/uname: New file.
29937         * doc/posix-functions/uname.texi: Mention the new module.
29938
29939 2009-08-02  Bruno Haible  <bruno@clisp.org>
29940
29941         Tests for module 'sys_utsname'.
29942         * modules/sys_utsname-tests: New file.
29943         * tests/test-sys_utsname.c: New file.
29944
29945         New module 'sys_utsname'.
29946         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
29947         * m4/sys_utsname_h.m4: New file.
29948         * modules/sys_utsname: New file.
29949         * doc/posix-headers/sys_utsname.texi: Mention the new module.
29950
29951 2009-08-02  Bruno Haible  <bruno@clisp.org>
29952
29953         Implicitly initialize the sockets library.
29954         * lib/gethostname.c: Include sockets.h.
29955         (rpl_gethostname): Invoke gl_sockets_startup.
29956         * lib/socket.c: Include sockets.h.
29957         (rpl_socket): Invoke gl_sockets_startup.
29958         * modules/gethostname (Depends-on): Add sockets.
29959         * modules/socket (Depends-on): Likewise.
29960         * tests/test-poll.c: Don't include sockets.h.
29961         (main): Don't invoke gl_sockets_startup.
29962         * tests/test-select.c: Don't include sockets.h.
29963         (main): Don't invoke gl_sockets_startup.
29964
29965 2009-08-02  Bruno Haible  <bruno@clisp.org>
29966
29967         Allow multiple calls to gl_sockets_startup.
29968         * lib/sockets.c (initialized_sockets_version): New variable.
29969         (gl_sockets_startup): Do nothing if already called for this or a higher
29970         version.
29971         (gl_sockets_cleanup): Reset initialized_sockets_version.
29972
29973 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29974
29975         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29976         different project/version.
29977
29978 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29979             Bruno Haible  <bruno@clisp.org>
29980
29981         Tests for module 'pipe-filter-gi'.
29982         * modules/pipe-filter-gi-tests: New file.
29983         * tests/test-pipe-filter-gi1.sh: New file.
29984         * tests/test-pipe-filter-gi1.c: New file.
29985         * tests/test-pipe-filter-gi2.sh: New file.
29986         * tests/test-pipe-filter-gi2-main.c: New file.
29987         * tests/test-pipe-filter-gi2-child.c: New file.
29988
29989         New module 'pipe-filter-gi'.
29990         * lib/pipe-filter-gi.c: New file.
29991         * modules/pipe-filter-gi: New file.
29992
29993 2009-08-02  Bruno Haible  <bruno@clisp.org>
29994             Paolo Bonzini  <bonzini@gnu.org>
29995
29996         Tests for module 'pipe-filter-ii'.
29997         * modules/pipe-filter-ii-tests: New file.
29998         * tests/test-pipe-filter-ii1.sh: New file.
29999         * tests/test-pipe-filter-ii1.c: New file.
30000         * tests/test-pipe-filter-ii2.sh: New file.
30001         * tests/test-pipe-filter-ii2-main.c: New file.
30002         * tests/test-pipe-filter-ii2-child.c: New file.
30003
30004         New module 'pipe-filter-ii'.
30005         * lib/pipe-filter.h: New file.
30006         * lib/pipe-filter-ii.c: New file.
30007         * lib/pipe-filter-aux.h: New file.
30008         * modules/pipe-filter-ii: New file.
30009
30010 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30011
30012         * lib/gc-libgcrypt.c: Change copyright to FSF.
30013         * lib/gc-gnulib.c: Likewise.
30014
30015 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
30016
30017         * lib/gethostname.c: Include limits.h.
30018
30019 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30020             Bruno Haible  <bruno@clisp.org>
30021
30022         Ensure HOST_NAME_MAX as part of the gethostname module.
30023         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
30024         define also HOST_NAME_MAX.
30025         * tests/test-gethostname.c: Include <limits.h>.
30026         (main): Check also HOST_NAME_MAX.
30027         * doc/posix-headers/limits.texi: Document the mingw problem.
30028
30029 2009-08-02  Bruno Haible  <bruno@clisp.org>
30030
30031         * lib/gethostname.c (gethostname): Fix handling of large len argument.
30032         Add comments.
30033
30034 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30035
30036         * lib/gethostname.c: Add Windows wrapper.
30037         * m4/gethostname.m4: Look for gethostname in -lws2_32.
30038         * modules/gethostname: Depend on sys_socket & errno, for also
30039         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
30040         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
30041
30042 2009-07-31  Jim Meyering  <meyering@redhat.com>
30043
30044         getloadavg: fix symbol name in comment
30045         * lib/getloadavg.c: Correct a typo I introduced when adding
30046         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
30047         Matt Kraai spotted the problem.
30048
30049 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30050
30051         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30052         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30053         code also if ! defined N_NAME_POINTER.
30054         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30055         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30056         but the n_name member is a 12-byte array.
30057
30058 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
30059
30060         update-copyright: generalize comment handling
30061         * build-aux/update-copyright: Handle copyright statements
30062         within more comment styles.
30063         Document usage.
30064         Report any file with an external copyright holder or parse failure.
30065
30066 2009-07-29  Jim Meyering  <meyering@redhat.com>
30067
30068         mktime: correct setting of REPLACE_MKTIME
30069         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
30070
30071         update-copyright: new module
30072         * modules/update-copyright: New file.
30073         * build-aux/update-copyright: New file.
30074         * MODULES.html.sh (maint+release support): Add update-copyright.
30075
30076 2009-07-27  Bruno Haible  <bruno@clisp.org>
30077
30078         Fix compilation error when <ctime> is used and mktime is replaced.
30079         * lib/time.in.h (mktime): New declaration.
30080         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
30081         REPLACE_MKTIME instead of defining mktime in config.h.
30082         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
30083         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
30084         Reported by Ross McFarland <rwmcfa1@neces.com>.
30085
30086 2009-07-27  Bruno Haible  <bruno@clisp.org>
30087
30088         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30089         Reported by Matt Kraai <mkraai@beckman.com>.
30090
30091 2009-07-25  Jim Meyering  <meyering@redhat.com>
30092
30093         maint.mk: avoid warnings about missing files
30094         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30095         diagnostic when .prev-version does not exist.
30096         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30097         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30098         nonexistent cfg.mk.
30099         Suggestions from Simon Josefsson.
30100
30101 2009-07-25  Bruno Haible  <bruno@clisp.org>
30102
30103         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30104         defined as macros. Needed on QNX 6.4.1.
30105         Reported by Matt Kraai <mkraai@beckman.com>.
30106
30107 2009-07-23  Jim Meyering  <meyering@redhat.com>
30108
30109         maint.mk: invoke "make dist" with a working value of XZ_OPT
30110         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30111
30112 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30113
30114         Make fseeko.c compile on QNX.
30115         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30116
30117 2009-07-22  Peter Simons  <simons@cryp.to>
30118
30119         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30120         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30121         * lib/md4.h: Likewise.
30122         * lib/md5.h: Likewise.
30123         * lib/sha1.h: Likewise.
30124         * lib/sha256.h: Likewise.
30125         * lib/sha512.h: Likewise.
30126
30127         tests-sha1: don't assign literal string to 'char *' variable
30128         * tests/test-sha1.c (main): Declare locals with "const" to match
30129         attributes of the right hand side.
30130
30131 2009-07-21  Eric Blake  <ebb9@byu.net>
30132
30133         dup2: fix more mingw problems
30134         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30135         fd to itself.
30136         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30137         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30138         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30139         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30140         care of mingw bugs.
30141
30142 2009-07-21  Jim Meyering  <meyering@redhat.com>
30143
30144         vc-list-files: avoid failure when /bin/sh is dash
30145         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30146         On some Debian based systems, /bin/sh is a symlink to dash, and running
30147         this command would omit the "/" following each 'tests' prefix:
30148           dash -x build-aux/vc-list-files -C . tests
30149         That is because bash and dash work differently:
30150           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30151           bash ok
30152           dash odd
30153
30154 2009-07-21  Eric Blake  <ebb9@byu.net>
30155
30156         dup2-tests: test previous patch
30157         * modules/dup2-tests: New file.
30158         * tests/test-dup2.c: Likewise.
30159         * tests/test-open.c (main): Avoid unspecified behavior.
30160         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30161         test.
30162
30163         dup2: work around mingw and cygwin 1.5 bug
30164         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30166         * modules/unistd (Makefile.am): Substitute it.
30167         * lib/unistd.in.h (dup2): Declare the replacement.
30168         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30169         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30170         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30171         * modules/execute (Depends-on): Add dup2.
30172         * modules/fseterr (Depends-on): Likewise.
30173         * modules/pipe (Depends-on): Likewise.
30174         * modules/posix_spawn-internal (Depends-on): Likewise.
30175
30176 2009-07-21  Bruno Haible  <bruno@clisp.org>
30177
30178         * modules/.gitattributes: New file.
30179
30180 2009-07-20  Bruno Haible  <bruno@clisp.org>
30181
30182         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30183         (main): Use it.
30184
30185 2009-07-20  Eric Blake  <ebb9@byu.net>
30186
30187         test-pipe: make a bit more robust.
30188         * tests/test-pipe.c (myerr): Allow error messages regardless of
30189         what we do to stderr.
30190         (test_pipe): Rearrange to avoid deadlock.
30191         (child_main): Try a larger read, to ensure we avoided deadlock.
30192         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30193         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30194         if misused.
30195
30196 2009-07-19  Jim Meyering  <meyering@redhat.com>
30197
30198         fts: avoid false-positive cycle-detection
30199         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30200         for each new command line argument.
30201
30202 2009-07-19  Bruno Haible  <bruno@clisp.org>
30203
30204         Fix build error on mingw with the modules sys_select and unistd.
30205         * modules/acl-tests (Depends-on): Add close.
30206         * modules/binary-io-tests (Depends-on): Likewise.
30207         * modules/closein-tests (Depends-on): Likewise.
30208         * modules/flock-tests (Depends-on): Likewise.
30209         * modules/fsync-tests (Depends-on): Likewise.
30210         * modules/lseek-tests (Depends-on): Likewise.
30211         * modules/pipe-tests (Depends-on): Likewise.
30212         * modules/posix_spawn-tests (Depends-on): Likewise.
30213         * modules/posix_spawnp-tests (Depends-on): Likewise.
30214         * modules/stat-time-tests (Depends-on): Likewise.
30215         * modules/yesno-tests (Depends-on): Likewise.
30216
30217 2009-07-19  Bruno Haible  <bruno@clisp.org>
30218
30219         Unify conditionals.
30220         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30221         macros, not at the compiler macros.
30222         * lib/pipe.c: Likewise.
30223         * lib/execute.c: Likewise.
30224         * lib/spawni.c: Likewise.
30225
30226 2009-07-19  Bruno Haible  <bruno@clisp.org>
30227
30228         Fix handling of closed stdin/stdout/stderr on mingw.
30229         * lib/w32spawn.h: Include unistd.h.
30230         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30231         file descriptor with O_NOINHERIT flag.
30232         (fd_safer_noinherit): New function, based on fd-safer.c.
30233         (dup_safer_noinherit): New function, based on dup-safer.c.
30234         (undup_safer_noinherit): New function.
30235         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30236         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30237         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30238         instead of fd_safer.
30239         * tests/test-pipe.c: Include <windows.h>.
30240         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30241         result.
30242
30243         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30244         from main.
30245         (test_pipe): Pass an extra argument for disambiguation.
30246         (main): Invoke parent_main or child_main.
30247
30248         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30249         consistently.
30250
30251 2009-07-18  Eric Blake  <ebb9@byu.net>
30252
30253         test-pipe: fix mingw build
30254         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30255
30256 2009-07-18  Bruno Haible  <bruno@clisp.org>
30257
30258         * modules/pipe-tests (Makefile.am): Fix typo.
30259
30260 2009-07-18  Eric Blake  <ebb9@byu.net>
30261
30262         error: fix mingw build
30263         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30264         Reported by Bruno Haible.
30265
30266         error: avoid undefined use of stdout
30267         * lib/error.c (error, error_at_line): Check that fd 1 is open
30268         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30269         is handling faults and the close_stdout module wants to report the
30270         detection of closed stdout as an error.
30271
30272 2009-07-17  Eric Blake  <ebb9@byu.net>
30273
30274         pipe: be robust in face of closed fds
30275         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30276         should cause child to misbehave.
30277         * modules/pipe-tests: New module.
30278         * tests/test-pipe.c: New file.
30279         * tests/test-pipe.sh: New file.
30280         Reported by Akim Demaille.
30281
30282 2009-07-14  Bruno Haible  <bruno@clisp.org>
30283
30284         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30285         Reported by anonymous kc.
30286
30287 2009-07-07  Jim Meyering  <meyering@redhat.com>
30288
30289         maint.mk: don't look for translatable strings in *.m4 or *.mk
30290         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30291         when searching for translatable strings.
30292
30293 2009-07-05  Jim Meyering  <meyering@redhat.com>
30294
30295         remove superfluous parentheses in STREQ definition
30296         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30297         * lib/getugroups.c (STREQ): Likewise.
30298         * lib/fnmatch.c (STREQ): Likewise.
30299         Spotted by Bruno Haible.
30300
30301 2009-07-04  Jim Meyering  <meyering@redhat.com>
30302
30303         argv-iter: new module
30304         * MODULES.html.sh: Add argv-iter.
30305         * lib/argv-iter.c, lib/argv-iter.h: New files.
30306         * modules/argv-iter: New file.
30307         * modules/argv-iter-tests: New file.
30308         * tests/test-argv-iter.c: Test it.
30309
30310 2009-07-04  Bruno Haible  <bruno@clisp.org>
30311
30312         Fix assertion.
30313         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30314         contains more exact copies of a given entry than file2, leave the extra
30315         copies unpaired rather than aborting.
30316         Reported by Eric Blake.
30317
30318 2009-07-02  Bruno Haible  <bruno@clisp.org>
30319
30320         Speedup git-merge-changelog for git cherry-pick.
30321         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30322         (entries_mapping_get): New function, extracted from compute_mapping.
30323         (entries_mapping_reverse_get): New function.
30324         (compute_mapping): Add a 'full' argument. Return the result in a
30325         'struct entries_mapping'.
30326         (main): Update. Access the mappings through entries_mapping_get.
30327         Reported by Eric Blake.
30328
30329 2009-07-02  Bruno Haible  <bruno@clisp.org>
30330
30331         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30332         best_i.
30333
30334 2009-07-02  Bruno Haible  <bruno@clisp.org>
30335
30336         Speed up approximate search for matching ChangeLog entries.
30337         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30338         argument. Call fstrcmp_bounded instead of fstrcmp.
30339         (compute_mapping, try_split_merged_entry, main): Update callers.
30340
30341 2009-07-02  Bruno Haible  <bruno@clisp.org>
30342
30343         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30344
30345 2009-06-30  Bruno Haible  <bruno@clisp.org>
30346
30347         Reduce the number of uc_is_cased calls.
30348         * lib/unicase.h (casing_suffix_context_t): Add
30349         'first_char_except_ignorable' field.
30350         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30351         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30352         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30353         Update initializer.
30354         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30355         case-ignorable characters.
30356         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30357         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30358         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30359         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30360         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30361
30362 2009-06-30  Bruno Haible  <bruno@clisp.org>
30363
30364         Tests for module 'unicase/ignorable'.
30365         * modules/unicase/ignorable-tests: New file.
30366         * tests/unicase/test-ignorable.c: New file, generated by
30367         gen-uni-tables.
30368
30369         Tests for module 'unicase/cased'.
30370         * modules/unicase/cased-tests: New file.
30371         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30372         * tests/unicase/test-predicate-part1.h: New file, derived from
30373         tests/unictype/test-predicate-part1.h.
30374         * tests/unicase/test-predicate-part2.h: New file, same as
30375         tests/unictype/test-predicate-part2.h.
30376
30377         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30378         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30379         (output_casing_properties): New function.
30380         (main): Call it.
30381         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30382         * lib/unicase/cased.c: Include unictype/bitmap.h.
30383         (uc_is_cased): Define through a bitmap lookup.
30384         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30385         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30386         (uc_is_case_ignorable): Define through a bitmap lookup.
30387         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30388         lib/unictype/bitmap.h.
30389         (Depends-on): Add inline. Clean up.
30390         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30391         lib/unictype/bitmap.h.
30392         (Depends-on): Add inline. Clean up.
30393         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30394         recognition.
30395         * tests/unicase/test-u16-tolower.c (main): Likewise.
30396         * tests/unicase/test-u32-tolower.c (main): Likewise.
30397
30398 2009-06-30  Bruno Haible  <bruno@clisp.org>
30399
30400         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30401         * lib/unicase/u16-casemap.c: Likewise.
30402         * lib/unicase/u32-casemap.c: Likewise.
30403
30404 2009-06-29  Bruno Haible  <bruno@clisp.org>
30405
30406         Define u32_casefold as a wrapper around u32_ct_casefold.
30407         * lib/unicase/u32-casefold.c: Update.
30408         * modules/unicase/u32-casefold (Depends-on): Add
30409         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30410         unicase/empty-suffix-context. Clean up.
30411
30412         Define u16_casefold as a wrapper around u16_ct_casefold.
30413         * lib/unicase/u16-casefold.c: Update.
30414         * modules/unicase/u16-casefold (Depends-on): Add
30415         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30416         unicase/empty-suffix-context. Clean up.
30417
30418         Define u8_casefold as a wrapper around u8_ct_casefold.
30419         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30420         * lib/unicase/u8-casefold.c: Update.
30421         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30422         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30423
30424         Define u32_totitle as a wrapper around u32_ct_totitle.
30425         * lib/unicase/u32-totitle.c: Update.
30426         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30427         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30428
30429         Define u16_totitle as a wrapper around u16_ct_totitle.
30430         * lib/unicase/u16-totitle.c: Update.
30431         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30432         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30433
30434         Define u8_totitle as a wrapper around u8_ct_totitle.
30435         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30436         functions.
30437         (FUNC): Delegate to U_CT_TOTITLE.
30438         * lib/unicase/u8-totitle.c: Update.
30439         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30440         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30441
30442         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30443         invocation.
30444         * modules/unicase/u32-tolower (Depends-on): Add
30445         unicase/empty-prefix-context, unicase/empty-suffix-context.
30446
30447         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30448         invocation.
30449         * modules/unicase/u16-tolower (Depends-on): Add
30450         unicase/empty-prefix-context, unicase/empty-suffix-context.
30451
30452         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30453         * modules/unicase/u8-tolower (Depends-on): Add
30454         unicase/empty-prefix-context, unicase/empty-suffix-context.
30455
30456         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30457         invocation.
30458         * modules/unicase/u32-toupper (Depends-on): Add
30459         unicase/empty-prefix-context, unicase/empty-suffix-context.
30460
30461         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30462         invocation.
30463         * modules/unicase/u16-toupper (Depends-on): Add
30464         unicase/empty-prefix-context, unicase/empty-suffix-context.
30465
30466         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30467         * modules/unicase/u8-toupper (Depends-on): Add
30468         unicase/empty-prefix-context, unicase/empty-suffix-context.
30469
30470         New module 'unicase/u32-ct-casefold'.
30471         * lib/unicase/u32-ct-casefold.c: New file.
30472         * modules/unicase/u32-ct-casefold: New file.
30473
30474         New module 'unicase/u16-ct-casefold'.
30475         * lib/unicase/u16-ct-casefold.c: New file.
30476         * modules/unicase/u16-ct-casefold: New file.
30477
30478         New module 'unicase/u8-ct-casefold'.
30479         * lib/unicase/u8-ct-casefold.c: New file.
30480         * lib/unicase/u-ct-casefold.h: New file, derived from
30481         lib/unicase/u-casefold.h.
30482         * modules/unicase/u8-ct-casefold: New file.
30483
30484         New module 'unicase/u32-ct-totitle'.
30485         * lib/unicase/u32-ct-totitle.c: New file.
30486         * modules/unicase/u32-ct-totitle: New file.
30487
30488         New module 'unicase/u16-ct-totitle'.
30489         * lib/unicase/u16-ct-totitle.c: New file.
30490         * modules/unicase/u16-ct-totitle: New file.
30491
30492         New module 'unicase/u8-ct-totitle'.
30493         * lib/unicase/u8-ct-totitle.c: New file.
30494         * lib/unicase/u-ct-totitle.h: New file, derived from
30495         lib/unicase/u-totitle.h.
30496         * modules/unicase/u8-ct-totitle: New file.
30497
30498         New module 'unicase/u32-ct-tolower'.
30499         * lib/unicase/u32-ct-tolower.c: New file.
30500         * modules/unicase/u32-ct-tolower: New file.
30501
30502         New module 'unicase/u16-ct-tolower'.
30503         * lib/unicase/u16-ct-tolower.c: New file.
30504         * modules/unicase/u16-ct-tolower: New file.
30505
30506         New module 'unicase/u8-ct-tolower'.
30507         * lib/unicase/u8-ct-tolower.c: New file.
30508         * modules/unicase/u8-ct-tolower: New file.
30509
30510         New module 'unicase/u32-ct-toupper'.
30511         * lib/unicase/u32-ct-toupper.c: New file.
30512         * modules/unicase/u32-ct-toupper: New file.
30513
30514         New module 'unicase/u16-ct-toupper'.
30515         * lib/unicase/u16-ct-toupper.c: New file.
30516         * modules/unicase/u16-ct-toupper: New file.
30517
30518         New module 'unicase/u8-ct-toupper'.
30519         * lib/unicase/u8-ct-toupper.c: New file.
30520         * modules/unicase/u8-ct-toupper: New file.
30521
30522         Add context arguments to u*_casemap functions.
30523         * lib/unicase/unicasemap.h: Include unicase.h.
30524         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30525         suffix_context arguments.
30526         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30527         functions.
30528         (FUNC): Add prefix_context and suffix_context arguments. Use
30529         uc_is_cased and uc_is_case_ignorable.
30530         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30531         * lib/unicase/u16-casemap.c: Likewise.
30532         * lib/unicase/u32-casemap.c: Likewise.
30533         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30534         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30535         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30536         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30537         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30538         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30539
30540         New module 'unicase/u32-suffix-context'.
30541         * lib/unicase/u32-suffix-context.c: New file.
30542         * modules/unicase/u32-suffix-context: New file.
30543
30544         New module 'unicase/u16-suffix-context'.
30545         * lib/unicase/u16-suffix-context.c: New file.
30546         * modules/unicase/u16-suffix-context: New file.
30547
30548         New module 'unicase/u8-suffix-context'.
30549         * lib/unicase/u8-suffix-context.c: New file.
30550         * lib/unicase/u-suffix-context.h: New file.
30551         * modules/unicase/u8-suffix-context: New file.
30552
30553         New module 'unicase/empty-suffix-context'.
30554         * lib/unicase/empty-suffix-context.c: New file.
30555         * modules/unicase/empty-suffix-context: New file.
30556
30557         New module 'unicase/u32-prefix-context'.
30558         * lib/unicase/u32-prefix-context.c: New file.
30559         * modules/unicase/u32-prefix-context: New file.
30560
30561         New module 'unicase/u16-prefix-context'.
30562         * lib/unicase/u16-prefix-context.c: New file.
30563         * modules/unicase/u16-prefix-context: New file.
30564
30565         New module 'unicase/u8-prefix-context'.
30566         * lib/unicase/u8-prefix-context.c: New file.
30567         * lib/unicase/u-prefix-context.h: New file.
30568         * lib/unicase/context.h: New file.
30569         * modules/unicase/u8-prefix-context: New file.
30570
30571         New module 'unicase/empty-prefix-context'.
30572         * lib/unicase/empty-prefix-context.c: New file.
30573         * modules/unicase/empty-prefix-context: New file.
30574
30575         New module 'unicase/ignorable'.
30576         * lib/unicase/ignorable.c: New file.
30577         * modules/unicase/ignorable: New file.
30578
30579         New module 'unicase/cased'.
30580         * lib/unicase/caseprop.h: New file.
30581         * lib/unicase/cased.c: New file.
30582         * modules/unicase/cased: New file.
30583
30584         New functions for case mapping of substrings.
30585         * lib/unicase.h (casing_prefix_context_t): New type.
30586         (unicase_empty_prefix_context): New variable.
30587         (u8_casing_prefix_context, u16_casing_prefix_context,
30588         u32_casing_prefix_context, u8_casing_prefixes_context,
30589         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30590         declarations.
30591         (casing_suffix_context_t): New type.
30592         (unicase_empty_suffix_context): New variable.
30593         (u8_casing_suffix_context, u16_casing_suffix_context,
30594         u32_casing_suffix_context, u8_casing_suffixes_context,
30595         u16_casing_suffixes_context, u32_casing_suffixes_context,
30596         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30597         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30598         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30599         declarations.
30600
30601 2009-06-28  Jim Meyering  <meyering@redhat.com>
30602
30603         boostrap: indent only with spaces
30604         * build-aux/bootstrap: Indent only with spaces, never TABs.
30605
30606         bootstrap: split long lines
30607         * build-aux/bootstrap: Keep line length < 80.
30608
30609         bootstrap: sync from coreutils
30610         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30611         just as autoreconf does.  Verify a list of prerequisite
30612         package-name,version-number pairs if defined in bootstrap.conf.
30613         Refer to README-prereq, if prerequisites are not satisfied.
30614
30615 2009-06-27  Eric Blake  <ebb9@byu.net>
30616
30617         tests: add test for bogus NULL definition
30618         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30619         * tests/test-stdlib.c: Likewise.
30620         * tests/test-string.c: Likewise.
30621         * tests/test-locale.c: Likewise.
30622         * tests/test-unistd.c: Likewise.
30623         * modules/stdio-tests (Depends-on): Add verify.
30624         * modules/stdlib-tests (Depends-on): Likewise.
30625         * modules/string-tests (Depends-on): Likewise.
30626         * modules/locale-tests (Depends-on): Likewise.
30627         * modules/unistd-tests (Depends-on): Likewise.
30628
30629 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30630
30631         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30632         self-explaining comment.
30633         * m4/selinux-selinux-h: Update serial.
30634         (gl_LIBSELINUX): New macro, adding a warning for missing development
30635         packages to code extracted from...
30636         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30637         Add warning for missing development packages here, too.
30638
30639 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30640
30641         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30642
30643 2009-06-25  Eric Blake  <ebb9@byu.net>
30644
30645         version-etc: fix regression
30646         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30647         gcc.
30648         (version_etc): Use it, to catch bugs with trailing NULL.
30649         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30650         (version_etc_va): Fix logic bug.
30651         * modules/version-etc-tests: Add test.
30652         * tests/test-version-etc.c: New file.
30653         * tests/test-version-etc.sh: Likewise.
30654
30655 2009-06-25  Sam Steingold  <sds@gnu.org>
30656
30657         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30658         mbtowc declaration.
30659
30660 2009-06-25  Eric Blake  <ebb9@byu.net>
30661
30662         fpurge: migrate into <stdio.h>
30663         * lib/fpurge.h: Delete...
30664         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30665         * lib/fpurge.c (fpurge): Change declaring header.
30666         * modules/fpurge (Files): Drop deleted file.
30667         (Depends-on): Add stdio.
30668         (configure.ac): Set witness.
30669         * modules/stdio (Makefile.am): Support fpurge macros.
30670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30671         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30672         * lib/fflush.c: Update client.
30673         * tests/test-fpurge.c: Likewise.
30674         * NEWS: Mention the change.
30675
30676 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30677
30678         * lib/argp-version-etc.c (program_authors): Add const
30679         qualifier.
30680         * lib/version-etc.c: Fix typos in the comments.
30681         * modules/argp-version-etc: Depends on version-etc.
30682
30683 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30684
30685         argp-version-etc: new module.
30686
30687         * lib/argp-version-etc.c: New file.
30688         * lib/argp-version-etc.h: New file.
30689         * modules/argp-version-etc: New file.
30690         * modules/argp-version-etc-tests: New file.
30691         * tests/test-argp-version-etc.c: New test.
30692         * tests/test-argp-version-etc-1.sh: New test.
30693
30694 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30695
30696         Provide additional interfaces and documentation for version-etc
30697         module.
30698
30699         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30700         interfaces.
30701         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30702         prototypes.
30703
30704 2009-06-24  Bruno Haible  <bruno@clisp.org>
30705
30706         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30707         HAVE_LIB${NAME} macro.
30708         Reported by Sam Steingold <sds@gnu.org>.
30709
30710 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30711
30712         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30713         needed.
30714
30715 2009-06-21  Bruno Haible  <bruno@clisp.org>
30716
30717         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30718         work.
30719         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30720         together with LIB${NAME}, LTLIB${NAME}.
30721         Reported by Sam Steingold <sds@gnu.org>.
30722
30723 2009-06-20  Jim Meyering  <meyering@redhat.com>
30724
30725         tests: make sc_require_test_exit_idiom more generic
30726         * top/maint.mk (Exit_witness_file): New overridable variable.
30727         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30728         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30729
30730 2009-06-19  Jim Meyering  <meyering@redhat.com>
30731
30732         hash: reverse order of src/dst parameters in an internal interface
30733         * lib/hash.c (transfer_entries): Reverse order of parameters to
30734         put DST before SRC.  Adjust callers.
30735
30736         tests: test-hash: avoid wholesale duplication
30737         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30738         Instead, use a loop and add a single conditional.
30739
30740         tests: test-hash: allow seed selection via a command line argument
30741         * tests/test-hash.c (get_seed): New function.
30742         (main): Use it.
30743
30744 2009-06-19  Eric Blake  <ebb9@byu.net>
30745
30746         hash: avoid memory leak on allocation failure
30747         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30748         failure.  Factor repeated algorithm...
30749         (transfer_entries): ...into new helper routine.
30750         (hash_delete): React to hash_rehash return value.
30751
30752         hash: reduce memory pressure in hash_rehash no-op case
30753         * lib/hash.c (next_prime): Avoid overflow.
30754         (hash_initialize): Factor bucket size computation...
30755         (compute_bucket_size): ...into new helper function.
30756         (hash_rehash): Use new function and open coding to reduce memory
30757         pressure, and avoid a memory leak in USE_OBSTACK code.
30758         Reported by Jim Meyering.
30759
30760 2009-06-18  Eric Blake  <ebb9@byu.net>
30761
30762         hash: make rotation more obvious
30763         * modules/hash (Depends-on): Add bitrotate and stdint.
30764         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
30765         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
30766         (SIZE_MAX): Rely on headers for definition.
30767         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
30768         (raw_hasher): Use rotr_sz.
30769         Suggested by Jim Meyering.
30770
30771         hash: fix memory leak in last patch
30772         * lib/hash.c (hash_rehash): Avoid memory leak.
30773
30774         hash: avoid no-op rehashing
30775         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
30776
30777         hash: provide default callback functions
30778         * lib/hash.c (raw_hasher, raw_comparator): New functions.
30779         (hash_initialize): Use them as defaults.
30780         * tests/test-hash.c (main): Test this.
30781
30782         hash: minor optimization
30783         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
30784         when possible.
30785         (hash_initialize): Document this promise.
30786         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
30787         * tests/test-hash.c (hash_compare_strings): Test this.
30788
30789 2009-06-18  Bruno Haible  <bruno@clisp.org>
30790
30791         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
30792         going to be replaced anyway.
30793
30794 2009-06-18  Bruno Haible  <bruno@clisp.org>
30795
30796         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
30797         in one place.
30798         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
30799         be replaced anyway.
30800
30801 2009-06-18  Eric Blake  <ebb9@byu.net>
30802
30803         hash: check for resize before insertion
30804         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
30805         threshold before insertion, so that a pathological hash_rehash
30806         that fills every bucket can still trigger another rehash.
30807
30808 2009-06-18  Jim Meyering  <meyering@redhat.com>
30809
30810         hash-tests: add a loop around the small tests
30811         * tests/test-hash.c (main): Repeat small tests with selected
30812         small initial table sizes.
30813
30814 2009-06-17  Eric Blake  <ebb9@byu.net>
30815
30816         hash: minor cleanups
30817         * lib/hash.h (hash_entry): Make opaque, by moving...
30818         * lib/hash.c (hash_entry): ...here.
30819         (hash_insert): Clarify restrictions on what can be inserted.
30820         (hash_get_next): Clarify when it is safe to remove an element
30821         during traversal.
30822         (check_tuning): Skip verification when tuning is known safe.
30823         (hash_initialize): Clarify restrictions on tuning.
30824
30825 2009-06-17  Jim Meyering  <jim@meyering.net>
30826         and Eric Blake  <ebb9@byu.net>
30827
30828         hash-tests: new module
30829         * modules/hash-tests: New file.
30830         * tests/test-hash.c: New file.
30831
30832 2009-06-17  Eric Blake  <ebb9@byu.net>
30833
30834         strstr-simple: document new module
30835         * MODULES.html.sh: Document new module.
30836
30837         strstr, strcasestr: replace on platforms with broken memchr
30838         * modules/strstr: Split into...
30839         * modules/strstr-simple: ...new module that does not care about
30840         performance, but does care about glibc bug.
30841         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
30842         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
30843         if platform memchr is broken, per Debian bug 521737.
30844         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
30845         memchr.
30846         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
30847         * doc/posix-functions/strstr.texi (strstr): Document the fix.
30848         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30849         * modules/mountlist (Depends-on): Add strstr-simple.
30850         * modules/gen-uni-tables (Depends-on): Likewise.
30851         * modules/argz (Depends-on): Add strstr.
30852
30853 2009-06-17  Bruno Haible  <bruno@clisp.org>
30854
30855         * modules/posix_spawn-internal (Depends-on): Add errno.
30856
30857 2009-06-17  Bruno Haible  <bruno@clisp.org>
30858
30859         Define missing ESTALE on Interix 3.5.
30860         * lib/errno.in.h (ESTALE): Assign a value if missing.
30861         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
30862         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
30863         missing.
30864         * doc/posix-headers/errno.texi: Mention the Interix bug.
30865         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
30866
30867 2009-06-15  Eric Blake  <ebb9@byu.net>
30868
30869         memchr, memchr2: add valgrind exception
30870         * lib/memchr.valgrind: New file.
30871         * lib/memchr2.valgrind: New file.
30872         * modules/memchr (Files): Distribute valgrind file.
30873         * modules/memchr2 (Files): Likewise.
30874
30875         docs: memchr is no longer obsolete
30876         * MODULES.html.sh: Move memchr from obsolete to string.h section.
30877         * lib/string.in.h (memchr): Simplify logic.
30878
30879 2009-06-14  Jim Meyering  <meyering@redhat.com>
30880
30881         link-follow: fix the "checking..." message to not mention trailing slash
30882         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
30883         never considered trailing slashes.
30884
30885 2009-06-14  Bruno Haible  <bruno@clisp.org>
30886
30887         * m4/memchr.m4: Mention also the bug on IA-64.
30888         * doc/posix-functions/memchr.texi: Likewise.
30889
30890 2009-06-12  Eric Blake  <ebb9@byu.net>
30891
30892         memchr: detect broken x86_64 and alpha implementations
30893         * modules/memchr-tests (Depends-on): Move mmap detection...
30894         * modules/memchr (Depends-on): ...here.
30895         (configure.ac): Set indicator.
30896         * lib/string.in.h (memchr): Declare replacement.
30897         * modules/string (Makefile.am): Trigger replacement.
30898         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30899         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
30900         bugs.
30901         * doc/posix-functions/memchr.texi (memchr): Document the bug.
30902         * modules/getpagesize (License): Relax license.
30903
30904 2009-06-11  Bruno Haible  <bruno@clisp.org>
30905
30906         * lib/idpriv.h: Add more references.
30907
30908 2009-06-08  Bruno Haible  <bruno@clisp.org>
30909
30910         Tests for module 'idpriv-droptemp'.
30911         * modules/idpriv-droptemp-tests: New file.
30912         * tests/test-idpriv-droptemp.sh: New file.
30913         * tests/test-idpriv-droptemp.su.sh: New file.
30914         * tests/test-idpriv-droptemp.c: New file.
30915
30916         New module 'idpriv-droptemp'.
30917         * lib/idpriv-droptemp.c: New file.
30918         * modules/idpriv-droptemp: New file.
30919
30920 2009-06-08  Bruno Haible  <bruno@clisp.org>
30921
30922         Tests for module 'idpriv-drop'.
30923         * modules/idpriv-drop-tests: New file.
30924         * tests/test-idpriv-drop.sh: New file.
30925         * tests/test-idpriv-drop.su.sh: New file.
30926         * tests/test-idpriv-drop.c: New file.
30927
30928         New module 'idpriv-drop'.
30929         * lib/idpriv.h: New file.
30930         * lib-idpriv-drop.c: New file.
30931         * m4/idpriv.m4: New file.
30932         * modules/idpriv-drop: New file.
30933
30934 2009-06-08  Bruno Haible  <bruno@clisp.org>
30935
30936         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
30937         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30938         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30939         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30940         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30941         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30942         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30943
30944 2009-06-08  Eric Blake  <ebb9@byu.net>
30945
30946         test-strstr: use memory fence, when possible
30947         * tests/test-strstr.c (main): Use memory fence, in order to be
30948         more likely to trigger Debian bug 521737.
30949         * modules/strstr-tests (Files): Pull in additional files.
30950
30951         memchr: no longer obsolete, for wider field testing
30952         * modules/memchr (Status, Notice): Delete, this module is no
30953         longer obsolete.
30954         * modules/vasnprintf (Depends-on): Add memchr.
30955
30956 2009-06-07  Jim Meyering  <meyering@redhat.com>
30957
30958         hash: declare some functions with the warn_unused_result attribute
30959         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30960
30961 2009-06-07  Bruno Haible  <bruno@clisp.org>
30962
30963         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30964         Reported by Eric Blake.
30965
30966 2009-06-06  Eric Blake  <ebb9@byu.net>
30967
30968         test-alignof: fix typo with long double
30969         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30970         compiler error.
30971
30972 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30973
30974         Escape non-texinfo { and }s.
30975         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30976         markup error.
30977
30978 2009-06-04  Jim Meyering  <meyering@redhat.com>
30979
30980         gitlog-to-changelog: don't infloop on an empty commit log
30981         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30982         Reported by Boris Petersen <transacid@centerim.org>.
30983
30984 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30985
30986         version-etc: extend for packagers
30987         Add three new configure options, intended for packagers:
30988           --with-packager="packager name"
30989           --with-packager-version="packager-specific version"
30990           --with-packager-bug-reports="packager bug reporting"
30991         An example with coreutils:
30992           $ ./configure \
30993             --with-packager=Gentoo \
30994             --with-packager-bug-report=http://bugs.gentoo.org/ \
30995             --with-packager-version="patchset 1.6"
30996           $ ./src/ls --version | head -n2
30997           ls (GNU coreutils) 7.1-dirty
30998           Packaged by Gentoo (patchset 1.6)
30999         Note that the bug reporting info via --help doesn't show up because
31000         coreutils uses its own custom emit_bug_reporting_address() implementation
31001         in src/system.h.  If it didn't, it'd look like:
31002           $ ./src/ls --help | tail -n4
31003           Report bugs to <bug-coreutils@gnu.org>.
31004           Report Gentoo bugs to <http://bugs.gentoo.org/>.
31005           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
31006           General help using GNU software: <http://www.gnu.org/gethelp/>.
31007         * lib/version-etc.c: Print new information, if provided.
31008         * m4/version-etc.m4: New file.
31009         * modules/version-etc (Files): Add m4/version-etc.m4.
31010         (configure.ac): Add gl_VERSION_ETC.
31011
31012 2009-05-31  Bruno Haible  <bruno@clisp.org>
31013
31014         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
31015         and 'int64_t'.
31016         * modules/alignof-tests (Dependencies): Add stdint.
31017         Reported by Eric Blake.
31018
31019 2009-05-31  Bruno Haible  <bruno@clisp.org>
31020
31021         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
31022         restriction due to compiler bugs.
31023         Reported by Eric Blake.
31024
31025 2009-05-31  Simon Josefsson  <simon@josefsson.org>
31026             Bruno Haible  <bruno@clisp.org>
31027
31028         Fix test-alignof failure.
31029         * lib/alignof.h (alignof_slot): New macro.
31030         (alignof_type): New macro, with the same semantics as the previous
31031         'alignof'.
31032         (alignof): Alias to alignof_slot.
31033         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
31034         check that the results are usable as constant expressions.
31035
31036 2009-05-31  Bruno Haible  <bruno@clisp.org>
31037
31038         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
31039         * tests/test-memchr.c (main): Check that memchr does not read past the
31040         first occurrence of the byte.
31041         * tests/test-strstr.c (main): Update comment.
31042         Suggested by Eric Blake.
31043
31044 2009-05-30  Bruno Haible  <bruno@clisp.org>
31045
31046         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
31047         detail how to use dumpbin.
31048         Reported by David Byron <dbyron@dbyron.com>.
31049
31050 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31051
31052         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31053
31054 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31055
31056         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31057
31058 2009-05-28  Bruno Haible  <bruno@clisp.org>
31059
31060         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
31061         build-aux/ files.
31062
31063 2009-05-28  Simon Josefsson  <simon@josefsson.org>
31064
31065         * gnulib-tool (func_import): Transform license on build-aux/ files too.
31066
31067 2009-05-27  Simon Josefsson  <simon@josefsson.org>
31068
31069         * gnulib-tool (sed_transform_main_lib_file)
31070         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
31071         regexps.
31072
31073 2009-05-26  Simon Josefsson  <simon@josefsson.org>
31074
31075         * tests/test-strstr.c: Add another self-test.
31076         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
31077         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
31078
31079 2009-05-23  Bruno Haible  <bruno@clisp.org>
31080
31081         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
31082         change.
31083
31084 2009-05-21  Bruno Haible  <bruno@clisp.org>
31085
31086         Simplify use of mode_t varargs.
31087         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31088         uses 'mode_t' or 'int'.
31089         * lib/openat.c (openat): Likewise.
31090         * lib/open-safer.c (open_safer): Likewise.
31091         * m4/mode_t.m4: New file.
31092         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31093         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31094         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31095         * modules/open (Files): Add m4/mode_t.m4.
31096         * modules/openat (Files): Likewise.
31097         * modules/fcntl-safer (Files): Likewise.
31098         Suggested by Eric Blake.
31099
31100 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31101
31102         * doc/glibc-functions/fallocate.texi: New file.
31103         * doc/gnulib.texi: Include it.
31104
31105 2009-05-21  Eric Blake  <ebb9@byu.net>
31106             Bruno Haible  <bruno@clisp.org>
31107
31108         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31109         invocations.
31110         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31111
31112 2009-05-21  Eric Blake  <ebb9@byu.net>
31113             Bruno Haible  <bruno@clisp.org>
31114
31115         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31116         include_next. Fix of 2008-11-20 commit.
31117         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31118         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31119         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31120         NEXT_MATH_H.
31121         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31122         instead of NEXT_MATH_H.
31123
31124 2009-05-21  Bruno Haible  <bruno@clisp.org>
31125
31126         Avoid redefinition warnings for SIZE_MAX.
31127         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31128         Reported by Simon Josefsson.
31129
31130 2009-05-21  Bruno Haible  <bruno@clisp.org>
31131
31132         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31133         AC_CACHE_VAL.
31134
31135 2009-05-20  Bruno Haible  <bruno@clisp.org>
31136
31137         Make zeroptr.h work on mingw.
31138         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31139         mprotect.
31140         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31141         * modules/memchr2-tests (configure.ac): Likewise.
31142         * modules/memcmp-tests (configure.ac): Likewise.
31143         * modules/memmem-tests (configure.ac): Likewise.
31144         * modules/memrchr-tests (configure.ac): Likewise.
31145         Reported by Simon Josefsson.
31146
31147 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31148
31149         * tests/test-glob.c: Include string.h for strcmp prototype.
31150
31151 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31152
31153         * modules/getdelim (Depends-on): Add explicit stdint, although it
31154         was implicitly already pulled in via realloc-posix.
31155         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31156
31157 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31158
31159         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31160         G. Christensen" <tgc@jupiterrise.com>.
31161         * m4/sys_socket_h.m4: Check for sa_family_t.
31162         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31163         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31164         * tests/test-sys_socket.c: Check that sa_family_t works.
31165
31166 2009-05-18  Eric Blake  <ebb9@byu.net>
31167
31168         maint.mk: allow gnulib_dir in VPATH build
31169         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31170
31171 2009-05-15  Jim Meyering  <meyering@redhat.com>
31172
31173         maint.mk: Give gnulib_dir a default definition.
31174         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31175         Thus, most packages no longer need to specify this variable in cfg.mk
31176
31177 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31178
31179         rename.m4: fix typos that would make non-mingw cross-configure fail
31180         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31181
31182 2009-05-13  Eric Blake  <ebb9@byu.net>
31183
31184         mmap-anon: avoid out-of-order autoconf expansion
31185         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31186         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31187         * modules/memchr-tests (Depends-on): Add extensions.
31188         * modules/memchr2-tests (Depends-on): Add extensions.
31189         * modules/memcmp-tests (Depends-on): Add extensions.
31190         * modules/memmem-tests (Depends-on): Add extensions.
31191         * modules/memrchr-tests (Depends-on): Add extensions.
31192
31193 2009-05-13  Bruno Haible  <bruno@clisp.org>
31194
31195         Make some tests ISO C 99 compliant.
31196         * tests/zerosize-ptr.h: New file.
31197         * tests/test-memchr.c: Include zerosize-ptr.h.
31198         (main): Use a zero-size object pointer instead of NULL.
31199         * tests/test-memchr2.c: Include zerosize-ptr.h.
31200         (main): Use a zero-size object pointer instead of NULL.
31201         * tests/test-memcmp.c: Include zerosize-ptr.h.
31202         (main): Use a zero-size object pointer instead of NULL.
31203         * tests/test-memmem.c: Include zerosize-ptr.h.
31204         (main): Use a zero-size object pointer instead of NULL.
31205         * tests/test-memrchr.c: Include zerosize-ptr.h.
31206         (main): Use a zero-size object pointer instead of NULL.
31207         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31208         m4/mmap-anon.m4.
31209         (Depends-on): Add getpagesize.
31210         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31211         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31212         m4/mmap-anon.m4.
31213         (Depends-on): Add getpagesize.
31214         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31215         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31216         m4/mmap-anon.m4.
31217         (Depends-on): Add getpagesize.
31218         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31219         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31220         m4/mmap-anon.m4.
31221         (Depends-on): Add getpagesize.
31222         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31223         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31224         m4/mmap-anon.m4.
31225         (Depends-on): Add getpagesize.
31226         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31227
31228 2009-05-12  Bruno Haible  <bruno@clisp.org>
31229
31230         Tests for module 'alignof'.
31231         * modules/alignof-tests: New file.
31232         * tests/test-alignof.c: New file.
31233
31234 2009-05-12  Bruno Haible  <bruno@clisp.org>
31235
31236         Fix alignof macro.
31237         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31238         vendor compilers that are always correct.
31239
31240 2009-05-12  Bruno Haible  <bruno@clisp.org>
31241
31242         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31243         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31244         not whether its fully works.
31245
31246 2009-05-12  Bruno Haible  <bruno@clisp.org>
31247
31248         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31249
31250 2009-05-12  Jim Meyering  <meyering@redhat.com>
31251
31252         * top/maint.mk: Adjust backslash alignment.
31253
31254 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31255
31256         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31257
31258 2009-05-11  Eric Blake  <ebb9@byu.net>
31259
31260         argp: avoid undefined behavior
31261         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31262         macros.
31263
31264 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31265
31266         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31267         user.name to prevent git commit from complaining.
31268
31269 2009-05-10  Bruno Haible  <bruno@clisp.org>
31270
31271         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31272         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31273         it rewrites every file name only once.
31274         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31275
31276 2009-05-08  Bruno Haible  <bruno@clisp.org>
31277
31278         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31279         instead of 'max'.
31280
31281 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31282
31283         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31284         sockaddr_storage test.
31285
31286 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31287
31288         * modules/sys_socket (Makefile.am): Substitute
31289         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31290         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31291         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31292         * tests/test-sys_socket.c: Check sockaddr_storage.
31293
31294 2009-05-08  Bruno Haible  <bruno@clisp.org>
31295
31296         New module 'alignof'.
31297         * lib/alignof.h: New file.
31298         * modules/alignof: New file.
31299
31300 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31301             Bruno Haible  <bruno@clisp.org>
31302
31303         Fix test-file-has-acl on FreeBSD.
31304         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31305         mask is implicitly added.
31306         * tests/test-file-has-acl.c: Include <signal.h>.
31307         (main): Terminate the test after 5 seconds.
31308         * modules/acl-tests (configure.ac): Check for alarm function.
31309
31310 2009-05-04  Bruno Haible  <bruno@clisp.org>
31311
31312         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31313         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31314         * modules/errno (configure.ac): Drop AC_REQUIRE.
31315         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31316         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31317
31318 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31319
31320         * modules/glob-tests: New module.
31321         * tests/test-glob.c: Add.
31322
31323 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31324
31325         * modules/fnmatch-tests: New module.
31326         * tests/test-fnmatch.c: Add.
31327
31328 2009-05-04  Eric Blake  <ebb9@byu.net>
31329
31330         maint: make the new no-submodule-changes rule VPATH-safe
31331         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31332
31333 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31334             Bruno Haible  <bruno@clisp.org>
31335
31336         acl: Fix infinite loop on FreeBSD.
31337         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31338         of return value from acl_get_entry.
31339         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31340         Likewise.
31341
31342 2009-05-03  Bruno Haible  <bruno@clisp.org>
31343
31344         * lib/acl-internal.h (acl_entries): Clarify return value.
31345         * lib/acl_entries.c (acl_entries): Likewise.
31346
31347 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31348
31349         Bug fix in acl module.
31350         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31351
31352 2009-05-03  Bruno Haible  <bruno@clisp.org>
31353
31354         Create gperf-generated file in the source dir, not in the build dir.
31355         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31356         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31357         * modules/unicase/locale-language (unicase/locale-languages.h):
31358         Likewise.
31359         * modules/unicase/special-casing (unicase/special-casing-table.h):
31360         Likewise.
31361         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31362         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31363         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31364         Reported by Ralf Wildenhues.
31365
31366 2009-05-03  Bruno Haible  <bruno@clisp.org>
31367
31368         * modules/fnmatch (Description, configure.ac): Taken from
31369         fnmatch-posix.
31370         * modules/fnmatch-posix: Turn into a symbolic reference to the
31371         'fnmatch' module, and deprecate.
31372         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31373
31374 2009-05-03  Bruno Haible  <bruno@clisp.org>
31375
31376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31377         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31378         Reported by Ralf Wildenhues.
31379
31380 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31381
31382         * m4/fnmatch.m4: Fix fnmatch re-define.
31383
31384 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31385
31386         priv-set: new module and tests; adapt write-any-file
31387         * lib/priv-set.c: New file.
31388         * lib/priv-set.h: New file.
31389         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31390         * lib/write-any-file.c: Simplify by using priv-set module.
31391         * m4/priv-set.m4: New file.
31392         * modules/priv-set: New file.
31393         * modules/unlinkdir: Add dependency on priv-set module.
31394         * modules/write-any-file: Likewise.
31395
31396         Tests for module 'priv-set'.
31397         * modules/priv-set-tests: New file.
31398         * tests/test-priv-set.c: New file.
31399
31400 2009-05-03  Jim Meyering  <meyering@redhat.com>
31401             Bruno Haible  <bruno@clisp.org>
31402
31403         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31404         use the converted UTF-8 variant of the name instead.
31405
31406 2009-05-03  Jim Meyering  <meyering@redhat.com>
31407
31408         tests: tighten some getdate tests
31409         * tests/test-getdate.c (main): Tighten tests: require equality,
31410         not just greater than.  Set TZ envvar to UTC0.
31411
31412 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31413
31414         getdate: correctly interpret "next monday" when run on a Monday
31415         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31416         that e.g., "next tues" (when run on a tuesday) results in a date
31417         that is one week in the future, and not today's date.
31418         I.e., add a week when the wday is the same as the current one.
31419         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31420         and earlier by Martin Bernreuther and Jan Minář.
31421         * tests/test-getdate.c (main): Check that "next DAY" is always in
31422         the future and that "last DAY" is always in the past.
31423
31424 2009-05-02  Jim Meyering  <meyering@redhat.com>
31425
31426         build: ensure that a release build fails when a submodule is unclean
31427         * top/maint.mk (no-submodule-changes): New rule.
31428         (alpha beta major): Depend on it.
31429
31430 2009-05-02  Bruno Haible  <bruno@clisp.org>
31431
31432         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31433         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31434         shell variable gl_fnmatch_required to detect which variant is
31435         requested.
31436         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31437         gl_FUNC_FNMATCH_POSIX.
31438         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31439         exclude fnmatch-posix.
31440
31441 2009-05-02  Bruno Haible  <bruno@clisp.org>
31442
31443         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31444         * modules/mbsrtowcs (License): Change to LGPLv2+.
31445         * modules/strnlen1 (License): Likewise.
31446         Reported by Simon Josefsson.
31447
31448 2009-05-02  Bruno Haible  <bruno@clisp.org>
31449
31450         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31451         "cross".
31452         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31453         gnulib-tool was called with option --source-base=lib.
31454
31455 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31456
31457         Use automake *-local hooks without commands, for extensibility.
31458         * modules/localcharset (Makefile.am): Rename install-exec-local
31459         rule to install-exec-localcharset, and make it a prerequisite of
31460         install-exec-local.  Likewise, rename the uninstall-local rule to
31461         uninstall-localcharset, and make it a prerequisite of the former.
31462
31463 2009-05-01  Bruno Haible  <bruno@clisp.org>
31464
31465         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31466         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31467         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31468         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31469         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31470         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31471         m4/locale-zh.m4, m4/codeset.m4.
31472
31473         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31474         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31475         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31476         m4/locale-zh.m4.
31477
31478         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31479         REPLACE_WCRTOMB if mbstate_t must be replaced.
31480         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31481         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31482
31483 2009-05-01  Bruno Haible  <bruno@clisp.org>
31484
31485         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31486         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31487         dngettext, dcngettext, textdomain, bindtextdomain,
31488         bind_textdomain_codeset): Undefine before redefining.
31489
31490 2009-04-30  Bruno Haible  <bruno@clisp.org>
31491
31492         Fix bug introduced on 2009-04-25.
31493         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31494         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31495         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31496         is defined.
31497         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31498         is defined.
31499         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31500         is defined.
31501         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31502
31503 2009-04-28  Bruno Haible  <bruno@clisp.org>
31504
31505         Comment tweaks.
31506         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31507         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31508         * lib/unicase.h (u*_casexfrm): Likewise.
31509         Reported by Paolo Bonzini.
31510
31511 2009-04-28  Bruno Haible  <bruno@clisp.org>
31512
31513         Fix a compilation error.
31514         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31515         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31516         Reported by Jim Meyering.
31517
31518 2009-04-27  Bruno Haible  <bruno@clisp.org>
31519
31520         New module 'libunistring'.
31521         * modules/libunistring: New file.
31522         * m4/libunistring.m4: New file.
31523         * MODULES.html.sh (Unicode string functions): Add it.
31524
31525 2009-04-27  Eric Blake  <ebb9@byu.net>
31526
31527         maint.mk: allow package-specific header to provide <config.h>
31528         * top/maint.mk (sc_require_config_h): New variable.
31529         (sc_require_config_h, sc_require_config_h_first): Use it.
31530
31531 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31532
31533         * top/maint.mk (sc_avoid_if_before_free): Except
31534         useless-if-before-free script.
31535
31536 2009-04-27  Eric Blake  <ebb9@byu.net>
31537
31538         maintainer-makefile: depend on all required helper scripts
31539         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31540         useless-if-before-free.
31541         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31542         version, rather than assuming gnulib checkout is available.
31543         Reported by Simen Josefsson.
31544
31545 2009-04-26  Bruno Haible  <bruno@clisp.org>
31546
31547         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31548         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31549         "../" or "..".
31550
31551 2009-04-26  Bruno Haible  <bruno@clisp.org>
31552
31553         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31554         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31555         AC_LIB_HAVE_LINKFLAGS.
31556
31557 2009-04-26  Bruno Haible  <bruno@clisp.org>
31558
31559         Simplify calling convention of u*_conv_from_encoding.
31560         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31561         u32_conv_from_encoding): Expect a resultbuf argument and return the
31562         result directly as a pointer.
31563         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31564         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31565         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31566         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31567         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31568         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31569         Update.
31570         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31571         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31572         * lib/vasnprintf.c (VASNPRINTF): Update.
31573         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31574         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31575         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31576         * NEWS: Mention the change.
31577
31578 2009-04-26  Bruno Haible  <bruno@clisp.org>
31579
31580         Simplify calling convention of u*_conv_to_encoding.
31581         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31582         u32_conv_to_encoding): Expect a resultbuf argument and return the
31583         result directly as a pointer.
31584         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31585         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31586         freeing scaled_offsets if mem_iconveha failed.
31587         * lib/unicase/u-casexfrm.h (FUNC): Update.
31588         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31589         * lib/vasnprintf.c (VASNPRINTF): Update.
31590         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31591         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31592         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31593         * NEWS: Mention the change.
31594
31595 2009-04-26  Bruno Haible  <bruno@clisp.org>
31596
31597         Avoid test failures on AIX and OSF/1.
31598         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31599         malloc(0).
31600         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31601         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31602         Likewise.
31603         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31604         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31605         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31606         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31607         * doc/posix-functions/malloc.texi: Document the portability problem
31608         related to malloc(0).
31609
31610 2009-04-26  Bruno Haible  <bruno@clisp.org>
31611
31612         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31613         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31614         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31615
31616 2009-04-25  Bruno Haible  <bruno@clisp.org>
31617
31618         Avoid link error when creating a namespace clean library.
31619         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31620         as macro with arguments if already defined as an alias.
31621         * lib/signbitf.c (gl_signbitf): Don't undefine.
31622         * lib/signbitd.c (gl_signbitd): Don't undefine.
31623         * lib/signbitl.c (gl_signbitl): Don't undefine.
31624
31625 2009-04-25  Jim Meyering  <meyering@redhat.com>
31626
31627         vc-list-files: fix another quoting bug
31628         * build-aux/vc-list-files: Avoid sed backslash expansion
31629         of pathological directory names.
31630
31631 2009-04-25  Eric Blake  <ebb9@byu.net>
31632
31633         vc-list-files: fix shell quoting error
31634         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31635         timestamp.
31636
31637 2009-04-25  Jim Meyering  <meyering@redhat.com>
31638
31639         vc-list-files: restore lost functionality with subdir argument
31640         * build-aux/vc-list-files: When given a non-"." sub-directory
31641         argument, substitute the $dir/ prefix back onto each resulting name.
31642         Otherwise, coreutils' root_tests check would fail.
31643
31644 2009-04-24  Eric Blake  <ebb9@byu.net>
31645
31646         vc-list-files: ignore git symlinks
31647         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31648         than ls-files, to ignore git symlinks.
31649
31650         maint.mk: import improvements from m4
31651         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31652         (move_if_change): Delete unused macro.
31653         (news-date-check, vc-diff-check): Support VPATH builds.
31654         (announcement): Likewise.  Split --bootstrap-tools list...
31655         (boostrap-tools): ...into separate list, which can be overridden
31656         in cfg.mk.
31657         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31658         requiring dependency on useless-if-before-free module.
31659         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31660         Support VPATH builds.
31661
31662 2009-04-24  Jim Meyering  <meyering@redhat.com>
31663
31664         maint.mk: remove coreutils-specific rules and variables
31665         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31666         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31667         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31668
31669         maint.mk: remove obsolete rule
31670         * top/maint.mk (rel-check): Remove rule.
31671         (WGET, WGETFLAGS): Remove now-unused variables.
31672
31673 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31674
31675         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31676         consistency.
31677
31678         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31679         '$(PATH_SEPARATOR)' instead of ':'.
31680
31681 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31682
31683         * lib/getopt1.c (main): Use 'const' for static array.
31684
31685 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31686
31687         * top/maint.mk: Sync with coreutils.
31688         * NEWS: Explain incompatibilities.
31689
31690 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31691             Bruno Haible  <bruno@clisp.org>
31692
31693         Fix cross-compilation results.
31694         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31695         statement, as third argument of AC_TRY_RUN.
31696         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31697         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31698         Likewise.
31699         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31700         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31701         Likewise.
31702         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31703         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31704         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31705
31706 2009-04-20  Bruno Haible  <bruno@clisp.org>
31707
31708         Avoid test failure on mingw.
31709         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31710
31711 2009-04-20  Bruno Haible  <bruno@clisp.org>
31712
31713         Avoid compilation error on mingw.
31714         * modules/localename-tests (Depends-on): Add locale.
31715
31716 2009-04-19  Bruno Haible  <bruno@clisp.org>
31717
31718         Support for building a shared library on Windows platforms.
31719         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31720         (main): Test the presence of UNINORM_NFC here.
31721         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31722         (main): Test the presence of UNINORM_NFD here.
31723         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31724         (main): Test the presence of UNINORM_NFKC here.
31725         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31726         (main): Test the presence of UNINORM_NFKD here.
31727
31728 2009-04-19  Bruno Haible  <bruno@clisp.org>
31729
31730         Avoid a compiler warning.
31731         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31732         Change type of variable 'sequence'.
31733
31734 2009-04-19  Bruno Haible  <bruno@clisp.org>
31735
31736         * modules/configmake (Makefile.am): When the contents of configmake.h
31737         does not change, arrange to preserve its modification time.
31738
31739 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31740
31741         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31742         gettext domain.
31743
31744 2009-04-16  Jim Meyering  <meyering@redhat.com>
31745
31746         useless-if-before-free: improve conversion code
31747         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31748         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31749
31750 2009-04-14  Bruno Haible  <bruno@clisp.org>
31751
31752         * modules/fcntl (Depends-on): Add extensions.
31753         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31754
31755 2009-04-12  Ben Pfaff  <blp@gnu.org>
31756
31757         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31758         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
31759
31760 2009-03-20  Ben Pfaff  <blp@gnu.org>
31761
31762         Make rename replace existing destinations on Windows.
31763         * m4/rename.m4: Add test for Mingw.
31764         * lib/rename.c: Add rename replacement that uses MoveFileEx with
31765         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
31766         * doc/posix-functions/rename.texi: Document.
31767
31768 2009-04-10  Bruno Haible  <bruno@clisp.org>
31769
31770         New include file "iconveh.h".
31771         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
31772         * lib/striconveh.h: Include it.
31773         (enum iconv_ilseq_handler): Remove definition.
31774         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
31775         striconveh.h.
31776         * lib/striconveha.c: Include striconveh.h.
31777         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
31778         * modules/striconveh (Files): Add lib/iconveh.h.
31779         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31780         lib/striconveh.h.
31781
31782 2009-04-10  Bruno Haible  <bruno@clisp.org>
31783
31784         * lib/uniconv.h: Update comment.
31785
31786 2009-04-10  Bruno Haible  <bruno@clisp.org>
31787
31788         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
31789         always.
31790         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31791         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31792         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31793         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
31794         "unistring-notinline.h", so that the function gets defined always.
31795         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31796         * lib/unistr/u8-uctomb.c: Likewise.
31797         * lib/unistr/u16-mbtouc.c: Likewise.
31798         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31799         * lib/unistr/u16-uctomb.c: Likewise.
31800         * lib/unistr/u32-mbtouc.c: Likewise.
31801         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31802         * lib/unistr/u32-uctomb.c: Likewise.
31803
31804 2009-04-10  Bruno Haible  <bruno@clisp.org>
31805
31806         Mark 'utime' obsolete.
31807         * modules/utime (Status, Notice): New sections.
31808         Suggested by Jim Meyering.
31809
31810         Fix cross-compile guess for utime test.
31811         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
31812         autoconf.
31813         * doc/posix-functions/utime.texi: Give more precisions.
31814         Reported by Jan <ipif@ymail.com>.
31815
31816 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
31817
31818         filevercmp: correct today's change
31819         * lib/filevercmp.c: Also handle coreutils' test inputs.
31820         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
31821
31822         Fix regression in 'filevercmp' module. Thanks Sven Joachim
31823         for reporting it.
31824         * lib/filevercmp.c: Special handle for "", "." and "..".
31825         * tests/test-filevercmp.c: Enlarge the set suite.
31826
31827 2009-04-07  Jim Meyering  <meyering@redhat.com>
31828
31829         useless-if-before-free: show how to remove braced useless free, too
31830         * build-aux/useless-if-before-free: still only in a comment, though.
31831
31832 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
31833
31834         maint.mk: import changes to syntax-check macros from coreutils
31835         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
31836         Use them in the relevant macros.
31837
31838 2009-04-06  Bruno Haible  <bruno@clisp.org>
31839
31840         Fix unportable use of bit-fields.
31841         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
31842         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
31843         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
31844
31845 2009-04-06  Bruno Haible  <bruno@clisp.org>
31846
31847         Avoid test failures on AIX and OSF/1.
31848         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
31849         that malloc(0) = NULL.
31850         * tests/unicase/test-u8-tolower.c (check): Likewise.
31851         * tests/unicase/test-u8-totitle.c (check): Likewise.
31852         * tests/unicase/test-u8-toupper.c (check): Likewise.
31853         * tests/unicase/test-u16-casefold.c (check): Likewise.
31854         * tests/unicase/test-u16-tolower.c (check): Likewise.
31855         * tests/unicase/test-u16-totitle.c (check): Likewise.
31856         * tests/unicase/test-u16-toupper.c (check): Likewise.
31857         * tests/unicase/test-u32-casefold.c (check): Likewise.
31858         * tests/unicase/test-u32-tolower.c (check): Likewise.
31859         * tests/unicase/test-u32-totitle.c (check): Likewise.
31860         * tests/unicase/test-u32-toupper.c (check): Likewise.
31861         * tests/uninorm/test-u8-nfc.c (check): Likewise.
31862         * tests/uninorm/test-u8-nfd.c (check): Likewise.
31863         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
31864         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
31865         * tests/uninorm/test-u16-nfc.c (check): Likewise.
31866         * tests/uninorm/test-u16-nfd.c (check): Likewise.
31867         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
31868         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
31869         * tests/uninorm/test-u32-nfc.c (check): Likewise.
31870         * tests/uninorm/test-u32-nfd.c (check): Likewise.
31871         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
31872         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
31873
31874 2009-04-05  Bruno Haible  <bruno@clisp.org>
31875
31876         Work around an autoconf limitation.
31877         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
31878         comment line if it would be longer than 3 KB.
31879
31880 2009-04-05  Bruno Haible  <bruno@clisp.org>
31881
31882         Avoid test failure with libiconv-1.13.
31883         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
31884         of the expected test results.
31885
31886 2009-04-05  Bruno Haible  <bruno@clisp.org>
31887
31888         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
31889         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
31890         that it should be installed.
31891
31892 2009-04-05  Bruno Haible  <bruno@clisp.org>
31893
31894         * gnulib-tool: New option --copy-file.
31895         (func_usage): Document it.
31896         (func_dest_tmpfilename): Moved out of func_import.
31897         (func_add_file, func_update_file): New functions, extracted from
31898         func_import.
31899         (func_import): Update.
31900
31901 2009-04-05  Karl Berry  <karl@gnu.org>
31902
31903         * README: prominently mention gnulib-tool.
31904         Rearrange sections so getting the code is near the top.
31905
31906 2009-04-05  Bruno Haible  <bruno@clisp.org>
31907
31908         * lib/unicase.h: Mention u*_cmp2.
31909         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31910         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
31911         * lib/unicase/ulc-casecmp.c: Likewise.
31912         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
31913         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
31914         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
31915         unistr/u8-cmp.
31916         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
31917         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
31918         unistr/u16-cmp.
31919         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
31920         unistr/u32-cmp.
31921
31922         * lib/uninorm.h: Mention u*_cmp2.
31923         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31924         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
31925         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
31926         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
31927         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
31928         unistr/u8-cmp.
31929         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
31930         unistr/u16-cmp.
31931         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
31932         unistr/u32-cmp.
31933
31934         New module 'unistr/u32-cmp2'.
31935         * lib/unistr/u32-cmp2.c: New file.
31936         * modules/unistr/u32-cmp2: New file.
31937
31938         New module 'unistr/u16-cmp2'.
31939         * lib/unistr/u16-cmp2.c: New file.
31940         * modules/unistr/u16-cmp2: New file.
31941
31942         New module 'unistr/u8-cmp2'.
31943         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
31944         * lib/unistr/u8-cmp2.c: New file.
31945         * lib/unistr/u-cmp2.h: New file.
31946         * modules/unistr/u8-cmp2: New file.
31947
31948 2009-04-05  Bruno Haible  <bruno@clisp.org>
31949
31950         * lib/unictype.h (uc_property_is_valid): New macro.
31951         * tests/unictype/test-pr_byname.c (main): Use it.
31952
31953         * lib/unistr.h: Doc fixes.
31954         * lib/uniconv.h: Doc fixes.
31955         * lib/unictype.h: Doc fixes.
31956
31957 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31958
31959         Port coreutils 7.2 to Solaris 8.
31960
31961         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31962         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31963         for Solaris 8.  This is a bit of a hack, as it means it's the
31964         caller's responsibility to add -lnsl if needed, but most likely it
31965         won't be needed since only getaddrinfo uses this and getaddrinfo
31966         isn't needed on Solaris 8.
31967
31968         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31969         problem to Solaris 8 encountered with coreutils 7.2, which
31970         resulted in a message "fnmatch.c:292: warning: passing argument 4
31971         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31972         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31973
31974 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31975
31976         * m4/ld-version-script.m4: Add FIXME comment.
31977
31978 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31979
31980         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31981         SOVERSION variable.
31982
31983 2009-04-02  Bruno Haible  <bruno@clisp.org>
31984
31985         * Makefile (info, html, dvi, pdf): Combine the rules.
31986         Suggested by Jim Meyering.
31987
31988 2009-04-01  Bruno Haible  <bruno@clisp.org>
31989
31990         * Makefile (info, html, dvi, pdf): New targets.
31991         Reported by Reuben Thomas <rrt@sc3d.org>.
31992
31993 2009-04-01  Bruno Haible  <bruno@clisp.org>
31994
31995         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
31996         can be put into PATH.
31997         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
31998
31999 2009-04-01  Bruno Haible  <bruno@clisp.org>
32000
32001         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
32002
32003 2009-04-01  Bruno Haible  <bruno@clisp.org>
32004
32005         Rename module 'visibility'.
32006         * modules/lib-symbol-visibility: Renamed from modules/visibility.
32007         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
32008         * doc/gnulib.texi: Update.
32009         * MODULES.html.sh (Misc): Update.
32010         * NEWS: Mention the change.
32011
32012 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32013
32014         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
32015         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
32016         Eric Blake <ebb9@byu.net> for review.
32017         * MODULES.html.sh: Add lib-msvc-compat.
32018         * doc/gnulib.texi: Link to new section.
32019         * m4/ld-output-def.m4: New file.
32020         * doc/ld-output-def.texi: New file.
32021
32022 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32023
32024         Rename ld-version-script to lib-symbol-versions.  Suggested by
32025         Bruno Haible <bruno@clisp.org>.
32026         * modules/ld-version-script: Renamed to lib-symbol-versions.
32027         * doc/ld-version-script.texi: Fix module name.
32028         * MODULES.html.sh: Add lib-symbol-versions.
32029
32030 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32031
32032         * modules/u64-tests: New file.
32033         * tests/test-u64.c: New file.
32034
32035 2009-03-04  Simon Josefsson  <simon@josefsson.org>
32036
32037         * MODULES.html.sh: Mention u64.
32038         * modules/u64: New module.
32039         * modules/crypto/sha512: Depend on u64 module instead of providing
32040         u64.h.
32041
32042 2009-03-27  Eric Blake  <ebb9@byu.net>
32043
32044         test-strerror: make debugging EAI_SYSTEM easier
32045         * modules/getaddrinfo-tests (Depends-on): Add strerror.
32046         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
32047         failure was EAI_SYSTEM.
32048
32049 2009-03-25  Bruno Haible  <bruno@clisp.org>
32050
32051         Fix a problem with --enable-relocatable on Solaris 7.
32052         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32053         since 2008-02-24.
32054
32055 2009-03-25  Eric Blake  <ebb9@byu.net>
32056
32057         test-sockets: avoid gcc warning
32058         * tests/test-sockets.c (main): Silence compiler warning.
32059
32060 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32061
32062         New modules nproc, pthread, contributed by Glen Lenker.
32063
32064         * MODULES.html.sh: Add pthread, nproc.
32065         * lib/nproc.c: New file.
32066         * lib/nproc.h: New file.
32067         * lib/pthread.in.h: New file.
32068         * m4/pthread.m4: New file.
32069         * modules/nproc: New file.
32070         * modules/pthread: New file.
32071
32072 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32073
32074         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
32075         New variable.
32076
32077 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
32078
32079         filevercmp: handle simple~ and numbered.~3~ backup suffixes
32080         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
32081         * tests/test-filevercmp.c: Add tests for backup suffixes.
32082
32083 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32084
32085         * modules/stdlib (Depends-on): Add stdint, needed when defining
32086         struct random_data on, for example, HP-UX 10.20.  Reported by
32087         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32088
32089 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32090
32091         * lib/readline.c (readline): Call fflush on stdout after printing
32092         prompt.
32093
32094 2009-03-20  Bruno Haible  <bruno@clisp.org>
32095
32096         Remove dependency from 'close' module to -lws2_32 on native Windows.
32097         * lib/close-hook.h: New file.
32098         * lib/close-hook.c: New file.
32099         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32100         w32sock.h.
32101         (_gl_close_fd_maybe_socket): Remove function.
32102         (rpl_close): Invoke execute_all_close_hooks instead of
32103         _gl_close_fd_maybe_socket.
32104         * lib/sockets.c: Include close-hook.h, w32sock.h.
32105         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32106         (close_sockets_hook): New variable.
32107         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32108         (gl_sockets_cleanup): Unregister it.
32109         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32110         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32111         * modules/close-hook: New file.
32112         * modules/close (Files): Remove lib/w32sock.h.
32113         (Depends-on): Add close-hook.
32114         (Link): Remove section.
32115         * modules/sockets (Files): Add lib/w32sock.h.
32116         (Depends-on): Add close-hook.
32117         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32118         invocation.
32119         * NEWS: Mention that LIB_CLOSE is gone.
32120
32121 2009-03-23  Eric Blake  <ebb9@byu.net>
32122
32123         signal-tests: test previous patch
32124         * tests/test-signal.c: New file.
32125         * modules/signal-tests: Likewise.
32126
32127         signal.h: always support 'volatile sig_atomic_t'
32128         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32129         (gl_SIGNAL_H_DEFAULTS): Add a default.
32130         * modules/signal (Makefile.am): Substitute if needed.
32131         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32132         users can blindly add volatile.
32133         * doc/posix-headers/signal.texi (signal.h): Document it.
32134         Reported by Matthew Woehlke.
32135
32136 2009-03-23  Jim Meyering  <meyering@redhat.com>
32137
32138         pathmax: PATH_MAX: use pathconf only when available
32139         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32140         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32141         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32142         This avoids a link failure in a PSP cross-compilation environment
32143         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32144
32145         * lib/vasnprintf.c (divide): Fix typo in comment.
32146
32147 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32148
32149         * gnulib-tool (func_filter_filelist): Fix comment.
32150
32151 2009-03-20  Bruno Haible  <bruno@clisp.org>
32152
32153         Make sockets.h self-contained.
32154         * lib/sockets.c: Include sockets.h first.
32155         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32156
32157 2009-03-19  Eric Blake  <ebb9@byu.net>
32158
32159         doc: mention more functions added in cygwin 1.7.0
32160         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32161         addition.
32162         * doc/posix-functions/log2f.texi: Likewise.
32163
32164 2009-03-19  Jim Meyering  <meyering@redhat.com>
32165
32166         fsusage: avoid syntax error due to statement-before-declaration
32167         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32168         after all declarations.  Reported by Matthew Woehlke in
32169         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32170
32171 2009-03-18  Eric Blake  <ebb9@byu.net>
32172
32173         build-aux/compile: sync from automake
32174         * build-aux/compile: New file, from automake.
32175         * config/srclist.txt: Mention build-aux/compile.
32176
32177 2009-03-17  Bruno Haible  <bruno@clisp.org>
32178
32179         * lib/git-merge-changelog.c: Fix typo in comment.
32180         Reported by Reuben Thomas <rrt@sc3d.org>.
32181
32182 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32183
32184         * m4/regex.m4: update and improve help for
32185         --without-included-regex.
32186
32187 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32188
32189         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32190         failure on missing include files.
32191
32192 2009-03-17  Eric Blake  <ebb9@byu.net>
32193
32194         doc: mention more functions added in cygwin 1.7.0
32195         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32196         addition.
32197         * doc/posix-functions/fwscanf.texi: Likewise.
32198         * doc/posix-functions/swprintf.texi: Likewise.
32199         * doc/posix-functions/swscanf.texi: Likewise.
32200         * doc/posix-functions/vfwprintf.texi: Likewise.
32201         * doc/posix-functions/vfwscanf.texi: Likewise.
32202         * doc/posix-functions/vswprintf.texi: Likewise.
32203         * doc/posix-functions/vswscanf.texi: Likewise.
32204         * doc/posix-functions/vwprintf.texi: Likewise.
32205         * doc/posix-functions/vwscanf.texi: Likewise.
32206         * doc/posix-functions/wcscasecmp.texi: Likewise.
32207         * doc/posix-functions/wcsdup.texi: Likewise.
32208         * doc/posix-functions/wcsftime.texi: Likewise.
32209         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32210         * doc/posix-functions/wprintf.texi: Likewise.
32211         * doc/posix-functions/wscanf.texi: Likewise.
32212         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32213
32214 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32215
32216         maint.mk: really add $(AM_MAKEFLAGS)
32217         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32218         was inadvertently omitted in the last commit.
32219         Spotted by Bruno Haible.
32220
32221         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32222         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32223         $(AM_MAKEFLAGS)' rather than plain `make'.
32224
32225         gnulib-tool: execute $MAKE not make
32226         * gnulib-tool: Default $MAKE to 'make'.
32227         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32228         than make.  Initialize $MAKE in the do-autobuild script.
32229
32230         gnulib-tool: use $MAKE not make in generated files
32231         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32232         make, in generated files.  Initialize $MAKE in the do-autobuild
32233         script.
32234
32235         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32236
32237         GNUmakefile: disable parallelism only for multiple, recursive targets
32238         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32239         additions in the Makefile.
32240         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32241         by Automake.
32242         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32243         are listed on the command line and at least one of them is
32244         listed in $(ALL_RECURSIVE_TARGETS).
32245
32246 2009-03-14  Bruno Haible  <bruno@clisp.org>
32247
32248         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32249         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32250         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32251         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32252         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32253         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32254         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32255         unistr/u8-uctomb.
32256         * modules/unistr/u8-strchr (Depends-on): Likewise.
32257         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32258         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32259         unistr/u16-uctomb.
32260         * modules/unistr/u16-strchr (Depends-on): Likewise.
32261         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32262
32263 2009-03-12  Bruno Haible  <bruno@clisp.org>
32264
32265         Work around select() bug on Interix 3.5.
32266         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32267         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32268         * m4/select.m4: New file.
32269         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32270         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32271         * modules/select (Files): Add m4/select.m4.
32272         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32273         * modules/nanosleep (Depends-on): Add select.
32274         * modules/poll (Depends-on): Likewise.
32275         * doc/posix-functions/select.texi: Mention the Interix bug.
32276         Reported by Markus Duft <mduft@gentoo.org>.
32277
32278         * lib/select.c: Renamed from lib/winsock-select.c.
32279         * modules/select (Files): Add lib/select.c, remove
32280         lib/winsock-select.c.
32281         (configure.ac): Update.
32282
32283 2009-03-12  Jim Meyering  <meyering@redhat.com>
32284
32285         avoid gcc warnings about unused macro definitions
32286         * lib/readtokens.c (STREQ): Remove unused definition.
32287         * lib/xmalloc.c (SIZE_MAX): Likewise.
32288         * lib/openat-die.c (N_): Likewise.
32289         * lib/mountlist.c (SIZE_MAX): Remove definition.
32290         Instead, include <stdint.h>.
32291         * lib/readutmp.c: Likewise.
32292         * modules/readutmp (Depends-on): Add stdint.
32293         * modules/mountlist (Depends-on): Add stdint.
32294         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32295
32296 2009-03-10  Bruno Haible  <bruno@clisp.org>
32297
32298         Tests for module 'mbmemcasecoll'.
32299         * modules/mbmemcasecoll-tests: New file.
32300         * tests/test-mbmemcasecoll1.sh: New file.
32301         * tests/test-mbmemcasecoll2.sh: New file.
32302         * tests/test-mbmemcasecoll3.sh: New file.
32303         * tests/test-mbmemcasecoll.c: New file.
32304
32305         New module 'mbmemcasecoll'.
32306         * lib/mbmemcasecoll.h: New file.
32307         * lib/mbmemcasecoll.c: New file.
32308         * modules/mbmemcasecoll: New file.
32309
32310         * tests/test-mbmemcasecmp.h: New file, extracted from
32311         tests/test-mbmemcasecmp.c.
32312         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32313         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32314         (main): Update.
32315         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32316
32317 2009-03-09  Bruno Haible  <bruno@clisp.org>
32318
32319         Tests for module 'mbmemcasecmp'.
32320         * modules/mbmemcasecmp-tests: New file.
32321         * tests/test-mbmemcasecmp1.sh: New file.
32322         * tests/test-mbmemcasecmp2.sh: New file.
32323         * tests/test-mbmemcasecmp3.sh: New file.
32324         * tests/test-mbmemcasecmp.c: New file.
32325
32326         New module 'mbmemcasecmp'.
32327         * lib/mbmemcasecmp.h: New file.
32328         * lib/mbmemcasecmp.c: New file.
32329         * modules/mbmemcasecmp: New file.
32330
32331 2009-03-09  Bruno Haible  <bruno@clisp.org>
32332
32333         Tests for module 'unicase/ulc-casecoll'.
32334         * modules/unicase/ulc-casecoll-tests: New file.
32335         * tests/unicase/test-ulc-casecoll1.sh: New file.
32336         * tests/unicase/test-ulc-casecoll2.sh: New file.
32337         * tests/unicase/test-ulc-casecoll.c: New file.
32338
32339         New module 'unicase/ulc-casecoll'.
32340         * lib/unicase.h (ulc_casecoll): New declaration.
32341         * lib/unicase/ulc-casecoll.c: New file.
32342         * modules/unicase/ulc-casecoll: New file.
32343
32344         New module 'unicase/ulc-casexfrm'.
32345         * lib/unicase.h (ulc_casexfrm): New declaration.
32346         * lib/unicase/ulc-casexfrm.c: New file.
32347         * modules/unicase/ulc-casexfrm: New file.
32348
32349 2009-03-09  Bruno Haible  <bruno@clisp.org>
32350
32351         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32352         invocations.
32353
32354         * m4/mbscasecmp.m4: Remove file.
32355         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32356         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32357
32358         * m4/mbscasestr.m4: Remove file.
32359         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32360         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32361
32362         * m4/mbschr.m4: Remove file.
32363         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32364         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32365
32366         * m4/mbscspn.m4: Remove file.
32367         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32368         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32369
32370         * m4/mbslen.m4: Remove file.
32371         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32372         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32373
32374         * m4/mbsncasecmp.m4: Remove file.
32375         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32376         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32377
32378         * m4/mbsnlen.m4: Remove file.
32379         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32380         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32381
32382         * m4/mbspbrk.m4: Remove file.
32383         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32384         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32385
32386         * m4/mbspcasecmp.m4: Remove file.
32387         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32388         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32389
32390         * m4/mbsrchr.m4: Remove file.
32391         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32392         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32393
32394         * m4/mbssep.m4: Remove file.
32395         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32396         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32397
32398         * m4/mbsspn.m4: Remove file.
32399         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32400         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32401
32402         * m4/mbsstr.m4: Remove file.
32403         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32404         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32405
32406         * m4/mbstok_r.m4: Remove file.
32407         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32408         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32409
32410         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32411
32412         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32413         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32414
32415         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32416
32417 2009-03-08  Bruno Haible  <bruno@clisp.org>
32418
32419         Tests for module 'unicase/ulc-casecmp'.
32420         * modules/unicase/ulc-casecmp-tests: New file.
32421         * tests/unicase/test-ulc-casecmp1.sh: New file.
32422         * tests/unicase/test-ulc-casecmp2.sh: New file.
32423         * tests/unicase/test-ulc-casecmp.c: New file.
32424
32425         New module 'unicase/ulc-casecmp'.
32426         * lib/unicase.h (ulc_casecmp): New declaration.
32427         * lib/unicase/ulc-casecmp.c: New file.
32428         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32429         'const SRC_UNIT *'.
32430         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32431         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32432         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32433         * modules/unicase/ulc-casecmp: New file.
32434
32435         Tests for module 'unicase/u32-is-cased'.
32436         * modules/unicase/u32-is-cased-tests: New file.
32437         * tests/unicase/test-u32-is-cased.c: New file.
32438
32439         Tests for module 'unicase/u16-is-cased'.
32440         * modules/unicase/u16-is-cased-tests: New file.
32441         * tests/unicase/test-u16-is-cased.c: New file.
32442
32443         Tests for module 'unicase/u8-is-cased'.
32444         * modules/unicase/u8-is-cased-tests: New file.
32445         * tests/unicase/test-u8-is-cased.c: New file.
32446         * tests/unicase/test-is-cased.h: New file.
32447
32448         New module 'unicase/u32-is-cased'.
32449         * lib/unicase/u32-is-cased.c: New file.
32450         * modules/unicase/u32-is-cased: New file.
32451
32452         New module 'unicase/u16-is-cased'.
32453         * lib/unicase/u16-is-cased.c: New file.
32454         * modules/unicase/u16-is-cased: New file.
32455
32456         New module 'unicase/u8-is-cased'.
32457         * lib/unicase/u8-is-cased.c: New file.
32458         * lib/unicase/u-is-cased.h: New file.
32459         * modules/unicase/u8-is-cased: New file.
32460
32461         Tests for module 'unicase/u32-is-casefolded'.
32462         * modules/unicase/u32-is-casefolded-tests: New file.
32463         * tests/unicase/test-u32-is-casefolded.c: New file.
32464
32465         Tests for module 'unicase/u16-is-casefolded'.
32466         * modules/unicase/u16-is-casefolded-tests: New file.
32467         * tests/unicase/test-u16-is-casefolded.c: New file.
32468
32469         Tests for module 'unicase/u8-is-casefolded'.
32470         * modules/unicase/u8-is-casefolded-tests: New file.
32471         * tests/unicase/test-u8-is-casefolded.c: New file.
32472         * tests/unicase/test-is-casefolded.h: New file.
32473
32474         New module 'unicase/u32-is-casefolded'.
32475         * lib/unicase/u32-is-casefolded.c: New file.
32476         * modules/unicase/u32-is-casefolded: New file.
32477
32478         New module 'unicase/u16-is-casefolded'.
32479         * lib/unicase/u16-is-casefolded.c: New file.
32480         * modules/unicase/u16-is-casefolded: New file.
32481
32482         New module 'unicase/u8-is-casefolded'.
32483         * lib/unicase/u8-is-casefolded.c: New file.
32484         * modules/unicase/u8-is-casefolded: New file.
32485
32486         Tests for module 'unicase/u32-is-titlecase'.
32487         * modules/unicase/u32-is-titlecase-tests: New file.
32488         * tests/unicase/test-u32-is-titlecase.c: New file.
32489
32490         Tests for module 'unicase/u16-is-titlecase'.
32491         * modules/unicase/u16-is-titlecase-tests: New file.
32492         * tests/unicase/test-u16-is-titlecase.c: New file.
32493
32494         Tests for module 'unicase/u8-is-titlecase'.
32495         * modules/unicase/u8-is-titlecase-tests: New file.
32496         * tests/unicase/test-u8-is-titlecase.c: New file.
32497         * tests/unicase/test-is-titlecase.h: New file.
32498
32499         New module 'unicase/u32-is-titlecase'.
32500         * lib/unicase/u32-is-titlecase.c: New file.
32501         * modules/unicase/u32-is-titlecase: New file.
32502
32503         New module 'unicase/u16-is-titlecase'.
32504         * lib/unicase/u16-is-titlecase.c: New file.
32505         * modules/unicase/u16-is-titlecase: New file.
32506
32507         New module 'unicase/u8-is-titlecase'.
32508         * lib/unicase/u8-is-titlecase.c: New file.
32509         * modules/unicase/u8-is-titlecase: New file.
32510
32511         Tests for module 'unicase/u32-is-lowercase'.
32512         * modules/unicase/u32-is-lowercase-tests: New file.
32513         * tests/unicase/test-u32-is-lowercase.c: New file.
32514
32515         Tests for module 'unicase/u16-is-lowercase'.
32516         * modules/unicase/u16-is-lowercase-tests: New file.
32517         * tests/unicase/test-u16-is-lowercase.c: New file.
32518
32519         Tests for module 'unicase/u8-is-lowercase'.
32520         * modules/unicase/u8-is-lowercase-tests: New file.
32521         * tests/unicase/test-u8-is-lowercase.c: New file.
32522         * tests/unicase/test-is-lowercase.h: New file.
32523
32524         New module 'unicase/u32-is-lowercase'.
32525         * lib/unicase/u32-is-lowercase.c: New file.
32526         * modules/unicase/u32-is-lowercase: New file.
32527
32528         New module 'unicase/u16-is-lowercase'.
32529         * lib/unicase/u16-is-lowercase.c: New file.
32530         * modules/unicase/u16-is-lowercase: New file.
32531
32532         New module 'unicase/u8-is-lowercase'.
32533         * lib/unicase/u8-is-lowercase.c: New file.
32534         * modules/unicase/u8-is-lowercase: New file.
32535
32536         Tests for module 'unicase/u32-is-uppercase'.
32537         * modules/unicase/u32-is-uppercase-tests: New file.
32538         * tests/unicase/test-u32-is-uppercase.c: New file.
32539
32540         Tests for module 'unicase/u16-is-uppercase'.
32541         * modules/unicase/u16-is-uppercase-tests: New file.
32542         * tests/unicase/test-u16-is-uppercase.c: New file.
32543
32544         Tests for module 'unicase/u8-is-uppercase'.
32545         * modules/unicase/u8-is-uppercase-tests: New file.
32546         * tests/unicase/test-u8-is-uppercase.c: New file.
32547         * tests/unicase/test-is-uppercase.h: New file.
32548
32549         New module 'unicase/u32-is-uppercase'.
32550         * lib/unicase/u32-is-uppercase.c: New file.
32551         * modules/unicase/u32-is-uppercase: New file.
32552
32553         New module 'unicase/u16-is-uppercase'.
32554         * lib/unicase/u16-is-uppercase.c: New file.
32555         * modules/unicase/u16-is-uppercase: New file.
32556
32557         New module 'unicase/u8-is-uppercase'.
32558         * lib/unicase/u8-is-uppercase.c: New file.
32559         * modules/unicase/u8-is-uppercase: New file.
32560
32561         New module 'unicase/u32-is-invariant'.
32562         * lib/unicase/u32-is-invariant.c: New file.
32563         * modules/unicase/u32-is-invariant: New file.
32564
32565         New module 'unicase/u16-is-invariant'.
32566         * lib/unicase/u16-is-invariant.c: New file.
32567         * modules/unicase/u16-is-invariant: New file.
32568
32569         New module 'unicase/u8-is-invariant'.
32570         * lib/unicase/u8-is-invariant.c: New file.
32571         * lib/unicase/invariant.h: New file.
32572         * lib/unicase/u-is-invariant.h: New file.
32573         * modules/unicase/u8-is-invariant: New file.
32574
32575         Tests for module 'unicase/u32-casecoll'.
32576         * modules/unicase/u32-casecoll-tests: New file.
32577         * tests/unicase/test-u32-casecoll.c: New file.
32578
32579         Tests for module 'unicase/u16-casecoll'.
32580         * modules/unicase/u16-casecoll-tests: New file.
32581         * tests/unicase/test-u16-casecoll.c: New file.
32582
32583         Tests for module 'unicase/u8-casecoll'.
32584         * modules/unicase/u8-casecoll-tests: New file.
32585         * tests/unicase/test-u8-casecoll.c: New file.
32586
32587         New module 'unicase/u32-casecoll'.
32588         * lib/unicase/u32-casecoll.c: New file.
32589         * modules/unicase/u32-casecoll: New file.
32590
32591         New module 'unicase/u16-casecoll'.
32592         * lib/unicase/u16-casecoll.c: New file.
32593         * modules/unicase/u16-casecoll: New file.
32594
32595         New module 'unicase/u8-casecoll'.
32596         * lib/unicase/u8-casecoll.c: New file.
32597         * lib/unicase/u-casecoll.h: New file.
32598         * modules/unicase/u8-casecoll: New file.
32599
32600         New module 'unicase/u32-casexfrm'.
32601         * lib/unicase/u32-casexfrm.c: New file.
32602         * modules/unicase/u32-casexfrm: New file.
32603
32604         New module 'unicase/u16-casexfrm'.
32605         * lib/unicase/u16-casexfrm.c: New file.
32606         * modules/unicase/u16-casexfrm: New file.
32607
32608         New module 'unicase/u8-casexfrm'.
32609         * lib/unicase/u8-casexfrm.c: New file.
32610         * lib/unicase/u-casexfrm.h: New file.
32611         * modules/unicase/u8-casexfrm: New file.
32612
32613         Tests for module 'unicase/u32-casecmp'.
32614         * modules/unicase/u32-casecmp-tests: New file.
32615         * tests/unicase/test-u32-casecmp.c: New file.
32616
32617         Tests for module 'unicase/u16-casecmp'.
32618         * modules/unicase/u16-casecmp-tests: New file.
32619         * tests/unicase/test-u16-casecmp.c: New file.
32620
32621         Tests for module 'unicase/u8-casecmp'.
32622         * modules/unicase/u8-casecmp-tests: New file.
32623         * tests/unicase/test-u8-casecmp.c: New file.
32624         * tests/unicase/test-casecmp.h: New file.
32625
32626         New module 'unicase/u32-casecmp'.
32627         * lib/unicase/u32-casecmp.c: New file.
32628         * modules/unicase/u32-casecmp: New file.
32629
32630         New module 'unicase/u16-casecmp'.
32631         * lib/unicase/u16-casecmp.c: New file.
32632         * modules/unicase/u16-casecmp: New file.
32633
32634         New module 'unicase/u8-casecmp'.
32635         * lib/unicase/u8-casecmp.c: New file.
32636         * lib/unicase/u-casecmp.h: New file.
32637         * modules/unicase/u8-casecmp: New file.
32638
32639         Tests for module 'unicase/u32-casefold'.
32640         * modules/unicase/u32-casefold-tests: New file.
32641         * tests/unicase/test-u32-casefold.c: New file.
32642
32643         Tests for module 'unicase/u16-casefold'.
32644         * modules/unicase/u16-casefold-tests: New file.
32645         * tests/unicase/test-u16-casefold.c: New file.
32646
32647         Tests for module 'unicase/u8-casefold'.
32648         * modules/unicase/u8-casefold-tests: New file.
32649         * tests/unicase/test-u8-casefold.c: New file.
32650
32651         New module 'unicase/u32-casefold'.
32652         * lib/unicase/u32-casefold.c: New file.
32653         * modules/unicase/u32-casefold: New file.
32654
32655         New module 'unicase/u16-casefold'.
32656         * lib/unicase/u16-casefold.c: New file.
32657         * modules/unicase/u16-casefold: New file.
32658
32659         New module 'unicase/u8-casefold'.
32660         * lib/unicase/u8-casefold.c: New file.
32661         * lib/unicase/u-casefold.h: New file.
32662         * modules/unicase/u8-casefold: New file.
32663
32664         New module 'unicase/tocasefold'.
32665         * lib/unicase/casefold.h: New file.
32666         * lib/unicase/tocasefold.c: New file.
32667         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32668         * modules/unicase/tocasefold: New file.
32669
32670         Tests for module 'unicase/u32-totitle'.
32671         * modules/unicase/u32-totitle-tests: New file.
32672         * tests/unicase/test-u32-totitle.c: New file.
32673
32674         Tests for module 'unicase/u16-totitle'.
32675         * modules/unicase/u16-totitle-tests: New file.
32676         * tests/unicase/test-u16-totitle.c: New file.
32677
32678         Tests for module 'unicase/u8-totitle'.
32679         * modules/unicase/u8-totitle-tests: New file.
32680         * tests/unicase/test-u8-totitle.c: New file.
32681
32682         New module 'unicase/u32-totitle'.
32683         * lib/unicase/u32-totitle.c: New file.
32684         * modules/unicase/u32-totitle: New file.
32685
32686         New module 'unicase/u16-totitle'.
32687         * lib/unicase/u16-totitle.c: New file.
32688         * modules/unicase/u16-totitle: New file.
32689
32690         New module 'unicase/u8-totitle'.
32691         * lib/unicase/u8-totitle.c: New file.
32692         * lib/unicase/u-totitle.h: New file.
32693         * modules/unicase/u8-totitle: New file.
32694
32695         Tests for module 'unicase/u32-tolower'.
32696         * modules/unicase/u32-tolower-tests: New file.
32697         * tests/unicase/test-u32-tolower.c: New file.
32698
32699         Tests for module 'unicase/u16-tolower'.
32700         * modules/unicase/u16-tolower-tests: New file.
32701         * tests/unicase/test-u16-tolower.c: New file.
32702
32703         Tests for module 'unicase/u8-tolower'.
32704         * modules/unicase/u8-tolower-tests: New file.
32705         * tests/unicase/test-u8-tolower.c: New file.
32706
32707         New module 'unicase/u32-tolower'.
32708         * lib/unicase/u32-tolower.c: New file.
32709         * modules/unicase/u32-tolower: New file.
32710
32711         New module 'unicase/u16-tolower'.
32712         * lib/unicase/u16-tolower.c: New file.
32713         * modules/unicase/u16-tolower: New file.
32714
32715         New module 'unicase/u8-tolower'.
32716         * lib/unicase/u8-tolower.c: New file.
32717         * modules/unicase/u8-tolower: New file.
32718
32719         Tests for module 'unicase/u32-toupper'.
32720         * modules/unicase/u32-toupper-tests: New file.
32721         * tests/unicase/test-u32-toupper.c: New file.
32722
32723         Tests for module 'unicase/u16-toupper'.
32724         * modules/unicase/u16-toupper-tests: New file.
32725         * tests/unicase/test-u16-toupper.c: New file.
32726
32727         Tests for module 'unicase/u8-toupper'.
32728         * modules/unicase/u8-toupper-tests: New file.
32729         * tests/unicase/test-u8-toupper.c: New file.
32730
32731         New module 'unicase/u32-toupper'.
32732         * lib/unicase/u32-toupper.c: New file.
32733         * modules/unicase/u32-toupper: New file.
32734
32735         New module 'unicase/u16-toupper'.
32736         * lib/unicase/u16-toupper.c: New file.
32737         * modules/unicase/u16-toupper: New file.
32738
32739         New module 'unicase/u8-toupper'.
32740         * lib/unicase/u8-toupper.c: New file.
32741         * modules/unicase/u8-toupper: New file.
32742
32743         New module 'unicase/u32-casemap'.
32744         * lib/unicase/u32-casemap.c: New file.
32745         * modules/unicase/u32-casemap: New file.
32746
32747         New module 'unicase/u16-casemap'.
32748         * lib/unicase/u16-casemap.c: New file.
32749         * modules/unicase/u16-casemap: New file.
32750
32751         New module 'unicase/u8-casemap'.
32752         * lib/unicase/unicasemap.h: New file.
32753         * lib/unicase/u8-casemap.c: New file.
32754         * lib/unicase/u-casemap.h: New file.
32755         * modules/unicase/u8-casemap: New file.
32756
32757         New module 'unicase/special-casing'.
32758         * lib/unicase/special-casing.h: New file.
32759         * lib/unicase/special-casing.c: New file.
32760         * lib/unicase/special-casing-table.gperf: New file, generated by
32761         gen-uni-tables.c.
32762         * modules/unicase/special-casing: New file.
32763
32764         Tests for module 'unicase/locale-language'.
32765         * modules/unicase/locale-language-tests: New file.
32766         * tests/unicase/test-locale-language.sh: New file.
32767         * tests/unicase/test-locale-language.c: New file.
32768
32769         New module 'unicase/locale-language'.
32770         * lib/unicase/locale-language.c: New file.
32771         * lib/unicase/locale-languages.gperf: New file.
32772         * modules/unicase/locale-language: New file.
32773
32774         Generate more tables for case conversion and case folding.
32775         * lib/gen-uni-tables.c (SCC_*): New enum items.
32776         (struct special_casing_rule): New type.
32777         (casing_rules, num_casing_rules, allocated_casing_rules): New
32778         variables.
32779         (add_casing_rule, fill_casing_rules): New functions.
32780         (struct casefold_rule): New type.
32781         (casefolding_rules, num_casefolding_rules,
32782         allocated_casefolding_rules): New variables.
32783         (fill_casefolding_rules): New function.
32784         (unicode_casefold): New variable.
32785         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
32786         sort_casing_rules, output_casing_rules): New functions.
32787         (main): Accept to more arguments: SpecialCasing.txt and
32788         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
32789         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
32790         Output mapping for casefolding.
32791
32792         * lib/unicase.h: Include stdbool.h, uninorm.h.
32793         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
32794         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
32795         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
32796         arguments.
32797         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
32798         resultp arguments.
32799         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
32800         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
32801         resultp arguments.
32802         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
32803         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
32804         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
32805         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
32806         declarations.
32807         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
32808
32809 2009-03-08  Bruno Haible  <bruno@clisp.org>
32810
32811         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32812         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
32813         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
32814         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32815
32816 2009-03-07  Bruno Haible  <bruno@clisp.org>
32817
32818         Adjust u*_normcmp, u*_normcoll API.
32819         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32820         u16_normcoll, u32_normcoll): Change failure conventions.
32821         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
32822         errno and return -1.
32823         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32824
32825 2009-03-07  Bruno Haible  <bruno@clisp.org>
32826
32827         Tests for module 'uninorm/u32-normcoll'.
32828         * modules/uninorm/u32-normcoll-tests: New file.
32829         * tests/uninorm/test-u32-normcoll.c: New file.
32830
32831         Tests for module 'uninorm/u16-normcoll'.
32832         * modules/uninorm/u16-normcoll-tests: New file.
32833         * tests/uninorm/test-u16-normcoll.c: New file.
32834
32835         Tests for module 'uninorm/u8-normcoll'.
32836         * modules/uninorm/u8-normcoll-tests: New file.
32837         * tests/uninorm/test-u8-normcoll.c: New file.
32838
32839 2009-03-07  Bruno Haible  <bruno@clisp.org>
32840
32841         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
32842         tests/uninorm/test-u32-normcmp.c.
32843         * tests/uninorm/test-u32-normcmp.c: Include it.
32844         (test_nonascii): New function, extracted from main. Add some more
32845         tests.
32846         (main): Invoke test_ascii and test_nonascii.
32847         * modules/uninorm/u32-normcmp-tests (Files): Add
32848         tests/uninorm/test-u32-normcmp.h.
32849         (Depends-on): Remove uninorm/u32-normcmp.
32850
32851         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
32852         tests/uninorm/test-u16-normcmp.c.
32853         * tests/uninorm/test-u16-normcmp.c: Include it.
32854         (test_nonascii): New function, extracted from main. Add some more
32855         tests.
32856         (main): Invoke test_ascii and test_nonascii.
32857         * modules/uninorm/u16-normcmp-tests (Files): Add
32858         tests/uninorm/test-u16-normcmp.h.
32859         (Depends-on): Remove uninorm/u16-normcmp.
32860
32861         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
32862         tests/uninorm/test-u8-normcmp.c.
32863         * tests/uninorm/test-u8-normcmp.c: Include it.
32864         (test_nonascii): New function, extracted from main. Add some more
32865         tests.
32866         (main): Invoke test_ascii and test_nonascii.
32867         * modules/uninorm/u8-normcmp-tests (Files): Add
32868         tests/uninorm/test-u8-normcmp.h.
32869         (Depends-on): Remove uninorm/u8-normcmp.
32870
32871 2009-03-07  Bruno Haible  <bruno@clisp.org>
32872
32873         New module 'uninorm/u32-normcoll'.
32874         * lib/uninorm/u32-normcoll.c: New file.
32875         * modules/uninorm/u32-normcoll: New file.
32876
32877         New module 'uninorm/u16-normcoll'.
32878         * lib/uninorm/u16-normcoll.c: New file.
32879         * modules/uninorm/u16-normcoll: New file.
32880
32881         New module 'uninorm/u8-normcoll'.
32882         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
32883         declarations.
32884         * lib/uninorm/u8-normcoll.c: New file.
32885         * lib/uninorm/u-normcoll.h: New file.
32886         * modules/uninorm/u8-normcoll: New file.
32887
32888         New module 'uninorm/u32-normxfrm'.
32889         * lib/uninorm/u32-normxfrm.c: New file.
32890         * modules/uninorm/u32-normxfrm: New file.
32891
32892         New module 'uninorm/u16-normxfrm'.
32893         * lib/uninorm/u16-normxfrm.c: New file.
32894         * modules/uninorm/u16-normxfrm: New file.
32895
32896         New module 'uninorm/u8-normxfrm'.
32897         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
32898         declarations.
32899         * lib/uninorm/u8-normxfrm.c: New file.
32900         * lib/uninorm/u-normxfrm.h: New file.
32901         * modules/uninorm/u8-normxfrm: New file.
32902
32903 2009-03-07  Bruno Haible  <bruno@clisp.org>
32904
32905         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
32906         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
32907         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
32908
32909 2009-03-07  Bruno Haible  <bruno@clisp.org>
32910
32911         New module 'memxfrm'.
32912         * lib/memxfrm.h: New file.
32913         * lib/memxfrm.c: New file.
32914         * modules/memxfrm: New file.
32915
32916 2009-03-07  Bruno Haible  <bruno@clisp.org>
32917
32918         New module 'memcmp2'.
32919         * lib/memcmp2.h: New file.
32920         * lib/memcmp2.c: New file.
32921         * modules/memcmp2: New file.
32922
32923 2009-03-07  Bruno Haible  <bruno@clisp.org>
32924
32925         Tests for module 'uninorm/decomposing-form'.
32926         * modules/uninorm/decomposing-form-tests: New file.
32927         * tests/uninorm/test-decomposing-form.c: New file.
32928
32929         New module 'uninorm/decomposing-form'.
32930         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
32931         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
32932         Add 'decomposing_variant' field.
32933         * lib/uninorm/decomposing-form.c: New file.
32934         * lib/uninorm/nfc.c (uninorm_nfc): Update.
32935         * lib/uninorm/nfd.c (uninorm_nfd): Update.
32936         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
32937         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
32938         * modules/uninorm/decomposing-form: New file.
32939         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
32940         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
32941
32942 2009-03-07  Bruno Haible  <bruno@clisp.org>
32943
32944         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
32945         strings.
32946
32947 2009-03-06  Bruno Haible  <bruno@clisp.org>
32948
32949         Tests for module 'uninorm/u32-normcmp'.
32950         * tests/uninorm/test-u32-normcmp.c: New file.
32951         * modules/uninorm/u32-normcmp-tests: New file.
32952
32953         Tests for module 'uninorm/u16-normcmp'.
32954         * tests/uninorm/test-u16-normcmp.c: New file.
32955         * modules/uninorm/u16-normcmp-tests: New file.
32956
32957         Tests for module 'uninorm/u8-normcmp'.
32958         * tests/uninorm/test-u8-normcmp.c: New file.
32959         * modules/uninorm/u8-normcmp-tests: New file.
32960
32961         New module 'uninorm/u32-normcmp'.
32962         * lib/uninorm/u32-normcmp.c: New file.
32963         * modules/uninorm/u32-normcmp: New file.
32964
32965         New module 'uninorm/u16-normcmp'.
32966         * lib/uninorm/u16-normcmp.c: New file.
32967         * modules/uninorm/u16-normcmp: New file.
32968
32969         New module 'uninorm/u8-normcmp'.
32970         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32971         declarations.
32972         * lib/uninorm/u8-normcmp.c: New file.
32973         * lib/uninorm/u-normcmp.h: New file.
32974         * modules/uninorm/u8-normcmp: New file.
32975
32976 2009-03-06  Bruno Haible  <bruno@clisp.org>
32977
32978         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32979         Reported by Eric Blake.
32980
32981 2009-03-06  Eric Blake  <ebb9@byu.net>
32982             Bruno Haible  <bruno@clisp.org>
32983
32984         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32985         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32986         condition.
32987         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32988         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32989         condition.
32990         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32991
32992 2009-03-06  Eric Blake  <ebb9@byu.net>
32993
32994         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
32995         to avoid compiler warnings.
32996         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
32997
32998 2009-03-05  Bruno Haible  <bruno@clisp.org>
32999
33000         * tests/test-ftell.c (main): Disable test beyond end of file on
33001         FreeMiNT.
33002         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33003
33004 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
33005
33006         * lib/filevercmp.c: Move hidden files up in ordering.
33007         * tests/test-filevercmp.c: Add tests for hidden files.
33008
33009 2009-03-04  Bruno Haible  <bruno@clisp.org>
33010
33011         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
33012         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
33013         AM_CFLAGS.
33014         Reported by Simon Josefsson.
33015
33016 2009-03-03  Bruno Haible  <bruno@clisp.org>
33017
33018         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
33019         Reported by Simon Josefsson.
33020
33021         * doc/ld-version-script.texi: Update node reference.
33022
33023 2009-03-03  Bruno Haible  <bruno@clisp.org>
33024
33025         * modules/visibility (License): Change to 'unlimited'.
33026         Suggested by Simon Josefsson.
33027
33028 2009-03-03  Jim Meyering  <meyering@redhat.com>
33029
33030         unlinkdir: cannot_unlink_dir may modify process state
33031         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
33032         it's neither thread-safe nor appropriate for use in a library.
33033
33034 2009-03-03  Eric Blake  <ebb9@byu.net>
33035
33036         test-closein: silence test under Darwin
33037         * tests/test-closein.sh: Ignore stderr from cat, since we don't
33038         care if it dies from EPIPE or EBADF.
33039
33040 2009-03-03  Bruno Haible  <bruno@clisp.org>
33041
33042         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
33043         earlier.
33044         * doc/visibility.texi: Fix @node and @section.
33045
33046 2009-03-03  Simon Josefsson  <simon@josefsson.org>
33047
33048         * doc/gnulib.texi: Link to sections for ld version script and
33049         visibility.
33050         * doc/visibility.texi: Add @node and @section.
33051         * modules/ld-version-script: New module.
33052         * m4/ld-version-script.m4: New file.
33053         * doc/ld-version-script.texi: New file.
33054
33055 2009-03-02  David Lutterkort  <lutter@redhat.com>
33056
33057         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
33058         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33059
33060 2009-03-02  Bruno Haible  <bruno@clisp.org>
33061
33062         * doc/visibility.texi: Mention libtool's -export-symbols option.
33063
33064 2009-03-02  Jim Meyering  <meyering@redhat.com>
33065
33066         announce-gen: new option: --no-print-checksums
33067         * build-aux/announce-gen (usage): Describe it.
33068         (print_checksums): Print a newline here, not in the [*] footnote.
33069         (main): Honor it.
33070
33071 2009-03-01  Bruno Haible  <bruno@clisp.org>
33072
33073         Use socklen_t in the native Windows replacements prototypes.
33074         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
33075         instead of 'int'.
33076         * lib/getsockopt.c (rpl_getsockopt): Likewise.
33077         * lib/setsockopt.c (rpl_setsockopt): Likewise.
33078         * modules/getsockopt (Depends-on): Add socklen.
33079         * modules/setsockopt (Depends-on): Add socklen.
33080
33081 2009-03-01  Bruno Haible  <bruno@clisp.org>
33082
33083         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
33084         least 4.2.
33085
33086 2009-03-01  Eric Blake  <ebb9@byu.net>
33087             Bruno Haible  <bruno@clisp.org>
33088
33089         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33090         error messages.
33091         * lib/wait-process.c (wait_subprocess): Omit error message about
33092         deadly signal sent to the child of termsigp != NULL.
33093
33094 2009-03-01  Eric Blake  <ebb9@byu.net>
33095
33096         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33097
33098 2009-03-01  Bruno Haible  <bruno@clisp.org>
33099
33100         Avoid a gcc warning.
33101         * tests/test-sched.c (b): Make global.
33102         Reported by Eric Blake.
33103
33104 2009-01-19  Martin Lambers  <marlam@marlam.de>
33105
33106         Provide POSIX semantics for socket timeout options on W32.
33107         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33108         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33109         * modules/setsockopt: Depend on sys_time module for struct timeval.
33110         * modules/getsockopt: Depend on sys_time module for struct timeval.
33111
33112 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33113
33114         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33115         __USE_GNU, for consistency with netdb.in.h.
33116         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33117
33118 2009-03-01  Bruno Haible  <bruno@clisp.org>
33119
33120         More support for FreeMiNT.
33121         * lib/fseeko.c (rpl_fseeko): Complete last commit.
33122         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33123
33124 2009-03-01  Bruno Haible  <bruno@clisp.org>
33125
33126         More support for FreeMiNT.
33127         * lib/fpurge.c (fpurge): Correct last commit.
33128         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33129
33130 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33131
33132         Fix unportable awk script in vc-list-files.
33133         * build-aux/vc-list-files: In the replacement awk script, use
33134         substr with a second argument of 1, not zero.
33135         Report by Simon Josefsson.
33136
33137 2009-02-28  Bruno Haible  <bruno@clisp.org>
33138
33139         More support for FreeMiNT.
33140         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33141         to FreeMiNT today.
33142         * lib/fwriting.c (fwriting): Likewise.
33143         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33144
33145 2009-02-28  Bruno Haible  <bruno@clisp.org>
33146
33147         * tests/test-freadseek.c (main): Disable test beyond end of file on
33148         FreeMiNT.
33149         * tests/test-ftello.c (main): Likewise.
33150         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33151
33152 2009-02-28  Bruno Haible  <bruno@clisp.org>
33153
33154         Add tentative support for FreeMiNT.
33155         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33156         * lib/fpurge.c (fpurge): Likewise.
33157         * lib/freadable.c (freadable): Likewise.
33158         * lib/freading.c (freading): Likewise.
33159         * lib/freadptr.c (freadptr): Likewise.
33160         * lib/freadseek.c (freadptrinc): Likewise.
33161         * lib/fseeko.c (rpl_fseeko): Likewise.
33162         * lib/fseterr.c (fseterr): Likewise.
33163         * lib/fwritable.c (fwritable): Likewise.
33164         * lib/fwriting.c (fwriting): Likewise.
33165         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33166         Hourihane.
33167         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33168
33169 2009-02-28  Bruno Haible  <bruno@clisp.org>
33170
33171         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33172         SIGCHLD.
33173         Reported by Jim Meyering.
33174
33175 2009-02-28  Bruno Haible  <bruno@clisp.org>
33176
33177         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33178         Mention the results of these tests on various platforms.
33179         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33180         order.
33181         * doc/posix-functions/printf.texi: Likewise.
33182         * doc/posix-functions/snprintf.texi: Likewise.
33183         * doc/posix-functions/sprintf.texi: Likewise.
33184         * doc/posix-functions/vfprintf.texi: Likewise.
33185         * doc/posix-functions/vprintf.texi: Likewise.
33186         * doc/posix-functions/vsnprintf.texi: Likewise.
33187         * doc/posix-functions/vsprintf.texi: Likewise.
33188         * doc/glibc-functions/obstack_printf.texi: Likewise.
33189         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33190
33191 2009-02-28  Bruno Haible  <bruno@clisp.org>
33192
33193         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33194         Reported by Loïc Minier <lool@dooz.org>.
33195
33196 2009-02-27  Bruno Haible  <bruno@clisp.org>
33197
33198         * gnulib-tool (func_import): Make the sed expression used to create the
33199         sed script for updating the .gitignore file POSIX compliant.
33200         Reported by Eric Blake.
33201
33202 2009-02-27  Bruno Haible  <bruno@clisp.org>
33203
33204         * gnulib-tool (sed): Don't alias as "sed --posix".
33205         Reported by Eric Blake.
33206
33207 2009-02-27  Bruno Haible  <bruno@clisp.org>
33208
33209         Avoid test link errors.
33210         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33211         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33212         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33213         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33214         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33215
33216 2009-02-27  Bruno Haible  <bruno@clisp.org>
33217
33218         Avoid spurious "(cached)" in configure output.
33219         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33220         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33221         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33222         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33223         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33224         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33225         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33226         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33227         Reported by Eric Blake.
33228
33229 2009-02-27  Eric Blake  <ebb9@byu.net>
33230
33231         printf: fix regression in previous patch
33232         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33233
33234 2009-02-27  Bruno Haible  <bruno@clisp.org>
33235
33236         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33237         value.
33238         * lib/stdint.in.h: Likewise.
33239         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33240
33241 2009-02-27  Eric Blake  <ebb9@byu.net>
33242
33243         doc: mention more functions added in cygwin 1.7.0
33244         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33245         addition.
33246         * doc/posix-functions/open_wmemstream.texi: Likewise.
33247         * doc/posix-functions/wcsnlen.texi: Likewise.
33248         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33249         * doc/posix-functions/wcstod.texi: Likewise.
33250         * doc/posix-functions/wcstof.texi: Likewise.
33251         * doc/posix-functions/wcstoimax.texi: Likewise.
33252         * doc/posix-functions/wcstok.texi: Likewise.
33253         * doc/posix-functions/wcstoumax.texi: Likewise.
33254
33255         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33256         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33257         * doc/posix-functions/fprintf.texi: Update.
33258         * doc/posix-functions/printf.texi: Update.
33259         * doc/posix-functions/snprintf.texi: Update.
33260         * doc/posix-functions/sprintf.texi: Update.
33261         * doc/posix-functions/vfprintf.texi: Update.
33262         * doc/posix-functions/vprintf.texi: Update.
33263         * doc/posix-functions/vsnprintf.texi: Update.
33264         * doc/posix-functions/vsprintf.texi: Update.
33265         * doc/glibc-functions/obstack_printf.texi: Update.
33266         * doc/glibc-functions/obstack_vprintf.texi: Update.
33267
33268 2009-02-26  Eric Blake  <ebb9@byu.net>
33269
33270         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33271         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33272         compilation bug by using runtime conversion.
33273         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33274         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33275         * modules/ceill-tests (Files): Use nan.h.
33276         * modules/floorl-tests (Files): Likewise.
33277         * modules/frexpl-tests (Files): Likewise.
33278         * modules/isnanl-tests (Files): Likewise.
33279         * modules/ldexpl-tests (Files): Likewise.
33280         * modules/roundl-tests (Files): Likewise.
33281         * modules/truncl-tests (Files): Likewise.
33282         * tests/test-ceill.c (main): Use a working NaN.
33283         * tests/test-floorl.c (main): Likewise.
33284         * tests/test-frexpl.c (main): Likewise.
33285         * tests/test-isnan.c (test_long_double): Likewise.
33286         * tests/test-isnanl.h (main): Likewise.
33287         * tests/test-ldexpl.h (main): Likewise.
33288         * tests/test-roundl.h (main): Likewise.
33289         * tests/test-truncl.h (main): Likewise.
33290         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33291
33292 2009-02-26  Eric Blake  <ebb9@byu.net>
33293             Bruno Haible  <bruno@clisp.org>
33294
33295         Work around a *printf bug with %ls on Solaris.
33296         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33297         precision is specified, sprintf stops converting the wide string
33298         argument when the number of bytes that have been produced by this
33299         conversion equals or exceeds the precision.
33300         * doc/posix-functions/fprintf.texi: Update.
33301         * doc/posix-functions/printf.texi: Update.
33302         * doc/posix-functions/snprintf.texi: Update.
33303         * doc/posix-functions/sprintf.texi: Update.
33304         * doc/posix-functions/vfprintf.texi: Update.
33305         * doc/posix-functions/vprintf.texi: Update.
33306         * doc/posix-functions/vsnprintf.texi: Update.
33307         * doc/posix-functions/vsprintf.texi: Update.
33308         * doc/glibc-functions/obstack_printf.texi: Update.
33309         * doc/glibc-functions/obstack_vprintf.texi: Update.
33310
33311 2009-02-26  Eric Blake  <ebb9@byu.net>
33312
33313         stdlib: favor compiler check of random.h
33314         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33315         to avoid an ObjC random.h installed by Swarm.
33316
33317 2009-02-26  Bruno Haible  <bruno@clisp.org>
33318
33319         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33320         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33321         Reported by Gary V. Vaughan <gary@gnu.org>.
33322
33323 2009-02-26  Bruno Haible  <bruno@clisp.org>
33324
33325         Fix *printf behaviour regarding the %ls directive.
33326         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33327         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33328         NEED_PRINTF_DIRECTIVE_LS.
33329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33330         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33331         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33332         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33333         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33334         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33335         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33336         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33337         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33338         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33339         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33340         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33341         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33342         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33343         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33344         * doc/posix-functions/fprintf.texi: Update.
33345         * doc/posix-functions/printf.texi: Update.
33346         * doc/posix-functions/snprintf.texi: Update.
33347         * doc/posix-functions/sprintf.texi: Update.
33348         * doc/posix-functions/vfprintf.texi: Update.
33349         * doc/posix-functions/vprintf.texi: Update.
33350         * doc/posix-functions/vsnprintf.texi: Update.
33351         * doc/posix-functions/vsprintf.texi: Update.
33352         * doc/glibc-functions/obstack_printf.texi: Update.
33353         * doc/glibc-functions/obstack_vprintf.texi: Update.
33354         Reported by Eric Blake.
33355
33356 2009-02-25  Bruno Haible  <bruno@clisp.org>
33357
33358         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33359         with known value.
33360         Reported by Gary V. Vaughan <gary@gnu.org>.
33361
33362 2009-02-25  Bruno Haible  <bruno@clisp.org>
33363
33364         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33365         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33366         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33367         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33368         Reported by Gary V. Vaughan <gary@gnu.org>.
33369
33370 2009-02-25  Bruno Haible  <bruno@clisp.org>
33371
33372         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33373         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33374         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33375         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33376         Reported by Gary V. Vaughan <gary@gnu.org>.
33377
33378 2009-02-25  Eric Blake  <ebb9@byu.net>
33379
33380         tests: skip fseek/ftell tests if ungetc is broken
33381         * m4/ungetc.m4: New file.
33382         * modules/fseek-tests: Split test, so ungetc dependency is
33383         separate from rest of test.
33384         * modules/fseeko-tests: Likewise.
33385         * modules/ftell-tests: Likewise.
33386         * modules/ftello-tests: Likewise.
33387         * tests/test-fseek.c (main): Isolate ungetc dependency.
33388         * tests/test-fseeko.c (main): Likewise.
33389         * tests/test-ftell.c (main): Likewise.
33390         * tests/test-ftello.c (main): Likewise.
33391         * tests/test-fseek2.sh: New file.
33392         * tests/test-fseeko2.sh: Likewise.
33393         * tests/test-ftell2.sh: Likewise.
33394         * tests/test-ftello2.sh: Likewise.
33395
33396 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33397
33398         test-getaddrinfo: fix usage of skip return code 77
33399         * tests/test-gettaddrinfo.c: Return skip code 77 only
33400         for first occurance of skip (4x77 is not 77)
33401
33402 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33403
33404         strtod: avoid C99 decl-after-statement
33405         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33406
33407 2009-02-24  Eric Blake  <ebb9@byu.net>
33408
33409         strtod: detect HP-UX 11.31 bug
33410         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33411         Reported by Gary V. Vaughan.
33412
33413 2009-02-23  Bruno Haible  <bruno@clisp.org>
33414
33415         Fix invalid read past end of memory block.
33416         * lib/vasnprintf.c (DCHAR_SET): Define.
33417         (local_wcslen): Define only when needed.
33418         (local_strnlen, local_wcsnlen): New functions.
33419         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33420         directives that involve a conversion ourselves.
33421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33422         wcsnlen, mbrtowc, wcrtomb.
33423         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33424         * tests/test-vasprintf-posix.c (test_function): Likewise.
33425         * tests/test-snprintf-posix.h (test_function): Likewise.
33426         * tests/test-sprintf-posix.h (test_function): Likewise.
33427         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33428
33429 2009-02-22  Bruno Haible  <bruno@clisp.org>
33430
33431         Implement new clarified decomposition of Hangul syllables.
33432         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33433         of type LTV, return only a pairwise decomposition.
33434         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33435         Likewise.
33436         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33437         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33438         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33439
33440 2009-02-22  Bruno Haible  <bruno@clisp.org>
33441
33442         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33443         zero-length results and shrink excess allocated memory.
33444         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33445         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33446         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33447         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33448         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33449         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33450         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33451         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33452         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33453         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33454         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33455         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33456
33457 2009-02-21  Bruno Haible  <bruno@clisp.org>
33458
33459         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33460         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33461         spaces after a period. Put a space between a macro name and its
33462         argument list. Trivial rewordings.
33463         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33464         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33465         (main): Return 0 explicitly.
33466
33467 2009-02-21  Bruno Haible  <bruno@clisp.org>
33468
33469         Tests for module 'uninorm/filter'.
33470         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33471         * modules/uninorm/filter-tests: New file.
33472
33473         New module 'uninorm/filter'.
33474         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33475         uninorm_filter_flush, uninorm_filter_free): New declarations.
33476         * lib/uninorm/uninorm-filter.c: New file.
33477         * modules/uninorm/filter: New file.
33478
33479 2009-02-21  Bruno Haible  <bruno@clisp.org>
33480
33481         Tests for module 'uninorm/nfkc'.
33482         * tests/uninorm/test-nfkc.c: New file.
33483         * tests/uninorm/test-u8-nfkc.c: New file.
33484         * tests/uninorm/test-u16-nfkc.c: New file.
33485         * tests/uninorm/test-u32-nfkc.c: New file.
33486         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33487         * tests/uninorm/test-u32-nfkc-big.c: New file.
33488         * modules/uninorm/nfkc-tests: New file.
33489
33490         New module 'uninorm/nfkc'.
33491         * lib/uninorm/nfkc.c: New file.
33492         * modules/uninorm/nfkc: New file.
33493
33494         Tests for module 'uninorm/nfkd'.
33495         * tests/uninorm/test-nfkd.c: New file.
33496         * tests/uninorm/test-u8-nfkd.c: New file.
33497         * tests/uninorm/test-u16-nfkd.c: New file.
33498         * tests/uninorm/test-u32-nfkd.c: New file.
33499         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33500         * tests/uninorm/test-u32-nfkd-big.c: New file.
33501         * modules/uninorm/nfkd-tests: New file.
33502
33503         New module 'uninorm/nfkd'.
33504         * lib/uninorm/nfkd.c: New file.
33505         * modules/uninorm/nfkd: New file.
33506
33507         Tests for module 'uninorm/nfc'.
33508         * tests/uninorm/test-nfc.c: New file.
33509         * tests/uninorm/test-u8-nfc.c: New file.
33510         * tests/uninorm/test-u16-nfc.c: New file.
33511         * tests/uninorm/test-u32-nfc.c: New file.
33512         * tests/uninorm/test-u32-nfc-big.sh: New file.
33513         * tests/uninorm/test-u32-nfc-big.c: New file.
33514         * modules/uninorm/nfc-tests: New file.
33515
33516         New module 'uninorm/nfc'.
33517         * lib/uninorm/nfc.c: New file.
33518         * modules/uninorm/nfc: New file.
33519
33520         Tests for module 'uninorm/nfd'.
33521         * tests/uninorm/test-nfd.c: New file.
33522         * tests/uninorm/test-u8-nfd.c: New file.
33523         * tests/uninorm/test-u16-nfd.c: New file.
33524         * tests/uninorm/test-u32-nfd.c: New file.
33525         * tests/uninorm/test-u32-nfd-big.sh: New file.
33526         * tests/uninorm/test-u32-nfd-big.c: New file.
33527         * tests/uninorm/test-u32-normalize-big.h: New file.
33528         * tests/uninorm/test-u32-normalize-big.c: New file.
33529         * tests/uninorm/NormalizationTest.txt: New file, created from
33530         Unicode 5.1.0 NormalizationTest.txt.
33531         * modules/uninorm/nfd-tests: New file.
33532
33533         New module 'uninorm/nfd'.
33534         * lib/uninorm/nfd.c: New file.
33535         * modules/uninorm/nfd: New file.
33536
33537         New module 'uninorm/u32-normalize'.
33538         * lib/uninorm/u32-normalize.c: New file.
33539         * modules/uninorm/u32-normalize: New file.
33540
33541         New module 'uninorm/u16-normalize'.
33542         * lib/uninorm/u16-normalize.c: New file.
33543         * modules/uninorm/u16-normalize: New file.
33544
33545         New module 'uninorm/u8-normalize'.
33546         * lib/uninorm/u8-normalize.c: New file.
33547         * lib/uninorm/normalize-internal.h: New file.
33548         * lib/uninorm/u-normalize-internal.h: New file.
33549         * modules/uninorm/u8-normalize: New file.
33550
33551         New module 'uninorm/decompose-internal'.
33552         * lib/uninorm/decompose-internal.c: New file.
33553         * modules/uninorm/decompose-internal: New file.
33554
33555         Tests for module 'uninorm/composition'.
33556         * tests/uninorm/test-composition.c: New file.
33557         * modules/uninorm/composition-tests: New file.
33558
33559         New module 'uninorm/composition'.
33560         * lib/uninorm/composition.c: New file.
33561         * lib/uninorm/composition-table.gperf: New file, generated by
33562         gen-uni-tables.
33563         * modules/uninorm/composition: New file.
33564
33565         Tests for module 'uninorm/compat-decomposition'.
33566         * tests/uninorm/test-compat-decomposition.c: New file.
33567         * modules/uninorm/compat-decomposition-tests: New file.
33568
33569         New module 'uninorm/compat-decomposition'.
33570         * lib/uninorm/decompose-internal.h: New file.
33571         * lib/uninorm/compat-decomposition.c: New file.
33572         * modules/uninorm/compat-decomposition: New file.
33573
33574         Tests for module 'uninorm/canonical-decomposition'.
33575         * tests/uninorm/test-canonical-decomposition.c: New file.
33576         * modules/uninorm/canonical-decomposition-tests: New file.
33577
33578         New module 'uninorm/canonical-decomposition'.
33579         * lib/uninorm/canonical-decomposition.c: New file.
33580         * modules/uninorm/canonical-decomposition: New file.
33581
33582         Tests for module 'uninorm/decomposition'.
33583         * tests/uninorm/test-decomposition.c: New file.
33584         * modules/uninorm/decomposition-tests: New file.
33585
33586         New module 'uninorm/decomposition'.
33587         * lib/uninorm/decomposition.c: New file.
33588         * modules/uninorm/decomposition: New file.
33589
33590         New module 'uninorm/decomposition-table'.
33591         * lib/uninorm/decomposition-table.h: New file.
33592         * lib/uninorm/decomposition-table.c: New file.
33593         * lib/uninorm/decomposition-table1.h: New file, generated by
33594         gen-uni-tables.
33595         * lib/uninorm/decomposition-table2.h: New file, generated by
33596         gen-uni-tables.
33597         * modules/uninorm/decomposition-table: New file.
33598
33599         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33600         (UC_DECOMP_*): New enumeration items.
33601         (get_decomposition): New function.
33602         (struct decomp_table): New type.
33603         (output_decomposition, output_decomposition_tables): New functions.
33604         (unicode_composition_exclusions): New variable.
33605         (fill_composition_exclusions, debug_output_composition_tables): New
33606         functions.
33607         (main): Accept one more argument. Invoke fill_composition_exclusions.
33608         Output decomposition and composition tables.
33609
33610         New module 'uninorm/base'.
33611         * lib/uninorm.h: New file.
33612         * lib/unictype.h: Update comment.
33613         * modules/uninorm/base: New file.
33614
33615 2009-02-21  David Lutterkort  <lutter@redhat.com>
33616
33617         Tests for module 'safe-alloc'.
33618         * tests/test-safe-alloc.c: New file.
33619         * modules/safe-alloc-tests: New file.
33620
33621         New module 'safe-alloc'.
33622         * lib/safe-alloc.h: New file.
33623         * lib/safe-alloc.c: New file.
33624         * m4/safe-alloc.m4: New file.
33625         * modules/safe-alloc: New file.
33626         * doc/safe-alloc.texi: New file.
33627         * doc/gnulib.texi: Include it.
33628         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33629         safe-alloc.
33630
33631 2009-02-18  Bruno Haible  <bruno@clisp.org>
33632
33633         Fix link error on non-glibc systems.
33634         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33635         variable.
33636         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33637
33638 2009-02-18  Jim Meyering  <meyering@redhat.com>
33639
33640         fts: avoid used-uninitialized error due to recent change
33641         * lib/fts.c (fts_read): Guard uses of the new member,
33642         parent->fts_n_dirs_remaining, since it's not relevant for
33643         the parent of a directory specified on the command-line.
33644
33645 2009-02-17  James Youngman  <jay@gnu.org>
33646             Bruno Haible  <bruno@clisp.org>
33647
33648         * m4/include_next.m4: Reformulate comment.
33649
33650 2009-02-16  Jim Meyering  <meyering@redhat.com>
33651
33652         fts: add #if guards so that the fts_lgpl module still builds
33653         * lib/fts.c: Guard just-added hash-table-using parts with
33654         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33655         Reported by Simon Josefsson.
33656
33657 2009-02-15  Bruno Haible  <bruno@clisp.org>
33658
33659         * modules/array-mergesort-tests: New file.
33660         * tests/test-array-mergesort.c: New file.
33661
33662         New module 'array-mergesort'.
33663         * modules/array-mergesort: New file.
33664         * lib/array-mergesort.h: New file.
33665
33666 2009-02-15  Bruno Haible  <bruno@clisp.org>
33667
33668         Fix 2009-02-07 commit.
33669         * lib/gen-uni-tables.c (output_predicate, output_category,
33670         output_combclass, output_bidi_category, output_decimal_digit,
33671         output_digit, output_numeric, output_mirror, output_scripts,
33672         output_ident_category, output_simple_mapping): Fix format directives.
33673         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33674
33675 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33676
33677         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33678         fixes are available from IBM.
33679
33680 2009-02-13  Jim Meyering  <meyering@redhat.com>
33681
33682         fts: arrange not to stat non-directories in more cases
33683         This makes GNU find (when it doesn't need to stat each file)
33684         *much* more efficient at traversing reiserfs file systems.
33685         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33686         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33687         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33688         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33689         (leaf_optimization_applies): New function.
33690         (LCO_hash, LCO_compare): New helper functions.
33691         (link_count_optimize_ok): New function.
33692         (fts_stat): Initialize new member (if dir).
33693         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33694         we've just stat'ed a directory.  Skip the stat call when possible.
33695         ---
33696         Note this AFS-related exchange:
33697         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33698         and note find's pioctl call in find/fstype.c.
33699         But that is necessary only if you want to enable the
33700         optimization for AFS, and for now, I don't.
33701
33702         fts: move a function definition "up" (no semantic change)
33703         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33704         "up" to precede upcoming use of a related function.
33705
33706 2009-02-11  Jim Meyering  <meyering@redhat.com>
33707
33708         fts: correct internal computation of nlinks (optimization-related)
33709         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33710         whether the current entry is a directory, so don't test it.
33711
33712 2009-02-10  Bruno Haible  <bruno@clisp.org>
33713
33714         Tests for module 'uniwbrk/ulc-wordbreaks'.
33715         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33716         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33717         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33718
33719         Tests for module 'uniwbrk/u32-wordbreaks'.
33720         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33721         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33722
33723         Tests for module 'uniwbrk/u16-wordbreaks'.
33724         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33725         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33726
33727         Tests for module 'uniwbrk/u8-wordbreaks'.
33728         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33729         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33730
33731 2009-02-10  Bruno Haible  <bruno@clisp.org>
33732
33733         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33734         property.
33735         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33736         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33737         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33738
33739 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33740
33741         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33742         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33743
33744 2009-02-10  Bruno Haible  <bruno@clisp.org>
33745
33746         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33747         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33748         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33749         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33750         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33751         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33752
33753 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33754
33755         * lib/sockets.h (gl_fd_to_handle): New function.
33756
33757         * tests/test-sockets.c: Call gl_fd_to_handle.
33758
33759 2009-02-09  Bruno Haible  <bruno@clisp.org>
33760
33761         * doc/havelib.texi: Document the conventions on bi-arch systems.
33762
33763 2009-02-08  Bruno Haible  <bruno@clisp.org>
33764
33765         Document the AC_LIB_LINKFLAGS macro.
33766         * doc/havelib.texi: New file, mostly written on 2005-05-24.
33767         * doc/gnulib.texi: Include it.
33768
33769 2009-02-08  Bruno Haible  <bruno@clisp.org>
33770
33771         Fix wrong order of sections, compared to TOC.
33772         * doc/gnulib.texi: Include relocatable-maint.texi after the
33773         "Regular expressions" node, not before.
33774
33775 2009-02-08  Bruno Haible  <bruno@clisp.org>
33776
33777         Tests for module 'unicase/totitle'.
33778         * modules/unicase/totitle-tests: New file.
33779
33780         Tests for module 'unicase/tolower'.
33781         * modules/unicase/tolower-tests: New file.
33782
33783         Tests for module 'unicase/toupper'.
33784         * modules/unicase/toupper-tests: New file.
33785         * tests/unicase/test-mapping-part1.h: New file.
33786         * tests/unicase/test-mapping-part2.h: New file.
33787
33788         New module 'unicase/totitle'.
33789         * modules/unicase/totitle: New file.
33790         * lib/unicase/totitle.c: New file.
33791
33792         New module 'unicase/tolower'.
33793         * modules/unicase/tolower: New file.
33794         * lib/unicase/tolower.c: New file.
33795
33796         New module 'unicase/toupper'.
33797         * modules/unicase/toupper: New file.
33798         * lib/unicase/toupper.c: New file.
33799         * lib/unicase/simple-mapping.h: New file.
33800
33801         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
33802         (mapping_table): New structure.
33803         (output_simple_mapping): New function.
33804         (main): Invoke output_simple_mapping_test and output_simple_mapping.
33805         * modules/gen-uni-tables (Description): Update.
33806         * lib/unicase/toupper.h: New file, automatically generated by
33807         gen-uni-tables.
33808         * lib/unicase/tolower.h: New file, automatically generated by
33809         gen-uni-tables.
33810         * lib/unicase/totitle.h: New file, automatically generated by
33811         gen-uni-tables.
33812         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
33813         gen-uni-tables.
33814         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
33815         gen-uni-tables.
33816         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
33817         gen-uni-tables.
33818
33819         New module 'unicase/base'.
33820         * modules/unicase/base: New file.
33821         * lib/unicase.h: New file.
33822
33823 2009-02-08  Bruno Haible  <bruno@clisp.org>
33824
33825         New module 'uniwbrk/ulc-wordbreaks'.
33826         * modules/uniwbrk/ulc-wordbreaks: New file.
33827         * lib/uniwbrk/ulc-wordbreaks.c: New file.
33828
33829         New module 'uniwbrk/u32-wordbreaks'.
33830         * modules/uniwbrk/u32-wordbreaks: New file.
33831         * lib/uniwbrk/u32-wordbreaks.c: New file.
33832
33833         New module 'uniwbrk/u16-wordbreaks'.
33834         * modules/uniwbrk/u16-wordbreaks: New file.
33835         * lib/uniwbrk/u16-wordbreaks.c: New file.
33836
33837         New module 'uniwbrk/u8-wordbreaks'.
33838         * modules/uniwbrk/u8-wordbreaks: New file.
33839         * lib/uniwbrk/u8-wordbreaks.c: New file.
33840         * lib/uniwbrk/u-wordbreaks.h: New file.
33841
33842         New module 'uniwbrk/table'.
33843         * modules/uniwbrk/table: New file.
33844         * lib/uniwbrk/wbrktable.h: New file.
33845         * lib/uniwbrk/wbrktable.c: New file.
33846
33847         New module 'uniwbrk/wordbreak-property'.
33848         * modules/uniwbrk/wordbreak-property: New file.
33849         * lib/uniwbrk/wordbreak-property.c: New file.
33850
33851         * lib/gen-uni-tables.c (WBP_*): New enum items.
33852         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
33853         (unicode_org_wbp): New variable.
33854         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
33855         New functions.
33856         (wbp_table): New structure.
33857         (output_wbp, output_wbrk_tables): New functions.
33858         (main): Accept additional argument. Invoke fill_org_wbp,
33859         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
33860         output_wbrk_tables.
33861         * modules/gen-uni-tables (Description): Update.
33862         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
33863         gen-uni-tables.
33864
33865         New module 'uniwbrk/base'.
33866         * modules/uniwbrk/base: New file.
33867         * lib/uniwbrk.h: New file.
33868
33869 2009-02-08  Bruno Haible  <bruno@clisp.org>
33870
33871         Update to Unicode 5.1.0.
33872         * lib/gen-uni-tables.c (is_property_alphabetic): Include
33873         U+2185..U+2188.
33874         (is_property_default_ignorable_code_point): Don't include characters
33875         of category Cc or Cs and not-a-characters.
33876         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
33877         U+0D79, U+109E, U+109F, U+A60C.
33878         * lib/unictype/bidi_of.h: Regenerated.
33879         * lib/unictype/blocks.h: Regenerated.
33880         * lib/unictype/categ_C.h: Regenerated.
33881         * lib/unictype/categ_Cf.h: Regenerated.
33882         * lib/unictype/categ_Cn.h: Regenerated.
33883         * lib/unictype/categ_L.h: Regenerated.
33884         * lib/unictype/categ_Ll.h: Regenerated.
33885         * lib/unictype/categ_Lm.h: Regenerated.
33886         * lib/unictype/categ_Lo.h: Regenerated.
33887         * lib/unictype/categ_Lu.h: Regenerated.
33888         * lib/unictype/categ_M.h: Regenerated.
33889         * lib/unictype/categ_Mc.h: Regenerated.
33890         * lib/unictype/categ_Me.h: Regenerated.
33891         * lib/unictype/categ_Mn.h: Regenerated.
33892         * lib/unictype/categ_N.h: Regenerated.
33893         * lib/unictype/categ_Nd.h: Regenerated.
33894         * lib/unictype/categ_Nl.h: Regenerated.
33895         * lib/unictype/categ_No.h: Regenerated.
33896         * lib/unictype/categ_P.h: Regenerated.
33897         * lib/unictype/categ_Pd.h: Regenerated.
33898         * lib/unictype/categ_Pe.h: Regenerated.
33899         * lib/unictype/categ_Pf.h: Regenerated.
33900         * lib/unictype/categ_Pi.h: Regenerated.
33901         * lib/unictype/categ_Po.h: Regenerated.
33902         * lib/unictype/categ_Ps.h: Regenerated.
33903         * lib/unictype/categ_S.h: Regenerated.
33904         * lib/unictype/categ_Sk.h: Regenerated.
33905         * lib/unictype/categ_Sm.h: Regenerated.
33906         * lib/unictype/categ_So.h: Regenerated.
33907         * lib/unictype/categ_of.h: Regenerated.
33908         * lib/unictype/combining.h: Regenerated.
33909         * lib/unictype/ctype_alnum.h: Regenerated.
33910         * lib/unictype/ctype_alpha.h: Regenerated.
33911         * lib/unictype/ctype_graph.h: Regenerated.
33912         * lib/unictype/ctype_lower.h: Regenerated.
33913         * lib/unictype/ctype_print.h: Regenerated.
33914         * lib/unictype/ctype_punct.h: Regenerated.
33915         * lib/unictype/ctype_upper.h: Regenerated.
33916         * lib/unictype/decdigit.h: Regenerated.
33917         * lib/unictype/digit.h: Regenerated.
33918         * lib/unictype/mirror.h: Regenerated.
33919         * lib/unictype/numeric.h: Regenerated.
33920         * lib/unictype/pr_alphabetic.h: Regenerated.
33921         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
33922         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
33923         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
33924         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
33925         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
33926         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
33927         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
33928         * lib/unictype/pr_combining.h: Regenerated.
33929         * lib/unictype/pr_dash.h: Regenerated.
33930         * lib/unictype/pr_decimal_digit.h: Regenerated.
33931         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
33932         * lib/unictype/pr_deprecated.h: Regenerated.
33933         * lib/unictype/pr_diacritic.h: Regenerated.
33934         * lib/unictype/pr_extender.h: Regenerated.
33935         * lib/unictype/pr_format_control.h: Regenerated.
33936         * lib/unictype/pr_grapheme_base.h: Regenerated.
33937         * lib/unictype/pr_grapheme_extend.h: Regenerated.
33938         * lib/unictype/pr_grapheme_link.h: Regenerated.
33939         * lib/unictype/pr_id_continue.h: Regenerated.
33940         * lib/unictype/pr_id_start.h: Regenerated.
33941         * lib/unictype/pr_ideographic.h: Regenerated.
33942         * lib/unictype/pr_ignorable_control.h: Regenerated.
33943         * lib/unictype/pr_lowercase.h: Regenerated.
33944         * lib/unictype/pr_math.h: Regenerated.
33945         * lib/unictype/pr_numeric.h: Regenerated.
33946         * lib/unictype/pr_other_alphabetic.h: Regenerated.
33947         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
33948         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
33949         * lib/unictype/pr_other_id_continue.h: Regenerated.
33950         * lib/unictype/pr_other_lowercase.h: Regenerated.
33951         * lib/unictype/pr_other_math.h: Regenerated.
33952         * lib/unictype/pr_punctuation.h: Regenerated.
33953         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33954         * lib/unictype/pr_soft_dotted.h: Regenerated.
33955         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33956         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33957         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33958         * lib/unictype/pr_uppercase.h: Regenerated.
33959         * lib/unictype/pr_xid_continue.h: Regenerated.
33960         * lib/unictype/pr_xid_start.h: Regenerated.
33961         * lib/unictype/pr_zero_width.h: Regenerated.
33962         * lib/unictype/scripts.h: Regenerated.
33963         * lib/unictype/scripts_byname.gperf: Regenerated.
33964         * lib/unictype/sy_java_ident.h: Regenerated.
33965         * lib/unilbrk/lbrkprop1.h: Regenerated.
33966         * lib/unilbrk/lbrkprop2.h: Regenerated.
33967         * tests/unictype/test-categ_C.c: Regenerated.
33968         * tests/unictype/test-categ_Cf.c: Regenerated.
33969         * tests/unictype/test-categ_Cn.c: Regenerated.
33970         * tests/unictype/test-categ_L.c: Regenerated.
33971         * tests/unictype/test-categ_Ll.c: Regenerated.
33972         * tests/unictype/test-categ_Lm.c: Regenerated.
33973         * tests/unictype/test-categ_Lo.c: Regenerated.
33974         * tests/unictype/test-categ_Lu.c: Regenerated.
33975         * tests/unictype/test-categ_M.c: Regenerated.
33976         * tests/unictype/test-categ_Mc.c: Regenerated.
33977         * tests/unictype/test-categ_Me.c: Regenerated.
33978         * tests/unictype/test-categ_Mn.c: Regenerated.
33979         * tests/unictype/test-categ_N.c: Regenerated.
33980         * tests/unictype/test-categ_Nd.c: Regenerated.
33981         * tests/unictype/test-categ_Nl.c: Regenerated.
33982         * tests/unictype/test-categ_No.c: Regenerated.
33983         * tests/unictype/test-categ_P.c: Regenerated.
33984         * tests/unictype/test-categ_Pd.c: Regenerated.
33985         * tests/unictype/test-categ_Pe.c: Regenerated.
33986         * tests/unictype/test-categ_Pf.c: Regenerated.
33987         * tests/unictype/test-categ_Pi.c: Regenerated.
33988         * tests/unictype/test-categ_Po.c: Regenerated.
33989         * tests/unictype/test-categ_Ps.c: Regenerated.
33990         * tests/unictype/test-categ_S.c: Regenerated.
33991         * tests/unictype/test-categ_Sk.c: Regenerated.
33992         * tests/unictype/test-categ_Sm.c: Regenerated.
33993         * tests/unictype/test-categ_So.c: Regenerated.
33994         * tests/unictype/test-ctype_alnum.c: Regenerated.
33995         * tests/unictype/test-ctype_alpha.c: Regenerated.
33996         * tests/unictype/test-ctype_graph.c: Regenerated.
33997         * tests/unictype/test-ctype_lower.c: Regenerated.
33998         * tests/unictype/test-ctype_print.c: Regenerated.
33999         * tests/unictype/test-ctype_punct.c: Regenerated.
34000         * tests/unictype/test-ctype_upper.c: Regenerated.
34001         * tests/unictype/test-decdigit.h: Regenerated.
34002         * tests/unictype/test-digit.h: Regenerated.
34003         * tests/unictype/test-numeric.h: Regenerated.
34004         * tests/unictype/test-pr_alphabetic.c: Regenerated.
34005         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
34006         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
34007         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
34008         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
34009         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
34010         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
34011         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
34012         * tests/unictype/test-pr_combining.c: Regenerated.
34013         * tests/unictype/test-pr_dash.c: Regenerated.
34014         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
34015         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
34016         * tests/unictype/test-pr_deprecated.c: Regenerated.
34017         * tests/unictype/test-pr_diacritic.c: Regenerated.
34018         * tests/unictype/test-pr_extender.c: Regenerated.
34019         * tests/unictype/test-pr_format_control.c: Regenerated.
34020         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
34021         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
34022         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
34023         * tests/unictype/test-pr_id_continue.c: Regenerated.
34024         * tests/unictype/test-pr_id_start.c: Regenerated.
34025         * tests/unictype/test-pr_ideographic.c: Regenerated.
34026         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
34027         * tests/unictype/test-pr_lowercase.c: Regenerated.
34028         * tests/unictype/test-pr_math.c: Regenerated.
34029         * tests/unictype/test-pr_numeric.c: Regenerated.
34030         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
34031         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
34032         Regenerated.
34033         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
34034         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
34035         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
34036         * tests/unictype/test-pr_other_math.c: Regenerated.
34037         * tests/unictype/test-pr_punctuation.c: Regenerated.
34038         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
34039         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
34040         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
34041         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
34042         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
34043         * tests/unictype/test-pr_uppercase.c: Regenerated.
34044         * tests/unictype/test-pr_xid_continue.c: Regenerated.
34045         * tests/unictype/test-pr_xid_start.c: Regenerated.
34046         * tests/unictype/test-pr_zero_width.c: Regenerated.
34047
34048         Update to Unicode 5.1.0.
34049         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34050         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34051         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34052         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34053         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34054         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34055         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34056         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34057         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
34058         (nonspacing_table_ind): Update.
34059         * tests/uniwidth/test-uc_width2.sh: Update expected result.
34060
34061         Update to Unicode 5.1.0.
34062         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
34063         code transform.
34064         * lib/uniname/uniname.c (unicode_character_name,
34065         unicode_name_character): Add the range 0x1Fxxx to the code transform.
34066         * lib/uniname/uninames.h: Regenerated.
34067         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
34068
34069 2009-02-07  Bruno Haible  <bruno@clisp.org>
34070
34071         Merge gen-ctype and gen-lbrk into a single program.
34072         * lib/gen-uni-tables.c: New file, incorporating
34073         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
34074         Add directory prefixes to the names of the generated files.
34075         * lib/unictype/gen-ctype.c: Remove file.
34076         * lib/unilbrk/gen-lbrk.c: Remove file.
34077         * modules/gen-uni-tables: New file.
34078         * modules/unictype/gen-ctype: Remove file.
34079         * modules/unilbrk/gen-lbrk: Remove file.
34080
34081 2009-02-07  Bruno Haible  <bruno@clisp.org>
34082
34083         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
34084
34085         New module 'unistr/u32-strcoll'.
34086         * modules/unistr/u32-strcoll: New file.
34087         * lib/unistr/u32-strcoll.c: New file.
34088
34089         New module 'unistr/u16-strcoll'.
34090         * modules/unistr/u16-strcoll: New file.
34091         * lib/unistr/u16-strcoll.c: New file.
34092
34093         New module 'unistr/u8-strcoll'.
34094         * modules/unistr/u8-strcoll: New file.
34095         * lib/unistr/u8-strcoll.c: New file.
34096         * lib/unistr/u-strcoll.h: New file.
34097
34098 2009-02-07  Bruno Haible  <bruno@clisp.org>
34099
34100         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34101         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34102         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34103         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34104         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34105         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34106
34107 2009-02-07  Bruno Haible  <bruno@clisp.org>
34108
34109         Make 64-bit clean.
34110         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34111         output_combclass, output_bidi_category, output_decimal_digit,
34112         output_digit, output_numeric, output_mirror, output_scripts,
34113         output_ident_category): Use proper width specifier in format strings.
34114
34115 2009-02-07  Bruno Haible  <bruno@clisp.org>
34116
34117         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34118         failure behaviour.
34119
34120 2009-02-07  Jim Meyering  <meyering@redhat.com>
34121
34122         regex: avoid compilation failure with upcoming gcc-4.4
34123         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34124         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34125         "... error: integer overflow in preprocessor expression".
34126
34127 2009-02-05  Ben Pfaff  <blp@gnu.org>
34128
34129         Fix link errors on Windows when close module is used.
34130         * modules/close: Add $(LIB_CLOSE) to Link section.
34131         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34132         $(LIB_CLOSE) on Windows.
34133
34134 2009-02-05  Jim Meyering  <meyering@redhat.com>
34135
34136         still avoid unused-parameter warnings, but do it cleanly
34137         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34138         (get_fs_usage): Cast to void instead.
34139         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34140         (dev_from_mount_options, read_file_system_list): Cast to void.
34141         Prompted by Bruno Haible.
34142
34143 2009-02-04  Jim Meyering  <meyering@redhat.com>
34144
34145         fsusage.c: correct copyright year
34146         * lib/fsusage.c: Reflect year in which the change is pushed into
34147
34148         avoid misc. warnings
34149         * lib/fsusage.c (UNUSED_PARAM): Define.
34150         (get_fs_usage): Mark parameter "disk" as unused.
34151         * lib/getugroups.c (getgrent): Use "void" in prototype.
34152         * lib/mountlist.c: Mark unused parameters.
34153         (read_file_system_list): Declare a local with "const".
34154         * lib/nanosleep.c (getnow): Declare static.
34155         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34156
34157         dirfd: set errno upon failure
34158         * lib/dirfd.c: Include <errno.h>.
34159         Set errno to ENOTSUP when returning -1.
34160         * modules/dirfd (Depends-on): Add errno.
34161         Suggested by John Kodis <kodis@comcast.net>.
34162
34163 2009-02-01  Bruno Haible  <bruno@clisp.org>
34164
34165         Don't assume sizeof (long) >= sizeof (void *).
34166         * lib/memcmp.c: Include stdint.h.
34167         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34168         srcp2 to 'const byte *'.
34169         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34170         types to uintptr_t.
34171         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34172         * modules/memcmp (Depends-on): Add stdint.
34173         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34174
34175 2009-01-30  Eric Blake  <ebb9@byu.net>
34176
34177         fix more require-before-expand issues
34178         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34179         expand, AC_PROG_AWK.
34180         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34181
34182 2009-01-28  Eric Blake  <ebb9@byu.net>
34183
34184         version-etc: use consistent URL formatting
34185         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34186         Improve formatting.  Use fputs for string without %.
34187
34188 2009-01-28  Jim Meyering  <meyering@redhat.com>
34189
34190         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34191         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34192         "underquoted definition of NAME" from autoconf-2.59.
34193
34194 2009-01-28  Bruno Haible  <bruno@clisp.org>
34195
34196         * doc/gnulib.texi: Add "Obsolete modules" to index.
34197
34198 2009-01-28  Jim Meyering  <meyering@redhat.com>
34199
34200         useless-if-before-free: recognize more variants
34201         * build-aux/useless-if-before-free: Also recognize e.g.,
34202         if (NULL != p) free (p);
34203
34204 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34205
34206         test-getaddrinfo: skip (don't fail) this test when there's no network
34207         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34208         on the presumption that it means you lack network access.
34209
34210 2009-01-26  Jim Meyering  <meyering@redhat.com>
34211
34212         fflush: avoid warnings on modern systems
34213         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34214         pos and result, into scopes where they're used.
34215
34216 2009-01-26  Eric Blake  <ebb9@byu.net>
34217
34218         Silence warning reintroduced by recent extensions patch.
34219         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34220         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34221         autoconf.
34222
34223         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34224         * m4/00gnulib.m4: New file.
34225         * gnulib-tool (func_get_filelist): Always use it.
34226         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34227         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34228
34229 2009-01-25  Bruno Haible  <bruno@clisp.org>
34230
34231         Make test-quotearg work on MacOS X and AIX.
34232         * tests/test-quotearg.sh: New file.
34233         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34234         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34235         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34236         include <libintl.h>.
34237         (fake_locale): Remove variable.
34238         (gettext, dgettext, dcgettext): Remove functions.
34239         (main): Instead of setting a fake locale, set a real locale. Call
34240         textdomain and bindtextdomain.
34241         * modules/quotearg-tests (Files): Add the new files.
34242         (Depends-on): Add gettext, setenv, unsetenv.
34243         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34244         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34245         Augment TESTS_ENVIRONMENT.
34246
34247 2009-01-25  Bruno Haible  <bruno@clisp.org>
34248
34249         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34250         fr_FR.ISO8859-1 locale on MacOS X.
34251         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34252         ja_JP.eucJP locale on MacOS X.
34253         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34254         zh_CN.GB18030 locale on MacOS X.
34255
34256 2009-01-25  Bruno Haible  <bruno@clisp.org>
34257
34258         Avoid link errors on MacOS X 10.3.
34259         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34260         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34261
34262 2009-01-25  Bruno Haible  <bruno@clisp.org>
34263
34264         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34265         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34266         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34267         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34268         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34269         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34270         posix_spawnattr_init, posix_spawnattr_setsigmask,
34271         posix_spawnattr_setflags, posix_spawnattr_destroy.
34272
34273         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34274         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34275         * modules/execute (Files): Remove m4/posix_spawn.m4.
34276         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34277         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34278         posix_spawnattr_init, posix_spawnattr_setsigmask,
34279         posix_spawnattr_setflags, posix_spawnattr_destroy.
34280
34281 2009-01-25  Bruno Haible  <bruno@clisp.org>
34282
34283         * lib/glthread/threadlib.c: Include <stdlib.h>.
34284
34285 2009-01-25  Bruno Haible  <bruno@clisp.org>
34286
34287         * lib/glthread/threadlib.c (dummy): New declaration.
34288
34289 2009-01-25  Bruno Haible  <bruno@clisp.org>
34290
34291         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34292         multibyte characters also for the GB18030 encoding. Don't crash when
34293         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34294
34295 2009-01-25  Bruno Haible  <bruno@clisp.org>
34296
34297         Avoid redefining 'struct random_data' on OSF/1 5.1.
34298         * lib/stdlib.in.h: Include <random.h> if it exists.
34299         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34300         HAVE_RANDOM_H. Include <random.h> when testing whether
34301         'struct random_data' exists.
34302         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34303
34304 2009-01-25  Bruno Haible  <bruno@clisp.org>
34305
34306         Don't install charset.alias on MacOS X >= 10.3.
34307         * lib/localcharset.c (DARWIN7): New macro.
34308         (get_charset_aliases): Hardcode the result for Darwin7.
34309         * modules/localcharset (install-exec-local): Don't install
34310         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34311
34312 2009-01-25  Bruno Haible  <bruno@clisp.org>
34313
34314         Don't install charset.alias on mingw and Cygwin.
34315         * modules/localcharset (install-exec-local): Don't install
34316         charset.alias on mingw and Cygwin, if the file does not yet exist.
34317         The result for these platforms is hardcoded in localcharset.c.
34318
34319 2009-01-25  Bruno Haible  <bruno@clisp.org>
34320
34321         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34323         before requiring AC_USE_SYSTEM_EXTENSIONS.
34324
34325 2009-01-25  Jim Meyering  <meyering@redhat.com>
34326
34327         c-strtod: avoid warnings
34328         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34329         "assignment discards qualifiers from pointer target type" warnings.
34330
34331 2009-01-24  Bruno Haible  <bruno@clisp.org>
34332
34333         Add support for non-UTF-8 locales on MacOS X.
34334         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34335         canonical encodings. For Darwin 7 and newer, don't map traditional
34336         encodings to UTF-8.
34337         Reported by Vincent Lefevre <vincent@vinc17.org>
34338         at <http://savannah.gnu.org/bugs/?25235>.
34339
34340 2009-01-24  Bruno Haible  <bruno@clisp.org>
34341
34342         * doc/gnulib.texi (Obsolete modules): New section.
34343         Reported by Mike Frysinger <vapier@gentoo.org>.
34344
34345 2009-01-24  Bruno Haible  <bruno@clisp.org>
34346
34347         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34348         (%.dvi): New rule.
34349
34350 2009-01-24  Bruno Haible  <bruno@clisp.org>
34351
34352         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34353         Reported by Eric Blake.
34354
34355 2009-01-24  Bruno Haible  <bruno@clisp.org>
34356
34357         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34358         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34359         Reported by Gary V. Vaughan <gary@gnu.org>.
34360
34361 2009-01-24  Bruno Haible  <bruno@clisp.org>
34362
34363         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34364
34365 2009-01-23  Bruno Haible  <bruno@clisp.org>
34366
34367         Make c-strtod, c-strtold usable in libraries.
34368         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34369         (C_STRTOD): Call strdup instead of xstrdup.
34370         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34371         * modules/c-strtold (Depends-on): Likewise.
34372         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34373         * NEWS: Mention the change.
34374         Reported by Michael Gold <mgold@ncf.ca>.
34375
34376 2009-01-23  Jim Meyering  <meyering@redhat.com>
34377
34378         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34379         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34380         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34381
34382 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34383
34384         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34385         GNU CoreUtils.
34386         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34387         * modules/version-etc (Description): Update.
34388
34389 2009-01-22  Bruno Haible  <bruno@clisp.org>
34390
34391         Cache the C locale object.
34392         * lib/c-strtod.c (c_locale_cache): New variable.
34393         (c_locale): New function.
34394         (C_STRTOD): Use it, and don't call freelocale.
34395         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34396         Suggested by Paolo Bonzini.
34397
34398 2009-01-21  Bruno Haible  <bruno@clisp.org>
34399
34400         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34401         conditions other than overflow.
34402
34403 2009-01-21  Bruno Haible  <bruno@clisp.org>
34404
34405         * lib/c-strtod.c: Include errno.h.
34406         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34407         value from STRTOD_L and STRTOD.
34408
34409 2009-01-21  Bruno Haible  <bruno@clisp.org>
34410         and Jim Meyering  <meyering@redhat.com>
34411
34412         nanosleep: skip configure test (fail it) for apple universal builds
34413         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34414         universal builds, assume that nanosleep does not work.
34415         * modules/nanosleep (Depends-on): Add multiarch.
34416
34417         mktime: skip configure test (fail it) for apple universal builds
34418         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34419         universal builds, assume that mktime does not work.
34420         * modules/mktime (Depends-on): Add multiarch.
34421
34422 2009-01-21  Eric Blake  <ebb9@byu.net>
34423
34424         multiarch: avoid expand-before-require warning
34425         * modules/multiarch (configure.ac): Require, rather than expand,
34426         gl_MULTIARCH.
34427         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34428         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34429         enforce that all clients require it.  Partial reversion of
34430         2008-12-29 patch.
34431
34432         error: avoid expand-before-require warning
34433         * modules/errno (configure.ac): Require, rather than expand,
34434         gl_HEADER_ERRNO_H.
34435         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34436         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34437         enforce that all clients require it.
34438
34439         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34440         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34441         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34442         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34443
34444 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34445
34446         Revert:
34447         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34448
34449         regex: do not depend on obsolete modules.
34450         * modules/regex: Remove memcmp and memmove.
34451
34452 2009-01-20  Bruno Haible  <bruno@clisp.org>
34453
34454         Make the 'link' module link on Windows NT 4.
34455         * lib/link.c (_WIN32_WINNT): Don't define.
34456         (CreateHardLinkFuncType): New type.
34457         (CreateHardLinkFunc, initialized): New variables.
34458         (initialize): New function.
34459         (link): Invoke CreateHardLink indirectly through the function pointer.
34460
34461 2009-01-20  Bruno Haible  <bruno@clisp.org>
34462
34463         Fix compilation failure on mingw.
34464         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34465
34466 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34467
34468         * doc/c-strtod.texi: Mention a couple of restrictions.
34469
34470 2009-01-20  Jim Meyering  <meyering@redhat.com>
34471
34472         gettimeofday: move more declarations out of functions
34473         * lib/gettimeofday.c: Move extern declarations of tzset and
34474         gmtime out of containing functions.  Prompted by Bruno Haible.
34475
34476 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34477
34478         regex: do not depend on obsolete modules.
34479         * modules/regex: Remove memcmp and memmove.
34480
34481 2009-01-19  Bruno Haible  <bruno@clisp.org>
34482
34483         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34484         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34485         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34486         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34487         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34488
34489 2009-01-19  Bruno Haible  <bruno@clisp.org>
34490
34491         * tests/test-link.c: Include <errno.h>.
34492         (main): Exit with code 77 when a hard link cannot be created due to
34493         the file system.
34494         * tests/test-link.sh: Skip test when a hard link cannot be created due
34495         to the file system.
34496         Suggested by Eric Blake.
34497
34498 2009-01-19  Martin Lambers  <marlam@marlam.de>
34499
34500         * modules/link-tests: New file.
34501         * tests/test-link.sh: New file.
34502         * tests/test-link.c: New file.
34503
34504 2009-01-19  Eric Blake  <ebb9@byu.net>
34505
34506         doc: mention another function added in cygwin 1.7.0
34507         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34508         Another new function in cygwin 1.7.
34509
34510 2009-01-19  Bruno Haible  <bruno@clisp.org>
34511
34512         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34513         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34514         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34515         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34516         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34517         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34518         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34519         * m4/md4.m4 (gl_MD4): Likewise.
34520         * m4/md5.m4 (gl_MD5): Likewise.
34521         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34522         * m4/sha1.m4 (gl_SHA1): Likewise.
34523         * m4/sha256.m4 (gl_SHA256): Likewise.
34524         * m4/sha512.m4 (gl_SHA512): Likewise.
34525
34526 2009-01-19  Bruno Haible  <bruno@clisp.org>
34527
34528         * modules/uniname/uniname-tests (Depends-on): Add progname.
34529         * tests/uniname/test-uninames.c: Include progname.h.
34530         (main): Call set_program_name.
34531
34532         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34533         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34534         (main): Call set_program_name.
34535
34536         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34537         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34538         (main): Call set_program_name.
34539
34540         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34541         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34542         (main): Call set_program_name.
34543
34544         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34545         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34546         (main): Call set_program_name.
34547
34548         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34549         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34550         (main): Call set_program_name.
34551
34552         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34553         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34554         (main): Call set_program_name.
34555
34556         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34557         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34558         (main): Call set_program_name.
34559
34560         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34561         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34562         (main): Call set_program_name.
34563
34564 2009-01-19  Eric Blake  <ebb9@byu.net>
34565
34566         test-unistd: test previous patch
34567         * tests/test-unistd.c: Test *_FILENO macros.
34568
34569         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34570         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34571         Guarantee a definition.
34572         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34573         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34574         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34575         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34576         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34577         Likewise.
34578         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34579         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34580         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34581         Likewise.
34582         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34583         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34584         (STDERR_FILENO): Likewise.
34585         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34586         (STDERR_FILENO): Likewise.
34587         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34588         (STDERR_FILENO): Likewise.
34589         Reported by Elbert Pol.
34590
34591 2009-01-19  Eric Blake  <ebb9@byu.net>
34592
34593         doc: mention more functions added in cygwin 1.7.0
34594         * doc/posix-functions/abort.texi (abort): Update wording related
34595         to cygwin.
34596         * doc/posix-functions/daylight.texi (daylight): Likewise.
34597         * doc/posix-functions/optarg.texi (optarg): Likewise.
34598         * doc/posix-functions/optarg.texi (opterr): Likewise.
34599         * doc/posix-functions/optarg.texi (optind): Likewise.
34600         * doc/posix-functions/optarg.texi (optopt): Likewise.
34601         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34602         worked in 1.5.x, and was withdrawn in 1.7.
34603         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34604         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34605         cygwin versions.
34606         * doc/posix-functions/perror.texi (perror): Likewise.
34607         * doc/posix-functions/printf.texi (printf): Likewise.
34608         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34609         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34610         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34611         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34612         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34613         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34614         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34615         Likewise.
34616         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34617         Likewise.
34618         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34619         this function.
34620         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34621         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34622         Likewise.
34623         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34624         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34625         * doc/posix-functions/confstr.texi (confstr): Likewise.
34626         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34627         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34628         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34629         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34630         * doc/posix-functions/fputws.texi (fputws): Likewise.
34631         * doc/posix-functions/fwide.texi (fwide): Likewise.
34632         * doc/posix-functions/getwc.texi (getwc): Likewise.
34633         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34634         * doc/posix-functions/putwc.texi (putwc): Likewise.
34635         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34636         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34637         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34638         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34639         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34640         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34641         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34642         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34643         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34644         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34645         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34646
34647 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34648
34649         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34650         * lib/ioctl.c: Include <sys/ioctl.h>.
34651
34652 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34653
34654         * modules/getdate-tests (Depends-on): Add progname.
34655         * tests/test-getdate.c: Use progname module, to avoid link errors
34656         on non-glibc systems.
34657
34658 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34659
34660         * modules/filenamecat-tests (Depends-on): Add progname.
34661         * modules/fstrcmp-tests (Depends-on): Likewise.
34662
34663         * tests/test-filenamecat.c: Use progname module, to avoid link
34664         errors on non-glibc systems.
34665         * tests/test-fstrcmp.c: Likewise.
34666
34667 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34668
34669         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34670         * lib/gettimeofday.c: Move extern declaration out of function.
34671
34672 2009-01-18  Bruno Haible  <bruno@clisp.org>
34673
34674         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34675         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34676         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34677
34678 2009-01-18  Bruno Haible  <bruno@clisp.org>
34679
34680         * lib/strftime.c (MEMPCPY): Remove unused macro.
34681         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34682
34683 2009-01-18  Martin Lambers  <marlam@marlam.de>
34684
34685         New module 'link'.
34686         * lib/unistd.in.h (link): New declaration.
34687         * lib/link.c: New file.
34688         * m4/link.m4: New file.
34689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34690         HAVE_LINK.
34691         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34692         * modules/link: New file.
34693         * doc/posix-functions/link.texi: Mention the new module.
34694
34695 2009-01-18  Bruno Haible  <bruno@clisp.org>
34696
34697         * tests/test-avltree_list.c (main): Call set_program_name.
34698         * tests/test-avltree_oset.c (main): Likewise.
34699         * tests/test-obstack-printf.c: Include progname.h.
34700         (main): Call set_program_name.
34701         * tests/test-quotearg.c: Include progname.h.
34702         (main): Call set_program_name.
34703         * tests/test-xmemdup0.c: Include progname.h.
34704         (main): Call set_program_name.
34705
34706 2009-01-18  Bruno Haible  <bruno@clisp.org>
34707
34708         New module 'alphasort'.
34709         * lib/dirent.in.h (alphasort): New declaration.
34710         * lib/alphasort.c: New file, from glibc with modifications.
34711         * m4/alphasort.m4: New file.
34712         * modules/alphasort: New file.
34713         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34714         HAVE_ALPHASORT.
34715         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34716         HAVE_ALPHASORT.
34717         * doc/posix-functions/alphasort.texi: Mention the new module and the
34718         portability problems.
34719
34720 2009-01-18  Bruno Haible  <bruno@clisp.org>
34721
34722         New module 'scandir'.
34723         * lib/dirent.in.h (scandir): New declaration.
34724         * lib/scandir.c: New file, from glibc with modifications.
34725         * m4/scandir.m4: New file.
34726         * modules/scandir: New file.
34727         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34728         HAVE_SCANDIR.
34729         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34730         HAVE_SCANDIR.
34731         * doc/posix-functions/scandir.texi: Mention the new module and the
34732         portability problems.
34733
34734 2009-01-17  Bruno Haible  <bruno@clisp.org>
34735
34736         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34737         Update documentation.
34738         (func_remove_suffix): Escape all dots in the suffix. Update
34739         documentation.
34740         (func_filter_filelist): Update documentation.
34741         Reported by Ralf Wildenhues.
34742
34743 2009-01-17  Bruno Haible  <bruno@clisp.org>
34744
34745         * modules/dprintf-posix-tests: New file.
34746         * tests/test-dprintf-posix.sh: New file.
34747         * tests/test-dprintf-posix.c: New file.
34748
34749         New modules 'dprintf', 'dprintf-posix'.
34750         * lib/stdio.in.h (dprintf): New declaration.
34751         * lib/dprintf.c: New file.
34752         * m4/dprintf.m4: New file.
34753         * m4/dprintf-posix.m4: New file.
34754         * modules/dprintf: New file.
34755         * modules/dprintf-posix: New file.
34756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34757         HAVE_DPRINTF, REPLACE_DPRINTF.
34758         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
34759         HAVE_DPRINTF, REPLACE_DPRINTF.
34760         * doc/posix-functions/dprintf.texi: Mention the new modules.
34761
34762 2009-01-17  Bruno Haible  <bruno@clisp.org>
34763
34764         * modules/vdprintf-posix-tests: New file.
34765         * tests/test-vdprintf-posix.sh: New file.
34766         * tests/test-vdprintf-posix.c: New file.
34767
34768         New modules 'vdprintf', 'vdprintf-posix'.
34769         * lib/stdio.in.h (vdprintf): New declaration.
34770         * lib/vdprintf.c: New file.
34771         * m4/vdprintf.m4: New file.
34772         * m4/vdprintf-posix.m4: New file.
34773         * modules/vdprintf: New file.
34774         * modules/vdprintf-posix: New file.
34775         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
34776         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34777         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
34778         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34779         * doc/posix-functions/vdprintf.texi: Mention the new modules.
34780
34781 2009-01-17  Bruno Haible  <bruno@clisp.org>
34782
34783         Fix replacement of fopen on mingw.
34784         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
34785         mingw.
34786
34787 2009-01-17  Bruno Haible  <bruno@clisp.org>
34788
34789         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
34790         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
34791
34792 2009-01-17  Bruno Haible  <bruno@clisp.org>
34793
34794         Avoid test-fflush2.sh failure on mingw.
34795         * tests/test-fflush2.c: Include binary-io.h.
34796         (main): Put standard input into binary mode.
34797         * modules/fflush-tests (Depends-on): Add binary-io.
34798
34799 2009-01-17  Bruno Haible  <bruno@clisp.org>
34800
34801         * lib/wchar.in.h: In another particular situation, include only the
34802         system's <wchar.h> file.
34803         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
34804         Reported by Albert Chin-A-Young <china@thewrittenword.com>
34805         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
34806
34807 2009-01-17  Bruno Haible  <bruno@clisp.org>
34808
34809         Support for stripping executables in --enable-relocatable.
34810         * build-aux/install-reloc: Expect one more argument, or an environment
34811         variable RELOC_STRIP_PROG. If set, strip the destination program and
34812         its wrapper.
34813         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
34814         RELOC_STRIP_PROG.
34815         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
34816         to set RELOCATABLE_STRIP.
34817         * NEWS: Mention the new Makefile requirement.
34818
34819 2009-01-17  Bruno Haible  <bruno@clisp.org>
34820
34821         * build-aux/install-reloc: Remove debugging information left over by
34822         C compiler on MacOS X.
34823
34824 2009-01-17  Bruno Haible  <bruno@clisp.org>
34825
34826         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
34827         * lib/progreloc.c (find_executable): Fix type of pointer passed to
34828         _NSGetExecutablePath.
34829
34830 2009-01-16  Jim Meyering  <meyering@redhat.com>
34831
34832         strerror: avoid warnings about discarding "const"
34833         * lib/strerror.c (rpl_strerror): Instead of returning a const
34834         string from each and every "case", use a variable, and add a single
34835         cast after the switch.
34836
34837 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
34838
34839         * lib/arpa_inet.in.h: Add extern "C" block for C++.
34840
34841 2009-01-16  Bruno Haible  <bruno@clisp.org>
34842
34843         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
34844         array initializer syntax that also works in C++ mode.
34845         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34846
34847 2009-01-16  Jim Meyering  <meyering@redhat.com>
34848
34849         poll: suppress a warning
34850         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
34851         to ignore "...unsigned expression < 0 is always false" warnings.
34852
34853 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
34854
34855         poll: remove declarations of unused variables
34856         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
34857         sockbuf and optlen.
34858
34859 2009-01-15  Bruno Haible  <bruno@clisp.org>
34860
34861         Make fflush-after-ungetc POSIX compliant on BSD systems.
34862         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
34863         (clear_ungetc_buffer): Implement also for other systems.
34864         (rpl_fflush): On glibc systems, invoke
34865         clear_ungetc_buffer_preserving_position. Otherwise, invoke
34866         clear_ungetc_buffer after fetching the stream's position, not before.
34867
34868 2009-01-15  Bruno Haible  <bruno@clisp.org>
34869
34870         Make fflush-after-ungetc POSIX compliant on glibc systems.
34871         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
34872         after ungetc.
34873         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
34874         (rpl_fflush): On glibc systems, simply call the system's fflush
34875         function after clearing the ungetc buffer.
34876         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
34877         Instead, lseek only to the end of file, then use the system's fseeko
34878         for the rest. On glibc systems, reset the EOF indicator bit.
34879
34880 2009-01-15  Jim Meyering  <meyering@redhat.com>
34881
34882         openmp.m4: revert quote-adding change, for portability to older autoconf
34883         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
34884         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
34885         Simon Josefsson noticed the problem when using autoconf-2.61.
34886
34887 2009-01-15  Bruno Haible  <bruno@clisp.org>
34888
34889         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
34890         * tests/test-fflush2.c (ASSERT): Always fail.
34891         (main): Add two tests for fflush() after ungetc(), taking into account
34892         the Austin Group's clarification.
34893         Suggested by Eric Blake.
34894
34895 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
34896
34897         mktime.m4: remove K&R-style function prototypes
34898         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
34899         for the Sun C++ compiler.
34900
34901 2009-01-14  Bruno Haible  <bruno@clisp.org>
34902
34903         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
34904         while including <wchar.h>.
34905         * lib/wchar.in.h: In two particular situations on HP-UX, include only
34906         the system's <wchar.h> file.
34907         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34908
34909 2009-01-14  Bruno Haible  <bruno@clisp.org>
34910
34911         * m4/csharp.m4: Don't mention gettext on the serial number line.
34912         * m4/csharpexec.m4: Likewise.
34913         * m4/eaccess.m4: Likewise.
34914         * m4/javaexec.m4: Likewise.
34915         * m4/sig_atomic_t.m4: Likewise.
34916         * m4/tmpdir.m4: Likewise.
34917         * m4/intldir.m4: Bump gettext version.
34918         * m4/lib-ld.m4: Likewise.
34919
34920 2009-01-14  Bruno Haible  <bruno@clisp.org>
34921
34922         * lib/progname.c (set_program_name): Add more comments.
34923         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34924
34925 2009-01-14  Simon Josefsson  <simon@josefsson.org>
34926
34927         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
34928         were sys/stat.h does not define it.
34929
34930 2009-01-14  Jim Meyering  <meyering@redhat.com>
34931
34932         many *.m4 files: improve m4 quoting
34933         99% of this change was performed by running the following commands:
34934         git ls-files | grep '\.m4$' | xargs perl -pi \
34935           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
34936           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34937           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34938           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
34939         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
34940         The remainder were to add Copyright dates, increment serial numbers,
34941         undo some changes in comments, exclude m4/intl.m4, and add quotes
34942         around the "1" in ",1" where the unusual spacing prohibited the
34943         above regexps from doing the job.  For more details, see
34944         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
34945         * m4/acl.m4: Modified.
34946         * m4/afs.m4: Likewise.
34947         * m4/alloca.m4: Likewise.
34948         * m4/argp.m4: Likewise.
34949         * m4/argz.m4: Likewise.
34950         * m4/atexit.m4: Likewise.
34951         * m4/bison-i18n.m4: Likewise.
34952         * m4/bison.m4: Likewise.
34953         * m4/byteswap.m4: Likewise.
34954         * m4/c-stack.m4: Likewise.
34955         * m4/c-strtod.m4: Likewise.
34956         * m4/calloc.m4: Likewise.
34957         * m4/canonicalize-lgpl.m4: Likewise.
34958         * m4/chown.m4: Likewise.
34959         * m4/clock_time.m4: Likewise.
34960         * m4/codeset.m4: Likewise.
34961         * m4/copy-file.m4: Likewise.
34962         * m4/csharp.m4: Likewise.
34963         * m4/csharpcomp.m4: Likewise.
34964         * m4/csharpexec.m4: Likewise.
34965         * m4/d-ino.m4: Likewise.
34966         * m4/d-type.m4: Likewise.
34967         * m4/dirfd.m4: Likewise.
34968         * m4/double-slash-root.m4: Likewise.
34969         * m4/eaccess.m4: Likewise.
34970         * m4/eealloc.m4: Likewise.
34971         * m4/environ.m4: Likewise.
34972         * m4/errno_h.m4: Likewise.
34973         * m4/euidaccess.m4: Likewise.
34974         * m4/execute.m4: Likewise.
34975         * m4/fatal-signal.m4: Likewise.
34976         * m4/fchdir.m4: Likewise.
34977         * m4/fcntl_h.m4: Likewise.
34978         * m4/fileblocks.m4: Likewise.
34979         * m4/filenamecat.m4: Likewise.
34980         * m4/findprog.m4: Likewise.
34981         * m4/flexmember.m4: Likewise.
34982         * m4/fnmatch.m4: Likewise.
34983         * m4/fopen.m4: Likewise.
34984         * m4/fpending.m4: Likewise.
34985         * m4/fprintf-posix.m4: Likewise.
34986         * m4/free.m4: Likewise.
34987         * m4/frexp.m4: Likewise.
34988         * m4/frexpl.m4: Likewise.
34989         * m4/fsusage.m4: Likewise.
34990         * m4/ftruncate.m4: Likewise.
34991         * m4/gc-camellia.m4: Likewise.
34992         * m4/gc-random.m4: Likewise.
34993         * m4/gc.m4: Likewise.
34994         * m4/getaddrinfo.m4: Likewise.
34995         * m4/getcwd-abort-bug.m4: Likewise.
34996         * m4/getcwd-path-max.m4: Likewise.
34997         * m4/getdate.m4: Likewise.
34998         * m4/getdomainname.m4: Likewise.
34999         * m4/getgroups.m4: Likewise.
35000         * m4/gethostname.m4: Likewise.
35001         * m4/gethrxtime.m4: Likewise.
35002         * m4/getline.m4: Likewise.
35003         * m4/getloadavg.m4: Likewise.
35004         * m4/getndelim2.m4: Likewise.
35005         * m4/getpass.m4: Likewise.
35006         * m4/gettext.m4: Likewise.
35007         * m4/gettime.m4: Likewise.
35008         * m4/gettimeofday.m4: Likewise.
35009         * m4/gnulib-common.m4: Likewise.
35010         * m4/group-member.m4: Likewise.
35011         * m4/host-os.m4: Likewise.
35012         * m4/iconv.m4: Likewise.
35013         * m4/iconv_open.m4: Likewise.
35014         * m4/inet_ntop.m4: Likewise.
35015         * m4/inet_pton.m4: Likewise.
35016         * m4/inline.m4: Likewise.
35017         * m4/intldir.m4: Likewise.
35018         * m4/intlmacosx.m4: Likewise.
35019         * m4/intmax.m4: Likewise.
35020         * m4/intmax_t.m4: Likewise.
35021         * m4/inttypes.m4: Likewise.
35022         * m4/inttypes_h.m4: Likewise.
35023         * m4/inttypes-pri.m4: Likewise.
35024         * m4/isapipe.m4: Likewise.
35025         * m4/isnand.m4: Likewise.
35026         * m4/isnanf.m4: Likewise.
35027         * m4/isnanl.m4: Likewise.
35028         * m4/javacomp.m4: Likewise.
35029         * m4/javaexec.m4: Likewise.
35030         * m4/jm-winsz1.m4: Likewise.
35031         * m4/jm-winsz2.m4: Likewise.
35032         * m4/lchown.m4: Likewise.
35033         * m4/lcmessage.m4: Likewise.
35034         * m4/ldexpl.m4: Likewise.
35035         * m4/lib-ld.m4: Likewise.
35036         * m4/lib-link.m4: Likewise.
35037         * m4/libsigsegv.m4: Likewise.
35038         * m4/link-follow.m4: Likewise.
35039         * m4/localcharset.m4: Likewise.
35040         * m4/locale-fr.m4: Likewise.
35041         * m4/locale-ja.m4: Likewise.
35042         * m4/locale-tr.m4: Likewise.
35043         * m4/locale-zh.m4: Likewise.
35044         * m4/lock.m4: Likewise.
35045         * m4/longlong.m4: Likewise.
35046         * m4/ls-mntd-fs.m4: Likewise.
35047         * m4/lstat.m4: Likewise.
35048         * m4/malloc.m4: Likewise.
35049         * m4/mathl.m4: Likewise.
35050         * m4/mbrtowc.m4: Likewise.
35051         * m4/mbstate_t.m4: Likewise.
35052         * m4/mbswidth.m4: Likewise.
35053         * m4/memchr.m4: Likewise.
35054         * m4/memcmp.m4: Likewise.
35055         * m4/memcpy.m4: Likewise.
35056         * m4/memmem.m4: Likewise.
35057         * m4/memmove.m4: Likewise.
35058         * m4/mempcpy.m4: Likewise.
35059         * m4/memrchr.m4: Likewise.
35060         * m4/memset.m4: Likewise.
35061         * m4/minmax.m4: Likewise.
35062         * m4/mkdir-slash.m4: Likewise.
35063         * m4/mkdtemp.m4: Likewise.
35064         * m4/mktime.m4: Likewise.
35065         * m4/mmap-anon.m4: Likewise.
35066         * m4/mountlist.m4: Likewise.
35067         * m4/nanosleep.m4: Likewise.
35068         * m4/nls.m4: Likewise.
35069         * m4/nocrash.m4: Likewise.
35070         * m4/open.m4: Likewise.
35071         * m4/openat.m4: Likewise.
35072         * m4/openmp.m4: Likewise.
35073         * m4/pathmax.m4: Likewise.
35074         * m4/perl.m4: Likewise.
35075         * m4/physmem.m4: Likewise.
35076         * m4/pipe.m4: Likewise.
35077         * m4/po.m4: Likewise.
35078         * m4/poll.m4: Likewise.
35079         * m4/posixtm.m4: Likewise.
35080         * m4/posixver.m4: Likewise.
35081         * m4/printf-frexp.m4: Likewise.
35082         * m4/printf-frexpl.m4: Likewise.
35083         * m4/printf-posix.m4: Likewise.
35084         * m4/printf-posix-rpl.m4: Likewise.
35085         * m4/printf.m4: Likewise.
35086         * m4/progtest.m4: Likewise.
35087         * m4/putenv.m4: Likewise.
35088         * m4/readline.m4: Likewise.
35089         * m4/readlink.m4: Likewise.
35090         * m4/readutmp.m4: Likewise.
35091         * m4/realloc.m4: Likewise.
35092         * m4/regex.m4: Likewise.
35093         * m4/relocatable.m4: Likewise.
35094         * m4/relocatable-lib.m4: Likewise.
35095         * m4/rename-dest-slash.m4: Likewise.
35096         * m4/rename.m4: Likewise.
35097         * m4/rmdir-errno.m4: Likewise.
35098         * m4/rmdir.m4: Likewise.
35099         * m4/roundf.m4: Likewise.
35100         * m4/roundl.m4: Likewise.
35101         * m4/rpmatch.m4: Likewise.
35102         * m4/save-cwd.m4: Likewise.
35103         * m4/selinux-selinux-h.m4: Likewise.
35104         * m4/setenv.m4: Likewise.
35105         * m4/settime.m4: Likewise.
35106         * m4/sig2str.m4: Likewise.
35107         * m4/sig_atomic_t.m4: Likewise.
35108         * m4/signalblocking.m4: Likewise.
35109         * m4/signbit.m4: Likewise.
35110         * m4/sigpipe.m4: Likewise.
35111         * m4/sockets.m4: Likewise.
35112         * m4/sockpfaf.m4: Likewise.
35113         * m4/st_dm_mode.m4: Likewise.
35114         * m4/stat-time.m4: Likewise.
35115         * m4/stdbool.m4: Likewise.
35116         * m4/stdint.m4: Likewise.
35117         * m4/stdint_h.m4: Likewise.
35118         * m4/stpcpy.m4: Likewise.
35119         * m4/stpncpy.m4: Likewise.
35120         * m4/strcase.m4: Likewise.
35121         * m4/strchrnul.m4: Likewise.
35122         * m4/strcspn.m4: Likewise.
35123         * m4/strdup.m4: Likewise.
35124         * m4/strftime.m4: Likewise.
35125         * m4/strndup.m4: Likewise.
35126         * m4/strnlen.m4: Likewise.
35127         * m4/strpbrk.m4: Likewise.
35128         * m4/strptime.m4: Likewise.
35129         * m4/strsep.m4: Likewise.
35130         * m4/strtod.m4: Likewise.
35131         * m4/strtoimax.m4: Likewise.
35132         * m4/strtok_r.m4: Likewise.
35133         * m4/strtol.m4: Likewise.
35134         * m4/strtoll.m4: Likewise.
35135         * m4/strtoul.m4: Likewise.
35136         * m4/strtoull.m4: Likewise.
35137         * m4/strtoumax.m4: Likewise.
35138         * m4/strverscmp.m4: Likewise.
35139         * m4/threadlib.m4: Likewise.
35140         * m4/timegm.m4: Likewise.
35141         * m4/tm_gmtoff.m4: Likewise.
35142         * m4/tmpdir.m4: Likewise.
35143         * m4/tmpfile.m4: Likewise.
35144         * m4/tzset.m4: Likewise.
35145         * m4/uintmax_t.m4: Likewise.
35146         * m4/unlinkdir.m4: Likewise.
35147         * m4/unlocked-io.m4: Likewise.
35148         * m4/uptime.m4: Likewise.
35149         * m4/userspec.m4: Likewise.
35150         * m4/utimbuf.m4: Likewise.
35151         * m4/utime.m4: Likewise.
35152         * m4/utimes-null.m4: Likewise.
35153         * m4/utimes.m4: Likewise.
35154         * m4/vararrays.m4: Likewise.
35155         * m4/vasnprintf.m4: Likewise.
35156         * m4/vfprintf-posix.m4: Likewise.
35157         * m4/vprintf-posix.m4: Likewise.
35158         * m4/wait-process.m4: Likewise.
35159         * m4/wchar_t.m4: Likewise.
35160         * m4/wint_t.m4: Likewise.
35161         * m4/write-any-file.m4: Likewise.
35162         * m4/yield.m4: Likewise.
35163
35164 2009-01-13  Bruno Haible  <bruno@clisp.org>
35165
35166         Avoid test-copy-file.sh failures when ACL support insufficient.
35167         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35168         TESTS_ENVIRONMENT.
35169         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35170         Reported by Jim Meyering.
35171
35172 2009-01-13  Bruno Haible  <bruno@clisp.org>
35173
35174         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35175         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35176         * modules/unistdio/u8-printf-parse (Files): Likewise.
35177         * modules/unistdio/u32-printf-parse (Files): Likewise.
35178         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35179
35180 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35181
35182         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35183         and m4/inttypes_h.m4 too.
35184
35185 2009-01-12  Eric Blake  <ebb9@byu.net>
35186
35187         tests: IRIX 6.2 cc can't compile -0.0 into .data
35188         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35189         rather than at compile-time.
35190         * tests/test-floorl.c (minus_zero): Likewise.
35191         * tests/test-frexpl.c (minus_zero): Likewise.
35192         * tests/test-isnan.c (minus_zerol): Likewise.
35193         * tests/test-isnanl.h (minus_zero): Likewise.
35194         * tests/test-ldexpl.c (minus_zero): Likewise.
35195         * tests/test-roundl.c (minus_zero): Likewise.
35196         * tests/test-signbit.c (minus_zerol): Likewise.
35197         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35198         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35199         * tests/test-truncl.c (minus_zero): Likewise.
35200         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35201         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35202         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35203
35204 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35205
35206         regex: fix glibc bug 9697
35207         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35208         handling.
35209
35210 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35211
35212         regex: fix glibc bug 697
35213         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35214         being NULL also if there are no backreferences.
35215
35216 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35217
35218         regex: merge glibc changes
35219         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35220         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35221         re_string_skip_chars, re_string_reconstruct): Likewise.
35222         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35223
35224 2009-01-07  Jim Meyering  <meyering@redhat.com>
35225
35226         poll: filter through cppi
35227         * lib/poll.c: Indent cpp directives to reflect nesting.
35228
35229 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35230
35231         poll: don't return uninitialized
35232         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35233
35234 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35235
35236         avoid compile failure on AIX 6.1
35237         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35238         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35239
35240 2009-01-04  Jim Meyering  <meyering@redhat.com>
35241
35242         remove duplicate inclusion of <stdio.h>
35243         * tests/test-fprintf-posix.c: Likewise.
35244         * tests/test-printf-posix.c: Likewise.
35245         * tests/test-snprintf-posix.c: Likewise.
35246         * tests/test-sprintf-posix.c: Likewise.
35247         * tests/test-vasprintf-posix.c: Likewise.
35248         * tests/test-vfprintf-posix.c: Likewise.
35249         * tests/test-vprintf-posix.c: Likewise.
35250         * tests/test-vsnprintf-posix.c: Likewise.
35251         * tests/test-vsprintf-posix.c: Likewise.
35252
35253 2009-01-03  Jim Meyering  <meyering@redhat.com>
35254
35255         gnulib-tool: fix sed-based filtering
35256         * gnulib-tool (func_filter_filelist): Remove extra backslash
35257         in sed_fff_filter definition.
35258
35259 2009-01-02  Jim Meyering  <meyering@redhat.com>
35260
35261         strftime: avoid compilation failure on Solaris 2.6
35262         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35263         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35264         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35265         be available.  Reported by Tom G. Christensen.  Details in
35266         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35267
35268 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35269             Bruno Haible  <bruno@clisp.org>
35270
35271         Speed up gnulib-tool by doing more string processing through shell
35272         built-ins.
35273         * gnulib-tool (fast_func_append): New variable.
35274         (func_remove_prefix, func_remove_suffix): New functions.
35275         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35276         (func_filter_filelist): New function.
35277         (func_get_dependencies): Use func_remove_suffix instead of sed.
35278         (func_get_automake_snippet): Use func_filter_filelist instead of a
35279         subshell and sed invocation.
35280
35281 2009-01-01  Bruno Haible  <bruno@clisp.org>
35282
35283         Fix a security bug.
35284         * gnulib-tool (func_import, import, update): Don't allow the characters
35285         '"', '$', '`', '\' in macro arguments that become part of commands that
35286         are evaluated.
35287
35288 2009-01-01  Bruno Haible  <bruno@clisp.org>
35289
35290         * gnulib-tool (func_reset_sigpipe): Add more comments.
35291
35292 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35293
35294         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35295         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35296         already know the answer.
35297
35298 2009-01-01  Jim Meyering  <meyering@redhat.com>
35299
35300         * lib/version-etc.c (version_etc_va): Update copyright year.
35301
35302 2008-12-30  Bruno Haible  <bruno@clisp.org>
35303
35304         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35305         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35306         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35307
35308 2008-12-29  Eric Blake  <ebb9@byu.net>
35309
35310         multiarch: avoid autoconf AC_REQUIRE bug
35311         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35312         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35313         2.63 and older.
35314         Reported by Bruno Haible, and analyzed in
35315         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35316
35317 2008-12-29  Bruno Haible  <bruno@clisp.org>
35318
35319         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35320         files in subdirectories correctly.
35321         Reported by Ralf Wildenhues.
35322
35323 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35324
35325         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35326         rather than 'join FILE -', for Solaris join.
35327
35328 2008-12-29  Bruno Haible  <bruno@clisp.org>
35329
35330         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35331         quoting.
35332         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35333         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35334         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35335         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35336         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35337         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35338         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35339         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35340         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35341         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35342         * m4/nls.m4 (AM_NLS): Likewise.
35343         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35344         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35345         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35346         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35347         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35348         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35349         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35350         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35351         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35352         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35353         * m4/xsize.m4 (gl_XSIZE): Likewise.
35354         Suggested by Jim Meyering.
35355
35356 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35357
35358         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35359         * lib/parse-duration.c: use a switch instead of cascading if's.
35360
35361 2008-12-29  Eric Blake  <ebb9@byu.net>
35362
35363         wchar.h: supply WEOF on Irix 5.3
35364         * lib/wchar.in.h (wint_t): Also supply WEOF.
35365         * lib/wctype.in.h (wint_t): Likewise.
35366         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35367         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35368         Reported by Tom G. Christensen.
35369
35370 2008-12-26  Bruno Haible  <bruno@clisp.org>
35371
35372         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35373         i486, i586, i686.
35374
35375 2008-12-26  Bruno Haible  <bruno@clisp.org>
35376
35377         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35378
35379 2008-12-26  Bruno Haible  <bruno@clisp.org>
35380
35381         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35382         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35383         not __STDC_CONSTANT_MACROS.
35384         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35385
35386 2008-12-25  Bruno Haible  <bruno@clisp.org>
35387
35388         Add support for universal builds to vasnprintf.
35389         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35390         universal builds, guess no.
35391         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35392         * modules/vasprintf-posix (Depends-on): Likewise.
35393         * modules/fprintf-posix (Depends-on): Likewise.
35394         * modules/vfprintf-posix (Depends-on): Likewise.
35395         * modules/snprintf-posix (Depends-on): Likewise.
35396         * modules/vsnprintf-posix (Depends-on): Likewise.
35397         * modules/sprintf-posix (Depends-on): Likewise.
35398         * modules/vsprintf-posix (Depends-on): Likewise.
35399         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35400         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35401         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35402         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35403         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35404         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35405         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35406
35407         Add support for universal builds to <inttypes.h>.
35408         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35409         _SCNu64_PREFIX): In Apple
35410         universal builds, define directly, using _LP64.
35411         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35412         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35413         * modules/inttypes (Depends-on): Add multiarch.
35414         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35415
35416         Add support for universal builds to <stdint.h>.
35417         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35418         universal builds, define directly, using _LP64.
35419         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35420         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35421         and size_t.
35422         * modules/stdint (Depends-on): Add multiarch.
35423         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35424
35425         New module 'multiarch'.
35426         * modules/multiarch: New file.
35427         * m4/multiarch.m4: New file.
35428
35429 2008-12-25  Bruno Haible  <bruno@clisp.org>
35430
35431         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35432
35433 2008-12-25  Bruno Haible  <bruno@clisp.org>
35434
35435         * modules/btowc (License): Relicense under LGPLv2+.
35436         * modules/mbsinit (License): Likewise.
35437         * modules/mbrtowc (License): Likewise.
35438         * modules/wcrtomb (License): Likewise.
35439         * modules/streq (License): Likewise.
35440         Reported by David Lutterkort <lutter@redhat.com>.
35441
35442 2008-12-23  Bruno Haible  <bruno@clisp.org>
35443
35444         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35445
35446 2008-12-23  Bruno Haible  <bruno@clisp.org>
35447
35448         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35449         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35450         GETADDRINFO_LIB, not in LIBS.
35451         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35452         * modules/canon-host (Link): Likewise.
35453         * NEWS: Mention the change.
35454         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35455         GETADDRINFO_LIB.
35456
35457 2008-12-22  Bruno Haible  <bruno@clisp.org>
35458
35459         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35460         * doc/posix-functions/iswalpha_l.texi: Likewise.
35461         * doc/posix-functions/iswblank_l.texi: Likewise.
35462         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35463         * doc/posix-functions/iswctype_l.texi: Likewise.
35464         * doc/posix-functions/iswdigit_l.texi: Likewise.
35465         * doc/posix-functions/iswgraph_l.texi: Likewise.
35466         * doc/posix-functions/iswlower_l.texi: Likewise.
35467         * doc/posix-functions/iswprint_l.texi: Likewise.
35468         * doc/posix-functions/iswpunct_l.texi: Likewise.
35469         * doc/posix-functions/iswspace_l.texi: Likewise.
35470         * doc/posix-functions/iswupper_l.texi: Likewise.
35471         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35472         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35473         * doc/posix-functions/open_wmemstream.texi: Likewise.
35474         * doc/posix-functions/swscanf.texi: Likewise.
35475         * doc/posix-functions/towctrans_l.texi: Likewise.
35476         * doc/posix-functions/towlower.texi: Likewise.
35477         * doc/posix-functions/towlower_l.texi: Likewise.
35478         * doc/posix-functions/towupper.texi: Likewise.
35479         * doc/posix-functions/towupper_l.texi: Likewise.
35480         * doc/posix-functions/vfwprintf.texi: Likewise.
35481         * doc/posix-functions/vfwscanf.texi: Likewise.
35482         * doc/posix-functions/vswscanf.texi: Likewise.
35483         * doc/posix-functions/vwprintf.texi: Likewise.
35484         * doc/posix-functions/vwscanf.texi: Likewise.
35485         * doc/posix-functions/wcpcpy.texi: Likewise.
35486         * doc/posix-functions/wcpncpy.texi: Likewise.
35487         * doc/posix-functions/wcscasecmp.texi: Likewise.
35488         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35489         * doc/posix-functions/wcscoll_l.texi: Likewise.
35490         * doc/posix-functions/wcsdup.texi: Likewise.
35491         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35492         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35493         * doc/posix-functions/wcsnlen.texi: Likewise.
35494         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35495         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35496         * doc/posix-functions/wctrans_l.texi: Likewise.
35497         * doc/posix-functions/wctype_l.texi: Likewise.
35498         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35499         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35500         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35501         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35502         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35503         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35504         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35505         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35506         * doc/glibc-functions/wcschrnul.texi: Likewise.
35507         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35508         * doc/glibc-functions/wcstod_l.texi: Likewise.
35509         * doc/glibc-functions/wcstof_l.texi: Likewise.
35510         * doc/glibc-functions/wcstol_l.texi: Likewise.
35511         * doc/glibc-functions/wcstold_l.texi: Likewise.
35512         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35513         * doc/glibc-functions/wcstoq.texi: Likewise.
35514         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35515         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35516         * doc/glibc-functions/wcstouq.texi: Likewise.
35517         * doc/glibc-functions/wmempcpy.texi: Likewise.
35518
35519 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35520             Eric Blake  <ebb9@byu.net>
35521             Paolo Bonzini  <bonzini@gnu.org>
35522             Bruno Haible  <bruno@clisp.org>
35523
35524         Make c-stack work on Haiku.
35525         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35526         (c_stack_action): Use SA_ONSTACK flag.
35527
35528 2008-12-22  Bruno Haible  <bruno@clisp.org>
35529
35530         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35531
35532 2008-12-22  Bruno Haible  <bruno@clisp.org>
35533
35534         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35535         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35536         being overridden.
35537         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35538         New macros.
35539         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35541         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35542         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35543
35544 2008-12-22  Bruno Haible  <bruno@clisp.org>
35545
35546         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35547         from test code.
35548
35549 2008-12-22  Eric Blake  <ebb9@byu.net>
35550
35551         Avoid gcc warnings on cygwin.
35552         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35553         Avoid unused variable.
35554         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35555         Likewise.
35556
35557 2008-12-22  Bruno Haible  <bruno@clisp.org>
35558
35559         Remove HAVE_MBRTOWC conditionals.
35560         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35561         (mbscasecmp): Assume mbrtowc function.
35562         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35563         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35564         * lib/mbschr.c: Include mbuiter.h unconditionally.
35565         (mbschr): Assume mbrtowc function.
35566         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35567         (mbscspn): Assume mbrtowc function.
35568         * lib/mbslen.c: Include mbuiter.h unconditionally.
35569         (mbslen): Assume mbrtowc function.
35570         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35571         (mbsncasecmp): Assume mbrtowc function.
35572         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35573         (mbsnlen): Assume mbrtowc function.
35574         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35575         (mbspbrk): Assume mbrtowc function.
35576         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35577         (mbspcasecmp): Assume mbrtowc function.
35578         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35579         (mbsrchr): Assume mbrtowc function.
35580         * lib/mbssep.c: Include mbuiter.h unconditionally.
35581         (mbssep): Assume mbrtowc function.
35582         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35583         (mbsspn): Assume mbrtowc function.
35584         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35585         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35586         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35587         (mbstok_r): Assume mbrtowc function.
35588         * lib/propername.c: Include mbuiter.h unconditionally.
35589         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35590         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35591         (trim2): Assume mbrtowc function.
35592         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35593         (mbsnwidth): Assume mbrtowc function.
35594         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35595         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35596         fallback definitions.
35597         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35598
35599 2008-12-22  Bruno Haible  <bruno@clisp.org>
35600
35601         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35602
35603 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35604
35605         * modules/regex: Request emulations for the mb*/wc* functions we need.
35606         * m4/regex.m4: Don't look for those functions here.
35607         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35608
35609 2008-12-22  Bruno Haible  <bruno@clisp.org>
35610
35611         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35612
35613 2008-12-21  Bruno Haible  <bruno@clisp.org>
35614
35615         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35616         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35617         (Include): Remove conditionalization.
35618         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35619         (Include): Remove conditionalization.
35620         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35621         (Include): Remove conditionalization.
35622         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35623         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35624         * NEWS: Mention the change.
35625         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35626         via Sergey Poznyakoff <gray@gnu.org.ua>.
35627
35628 2008-12-21  Bruno Haible  <bruno@clisp.org>
35629
35630         * MODULES.html.sh (Extended multibyte and wide character utilities
35631         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35632         wcrtomb, wcsrtombs.
35633         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35634         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35635         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35636         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35637
35638 2008-12-21  Bruno Haible  <bruno@clisp.org>
35639
35640         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35641
35642 2008-12-21  Bruno Haible  <bruno@clisp.org>
35643
35644         * modules/wcsnrtombs-tests: New file.
35645         * tests/test-wcsnrtombs1.sh: New file.
35646         * tests/test-wcsnrtombs2.sh: New file.
35647         * tests/test-wcsnrtombs3.sh: New file.
35648         * tests/test-wcsnrtombs4.sh: New file.
35649         * tests/test-wcsnrtombs.c: New file.
35650
35651         New module 'wcsnrtombs'.
35652         * lib/wchar.in.h (wcsnrtombs): New declaration.
35653         * lib/wcsnrtombs.c: New file.
35654         * lib/wcsrtombs-state.c: New file.
35655         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35656         (internal_state): Remove variable.
35657         * m4/wcsnrtombs.m4: New file.
35658         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35659         compilation units.
35660         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35661         HAVE_WCSNRTOMBS.
35662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35663         HAVE_WCSNRTOMBS.
35664         * modules/wcsnrtombs: New file.
35665         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35666         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35667
35668 2008-12-21  Bruno Haible  <bruno@clisp.org>
35669
35670         * modules/wcsrtombs-tests: New file.
35671         * tests/test-wcsrtombs1.sh: New file.
35672         * tests/test-wcsrtombs2.sh: New file.
35673         * tests/test-wcsrtombs3.sh: New file.
35674         * tests/test-wcsrtombs4.sh: New file.
35675         * tests/test-wcsrtombs.c: New file.
35676
35677         New module 'wcsrtombs'.
35678         * lib/wchar.in.h (wcsrtombs): New declaration.
35679         * lib/wcsrtombs.c: New file.
35680         * m4/wcsrtombs.m4: New file.
35681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35682         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35683         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35684         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35685         * modules/wcsrtombs: New file.
35686         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35687         bugs.
35688
35689 2008-12-21  Bruno Haible  <bruno@clisp.org>
35690
35691         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35692         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35693         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35694         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35695         if not correct.
35696         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35697         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35698         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35699         m4/locale-zh.m4, m4/codeset.m4.
35700         * doc/posix-functions/wcrtomb.texi: Document the bug.
35701
35702 2008-12-21  Bruno Haible  <bruno@clisp.org>
35703
35704         Work around a btowc() bug on IRIX 6.5.
35705         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35706         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35707         REPLACE_WTOBC if not.
35708         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35709         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35710         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35711
35712 2008-12-21  Bruno Haible  <bruno@clisp.org>
35713
35714         * modules/wcrtomb-tests: New file.
35715         * tests/test-wcrtomb.sh: New file.
35716         * tests/test-wcrtomb.c: New file.
35717
35718         New module 'wcrtomb'.
35719         * lib/wchar.in.h (wcrtomb): New declaration.
35720         * lib/wcrtomb.c: New file.
35721         * m4/wcrtomb.m4: New file.
35722         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35723         HAVE_WCRTOMB.
35724         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35725         HAVE_WCRTOMB.
35726         * modules/wcrtomb: New file.
35727         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35728
35729 2008-12-21  Bruno Haible  <bruno@clisp.org>
35730
35731         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35732         * modules/mbsrtowcs (Files): Likewise.
35733         * modules/wctob (Files): Likewise.
35734         * modules/c-strcase-tests (Files): Likewise.
35735         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35736         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35737         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35738         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35739         * modules/vasnprintf-posix-tests (Files): Likewise.
35740
35741 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35742
35743         gitlog-to-changelog: pass all command-line arguments to git-log
35744         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35745         it is sometimes convenient to filter the commits in various ways.
35746         gitlog-to-changelog only allows --since to specify a start date,
35747         but git-log itself supports many other filtering mechanisms.
35748         At the moment, I want to filter by branch name.  Rather than
35749         adding a --branch option to gitlog-to-changelog, it seems more
35750         flexible to simply pass all options directly to git-log and let
35751         git do the work.  Notice that this effectively makes --since a
35752         redundant option for gitlog-to-changelog, but removing it would
35753         require current usage to change since calls would then require
35754         an additional '--'.
35755
35756 2008-12-21  Bruno Haible  <bruno@clisp.org>
35757
35758         * modules/mbsnrtowcs-tests: New file.
35759         * tests/test-mbsnrtowcs1.sh: New file.
35760         * tests/test-mbsnrtowcs2.sh: New file.
35761         * tests/test-mbsnrtowcs3.sh: New file.
35762         * tests/test-mbsnrtowcs4.sh: New file.
35763         * tests/test-mbsnrtowcs.c: New file.
35764
35765         New module 'mbsnrtowcs'.
35766         * lib/wchar.in.h (mbsnrtowcs): New declaration.
35767         * lib/mbsnrtowcs.c: New file.
35768         * lib/mbsrtowcs-state.c: New file.
35769         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
35770         (internal_state): Remove variable.
35771         * m4/mbsnrtowcs.m4: New file.
35772         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
35773         compilation units.
35774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
35775         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35776         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
35777         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35778         * modules/mbsnrtowcs: New file.
35779         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
35780         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
35781         portability problem.
35782
35783 2008-12-21  Bruno Haible  <bruno@clisp.org>
35784
35785         Work around mbsrtowcs bug.
35786         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
35787         (gl_FUNC_MBSRTOWCS): Invoke it.
35788         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35789         m4/locale-zh.m4.
35790         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
35791
35792 2008-12-21  Bruno Haible  <bruno@clisp.org>
35793
35794         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
35795
35796 2008-12-21  Bruno Haible  <bruno@clisp.org>
35797
35798         Update doc for AIX.
35799         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
35800         16-bit wchar_t type.
35801         * doc/posix-functions/btowc.texi: Likewise.
35802         * doc/posix-functions/fgetwc.texi: Likewise.
35803         * doc/posix-functions/fgetws.texi: Likewise.
35804         * doc/posix-functions/fputwc.texi: Likewise.
35805         * doc/posix-functions/fputws.texi: Likewise.
35806         * doc/posix-functions/fwide.texi: Likewise.
35807         * doc/posix-functions/fwprintf.texi: Likewise.
35808         * doc/posix-functions/fwscanf.texi: Likewise.
35809         * doc/posix-functions/getwchar.texi: Likewise.
35810         * doc/posix-functions/getwc.texi: Likewise.
35811         * doc/posix-functions/iswalnum.texi: Likewise.
35812         * doc/posix-functions/iswalpha.texi: Likewise.
35813         * doc/posix-functions/iswblank.texi: Likewise.
35814         * doc/posix-functions/iswcntrl.texi: Likewise.
35815         * doc/posix-functions/iswctype.texi: Likewise.
35816         * doc/posix-functions/iswdigit.texi: Likewise.
35817         * doc/posix-functions/iswgraph.texi: Likewise.
35818         * doc/posix-functions/iswlower.texi: Likewise.
35819         * doc/posix-functions/iswprint.texi: Likewise.
35820         * doc/posix-functions/iswpunct.texi: Likewise.
35821         * doc/posix-functions/iswspace.texi: Likewise.
35822         * doc/posix-functions/iswupper.texi: Likewise.
35823         * doc/posix-functions/iswxdigit.texi: Likewise.
35824         * doc/posix-functions/mbrtowc.texi: Likewise.
35825         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35826         * doc/posix-functions/mbstowcs.texi: Likewise.
35827         * doc/posix-functions/mbtowc.texi: Likewise.
35828         * doc/posix-functions/putwchar.texi: Likewise.
35829         * doc/posix-functions/putwc.texi: Likewise.
35830         * doc/posix-functions/swprintf.texi: Likewise.
35831         * doc/posix-functions/tolower.texi: Likewise.
35832         * doc/posix-functions/toupper.texi: Likewise.
35833         * doc/posix-functions/towctrans.texi: Likewise.
35834         * doc/posix-functions/ungetwc.texi: Likewise.
35835         * doc/posix-functions/vswprintf.texi: Likewise.
35836         * doc/posix-functions/wcrtomb.texi: Likewise.
35837         * doc/posix-functions/wcscat.texi: Likewise.
35838         * doc/posix-functions/wcschr.texi: Likewise.
35839         * doc/posix-functions/wcscmp.texi: Likewise.
35840         * doc/posix-functions/wcscoll.texi: Likewise.
35841         * doc/posix-functions/wcscpy.texi: Likewise.
35842         * doc/posix-functions/wcscspn.texi: Likewise.
35843         * doc/posix-functions/wcsftime.texi: Likewise.
35844         * doc/posix-functions/wcslen.texi: Likewise.
35845         * doc/posix-functions/wcsncat.texi: Likewise.
35846         * doc/posix-functions/wcsncmp.texi: Likewise.
35847         * doc/posix-functions/wcsncpy.texi: Likewise.
35848         * doc/posix-functions/wcspbrk.texi: Likewise.
35849         * doc/posix-functions/wcsrchr.texi: Likewise.
35850         * doc/posix-functions/wcsrtombs.texi: Likewise.
35851         * doc/posix-functions/wcsspn.texi: Likewise.
35852         * doc/posix-functions/wcsstr.texi: Likewise.
35853         * doc/posix-functions/wcstod.texi: Likewise.
35854         * doc/posix-functions/wcstof.texi: Likewise.
35855         * doc/posix-functions/wcstoimax.texi: Likewise.
35856         * doc/posix-functions/wcstok.texi: Likewise.
35857         * doc/posix-functions/wcstold.texi: Likewise.
35858         * doc/posix-functions/wcstoll.texi: Likewise.
35859         * doc/posix-functions/wcstol.texi: Likewise.
35860         * doc/posix-functions/wcstombs.texi: Likewise.
35861         * doc/posix-functions/wcstoull.texi: Likewise.
35862         * doc/posix-functions/wcstoul.texi: Likewise.
35863         * doc/posix-functions/wcstoumax.texi: Likewise.
35864         * doc/posix-functions/wcswidth.texi: Likewise.
35865         * doc/posix-functions/wcsxfrm.texi: Likewise.
35866         * doc/posix-functions/wctob.texi: Likewise.
35867         * doc/posix-functions/wctomb.texi: Likewise.
35868         * doc/posix-functions/wctrans.texi: Likewise.
35869         * doc/posix-functions/wctype.texi: Likewise.
35870         * doc/posix-functions/wcwidth.texi: Likewise.
35871         * doc/posix-functions/wmemchr.texi: Likewise.
35872         * doc/posix-functions/wmemcmp.texi: Likewise.
35873         * doc/posix-functions/wmemcpy.texi: Likewise.
35874         * doc/posix-functions/wmemmove.texi: Likewise.
35875         * doc/posix-functions/wmemset.texi: Likewise.
35876         * doc/posix-functions/wprintf.texi: Likewise.
35877         * doc/posix-functions/wscanf.texi: Likewise.
35878
35879 2008-12-21  Bruno Haible  <bruno@clisp.org>
35880
35881         Update doc for HP-UX 11.11.
35882         * doc/posix-functions/btowc.texi: Clarify that the function is missing
35883         in HP-UX version 11.00, not in all versions of HP-UX 11.
35884         * doc/posix-functions/fwide.texi: Likewise.
35885         * doc/posix-functions/fwprintf.texi: Likewise.
35886         * doc/posix-functions/fwscanf.texi: Likewise.
35887         * doc/posix-functions/inet_ntop.texi: Likewise.
35888         * doc/posix-functions/inet_pton.texi: Likewise.
35889         * doc/posix-functions/mbrlen.texi: Likewise.
35890         * doc/posix-functions/mbrtowc.texi: Likewise.
35891         * doc/posix-functions/mbsinit.texi: Likewise.
35892         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35893         * doc/posix-functions/swprintf.texi: Likewise.
35894         * doc/posix-functions/swscanf.texi: Likewise.
35895         * doc/posix-functions/towctrans.texi: Likewise.
35896         * doc/posix-functions/vfwprintf.texi: Likewise.
35897         * doc/posix-functions/vswprintf.texi: Likewise.
35898         * doc/posix-functions/vwprintf.texi: Likewise.
35899         * doc/posix-functions/wcrtomb.texi: Likewise.
35900         * doc/posix-functions/wcsrtombs.texi: Likewise.
35901         * doc/posix-functions/wcsstr.texi: Likewise.
35902         * doc/posix-functions/wctob.texi: Likewise.
35903         * doc/posix-functions/wctrans.texi: Likewise.
35904         * doc/posix-functions/wmemchr.texi: Likewise.
35905         * doc/posix-functions/wmemcmp.texi: Likewise.
35906         * doc/posix-functions/wmemcpy.texi: Likewise.
35907         * doc/posix-functions/wmemmove.texi: Likewise.
35908         * doc/posix-functions/wmemset.texi: Likewise.
35909         * doc/posix-functions/wprintf.texi: Likewise.
35910         * doc/posix-functions/wscanf.texi: Likewise.
35911
35912 2008-12-21  Bruno Haible  <bruno@clisp.org>
35913
35914         Work around a portability problem.
35915         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
35916         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
35917
35918 2008-12-20  Bruno Haible  <bruno@clisp.org>
35919
35920         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
35921         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
35922         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
35923         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
35924         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
35925
35926         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
35927         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
35928         set.
35929         (GNULIB_defined_mbstate_t): New macro.
35930         (mbsinit): Redefine if REPLACE_MBSINIT is set.
35931         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
35932         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
35933         reuses the system's mbrtowc function but works around the bugs.
35934         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
35935         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
35936         macros.
35937         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
35938         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
35939         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
35940         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
35941         REPLACE_MBSINIT if mbsinit needs to be overridden.
35942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
35943         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35944         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
35945         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35946         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35947         m4/locale-zh.m4.
35948         (Depends): Add mbsinit.
35949         * modules/mbsinit (Depends): Add mbrtowc.
35950         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
35951
35952 2008-12-20  Bruno Haible  <bruno@clisp.org>
35953
35954         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35955         so that there are no conversion errors on AIX.
35956         * tests/test-mbsrtowcs.c (main): LIkewise.
35957
35958 2008-12-20  Bruno Haible  <bruno@clisp.org>
35959
35960         Work around wctob bug on Solaris <= 9.
35961         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35962         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35963         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35964         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35965         * modules/wctob (Files): Add m4/locale-fr.m4.
35966         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35967
35968 2008-12-20  Bruno Haible  <bruno@clisp.org>
35969
35970         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35971         /dev/null.
35972         * tests/test-select-in.sh: Likewise.
35973         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35974
35975 2008-12-20  Bruno Haible  <bruno@clisp.org>
35976
35977         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35978         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35979         Cygwin 1.5.x.
35980
35981 2008-12-20  Bruno Haible  <bruno@clisp.org>
35982
35983         Ensure mbstate_t is defined on HP-UX 11.11.
35984         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35985         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35986         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35987         AC_USE_SYSTEM_EXTENSIONS.
35988         * modules/fnmatch (Depends-on): Add extensions.
35989         * modules/mbrlen (Depends-on): Likewise.
35990         * modules/mbrtowc (Depends-on): Likewise.
35991         * modules/mbsinit (Depends-on): Likewise.
35992         * modules/mbsrtowcs (Depends-on): Likewise.
35993         * modules/mbswidth (Depends-on): Likewise.
35994         * modules/quotearg (Depends-on): Likewise.
35995         * modules/strftime (Depends-on): Likewise.
35996
35997 2008-12-20  Bruno Haible  <bruno@clisp.org>
35998
35999         Ensure wctob is declared on IRIX 6.5.
36000         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
36001         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
36002         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
36003         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
36004         of HAVE_WCTOB.
36005         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
36006         HAVE_WCTOB.
36007         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
36008
36009 2008-12-19  Bruno Haible  <bruno@clisp.org>
36010
36011         * modules/mbsrtowcs-tests: New file.
36012         * tests/test-mbsrtowcs1.sh: New file.
36013         * tests/test-mbsrtowcs2.sh: New file.
36014         * tests/test-mbsrtowcs3.sh: New file.
36015         * tests/test-mbsrtowcs4.sh: New file.
36016         * tests/test-mbsrtowcs.c: New file.
36017
36018         New module 'mbsrtowcs'.
36019         * lib/wchar.in.h (mbsrtowcs): New declaration.
36020         * lib/mbsrtowcs.c: New file.
36021         * m4/mbsrtowcs.m4: New file.
36022         * modules/mbsrtowcs: New file.
36023         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
36024         HAVE_MBSRTOWCS.
36025         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
36026         HAVE_MBSRTOWCS.
36027         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
36028
36029 2008-12-19  Bruno Haible  <bruno@clisp.org>
36030
36031         New module 'mbrlen'.
36032         * lib/wchar.in.h (mbrlen): New declaration.
36033         * lib/mbrlen.c: New file.
36034         * m4/mbrlen.m4: New file.
36035         * modules/mbrlen: New file.
36036         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
36037         HAVE_MBRLEN.
36038         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
36039         HAVE_MBRLEN.
36040         * doc/posix-functions/mbrlen.texi: Document the new module.
36041
36042 2008-12-19  Bruno Haible  <bruno@clisp.org>
36043
36044         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
36045         * modules/mbrtowc (Depends-on): Add verify.
36046         Suggested by Paul Eggert.
36047
36048 2008-12-18  Bruno Haible  <bruno@clisp.org>
36049
36050         * modules/mbsinit-tests: New file.
36051         * tests/test-mbsinit.sh: New file.
36052         * tests/test-mbsinit.c: New file.
36053
36054 2008-12-18  Bruno Haible  <bruno@clisp.org>
36055
36056         * modules/mbrtowc-tests: New file.
36057         * tests/test-mbrtowc1.sh: New file.
36058         * tests/test-mbrtowc2.sh: New file.
36059         * tests/test-mbrtowc3.sh: New file.
36060         * tests/test-mbrtowc4.sh: New file.
36061         * tests/test-mbrtowc.c: New file.
36062
36063         New module 'mbrtowc'.
36064         * lib/wchar.in.h (mbstate_t): Override when the system does not have
36065         mbsinit and mbrtowc.
36066         (mbrtowc): New declaration.
36067         * lib/mbrtowc.c: New file.
36068         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
36069         * modules/mbrtowc: New file.
36070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
36071         HAVE_MBRTOWC.
36072         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
36073         HAVE_MBRTOWC.
36074         * doc/posix-functions/mbrtowc.texi: Document the new module.
36075
36076 2008-12-18  Bruno Haible  <bruno@clisp.org>
36077
36078         New module 'wctob'.
36079         * lib/wchar.in.h (wctob): New declaration.
36080         * lib/wctob.c: New file.
36081         * m4/wctob.m4: New file.
36082         * modules/wctob: New file.
36083         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
36084         HAVE_WCTOB.
36085         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
36086         * doc/posix-functions/wctob.texi: Document the new module.
36087
36088 2008-12-18  Bruno Haible  <bruno@clisp.org>
36089
36090         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36091         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36092
36093 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36094
36095         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36096         G. Christensen" <tgc@jupiterrise.com>.
36097
36098         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36099         G. Christensen" <tgc@jupiterrise.com>.
36100
36101         * lib/flock.c: Need to include string.h.  Reported by "Tom
36102         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36103         <ebb9@byu.net>.
36104
36105 2008-12-18  Bruno Haible  <bruno@clisp.org>
36106
36107         * m4/locale-ja.m4: New file, from GNU gettext.
36108
36109 2008-12-17  Bruno Haible  <bruno@clisp.org>
36110
36111         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36112         Suggested by Eric Blake.
36113
36114 2008-12-17  Bruno Haible  <bruno@clisp.org>
36115
36116         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36117
36118 2008-12-17  Bruno Haible  <bruno@clisp.org>
36119
36120         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36121         * modules/mbsinit (Depends-on): Add verify.
36122         Suggested by Paul Eggert.
36123
36124 2008-12-17  Bruno Haible  <bruno@clisp.org>
36125
36126         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36127         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36128         gl_FUNC_MBRTOWC.
36129         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36130         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36131         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36132         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36133         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36134         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36135         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36136         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36137         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36138         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36139         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36140         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36141         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36142         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36143         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36144         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36145         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36146         * modules/trim (configure.ac): Likewise.
36147
36148 2008-12-17  Bruno Haible  <bruno@clisp.org>
36149
36150         * modules/btowc-tests: New file.
36151         * tests/test-btowc1.sh: New file.
36152         * tests/test-btowc2.sh: New file.
36153         * tests/test-btowc.c: New file.
36154
36155         New module 'btowc'.
36156         * lib/wchar.in.h (btowc): New declaration.
36157         * lib/btowc.c: New file.
36158         * m4/btowc.m4: New file.
36159         * modules/btowc: New file.
36160         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36161         HAVE_BTOWC.
36162         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36163         * doc/posix-functions/btowc.texi: Document the new module.
36164
36165 2008-12-17  Bruno Haible  <bruno@clisp.org>
36166
36167         New module 'mbsinit'.
36168         * lib/wchar.in.h (mbsinit): New declaration.
36169         * lib/mbsinit.c: New file.
36170         * m4/mbsinit.m4: New file.
36171         * modules/mbsinit: New file.
36172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36173         HAVE_MBSINIT.
36174         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36175         HAVE_MBSINIT.
36176         * doc/posix-functions/mbsinit.texi: Document the new module.
36177
36178 2008-12-16  Bruno Haible  <bruno@clisp.org>
36179
36180         * lib/unistd.in.h: Add comment.
36181         * tests/test-environ.c: Don't include <stdlib.h>.
36182
36183 2008-12-16  Bruno Haible  <bruno@clisp.org>
36184
36185         * lib/parse-duration.h (parse_duration): Document return value
36186         convention.
36187         * lib/parse-duration.c: Include specification header first. Add
36188         comments.
36189         (_): Remove macro.
36190         (parse_year_month_day, parse_hour_minute_second): Move side effects
36191         outside of strchr call.
36192         (parse_non_iso8601): Move side effects outside of isspace call.
36193         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36194         call.
36195
36196 2008-12-16  Bruno Haible  <bruno@clisp.org>
36197
36198         * tests/test-parse-duration.sh: Produce no output when the test
36199         succeeds.
36200
36201 2008-12-16  Bruno Haible  <bruno@clisp.org>
36202
36203         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36204         expressions.
36205
36206 2008-12-15  Bruno Haible  <bruno@clisp.org>
36207
36208         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36209         * doc/glibc-functions/flistxattr.texi: Likewise.
36210         * doc/glibc-functions/fopencookie.texi: Likewise.
36211         * doc/glibc-functions/fremovexattr.texi: Likewise.
36212         * doc/glibc-functions/fsetxattr.texi: Likewise.
36213         * doc/glibc-functions/getxattr.texi: Likewise.
36214         * doc/glibc-functions/lgetxattr.texi: Likewise.
36215         * doc/glibc-functions/listxattr.texi: Likewise.
36216         * doc/glibc-functions/llistxattr.texi: Likewise.
36217         * doc/glibc-functions/lremovexattr.texi: Likewise.
36218         * doc/glibc-functions/lsetxattr.texi: Likewise.
36219         * doc/glibc-functions/removexattr.texi: Likewise.
36220         * doc/glibc-functions/setxattr.texi: Likewise.
36221         * doc/posix-functions/open_memstream.texi: Likewise.
36222
36223 2008-12-15  Eric Blake  <ebb9@byu.net>
36224
36225         Update doc for cygwin 1.7.
36226         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36227         functions.
36228         * doc/posix-functions/fchmodat.texi: Likewise.
36229         * doc/posix-functions/fchownat.texi: Likewise.
36230         * doc/posix-functions/fdopendir.texi: Likewise.
36231         * doc/posix-functions/fmemopen.texi: Likewise.
36232         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36233         * doc/posix-functions/fstatat.texi: Likewise.
36234         * doc/posix-functions/futimens.texi: Likewise.
36235         * doc/posix-functions/gai_strerror.texi: Likewise.
36236         * doc/posix-functions/getaddrinfo.texi: Likewise.
36237         * doc/posix-functions/getnameinfo.texi: Likewise.
36238         * doc/posix-functions/if_freenameindex.texi: Likewise.
36239         * doc/posix-functions/if_indextoname.texi: Likewise.
36240         * doc/posix-functions/if_nameindex.texi: Likewise.
36241         * doc/posix-functions/if_nametoindex.texi: Likewise.
36242         * doc/posix-functions/insque.texi: Likewise.
36243         * doc/posix-functions/linkat.texi: Likewise.
36244         * doc/posix-functions/llrint.texi: Likewise.
36245         * doc/posix-functions/llrintf.texi: Likewise.
36246         * doc/posix-functions/llrintl.texi: Likewise.
36247         * doc/posix-functions/lockf.texi: Likewise.
36248         * doc/posix-functions/lrintl.texi: Likewise.
36249         * doc/posix-functions/mkdirat.texi: Likewise.
36250         * doc/posix-functions/mkfifoat.texi: Likewise.
36251         * doc/posix-functions/mknodat.texi: Likewise.
36252         * doc/posix-functions/mq_close.texi: Likewise.
36253         * doc/posix-functions/mq_getattr.texi: Likewise.
36254         * doc/posix-functions/mq_notify.texi: Likewise.
36255         * doc/posix-functions/mq_open.texi: Likewise.
36256         * doc/posix-functions/mq_receive.texi: Likewise.
36257         * doc/posix-functions/mq_send.texi: Likewise.
36258         * doc/posix-functions/mq_setattr.texi: Likewise.
36259         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36260         * doc/posix-functions/mq_timedsend.texi: Likewise.
36261         * doc/posix-functions/mq_unlink.texi: Likewise.
36262         * doc/posix-functions/open_memstream.texi: Likewise.
36263         * doc/posix-functions/openat.texi: Likewise.
36264         * doc/posix-functions/posix_fadvise.texi: Likewise.
36265         * doc/posix-functions/posix_fallocate.texi: Likewise.
36266         * doc/posix-functions/posix_madvise.texi: Likewise.
36267         * doc/posix-functions/posix_memalign.texi: Likewise.
36268         * doc/posix-functions/posix_openpt.texi: Likewise.
36269         * doc/posix-functions/readlinkat.texi: Likewise.
36270         * doc/posix-functions/remque.texi: Likewise.
36271         * doc/posix-functions/renameat.texi: Likewise.
36272         * doc/posix-functions/rintl.texi: Likewise.
36273         * doc/posix-functions/sem_unlink.texi: Likewise.
36274         * doc/posix-functions/shm_open.texi: Likewise.
36275         * doc/posix-functions/shm_unlink.texi: Likewise.
36276         * doc/posix-functions/signgam.texi: Likewise.
36277         * doc/posix-functions/sigset.texi: Likewise.
36278         * doc/posix-functions/stpcpy.texi: Likewise.
36279         * doc/posix-functions/stpncpy.texi: Likewise.
36280         * doc/posix-functions/strerror.texi: Likewise.
36281         * doc/posix-functions/strtod.texi: Likewise.
36282         * doc/posix-functions/symlinkat.texi: Likewise.
36283         * doc/posix-functions/unlinkat.texi: Likewise.
36284         * doc/posix-functions/utimensat.texi: Likewise.
36285         * doc/glibc-functions/bindresvport.texi: Likewise.
36286         * doc/glibc-functions/dn_expand.texi: Likewise.
36287         * doc/glibc-functions/exp10.texi: Likewise.
36288         * doc/glibc-functions/exp10f.texi: Likewise.
36289         * doc/glibc-functions/fgetxattr.texi: Likewise.
36290         * doc/glibc-functions/flistxattr.texi: Likewise.
36291         * doc/glibc-functions/fopencookie.texi: Likewise.
36292         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36293         * doc/glibc-functions/fremovexattr.texi: Likewise.
36294         * doc/glibc-functions/fsetxattr.texi: Likewise.
36295         * doc/glibc-functions/getifaddrs.texi: Likewise.
36296         * doc/glibc-functions/getxattr.texi: Likewise.
36297         * doc/glibc-functions/lgetxattr.texi: Likewise.
36298         * doc/glibc-functions/listxattr.texi: Likewise.
36299         * doc/glibc-functions/llistxattr.texi: Likewise.
36300         * doc/glibc-functions/lremovexattr.texi: Likewise.
36301         * doc/glibc-functions/lsetxattr.texi: Likewise.
36302         * doc/glibc-functions/pow10.texi: Likewise.
36303         * doc/glibc-functions/pow10f.texi: Likewise.
36304         * doc/glibc-functions/rcmd_af.texi: Likewise.
36305         * doc/glibc-functions/removexattr.texi: Likewise.
36306         * doc/glibc-functions/res_init.texi: Likewise.
36307         * doc/glibc-functions/res_mkquery.texi: Likewise.
36308         * doc/glibc-functions/res_query.texi: Likewise.
36309         * doc/glibc-functions/res_querydomain.texi: Likewise.
36310         * doc/glibc-functions/res_send.texi: Likewise.
36311         * doc/glibc-functions/rresvport_af.texi: Likewise.
36312         * doc/glibc-functions/setxattr.texi: Likewise.
36313         * doc/glibc-functions/strcasestr.texi: Likewise.
36314
36315 2008-12-15  Bruno Haible  <bruno@clisp.org>
36316
36317         Fix compilation error on OSF/1 4.0.
36318         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36319         <sys/time.h>, simply delegate to the system header.
36320         Reported by Daniel Richard G. <oss@teragram.com>.
36321
36322 2008-12-15  Bruno Haible  <bruno@clisp.org>
36323
36324         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36325         * doc/posix-functions/fchmodat.texi: Likewise.
36326         * doc/posix-functions/fchownat.texi: Likewise.
36327         * doc/posix-functions/fdopendir.texi: Likewise.
36328         * doc/posix-functions/fstatat.texi: Likewise.
36329         * doc/posix-functions/mkdirat.texi: Likewise.
36330         * doc/posix-functions/unlinkat.texi: Likewise.
36331
36332 2008-12-14  Bruno Haible  <bruno@clisp.org>
36333
36334         Update doc for POSIX:2008.
36335         * doc/posix-functions/faccessat.texi: New file.
36336         * doc/posix-functions/fchmodat.texi: New file.
36337         * doc/posix-functions/fchownat.texi: New file.
36338         * doc/posix-functions/fdopendir.texi: New file.
36339         * doc/posix-functions/fstatat.texi: New file.
36340         * doc/posix-functions/futimens.texi: New file.
36341         * doc/posix-functions/linkat.texi: New file.
36342         * doc/posix-functions/mkdirat.texi: New file.
36343         * doc/posix-functions/mkfifoat.texi: New file.
36344         * doc/posix-functions/mknodat.texi: New file.
36345         * doc/posix-functions/open_wmemstream.texi: New file.
36346         * doc/posix-functions/openat.texi: New file.
36347         * doc/posix-functions/psiginfo.texi: New file.
36348         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36349         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36350         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36351         * doc/posix-functions/readlinkat.texi: New file.
36352         * doc/posix-functions/renameat.texi: New file.
36353         * doc/posix-functions/strerror_l.texi: New file.
36354         * doc/posix-functions/symlinkat.texi: New file.
36355         * doc/posix-functions/unlinkat.texi: New file.
36356         * doc/posix-functions/utimensat.texi: New file.
36357         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36358
36359 2008-12-14  Bruno Haible  <bruno@clisp.org>
36360
36361         Update doc for POSIX:2008.
36362         * doc/posix-functions/alphasort.texi: Renamed from
36363         doc/glibc-functions/alphasort.texi.
36364         * doc/posix-functions/dirfd.texi: Renamed from
36365         doc/glibc-functions/dirfd.texi.
36366         * doc/posix-functions/dprintf.texi: Renamed from
36367         doc/glibc-functions/dprintf.texi.
36368         * doc/posix-functions/duplocale.texi: Renamed from
36369         doc/glibc-functions/duplocale.texi.
36370         * doc/posix-functions/fexecve.texi: Renamed from
36371         doc/glibc-functions/fexecve.texi.
36372         * doc/posix-functions/fmemopen.texi: Renamed from
36373         doc/glibc-functions/fmemopen.texi.
36374         * doc/posix-functions/freelocale.texi: Renamed from
36375         doc/glibc-functions/freelocale.texi.
36376         * doc/posix-functions/getdate_err.texi: Renamed from
36377         doc/glibc-functions/getdate_err.texi.
36378         * doc/posix-functions/isalnum_l.texi: Renamed from
36379         doc/glibc-functions/isalnum_l.texi.
36380         * doc/posix-functions/isalpha_l.texi: Renamed from
36381         doc/glibc-functions/isalpha_l.texi.
36382         * doc/posix-functions/isblank_l.texi: Renamed from
36383         doc/glibc-functions/isblank_l.texi.
36384         * doc/posix-functions/iscntrl_l.texi: Renamed from
36385         doc/glibc-functions/iscntrl_l.texi.
36386         * doc/posix-functions/isdigit_l.texi: Renamed from
36387         doc/glibc-functions/isdigit_l.texi.
36388         * doc/posix-functions/isgraph_l.texi: Renamed from
36389         doc/glibc-functions/isgraph_l.texi.
36390         * doc/posix-functions/islower_l.texi: Renamed from
36391         doc/glibc-functions/islower_l.texi.
36392         * doc/posix-functions/isprint_l.texi: Renamed from
36393         doc/glibc-functions/isprint_l.texi.
36394         * doc/posix-functions/ispunct_l.texi: Renamed from
36395         doc/glibc-functions/ispunct_l.texi.
36396         * doc/posix-functions/isspace_l.texi: Renamed from
36397         doc/glibc-functions/isspace_l.texi.
36398         * doc/posix-functions/isupper_l.texi: Renamed from
36399         doc/glibc-functions/isupper_l.texi.
36400         * doc/posix-functions/iswalnum_l.texi: Renamed from
36401         doc/glibc-functions/iswalnum_l.texi.
36402         * doc/posix-functions/iswalpha_l.texi: Renamed from
36403         doc/glibc-functions/iswalpha_l.texi.
36404         * doc/posix-functions/iswblank_l.texi: Renamed from
36405         doc/glibc-functions/iswblank_l.texi.
36406         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36407         doc/glibc-functions/iswcntrl_l.texi.
36408         * doc/posix-functions/iswctype_l.texi: Renamed from
36409         doc/glibc-functions/iswctype_l.texi.
36410         * doc/posix-functions/iswdigit_l.texi: Renamed from
36411         doc/glibc-functions/iswdigit_l.texi.
36412         * doc/posix-functions/iswgraph_l.texi: Renamed from
36413         doc/glibc-functions/iswgraph_l.texi.
36414         * doc/posix-functions/iswlower_l.texi: Renamed from
36415         doc/glibc-functions/iswlower_l.texi.
36416         * doc/posix-functions/iswprint_l.texi: Renamed from
36417         doc/glibc-functions/iswprint_l.texi.
36418         * doc/posix-functions/iswpunct_l.texi: Renamed from
36419         doc/glibc-functions/iswpunct_l.texi.
36420         * doc/posix-functions/iswspace_l.texi: Renamed from
36421         doc/glibc-functions/iswspace_l.texi.
36422         * doc/posix-functions/iswupper_l.texi: Renamed from
36423         doc/glibc-functions/iswupper_l.texi.
36424         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36425         doc/glibc-functions/iswxdigit_l.texi.
36426         * doc/posix-functions/isxdigit_l.texi: Renamed from
36427         doc/glibc-functions/isxdigit_l.texi.
36428         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36429         doc/glibc-functions/mbsnrtowcs.texi.
36430         * doc/posix-functions/mkdtemp.texi: Renamed from
36431         doc/glibc-functions/mkdtemp.texi.
36432         * doc/posix-functions/newlocale.texi: Renamed from
36433         doc/glibc-functions/newlocale.texi.
36434         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36435         doc/glibc-functions/nl_langinfo_l.texi.
36436         * doc/posix-functions/open_memstream.texi: Renamed from
36437         doc/glibc-functions/open_memstream.texi.
36438         * doc/posix-functions/opterr.texi: Renamed from
36439         doc/glibc-functions/opterr.texi.
36440         * doc/posix-functions/optind.texi: Renamed from
36441         doc/glibc-functions/optind.texi.
36442         * doc/posix-functions/optopt.texi: Renamed from
36443         doc/glibc-functions/optopt.texi.
36444         * doc/posix-functions/psignal.texi: Renamed from
36445         doc/glibc-functions/psignal.texi.
36446         * doc/posix-functions/scandir.texi: Renamed from
36447         doc/glibc-functions/scandir.texi.
36448         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36449         doc/glibc-functions/sched_get_priority_min.texi.
36450         * doc/posix-functions/signgam.texi: Renamed from
36451         doc/glibc-functions/signgam.texi.
36452         * doc/posix-functions/stpcpy.texi: Renamed from
36453         doc/glibc-functions/stpcpy.texi.
36454         * doc/posix-functions/stpncpy.texi: Renamed from
36455         doc/glibc-functions/stpncpy.texi.
36456         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36457         doc/glibc-functions/strcasecmp_l.texi.
36458         * doc/posix-functions/strcoll_l.texi: Renamed from
36459         doc/glibc-functions/strcoll_l.texi.
36460         * doc/posix-functions/strfmon_l.texi: Renamed from
36461         doc/glibc-functions/strfmon_l.texi.
36462         * doc/posix-functions/strftime_l.texi: Renamed from
36463         doc/glibc-functions/strftime_l.texi.
36464         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36465         doc/glibc-functions/strncasecmp_l.texi.
36466         * doc/posix-functions/strndup.texi: Renamed from
36467         doc/glibc-functions/strndup.texi.
36468         * doc/posix-functions/strnlen.texi: Renamed from
36469         doc/glibc-functions/strnlen.texi.
36470         * doc/posix-functions/strsignal.texi: Renamed from
36471         doc/glibc-functions/strsignal.texi.
36472         * doc/posix-functions/strxfrm_l.texi: Renamed from
36473         doc/glibc-functions/strxfrm_l.texi.
36474         * doc/posix-functions/timer_gettime.texi: Renamed from
36475         doc/glibc-functions/timer_gettime.texi.
36476         * doc/posix-functions/tolower_l.texi: Renamed from
36477         doc/glibc-functions/tolower_l.texi.
36478         * doc/posix-functions/toupper_l.texi: Renamed from
36479         doc/glibc-functions/toupper_l.texi.
36480         * doc/posix-functions/towctrans_l.texi: Renamed from
36481         doc/glibc-functions/towctrans_l.texi.
36482         * doc/posix-functions/towlower_l.texi: Renamed from
36483         doc/glibc-functions/towlower_l.texi.
36484         * doc/posix-functions/towupper_l.texi: Renamed from
36485         doc/glibc-functions/towupper_l.texi.
36486         * doc/posix-functions/uselocale.texi: Renamed from
36487         doc/glibc-functions/uselocale.texi.
36488         * doc/posix-functions/vdprintf.texi: Renamed from
36489         doc/glibc-functions/vdprintf.texi.
36490         * doc/posix-functions/wcpcpy.texi:
36491         Renamed from doc/glibc-functions/wcpcpy.texi.
36492         * doc/posix-functions/wcpncpy.texi: Renamed from
36493         doc/glibc-functions/wcpncpy.texi.
36494         * doc/posix-functions/wcscasecmp.texi: Renamed from
36495         doc/glibc-functions/wcscasecmp.texi.
36496         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36497         doc/glibc-functions/wcscasecmp_l.texi.
36498         * doc/posix-functions/wcscoll_l.texi: Renamed from
36499         doc/glibc-functions/wcscoll_l.texi.
36500         * doc/posix-functions/wcsdup.texi: Renamed from
36501         doc/glibc-functions/wcsdup.texi.
36502         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36503         doc/glibc-functions/wcsncasecmp.texi.
36504         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36505         doc/glibc-functions/wcsncasecmp_l.texi.
36506         * doc/posix-functions/wcsnlen.texi: Renamed from
36507         doc/glibc-functions/wcsnlen.texi.
36508         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36509         doc/glibc-functions/wcsnrtombs.texi.
36510         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36511         doc/glibc-functions/wcsxfrm_l.texi.
36512         * doc/posix-functions/wctrans_l.texi: Renamed from
36513         doc/glibc-functions/wctrans_l.texi.
36514         * doc/posix-functions/wctype_l.texi: Renamed from
36515         doc/glibc-functions/wctype_l.texi.
36516         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36517         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36518         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36519         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36520         these subsections.
36521         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36522         Remove sections.
36523
36524 2008-12-14  Bruno Haible  <bruno@clisp.org>
36525
36526         Update doc for POSIX:2008.
36527         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36528
36529 2008-12-14  Bruno Haible  <bruno@clisp.org>
36530
36531         Update doc for POSIX:2008.
36532         * doc/pastposix-functions/bcmp.texi: Renamed from
36533         doc/posix-functions/bcmp.texi.
36534         * doc/pastposix-functions/bcopy.texi: Renamed from
36535         doc/posix-functions/bcopy.texi.
36536         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36537         doc/posix-functions/bsd_signal.texi.
36538         * doc/pastposix-functions/bzero.texi: Renamed from
36539         doc/posix-functions/bzero.texi.
36540         * doc/pastposix-functions/ecvt.texi: Renamed from
36541         doc/posix-functions/ecvt.texi.
36542         * doc/pastposix-functions/fcvt.texi: Renamed from
36543         doc/posix-functions/fcvt.texi.
36544         * doc/pastposix-functions/ftime.texi: Renamed from
36545         doc/posix-functions/ftime.texi.
36546         * doc/pastposix-functions/gcvt.texi: Renamed from
36547         doc/posix-functions/gcvt.texi.
36548         * doc/pastposix-functions/getcontext.texi: Renamed from
36549         doc/posix-functions/getcontext.texi.
36550         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36551         doc/posix-functions/gethostbyaddr.texi.
36552         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36553         doc/posix-functions/gethostbyname.texi.
36554         * doc/pastposix-functions/getwd.texi: Renamed from
36555         doc/posix-functions/getwd.texi.
36556         * doc/pastposix-functions/h_errno.texi: Renamed from
36557         doc/posix-functions/h_errno.texi.
36558         * doc/pastposix-functions/index.texi: Renamed from
36559         doc/posix-functions/index.texi.
36560         * doc/pastposix-functions/makecontext.texi: Renamed from
36561         doc/posix-functions/makecontext.texi.
36562         * doc/pastposix-functions/mktemp.texi: Renamed from
36563         doc/posix-functions/mktemp.texi.
36564         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36565         doc/posix-functions/pthread_attr_getstackaddr.texi.
36566         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36567         doc/posix-functions/pthread_attr_setstackaddr.texi.
36568         * doc/pastposix-functions/rindex.texi: Renamed from
36569         doc/posix-functions/rindex.texi.
36570         * doc/pastposix-functions/scalb.texi: Renamed from
36571         doc/posix-functions/scalb.texi.
36572         * doc/pastposix-functions/setcontext.texi: Renamed from
36573         doc/posix-functions/setcontext.texi.
36574         * doc/pastposix-functions/swapcontext.texi: Renamed from
36575         doc/posix-functions/swapcontext.texi.
36576         * doc/pastposix-functions/ualarm.texi: Renamed from
36577         doc/posix-functions/ualarm.texi.
36578         * doc/pastposix-functions/usleep.texi: Renamed from
36579         doc/posix-functions/usleep.texi.
36580         * doc/pastposix-functions/vfork.texi: Renamed from
36581         doc/posix-functions/vfork.texi.
36582         * doc/pastposix-functions/wcswcs.texi: Renamed from
36583         doc/posix-functions/wcswcs.texi.
36584         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36585         (Function Substitutes): Update.
36586
36587 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36588
36589         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36590         m4/strerror.m4.
36591
36592 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36593             Bruno Haible  <bruno@clisp.org>
36594
36595         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36596
36597 2008-12-13  Bruno Haible  <bruno@clisp.org>
36598
36599         * modules/strtoull (Depends-on): Remove unistd.
36600
36601 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36602
36603         * modules/strtoull (Depends-on): Add stdlib.
36604
36605 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36606
36607         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36608
36609 2008-12-10  Jim Meyering  <meyering@redhat.com>
36610
36611         gl_ASSERT: don't say assertions are disabled when they're not
36612         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36613         "checking whether to enable assertions... no", when they are in
36614         fact enabled.  This is solely a bug in the output of configure.
36615         In spite of saying "no", NDEBUG was not defined in that case.
36616         Also, as noted by Eric Blake, leave assertions enabled upon
36617         --enable-assert=INVALID.
36618
36619 2008-12-10  Bruno Haible  <bruno@clisp.org>
36620
36621         Change MODULES.html to refer to POSIX:2008 where possible.
36622         * MODULES.html.sh (POSIX2008_URL): New variable.
36623         (posix_headers): Remove sys/timeb, ucontext.
36624         (posix2001_headers): New variable.
36625         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36626         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36627         index, makecontext, mktemp, pthread_attr_getstackaddr,
36628         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36629         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36630         (posix2001_functions): New variable.
36631         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36632         otherwise.
36633
36634 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36635
36636         add missing include to parse-duration.c
36637         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36638         * modules/parse-duration (Depends-on): Add xalloc.
36639
36640         fix sed script reading maint.mk
36641         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36642         (syntax-check-rules): Use it.
36643
36644 2008-12-09  Bruno Haible  <bruno@clisp.org>
36645
36646         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36647         MacOS X 10.4/PowerPC.
36648         Reported by Simon Josefsson.
36649
36650 2008-12-08  Jim Meyering  <meyering@redhat.com>
36651
36652         work around mingw's lack of some S_IF definitions
36653         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36654         Reported by Simon Josefsson.
36655
36656 2008-12-08  Bruno Haible  <bruno@clisp.org>
36657
36658         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36659         applied to variables. Needed on MacOS X 10.4/PowerPC.
36660         Reported by Simon Josefsson.
36661
36662 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36663         and Eric Blake  <ebb9@byu.net>
36664
36665         assert: honor --enable-assert
36666         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36667         order to honor --enable-assert, rather than treating it as a
36668         synonym for --disable-assert.
36669
36670 2008-12-08  Jim Meyering  <meyering@redhat.com>
36671
36672         * lib/posixtm.c: Remove now-useless declaration of mktime.
36673
36674         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36675
36676 2008-12-07  Bruno Haible  <bruno@clisp.org>
36677
36678         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36679         test_once): Mark functions as static.
36680         * tests/test-tls.c (test_tls): Likewise.
36681
36682 2008-12-07  Bruno Haible  <bruno@clisp.org>
36683
36684         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36685         iconv_register_autodetect.
36686
36687 2008-12-07  Jim Meyering  <meyering@redhat.com>
36688
36689         posixtm.c: avoid a warning
36690         * lib/posixtm.c (posixtime): Don't initialize tm0.
36691         It's no longer needed to placate gcc4's -Wuninitialized,
36692         and the attempt to placate would elicit a new warning.
36693
36694         unicodeio.c: mark unused parameters
36695         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36696         (fallback_failure_callback): Likewise.
36697
36698 2008-12-07  Bruno Haible  <bruno@clisp.org>
36699
36700         * gnulib-tool (func_create_testdir): When building the tests
36701         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36702         Reported by Simon Josefsson.
36703
36704 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36705
36706         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36707
36708 2008-12-06  Bruno Haible  <bruno@clisp.org>
36709
36710         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36711         Suggested by Eric Blake.
36712
36713 2008-12-06  Bruno Haible  <bruno@clisp.org>
36714
36715         Fix a c-stack test failure on MacOS X.
36716         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36717         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36718         handler for SIGBUS as well.
36719         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36720         install a signal handler for SIGBUS as well.
36721         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36722
36723 2008-12-06  Bruno Haible  <bruno@clisp.org>
36724
36725         Advocacy documentation.
36726         * doc/gnulib-intro.texi (Benefits): New section.
36727         * doc/gnulib.texi: Update.
36728
36729 2008-12-06  Bruno Haible  <bruno@clisp.org>
36730
36731         Document the 'manywarnings' module.
36732         * doc/manywarnings.texi: New file.
36733         * doc/gnulib.texi: Include it.
36734
36735 2008-12-05  Eric Blake  <ebb9@byu.net>
36736
36737         tests: silence some gcc warnings
36738         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36739         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36740         type mismatches.
36741
36742 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36743             Bruno Haible  <bruno@clisp.org>
36744
36745         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36746
36747 2008-11-29  Jim Meyering  <meyering@redhat.com>
36748
36749         unicodeio.c: mark unused parameters
36750         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36751         (fallback_failure_callback): Likewise.
36752
36753         fts: fix a thinko
36754         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36755         (set_stat_type): Return S_IF*-valued "type" directly.
36756         Prompted by James Youngman's spotting a related bug.
36757         Confirmed by further testing through find.
36758
36759         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
36760         * lib/fts.c (D_TYPE): Define.
36761         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
36762         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
36763         (s_ifmt_shift_bits): New function.
36764         (set_stat_type): New function.
36765         (fts_build): When not calling fts_stat, call set_stat_type
36766         to propagate dirent.d_type info to fts_read caller.
36767         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
36768         fts_statp->st_mode type information may be valid.
36769
36770 2008-11-28  Simon Josefsson  <simon@josefsson.org>
36771
36772         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
36773         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
36774         <sds@gnu.org>.
36775
36776 2008-11-20  Bruno Haible  <bruno@clisp.org>
36777
36778         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
36779         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
36780         INCLUDE_NEXT.
36781         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
36782         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
36783         * modules/math (Makefile.am): Substitute
36784         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
36785         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36786
36787 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36788             Bruno Haible  <bruno@clisp.org>
36789
36790         * lib/stdint.in.h: Define all type macros so that their expansion is
36791         a single typedef'ed token. Fixes a compilation failure in Boost which
36792         does "using ::int8_t;".
36793
36794 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36795
36796         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
36797         gl_MANYWARN_ALL_GCC.
36798         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
36799         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
36800         * modules/manywarnings: New file.
36801         * MODULES.html.sh: Mention manywarnings module.
36802
36803 2008-11-18  Bruno Haible  <bruno@clisp.org>
36804
36805         * doc/gnulib-tool.texi (Unit tests): New section.
36806
36807 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36808
36809         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
36810         paths like 'lib/po/foo.po'.
36811
36812 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36813
36814         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
36815         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
36816
36817 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36818
36819         * m4/warnings.m4: Use CPPFLAGS to really check whether the
36820         parameter works.
36821
36822 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36823
36824         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
36825
36826 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36827
36828         * modules/parse-duration-tests: New file.
36829         * tests/test-parse-duration.sh: New file.
36830         * tests/test-parse-duration.c: New file.
36831
36832         New module 'parse-duration'.
36833         * lib/parse-duration.h: New file.
36834         * lib/parse-duration.c: New file.
36835         * modules/parse-duration: New file.
36836
36837 2008-11-17  Bruno Haible  <bruno@clisp.org>
36838
36839         * tests/test-select-out.sh: Comment out the first pipe test.
36840         Reported by Simon Josefsson.
36841
36842 2008-11-17  Bruno Haible  <bruno@clisp.org>
36843
36844         * modules/getaddrinfo (Depends-on): Add servent, hostent.
36845         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
36846         gl_HOSTENT.
36847
36848 2008-11-17  Bruno Haible  <bruno@clisp.org>
36849
36850         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
36851         -lnetwork and -lnet. Needed for Haiku and BeOS.
36852
36853 2008-11-16  Bruno Haible  <bruno@clisp.org>
36854
36855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
36856
36857 2008-11-16  Bruno Haible  <bruno@clisp.org>
36858
36859         Avoid test failure on Haiku.
36860         * tests/test-fsync.c: Include <errno.h>.
36861         (main): Don't require that fsync (0) fails.
36862
36863 2008-11-15  Bruno Haible  <bruno@clisp.org>
36864
36865         New module 'hostent'.
36866         * modules/hostent: New file.
36867         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
36868
36869 2008-11-15  Bruno Haible  <bruno@clisp.org>
36870
36871         New module 'servent'.
36872         * modules/servent: New file.
36873         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
36874
36875 2008-11-15  Bruno Haible  <bruno@clisp.org>
36876
36877         Avoid generating same test program with two different rules.
36878         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
36879         test-frexp to test-frexp-nolibm.
36880         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
36881         test-frexpl to test-frexpl-nolibm.
36882
36883 2008-11-15  Bruno Haible  <bruno@clisp.org>
36884
36885         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
36886         $(FREXPL_LIBM).
36887
36888 2008-11-15  Bruno Haible  <bruno@clisp.org>
36889
36890         * lib/netdb.in.h: Activate the definitions also when the system's
36891         <netdb.h> has 'struct addrinfo'.
36892         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
36893         EAI_OVERFLOW or AI_NUMERICSERV.
36894         * doc/posix-headers/netdb.texi: Document the problem.
36895
36896 2008-11-15  Bruno Haible  <bruno@clisp.org>
36897
36898         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
36899
36900         Make the 'sched' module work on platforms where <sched.h> exists but
36901         is incomplete (such as Haiku).
36902         * lib/sched.in.h; Include the system's <sched.h> if it exists.
36903         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
36904         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
36905         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
36906         HAVE_STRUCT_SCHED_PARAM.
36907         * modules/sched (Depends-on): Add include_next.
36908         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
36909         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
36910         * doc/posix-headers/sched.texi: Document the issue.
36911
36912 2008-11-13  Jim Meyering  <meyering@redhat.com>
36913
36914         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
36915         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
36916         test would fail due to the difference in the Report bugs to ...
36917         line.  The expected address is empty, "<>", while the actual
36918         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
36919
36920 2008-11-12  Bruno Haible  <bruno@clisp.org>
36921
36922         lstat: don't compile lstat.c on systems lacking lstat
36923         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
36924         which don't have lstat; this is handled by lib/sys_stat.in.h already.
36925         Reported by Daniel P. Berrange via Jim Meyering.
36926
36927 2008-11-12  Jim Meyering  <meyering@redhat.com>
36928
36929         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
36930
36931 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36932
36933         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
36934         instead.
36935
36936 2008-11-12  Bruno Haible  <bruno@clisp.org>
36937
36938         * lib/unicodeio.c: Include unistr.h.
36939         (utf8_wctomb): Remove function.
36940         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
36941
36942 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36943
36944         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
36945         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
36946         <bruno@clisp.org>.
36947         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
36948
36949 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36950
36951         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
36952         * doc/gnulib.texi: Add section for warnings.
36953
36954 2008-11-11  Bruno Haible  <bruno@clisp.org>
36955
36956         * lib/sockets.h: Add a comment.
36957
36958 2008-11-11  Karl Berry  <karl@gnu.org>
36959
36960         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36961
36962 2008-11-11  Eric Blake  <ebb9@byu.net>
36963
36964         fdl.texi: avoid git symlinks
36965         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36966
36967 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36968
36969         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36970
36971 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36972
36973         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36974         (gl_WARN_ADD): Substitute $2 if literal.
36975
36976 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36977
36978         * m4/warning.m4: Remove.
36979
36980 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36981
36982         * m4/warnings.m4: Almost complete rewrite. :-)
36983
36984 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36985
36986         * modules/warnings: New module.
36987         * m4/warnings.m4: New file.
36988         * MODULES.html.sh: Mention warnings module.
36989         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36990         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36991
36992 2008-11-10  Eric Blake  <ebb9@byu.net>
36993
36994         fdl.texi: make a symlink to the latest version
36995         * doc/standards.texi: Revert today's earlier change.
36996         * doc/fdl-1.2.texi: Rename from old fdl.texi...
36997         * doc/fdl.texi: ...and replace this with a symlink to the newer
36998         fdl-1.3.texi.
36999
37000 2008-11-10  Bruno Haible  <bruno@clisp.org>
37001
37002         * tests/test-select-fd.c (main): Accept the result file name as fourth
37003         argument.
37004         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
37005         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
37006
37007 2008-11-10  Bruno Haible  <bruno@clisp.org>
37008
37009         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
37010         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
37011         as autoconf-substituted macros.
37012         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
37013         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
37014         gl_NETDB_H_DEFAULTS. Set these variables.
37015         * modules/netdb (Makefile.am): Substitute these variables.
37016
37017 2008-11-10  Eric Blake  <ebb9@byu.net>
37018
37019         standards.texi: include correct file for FDL 1.3
37020         * doc/standards.texi (GNU Free Documentation License): Change
37021         include file to pull in FDL 1.3, not 1.2.
37022
37023         fdl.texi: revert accidental change to license
37024         * doc/fdl.texi: This is FDL 1.2, not 1.3.
37025
37026 2008-11-10  Bruno Haible  <bruno@clisp.org>
37027
37028         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
37029         cross-compiling guesses also when the native compile gives no result.
37030
37031 2008-11-10  Bruno Haible  <bruno@clisp.org>
37032
37033         * lib/spawni.c (__spawni): Force variable into the stack.
37034
37035 2008-11-10  Bruno Haible  <bruno@clisp.org>
37036
37037         Add support for Haiku.
37038         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
37039         glibc and BeOS, but also on Haiku.
37040         * lib/fpurge.c (fpurge): Likewise.
37041         * lib/freadable.c (freadable): Likewise.
37042         * lib/freadahead.c (freadahead): Likewise.
37043         * lib/freading.c (freading): Likewise.
37044         * lib/freadptr.c (freadptr): Likewise.
37045         * lib/freadseek.c (freadptrinc): Likewise.
37046         * lib/fseeko.c (rpl_fseeko): Likewise.
37047         * lib/fseterr.c (fseterr): Likewise.
37048         * lib/fwritable.c (fwritable): Likewise.
37049         * lib/fwriting.c (fwriting): Likewise.
37050         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37051
37052 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37053
37054         * lib/config.charset: Treat Haiku like BeOS.
37055
37056 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37057
37058         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
37059         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
37060
37061 2008-11-08  Bruno Haible  <bruno@clisp.org>
37062
37063         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
37064         AC_CACHE_CHECK.
37065
37066 2008-11-08  Bruno Haible  <bruno@clisp.org>
37067
37068         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
37069
37070 2008-11-08  Bruno Haible  <bruno@clisp.org>
37071
37072         * tests/test-select-fd.c: New file.
37073         * tests/test-select-in.sh: New file.
37074         * tests/test-select-out.sh: New file.
37075         * tests/test-select-stdin.c: New file.
37076         * modules/select-tests (Files): Add the new files.
37077         (Depends-on): Add gettimeofday.
37078         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
37079         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
37080         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
37081
37082 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
37083             Bruno Haible  <bruno@clisp.org>
37084
37085         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
37086
37087 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37088
37089         * build-aux/pmccabe2html: Added support for C++ source files.
37090
37091 2008-11-05  Ben Pfaff  <blp@gnu.org>
37092
37093         Fix lib/close.c build on Windows.
37094         * modules/close (Files): Add lib/w32sock.h.
37095
37096 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37097
37098         Accept Bison's NEWS format.
37099         * build-aux/announce-gen (print_news_deltas): Tweak
37100         $re_prefix.
37101
37102 2008-11-04  Bruno Haible  <bruno@clisp.org>
37103
37104         * modules/random_r (Maintainer): Add glibc.
37105
37106 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37107
37108         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37109         by karl@freefriends.org (Karl Berry).
37110         * doc/alloca.texi: Likewise.
37111         * doc/c-ctype.texi: Likewise.
37112         * doc/c-strcase.texi: Likewise.
37113         * doc/c-strcaseeq.texi: Likewise.
37114         * doc/c-strcasestr.texi: Likewise.
37115         * doc/c-strstr.texi: Likewise.
37116         * doc/c-strtod.texi: Likewise.
37117         * doc/c-strtold.texi: Likewise.
37118         * doc/ctime.texi: Likewise.
37119         * doc/error.texi: Likewise.
37120         * doc/fdl.texi: Likewise.
37121         * doc/gcd.texi: Likewise.
37122         * doc/getdate.texi: Likewise.
37123         * doc/gnulib-intro.texi: Likewise.
37124         * doc/gnulib-tool.texi: Likewise.
37125         * doc/gnulib.texi: Likewise.
37126         * doc/inet_ntoa.texi: Likewise.
37127         * doc/maintain.texi: Likewise.
37128         * doc/make-stds.texi: Likewise.
37129         * doc/quote.texi: Likewise.
37130         * doc/regexprops-generic.texi: Likewise.
37131         * doc/standards.texi: Likewise.
37132         * doc/verify.texi: Likewise.
37133         * doc/visibility.texi: Likewise.
37134         * doc/gnulib.texi (GNU Free Documentation License): Include
37135         fdl-1.3.texi instead of fdl.texi.
37136
37137 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37138
37139         * doc/fdl-1.3.texi: New file, from
37140         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37141         * modules/fdl-1.3: Add.
37142         * MODULES.html.sh: Add fdl-1.3.
37143
37144 2008-11-03  Bruno Haible  <bruno@clisp.org>
37145
37146         Make determination of absolute name of header file work with AIX xlc.
37147         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37148         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37149         preprocessing.
37150         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37151         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37152
37153 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37154
37155         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37156         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37157         <ludo@gnu.org>.
37158
37159 2008-11-02  Bruno Haible  <bruno@clisp.org>
37160
37161         Mark 'strpbrk' obsolete.
37162         * modules/strpbrk (Status, Notice): New sections.
37163         * modules/strtok_r (Depends-on): Add strpbrk.
37164
37165 2008-11-02  Bruno Haible  <bruno@clisp.org>
37166
37167         Mark 'strdup' obsolete.
37168         * modules/strdup (Status, Notice): New sections.
37169         * modules/findprog (Depends-on): Add strdup.
37170         * modules/getaddrinfo (Depends-on): Likewise.
37171         * modules/localename (Depends-on): Likewise.
37172         * modules/relocatable-lib (Depends-on): Likewise.
37173         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37174         * modules/relocatable-prog (Depends-on): Likewise.
37175         * modules/trim (Depends-on): Likewise.
37176         * modules/unictype/gen-ctype (Depends-on): Likewise.
37177         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37178
37179 2008-11-02  Bruno Haible  <bruno@clisp.org>
37180
37181         Mark 'strcspn' obsolete.
37182         * modules/strcspn (Status, Notice): New sections.
37183
37184 2008-11-02  Bruno Haible  <bruno@clisp.org>
37185
37186         Mark 'rmdir' obsolete.
37187         * modules/rmdir (Status, Notice): New sections.
37188         * modules/clean-temp (Depends-on): Add rmdir.
37189         * modules/openat (Depends-on): Likewise.
37190
37191 2008-11-02  Bruno Haible  <bruno@clisp.org>
37192
37193         Mark 'raise' obsolete.
37194         * modules/raise (Status, Notice): New sections.
37195         (Include): Specify <signal.h>.
37196         * modules/stdio (Depends-on): Add raise.
37197         * modules/write (Depends-on): Likewise.
37198
37199 2008-11-02  Bruno Haible  <bruno@clisp.org>
37200
37201         Mark 'memset' obsolete.
37202         * modules/memset (Status, Notice): New sections.
37203
37204 2008-11-02  Bruno Haible  <bruno@clisp.org>
37205
37206         Mark 'memmove' obsolete.
37207         * modules/memmove (Status, Notice): New sections.
37208         * modules/argp (Depends-on): Add memmove.
37209         * modules/argz (Depends-on): Likewise.
37210         * modules/canonicalize (Depends-on): Likewise.
37211         * modules/canonicalize-lgpl (Depends-on): Likewise.
37212         * modules/fts (Depends-on): Likewise.
37213         * modules/getcwd (Depends-on): Likewise.
37214         * modules/human (Depends-on): Likewise.
37215         * modules/regex (Depends-on): Likewise.
37216         * modules/striconveh (Depends-on): Likewise.
37217         * modules/trim (Depends-on): Likewise.
37218         * modules/unistr/u8-move (Depends-on): Likewise.
37219         * modules/unistr/u16-move (Depends-on): Likewise.
37220         * modules/unistr/u32-move (Depends-on): Likewise.
37221
37222 2008-11-02  Bruno Haible  <bruno@clisp.org>
37223
37224         Mark 'memcpy' obsolete.
37225         * modules/memcpy (Status, Notice): New sections.
37226
37227 2008-11-02  Bruno Haible  <bruno@clisp.org>
37228
37229         Mark 'memcmp' obsolete.
37230         * modules/memcmp (Status, Notice): New sections.
37231         * modules/argmatch (Depends-on): Add memchr.
37232         * modules/backupfile (Depends-on): Likewise.
37233         * modules/c-strcasestr (Depends-on): Likewise.
37234         * modules/crypto/des (Depends-on): Likewise.
37235         * modules/csharpcomp (Depends-on): Likewise.
37236         * modules/fnmatch (Depends-on): Likewise.
37237         * modules/git-merge-changelog (Depends-on): Likewise.
37238         * modules/isnand (Depends-on): Likewise.
37239         * modules/isnand-nolibm (Depends-on): Likewise.
37240         * modules/isnanf (Depends-on): Likewise.
37241         * modules/isnanf-nolibm (Depends-on): Likewise.
37242         * modules/isnanl (Depends-on): Likewise.
37243         * modules/isnanl-nolibm (Depends-on): Likewise.
37244         * modules/mbchar (Depends-on): Likewise.
37245         * modules/memcoll (Depends-on): Likewise.
37246         * modules/quotearg (Depends-on): Likewise.
37247         * modules/regex (Depends-on): Likewise.
37248         * modules/relocatable-prog (Depends-on): Likewise.
37249         * modules/same (Depends-on): Likewise.
37250         * modules/signbit (Depends-on): Likewise.
37251         * modules/strcasestr-simple (Depends-on): Likewise.
37252         * modules/unictype/gen-ctype (Depends-on): Likewise.
37253         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37254         * modules/uniname/uniname (Depends-on): Likewise.
37255         * modules/unistr/u8-cmp (Depends-on): Likewise.
37256
37257 2008-11-02  Bruno Haible  <bruno@clisp.org>
37258
37259         Mark 'memchr' obsolete.
37260         * modules/memchr (Status, Notice): New sections.
37261         * modules/argp (Depends-on): Add memchr.
37262         * modules/base64 (Depends-on): Likewise.
37263         * modules/c-strcasestr (Depends-on): Likewise.
37264         * modules/chdir-long (Depends-on): Likewise.
37265         * modules/fnmatch (Depends-on): Likewise.
37266         * modules/getsubopt (Depends-on): Likewise.
37267         * modules/git-merge-changelog (Depends-on): Likewise.
37268         * modules/glob (Depends-on): Likewise.
37269         * modules/strcasestr-simple (Depends-on): Likewise.
37270         * modules/strnlen (Depends-on): Likewise.
37271
37272 2008-11-02  Bruno Haible  <bruno@clisp.org>
37273
37274         Mark 'atexit' obsolete.
37275         * modules/atexit (Status, Notice): New sections.
37276         * modules/chdir-long (Depends-on): Add atexit.
37277         * modules/wait-process (Depends-on): Likewise.
37278
37279 2008-11-02  Bruno Haible  <bruno@clisp.org>
37280
37281         * gnulib-tool: New option --with-obsolete.
37282         (func_usage): Document it.
37283         (func_modules_transitive_closure): Drop obsolete dependencies if
37284         incobsolete is not true.
37285         (func_import): Read and save the incobsolete variable to the cache.
37286
37287 2008-11-02  Bruno Haible  <bruno@clisp.org>
37288
37289         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37290         * gnulib-tool: New option --extract-status.
37291         (func_usage): Document it.
37292         (sed_extract_prog): Recognize it.
37293         (func_get_status): New function.
37294
37295 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37296
37297         * modules/sockets (License): Change from LGPL to LGPLv2+.
37298
37299 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37300
37301         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37302
37303 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37304
37305         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37306         Mention times and sys_times.
37307         * modules/sys_times, modules/sys_times-tests: New modules.
37308         * modules/times, modules/times-tests: Likewise
37309         * m4/sys_times_h.m4: New file.
37310         * lib/sys_times.in.h: Likewise
37311         * lib/times.c: Likewise.
37312         * tests/test-sys_times.c: Likewise.
37313         * tests/test-times.c: Likewise.
37314         * doc/posix-headers/sys_times.texi: Update.
37315         * doc/posix-functions/times.texi: Update.
37316
37317 2008-10-28  Jim Meyering  <meyering@redhat.com>
37318
37319         * modules/tempname (Depends-on): Add lstat.
37320
37321         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37322
37323 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37324
37325         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37326         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37327         using idiom used elsewhere in gnulib.
37328
37329 2008-10-27  Jim Meyering  <meyering@redhat.com>
37330
37331         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37332
37333 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37334
37335         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37336         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37337         programs.
37338         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37339
37340 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37341
37342         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37343
37344 2008-10-27  Bruno Haible  <bruno@clisp.org>
37345
37346         * tests/test-lstat.c: Include <stdio.h>.
37347
37348 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37349
37350         * modules/lstat-tests: New module.
37351         * tests/test-lstat.c: New file.
37352
37353 2008-10-26  Jim Meyering  <meyering@redhat.com>
37354
37355         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37356
37357 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37358             Bruno Haible  <bruno@clisp.org>
37359
37360         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37361         * modules/configmake (Include): Add a note that the include must come
37362         after all system headers.
37363         * lib/javaversion.c: Include configmake.h after all other includes.
37364
37365 2008-10-26  Bruno Haible  <bruno@clisp.org>
37366
37367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37368         HAVE_STRUCT_RANDOM_DATA to 1.
37369         (gl_STDLIB_H): Simplify.
37370
37371 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37372
37373         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37374         substitute HAVE_STRUCT_RANDOM_DATA.
37375         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37376         random_data.
37377         * modules/stdlib (Makefile.am): Substitute
37378         HAVE_STRUCT_RANDOM_DATA.
37379
37380 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37381
37382         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37383         * doc/gnulib-intro.texi (Copyright): Likewise.
37384
37385 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37386
37387         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37388         findings.
37389
37390 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37391             Bruno Haible  <bruno@clisp.org>
37392
37393         * lib/unistd.in.h: Include <winsock2.h>.
37394         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37395         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37396         Provide dummy declarations.
37397         (gethostname): Override.
37398         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37399         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37400         gl_PREREQ_SYS_H_WINSOCK2.
37401         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37402         * doc/posix-functions/gethostname.texi: More details.
37403
37404 2008-10-25  Bruno Haible  <bruno@clisp.org>
37405
37406         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37407         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37408         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37409
37410         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37411         here ...
37412         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37413         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37414         gl_UNISTD_H_DEFAULTS.
37415
37416 2008-10-25  Eric Blake  <ebb9@byu.net>
37417
37418         signbit: avoid spurious compiler failure
37419         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37420         declarations inside function.
37421
37422 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37423             Bruno Haible  <bruno@clisp.org>
37424
37425         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37426         * modules/random_r (Depends-on): Add stdint.
37427
37428 2008-10-24  Bruno Haible  <bruno@clisp.org>
37429
37430         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37431         Eggert.
37432         * modules/strerror (License): Likewise.
37433
37434 2008-10-24  Jim Meyering  <meyering@redhat.com>
37435
37436         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37437         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37438
37439 2008-10-24  Eric Blake  <ebb9@byu.net>
37440
37441         getgroups: fix compilation when getgroups is available
37442         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37443         but with <config.h> override of getgroups disabled.
37444
37445 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37446
37447         * doc/gnulib.texi (Header files): Add note about C++ problems.
37448         Explained by Bruno Haible <bruno@clisp.org>.
37449
37450 2008-10-23  Bruno Haible  <bruno@clisp.org>
37451
37452         Define a dummy SA_NODEFER macro on Interix.
37453         * lib/signal.in.h (SA_NODEFER): Define fallback.
37454         Reported by Aleksey Cheusov <cheusov@tut.by> via
37455         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37456
37457 2008-10-23  Bruno Haible  <bruno@clisp.org>
37458
37459         * modules/freadahead (License): Change to LGPLv2+.
37460         Suggested by Simon Josefsson.
37461
37462 2008-10-23  Jim Meyering  <meyering@redhat.com>
37463
37464         random_r: new module
37465         * modules/random_r: New file.
37466         * m4/random_r.m4: New file.
37467         * lib/random_r.c: New file, from glibc.
37468         * modules/random_r-tests: New file.
37469         * tests/test-random_r.c: New file.
37470         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37471          Declare.
37472         (RAND_MAX): Define.
37473         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37474         * modules/stdlib: Substitute them, too.
37475         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37476         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37477         * doc/glibc-functions/random_r.texi: Likewise.
37478         * doc/glibc-functions/setstate_r.texi: Likewise.
37479         * doc/glibc-functions/srandom_r.texi: Likewise.
37480         * config/srclist.txt: Mention it.
37481
37482 2008-10-23  David Lutterkort  <lutter@redhat.com>
37483
37484         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37485         link requirement
37486
37487 2008-10-23  Jim Meyering  <meyering@redhat.com>
37488
37489         selinux-h: mark parameters of stub functions as intentionally unused
37490         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37491         * lib/se-context.in.h: Likewise.
37492
37493 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37494
37495         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37496
37497 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37498
37499         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37500
37501 2008-10-22  Eric Blake  <ebb9@byu.net>
37502
37503         glthread/thread: avoid compiler warning
37504         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37505         Add unreachable abort to silence compiler.
37506
37507 2008-10-22  Eric Blake  <ebb9@byu.net>
37508
37509         netdb: also supply struct addrinfo for cygwin 1.5.x
37510         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37511         older cygwin.
37512         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37513         cygwin.
37514         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37515
37516 2008-10-22  Bruno Haible  <bruno@clisp.org>
37517
37518         * users.txt: Update entry about pspp.
37519
37520 2008-10-21  Bruno Haible  <bruno@clisp.org>
37521
37522         Simplification.
37523         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37524         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37525
37526         Simplification.
37527         * lib/ioctl.c (ioctl): Don't undefine.
37528         * lib/socket.c (socket): Don't undefine.
37529
37530         Remove unused module indicator macros.
37531         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37532         GNULIB_$1 as a C macro.
37533
37534         * doc/posix-functions/close.texi: Undo last change.
37535         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37536         Windows platforms.
37537
37538 2008-10-21  Bruno Haible  <bruno@clisp.org>
37539
37540         Add gethostname() declaration to <unistd.h>.
37541         * lib/unistd.in.h (gethostname): New declaration.
37542         * lib/gethostname.c: Include <unistd.h>.
37543         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37544         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37546         and HAVE_GETHOSTNAME.
37547         * modules/gethostname (Depends-on): Add unistd.
37548         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37549         (Include): Specify <unistd.h>.
37550         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37551         HAVE_GETHOSTNAME.
37552         * tests/test-gethostname.c: Include <unistd.h> first.
37553
37554 2008-10-21  Bruno Haible  <bruno@clisp.org>
37555
37556         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37557         * modules/select-tests (Depends-on): Likewise.
37558         Reported by Simon Josefsson.
37559
37560 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37561
37562         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37563         * lib/accept.c: New file, based on winsock.c.
37564         * lib/bind.c: New file, based on winsock.c.
37565         * lib/connect.c: New file, based on winsock.c.
37566         * lib/getpeername.c: New file, based on winsock.c.
37567         * lib/getsockname.c: New file, based on winsock.c.
37568         * lib/getsockopt.c: New file, based on winsock.c.
37569         * lib/ioctl.c: New file, based on winsock.c.
37570         * lib/listen.c: New file, based on winsock.c.
37571         * lib/recv.c: New file, based on winsock.c.
37572         * lib/recvfrom.c: New file, based on winsock.c.
37573         * lib/send.c: New file, based on winsock.c.
37574         * lib/sendto.c: New file, based on winsock.c.
37575         * lib/setsockopt.c: New file, based on winsock.c.
37576         * lib/shutdown.c: New file, based on winsock.c.
37577         * lib/socket.c: New file, based on winsock.c.
37578         * lib/w32sock.h: New file, based on winsock.c.
37579         * lib/winsock.c: Remove file.
37580         * modules/accept: Likewise.
37581         * modules/bind: Likewise.
37582         * modules/connect: Likewise.
37583         * modules/getpeername: Likewise.
37584         * modules/getsockname: Likewise.
37585         * modules/getsockopt: Likewise.
37586         * modules/ioctl: Likewise.
37587         * modules/listen: Likewise.
37588         * modules/recv: Likewise.
37589         * modules/recvfrom: Likewise.
37590         * modules/send: Likewise.
37591         * modules/sendto: Likewise.
37592         * modules/setsockopt: Likewise.
37593         * modules/shutdown: Likewise.
37594         * modules/socket: Use socket.c instead of winsock.c.
37595         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37596         * doc/posix-functions/accept.texi: Doc fix.
37597         * doc/posix-functions/bind.texi: Doc fix.
37598         * doc/posix-functions/close.texi: Doc fix.
37599         * doc/posix-functions/connect.texi: Doc fix.
37600         * doc/posix-functions/getpeername.texi: Doc fix.
37601         * doc/posix-functions/getsockname.texi: Doc fix.
37602         * doc/posix-functions/getsockopt.texi: Doc fix.
37603         * doc/posix-functions/ioctl.texi: Doc fix.
37604         * doc/posix-functions/listen.texi: Doc fix.
37605         * doc/posix-functions/recv.texi: Doc fix.
37606         * doc/posix-functions/recvfrom.texi: Doc fix.
37607         * doc/posix-functions/send.texi: Doc fix.
37608         * doc/posix-functions/sendto.texi: Doc fix.
37609         * doc/posix-functions/setsockopt.texi: Doc fix.
37610         * doc/posix-functions/shutdown.texi: Doc fix.
37611         * doc/posix-functions/socket.texi: Doc fix.
37612
37613 2008-10-20  Bruno Haible  <bruno@clisp.org>
37614
37615         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37616         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37617         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37618         as an alias for SIGABRT.
37619         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37620         (sigaction): Map it to SIGABRT.
37621         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37622
37623 2008-10-20  Bruno Haible  <bruno@clisp.org>
37624
37625         * lib/fts.c: Don't include lstat.h.
37626         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37627
37628         Move the lstat() declaration to <sys/stat.h>.
37629         * lib/lstat.h: Remove file.
37630         * lib/sys_stat.in.h: Add special invocation convention.
37631         (lstat): New declaration.
37632         * lib/lstat.c (orig_lstat): New function.
37633         (rpl_lstat): Use orig_lstat instead of lstat.
37634         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37635         AC_C_INLINE. Set REPLACE_LSTAT.
37636         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37637         and REPLACE_LSTAT.
37638         * modules/lstat (Files): Remove lib/lstat.h.
37639         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37640         (Include): Specify <sys/stat.h> instead of lstat.h.
37641         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37642         REPLACE_LSTAT.
37643         * NEWS: Mention the change.
37644
37645 2008-10-20  Bruno Haible  <bruno@clisp.org>
37646
37647         * modules/posix_spawn-tests: New file.
37648         * tests/test-posix_spawn3.c: New file.
37649
37650 2008-10-20  Bruno Haible  <bruno@clisp.org>
37651
37652         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37653         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37654         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37655         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37656         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37657
37658 2008-10-20  Bruno Haible  <bruno@clisp.org>
37659
37660         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37661         of posix_spawn on AIX 5.3.
37662
37663 2008-10-20  Bruno Haible  <bruno@clisp.org>
37664
37665         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37666
37667 2008-10-20  Bruno Haible  <bruno@clisp.org>
37668
37669         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37670         of AC_LANG_PROGRAM.
37671
37672 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37673
37674         * lib/netdb.in.h: Don't define GNU specific constants until they
37675         are supported or needed.  Reported by Bruno Haible
37676         <bruno@clisp.org>.
37677
37678 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37679
37680         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37681
37682 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37683
37684         * lib/getaddrinfo.h: Remove file.
37685         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37686         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37687         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37688         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37689         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37690         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37691         * tests/test-getaddrinfo.c: Likewise.
37692         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37693         * NEWS: Mention change.
37694
37695 2008-10-19  Bruno Haible  <bruno@clisp.org>
37696
37697         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37698
37699 2008-10-19  Bruno Haible  <bruno@clisp.org>
37700
37701         * lib/wait-process.c: Include simply <sys/wait.h>.
37702         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37703         WIFSTOPPED): Remove fallback definitions.
37704         * modules/wait-process (Depends-on): Add sys_wait.
37705
37706         New module 'sys_wait'.
37707         * modules/sys_wait: New file.
37708         * lib/sys_wait.in.h: New file, partially copied from
37709         lib/wait-process.c.
37710         * m4/sys_wait_h.m4: New file.
37711         * doc/posix-headers/sys_wait.texi: Mention the new module.
37712
37713 2008-10-19  Bruno Haible  <bruno@clisp.org>
37714
37715         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37716
37717 2008-10-19  Bruno Haible  <bruno@clisp.org>
37718
37719         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37720         * lib/wait-process.c (WAIT_T): Remove type.
37721         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37722         (wait_subprocess): Update.
37723
37724 2008-10-19  Bruno Haible  <bruno@clisp.org>
37725
37726         New module 'atoll'.
37727         * modules/atoll: New file.
37728         * lib/stdlib.in.h (atoll): New declaration.
37729         * lib/atoll.c: New file, from glibc with modifications.
37730         * m4/atoll.m4: New file.
37731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37732         HAVE_ATOLL.
37733         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37734         * doc/posix-functions/atoll.texi: Mention the new module.
37735
37736 2008-10-19  Bruno Haible  <bruno@clisp.org>
37737
37738         Add strtoull() declaration to <stdlib.h>.
37739         * lib/stdlib.in.h (strtoull): New declaration.
37740         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37741         Set HAVE_STRTOULL.
37742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37743         HAVE_STRTOULL.
37744         * modules/strtoull (Depends-on): Add stdlib.
37745         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37746         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37747         HAVE_STRTOULL.
37748
37749 2008-10-19  Bruno Haible  <bruno@clisp.org>
37750
37751         Add strtoll() declaration to <stdlib.h>.
37752         * lib/stdlib.in.h (strtoll): New declaration.
37753         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37754         Set HAVE_STRTOLL.
37755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37756         HAVE_STRTOLL.
37757         * modules/strtoll (Depends-on): Add stdlib.
37758         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37759         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
37760
37761 2008-10-19  Bruno Haible  <bruno@clisp.org>
37762
37763         * modules/bcopy (Depends-on): Add strings.
37764         (Include): Specify <strings.h>.
37765
37766 2008-10-19  Bruno Haible  <bruno@clisp.org>
37767
37768         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
37769
37770 2008-10-19  Bruno Haible  <bruno@clisp.org>
37771
37772         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
37773         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
37774         mingw.
37775
37776 2008-10-19  Bruno Haible  <bruno@clisp.org>
37777
37778         * lib/atanl.c: Don't include isnanl.h.
37779         * lib/cosl.c: Likewise.
37780         * lib/ldexpl.c: Likewise.
37781         * lib/logl.c: Likewise.
37782         * lib/sinl.c: Likewise.
37783         * lib/sqrtl.c: Likewise.
37784         * lib/tanl.c: Likewise.
37785
37786         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
37787         * lib/isnanf.h: Remove file.
37788         * lib/isnand.h: Remove file.
37789         * lib/isnanl.h: Remove file.
37790         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
37791         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
37792         macros.
37793         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
37794         HAVE_ISNANF, don't define it as a C macro.
37795         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
37796         HAVE_ISNAND, don't define it as a C macro.
37797         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
37798         HAVE_ISNANL, don't define it as a C macro.
37799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
37800         HAVE_ISNAN[FDL].
37801         * modules/isnanf (Files): Remove lib/isnanf.h.
37802         (Depends-on): Add math.
37803         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37804         (Include): Specify <math.h> instead of isnanf.h.
37805         * modules/isnand (Files): Remove lib/isnand.h.
37806         (Depends-on): Add math.
37807         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37808         (Include): Specify <math.h> instead of isnand.h.
37809         * modules/isnanl (Files): Remove lib/isnanl.h.
37810         (Depends-on): Add math.
37811         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37812         (Include): Specify <math.h> instead of isnanl.h.
37813         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
37814         HAVE_ISNAN[FDL].
37815         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
37816         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
37817         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
37818         * NEWS: Mention the change.
37819
37820 2008-10-18  Bruno Haible  <bruno@clisp.org>
37821
37822         Add getusershell(), setusershell(), endusershell() declarations to
37823         <unistd.h>.
37824         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
37825         declarations.
37826         * lib/getusershell.c: Include unistd.h.
37827         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
37828         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37829         HAVE_GETUSERSHELL.
37830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
37831         and HAVE_GETUSERSHELL.
37832         * modules/getusershell (Depends-on): Add unistd, extensions.
37833         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37834         (Include): Specify <unistd.h>.
37835         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
37836         HAVE_GETUSERSHELL.
37837
37838 2008-10-18  Bruno Haible  <bruno@clisp.org>
37839
37840         Add a getloadavg() declaration to <stdlib.h>.
37841         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
37842         getloadavg declaration.
37843         (getloadavg): New declaration.
37844         * lib/getloadavg.c: Include <stdlib.h> first.
37845         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
37846         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
37847         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
37848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
37849         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37850         * modules/getloadavg (Depends-on): Add stdlib, extensions.
37851         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37852         (Include): Specify <stdlib.h>.
37853         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
37854         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37855
37856 2008-10-18  Bruno Haible  <bruno@clisp.org>
37857
37858         * lib/dirchownmod.c: Don't include lchmod.h.
37859
37860         Move the lchmod() declaration to <sys/stat.h>.
37861         * lib/lchmod.h: Remove file.
37862         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
37863         (lchmod): New declaration, moved here from lib/lchown.h.
37864         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
37865         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
37866         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
37867         and HAVE_LCHMOD.
37868         * modules/lchmod (Files): Remove lib/lchmod.h.
37869         (Depends-on): Add sys_stat, extensions.
37870         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37871         (Include): Specify <sys/stat.h> instead of lchmod.h.
37872         * modules/sys_stat (Depends-on): Add link-warning.
37873         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37874         definition of GL_LINK_WARNING.
37875         * NEWS: Mention the change.
37876
37877 2008-10-18  Bruno Haible  <bruno@clisp.org>
37878
37879         * lib/fchdir.c: Don't include dirfd.h.
37880         * lib/fts.c: Likewise.
37881         * lib/getcwd.c: Likewise.
37882         * lib/glob.c: Likewise.
37883
37884         Move the dirfd() declaration to <dirent.h>.
37885         * lib/dirfd.h: Remove file.
37886         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
37887         (dirfd): New declaration.
37888         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
37889         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
37890         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
37891         HAVE_DECL_DIRFD.
37892         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
37893         HAVE_DECL_DIRFD.
37894         * modules/dirfd (Files): Remove lib/dirfd.h.
37895         (Depends-on): Add dirent, extensions.
37896         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
37897         (Include): Specify <dirent.h> instead of dirfd.h.
37898         * modules/dirent (Depends-on): Add link-warning.
37899         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
37900         definition of GL_LINK_WARNING.
37901         * NEWS: Mention the change.
37902
37903 2008-10-18  Bruno Haible  <bruno@clisp.org>
37904
37905         Move the euidaccess() declaration to <unistd.h>.
37906         * lib/euidaccess.h: Remove file.
37907         * lib/unistd.in.h (euidaccess): New declaration.
37908         * lib/euidaccess.c: Don't include euidaccess.h.
37909         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
37910         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
37911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
37912         and HAVE_EUIDACCESS.
37913         * modules/euidaccess (Files): Remove lib/euidaccess.h.
37914         (Depends-on): Add unistd.
37915         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37916         (Include): Specify <unistd.h> instead of euidaccess.h.
37917         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
37918         HAVE_EUIDACCESS.
37919         * NEWS: Mention the change.
37920
37921 2008-10-18  Bruno Haible  <bruno@clisp.org>
37922
37923         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
37924
37925         Move the getdomainname() declaration to <unistd.h>.
37926         * lib/getdomainname.h: Remove file.
37927         * lib/unistd.in.h (getdomainname): New declaration.
37928         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
37929         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37930         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37931         HAVE_GETDOMAINNAME.
37932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37933         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
37934         * modules/getdomainname (Files): Remove lib/getdomainname.h.
37935         (Depends-on): Add unistd, extensions.
37936         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37937         (Includes): Specify <unistd.h> instead of getdomainname.h.
37938         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
37939         HAVE_GETDOMAINNAME.
37940         * NEWS: Mention the change.
37941
37942 2008-10-18  Bruno Haible  <bruno@clisp.org>
37943
37944         * modules/dirent: New file.
37945         * m4/dirent_h.m4: New file.
37946         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
37947         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
37948         * modules/fchdir (Files): Remove lib/dirent.in.h.
37949         (Depends-on): Add dirent.
37950         (Makefile.am): Move rules to modules/dirent.
37951         * doc/posix-headers/dirent.texi: Mention the new module.
37952
37953 2008-10-18  Bruno Haible  <bruno@clisp.org>
37954
37955         Avoid -Wunused-parameter warnings in public gnulib header files.
37956         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37957         macro.
37958         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37959
37960 2008-10-18  Bruno Haible  <bruno@clisp.org>
37961
37962         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37963         * doc/glibc-functions/error.texi: Mention the module 'error'.
37964         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37965         * doc/glibc-functions/getdomainname.texi: Mention the module
37966         'getdomainname'.
37967         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37968         * doc/glibc-functions/getpagesize.texi: Mention the module
37969         'getpagesize'.
37970         * doc/glibc-functions/getusershell.texi: Mention the module
37971         'getusershell'.
37972         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37973         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37974         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37975         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37976         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37977         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37978         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37979         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37980         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37981         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37982         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37983         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37984         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37985         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37986
37987 2008-10-17  Bruno Haible  <bruno@clisp.org>
37988
37989         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37990         HP-UX and IRIX, use -0.0L.
37991         * tests/test-ceill.c (minus_zero): Likewise.
37992         * tests/test-floorl.c (minus_zero): Likewise.
37993         * tests/test-frexpl.c (minus_zero): Likewise.
37994         * tests/test-isnan.c (minus_zerol): Likewise.
37995         * tests/test-isnanl.h (minus_zero): Likewise.
37996         * tests/test-ldexpl.c (minus_zero): Likewise.
37997         * tests/test-roundl.c (minus_zero): Likewise.
37998         * tests/test-signbit.c (minus_zerol): Likewise.
37999         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38000         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38001         * tests/test-truncl.c (minus_zero): Likewise.
38002         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38003         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38004         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
38005         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38006
38007 2008-10-17  Bruno Haible  <bruno@clisp.org>
38008
38009         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
38010         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
38011         that it gets activated only for gcc >= 3.0.
38012         * lib/dirent.in.h: Likewise.
38013         * lib/errno.in.h: Likewise.
38014         * lib/fcntl.in.h: Likewise.
38015         * lib/float.in.h: Likewise.
38016         * lib/iconv.in.h: Likewise.
38017         * lib/inttypes.in.h: Likewise.
38018         * lib/locale.in.h: Likewise.
38019         * lib/math.in.h: Likewise.
38020         * lib/netdb.in.h: Likewise.
38021         * lib/netinet_in.in.h: Likewise.
38022         * lib/search.in.h: Likewise.
38023         * lib/signal.in.h: Likewise.
38024         * lib/spawn.in.h: Likewise.
38025         * lib/stdarg.in.h: Likewise.
38026         * lib/stdint.in.h: Likewise.
38027         * lib/stdio.in.h: Likewise.
38028         * lib/stdlib.in.h: Likewise.
38029         * lib/string.in.h: Likewise.
38030         * lib/strings.in.h: Likewise.
38031         * lib/sys_file.in.h: Likewise.
38032         * lib/sys_ioctl.in.h: Likewise.
38033         * lib/sys_select.in.h: Likewise.
38034         * lib/sys_socket.in.h: Likewise.
38035         * lib/sys_stat.in.h: Likewise.
38036         * lib/sys_time.in.h: Likewise.
38037         * lib/sysexits.in.h: Likewise.
38038         * lib/time.in.h: Likewise.
38039         * lib/unistd.in.h: Likewise.
38040         * lib/wchar.in.h: Likewise.
38041         * lib/wctype.in.h: Likewise.
38042         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38043
38044 2008-10-17  Jim Meyering  <meyering@redhat.com>
38045
38046         ignore-value: don't depend on inline module
38047         * modules/ignore-value (Depends-on): Remove 'inline'.
38048         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
38049         Suggestion from Bruno Haible.
38050
38051 2008-10-17  Bruno Haible  <bruno@clisp.org>
38052
38053         New implementation of condition variables for Win32.
38054         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38055         (gl_linked_waitqueue_t): New type.
38056         (gl_cond_t): Use it.
38057         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
38058         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
38059         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
38060         (glthread_cond_init_func, glthread_cond_wait_func,
38061         glthread_cond_timedwait_func, glthread_cond_signal_func,
38062         glthread_cond_broadcast_func, glthread_cond_destroy_func):
38063         Reimplemented on the basis of gl_linked_waitqueue_t.
38064         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
38065         gl_waitqueue_t.
38066         (gl_rwlock_t): Update.
38067         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
38068
38069 2008-10-17  Simon Josefsson  <simon@josefsson.org>
38070
38071         * modules/recvfrom (Depends-on): Add dependency on getpeername.
38072         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38073
38074 2008-10-17  Jim Meyering  <meyering@redhat.com>
38075
38076         ignore-value: new module
38077         * modules/ignore-value: New file.
38078         * lib/ignore-value.h: New file.
38079         * MODULES.html.sh (Compiler warning management): New section,
38080         just for this module.  More to come.
38081
38082 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38083
38084         open-safer.c: avoid 'signed and unsigned in conditional...' warning
38085         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
38086         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38087
38088 2008-10-16  Jim Meyering  <meyering@redhat.com>
38089
38090         openat-die.c: avoid 'no previous prototype' warning
38091         * lib/openat-die.c: Include "openat.h".
38092         Reported by Reuben Thomas <rrt@sc3d.org>.
38093
38094 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38095
38096         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38097         * lib/netdb.in.h: Fix typo.
38098         Reported by Bruno Haible  <bruno@clisp.org>
38099
38100         * lib/netdb.in.h: Include sys/socket.h for platforms without
38101         netdb.h, to get structures like hostent on MinGW.
38102         * modules/netdb (Depends-on): Add sys_socket.
38103
38104 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38105
38106         * modules/netdb, modules/netdb-tests: New file.
38107         * m4/netdb_h.m4: New file.
38108         * lib/netdb.in.h: Add, currently just an empty file pending
38109         definitions.
38110         * tests/test-netdb.c: New file.
38111         * doc/posix-headers/netdb.texi: Mention that we replace it if
38112         needed.
38113         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38114         netdb.
38115
38116 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38117
38118         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38119         with code.
38120
38121 2008-10-13  Bruno Haible  <bruno@clisp.org>
38122
38123         * lib/glthread/cond.c (glthread_cond_wait_func,
38124         glthread_cond_timedwait_func): Add a comment.
38125
38126 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38127
38128         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38129         * tests/test-select.c: Likewise,
38130
38131 2008-10-13  Bruno Haible  <bruno@clisp.org>
38132
38133         * lib/glthread/cond.c (glthread_cond_wait_func,
38134         glthread_cond_timedwait_func): Fix variable name.
38135         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38136
38137 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38138
38139         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38140         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38141         struct sockaddr.sa_len.
38142         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38143
38144 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38145
38146         * build-aux/pmccabe2html: Add css and css_url parameters.
38147
38148 2008-10-12  Bruno Haible  <bruno@clisp.org>
38149
38150         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38151         calling aclx_get.
38152         Reported by Rainer Tammer <tammer@tammer.net>.
38153
38154 2008-10-12  Bruno Haible  <bruno@clisp.org>
38155
38156         Use msvcrt aware primitives for creation/termination of Win32 threads.
38157         * lib/glthread/thread.c: Include <process.h>.
38158         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38159         (wrapper_func): Update signature.
38160         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38161
38162 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38163             Bruno Haible  <bruno@clisp.org>
38164
38165         Provide a Win32 implementation of the 'cond' module.
38166         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38167         * lib/glthread/cond.c (glthread_cond_init_func,
38168         glthread_cond_wait_func, glthread_cond_timedwait_func,
38169         glthread_cond_signal_func, glthread_cond_broadcast_func,
38170         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38171         * modules/cond (Dependencies): Add gettimeofday.
38172
38173 2008-10-11  Bruno Haible  <bruno@clisp.org>
38174
38175         Make sleep work on older versions of mingw.
38176         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38177         only whether it exists.
38178         * doc/posix-functions/sleep.texi: Mention the problem with older
38179         versions of mingw.
38180
38181 2008-10-11  Bruno Haible  <bruno@clisp.org>
38182
38183         New module 'shutdown'.
38184         * modules/shutdown: New file.
38185         * lib/sys_socket.in.h (shutdown): New declaration.
38186         * lib/winsock.c (shutdown): New function.
38187         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38188         GNULIB_SHUTDOWN.
38189         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38190         * doc/posix-functions/shutdown.texi: Document the new module.
38191
38192 2008-10-11  Jim Meyering  <meyering@redhat.com>
38193
38194         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38195
38196 2008-10-11  Bruno Haible  <bruno@clisp.org>
38197
38198         New module 'fclose'.
38199         * modules/fclose: New file.
38200         * lib/stdio.in.h (fclose): New declaration.
38201         * lib/fclose.c: New file.
38202         * m4/fclose.m4: New file.
38203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38204         REPLACE_FCLOSE.
38205         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38206         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38207         REPLACE_FCLOSE.
38208         * modules/close (Depends-on): fclose.
38209         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38210
38211 2008-10-11  Bruno Haible  <bruno@clisp.org>
38212
38213         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38214         set errno and don't call _close.
38215
38216 2008-10-10  Bruno Haible  <bruno@clisp.org>
38217
38218         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38219         ACL, not afterwards. Fixes test failure on Cygwin.
38220
38221 2008-10-09  Ben Pfaff  <blp@gnu.org>
38222
38223         * build-aux/announce-gen: Fix gnulib version related part of usage
38224         message.  Die with a useful error message if no tarballs are
38225         found.
38226
38227 2008-10-10  Jim Meyering  <meyering@redhat.com>
38228
38229         bootstrap: use git's --depth=N option only if it's supported
38230         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38231         recognize the --depth option.  Reported by Pádraig Brady.
38232
38233 2008-10-09  Bruno Haible  <bruno@clisp.org>
38234
38235         New module 'ioctl'.
38236         * modules/ioctl: New file.
38237         * lib/sys_socket.in.h (ioctl): Remove declaration.
38238         * lib/winsock.c: Include <sys/ioctl.h>.
38239         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38240         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38241         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38242         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38243         * doc/posix-functions/ioctl.texi: Mention the new module.
38244
38245 2008-10-09  Bruno Haible  <bruno@clisp.org>
38246
38247         New module 'sys_ioctl'.
38248         * lib/sys_ioctl.in.h: New file.
38249         * m4/sys_ioctl_h.m4: New file.
38250         * modules/sys_ioctl: New file.
38251         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38252
38253 2008-10-09  Bruno Haible  <bruno@clisp.org>
38254
38255         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38256         * lib/winsock.c: Include <stdarg.h>.
38257         (rpl_ioctl): Change to second argument 'int' and then varargs.
38258
38259 2008-10-09  Bruno Haible  <bruno@clisp.org>
38260
38261         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38262         when the sys_socket module is present and the system has <winsock2.h>.
38263
38264 2008-10-09  Bruno Haible  <bruno@clisp.org>
38265
38266         * doc/posix-functions/close.texi: Mention module 'close' instead of
38267         module 'sys_socket'.
38268
38269 2008-10-09  Bruno Haible  <bruno@clisp.org>
38270
38271         * doc/glibc-headers/sys_ioctl.texi: New file.
38272         * doc/gnulib.texi: Include it.
38273
38274 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38275             Bruno Haible  <bruno@clisp.org>
38276
38277         Combine the two replacements of 'close'.
38278         * lib/sys_socket.in.h (close): Define to a reminder to include
38279         <unistd.h>.
38280         (_gl_close_fd_maybe_socket): New declaration.
38281         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38282         * lib/winsock.c (close): Remove undefinition.
38283         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38284         needed for the gnulib module 'close'.
38285         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38286         define to an error symbol or to a warning, if suitable.
38287         * lib/close.c: Include <sys/socket.h>.
38288         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38289         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38290         UNISTD_H_HAVE_WINSOCK2_H.
38291         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38293         UNISTD_H_HAVE_WINSOCK2_H.
38294         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38295         (configure.ac): Set a module indicator.
38296         (Makefile.am): Substitute GNULIB_CLOSE.
38297         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38298         * modules/poll-tests (Depends-on): Add close.
38299         * modules/select-tests (Depends-on): Likewise.
38300
38301 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38302             Bruno Haible  <bruno@clisp.org>
38303
38304         New module 'close'.
38305         * modules/close: New file.
38306         * lib/unistd.in.h (close): Move declaration out of the
38307         FCHDIR_REPLACEMENT scope.
38308         (_gl_unregister_fd): New declaration.
38309         * lib/close.c: New file.
38310         * lib/fchdir.c (rpl_close): Remove function.
38311         * m4/close.m4: New file.
38312         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38313         close.
38314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38315         REPLACE_CLOSE.
38316         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38317         REPLACE_CLOSE.
38318         * modules/fchdir (Depends-on): Add close.
38319
38320 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38321             Bruno Haible  <bruno@clisp.org>
38322
38323         * lib/fcntl.in.h (open): Simplify conditionals.
38324         (_gl_register_fd): New declaration.
38325         * lib/fchdir.c (rpl_open): Remove function.
38326         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38327         also.
38328         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38330         open.
38331
38332 2008-10-09  Jim Meyering  <meyering@redhat.com>
38333
38334         GNUmakefile: use the more name-space-friendly "_version"
38335         * top/GNUmakefile (_dummy): Update.
38336         (_version): Rename from "version".
38337
38338 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38339             Bruno Haible  <bruno@clisp.org>
38340
38341         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38342         rpl_close.
38343         (_gl_register_fd): New function, extracted from rpl_open.
38344         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38345         (rpl_open, rpl_opendir): Use _gl_register_fd.
38346
38347 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38348
38349         Fix organization of 'open' replacement.
38350         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38351         (gl_FUNC_OPEN): Use it.
38352         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38353
38354 2008-10-08  Bruno Haible  <bruno@clisp.org>
38355
38356         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38357
38358 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38359
38360         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38361         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38362         listen).
38363
38364 2008-10-08  Eric Blake  <ebb9@byu.net>
38365
38366         GNUmakefile: add 'make version' target
38367         * top/GNUmakefile (_curr-ver): Split version update rules...
38368         (version): ...into a target.
38369
38370 2008-10-07  Bruno Haible  <bruno@clisp.org>
38371
38372         Use a more portable replacement expression for -0.0L.
38373         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38374         instead of -0.0L. Fix m4 quotation.
38375
38376         * tests/test-signbit.c: Include <float.h>.
38377         (minus_zero): New variable.
38378         (test_signbitl): Use minus_zero instead of -zero.
38379         * modules/signbit-tests (Depends-on): Add float.
38380
38381         * tests/test-ceill.c: Include <float.h>.
38382         (zero): Remove variable.
38383         (minus_zero): New variable.
38384         (main): Use minus_zero instead of -zero.
38385         * modules/ceill-tests (Depends-on): Add float.
38386
38387         * tests/test-floorl.c: Include <float.h>.
38388         (zero): Remove variable.
38389         (minus_zero): New variable.
38390         (main): Use minus_zero instead of -zero.
38391         * modules/floorl-tests (Depends-on): Add float.
38392
38393         * tests/test-roundl.c: Include <float.h>.
38394         (zero): Remove variable.
38395         (minus_zero): New variable.
38396         (main): Use minus_zero instead of -zero.
38397         * modules/roundl-tests (Depends-on): Add float.
38398
38399         * tests/test-truncl.c: Include <float.h>.
38400         (zero): Remove variable.
38401         (minus_zero): New variable.
38402         (main): Use minus_zero instead of -zero.
38403         * modules/truncl-tests (Depends-on): Add float.
38404
38405         * tests/test-frexpl.c (zero): Remove variable.
38406         (minus_zero): New variable.
38407         (main): Use minus_zero instead of -zero.
38408         * modules/frexpl-tests (Depends-on): Add float.
38409
38410         * tests/test-isnan.c (zerol): Remove variable.
38411         (minus_zerol): New variable.
38412         (test_long_double): Use minus_zerol instead of -zerol.
38413         * modules/isnan-tests (Depends-on): Add float.
38414
38415         * tests/test-isnanl.h (zero): Remove variable.
38416         (minus_zero): New variable.
38417         (main): Use minus_zero instead of -zero.
38418         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38419         * modules/isnanl-tests (Depends-on): Add float.
38420
38421         * tests/test-ldexpl.c (zero): Remove variable.
38422         (minus_zero): New variable.
38423         (main): Use minus_zero instead of -zero.
38424         * modules/ldexpl-tests (Depends-on): Add float.
38425
38426         * tests/test-snprintf-posix.h (zerol): Remove variable.
38427         (minus_zerol): New variable.
38428         (test_function): Use minus_zerol instead of -zerol.
38429         * modules/snprintf-posix-tests (Depends-on): Add float.
38430         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38431
38432         * tests/test-sprintf-posix.h (zerol): Remove variable.
38433         (minus_zerol): New variable.
38434         (test_function): Use minus_zerol instead of -zerol.
38435         * modules/sprintf-posix-tests (Depends-on): Add float.
38436         * modules/vsprintf-posix-tests (Depends-on): Add float.
38437
38438         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38439         (minus_zerol): New variable.
38440         (test_function): Use minus_zerol instead of -zerol.
38441         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38442
38443         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38444         (minus_zerol): New variable.
38445         (test_function): Use minus_zerol instead of -zerol.
38446         * modules/vasprintf-posix-tests (Depends-on): Add float.
38447
38448 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38449
38450         * MODULES.html.sh (Support for building documentation): Mention
38451         pmccabe2html.  Sort entries.
38452
38453         Add pmccabe2html module, from gnupdf.
38454         * build-aux/pmccabe.css: New file.
38455         * build-aux/pmccabe2html: New file.
38456         * m4/pmccabe2html.m4: New file.
38457         * modules/pmccabe2html: New file.
38458
38459 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38460
38461         flock: new module
38462         * MODULES.html.sh: Add to list of modules.
38463         * lib/flock.c: flock implementation for Windows and Unix systems
38464         which have fcntl.
38465         * doc/glibc-functions/flock.texi: Update documentation.
38466         * lib/sys_file.in.h: <sys/file.h> header file.
38467         * m4/flock.m4: M4 macros.
38468         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38469         * modules/flock: flock module.
38470         * modules/flock-tests: flock tests module.
38471         * modules/sys_file: sys/file.h module.
38472         * tests/test-flock.c: test suite for flock.
38473
38474 2008-10-06  Jim Meyering  <meyering@redhat.com>
38475
38476         bootstrap: check for LT_INIT more portably still ;-)
38477         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38478         Spotted by Bruno Haible.
38479
38480 2008-10-06  Eric Blake  <ebb9@byu.net>
38481
38482         test-signbit: avoid tripping Irix cc bug on -0.0L
38483         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38484         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38485         entire testsuite consistent and avoids an Irix 6.2 bug.
38486
38487 2008-10-05  Bruno Haible  <bruno@clisp.org>
38488             Jim Meyering  <jim@meyering.net>
38489
38490         Add an option for ignoring EPIPE during close_stdout.
38491         * lib/closeout.h: Include <stdbool.h>.
38492         (close_stdout_set_ignore_EPIPE): New declaration.
38493         * lib/closeout.c: Include <stdbool.h>.
38494         (ignore_EPIPE): New variable.
38495         (close_stdout_set_ignore_EPIPE): New function.
38496         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38497         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38498         failure.
38499         * modules/closeout (Depends-on): Add stdbool.
38500
38501 2008-10-05  Bruno Haible  <bruno@clisp.org>
38502
38503         * modules/accept: New file.
38504         * modules/bind: New file.
38505         * modules/connect: New file.
38506         * modules/getpeername: New file.
38507         * modules/getsockname: New file.
38508         * modules/getsockopt: New file.
38509         * modules/listen: New file.
38510         * modules/recv: New file.
38511         * modules/recvfrom: New file.
38512         * modules/send: New file.
38513         * modules/sendto: New file.
38514         * modules/setsockopt: New file.
38515         * modules/socket: New file.
38516         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38517         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38518         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38519         the particular module is requested. Add a link warning when the
38520         particular module is not requested.
38521         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38522         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38523         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38524         the particular module is requested.
38525         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38526         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38527         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38528         * modules/sys_socket (Depends-on): Add link-warning.
38529         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38530         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38531         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38532         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38533         GL_LINK_WARNING.
38534         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38535         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38536         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38537         * doc/posix-functions/getpeername.texi: Mention the new module
38538         'getpeername'.
38539         * doc/posix-functions/getsockname.texi: Mention the new module
38540         'getsockname'.
38541         * doc/posix-functions/getsockopt.texi: Mention the new module
38542         'getsockopt'.
38543         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38544         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38545         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38546         * doc/posix-functions/send.texi: Mention the new module 'send'.
38547         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38548         * doc/posix-functions/setsockopt.texi: Mention the new module
38549         'setsockopt'.
38550         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38551         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38552         listen, connect, accept.
38553         * modules/select-tests (Depends-on): Likewise.
38554
38555 2008-10-05  Bruno Haible  <bruno@clisp.org>
38556
38557         * lib/winsock.c (strerror): Remove unused #undef.
38558         (rpl_close): Remove unused local variable.
38559
38560         * modules/sys_socket (Depends-on); Add errno.
38561
38562 2008-10-05  Bruno Haible  <bruno@clisp.org>
38563
38564         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38565         (select): Add a link warning when the 'select' module is not used.
38566         * modules/sys_select (Depends-on): Add link-warning.
38567         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38568         Suggested by Paolo Bonzini.
38569
38570 2008-10-05  Jim Meyering  <meyering@redhat.com>
38571
38572         bootstrap: check for LT_INIT more portably
38573         * build-aux/bootstrap: Avoid using grep -E, since it's not
38574         portable enough.  Suggestion from Bruno Haible.
38575
38576 2008-10-05  Bruno Haible  <bruno@clisp.org>
38577
38578         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38579         as being fixed by gnulib.
38580
38581 2008-10-05  Bruno Haible  <bruno@clisp.org>
38582
38583         * modules/select-tests: New file, mostly copied from
38584         modules/sys_select-tests.
38585         * tests/test-select.c: New file, mostly copied from
38586         tests/test-sys_select.c.
38587         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38588         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38589         (Makefile.am): Remove test_sys_select_LDADD.
38590
38591         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38592         to an undefined symbol, for an error message.
38593         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38594         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38595         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38596         winsock-select.c here.
38597         * modules/sys_select (Files): Remove lib/winsock-select.c.
38598         (Depends-on): Remove alloca.
38599         (Makefile.am): Substitute GNULIB_SELECT.
38600         * modules/select: New file.
38601         * doc/posix-functions/select.texi: Update.
38602
38603 2008-10-05  Bruno Haible  <bruno@clisp.org>
38604
38605         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38606         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38607         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38608         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38609         getdtablesize.
38610         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38611         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38612
38613 2008-10-05  Bruno Haible  <bruno@clisp.org>
38614
38615         * modules/getdtablesize-tests: New file.
38616         * tests/test-getdtablesize.c: New file.
38617
38618         New module 'getdtablesize'.
38619         * lib/unistd.in.h (getdtablesize): New declaration.
38620         * lib/getdtablesize.c: New file.
38621         * m4/getdtablesize.m4: New file.
38622         * modules/getdtablesize: New file.
38623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38624         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38625         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38626         HAVE_GETDTABLESIZE.
38627         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38628
38629 2008-10-05  Bruno Haible  <bruno@clisp.org>
38630
38631         * modules/sched (Makefile.am): Fix typo.
38632         Reported by Simon Josefsson.
38633
38634 2008-10-05  Jim Meyering  <meyering@redhat.com>
38635
38636         bootstrap: check for LT_INIT, too
38637         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38638         are deprecated.  Suggestion from Ralf Wildenhues.
38639
38640 2008-10-05  Bruno Haible  <bruno@clisp.org>
38641
38642         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38643         overriding them by ours.
38644         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38645
38646 2008-10-05  Jim Meyering  <meyering@redhat.com>
38647
38648         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38649         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38650         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38651
38652 2008-10-04  Bruno Haible  <bruno@clisp.org>
38653
38654         * modules/dup2 (License): Change to LGPLv2+.
38655         * modules/sleep (License): Likewise.
38656         * modules/perror (License): Likewise.
38657         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38658         Blake.
38659         * modules/signal (License): Likewise.
38660         * modules/sigprocmask (License): Likewise.
38661         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38662         Meyering.
38663
38664 2008-10-04  Bruno Haible  <bruno@clisp.org>
38665
38666         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38667         Reported by Rainer Tammer <tammer@tammer.net>.
38668
38669 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38670             Bruno Haible  <bruno@clisp.org>
38671
38672         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38673         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38674         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38675
38676 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38677
38678         filevercmp: new module
38679         * lib/filevercmp.h: New function filevercmp comparing version strings.
38680         * lib/filevercmp.c: Implementation of filevercmp function.
38681         * modules/filevercmp: Module metadata.
38682         * tests/test-filevercmp.c: Unit test for new module.
38683         * modules/filevercmp-tests: Unit test metadata.
38684         * MODULES.html.sh: Add filevercmp module.
38685
38686 2008-10-03  Bruno Haible  <bruno@clisp.org>
38687
38688         * lib/c-ctype.h: Add comment.
38689         Reported by Jim Meyering.
38690
38691 2008-10-02  Bruno Haible  <bruno@clisp.org>
38692
38693         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38694
38695 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38696
38697         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38698         name of bootstrap.conf accordingly.
38699
38700 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38701
38702         * build-aux/bootstrap: Install git-merge-changelog configuration
38703         items into .gitconfig if needed.
38704
38705 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38706
38707         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38708         git repository, and initialize/update it accordingly.
38709
38710 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38711
38712         * modules/fsync-tests: New file.
38713         * tests/test-fsync.c: New file.
38714
38715         New module 'fsync'.
38716         * lib/fsync.c: New file.
38717         * m4/fsync.m4: New file.
38718         * modules/fsync: New file.
38719         * lib/unistd.in.h (fsync): New declaration.
38720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38721         GNULIB_FSYNC and HAVE_FSYNC.
38722         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38723         * MODULES.html.sh (posix_functions): Add fsync.
38724         * doc/posix-functions/fsync.texi: Mention the new module.
38725
38726 2008-10-02  Jim Meyering  <meyering@redhat.com>
38727
38728         fts.c: sync with similar code from coreutils' remove.c
38729         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38730         Guard also with "#if defined __linux__", since for now at least,
38731         this code is Linux-kernel-specific.
38732
38733 2008-10-02  Jim Meyering  <meyering@redhat.com>
38734
38735         fts: bug fixes
38736         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38737         Include <sys/vfs.h>, not <sys/statfs.h>.
38738
38739         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38740         Include <sys/vfs.h>, not <sys/statfs.h>.
38741
38742 2008-10-01  Bruno Haible  <bruno@clisp.org>
38743
38744         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38745         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38746         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38747         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38748         * doc/posix-functions/posix_spawnp.texi: Likewise.
38749         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38750         whether posix_spawn actually works.
38751         * m4/pipe.m4 (gl_PIPE): Likewise.
38752         * modules/execute (Files): Add m4/posix_spawn.m4.
38753         * modules/pipe (Files): Add m4/posix_spawn.m4.
38754         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38755
38756 2008-10-01  Jim Meyering  <meyering@redhat.com>
38757
38758         remove trailing spaces
38759         * NEWS: Likewise.
38760         * lib/poll.c (poll): Likewise.
38761         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
38762         * lib/winsock.c (rpl_close): Likewise.
38763         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
38764         * modules/yield: Likewise.
38765         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
38766         * tests/test-sys_select.c (connect_to_socket): Likewise.
38767
38768         fts.c: adjust a new interface to be more generally useful
38769         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
38770         (fts_build): Adjust caller.
38771
38772 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38773
38774         * modules/cond-tests: New file.
38775         * tests/test-cond.c: New file.
38776
38777 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38778             Bruno Haible  <bruno@clisp.org>
38779
38780         * modules/cond (Dependencies): Add errno, time.
38781         * lib/glthread/cond.h: Include <time.h>.
38782         (gl_cond_define, gl_cond_define_initialized): Use the same definition
38783         across platforms.
38784
38785 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38786             Bruno Haible  <bruno@clisp.org>
38787
38788         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
38789
38790 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38791             Bruno Haible  <bruno@clisp.org>
38792
38793         * modules/tls-tests (Depends-on): Add thread, yield.
38794         (configure.ac): Remove all checks.
38795         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
38796         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38797         gl_thread_self): Remove definitions. Include glthread/thread.h and
38798         glthread/yield.h instead.
38799         (test_tls): Pass an additional NULL argument to gl_thread_join.
38800
38801 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38802             Bruno Haible  <bruno@clisp.org>
38803
38804         * modules/lock-tests (Depends-on): Add thread, yield.
38805         (configure.ac): Remove all checks.
38806         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
38807         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38808         gl_thread_self): Remove definitions. Include glthread/thread.h and
38809         glthread/yield.h instead.
38810         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
38811         additional NULL argument to gl_thread_join.
38812
38813 2008-09-30  Bruno Haible  <bruno@clisp.org>
38814
38815         Fix the Win32 implementation of the 'thread' module.
38816         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
38817         pointer type.
38818         (gl_thread_self): Invoke gl_thread_self_func.
38819         (gl_thread_self_func): New declaration.
38820         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
38821         (do_init_self_key, init_self_key): New functions.
38822         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
38823         Remove some fields.
38824         (running_threads, running_lock): Remove variables.
38825         (get_current_thread_handle): New function.
38826         (gl_thread_self_func, wrapper_func, glthread_create_func,
38827         glthread_join_func, gl_thread_exit_func): Largely rewritten and
38828         simplified.
38829
38830 2008-09-30  Bruno Haible  <bruno@clisp.org>
38831
38832         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
38833         files.
38834
38835 2008-09-30  Jim Meyering  <meyering@redhat.com>
38836
38837         fts.m4: correct the test for statfs.f_type
38838         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
38839         when checking for statfs.f_type.
38840
38841 2008-09-15  Simon Josefsson  <simon@josefsson.org>
38842
38843         tests: avoid some compiler warnings
38844         * tests/test-memchr.c (main): Pass NULL indirectly.
38845         * tests/test-getdate.c (main): Remove unused variable 'ret'.
38846
38847 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
38848
38849         getdate.y: disallow countable dayshifts like "4 yesterday ago"
38850         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
38851         exactly specified dayshifts.
38852         (dayshift): New rule.
38853         (rel): Add dayshift.
38854         (relative_time_table) [tomorrow, yesterday, today, now]:
38855         Use tDAY_SHIFT in place of tDAY_UNIT.
38856         * tests/test-getdate.c: Add tests for now-disallowed countable
38857         dayshifts, e.g., "4 yesterday ago".
38858
38859 2008-09-29  Bruno Haible  <bruno@clisp.org>
38860
38861         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
38862         * tests/test-posix_spawn1.in.sh: Renamed from
38863         tests/test-posix_spawn.in.sh.
38864         * tests/test-posix_spawn2.c: New file.
38865         * tests/test-posix_spawn2.in.sh: New file.
38866         * modules/posix_spawnp-tests (Files): Update.
38867         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
38868
38869 2008-09-29  Bruno Haible  <bruno@clisp.org>
38870
38871         Propagate effects of putenv/setenv/unsetenv to child processes.
38872         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
38873         * lib/pipe.c (create_pipe): Likewise.
38874
38875 2008-09-29  Bruno Haible  <bruno@clisp.org>
38876
38877         Enable use of shell scripts as executables in mingw.
38878         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
38879         run the program as a shell script.
38880         * lib/pipe.c (create_pipe): Likewise.
38881         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
38882         resulting array.
38883
38884 2008-09-29  Eric Blake  <ebb9@byu.net>
38885
38886         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
38887
38888 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
38889
38890         * doc/posix-functions/accept.texi: Update mingw problems.
38891         * doc/posix-functions/bind.texi: Update mingw problems.
38892         * doc/posix-functions/close.texi: Update mingw problems.
38893         * doc/posix-functions/connect.texi: Update mingw problems.
38894         * doc/posix-functions/getpeername.texi: Update mingw problems.
38895         * doc/posix-functions/getsockname.texi: Update mingw problems.
38896         * doc/posix-functions/getsockopt.texi: Update mingw problems.
38897         * doc/posix-functions/ioctl.texi: Update mingw problems.
38898         * doc/posix-functions/listen.texi: Update mingw problems.
38899         * doc/posix-functions/recv.texi: Update mingw problems.
38900         * doc/posix-functions/recvfrom.texi: Update mingw problems.
38901         * doc/posix-functions/select.texi: Update mingw problems.
38902         * doc/posix-functions/send.texi: Update mingw problems.
38903         * doc/posix-functions/sendto.texi: Update mingw problems.
38904         * doc/posix-functions/setsockopt.texi: Update mingw problems.
38905         * doc/posix-functions/socket.texi: Update mingw problems.
38906
38907 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
38908             Bruno Haible  <bruno@clisp.org>
38909
38910         * lib/sys_select.in.h: Include sys/time.h.
38911         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
38912         * modules/sys_select: Depend on sys_time.
38913         * tests/test-sys_select.c: Test that sys/select.h defines struct
38914         timeval fully.
38915
38916 2008-09-29  Bruno Haible  <bruno@clisp.org>
38917
38918         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
38919         * lib/sys_select.in.h: Likewise.
38920
38921 2008-09-29  Bruno Haible  <bruno@clisp.org>
38922
38923         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
38924
38925 2008-09-29  Bruno Haible  <bruno@clisp.org>
38926
38927         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
38928         Set LIBSOCKET instead of augmenting LIBS.
38929         * modules/sockets (Link): New section.
38930         * modules/sockets-tests (test_sockets_LDADD): New variable.
38931         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
38932         * modules/poll-tests (test_poll_LDADD): New variable.
38933         * NEWS: Document the change.
38934
38935 2008-09-29  Bruno Haible  <bruno@clisp.org>
38936
38937         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
38938         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
38939         ARPA_INET_H directly.
38940         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38941
38942 2008-09-28  Bruno Haible  <bruno@clisp.org>
38943
38944         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
38945         from gl_HEADER_SYS_SOCKET.
38946         (gl_HEADER_SYS_SOCKET): Invoke it.
38947         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38948
38949 2008-09-28  Bruno Haible  <bruno@clisp.org>
38950
38951         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
38952         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
38953         Needed on OSF/1 4.0.
38954
38955 2008-09-28  Bruno Haible  <bruno@clisp.org>
38956
38957         Override open more carefully.
38958         * lib/open.c (orig_open): New function.
38959         (rpl_open): Use orig_open instead of open.
38960         * lib/fcntl.in.h: Add special invocation convention.
38961         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38962         (gl_FUNC_OPEN): Invoke it.
38963
38964         Override freopen more carefully.
38965         * lib/freopen.c (orig_freopen): New function.
38966         (rpl_freopen): Use orig_freopen instead of freopen.
38967         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38968         (gl_FUNC_FREOPEN): Invoke it.
38969
38970         Override fopen more carefully.
38971         * lib/fopen.c (orig_fopen): New function.
38972         (rpl_fopen): Use orig_fopen instead of fopen.
38973         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38974         (gl_FUNC_FOPEN): Invoke it.
38975         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38976
38977 2008-09-28  Bruno Haible  <bruno@clisp.org>
38978
38979         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38980         SIGPIPE.
38981
38982 2008-09-28  Bruno Haible  <bruno@clisp.org>
38983
38984         * tests/test-sigaction.c (handler, main): Disable the check whether
38985         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38986         glibc systems with LinuxThreads.
38987
38988 2008-09-28  Bruno Haible  <bruno@clisp.org>
38989
38990         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38991
38992         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38993         with AIX xlc.
38994         * lib/fcntl.in.h (open): Likewise.
38995         Reported by Rainer Tammer <tammer@tammer.net>.
38996
38997 2008-09-28  Bruno Haible  <bruno@clisp.org>
38998
38999         * modules/posix_spawnp-tests: New file.
39000         * tests/test-posix_spawn.c: New file.
39001         * tests/test-posix_spawn.in.sh: New file.
39002
39003         New module 'posix_spawnp'.
39004         * modules/posix_spawnp: New file.
39005         * lib/spawnp.c: New file, from GNU libc with modifications.
39006         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
39007
39008         New module 'posix_spawn'.
39009         * modules/posix_spawn: New file.
39010         * lib/spawn.c: New file, from GNU libc with modifications.
39011         * doc/posix-functions/posix_spawn.texi: Mention the new module.
39012
39013         New module 'posix_spawnattr_destroy'.
39014         * modules/posix_spawnattr_destroy: New file.
39015         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
39016         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
39017         module.
39018
39019         New module 'posix_spawnattr_setsigmask'.
39020         * modules/posix_spawnattr_setsigmask: New file.
39021         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
39022         modifications.
39023         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
39024         new module.
39025
39026         New module 'posix_spawnattr_getsigmask'.
39027         * modules/posix_spawnattr_getsigmask: New file.
39028         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
39029         modifications.
39030         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
39031         new module.
39032
39033         New module 'posix_spawnattr_setsigdefault'.
39034         * modules/posix_spawnattr_setsigdefault: New file.
39035         * lib/spawnattr_setdefault.c: New file, from GNU libc with
39036         modifications.
39037         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
39038         new module.
39039
39040         New module 'posix_spawnattr_getsigdefault'.
39041         * modules/posix_spawnattr_getsigdefault: New file.
39042         * lib/spawnattr_getdefault.c: New file, from GNU libc with
39043         modifications.
39044         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
39045         new module.
39046
39047         New module 'posix_spawnattr_setschedpolicy'.
39048         * modules/posix_spawnattr_setschedpolicy: New file.
39049         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39050         modifications.
39051         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39052         new module.
39053
39054         New module 'posix_spawnattr_getschedpolicy'.
39055         * modules/posix_spawnattr_getschedpolicy: New file.
39056         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39057         modifications.
39058         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
39059         new module.
39060
39061         New module 'posix_spawnattr_setschedparam'.
39062         * modules/posix_spawnattr_setschedparam: New file.
39063         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
39064         modifications.
39065         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
39066         new module.
39067
39068         New module 'posix_spawnattr_getschedparam'.
39069         * modules/posix_spawnattr_getschedparam: New file.
39070         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
39071         modifications.
39072         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
39073         new module.
39074
39075         New module 'posix_spawnattr_setpgroup'.
39076         * modules/posix_spawnattr_setpgroup: New file.
39077         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
39078         modifications.
39079         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
39080         module.
39081
39082         New module 'posix_spawnattr_getpgroup'.
39083         * modules/posix_spawnattr_getpgroup: New file.
39084         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
39085         modifications.
39086         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39087         module.
39088
39089         New module 'posix_spawnattr_setflags'.
39090         * modules/posix_spawnattr_setflags: New file.
39091         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39092         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39093         module.
39094
39095         New module 'posix_spawnattr_getflags'.
39096         * modules/posix_spawnattr_getflags: New file.
39097         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39098         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39099         module.
39100
39101         New module 'posix_spawnattr_init'.
39102         * modules/posix_spawnattr_init: New file.
39103         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39104         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39105         module.
39106
39107         New module 'posix_spawn_file_actions_destroy'.
39108         * modules/posix_spawn_file_actions_destroy: New file.
39109         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39110         modifications.
39111         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39112         the new module.
39113
39114         New module 'posix_spawn_file_actions_addopen'.
39115         * modules/posix_spawn_file_actions_addopen: New file.
39116         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39117         modifications.
39118         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39119         the new module.
39120
39121         New module 'posix_spawn_file_actions_adddup2'.
39122         * modules/posix_spawn_file_actions_adddup2: New file.
39123         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39124         modifications.
39125         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39126         the new module.
39127
39128         New module 'posix_spawn_file_actions_addclose'.
39129         * modules/posix_spawn_file_actions_addclose: New file.
39130         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39131         modifications.
39132         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39133         the new module.
39134
39135         New module 'posix_spawn_file_actions_init'.
39136         * modules/posix_spawn_file_actions_init: New file.
39137         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39138         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39139         new module.
39140
39141         New module 'posix_spawn-internal'.
39142         * modules/posix_spawn-internal: New file.
39143         * lib/spawn_int.h: New file, from GNU libc with modifications.
39144         * lib/spawni.c: New file, from GNU libc with modifications.
39145         * m4/posix_spawn.m4: New file.
39146
39147         New module 'spawn'.
39148         * modules/spawn: New file.
39149         * lib/spawn.in.h: New file, from GNU libc with modifications.
39150         * m4/spawn_h.m4: New file.
39151         * doc/posix-headers/spawn.texi: Mention the new module.
39152
39153 2008-09-28  Bruno Haible  <bruno@clisp.org>
39154
39155         * modules/sched-tests: New file.
39156         * tests/test-sched.c: New file.
39157
39158         New module 'sched'.
39159         * modules/sched: New file.
39160         * lib/sched.in.h: New file.
39161         * m4/sched_h.m4: New file.
39162         * doc/posix-headers/sched.texi: Mention the new module.
39163
39164 2008-09-27  Eric Blake  <ebb9@byu.net>
39165
39166         Fix previous patch, and tweak references to $0.
39167         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39168         (func_version, func_gnulib_dir): Don't call this program
39169         gnulib-tool.
39170         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39171         with using $0 in function.
39172         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39173         (func_fatal_error): Reuse the name the user invoked us with.
39174
39175 2008-09-27  Bruno Haible  <bruno@clisp.org>
39176
39177         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39178         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39179         (gl_ICONV_H): Not here.
39180         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39181         instead of assigning ICONV_H directly.
39182
39183         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39184         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39185         WCHAR_H directly.
39186
39187 2008-09-27  Bruno Haible  <bruno@clisp.org>
39188
39189         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39190         * modules/arpa_inet (Depends-on): Add link-warning.
39191         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39192         * modules/unistd (Makefile.am): Likewise.
39193
39194 2008-09-26  Bruno Haible  <bruno@clisp.org>
39195
39196         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39197         variables.
39198         (func_version): Essentially copied from gnulib-tool.
39199         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39200         func_readlink): Copied from gnulib-tool.
39201
39202 2008-09-26  Bruno Haible  <bruno@clisp.org>
39203
39204         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39205         invoking git-version-gen.
39206
39207 2008-09-26  Bruno Haible  <bruno@clisp.org>
39208
39209         * posix-modules: Update to directory names changed on 2008-01-19.
39210         Remove commas in output before splitting into words. No more need to
39211         avoid 'ftruncate' since 2007-02-19.
39212
39213 2008-09-26  Bruno Haible  <bruno@clisp.org>
39214
39215         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39216
39217 2008-09-26  Bruno Haible  <bruno@clisp.org>
39218
39219         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39220         * modules/fwriteerror (Depends-on): Add errno.
39221
39222 2008-09-26  Bruno Haible  <bruno@clisp.org>
39223
39224         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39225         * tests/test-vc-list-files-cvs.sh: Likewise.
39226
39227 2008-09-26  Bruno Haible  <bruno@clisp.org>
39228
39229         * doc/posix-headers/sys_resource.texi: Reorder items.
39230
39231 2008-09-26  Jim Meyering  <meyering@redhat.com>
39232
39233         fts: tweak inode comparison function
39234         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39235         inode numbers, as documented.
39236
39237         fts: sort dirent entries on inode number before traversing
39238         This avoids a quadratic, seek-related performance penalty when
39239         operating on a directory containing many entries (measurable at 10k;
39240         3.5 hours at 2 million entries with a cold cache) on certain types
39241         of file systems, including ext3 and ext4, but not tmpfs.
39242         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39243         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39244         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39245         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39246         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39247         (fts_build): Set the stat.st_ino member from D_INO.
39248         If it is likely to be useful, sort dirent entries on inode number.
39249
39250         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39251         and the struct statfs.f_type member.
39252         * modules/fts (Depends-on): Add d-ino.
39253
39254 2008-09-26  Bruno Haible  <bruno@clisp.org>
39255
39256         * modules/sigpipe-die (Depends-on): Add sigpipe.
39257
39258         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39259         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39260         and GNULIB_STDIO_H_SIGPIPE are set.
39261         * lib/stdio-write.c: New file.
39262         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39263         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39264         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39265         REPLACE_STDIO_WRITE_FUNCS.
39266         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39267         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39268         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39269         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39270         * modules/stdio (Files): Add lib/stdio-write.c.
39271         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39272         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39273         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39274         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39275         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39276         REPLACE_FPRINTF_POSIX.
39277         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39278         REPLACE_PRINTF_POSIX.
39279         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39280         REPLACE_VFPRINTF_POSIX.
39281         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39282         REPLACE_VPRINTF_POSIX.
39283         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39284         SIGPIPE issue.
39285         * doc/posix-functions/fputc.texi: Likewise.
39286         * doc/posix-functions/fputs.texi: Likewise.
39287         * doc/posix-functions/fwrite.texi: Likewise.
39288         * doc/posix-functions/printf.texi: Likewise.
39289         * doc/posix-functions/putc.texi: Likewise.
39290         * doc/posix-functions/putchar.texi: Likewise.
39291         * doc/posix-functions/puts.texi: Likewise.
39292         * doc/posix-functions/vfprintf.texi: Likewise.
39293         * doc/posix-functions/vprintf.texi: Likewise.
39294
39295         * modules/safe-write (Depends-on): Add write.
39296
39297         * modules/sigpipe-tests: New file.
39298         * tests/test-sigpipe.c: New file.
39299         * tests/test-sigpipe.sh: New file.
39300
39301         * modules/write: New file.
39302         * lib/unistd.in.h: Include <sys/types.h>.
39303         (write): New declaration.
39304         * lib/write.c: New file.
39305         * m4/write.m4: New file.
39306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39307         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39308         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39309         GNULIB_WRITE, REPLACE_WRITE.
39310         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39311         and the SIGPIPE issue.
39312
39313         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39314         (raise): New declaration.
39315         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39316         (ext_signal): New function.
39317         (rpl_raise): New function.
39318         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39319         GNULIB_SIGNAL_H_SIGPIPE.
39320         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39321         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39322
39323         * modules/sigpipe: New file.
39324         * m4/sigpipe.m4: New file.
39325
39326 2008-09-25  Derek Price  <derek@ximbiot.com>
39327             Bruno Haible  <bruno@clisp.org>
39328
39329         * gnulib-tool (func_import): Report all license incompatibilities, not
39330         just the first one.
39331
39332 2008-09-25  Bruno Haible  <bruno@clisp.org>
39333
39334         * gnulib-tool (func_import): When computing the edits, consider not
39335         only the Makefile.ams that exist but also those that will be generated.
39336
39337 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39338
39339         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39340         fixes gnulib-tool --test warning about duplicate dependency.
39341
39342 2008-09-25  Bruno Haible  <bruno@clisp.org>
39343
39344         * gnulib-tool: Don't ask the user to perform edits in the generated
39345         Makefile.ams.
39346         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39347         apply to the Makefile.am being generated.
39348         (func_emit_tests_Makefile_am): Execute edits that apply to the
39349         Makefile.am being generated.
39350         (func_import): Setup list of Makefile.am edits before emitting the
39351         Makefile.ams, not at the end.
39352         (func_create_testdir): Update.
39353         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39354
39355 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39356
39357         * gnulib-tool (func_import): Store the --tests-base option in the
39358         comment in gnulib-cache.m4.
39359
39360 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39361
39362         * NEWS: Document increased portability that sys_select now provides.
39363
39364         * lib/sys_select.in.h: Install select wrapper.
39365         * lib/sys_socket.in.h: Use more descriptive name when there is no
39366         select wrapper.
39367         * lib/winsock-select.c: New.
39368         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39369         Require gl_HEADER_SYS_SOCKET.
39370         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39371         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39372         * tests/test-sys_select.c: Add functional tests.
39373
39374 2008-09-24  Eric Blake  <ebb9@byu.net>
39375
39376         open, fopen: close fd leak in last patch
39377         * lib/open.c (rpl_open): Close fd before returning error.
39378         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39379         * doc/posix-functions/open.texi (open): Document that Irix also
39380         has the bug.
39381         * doc/posix-functions/fopen.texi (fopen): Likewise.
39382         Reported by Paolo Bonzini.
39383
39384 2008-09-24  Bruno Haible  <bruno@clisp.org>
39385
39386         Ensure that a filename ending in a slash cannot be used to access a
39387         non-directory.
39388         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39389         to check whether it's really a directory.
39390         * lib/fopen.c: Include fcntl.h, unistd.h.
39391         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39392         and fdopen().
39393         * modules/fopen (Depends-on): Add unistd.
39394         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39395         * tests/test-fopen.c (main): Likewise.
39396         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39397         * doc/posix-functions/fopen.texi: Likewise.
39398         Reported by Eric Blake.
39399
39400 2008-09-23  Eric Blake  <ebb9@byu.net>
39401
39402         c-stack: avoid compiler optimizations when provoking overflow
39403         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39404         recursion harder to optimize, to ensure a stack overflow occurs.
39405         * tests/test-c-stack.c (recurse): Likewise.
39406         Borrowed from libsigsegv.
39407
39408         c-stack: work around Irix sigaltstack bug
39409         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39410         whether sigaltstack uses wrong end of stack_t (copied in part from
39411         libsigsegv).
39412         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39413         Irix bug, without requiring an over-allocation.
39414         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39415         bug.
39416
39417         fopen: document mingw bug on directories
39418         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39419         not allowing a stream visiting a directory, even though reading
39420         from such a stream is not portable.
39421
39422 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39423
39424         * lib/poll.c: Rewrite.
39425         * modules/poll: Depend on alloca.
39426
39427 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39428
39429         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39430         instead define prototypes for a full set of wrappers.  Ensure
39431         that Cygwin does not use the compatibility code, which is only
39432         for MinGW.
39433         * lib/winsock.c: New.
39434         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39435         * modules/sys_socket: Add lib/winsock.c.
39436
39437         * modules/poll-tests: Add errno and perror.
39438         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39439
39440 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39441
39442         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39443
39444 2008-09-23  Bruno Haible  <bruno@clisp.org>
39445
39446         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39447         * doc/glibc-functions/*: Likewise.
39448
39449 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39450
39451         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39452         success.
39453
39454 2008-09-22  Eric Blake  <ebb9@byu.net>
39455             Bruno Haible  <bruno@clisp.org>
39456
39457         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39458         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39459         supply %A but mishandle pseudo-NaN.
39460         Reported by Simon Josefsson.
39461
39462 2008-09-21  Bruno Haible  <bruno@clisp.org>
39463
39464         * tests/test-lock.c (main): Tweak skip message.
39465         * tests/test-tls.c (main): Likewise.
39466
39467 2008-09-21  Bruno Haible  <bruno@clisp.org>
39468
39469         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39470         whether 'struct sigaction' has sa_sigaction here...
39471         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39472         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39473
39474 2008-09-21  Bruno Haible  <bruno@clisp.org>
39475
39476         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39477         section.
39478         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39479         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39480         the new section.
39481         (Support for obsolete systems lacking POSIX:2001): New section.
39482         (String handling <string.h>): Move strdup to the new section.
39483         Suggested by Simon Josefsson and Paolo Bonzini.
39484
39485 2008-09-21  Bruno Haible  <bruno@clisp.org>
39486
39487         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39488         exponents in %e and %g results on 'long double'. Needed for mingw's
39489         improved *printf functions.
39490         * tests/test-vasprintf-posix.c (test_function): Likewise.
39491         * tests/test-snprintf-posix.h (test_function): Likewise.
39492         * tests/test-sprintf-posix.h (test_function): Likewise.
39493         Reported by Eric Blake.
39494
39495 2008-09-21  Bruno Haible  <bruno@clisp.org>
39496
39497         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39498         * tests/test-sprintf-posix.h (test_function): Likewise.
39499
39500 2008-09-21  Bruno Haible  <bruno@clisp.org>
39501
39502         * modules/getpass (Depends-on): Add strdup-posix.
39503
39504         New module 'strdup-posix'.
39505         * modules/strdup-posix: New file.
39506         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39507         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39509         REPLACE_STRDUP.
39510         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39511         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39512         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39513         strdup-posix.
39514
39515         * modules/strdup (Depends-on): Remove malloc-posix.
39516
39517 2008-09-20  Bruno Haible  <bruno@clisp.org>
39518
39519         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39520         Wildenhues.
39521
39522 2008-09-20  Bruno Haible  <bruno@clisp.org>
39523
39524         Ensure that wint_t gets defined on IRIX 5.3.
39525         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39526         * lib/wctype.in.h (wint_t): Likewise.
39527         (__wctype_wint_t): Remove type.
39528         (isw*): Use wint_t instead of __wctype_wint_t.
39529         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39530         * modules/wchar (Files): Add m4/wint_t.m4.
39531         (Makefile.am): Substitute HAVE_WINT_T.
39532         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39533         * tests/test-wctype.c: Check that wint_t is defined.
39534         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39535         * doc/posix-headers/wctype.texi: Likewise.
39536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39537
39538 2008-09-18  Bruno Haible  <bruno@clisp.org>
39539
39540         * gnulib-tool (func_exit): Update comment.
39541
39542 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39543
39544         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39545         assumes strdup exists and does not depend on strdup to return
39546         ENOMEM on out of memory conditions.
39547
39548 2008-09-18  Bruno Haible  <bruno@clisp.org>
39549
39550         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39551         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39552         digits for the exponent.
39553
39554 2008-09-18  Jim Meyering  <meyering@redhat.com>
39555             Bruno Haible  <bruno@clisp.org>
39556
39557         * lib/vasnprintf.c (decimal_point_char): Define also if
39558         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39559
39560 2008-09-16  Bruno Haible  <bruno@clisp.org>
39561         and Eric Blake  <ebb9@byu.net>
39562
39563         vasnprintf: support Irix 5.3
39564         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39565         that mishandle long double infinity.
39566         Reported by Tom G. Christensen.
39567
39568 2008-09-16  Bruno Haible  <bruno@clisp.org>
39569
39570         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39571         Solaris 9.
39572         * doc/glibc-functions/alphasort.texi: Likewise.
39573         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39574
39575 2008-09-16  Jim Meyering  <meyering@redhat.com>
39576
39577         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39578         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39579         a umask modification leak out of a subshell.  Otherwise, the
39580         opensolaris /bin/sh would be accepted and thus cause unwarranted
39581         failures in the coreutils test suite.
39582
39583 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39584
39585         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39586         to succeed.
39587
39588 2008-09-16  Jim Meyering  <meyering@redhat.com>
39589
39590         avoid spurious test failure when library is built without ACL support
39591         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39592         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39593         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39594         * tests/test-copy-acl.sh: Likewise.
39595
39596 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39597
39598         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39599         based on character occurrence counts.
39600
39601 2008-09-15  Eric Blake  <ebb9@byu.net>
39602
39603         tests: avoid some compiler warnings
39604         * tests/test-memchr.c (main): Pass NULL indirectly.
39605         * tests/test-closein.c (main): Avoid unused variable.
39606
39607 2008-09-15  Bruno Haible  <bruno@clisp.org>
39608
39609         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39610         are missing on OpenBSD 4.0 individually.
39611         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39612
39613 2008-09-15  Bruno Haible  <bruno@clisp.org>
39614
39615         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39616         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39617         * doc/posix-functions/perror.texi: Likewise.
39618         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39619         is missing.
39620         Reported by Eric Blake.
39621
39622         * lib/errno.in.h: Use replacement values >= 2000.
39623         Reported by Eric Blake.
39624
39625 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39626
39627         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39628         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39629         limit.
39630         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39631         compareseq was aborted.
39632
39633 2008-09-14  Bruno Haible  <bruno@clisp.org>
39634
39635         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39636         yvec_edit_count.
39637         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39638         (fstrcmp_bounded): Simplify result computation accordingly.
39639
39640 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39641
39642         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39643         (fstrcmp): Define in terms of fstrcmp_bounded.
39644         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39645         lower_bound argument.
39646         Return quickly if the result is certainly < lower_bound.
39647         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39648
39649 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39650
39651         * lib/diffseq.h (EARLY_ABORT): New macro.
39652         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39653         evaluates to true.
39654
39655 2008-09-14  Bruno Haible  <bruno@clisp.org>
39656
39657         * modules/perror-tests: New file.
39658         * tests/test-perror.sh: New file.
39659         * tests/test-perror.c: New file.
39660
39661         New module 'perror'.
39662         * lib/stdio.in.h (perror): New declaration.
39663         * lib/perror.c: New file.
39664         * m4/perror.m4: New file.
39665         * modules/perror: New file.
39666         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39667         * doc/posix-functions/perror.texi: Mention the perror module.
39668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39669         REPLACE_PERROR.
39670         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39671         REPLACE_PERROR.
39672
39673 2008-09-14  Bruno Haible  <bruno@clisp.org>
39674
39675         * modules/stdio (Makefile.am): Reorder to match the order in
39676         lib/stdio.in.h.
39677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39678
39679 2008-09-13  Bruno Haible  <bruno@clisp.org>
39680
39681         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39682
39683 2008-09-13  Bruno Haible  <bruno@clisp.org>
39684
39685         Extend strerror to cover the added errno values.
39686         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39687         (rpl_strerror): Provide error messages for the added errno values and
39688         for the WSA* values.
39689         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39690         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39691         strerror.
39692         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39693         * modules/strerror (Depends-on): Add errno.
39694         * doc/posix-functions/strerror.texi: Document the change.
39695         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39696         and EOVERFLOW.
39697
39698 2008-09-13  Bruno Haible  <bruno@clisp.org>
39699
39700         * modules/EOVERFLOW: Remove file.
39701         * m4/eoverflow.m4: Remove file.
39702         * modules/EOVERFLOW-tests: Remove file.
39703         * tests/test-EOVERFLOW.c: Remove file.
39704         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39705         * modules/ftell (Depends-on): Likewise.
39706         * modules/getdelim (Depends-on): Likewise.
39707         * modules/getugroups (Depends-on): Likewise.
39708         * modules/poll (Depends-on): Likewise.
39709         * modules/snprintf (Depends-on): Likewise.
39710         * modules/sprintf-posix (Depends-on): Likewise.
39711         * modules/vasnprintf (Depends-on): Likewise.
39712         * modules/vasprintf (Depends-on): Likewise.
39713         * modules/vfprintf-posix (Depends-on): Likewise.
39714         * modules/vsnprintf (Depends-on): Likewise.
39715         * modules/vsprintf-posix (Depends-on): Likewise.
39716         * modules/xvasprintf (Depends-on): Likewise.
39717         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39718         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39719         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39720         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39721         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39722         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39723         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39724         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39725         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39726         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39727         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39728         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39729         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39730         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39731         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39732         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39733         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39734         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39735         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39736         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39737         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39738         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39739         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39740         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39741         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39742         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39743         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39744         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39745         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39746         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39747         * MODULES.html.sh: Remove EOVERFLOW.
39748         * NEWS: Mention the change.
39749
39750 2008-09-13  Bruno Haible  <bruno@clisp.org>
39751
39752         * modules/errno-tests: New file.
39753         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39754
39755         * lib/errno.in.h: New file.
39756         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39757         * modules/errno: New file.
39758         * doc/posix-headers/errno.texi: Update documentation.
39759         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
39760
39761 2008-09-13  Bruno Haible  <bruno@clisp.org>
39762
39763         * tests/test-poll.c: Use #if for native Windows, rather than testing
39764         __MSVCRT__.
39765
39766 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39767             Bruno Haible  <bruno@clisp.org>
39768
39769         * lib/glob.c: Don't include <pwd.h> on native Windows.
39770         (WINDOWS32): New macro.
39771         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
39772
39773 2008-09-13  Bruno Haible  <bruno@clisp.org>
39774
39775         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
39776         (ETIMEDOUT): Remove macro.
39777         (glthread_cond_timedwait_multithreaded): New declaration.
39778         (glthread_cond_timedwait): Use it.
39779         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
39780         (glthread_cond_timedwait_multithreaded): New function.
39781
39782 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39783
39784         * modules/poll-tests: Do not check for io.h.
39785         * tests/test-poll.c: Check for __MSVCRT__ instead.
39786
39787 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39788
39789         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
39790         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39791         * tests/test-poll.c: Use them.  Use _pipe on Windows.
39792
39793 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39794
39795         * modules/poll-tests: New.
39796         * tests/test-poll.c: New.
39797
39798 2008-09-12  Eric Blake  <ebb9@byu.net>
39799
39800         frexp: test for NetBSD failure on -0.0
39801         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
39802         not all, bugs from NetBSD 3.0 have been fixed.
39803         * doc/posix-functions/frexp.texi (frexp): Document bug.
39804         Reported by Thomas Klausner.
39805
39806         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
39807         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
39808         literal -0.0.
39809         Reported by Jonathan C. Patschke <jp@centtech.com>.
39810
39811 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39812
39813         * lib/glthread/cond.h: Use dummy implementation also if
39814         USE_WIN32_THREADS.
39815
39816 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39817
39818         * modules/fnmatch-posix (License): Change to LGPLv2+.
39819         * modules/fnmatch-gnu (License): Likewise.
39820
39821 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39822
39823         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
39824
39825 2008-09-11  Jim Meyering  <meyering@redhat.com>
39826
39827         * users.txt: Add gtk-vnc.
39828
39829 2008-09-08  Simon Josefsson  <simon@josefsson.org>
39830
39831         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
39832         rotate amounts.
39833
39834         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
39835         required for 16-bit and 8-bit rotates.
39836         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
39837         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
39838         UINT8_MAX instead of hard-coded constants.
39839         Suggested by Paul Eggert.
39840
39841 2008-09-07  Bruno Haible  <bruno@clisp.org>
39842
39843         * tests/test-striconveh.c (main): Check behaviour when converting from
39844         UTF-7.
39845
39846         Make striconveh work better with stateful encodings.
39847         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
39848         that iconv does not increment the inptr when returning -1/EINVAL.
39849
39850 2008-09-07  Bruno Haible  <bruno@clisp.org>
39851
39852         * build-aux/config.rpath: Update according to libtool-2.2.6.
39853         * build-aux/config.libpath: Likewise.
39854
39855 2008-09-06  Bruno Haible  <bruno@clisp.org>
39856
39857         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
39858         * lib/freadptr.c (freadptr): Likewise.
39859         * lib/freadseek.c (freadptrinc): Likewise.
39860         Reported by Simon Josefsson.
39861
39862 2008-09-06  Bruno Haible  <bruno@clisp.org>
39863
39864         * modules/freadptr (License): Change to LGPLv2+.
39865         * modules/freadseek (License): Likewise.
39866         Suggested by Eric Blake.
39867
39868         * modules/memchr2 (License): Change to LGPLv2+.
39869         Approved by Eric Blake.
39870
39871 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39872             Bruno Haible  <bruno@clisp.org>
39873
39874         Make gnulib-tool work with native 'sed' on AIX.
39875         * gnulib-tool (sed_noop): New variable.
39876         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
39877         func_add_or_update, func_create_testdir): Use it to initialize sed
39878         script variables.
39879         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39880
39881 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
39882             Bruno Haible  <bruno@clisp.org>
39883
39884         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
39885         also works after #include directives.
39886
39887 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
39888
39889         getdate.y: reject an out-of-range timezone value
39890         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
39891         the range [-24...+24].  When specified with only one or two digits,
39892         * tests/test-getdate.c: Tests for the fix.
39893         * doc/getdate.texi: Document this change.
39894
39895 2008-09-03  Bruno Haible  <bruno@clisp.org>
39896
39897         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
39898
39899 2008-09-02  Simon Josefsson  <simon@josefsson.org>
39900
39901         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
39902         <bruce.korb@gmail.com> with ideas from Ben Pfaff
39903         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
39904         Blake <ebb9@byu.net>.
39905
39906         * tests/test-bitrotate.c: Add more test vectors.
39907
39908 2008-09-02  Eric Blake  <ebb9@byu.net>
39909
39910         vasnprintf-posix: handle large precision via %.*d
39911         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
39912         when handling it ourselves.
39913         * tests/test-vasnprintf-posix.c (test_function): Add test.
39914         * tests/test-snprintf-posix.h (test_function): Likewise.
39915         * tests/test-sprintf-posix.h (test_function): Likewise.
39916         * tests/test-vasprintf-posix.c (test_function): Likewise.
39917         Reported by Alain Guibert.
39918
39919 2008-09-01  Eric Blake  <ebb9@byu.net>
39920
39921         c-stack: make configure-time check more robust
39922         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
39923         successful sigaction call.
39924         Reported by Tom G. Christensen.
39925
39926 2008-09-01  Bruno Haible  <bruno@clisp.org>
39927
39928         New module 'findprog-lgpl'.
39929         * modules/findprog-lgpl: New file.
39930         * lib/findprog-lgpl.c: New file.
39931         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
39932         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
39933         to decide whether to use strdup or xstrdup, concatenated_filename or
39934         xconcatenated_filename.
39935
39936 2008-09-01  Bruno Haible  <bruno@clisp.org>
39937
39938         Split module 'concat-filename' into 'concat-filename' (LGPL) and
39939         'xconcat-filename' (GPL).
39940         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
39941         (License): Change to LGPLv2+.
39942         * modules/xconcat-filename: New file.
39943         * lib/concat-filename.h (concatenated_filename): Change specification.
39944         (xconcatenated_filename): New declaration.
39945         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
39946         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
39947         memory situations.
39948         * lib/xconcat-filename.c: New file.
39949         * NEWS: Mention the change.
39950         * lib/findprog.c: Include concat-filename.h, not filename.h.
39951         (find_in_path): Use xconcatenated_filename instead of
39952         concatenated_filename.
39953         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39954         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39955         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39956         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39957         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39958         instead of concatenated_filename.
39959         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39960         (execute_java_class): Use xconcatenated_filename instead of
39961         concatenated_filename.
39962         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39963         * modules/javacomp (Depends-on): Likewise.
39964         * modules/javaexec (Depends-on): Likewise.
39965
39966 2008-09-01  Bruno Haible  <bruno@clisp.org>
39967
39968         Split module 'filename' into 'filename' and 'concat-filename'.
39969         * modules/filename: Keep only lib/filename.h.
39970         (License): Change to LGPLv2+.
39971         * modules/concat-filename: New file, extracted from modules/filename.
39972         * lib/filename.h (concatenated_filename): Remove declaration.
39973         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39974         * lib/concat-filename.c: Include concat-filename.h.
39975         * NEWS: Mention the change.
39976
39977 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39978
39979         * lib/bitrotate.h (rotl8, rotr8): Add.
39980
39981         * modules/bitrotate (configure.ac): Need
39982         AC_REQUIRE([AC_C_INLINE]).
39983         (Description): Mention stdint.h.  Reported by Bruno Haible
39984         <bruno@clisp.org>.
39985
39986         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39987         Paolo Bonzini <bonzini@gnu.org>.
39988
39989 2008-08-31  Bruno Haible  <bruno@clisp.org>
39990
39991         Assume Solaris specific bi-arch conventions on Solaris systems.
39992         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39993         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
39994         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
39995         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
39996         like acl_libdirstem.
39997         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
39998         acl_libdirstem.
39999         * NEWS: Mention the change.
40000         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
40001
40002 2008-08-31  Jim Meyering  <meyering@redhat.com>
40003
40004         * lib/strftime.h: Add comments describing the two added arguments.
40005
40006         remove duplicate #include directives
40007         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
40008         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
40009
40010 2008-08-31  Bruno Haible  <bruno@clisp.org>
40011
40012         New module 'sigpipe-die'.
40013         * modules/sigpipe-die: New file.
40014         * lib/sigpipe-die.h: New file.
40015         * lib/sigpipe-die.c: New file.
40016         * MODULES.html.sh (Signal handling): Add sigpipe-die.
40017
40018 2008-08-31  Bruno Haible  <bruno@clisp.org>
40019
40020         Don't override previously installed signal handlers.
40021         * lib/fatal-signal.c (saved_sigactions): New variable.
40022         (uninstall_handlers): Reset the signal to the saved handler, not
40023         to SIG_DFL (except when ignored).
40024         (install_handlers): Save the previous handlers.
40025
40026 2008-08-30  Bruno Haible  <bruno@clisp.org>
40027
40028         * gnulib-tool (func_reset_sigpipe): New function.
40029         (func_get_automake_snippet, func_modules_transitive_closure,
40030         func_import): Invoke it before a join command that reads from stdin,
40031         to avoid "echo: write error: Broken pipe" error messages on stderr.
40032         Reported by Sam Steingold <sds@gnu.org>.
40033
40034 2008-08-30  Bruno Haible  <bruno@clisp.org>
40035
40036         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
40037         Code copied from m4/open.m4.
40038         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
40039         access and the filename ends in a slash. Code copied from lib/open.c.
40040         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
40041         * tests/test-fopen.c (main): Check against bug with trailing slash.
40042
40043 2008-08-29  Bruno Haible  <bruno@clisp.org>
40044
40045         Avoid some "gcc -pedantic" warnings.
40046         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
40047         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
40048         * lib/dirent.in.h: Likewise.
40049         * lib/fcntl.in.h: Likewise.
40050         * lib/float.in.h: Likewise.
40051         * lib/iconv.in.h: Likewise.
40052         * lib/inttypes.in.h: Likewise.
40053         * lib/locale.in.h: Likewise.
40054         * lib/math.in.h: Likewise.
40055         * lib/netinet_in.in.h: Likewise.
40056         * lib/search.in.h: Likewise.
40057         * lib/signal.in.h: Likewise.
40058         * lib/stdarg.in.h: Likewise.
40059         * lib/stdint.in.h: Likewise.
40060         * lib/stdio.in.h: Likewise.
40061         * lib/stdlib.in.h: Likewise.
40062         * lib/string.in.h: Likewise.
40063         * lib/strings.in.h: Likewise.
40064         * lib/sys_select.in.h: Likewise.
40065         * lib/sys_socket.in.h: Likewise.
40066         * lib/sys_stat.in.h: Likewise.
40067         * lib/sys_time.in.h: Likewise.
40068         * lib/sysexits.in.h: Likewise.
40069         * lib/time.in.h: Likewise.
40070         * lib/unistd.in.h: Likewise.
40071         * lib/wchar.in.h: Likewise.
40072         * lib/wctype.in.h: Likewise.
40073         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
40074         * modules/fchdir (Makefile.am): Likewise.
40075         * modules/fcntl (Makefile.am): Likewise.
40076         * modules/float (Makefile.am): Likewise.
40077         * modules/iconv_open (Makefile.am): Likewise.
40078         * modules/inttypes (Makefile.am): Likewise.
40079         * modules/locale (Makefile.am): Likewise.
40080         * modules/math (Makefile.am): Likewise.
40081         * modules/netinet_in (Makefile.am): Likewise.
40082         * modules/search (Makefile.am): Likewise.
40083         * modules/signal (Makefile.am): Likewise.
40084         * modules/stdarg (Makefile.am): Likewise.
40085         * modules/stdint (Makefile.am): Likewise.
40086         * modules/stdio (Makefile.am): Likewise.
40087         * modules/stdlib (Makefile.am): Likewise.
40088         * modules/string (Makefile.am): Likewise.
40089         * modules/strings (Makefile.am): Likewise.
40090         * modules/sys_select (Makefile.am): Likewise.
40091         * modules/sys_socket (Makefile.am): Likewise.
40092         * modules/sys_stat (Makefile.am): Likewise.
40093         * modules/sys_time (Makefile.am): Likewise.
40094         * modules/sysexits (Makefile.am): Likewise.
40095         * modules/time (Makefile.am): Likewise.
40096         * modules/unistd (Makefile.am): Likewise.
40097         * modules/wchar (Makefile.am): Likewise.
40098         * modules/wctype (Makefile.am): Likewise.
40099         Reported by Reuben Thomas <rrt@sc3d.org>.
40100
40101 2008-08-29  Bruno Haible  <bruno@clisp.org>
40102
40103         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40104         any more.
40105
40106 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40107
40108         * MODULES.html.sh (Misc): Add bitrotate.
40109
40110         * modules/bitrotate: New file.
40111
40112         * lib/bitrotate.h: New file.
40113
40114         * modules/bitrotate-tests: New file.
40115
40116         * tests/test-bitrotate.c: New file.
40117
40118         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40119         on the bitrotate module.
40120
40121         * lib/arctwo.c: Use new bitrotate module.
40122
40123 2008-08-29  Jim Meyering  <meyering@redhat.com>
40124
40125         bootstrap: merge changes from coreutils
40126         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40127         of copied files.  Remove a kludge, now that this is fixed.
40128         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40129         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40130         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40131
40132 2008-08-29  Bruno Haible  <bruno@clisp.org>
40133
40134         * MODULES.html.sh: Remove --cvs-urls option.
40135
40136 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40137
40138         maint.mk: adjust to file name change
40139         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40140
40141 2008-08-28  Jim Meyering  <meyering@redhat.com>
40142
40143         * modules/getndelim2 (License): Relicense to LGPLv2+.
40144         Approved by Richard Stallman for the version of 1995, and by
40145         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40146
40147 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40148
40149         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40150         dummy if one is not available.  Do not touch them if
40151         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40152         (getc_maybe_unlocked): New.
40153         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40154
40155 2008-08-26  Eric Blake  <ebb9@byu.net>
40156
40157         doc/INSTALL: resync from autoconf
40158         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40159         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40160         moving...
40161         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40162         * INSTALL: Regenerate.
40163         * INSTALL.ISO: New file.
40164         * INSTALL.UTF-8: Likewise.
40165
40166 2008-08-26  Jim Meyering  <meyering@redhat.com>
40167
40168         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40169         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40170         these definitions conditional, so that they may be overridden, too.
40171
40172 2008-08-26  Bruno Haible  <bruno@clisp.org>
40173
40174         Generate INSTALL file variants with prettier quotes.
40175         * doc/Makefile (INSTALL_PRELUDE): New macro.
40176         (INSTALL): Use it.
40177         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40178
40179 2008-08-26  Bruno Haible  <bruno@clisp.org>
40180
40181         Run makeinfo in an English locale.
40182         * doc/Makefile (MAKEINFO): New variable.
40183
40184 2008-08-26  Bruno Haible  <bruno@clisp.org>
40185
40186         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40187         Suggested by Eric Blake.
40188
40189 2008-08-25  Bruno Haible  <bruno@clisp.org>
40190
40191         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40192
40193 2008-08-25  Eric Blake  <ebb9@byu.net>
40194
40195         c-stack: test that stack overflow can be caught
40196         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40197         that platform allows handling stack overflow; at least OS/2 EMX
40198         has sigaltstack, but crashes before transferring control to
40199         handler on stack overflow.
40200         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40201         check for HAVE_STACK_OVERFLOW_HANDLING.
40202         Reported by Elbert Pol.
40203
40204 2008-08-25  Bruno Haible  <bruno@clisp.org>
40205
40206         * doc/posix-functions/strftime.texi: Fix description of strftime
40207         module.
40208
40209 2008-08-24  Bruno Haible  <bruno@clisp.org>
40210
40211         * tests/uniwidth/test-uc_width2.c: New file.
40212         * tests/uniwidth/test-uc_width2.sh: New file.
40213         * modules/uniwidth/width-tests (Files): Add the new files.
40214         (TESTS): Add uniwidth/test-uc_width2.sh.
40215         (TESTS_ENVIRONMENT): New variable.
40216         (check_PROGRAMS): Add test-uc_width2.
40217         (test_uc_width2_SOURCES): New variable.
40218
40219         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40220         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40221         not 0x00AB.
40222         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40223
40224 2008-08-22  Eric Blake  <ebb9@byu.net>
40225
40226         test-lock, test-tls: mention why a test is skipped
40227         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40228         skipped.
40229         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40230
40231         count-one-bits: relax license
40232         * modules/count-one-bits (License): Relicense to LGPLv2+.
40233         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40234
40235 2008-08-22  Andreas Schwab  <schwab@suse.de>
40236
40237         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40238         Remove spurious space in assignment.
40239
40240 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40241
40242         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40243         Paul Eggert <eggert@CS.UCLA.EDU>.
40244
40245 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40246
40247         * modules/gettext: Add m4/threadlib.m4.
40248
40249 2008-08-19  Eric Blake  <ebb9@byu.net>
40250
40251         test-c-stack: fix compilation failure on FreeBSD 5.0
40252         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40253         headers before <sys/resource.h>.
40254         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40255         the bug.
40256         Reported by Nelson H. F. Beebe.
40257
40258         strverscmp: migrate from "strverscmp.h" to <string.h>
40259         * modules/string (Makefile.am): Add new hooks.
40260         * modules/strverscmp (Files): Remove strverscmp.h.
40261         (Depends-on): Add string.
40262         (configure.ac): Add indicator.
40263         (Include): Mention new header.
40264         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40265         defaults.
40266         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40267         results.
40268         * lib/strverscmp.h: Delete.
40269         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40270         * tests/test-strverscmp.c (includes): Adjust client.
40271         * lib/check-version.c (includes): Likewise.
40272         * NEWS: Document the change.
40273
40274         strverscmp: add unit test
40275         * modules/strverscmp-tests: New file.
40276         * tests/test-strverscmp.c: Likewise.
40277
40278 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40279
40280         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40281         regarding Windows crypto stuff, from Mono.
40282
40283 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40284
40285         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40286         if present, for intel RND.  Return error on failures.
40287
40288 2008-08-18  Ben Pfaff  <blp@gnu.org>
40289
40290         gitlog-to-changelog: give better diagnostic for failed pipe-open
40291         * build-aux/gitlog-to-changelog: Improve error message: suggest
40292         that the version of Git may be too old.
40293
40294 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40295
40296         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40297         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40298
40299 2008-08-18  Bruno Haible  <bruno@clisp.org>
40300
40301         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40302         pthread_in_use().
40303
40304 2008-08-18  Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/glthread/threadlib.c: Include <pthread.h>.
40307
40308 2008-08-18  Bruno Haible  <bruno@clisp.org>
40309
40310         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40311         glthread_recursive_lock_* macros.
40312         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40313         Fix syntax error.
40314
40315 2008-08-18  Bruno Haible  <bruno@clisp.org>
40316
40317         * lib/glthread/thread.c: Avoid forcing a context switch right after
40318         thread creation.
40319
40320 2008-08-17  Bruno Haible  <bruno@clisp.org>
40321
40322         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40323         * lib/glthread/thread.h: Provide Win32 specific implementation.
40324         * modules/thread (Files): Add lib/glthread/thread.c.
40325         (Depends-on): Add lock.
40326         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40327
40328 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40329
40330         New module 'yield'.
40331         * modules/yield: New file.
40332         * lib/glthread/yield.h: New file.
40333         * m4/yield.m4: New file.
40334         * MODULES.html.sh (Multithreading): Add yield.
40335
40336 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40337
40338         New module 'thread'.
40339         * modules/thread: New file.
40340         * lib/glthread/thread.h: New file.
40341         * m4/thread.m4: New file.
40342         * MODULES.html.sh (Multithreading): Add thread.
40343
40344 2008-08-17  Bruno Haible  <bruno@clisp.org>
40345
40346         * lib/glthread/lock.h: Include <stdlib.h> always.
40347         * lib/glthread/tls.h: Likewise.
40348         * lib/glthread/cond.h: Likewise.
40349
40350 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40351
40352         New module 'cond'.
40353         * modules/cond: New file.
40354         * lib/glthread/cond.h: New file.
40355         * lib/glthread/cond.c: New file.
40356         * m4/cond.m4: New file.
40357         * MODULES.html.sh (Multithreading): Add cond.
40358
40359 2008-08-16  Eric Blake  <ebb9@byu.net>
40360
40361         c-stack: fix regression on Irix 5.3 from 2008-06-21
40362         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40363         sa_sigaction...
40364         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40365         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40366         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40367         * modules/signal (Makefile.am): Use the value.
40368         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40369         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40370         * doc/posix-headers/signal.texi (signal.h): Document this
40371         portability issue.
40372         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40373         Reported by Tom G. Christensen.
40374
40375 2008-08-17  Bruno Haible  <bruno@clisp.org>
40376
40377         New module 'threadlib'.
40378         * modules/threadlib: New file.
40379         * lib/glthread/threadlib.c: New file, extracted from
40380         lib/glthread/lock.c.
40381         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40382         functions.
40383         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40384         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40385         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40386         macros.
40387         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40388         (gl_DISABLE_THREADS): Remove macro.
40389         * modules/lock (Files): Remove build-aux/config.rpath.
40390         (Depends-on): Remove havelib. Add threadlib.
40391         (configure.ac-early): Remove section.
40392         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40393         * modules/tls (Depends-on): Remove lock. Add threadlib.
40394         (Link): New section, copied from threadlib.
40395         * MODULES.html.sh (Multithreading): Add threadlib.
40396
40397 2008-08-14  Bruno Haible  <bruno@clisp.org>
40398
40399         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40400         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40401         glthread_rwlock_unlock, glthread_rwlock_destroy,
40402         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40403         glthread_recursive_lock_destroy): Define as macros always.
40404         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40405         glthread_lock_lock.
40406         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40407         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40408         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40409         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40410         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40411         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40412         (glthread_recursive_lock_lock_func): Renamed from
40413         glthread_recursive_lock_lock.
40414         (glthread_recursive_lock_unlock_func): Renamed from
40415         glthread_recursive_lock_unlock.
40416         (glthread_recursive_lock_destroy_func): Renamed from
40417         glthread_recursive_lock_destroy.
40418
40419 2008-08-14  Bruno Haible  <bruno@clisp.org>
40420
40421         * lib/glthread/lock.h: Renamed from lib/lock.h.
40422         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40423         * lib/glthread/tls.h: Renamed from lib/tls.h.
40424         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40425         * lib/fstrcmp.c: Update includes.
40426         * lib/strsignal.c: Update includes.
40427         * modules/lock (Files, Makefile.am): Update.
40428         (Include): Change to "glthread/lock.h".
40429         * modules/tls (Files, Makefile.am): Update.
40430         (Include): Change to "glthread/tls.h".
40431         * tests/test-lock.c: Update includes.
40432         * tests/test-tls.c: Update includes.
40433         * NEWS: Mention the renamed header files.
40434
40435 2008-08-11  Jim Meyering  <meyering@redhat.com>
40436
40437         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40438
40439 2008-08-11  Eric Blake  <ebb9@byu.net>
40440
40441         test-c-stack: avoid C99-ism
40442         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40443         before statement.
40444         Reported by Alain Guibert.
40445
40446 2008-08-10  Jim Meyering  <meyering@redhat.com>
40447
40448         ensure that return value of uinttostr et al are not ignored
40449         * lib/inttostr.h (__GNUC_PREREQ): Define.
40450         (__attribute_warn_unused_result__): Define.
40451         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40452
40453 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40454
40455         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40456         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40457
40458 2008-08-07  Jim Meyering  <meyering@redhat.com>
40459
40460         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40461
40462         * modules/mkstemp (License): Relicense under LGPLv2+.
40463         * modules/tempname (License): Likewise.
40464
40465 2008-08-06  Bruno Haible  <bruno@clisp.org>
40466
40467         * lib/poll.c (poll): Further micro-optimization.
40468
40469 2008-08-06  Jim Meyering  <meyering@redhat.com>
40470
40471         inet_pton.c: use locale-independent tolower
40472         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40473         (inet_pton6): Use c_tolower rather than tolower.
40474         * modules/inet_pton (Depends-on): Add c-ctype.
40475
40476 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40477
40478         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40479         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40480
40481 2008-08-06  Jim Meyering  <meyering@redhat.com>
40482
40483         * modules/inet_pton (License): Relicense under LGPLv2+.
40484
40485 2008-08-03  Bruno Haible  <bruno@clisp.org>
40486
40487         Additional non-aborting API for lock and tls.
40488         * lib/lock.h: Include <errno.h>.
40489         (glthread_lock_init): New macro/function.
40490         (gl_lock_init): Define as wrapper around glthread_lock_init.
40491         (glthread_lock_lock): New macro/function.
40492         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40493         (glthread_lock_unlock): New macro/function.
40494         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40495         (glthread_lock_destroy): New macro/function.
40496         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40497         (glthread_rwlock_init): New macro/function.
40498         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40499         (glthread_rwlock_rdlock): New macro/function.
40500         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40501         (glthread_rwlock_wrlock): New macro/function.
40502         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40503         (glthread_rwlock_unlock): New macro/function.
40504         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40505         (glthread_rwlock_destroy): New macro/function.
40506         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40507         (glthread_recursive_lock_init): New macro/function.
40508         (gl_recursive_lock_init): Define as wrapper around
40509         glthread_recursive_lock_init.
40510         (glthread_recursive_lock_lock): New macro/function.
40511         (gl_recursive_lock_lock): Define as wrapper around
40512         glthread_recursive_lock_lock.
40513         (glthread_recursive_lock_unlock): New macro/function.
40514         (gl_recursive_lock_unlock): Define as wrapper around
40515         glthread_recursive_lock_unlock.
40516         (glthread_recursive_lock_destroy): New macro/function.
40517         (gl_recursive_lock_destroy): Define as wrapper around
40518         glthread_recursive_lock_destroy.
40519         (glthread_once): New macro/function.
40520         (gl_once): Define as wrapper around glthread_once.
40521         Update function declarations.
40522         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40523         glthread_rwlock_init. Return error code.
40524         (glthread_rwlock_rdlock_multithreaded): Renamed from
40525         glthread_rwlock_rdlock. Return error code.
40526         (glthread_rwlock_wrlock_multithreaded): Renamed from
40527         glthread_rwlock_wrlock. Return error code.
40528         (glthread_rwlock_unlock_multithreaded): Renamed from
40529         glthread_rwlock_unlock. Return error code.
40530         (glthread_rwlock_destroy_multithreaded): Renamed from
40531         glthread_rwlock_destroy. Return error code.
40532         (glthread_recursive_lock_init_multithreaded): Renamed from
40533         glthread_recursive_lock_init. Return error code.
40534         (glthread_recursive_lock_lock_multithreaded): Renamed from
40535         glthread_recursive_lock_lock. Return error code.
40536         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40537         glthread_recursive_lock_unlock. Return error code.
40538         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40539         glthread_recursive_lock_destroy. Return error code.
40540         (glthread_once_call): Make static.
40541         (glthread_once_multithreaded): Renamed from glthread_once.
40542         * lib/tls.h: Include <errno.h>.
40543         (glthread_tls_key_init): New macro/function.
40544         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40545         (glthread_tls_set): New macro/function.
40546         (gl_tls_set): Define as wrapper around glthread_tls_set.
40547         (glthread_tls_key_destroy): New macro/function.
40548         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40549         Update function declarations.
40550         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40551         glthread_tls_get.
40552         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40553
40554 2008-08-04  Eric Blake  <ebb9@byu.net>
40555
40556         gnumakefile: use space, not TAB, outside of targets
40557         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40558
40559 2008-08-02  Jim Meyering  <meyering@redhat.com>
40560
40561         getdate.y: avoid locale-dependent date parsing failure
40562         In Turkish locales, getdate would fail to recognize keywords
40563         containing a lowercase "i".  The solution is not to rely on
40564         locale-sensitive case-conversion.
40565         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40566         (lookup_word): Use c_toupper in place of toupper.
40567         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40568         Reported by Vefa Bicakci <bicave@superonline.com> in
40569         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40570         * modules/getdate (Depends-on): Add c-ctype.
40571
40572 2008-08-02  Bruno Haible  <bruno@clisp.org>
40573
40574         * gnulib-tool (func_import): When updating or creating a .gitignore
40575         file, prepend each added line with a slash, and ignore leading slashes
40576         from the existing lines.
40577         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40578
40579 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40580
40581         Portability fix for GNU make 3.79.1.
40582         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40583         versions do not understand.
40584
40585 2008-08-01  Bruno Haible  <bruno@clisp.org>
40586
40587         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40588         * tests/test-isnanf.h (zero): New variable.
40589         (main): Avoid literal -0.0f.
40590         * tests/test-isnand.h (zero): New variable.
40591         (main): Avoid literal -0.0.
40592         * tests/test-isnanl.h (zero): New variable.
40593         (main): Avoid literal -0.0L.
40594         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40595         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40596         -0.0, -0.0L.
40597         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40598         (test_signbitd): Avoid literal -0.0.
40599         (test_signbitl): Avoid literal -0.0L.
40600         * tests/test-ceilf1.c (zero): New variable.
40601         (main): Avoid literal -0.0f.
40602         * tests/test-ceill.c (zero): New variable.
40603         (main): Avoid literal -0.0L.
40604         * tests/test-floorf1.c (zero): New variable.
40605         (main): Avoid literal -0.0f.
40606         * tests/test-floorl.c (zero): New variable.
40607         (main): Avoid literal -0.0L.
40608         * tests/test-roundf1.c (zero): New variable.
40609         (main): Avoid literal -0.0f.
40610         * tests/test-round1.c (zero): New variable.
40611         (main): Avoid literal -0.0.
40612         * tests/test-roundl.c (zero): New variable.
40613         (main): Avoid literal -0.0L.
40614         * tests/test-truncf1.c (zero): New variable.
40615         (main): Avoid literal -0.0f.
40616         * tests/test-trunc1.c (zero): New variable.
40617         (main): Avoid literal -0.0.
40618         * tests/test-truncl.c (zero): New variable.
40619         (main): Avoid literal -0.0L.
40620         * tests/test-frexp.c (zero): New variable.
40621         (main): Avoid literal -0.0.
40622         * tests/test-frexpl.c (zero): New variable.
40623         (main): Avoid literal -0.0L.
40624         * tests/test-ldexpl.c (zero): New variable.
40625         (main): Avoid literal -0.0L.
40626         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40627         (zerod, zerol): New variables.
40628         (test_function): Avoid literals -0.0, -0.0L.
40629         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40630         (zerod, zerol): New variables.
40631         (test_function): Avoid literals -0.0, -0.0L.
40632         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40633         (zerod, zerol): New variables.
40634         (test_function): Avoid literals -0.0, -0.0L.
40635         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40636         (zerod, zerol): New variables.
40637         (test_function): Avoid literals -0.0, -0.0L.
40638         * tests/test-strtod.c (zero): New variable.
40639         (main): Avoid literal -0.0.
40640         Reported by Jonathan C. Patschke <jp@centtech.com>.
40641
40642 2008-07-31  Jim Meyering  <meyering@redhat.com>
40643
40644         sha256.h: correct definition of SHA224_DIGEST_SIZE
40645         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40646         Reported by Paulie Pena IV <paulie4@gmail.com>.
40647         Define as 224 / 8, rather than as a literal.
40648         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40649         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40650         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40651
40652 2008-07-31  Bruno Haible  <bruno@clisp.org>
40653
40654         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40655         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40656         Reported by Jonathan Patschke <jp@centtech.com>.
40657
40658 2008-07-31  Bruno Haible  <bruno@clisp.org>
40659
40660         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40661         Reported by Paolo Bonzini <bonzini@gnu.org>.
40662
40663 2008-07-30  Eric Blake  <ebb9@byu.net>
40664
40665         test-strtod: allow compilation without -lm
40666         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40667         Reported by Dennis Clarke <blastwave@gmail.com>.
40668
40669 2008-07-28  Jim Meyering  <meyering@redhat.com>
40670
40671         bootstrap: work also when there are no .po files in po/
40672         * build-aux/bootstrap (update_po_files): Complete the change
40673         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40674
40675 2008-07-27  Jim Meyering  <meyering@redhat.com>
40676
40677         * users.txt: Add zile.
40678
40679 2008-07-26  Ben Pfaff  <blp@gnu.org>
40680
40681         Add missing dependencies on new m4/exponent[fdl].m4 files.
40682         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40683         * modules/isnand-nolibm: Add m4/exponentd.m4.
40684         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40685         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40686         m4/isnan[fdl].m4, because the macros actually used moved.
40687         Reported by Jim Meyering.
40688
40689 2008-07-14  Ben Pfaff  <blp@gnu.org>
40690
40691         Add isinf module.
40692         * lib/isinf.c: New file.
40693         * lib/math.in.h: Define isinf macro if we have decided to replace
40694         it.
40695         * m4/isinf.m4: New file.
40696         * m4/math_h.m4: Initialize and substitute variables for isinf
40697         module.
40698         * modules/isinf: New file.
40699         * modules/isinf-tests: New file.
40700         * modules/math: Add substitutions for new module.
40701         * tests/test-isinf.c: New file.
40702         * doc/posix-functions/isinf.texi: Mention new module.
40703         * MODULES.html.sh: Mention new module.
40704
40705 2008-07-14  Ben Pfaff  <blp@gnu.org>
40706
40707         Factor out some macros for use by additional modules.
40708         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40709         exponentf.m4.
40710         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40711         exponentd.m4.
40712         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40713         file exponentl.m4.
40714         * m4/exponentf.m4: New file.
40715         * m4/exponentd.m4: New file.
40716         * m4/exponentl.m4: New file.
40717         * modules/isnanf: Use new file m4/exponentf.m4.
40718         * modules/isnand: Use new file m4/exponentd.m4.
40719         * modules/isnanl: Use new file m4/exponentl.m4.
40720
40721 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40722
40723         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40724         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40725         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40726         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40727
40728         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40729         readlink on platforms without PATH_MAX.
40730
40731 2008-07-21  Eric Blake  <ebb9@byu.net>
40732
40733         Warn, not fail, on stale version.
40734         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40735
40736         Don't allow installation with stale devel version number.
40737         * top/GNUmakefile (_is-install-target): New macro.
40738         (_curr-ver): Forbid installation with stale version number.
40739
40740 2008-07-20  Bruno Haible  <bruno@clisp.org>
40741
40742         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40743         TESTS_ENVIRONMENT.
40744         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40745
40746 2008-07-20  Bruno Haible  <bruno@clisp.org>
40747
40748         * lib/c-stack.h (c_stack_action): Add documentation.
40749         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40750
40751 2008-07-20  Bruno Haible  <bruno@clisp.org>
40752
40753         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40754         * modules/readlink (License): Likewise.
40755
40756 2008-07-17  Eric Blake  <ebb9@byu.net>
40757
40758         * modules/c-stack (Link): Fix typo.
40759
40760         Make c-stack use libsigsegv, when available.
40761         * modules/c-stack (Depends-on): Add libsigsegv.
40762         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
40763         needed.
40764         * lib/c-stack.c (SIGSTKSZ): Define fallback.
40765         (segv_handler, overflow_handler, c_stack_action)
40766         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
40767         implementation when libsigsegv is available, but only when using
40768         the library is necessary.
40769         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
40770         comment, explaining why XSI check fails on Linux.
40771         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
40772         * tests/test-c-stack2.sh: Tweak skip message.
40773         * NEWS: Document new link-time requirements.
40774
40775 2008-07-16  Eric Blake  <ebb9@byu.net>
40776
40777         c-stack: Expose false positives when not using libsigsegv.
40778         * modules/c-stack-tests (Files): Expand test.
40779         * tests/test-c-stack.c (main): Add means to conditionally trigger
40780         non-overflow SIGSEGV.
40781         * tests/test-c-stack2.sh: New file.
40782
40783 2008-07-14  Bruno Haible  <bruno@clisp.org>
40784
40785         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
40786         Reported by Eric Blake.
40787
40788 2008-07-14  Sam Steingold  <sds@gnu.org>
40789             Bruno Haible  <bruno@clisp.org>
40790
40791         New module libsigsegv.
40792         * modules/libsigsegv: New file.
40793         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
40794         modifications.
40795         * MODULES.html.sh (Signal handling): New section.
40796
40797 2008-07-14  Bruno Haible  <bruno@clisp.org>
40798
40799         * modules/unictype/ctype-* (Description): Add the word "function".
40800         Improves the resulting doc in MODULES.html.
40801
40802 2008-07-12  Ben Pfaff  <blp@gnu.org>
40803
40804         Add longlong module.
40805         * modules/longlong: New file.
40806
40807 2008-07-12  Bruno Haible  <bruno@clisp.org>
40808
40809         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
40810         to empty.
40811
40812 2008-07-10  Ben Pfaff  <blp@gnu.org>
40813
40814         Add isnan module.
40815         * doc/posix-functions/isnan.texi: Mention new module.
40816         * lib/math.in.h: Define isnan macro if we have decided to replace
40817         it.
40818         * m4/isnan.m4: New file.
40819         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
40820         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
40821         also.
40822         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
40823         redundancy.
40824         * m4/math_h.m4: Initialize and substitute variables for isnan
40825         module.
40826         * modules/isnan: New file.
40827         * modules/isnan-tests: New file.
40828         * modules/math: Add substitutions for new module.
40829         * tests/test-isnan.c: New file.
40830         * MODULES.html.sh: Mention new module.
40831
40832 2008-07-10  Ben Pfaff  <blp@gnu.org>
40833
40834         Add isnanf module.
40835         * lib/isnanf.m4: New file.
40836         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
40837         (gl_HAVE_ISNANF_IN_LIBM): New macro.
40838         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
40839         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
40840         * modules/isnanf: New file.
40841         * modules/isnanf-tests: New file.
40842         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
40843         files.
40844         * tests/test-isnanf-nolibm.c: factored most of its contents into
40845         new file tests/test-isnanf.h.
40846         * tests/test-isnanf.h: New file.
40847         * tests/test-isnanf.c: New file.
40848         * MODULES.html.sh: Mention new module.
40849         * doc/glibc-functions/isnanf.texi: Mention new module.
40850
40851 2008-07-10  Ben Pfaff  <blp@gnu.org>
40852
40853         Add isnand module.
40854         * lib/isnand.h: New file.
40855         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
40856         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
40857         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
40858         functionality also.
40859         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
40860         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
40861         (gl_HAVE_ISNAND_IN_LIBM): New macro.
40862         * modules/isnand: New file.
40863         * modules/isnand-tests: New file.
40864         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
40865         files.
40866         * tests/test-isnand-nolibm.c: factored most of its contents into
40867         new file tests/test-isnand.h.
40868         * tests/test-isnand.h: New file.
40869         * tests/test-isnand.c: New file.
40870         * MODULES.html.sh: Mention new module.
40871
40872 2008-07-10  Ben Pfaff  <blp@gnu.org>
40873
40874         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
40875         * lib/isnand.h: Rename lib/isnand-nolibm.h.
40876         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
40877         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
40878         * modules/isnanf-nolibm: Update references to renamed files.
40879         * modules/isnand-nolibm: Likewise.
40880         * modules/isnanf-nolibm-tests: Likewise.
40881         * modules/isnand-nolibm-tests: Likewise.
40882         * lib/frexp.c: Likewise.
40883         * lib/isfinite.c: Likewise.
40884         * lib/signbitd.c: Likewise.
40885         * lib/signbitf.c: Likewise.
40886         * lib/vasnprintf.c: Likewise.
40887         * tests/test-ceilf1.c: Likewise.
40888         * tests/test-ceilf2.c: Likewise.
40889         * tests/test-floorf1.c: Likewise.
40890         * tests/test-floorf2.c: Likewise.
40891         * tests/test-frexp.c: Likewise.
40892         * tests/test-round1.c: Likewise.
40893         * tests/test-round2.c: Likewise.
40894         * tests/test-roundf1.c: Likewise.
40895         * tests/test-strtod.c: Likewise.
40896         * tests/test-trunc1.c: Likewise.
40897         * tests/test-trunc2.c: Likewise.
40898         * tests/test-truncf1.c: Likewise.
40899         * tests/test-truncf2.c: Likewise.
40900         * NEWS: Mention the renamed header files.
40901
40902 2008-07-11  Jim Meyering  <meyering@redhat.com>
40903
40904         vc-list-files: make the last-resort awk code more portable
40905         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
40906         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
40907         does not support it.
40908
40909 2008-07-10  Eric Blake  <ebb9@byu.net>
40910
40911         Work with tar's bootstrap.
40912         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
40913         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
40914         an m4 comment.
40915
40916 2008-07-09  Jim Meyering  <meyering@redhat.com>
40917
40918         posix-shell.m4: fix typo that made this test malfunction
40919         * m4/posix-shell.m4: Remove capitalization in variable name.
40920
40921 2008-07-08  Bruno Haible  <bruno@clisp.org>
40922
40923         * m4/onceonly.m4: Update comments.
40924         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40925
40926 2008-07-04  Jim Meyering  <meyering@redhat.com>
40927
40928         * users.txt: Add vc-dwim.
40929         (bison, coreutils): Use the gitweb URL.
40930
40931 2008-07-03  Jim Meyering  <meyering@redhat.com>
40932
40933         * users.txt: Add libffcall.  From Sam Steingold.
40934
40935 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
40936
40937         getdate.y: do not ignore TZ with relative day, month or year offset
40938         * lib/getdate.y (get_date): Move the tz-handling block to follow the
40939         relative-date-handling, since otherwise, the latter would clobber the
40940         sole output (an updated Start value) of the tz-handling block.
40941         * tests/test-getdate.c: Tests for the fix
40942
40943 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40944
40945         Recognize 'foo_LIBRARIES += libgnu.a'.
40946         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
40947         makefile snippet has already specified an installation location,
40948         also using '+='.
40949
40950 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
40951
40952         getdate.y: factor out common actions
40953         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40954         Use them in place of open-coded actions.
40955
40956 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40957
40958         Add self-test for getdate module.
40959         * modules/getdate-tests: New file.
40960         * tests/test-getdate.c: New file.
40961
40962 2008-06-29  Bruno Haible  <bruno@clisp.org>
40963
40964         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40965         .gitignore.
40966         Reported by Sylvain Beucler <beuc@beuc.net>.
40967
40968 2008-06-29  Bruno Haible  <bruno@clisp.org>
40969
40970         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40971         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40972
40973 2008-06-29  Bruno Haible  <bruno@clisp.org>
40974
40975         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40976         EXTRA_DIST.
40977         Reported by Sylvain Beucler <beuc@beuc.net>.
40978
40979 2008-06-26  Jim Meyering  <meyering@redhat.com>
40980
40981         make several modules depend on the "open" module
40982         This provides slightly increased consistency when opening-for-write
40983         the name of a non-directory spelled with a trailing slash.
40984         * modules/chdir-safer: Likewise.
40985         * modules/chown: Likewise.
40986         * modules/clean-temp: Likewise.
40987         * modules/copy-file: Likewise.
40988         * modules/fchdir: Likewise.
40989         * modules/fcntl-safer: Likewise.
40990         * modules/pipe: Likewise.
40991         * modules/utime: Likewise.
40992         Prompted by Eric Blake and Bruno Haible.
40993
40994 2008-06-24  Andreas Schwab  <schwab@suse.de>
40995
40996         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
40997         literals can be used as initializers for global variables.
40998
40999 2008-06-23  Eric Blake  <ebb9@byu.net>
41000
41001         Make gnulib-cache.m4 easier to diff.
41002         * gnulib-tool (func_import): Allow newlines when reading cached
41003         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
41004
41005 2008-06-23  Bruno Haible  <bruno@clisp.org>
41006
41007         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
41008         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
41009         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
41010         m4/signalblocking.m4.
41011         (gl_PREREQ_SIGACTION): Don't invoke it.
41012         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
41013         gl_PREREQ_SIG_HANDLER_H.
41014         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41015         Don't check for sigaction here.
41016
41017 2008-06-23  Bruno Haible  <bruno@clisp.org>
41018
41019         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
41020         (install_handlers): Don't set the SA_RESETHAND flag.
41021
41022 2008-06-23  Bruno Haible  <bruno@clisp.org>
41023
41024         * m4/sigaction.m4: Comment fixes.
41025         * lib/signal.in.h: Likewise.
41026
41027 2008-06-23  Eric Blake  <ebb9@byu.net>
41028
41029         Fix typo.
41030         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
41031
41032         Avoid SA_ namespace.
41033         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
41034         Reported by Ralf Wildenhues.
41035
41036         Avoid test failure due to SA_RESTORER.
41037         * tests/test-sigaction.c (SA_MASK): New macro.
41038         (main): Avoid failing due to extension flags being set.
41039         Reported by Jim Meyering.
41040
41041         Revert use of sig-handler.h in sigprocmask.c.
41042         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
41043         it requires the existence of struct sigaction.
41044         * lib/sigprocmask.c (handler_t): Restore typedef.
41045         (rpl_signal, old_handlers): Use local type.
41046
41047 2008-06-22  Bruno Haible  <bruno@clisp.org>
41048
41049         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41050         conditionally.
41051         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41052
41053 2008-06-22  Bruno Haible  <bruno@clisp.org>
41054
41055         * doc/posix-functions/siginterrupt.texi: Move note.
41056
41057         * lib/signal.in.h (SA_RESTART): New macro.
41058         * lib/sigaction.c: Update comment.
41059
41060         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
41061
41062         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
41063         (gl_PREREQ_SIGPROCMASK): Invoke it.
41064         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
41065
41066         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
41067
41068         * lib/sigprocmask.c: Update a comment.
41069
41070 2008-06-21  Eric Blake  <ebb9@byu.net>
41071
41072         Use sigaction module rather than signal().
41073         * modules/c-stack (Depends-on): Add sigaction.
41074         * modules/fatal-signal (Depends-on): Likewise.
41075         * modules/nanosleep (Depends-on): Likewise.
41076         * modules/sigprocmask (Files): Add sig-handler.h.
41077         * modules/sigaction (Files): Likewise.
41078         * lib/sig-handler.h (get_handler): New file, suggested by Paul
41079         Eggert.
41080         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
41081         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
41082         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41083         (init_fatal_signals): Likewise.
41084         * lib/nanosleep.c (rpl_nanosleep): Likewise.
41085         (siginterrupt): Delete fallback.
41086         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41087         instead.
41088         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41089         siginterrupt.
41090
41091         New module sigaction, for mingw.
41092         * modules/sigaction: New module...
41093         * modules/sigaction-tests: ...and its test.
41094         * m4/sigaction.m4: New file.
41095         * lib/sigaction.c: Likewise.
41096         * tests/test-sigaction.c: Likewise.
41097         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41098         * modules/signal (Makefile.am): Likewise.
41099         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41100         needed.
41101         * doc/posix-headers/signal.texi (signal.h): Mention provided
41102         types.
41103         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41104         that sigaction is preferable.
41105         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41106         module.
41107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41108         sigaction.
41109
41110         Improve robustness of sigprocmask by overriding signal.
41111         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41112         is in use.
41113         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41114         (SIGKILL, SIGSTOP): Provide fallbacks.
41115         (rpl_signal): Implement.
41116         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41117         signal can be called inside handlers.
41118
41119         Fix nanosleep module on mingw.
41120         * modules/nanosleep (Depends-on): Add sys_select.
41121         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41122
41123         Fix licensing of sigprocmask.
41124         * modules/raise (License): Relicense as LGPL.
41125
41126 2008-06-21  Bruno Haible  <bruno@clisp.org>
41127
41128         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41129         result if it contains question marks.
41130         Reported by Michael Geng <linux@michaelgeng.de>.
41131
41132 2008-06-19  Bruno Haible  <bruno@clisp.org>
41133
41134         Fix CVS-ism.
41135         * doc/gnulib.texi: Include updated-stamp.texi.
41136         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41137         (updated-stamp.texi): New rule.
41138         (gnulib.info): Depend on it.
41139         * doc/.gitignore: Add updated-stamp.texi.
41140         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41141
41142 2008-06-19  Bruno Haible  <bruno@clisp.org>
41143
41144         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41145         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41146
41147 2008-06-19  Eric Blake  <ebb9@byu.net>
41148
41149         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41150         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41151         Reported by Stepan Kasal.
41152
41153 2008-06-18  Bruno Haible  <bruno@clisp.org>
41154
41155         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41156         Reported by Eric Blake.
41157
41158 2008-06-18  Eric Blake  <ebb9@byu.net>
41159
41160         Work around cygwin 1.5.25 strsignal bug.
41161         * tests/test-strsignal.c: Allow for const char *.
41162         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41163
41164 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41165
41166         * users.txt: Update URL to article and add author/date
41167         information.
41168
41169 2008-06-17  Bruno Haible  <bruno@clisp.org>
41170
41171         New macro gl_DISABLE_THREADS.
41172         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41173         if the user did not pass --enable-threads or --disable-threads option.
41174         (gl_DISABLE_THREADS): New macro.
41175         Reported by Eric Blake <ebb9@byu.net>.
41176
41177 2008-06-17  Bruno Haible  <bruno@clisp.org>
41178
41179         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41180         when the macro ignores it.
41181         Based on a patch by Eric Blake <ebb9@byu.net>.
41182
41183 2008-06-17  Bruno Haible  <bruno@clisp.org>
41184
41185         * modules/tls (License): Change to LGPLv2+.
41186         Reported by Eric Blake.
41187
41188 2008-06-17  Eric Blake  <ebb9@byu.net>
41189
41190         Simplify c-stack prerequisites.
41191         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41192         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41193         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41194         check.
41195         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41196         <sys/resource.h>.
41197
41198         Move c-stack test into testsuite.
41199         * modules/c-stack-tests: New file.
41200         * lib/c-stack.c [DEBUG]: Move test program...
41201         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41202         fail test if sigaltstack is lacking.
41203         * tests/test-c-stack.sh: New driver file.
41204
41205 2008-06-16  Eric Blake  <ebb9@byu.net>
41206
41207         Use raise module consistently.
41208         * modules/fatal-signal (Depends-on): Add raise.
41209         * modules/sigprocmask (Depends-on): Likewise.
41210         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41211         * lib/sigprocmask.c (sigprocmask): Likewise.
41212         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41213         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41214
41215         Fix compliance bug in sigpending.
41216         * lib/sigprocmask.c (sigpending): Return pending array via
41217         parameter, not return value.
41218
41219 2008-06-14  Eric Blake  <ebb9@byu.net>
41220
41221         Improve obstack-printf test code.
41222         * tests/test-obstack-printf.c (test_function): Fix comment, and
41223         simplify usage of obstack_* in macros.  Add a test for coverage.
41224         Reported by Bruno Haible.
41225
41226 2008-06-14  Bruno Haible  <bruno@clisp.org>
41227
41228         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41229         array size as a constant, not as a const variable.
41230         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41231         AC_USE_SYSTEM_EXTENSIONS.
41232         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41233         Test whether the obstack_printf function actually exists.
41234         * modules/obstack-printf (Depends-on): Add extensions.
41235         (Include): Remove obstack.h.
41236         * modules/obstack-printf-posix (Depends-on): Add extensions.
41237         (Include): Remove obstack.h.
41238
41239 2008-06-13  Eric Blake  <ebb9@byu.net>
41240
41241         Add obstack-printf and obstack-printf-posix modules.
41242         * modules/obstack-printf: New file.
41243         * modules/obstack-printf-posix: Likewise.
41244         * MODULES.html.sh (Misc): Mention them.
41245         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41246         Likewise.
41247         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41248         Likewise.
41249         * modules/stdio (Makefile.am): Accomodate new modules.
41250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41251         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41252         Declare.
41253         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41254         functions.
41255         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41256         (gl_REPLACE_OBSTACK_PRINTF): New macros
41257         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41258         * tests/test-obstack-printf.c: New file.
41259         * modules/obstack-printf-tests: Likewise.
41260         * modules/obstack-printf-posix-tests: Likewise.
41261
41262 2008-06-11  Bruno Haible  <bruno@clisp.org>
41263
41264         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41265         * lib/open.c: Include errno.h.
41266         (open): Fail when attempting to write to a file that has a trailing
41267         slash.
41268         * tests/test-open.c (main): Test against trailing slash bug.
41269         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41270
41271 2008-06-10  Bruno Haible  <bruno@clisp.org>
41272
41273         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41274         for $? to work inside the trap command, with various /bin/sh-s.
41275         * tests/test-vc-list-files-cvs.sh: Likewise.
41276
41277 2008-06-10  Bruno Haible  <bruno@clisp.org>
41278
41279         * lib/acl-internal.h: Don't include gettext.h here.
41280         * lib/set-mode-acl.c: Include gettext.h here.
41281         * lib/copy-acl.c: Likewise.
41282
41283 2008-06-10  Bruno Haible  <bruno@clisp.org>
41284
41285         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41286         * lib/wait-process.c (wait_subprocess): Likewise.
41287         * lib/execute.h (execute): Add termsigp argument.
41288         * lib/execute.c (execute): Likewise.
41289         * lib/csharpcomp.c (compile_csharp_using_pnet,
41290         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41291         * lib/csharpexec.c (execute_csharp_using_pnet,
41292         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41293         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41294         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41295         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41296         is_jikes_present): Update.
41297         * lib/javaexec.c (execute_java_class): Update.
41298         * lib/javaversion.c (execute_and_read_line): Update.
41299         * NEWS: Document the changes.
41300         Reported by Eric Blake.
41301
41302 2008-06-10  Eric Blake  <ebb9@byu.net>
41303
41304         Add missing include.
41305         * tests/test-strstr.c (includes): Add <signal.h>.
41306         * tests/test-strcasestr.c (includes): Likewise.
41307         * tests/test-memmem.c (includes): Likewise.
41308
41309 2008-06-10  Bruno Haible  <bruno@clisp.org>
41310
41311         * lib/wait-process.c (wait_subprocess): Add an assertion.
41312
41313 2008-06-10  Bruno Haible  <bruno@clisp.org>
41314
41315         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41316
41317 2008-06-10  Bruno Haible  <bruno@clisp.org>
41318
41319         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41320         using alarm().
41321         * tests/test-strcasestr.c (main): Likewise.
41322         * tests/test-strstr.c (main): Likewise.
41323
41324 2008-06-09  Bruno Haible  <bruno@clisp.org>
41325
41326         Work around the Solaris 10 ACE ACLs ABI change.
41327         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41328         declare if ACL_NO_TRIVIAL is present.
41329         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41330         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41331         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41332         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41333         define if ACL_NO_TRIVIAL is present.
41334         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41335         and use the current ABI.
41336         (file_has_acl): Use same #if condition as elsewhere.
41337         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41338         in use, and use the current ABI.
41339         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41340         Reported by Jim Meyering.
41341
41342 2008-06-09  Eric Blake  <ebb9@byu.net>
41343
41344         Work around environments that (stupidly) ignore SIGALRM.
41345         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41346         before using alarm().
41347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41348         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41349         Reported by Ian Beckwith <ianb@erislabs.net>.
41350
41351         Produce autobuild blurb earlier in log.
41352         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41353
41354 2008-06-09  Jim Meyering  <meyering@redhat.com>
41355         and OndÅ™ej Vašík  <ovasik@redhat.com>
41356
41357         utimens.c: correct kernel bug work-around
41358         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41359         failure, not success, and the kernel bug we're trying to work
41360         around affects not just the utimensat call, but also the fallback
41361         futimens call.
41362         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41363         not success.
41364         [HAVE_FUTIMENS]: Use the same work-around, here.
41365
41366 2008-06-09  Jim Meyering  <meyering@redhat.com>
41367
41368         add more guards around definition of ACE_-related code
41369         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41370         ALLOW and ACE_OWNER are also defined.
41371
41372 2008-06-08  Bruno Haible  <bruno@clisp.org>
41373
41374         * lib/acl-internal.h: Add me as co-author.
41375         * lib/file-has-acl.c: Likewise.
41376         * lib/set-mode-acl.c: Likewise.
41377         * lib/copy-acl.c: Likewise.
41378
41379 2008-06-08  Bruno Haible  <bruno@clisp.org>
41380
41381         Add support for AIX ACLs.
41382         * lib/acl-internal.h (acl_nontrivial): New declaration.
41383         * lib/file-has-acl.c (acl_nontrivial): New function.
41384         (file_has_acl): Add implementation using AIX 4 ACL API.
41385         * lib/set-mode-acl.c (qset_acl): Likewise.
41386         * lib/copy-acl.c (qcopy_acl): Likewise.
41387
41388 2008-06-08  Bruno Haible  <bruno@clisp.org>
41389
41390         Add support for HP-UX ACLs.
41391         * lib/acl-internal.h (acl_nontrivial): New declaration.
41392         * lib/file-has-acl.c (acl_nontrivial): New function.
41393         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41394         * lib/set-mode-acl.c (qset_acl): Likewise.
41395         * lib/copy-acl.c (qcopy_acl): Likewise.
41396
41397 2008-06-08  Bruno Haible  <bruno@clisp.org>
41398
41399         Add support for Cygwin ACLs.
41400         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41401         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41402         the chmod_or_fchmod call.
41403         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41404
41405 2008-06-08  Bruno Haible  <bruno@clisp.org>
41406
41407         Fix bug with setuid modes in Solaris 10+ code.
41408         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41409         succeeded, when the mode contains some special bits.
41410
41411 2008-06-08  Bruno Haible  <bruno@clisp.org>
41412
41413         Add support for Solaris 7..10 ACLs.
41414         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41415         declarations.
41416         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41417         functions.
41418         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41419         * lib/set-mode-acl.c (qset_acl): Likewise.
41420         * lib/copy-acl.c (qcopy_acl): Likewise.
41421
41422 2008-06-08  Bruno Haible  <bruno@clisp.org>
41423
41424         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41425         declaration.
41426         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41427         (acl_access_nontrivial): Remove MacOS X case.
41428         (file_has_acl): Use acl_extended_nontrivial.
41429         * lib/copy-acl.c (qcopy_acl): Likewise.
41430
41431 2008-06-08  Bruno Haible  <bruno@clisp.org>
41432
41433         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41434
41435 2008-06-08  Jim Meyering  <meyering@redhat.com>
41436
41437         * modules/acl (Maintainer): Add Bruno Haible.
41438
41439 2008-06-07  Bruno Haible  <bruno@clisp.org>
41440
41441         Improve support for Tru64 ACLs.
41442         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41443         ACL on OSF/1.
41444
41445 2008-06-07  Bruno Haible  <bruno@clisp.org>
41446
41447         Add support for MacOS X ACLs.
41448         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41449         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41450         * lib/set-mode-acl.c (qset_acl): Likewise.
41451         * lib/copy-acl.c (qcopy_acl): Likewise.
41452
41453 2008-06-07  Bruno Haible  <bruno@clisp.org>
41454
41455         Fix memory leak introduced on 2008-05-22.
41456         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41457         use.
41458
41459 2008-06-07  Bruno Haible  <bruno@clisp.org>
41460
41461         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41462         to construct an empty ACL.
41463
41464 2008-06-07  Bruno Haible  <bruno@clisp.org>
41465
41466         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41467         precisely.
41468         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41469
41470 2008-06-07  Bruno Haible  <bruno@clisp.org>
41471
41472         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41473         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41474
41475 2008-06-07  Bruno Haible  <bruno@clisp.org>
41476
41477         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41478         regardless of POSIX.
41479         * doc/posix-functions/_longjmp.texi: Likewise.
41480         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41481         SystemV platform in this case.
41482
41483 2008-06-06  Eric Blake  <ebb9@byu.net>
41484
41485         Document abort() bugs.
41486         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41487
41488         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41489         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41490         sigsetjmp.
41491         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41492         siglongjmp, but only as a macro.
41493         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41494         is obsolete.
41495         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41496
41497         Tweak documentation to cover cygwin argz bugs.
41498         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41499         argz bug fix; no code change needed since no cygwin releases
41500         occurred between the last fix and the bug being tested.
41501         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41502         module and recently fixed cygwin bugs.
41503         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41504         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41505         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41506         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41507         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41508         Likewise.
41509         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41510         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41511         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41512         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41513         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41514         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41515         Likewise.
41516
41517         Avoid gcc warning on cygwin.
41518         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41519         !ACL_NO_TRIVIAL]: Avoid unused variable.
41520
41521 2008-06-05  Eric Blake  <ebb9@byu.net>
41522
41523         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41524         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41525         git-version-gen fails to come up with a version.
41526         Reported by Simon Josefsson.
41527
41528 2008-06-05  Jim Meyering  <meyering@redhat.com>
41529             Paul Eggert  <eggert@cs.ucla.edu>
41530
41531         utimens.c: work around a probable Linux kernel bug
41532         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41533         appears to be a kernel bug that causes utimensat to return 280
41534         instead of 0, indicating success.
41535
41536 2008-06-04  Bruno Haible  <bruno@clisp.org>
41537
41538         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41539         2008-06-01 commit.
41540
41541 2008-06-04  Bruno Haible  <bruno@clisp.org>
41542
41543         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41544         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41545         (file_has_acl): Use it. Save errno afterwards.
41546         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41547
41548 2008-06-03  Bruno Haible  <bruno@clisp.org>
41549
41550         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41551         draft code. Simplify #ifs.
41552         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41553         Put Solaris code after POSIX-draft code. Fix comments regarding
41554         Solaris 10, HP-UX. Mention Cygwin.
41555         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41556
41557 2008-06-03  Eric Blake  <ebb9@byu.net>
41558
41559         Provide fallback for older kernels.
41560         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41561         Provide runtime fallback if kernel lacks support.
41562         Reported by Mike Frysinger.
41563
41564 2008-06-02  Bruno Haible  <bruno@clisp.org>
41565
41566         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41567         it exists.
41568
41569 2008-06-02  Bruno Haible  <bruno@clisp.org>
41570
41571         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41572         * lib/copy-acl.c (qcopy_acl): Update comment.
41573
41574 2008-06-02  Bruno Haible  <bruno@clisp.org>
41575
41576         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41577         like ACL APIs.
41578
41579 2008-06-02  Bruno Haible  <bruno@clisp.org>
41580
41581         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41582         * tests/test-set-mode-acl.sh: Likewise.
41583         * tests/test-copy-acl.sh: Likewise.
41584         * tests/test-copy-file.sh: Likewise.
41585
41586 2008-06-02  Bruno Haible  <bruno@clisp.org>
41587
41588         * tests/test-file-has-acl.sh: Remove unused code.
41589
41590 2008-06-01  Bruno Haible  <bruno@clisp.org>
41591
41592         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41593         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41594         messages.
41595         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41596
41597 2008-06-01  Bruno Haible  <bruno@clisp.org>
41598
41599         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41600         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41601         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41602         APIs.
41603         * modules/acl-tests (configure.ac): Remove tests now contained in
41604         m4/acl.m4.
41605
41606 2008-06-02  Jim Meyering  <meyering@redhat.com>
41607
41608         announce-gen: use a better key-server host name
41609         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41610         it may be more consistently reliable.  Suggested by Werner Koch
41611         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41612
41613 2008-06-01  Bruno Haible  <bruno@clisp.org>
41614
41615         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41616         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41617
41618 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41619
41620         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41621
41622 2008-06-01  Bruno Haible  <bruno@clisp.org>
41623
41624         New ACL tests.
41625         * tests/test-file-has-acl.sh: New file.
41626         * tests/test-file-has-acl.c: New file.
41627         * tests/test-set-mode-acl.sh: New file.
41628         * tests/test-set-mode-acl.c: New file.
41629         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41630         * tests/test-copy-acl.c: New file.
41631         * modules/acl-tests: New file, based on modules/copy-file-tests.
41632         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41633         (Depends-on): Add acl-tests.
41634         (configure.ac): Remove checks.
41635         (Makefile.am): Don't create test-sameacls program here any more.
41636
41637 2008-06-01  Bruno Haible  <bruno@clisp.org>
41638
41639         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41640         * tests/test-sameacls.c: Include progname.h.
41641         (main): Invoke set_program_name. Portability fixes for MacOS X,
41642         Solaris, HP-UX.
41643
41644 2008-06-01  Bruno Haible  <bruno@clisp.org>
41645
41646         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41647         function.
41648         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41649
41650 2008-06-01  Bruno Haible  <bruno@clisp.org>
41651
41652         * modules/rpmatch (Depends-on): Add strdup.
41653
41654 2008-06-01  Bruno Haible  <bruno@clisp.org>
41655
41656         * lib/pipe.c: Include unistd-safer.h.
41657         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41658         * modules/pipe (Depends-on): Add unistd-safer.
41659
41660 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41661
41662         * modules/autobuild (configure.ac): Call AB_INIT.
41663
41664 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41665
41666         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41667         Suggested by Bruno Haible <bruno@clisp.org>.
41668
41669 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41670
41671         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41672         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41673         <bruno@clisp.org>.
41674
41675 2008-05-29  Eric Blake  <ebb9@byu.net>
41676
41677         Prefer new POSIX 200x interfaces over futimesat.
41678         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41679         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41680         when available.
41681         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41682
41683 2008-05-28  Bruno Haible  <bruno@clisp.org>
41684
41685         * modules/stpcpy (License): Change to LGPLv2+.
41686         Requested by David Lutterkort <dlutter@redhat.com>.
41687
41688 2008-05-27  Bruno Haible  <bruno@clisp.org>
41689
41690         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41691         current mingw.
41692         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41693
41694 2008-05-27  Bruno Haible  <bruno@clisp.org>
41695
41696         * modules/iconv_open (Link): New section, from module 'iconv'.
41697         * modules/striconv (Link): Likewise.
41698         * modules/striconveh (Link): Likewise.
41699         * modules/xstriconv (Link): Likewise.
41700         * modules/unicodeio (Link): Likewise.
41701         * modules/propername (Link): Likewise.
41702         Reported by Jim Meyering.
41703
41704 2008-05-26  Jim Meyering  <meyering@redhat.com>
41705
41706         sha256: do not artificially restrict buffer length to be < 2^32
41707         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41708         uint32_t to size_t.
41709         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41710         to match.
41711
41712         avoid unaligned access errors, e.g., on sparc
41713         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41714         direct access through a possibly-unaligned uint64* pointer.
41715         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41716         direct access through a possibly-unaligned uint32* pointer.
41717         Prompted by this patch from Tom "spot" Callaway:
41718         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41719
41720         sha512.c: fix typo in comment
41721         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41722
41723 2008-05-25  Bruno Haible  <bruno@clisp.org>
41724
41725         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41726         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41727         (Makefile.am): Update lib_SOURCES.
41728
41729 2008-05-25  Bruno Haible  <bruno@clisp.org>
41730
41731         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41732
41733 2008-05-25  Jim Meyering  <meyering@redhat.com>
41734
41735         useless-if-before-free: freed expr may have white-space differences
41736         * build-aux/useless-if-before-free: Recognize cases in which the
41737         freed expression differs from the tested one in embedded white
41738         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41739         $1 was used, so we can't make any regexp shy.  Improved tests now
41740         detect this.
41741
41742         useless-if-before-free: accept white space in the expression.
41743         * build-aux/useless-if-before-free: For now, any white space
41744         in the expression must be identical in the free argument.
41745
41746         useless-if-before-free: efficiency tweak
41747         * build-aux/useless-if-before-free: Make the expression-matching
41748         regexp "shy".
41749         Make the *outer* regexp shy, not the expr-matching one.
41750
41751         update code-in-comment to accept cast of free arg
41752         * build-aux/useless-if-before-free: Update regexp.
41753
41754 2008-05-25  Bruno Haible  <bruno@clisp.org>
41755
41756         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41757         * modules/copy-file-tests (Files, Makefile.am): Update.
41758         * tests/test-copy-file.c (func_test_copy): Update.
41759
41760 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
41761
41762         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
41763
41764 2008-05-23  Bruno Haible  <bruno@clisp.org>
41765
41766         Improve support for ACLs on OSF/1.
41767         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
41768         Remove fallback for unknown flavors of ACLs.
41769
41770 2008-05-22  Bruno Haible  <bruno@clisp.org>
41771
41772         Add support for ACLs on OSF/1.
41773         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
41774         replacements.
41775         (acl_free_text): New macro fallback.
41776         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
41777         acl_free.
41778         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
41779         acl_free_text function. Require AC_C_INLINE.
41780
41781 2008-05-22  Bruno Haible  <bruno@clisp.org>
41782
41783         Make copy_acl work on MacOS X 10.5.
41784         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41785         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
41786         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
41787         If MODE_INSIDE_ACL, don't assume that every system has the same text
41788         representation for ACLs as FreeBSD.
41789         * lib/copy-acl.c (copy_acl): Add support for platforms with
41790         !MODE_INSIDE_ACL.
41791         * lib/file-has-acl.c (file_has_acl): Likewise.
41792         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
41793         FreeBSD, MacOS X, or IRIX, respectively.
41794
41795 2008-05-22  Bruno Haible  <bruno@clisp.org>
41796
41797         * lib/acl.h: Don't include <sys/acl.h>.
41798         (GETACLCNT): Move fallback to lib/acl-internal.h.
41799         * lib/acl-internal.h: Include <sys/acl.h> here.
41800         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
41801
41802 2008-05-22  Bruno Haible  <bruno@clisp.org>
41803
41804         Split off copy_acl function to separate file.
41805         * lib/copy-acl.c: New file, extracted from lib/acl.c.
41806         * lib/acl.c (copy_acl): Moved function to separate file.
41807         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
41808         * modules/acl (Files): Add lib/copy-acl.c.
41809         (Makefiles.am): Augment lib_SOURCES.
41810
41811 2008-05-22  Bruno Haible  <bruno@clisp.org>
41812
41813         * modules/copy-file-tests: New file.
41814         * tests/test-copy-file.sh: New file.
41815         * tests/test-copy-file.c: New file.
41816         * tests/test-copy-file-sameacls.c: New file.
41817
41818 2008-05-22  Eric Blake  <ebb9@byu.net>
41819
41820         Avoid gcc warning.
41821         * tests/test-memcmp.c (main): Pass NULL indirectly.
41822
41823 2008-05-21  Bruno Haible  <bruno@clisp.org>
41824
41825         Add reference doc about ACLs.
41826         * doc/acl-resources.txt: New file.
41827         * doc/acl-cygwin.txt: New file.
41828
41829 2008-05-21  Bruno Haible  <bruno@clisp.org>
41830
41831         Avoid one more warning from gcc.
41832         * lib/vasnprintf.c (IF_LINT): Update comments.
41833         (VASNPRINTF): Use it also for the 'prefix' array initializer.
41834
41835 2008-05-21  Jim Meyering  <meyering@redhat.com>
41836
41837         avoid a warning from gcc
41838         * lib/vasnprintf.c (IF_LINT): Define.
41839         (scale10_round_decimal_long_double):
41840         Use it to avoid a "may be used uninitialized" warning.
41841         (scale10_round_decimal_double): Likewise.
41842
41843 2008-05-21  Simon Josefsson  <simon@josefsson.org>
41844
41845         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
41846         declared.
41847
41848 2008-05-20  Bruno Haible  <bruno@clisp.org>
41849
41850         * tests/test-memcmp.c (main): Test also the sign of the result. Test
41851         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
41852
41853 2008-05-20  Simon Josefsson  <simon@josefsson.org>
41854
41855         * modules/memcmp-tests: New file.
41856         * tests/test-memcmp.c: New file.
41857
41858 2008-05-19  Bruno Haible  <bruno@clisp.org>
41859
41860         * modules/propername (Notice, configure.ac): Put quoted "..." into
41861         --keyword option.
41862         * lib/propername.h: Update comments accordingly.
41863         Reported by Eric Blake.
41864
41865 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
41866
41867         * modules/getpass-gnu (Depends-on): Add fseeko.
41868
41869 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41870
41871         * modules/base64-tests: New file.
41872
41873 2008-05-19  Bo Borgerson <gigabo@gmail.com>
41874
41875         * lib/base64.c (base64_decode_ctx): If a decode context structure
41876         was passed in use it to ignore newlines.  If a context structure
41877         was _not_ passed in, continue to treat newlines as garbage (this
41878         is the historical behavior).  Formerly base64_decode.
41879         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41880         takes a decode context structure.
41881         * lib/base64.h (base64_decode): Macro for four-argument calls.
41882         (base64_decode_alloc): Likewise.
41883         * lib/base64.c (base64_decode_ctx): If a decode context structure
41884         was passed in use it to ignore newlines.  If a context structure
41885         was _not_ passed in, continue to treat newlines as garbage (this
41886         is the historical behavior).  Formerly base64_decode.
41887         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41888         takes a decode context structure.
41889         * lib/base64.h (base64_decode): Macro for four-argument calls.
41890         (base64_decode_alloc): Likewise.
41891
41892 2008-05-19  Jim Meyering  <meyering@redhat.com>
41893
41894         avoid a warning from gcc
41895         * lib/trim.c (IF_LINT): Define.
41896         (trim2): Use it to avoid a "may be used uninitialized" warning.
41897
41898         Fix doc typo.
41899         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
41900
41901 2008-05-19  Bruno Haible  <bruno@clisp.org>
41902
41903         * doc/glibc-functions/getpass.texi: Document limits of other
41904         implementations.
41905
41906 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41907             Bruno Haible <bruno@clisp.org>
41908
41909         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
41910
41911 2008-05-18  Bruno Haible  <bruno@clisp.org>
41912
41913         * modules/propername: New file, from GNU gettext.
41914         * lib/propername.h: New file, from GNU gettext.
41915         * lib/propername.c: New file, from GNU gettext.
41916         * MODULES.html.sh (Internationalization functions): Add propername.
41917
41918 2008-05-16  Jim Meyering  <meyering@redhat.com>
41919             Bruno Haible  <bruno@clisp.org>
41920
41921         Avoid some warnings from "gcc -Wshadow".
41922         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
41923
41924 2008-05-15  Eric Blake  <ebb9@byu.net>
41925
41926         Extend previous patch to cygwin 1.7.0.
41927         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
41928         fast implementation in cygwin >= 1.7.0.
41929         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41930         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41931
41932 2008-05-15  Bruno Haible  <bruno@clisp.org>
41933
41934         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
41935         implementation in glibc >= 2.9.
41936         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41937         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41938
41939 2008-05-15  Bruno Haible  <bruno@clisp.org>
41940
41941         * MODULES.html.sh (Internationalization functions): Remove linebreak.
41942         (Unicode string functions): Add unilbrk/*.
41943         Reported by Karl Berry.
41944
41945 2008-05-15  Eric Blake  <ebb9@byu.net>
41946
41947         Fix violation of <stdbool.h> replacement in regex.
41948         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
41949         * lib/regexec.c (re_search_internal): Likewise.
41950         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
41951
41952 2008-05-15  Jim Meyering  <meyering@redhat.com>
41953
41954         avoid distracting test output when git or cvs is not found
41955         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41956         * tests/test-vc-list-files-git.sh: Likewise.
41957
41958 2008-05-15  Eric Blake  <ebb9@byu.net>
41959
41960         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41961         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41962         glibc version.
41963         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41964         * doc/posix-functions/strstr.texi (strstr): Likewise.
41965         * lib/str-two-way.h (MAX): Sychronize with glibc.
41966
41967 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41968
41969         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41970         opr.ctx_type.
41971         (calc_first): Initialize constraint field.
41972         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41973         Fix grammar.
41974         (duplicate_node): Merge constraint field for all node types.
41975         (calc_eclosure_iter): Look at constraint field for all node types.
41976         * lib/regex_internal.c (create_cd_newstate): Don't look at
41977         opr.ctx_type.
41978
41979 2008-05-14  Bruno Haible  <bruno@clisp.org>
41980
41981         Help GCC to do better code generation.
41982         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41983         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41984         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41985         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41986         Declare with attribute 'malloc' if supported.
41987
41988 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41989
41990         use "echo STR|wc -c" rather than unportable "expr length STR"
41991         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41992         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41993
41994 2008-05-14  Jim Meyering  <meyering@redhat.com>
41995
41996         use dd ibs=$n count=1 ... rather than less-portable head -c$n
41997         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
41998         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
41999         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
42000         via Collin Lasse.
42001
42002 2008-05-14  Eric Blake  <ebb9@byu.net>
42003
42004         Avoid quadratic growth in gl_LIBSOURCES.
42005         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
42006         Suggested by Bruno Haible.
42007
42008         Test xmemdup0.
42009         * modules/xmemdup0-tests: New file.
42010         * tests/test-xmemdup0.c: Likewise.
42011
42012 2008-05-13  Eric Blake  <ebb9@byu.net>
42013
42014         Split xmemdup0 into its own module.
42015         * modules/xmemdup0: New file.
42016         * lib/xmemdup0.h: Likewise.
42017         * lib/xmemdup0.c: Likewise.
42018         * MODULES.html.sh (Memory management functions): Add xmemdup0.
42019         * lib/xalloc.h (xmemdup0): Remove.
42020         * lib/xmalloc.c (xmemdup0): Likewise.
42021
42022 2008-05-13  Eric Blake  <ebb9@byu.net>
42023             Bruno Haible  <bruno@clisp.org>
42024
42025         Reduce number of forks required during autoconf.
42026         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
42027         and gl_LIBSOURCES_DIR.
42028         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
42029         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
42030         m4_syscmd per file.
42031         <m4_foreach_w>: Move...
42032         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
42033
42034 2008-05-13  Eric Blake  <ebb9@byu.net>
42035
42036         * gnulib-tool: Fix various comment typos.
42037
42038 2008-05-12  Bruno Haible  <bruno@clisp.org>
42039
42040         Tailor the linebreaking algorithm.
42041         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
42042
42043 2008-05-12  Bruno Haible  <bruno@clisp.org>
42044
42045         Update to Unicode 5.0.0.
42046         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42047         LBP_JV, LBP_JT. Redistribute values.
42048         (unilbrk_table): Change size.
42049         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42050         Unicode TR#14 rev. 22.
42051         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42052         LBP_JV, LBP_JT. Redistribute values.
42053         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42054         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42055         Update.
42056         * lib/unilbrk/lbrkprop1.h: Regenerated.
42057         * lib/unilbrk/lbrkprop2.h: Regenerated.
42058         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
42059         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
42060         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
42061         Likewise.
42062         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
42063         Likewise.
42064         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
42065         result.
42066         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42067         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42068         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42069         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
42070         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
42071         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
42072
42073 2008-05-11  Bruno Haible  <bruno@clisp.org>
42074
42075         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
42076
42077 2008-05-11  Bruno Haible  <bruno@clisp.org>
42078
42079         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
42080         * modules/unilbrk/gen-lbrk: New file.
42081
42082 2008-05-11  Bruno Haible  <bruno@clisp.org>
42083
42084         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
42085         * m4/sha512.m4 (gl_SHA512): Likewise.
42086
42087 2008-05-11  Jim Meyering  <meyering@redhat.com>
42088
42089         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42090         * modules/crypto/sha256: New file.
42091         * modules/crypto/sha512: Likewise.
42092         * lib/sha256.c: Likewise.
42093         * lib/sha256.h: Likewise.
42094         * lib/sha512.c: Likewise.
42095         * lib/sha512.h: Likewise.
42096         * lib/u64.h: Likewise.
42097         * m4/sha256.m4: Likewise.
42098         * m4/sha512.m4: Likewise.
42099         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42100
42101 2008-05-10  Bruno Haible  <bruno@clisp.org>
42102
42103         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42104         (Input/Output <stdio.h>): Add xprintf.
42105         (Signal handling <signal.h>): Add strsignal.
42106         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42107         (Core language properties): Add func.
42108         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42109         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42110         strings.
42111         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42112         (Input/output): New section.
42113         (File system functions): Add openat-die, stat-macros.
42114         (Networking functions): Add sockets.
42115         (Unicode string functions): Add unictype/*.
42116         (Support for building libraries and executables): Add gperf.
42117         (Support for building documentation): Add agpl-3.0.
42118         (Misc): Add nocrash.
42119
42120 2008-05-10  Bruno Haible  <bruno@clisp.org>
42121
42122         * modules/unictype/gen-ctype: New file.
42123
42124 2008-05-10  Jim Meyering  <meyering@redhat.com>
42125
42126         Make chdir-safer.c more efficient on a system with no symlinks.
42127         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42128         also if ELOOP is zero.  Suggested by Bruno Haible.
42129
42130         Make chdir-safer.c slightly safer.
42131         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42132         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42133
42134         Avoid compile failure on systems without ELOOP (like mingw).
42135         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42136         Reported by Bruno Haible.
42137
42138 2008-05-10  Bruno Haible  <bruno@clisp.org>
42139
42140         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42141         (is_utf8_encoding): Use a case-insensitive comparison.
42142         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42143         streq.
42144
42145 2008-05-10  Bruno Haible  <bruno@clisp.org>
42146
42147         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42148         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42149         * lib/unilbrk/ulc-common.h (iconv_string_length,
42150         iconv_string_keeping_offsets): Remove declarations.
42151         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42152         Don't include <iconv.h>, streq.h, xsize.h.
42153         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42154         conversion.
42155         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42156         <iconv.h>, streq.h, xsize.h.
42157         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42158         conversion.
42159         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42160         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42161         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42162         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42163
42164 2008-05-10  Bruno Haible  <bruno@clisp.org>
42165
42166         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42167         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42168
42169         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42170         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42171
42172         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42173         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42174
42175         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42176         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42177
42178         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42179         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42180
42181         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42182         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42183
42184         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42185         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42186
42187         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42188         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42189
42190 2008-05-10  Bruno Haible  <bruno@clisp.org>
42191
42192         Split up 'linebreak' module.
42193         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42194         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42195         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42196         modifications.
42197         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42198         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42199         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42200         lib/linebreak.c.
42201         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42202         lib/linebreak.c.
42203         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42204         lib/linebreak.c.
42205         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42206         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42207         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42208         lib/linebreak.c.
42209         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42210         lib/linebreak.c.
42211         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42212         lib/linebreak.c.
42213         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42214         lib/linebreak.c.
42215         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42216         lib/linebreak.c.
42217         * modules/unilbrk/base: New file.
42218         * modules/unilbrk/tables: New file.
42219         * modules/unilbrk/u8-possible-linebreaks: New file.
42220         * modules/unilbrk/u16-possible-linebreaks: New file.
42221         * modules/unilbrk/u32-possible-linebreaks: New file.
42222         * modules/unilbrk/ulc-common: New file.
42223         * modules/unilbrk/ulc-possible-linebreaks: New file.
42224         * modules/unilbrk/u8-width-linebreaks: New file.
42225         * modules/unilbrk/u16-width-linebreaks: New file.
42226         * modules/unilbrk/u32-width-linebreaks: New file.
42227         * modules/unilbrk/ulc-width-linebreaks: New file.
42228         * lib/linebreak.h: Remove file.
42229         * lib/linebreak.c: Remove file.
42230         * m4/linebreak.m4: Remove file.
42231         * modules/linebreak: Remove file.
42232         * NEWS: Mention the changes.
42233
42234 2008-05-09  Eric Blake  <ebb9@byu.net>
42235
42236         Add xmemdup0.
42237         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42238         implementation.
42239         * lib/xmalloc.c (xmemdup0): New C implementation.
42240
42241 2008-05-08  Bruno Haible  <bruno@clisp.org>
42242
42243         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42244
42245 2008-05-07  Eric Blake  <ebb9@byu.net>
42246
42247         Support cross-compilation of <wctype.h>.
42248         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42249         AC_CACHE_CHECK.
42250
42251 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42252
42253         * build-aux/vc-list-files: Add support for bzr.
42254
42255 2008-05-03  Jim Meyering  <meyering@redhat.com>
42256
42257         avoid failed assertion with tight malloc
42258         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42259
42260 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42261
42262         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42263         are needed from arpa/inet.h.
42264         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42265         Reported by Bruno Haible.
42266
42267 2008-05-02  Jim Meyering  <meyering@redhat.com>
42268
42269         avoid compilation error on FreeBSD 6
42270         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42271
42272 2008-05-01  Jim Meyering  <meyering@redhat.com>
42273
42274         useless-if-before-free: correct --help's exit status description
42275         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42276         for one or more matches, etc.  Reported by Bruno Haible.
42277
42278         vc-list-files: make the stand-alone gnulib test work
42279         * modules/vc-list-files-tests (configure.ac):
42280         Define and AC_SUBST abs_aux_dir.
42281         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42282         $(abs_top_srcdir) to each script and having each of them
42283         duplicate the work of setting PATH, set PATH here, using
42284         the new variable, abs_aux_dir instead.
42285         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42286         * tests/test-vc-list-files-git.sh: Likewise.
42287         Reported by Bruno Haible.
42288
42289 2008-05-01  Bruno Haible  <bruno@clisp.org>
42290
42291         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42292         reallocation. Rename 'done' to 'found_delimiter'.
42293
42294 2008-05-01  Jim Meyering  <meyering@redhat.com>
42295
42296         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42297         * build-aux/vc-list-files: Use `...`, not $(...).
42298
42299 2008-04-30  Jim Meyering  <meyering@redhat.com>
42300
42301         add tests for vc-list-files
42302         * modules/vc-list-files-tests: New module.
42303         * tests/test-vc-list-files-cvs.sh: New file.
42304         * tests/test-vc-list-files-git.sh: New file.
42305
42306         avoid a warning from gcc
42307         * lib/getndelim2.c (IF_LINT): Define.
42308         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42309
42310         vc-list-files: work properly with build-aux/cvsu, too
42311         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42312         to all cvs-based clauses.
42313
42314         vc-list-files: work properly in the CVS+awk case, too
42315         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42316
42317         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42318         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42319         take more than one file argument, so .  Add quotes, just in case $dir
42320         ever contains a shell meta-character.  Prompted by Soren Hansen in
42321         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42322
42323 2008-04-29  Eric Blake  <ebb9@byu.net>
42324
42325         Optimize getndelim2 to use block operations when possible.
42326         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42327         freadseek, and memchr2.
42328         * lib/getndelim2.c (getndelim2): Use them for block reads.
42329
42330 2008-04-29  Bruno Haible  <bruno@clisp.org>
42331
42332         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42333         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42334         * modules/inet_ntop (Depends-on): Add extensions.
42335         * modules/inet_pton (Depends-on): Likewise.
42336         Reported by Simon Josefsson.
42337
42338 2008-04-29  Jim Meyering  <meyering@redhat.com>
42339
42340         When the is more than one match in a block, match all of them.
42341         * build-aux/useless-if-before-free: Iterate through each block
42342         until there are no more matches.
42343
42344         Fix broken useless-if-before-free script.
42345         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42346         the expression to match cast of argument to free-like function.
42347
42348 2008-04-29  Eric Blake  <ebb9@byu.net>
42349
42350         Use new header.
42351         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42352
42353 2008-04-29  Jim Meyering  <meyering@redhat.com>
42354
42355         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42356         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42357         by gnulib to exist and to declare e.g., inet_ntop.
42358         Don't include "inet_ntop.h", now removed.
42359
42360         * m4/arpa_inet_h.m4: Remove trailing blanks.
42361
42362 2008-04-29  Eric Blake  <ebb9@byu.net>
42363
42364         Silence valgrind on safe reads beyond potential array bounds.
42365         * lib/rawmemchr.valgrind: New file.
42366         * lib/strchrnul.valgrind: Likewise.
42367         * modules/rawmemchr (Files): Distribute new file.
42368         * modules/strchrnul (Files): Likewise.
42369         Suggested by Bruno Haible.
42370
42371 2008-04-29  Bruno Haible  <bruno@clisp.org>
42372
42373         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42374         (inet_ntop, inet_pton): Change portability warning's wording.
42375         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42376         Invoke gl_CHECK_NEXT_HEADERS.
42377         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42378         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42379         set ARPA_INET_H.
42380         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42381         * modules/arpa_inet (Description): No longer only for systems that
42382         lack it.
42383         (Depends-on): Add include_next.
42384         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42385         HAVE_ARPA_INET_H.
42386
42387 2008-04-29  Jim Meyering  <meyering@redhat.com>
42388
42389         * modules/mkdir (License): Re-license as LGPLv2+.
42390
42391 2008-04-29  Bruno Haible  <bruno@clisp.org>
42392
42393         * modules/rawmemchr (Maintainer): Set to Eric.
42394         * modules/strchrnul (Maintainer): Likewise.
42395
42396 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42397
42398         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42399         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42400
42401         * modules/arpa_inet (arpa/inet.h): Use them.
42402
42403 2008-04-28  Eric Blake  <ebb9@byu.net>
42404
42405         Test getndelim2.
42406         * modules/getndelim2-tests: New file.
42407         * tests/test-getndelim2.c: Likewise.
42408         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42409         stream.
42410         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42411
42412         * MODULES.html.sh: Document new module.
42413
42414 2008-04-20  Bruno Haible  <bruno@clisp.org>
42415
42416         * lib/c-stack.c (die): Use raise.
42417         * modules/c-stack (Depends-on): Add raise.
42418
42419 2008-04-28  Bruno Haible  <bruno@clisp.org>
42420
42421         Expect rpmatch to be declared.
42422         * lib/yesno.c (rpmatch): Remove declaration.
42423
42424         Declare rpmatch.
42425         * lib/stdlib.in.h (rpmatch): New declaration.
42426         * lib/rpmatch.c: Include <stdlib.h> first.
42427         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42428         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42429         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42430         HAVE_RPMATCH.
42431         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42432         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42433         (Include): Set to <stdlib.h>.
42434         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42435         HAVE_RPMATCH.
42436         * NEWS: Document the change.
42437
42438 2008-04-28  Bruno Haible  <bruno@clisp.org>
42439
42440         Change rpmatch to use nl_langinfo when appropriate.
42441         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42442         (N_): New macro.
42443         (localized_pattern): New function/macro.
42444         (try): Remove match, nomatch arguments. Copy the pattern into safe
42445         memory before caching it.
42446         (rpmatch): Use localized_pattern. Add translator comments.
42447         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42448         Suggested by Eric Blake.
42449         * modules/rpmatch (Depends-on): Add stdbool.
42450
42451 2008-04-28  Eric Blake  <ebb9@byu.net>
42452
42453         Add rawmemchr module, matching glibc.
42454         * modules/string (Makefile.am): New indicator.
42455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42456         * lib/string.in.h (rawmemchr): Declare when appropriate.
42457         * modules/rawmemchr: New file.
42458         * m4/rawmemchr.m4: Likewise.
42459         * lib/rawmemchr.c: Likewise.
42460         * modules/rawmemchr-tests: Likewise.
42461         * tests/test-rawmemchr.c: Likewise.
42462         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42463         module.
42464         * modules/strchrnul (Depends-on): Add rawmemchr.
42465         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42466
42467         Whitespace cleanup.
42468         * tests/test-strchrnul.c: Reindent.
42469         * lib/strchrnul.c: Likewise.
42470
42471         Optimize and test strchrnul.
42472         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42473         * modules/strchrnul-tests: New file.
42474         * tests/test-strchrnul.c: Likewise.
42475
42476         Remove intprops dependency.
42477         * modules/memchr (Depends-on): Remove intprops.
42478         * modules/memrchr (Depends-on): Likewise.
42479         * modules/memchr2 (Depends-on): Likewise.
42480         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42481         * lib/memrchr.c (__memrchr): Likewise.
42482         * lib/memrchr2.c (memchr2): Likewise.
42483         Reported by Simon Josefsson.
42484
42485 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42486
42487         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42488         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42489
42490 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42491
42492         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42493
42494         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42495
42496         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42497
42498         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42499         declarations.
42500         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42501
42502         * m4/inet_pton.m4: Don't check for header files.
42503
42504         * m4/inet_ntop.m4: Don't check for header files.
42505
42506 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42507
42508         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42509         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42510         trigger for cygwin).
42511         Reported by Bruno Haible  <bruno@clisp.org>.
42512
42513 2008-04-28  Bruno Haible  <bruno@clisp.org>
42514
42515         * doc/posix-functions/strdup.texi: Mention mingw problem.
42516
42517 2008-04-27  Bruno Haible  <bruno@clisp.org>
42518
42519         * modules/stat-time-tests (Depends-on): Add sleep.
42520         * tests/test-stat-time.c (force_unlink): New function.
42521         (cleanup): Use it.
42522         (test_mtime): Remove the ctime related tests.
42523         (test_ctime): New function, containing the ctime related tests.
42524         (main): Call test_ctime, except on native Windows platforms.
42525
42526 2008-04-27  Bruno Haible  <bruno@clisp.org>
42527
42528         * lib/rpmatch.c (rpmatch): Add some comments.
42529         Reported by James Youngman <jay@gnu.org>.
42530
42531 2008-04-27  Bruno Haible  <bruno@clisp.org>
42532
42533         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42534         quiet NaNs.
42535
42536 2008-04-27  Bruno Haible  <bruno@clisp.org>
42537
42538         Make test-yesno.sh work on mingw.
42539         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42540         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42541         (main): Set stdin to binary mode.
42542         * modules/yesno-tests (Depends-on): Add binary-io.
42543
42544 2008-04-27  Bruno Haible  <bruno@clisp.org>
42545
42546         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42547         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42548         argument that lie outside the IEEE 854 domain.
42549         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42550         (gl_ISFINITE): Use it.
42551         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42552
42553 2008-04-27  Bruno Haible  <bruno@clisp.org>
42554
42555         Allow local renaming in config.h.
42556         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42557
42558 2008-04-27  Bruno Haible  <bruno@clisp.org>
42559
42560         * lib/memchr.c (__memchr): Change type of 'i'.
42561         * lib/memchr2.c (memchr2): Likewise.
42562
42563 2008-04-26  Eric Blake  <ebb9@byu.net>
42564         and Bruno Haible  <bruno@clisp.org>
42565
42566         Optimize and test memrchr.
42567         * modules/memrchr (Depends-on): Add intprops.
42568         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42569         * modules/memrchr-tests: New file.
42570         * tests/test-memrchr.c: New file.
42571
42572 2008-04-26  Bruno Haible  <bruno@clisp.org>
42573
42574         Add tentative support for DragonFly BSD.
42575         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42576         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42577         fp.
42578         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42579         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42580         * lib/fpurge.c (fpurge): Likewise.
42581         * lib/freadable.c (freaadable): Likewise.
42582         * lib/freadahead.c (freadahead): Likewise.
42583         * lib/freading.c (freading): Likewise.
42584         * lib/freadptr.c (freadptr): Likewise.
42585         * lib/freadseek.c (freadptrinc): Likewise.
42586         * lib/fseeko.c (fseeko): Likewise.
42587         * lib/fseterr.c (fseterr): Likewise.
42588         * lib/fwritable.c (fwritable): Likewise.
42589         * lib/fwriting.c (fwriting): Likewise.
42590
42591 2008-04-26  Bruno Haible  <bruno@clisp.org>
42592
42593         * lib/stdio-impl.h: New file.
42594         * lib/fbufmode.c: Include stdio-impl.h.
42595         (fbufmode): Use fp_, remove redundant #defines.
42596         * lib/fflush.c: Include stdio-impl.h.
42597         (clear_ungetc_buffer): Remove redundant #defines.
42598         * lib/fpurge.c: Include stdio-impl.h.
42599         (fpurge): Remove redundant #defines.
42600         * lib/freadable.c: Include stdio-impl.h.
42601         (freadable): Remove redundant #defines.
42602         * lib/freadahead.c: Include stdio-impl.h.
42603         (freadahead): Remove redundant #defines.
42604         * lib/freading.c: Include stdio-impl.h.
42605         (freading): Remove redundant #defines.
42606         * lib/freadptr.c: Include stdio-impl.h.
42607         (freadptr): Remove redundant #defines.
42608         * lib/freadseek.c: Include stdio-impl.h.
42609         (freadptrinc): Remove redundant #defines.
42610         * lib/fseeko.c: Include stdio-impl.h.
42611         (rpl_fseeko): Remove redundant #defines.
42612         * lib/fseterr.c: Include stdio-impl.h.
42613         (fseterr): Remove redundant #defines.
42614         * lib/fwritable.c: Include stdio-impl.h.
42615         (fwritable: Remove redundant #defines.
42616         * lib/fwriting.c: Include stdio-impl.h.
42617         (fwriting): Remove redundant #defines.
42618         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42619         * modules/fflush (Files): Likewise.
42620         * modules/fpurge (Files): Likewise.
42621         * modules/freadable (Files): Likewise.
42622         * modules/freadahead (Files): Likewise.
42623         * modules/freading (Files): Likewise.
42624         * modules/freadptr (Files): Likewise.
42625         * modules/freadseek (Files): Likewise.
42626         * modules/fseeko (Files): Likewise.
42627         * modules/fseterr (Files): Likewise.
42628         * modules/fwritable (Files): Likewise.
42629         * modules/fwriting (Files): Likewise.
42630
42631 2008-04-26  Bruno Haible  <bruno@clisp.org>
42632
42633         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42634         restore_seek_optimization, update_fpos_cache): New functions, extracted
42635         from rpl_fflush.
42636         (rpl_fflush): Use them.
42637         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42638         (gl_REPLACE_FFLUSH): Use it.
42639
42640 2008-04-26  Bruno Haible  <bruno@clisp.org>
42641
42642         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42643         on Solaris.
42644         * tests/test-xstrtoimax.sh: Likewise.
42645         * tests/test-xstrtoumax.sh: Likewise.
42646         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42647
42648 2008-04-26  Bruno Haible  <bruno@clisp.org>
42649
42650         * modules/memchr-tests: New file.
42651         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42652
42653 2008-04-26  Eric Blake  <ebb9@byu.net>
42654             Bruno Haible  <bruno@clisp.org>
42655
42656         * lib/memchr.c: Include intprops.h.
42657         (__memchr): Optimize parallel detection of matching bytes. Rename local
42658         variables. Add explanatory comments.
42659
42660 2008-04-26  Bruno Haible  <bruno@clisp.org>
42661
42662         Fix module 'memchr', broken since 2000-10-28.
42663         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42664
42665 2008-04-26  Bruno Haible  <bruno@clisp.org>
42666
42667         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42668         comments.
42669
42670 2008-04-25  Eric Blake  <ebb9@byu.net>
42671
42672         Use native fstatat on cygwin 1.7.0.
42673         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42674         first.
42675
42676 2008-04-23  Eric Blake  <ebb9@byu.net>
42677
42678         Improve memchr2 performance.
42679         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42680         NUL bytes.
42681         * modules/memchr2 (Depends-on): Use intprops.h.
42682
42683 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42684
42685         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42686         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42687         <blp@cs.stanford.edu>.
42688
42689 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42690
42691         * lib/arpa_inet.in.h: New file.
42692
42693         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42694         (Makefile.am): Sed in substitute header file.
42695
42696         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42697         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42698
42699         * modules/inet_ntop (configure.ac): Use
42700         gl_ARPA_INET_MODULE_INDICATOR.
42701
42702         * modules/inet_pton (configure.ac): Use
42703         gl_ARPA_INET_MODULE_INDICATOR.
42704
42705 2008-04-22  Jim Meyering  <meyering@redhat.com>
42706
42707         * modules/verify (License): Re-license as LGPLv2+.
42708
42709 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42710
42711         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42712         parameter to void* as per POSIX standard (MinGW uses char*).
42713
42714 2008-04-21  Bruno Haible  <bruno@clisp.org>
42715
42716         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42717         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42718         Define to replacements if REPLACE_ISWCNTRL is 1.
42719         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42720         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42721         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42722         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42723         what it fixes.
42724         * doc/posix-functions/iswalpha.texi: Likewise.
42725         * doc/posix-functions/iswblank.texi: Likewise.
42726         * doc/posix-functions/iswcntrl.texi: Likewise.
42727         * doc/posix-functions/iswdigit.texi: Likewise.
42728         * doc/posix-functions/iswgraph.texi: Likewise.
42729         * doc/posix-functions/iswlower.texi: Likewise.
42730         * doc/posix-functions/iswprint.texi: Likewise.
42731         * doc/posix-functions/iswpunct.texi: Likewise.
42732         * doc/posix-functions/iswspace.texi: Likewise.
42733         * doc/posix-functions/iswupper.texi: Likewise.
42734         * doc/posix-functions/iswxdigit.texi: Likewise.
42735         Reported by Alain Guibert.
42736
42737 2008-04-21  Bruno Haible  <bruno@clisp.org>
42738
42739         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42740         Patch by Alain Guibert.
42741
42742 2008-04-21  Bruno Haible  <bruno@clisp.org>
42743
42744         Fix test failures on mingw.
42745         * tests/test-xstrtol.c (print_no_progname): New function.
42746         (main): Install it in error_print_progname hook.
42747         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42748         * tests/test-xstrtoimax.sh: Likewise.
42749         * tests/test-xstrtoumax.sh: Likewise.
42750
42751 2008-04-21  Bruno Haible  <bruno@clisp.org>
42752
42753         Fix test failure on mingw.
42754         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42755
42756 2008-04-21  Bruno Haible  <bruno@clisp.org>
42757
42758         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
42759         Actually assign a value.
42760
42761 2008-04-20  Bruno Haible  <bruno@clisp.org>
42762
42763         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
42764         take 2.
42765         * lib/canonicalize.c (canonicalize_file_name): Elide if the
42766         'canonicalize-lgpl' module is also used.
42767         * lib/canonicalize-lgpl.c: Undo last change.
42768         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
42769
42770 2008-04-20  Bruno Haible  <bruno@clisp.org>
42771
42772         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
42773         config.h. Provide _mkdir based fallback for mingw.
42774         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
42775         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
42776         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
42777         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
42778         rather than defining mkdir in config.h.
42779         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
42780         (gl_SYS_STAT_H_DEFAULTS): New macro.
42781         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
42782         HAVE_IO_H any more.
42783         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
42784         HAVE_DECL_MKDIR and HAVE_IO_H.
42785
42786 2008-04-20  Bruno Haible  <bruno@clisp.org>
42787
42788         * lib/isapipe.c: Port to native Windows platforms.
42789
42790 2008-04-20  Bruno Haible  <bruno@clisp.org>
42791
42792         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
42793
42794 2008-04-21  Eric Blake  <ebb9@byu.net>
42795
42796         Work around preprocessors that don't handle UINTMAX_MAX.
42797         * lib/memchr2.c (memchr2): Avoid embedded #if.
42798         Reported by Alain Guibert, fix suggested by Bruno Haible.
42799
42800 2008-04-21  Simon Josefsson  <simon@josefsson.org>
42801
42802         * doc/posix-functions/strftime.texi (strftime): Explain better
42803         Windows incompatibility.  Suggested by Micah Cowan
42804         <micah@cowan.name>.
42805
42806 2008-04-20  Bruno Haible  <bruno@clisp.org>
42807
42808         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
42809         unistr/u8-mblen.
42810
42811 2008-04-20  Bruno Haible  <bruno@clisp.org>
42812
42813         Fix test failure on platforms with non-GNU iconv.
42814         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
42815         (U_TO_U8): Use it, rather than u16_to_u8.
42816         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
42817         units at the end of the input string.
42818         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
42819
42820 2008-04-20  Bruno Haible  <bruno@clisp.org>
42821
42822         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
42823         when the resulting length is 0.
42824         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
42825
42826 2008-04-20  Bruno Haible  <bruno@clisp.org>
42827
42828         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
42829         works.
42830         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
42831
42832 2008-04-20  Bruno Haible  <bruno@clisp.org>
42833
42834         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
42835         * modules/tsearch-tests (configure.ac): Test for initstate function.
42836
42837 2008-04-20  Bruno Haible  <bruno@clisp.org>
42838
42839         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
42840         for nlink_t if missing.
42841         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
42842
42843 2008-04-19  Bruno Haible  <bruno@clisp.org>
42844
42845         Work around snprintf bug on Linux libc5.
42846         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
42847         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42848         gl_SNPRINTF_SIZE1.
42849         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42850         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
42851         that test failed.
42852         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42853         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
42854         * modules/snprintf (Files): Add m4/printf.m4.
42855         * modules/vsnprintf (Files): Likewise.
42856         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
42857         * doc/posix-functions/vsnprintf.texi: Likewise.
42858
42859 2008-04-19  Bruno Haible  <bruno@clisp.org>
42860
42861         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
42862         from 0.0058 to less than 10^-7.
42863
42864 2008-04-19  Bruno Haible  <bruno@clisp.org>
42865
42866         Fix rounding when a precision is given.
42867         * lib/vasnprintf.c (is_borderline): New function.
42868         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
42869         9...9x.
42870         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
42871         %e, %g.
42872         * tests/test-vasprintf-posix.c (test_function): Likewise.
42873         * tests/test-snprintf-posix.h (test_function): Likewise.
42874         * tests/test-sprintf-posix.h (test_function): Likewise.
42875         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
42876         * tests/test-printf-posix.h (test_function): Likewise.
42877         * tests/test-printf-posix.output: Update.
42878         Reported by John Darrington <john@darrington.wattle.id.au> via
42879         Ben Pfaff <blp@cs.stanford.edu>.
42880
42881 2008-04-18  Simon Josefsson  <simon@josefsson.org>
42882
42883         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
42884         Suggested by Bruno Haible <bruno@clisp.org>.
42885
42886 2008-04-17  Bruno Haible  <bruno@clisp.org>
42887
42888         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
42889         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
42890         implementation.
42891         Patch by Bruce Merry <bmerry@gmail.com>.
42892
42893 2008-04-17  Simon Josefsson  <simon@josefsson.org>
42894
42895         * doc/posix-functions/strftime.texi (strftime): Mention that %e
42896         doesn't work under Windows.
42897
42898 2008-04-16  Bruno Haible  <bruno@clisp.org>
42899
42900         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
42901         New macros.
42902         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
42903         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
42904         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
42905         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
42906         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
42907         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
42908         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
42909         macros.
42910         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
42911         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
42912         Northern Sotho, Uighur.
42913
42914 2008-04-16  Bruno Haible  <bruno@clisp.org>
42915
42916         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
42917         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
42918         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
42919         Reported by Daniel Bergström <daniel@octocode.com>.
42920
42921 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
42922             Bruno Haible  <bruno@clisp.org>
42923
42924         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
42925         function.
42926         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
42927         New functions, mostly extracted from gl_locale_name_default.
42928         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
42929
42930 2008-04-16  Eric Blake  <ebb9@byu.net>
42931
42932         Adjust strtod detection to catch glibc 2.7 bug.
42933         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
42934         Reported by John Gatewood Ham.
42935
42936 2008-04-16  Bruno Haible  <bruno@clisp.org>
42937
42938         Add tentative support for Linux libc5.
42939         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
42940         * lib/fpurge.c (fpurge): Likewise.
42941         * lib/freadable.c (freadable): Likewise.
42942         * lib/freadahead.c (freadahead): Likewise.
42943         * lib/freading.c (freading): Likewise.
42944         * lib/freadptr.c (freadptr): Likewise.
42945         * lib/freadseek.c (freadptrinc): Likewise.
42946         * lib/fseeko.c (rpl_fseeko): Likewise.
42947         * lib/fseterr.c (fseterr): Likewise.
42948         * lib/fwritable.c (fwritable): Likewise.
42949         * lib/fwriting.c (fwriting): Likewise.
42950         Reported by Alain Guibert <alguibert+bts@free.fr>.
42951
42952 2008-04-15  Bruno Haible  <bruno@clisp.org>
42953
42954         * modules/mathl (configure.ac): Define module indicator.
42955
42956 2008-04-15  Bruno Haible  <bruno@clisp.org>
42957
42958         * lib/logl.c (logl): Remove unused variables.
42959
42960 2008-04-15  Bruno Haible  <bruno@clisp.org>
42961
42962         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42963         fails.
42964
42965 2008-04-15  Bruno Haible  <bruno@clisp.org>
42966
42967         * lib/trim.c (trim2): Fix argument of isspace() macro.
42968
42969 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42970
42971         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42972         to 0.
42973         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42974
42975 2008-04-14  Bruno Haible  <bruno@clisp.org>
42976
42977         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42978         AC_LANG_PROGRAM argument.
42979         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42980         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42981         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42982         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42983         * m4/math_h.m4 (gl_MATH_H): Likewise.
42984         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42985         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42986         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42987         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42988         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42989         * m4/regex.m4 (gl_REGEX): Likewise.
42990         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42991         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42992         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42993         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
42994         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42995         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42996         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42997         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42998
42999 2008-04-14  Jim Meyering  <meyering@redhat.com>
43000
43001         test-strtod: fix typos: s/abs/fabs/
43002         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
43003
43004 2008-04-13  Bruno Haible  <bruno@clisp.org>
43005
43006         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
43007         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
43008         module is also used and while not building the reloc-wrapper.
43009
43010 2008-04-13  Bruno Haible  <bruno@clisp.org>
43011
43012         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
43013
43014 2008-04-13  Bruno Haible  <bruno@clisp.org>
43015
43016         Fix AIX compilation failure introduced on 2008-04-02.
43017         * tests/test-frexp.c (exp): Undefine before redefining.
43018         * tests/test-frexpl.c (exp): Likewise.
43019
43020 2008-04-13  Bruno Haible  <bruno@clisp.org>
43021
43022         Work around a HP-UX stdio bug.
43023         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
43024         * tests/test-ftello.c (main): Likewise.
43025         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
43026         * doc/posix-functions/ftello.texi: Likewise.
43027
43028 2008-04-13  Bruno Haible  <bruno@clisp.org>
43029
43030         Make test-signbit pass on HP-UX/hppa.
43031         * tests/test-signbit.c (minus_zerol): New variable.
43032         (test_signbitl): Use it.
43033
43034 2008-04-13  Bruno Haible  <bruno@clisp.org>
43035
43036         Make truncl work on OSF/1 4.0.
43037         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
43038         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43039         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
43041         HAVE_DECL_TRUNCL.
43042         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
43043         HAVE_DECL_TRUNCL.
43044         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
43045
43046 2008-04-13  Bruno Haible  <bruno@clisp.org>
43047
43048         * lib/unictype.h: Remove trailing comma from enumeration definitions.
43049
43050 2008-04-13  Bruno Haible  <bruno@clisp.org>
43051
43052         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43053         expression, so as to avoid HP-UX 11 cc compiler bug.
43054
43055 2008-04-13  Bruno Haible  <bruno@clisp.org>
43056
43057         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
43058
43059 2008-04-13  Bruno Haible  <bruno@clisp.org>
43060
43061         * lib/git-merge-changelog.c: Remove empty declaration outside of
43062         functions.
43063
43064 2008-04-13  Bruno Haible  <bruno@clisp.org>
43065
43066         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
43067
43068 2008-04-13  Bruno Haible  <bruno@clisp.org>
43069
43070         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
43071         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
43072         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
43073         also if it exists but lacks definitions of the SHUT_* macros.
43074         * modules/sys_socket (Description): Update.
43075         Reported by Elbert Pol <e.pol@chello.nl>.
43076
43077 2008-04-13  Bruno Haible  <bruno@clisp.org>
43078
43079         * lib/localcharset.c (OS2): Don't redefine if already defined.
43080         Reported by Elbert Pol <e.pol@chello.nl>.
43081
43082 2008-04-13  Bruno Haible  <bruno@clisp.org>
43083
43084         * lib/binary-io.h [__EMX__]: Include <io.h>.
43085         Reported by Elbert Pol <e.pol@chello.nl>.
43086
43087 2008-04-12  Bruno Haible  <bruno@clisp.org>
43088
43089         * lib/fpucw.h: Enable the definitions also for x86_64.
43090         Needed for NetBSD/x86_64.
43091         Reported by Thomas Klausner <tk@giga.or.at>.
43092
43093 2008-04-12  Bruno Haible  <bruno@clisp.org>
43094
43095         * tests/test-strtod.c: Include isnand.h.
43096         (main): Use isnand instead of isnan.
43097         Reported by Jim Meyering.
43098
43099 2008-04-12  Bruno Haible  <bruno@clisp.org>
43100
43101         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43102         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43103
43104 2008-04-12  Jim Meyering  <meyering@redhat.com>
43105
43106         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43107
43108 2008-04-12  Bruno Haible  <bruno@clisp.org>
43109
43110         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43111         Reported by Elbert Pol <e.pol@chello.nl>.
43112
43113 2008-04-12  Eric Blake  <ebb9@byu.net>
43114
43115         Work around Solaris 10 math.h bug.
43116         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43117         (gl_MATH_H_DEFAULTS): Set up default.
43118         * modules/math (Makefile.am): Replace new indicators.
43119         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43120         * tests/test-math.c (main): Test this.
43121         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43122         * doc/posix-headers/math.texi (math.h): Mention bug.
43123         Reported by Nelson H. F. Beebe and Jim Meyering.
43124
43125 2008-04-11  Bruno Haible  <bruno@clisp.org>
43126
43127         Adapt to future versions of Apple GCC.
43128         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43129         Reported by Peter O'Gorman <peter@pogma.com>.
43130
43131 2008-04-11  Bruno Haible  <bruno@clisp.org>
43132
43133         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43134
43135 2008-04-11  Bruno Haible  <bruno@clisp.org>
43136
43137         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43138
43139         * modules/getaddrinfo-tests (Makefile.am): Define
43140         test_getaddrinfo_LDADD.
43141
43142 2008-04-11  Bruno Haible  <bruno@clisp.org>
43143
43144         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43145         (init): Fix syntax error.
43146         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43147         is declared.
43148
43149 2008-04-11  Bruno Haible  <bruno@clisp.org>
43150
43151         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43152         * modules/glob (Depends-on): Add stdbool.
43153
43154 2008-04-11  Bruno Haible  <bruno@clisp.org>
43155
43156         * lib/trim.c: Include <string.h>.
43157
43158 2008-04-11  Eric Blake  <ebb9@byu.net>
43159
43160         Avoid compile failure on OS/2.
43161         * lib/regex_internal.h (internal_function): Disable optimization
43162         on OS/2 (__EMX__), where it caused compiler error.
43163         Reported by Elbert Pol.
43164
43165 2008-04-11  Bruno Haible  <bruno@clisp.org>
43166
43167         Flush the standard error stream before aborting. Needed on mingw.
43168         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43169         * tests/test-array_list.c (ASSERT): Likewise.
43170         * tests/test-array_oset.c (ASSERT): Likewise.
43171         * tests/test-avltree_list.c (ASSERT): Likewise.
43172         * tests/test-avltree_oset.c (ASSERT): Likewise.
43173         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43174         * tests/test-binary-io.c (ASSERT): Likewise.
43175         * tests/test-byteswap.c (ASSERT): Likewise.
43176         * tests/test-c-ctype.c (ASSERT): Likewise.
43177         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43178         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43179         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43180         * tests/test-c-strstr.c (ASSERT): Likewise.
43181         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43182         * tests/test-canonicalize.c (ASSERT): Likewise.
43183         * tests/test-carray_list.c (ASSERT): Likewise.
43184         * tests/test-ceilf1.c (ASSERT): Likewise.
43185         * tests/test-ceilf2.c (ASSERT): Likewise.
43186         * tests/test-ceill.c (ASSERT): Likewise.
43187         * tests/test-count-one-bits.c (ASSERT): Likewise.
43188         * tests/test-fbufmode.c (ASSERT): Likewise.
43189         * tests/test-fflush2.c (ASSERT): Likewise.
43190         * tests/test-floorf1.c (ASSERT): Likewise.
43191         * tests/test-floorf2.c (ASSERT): Likewise.
43192         * tests/test-floorl.c (ASSERT): Likewise.
43193         * tests/test-fopen.c (ASSERT): Likewise.
43194         * tests/test-fpending.c (ASSERT): Likewise.
43195         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43196         * tests/test-fpurge.c (ASSERT): Likewise.
43197         * tests/test-freadable.c (ASSERT): Likewise.
43198         * tests/test-freadahead.c (ASSERT): Likewise.
43199         * tests/test-freading.c (ASSERT): Likewise.
43200         * tests/test-freadptr.c (ASSERT): Likewise.
43201         * tests/test-freadptr2.c (ASSERT): Likewise.
43202         * tests/test-freadseek.c (ASSERT): Likewise.
43203         * tests/test-freopen.c (ASSERT): Likewise.
43204         * tests/test-frexp.c (ASSERT): Likewise.
43205         * tests/test-frexpl.c (ASSERT): Likewise.
43206         * tests/test-fseek.c (ASSERT): Likewise.
43207         * tests/test-fseeko.c (ASSERT): Likewise.
43208         * tests/test-fstrcmp.c (ASSERT): Likewise.
43209         * tests/test-ftell.c (ASSERT): Likewise.
43210         * tests/test-ftello.c (ASSERT): Likewise.
43211         * tests/test-func.c (ASSERT): Likewise.
43212         * tests/test-fwritable.c (ASSERT): Likewise.
43213         * tests/test-fwriting.c (ASSERT): Likewise.
43214         * tests/test-getdelim.c (ASSERT): Likewise.
43215         * tests/test-getline.c (ASSERT): Likewise.
43216         * tests/test-i-ring.c (ASSERT): Likewise.
43217         * tests/test-iconv-utf.c (ASSERT): Likewise.
43218         * tests/test-iconv.c (ASSERT): Likewise.
43219         * tests/test-isfinite.c (ASSERT): Likewise.
43220         * tests/test-isnand.c (ASSERT): Likewise.
43221         * tests/test-isnanf.c (ASSERT): Likewise.
43222         * tests/test-isnanl.h (ASSERT): Likewise.
43223         * tests/test-ldexpl.c (ASSERT): Likewise.
43224         * tests/test-linked_list.c (ASSERT): Likewise.
43225         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43226         * tests/test-localename.c (ASSERT): Likewise.
43227         * tests/test-lseek.c (ASSERT): Likewise.
43228         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43229         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43230         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43231         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43232         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43233         * tests/test-mbschr.c (ASSERT): Likewise.
43234         * tests/test-mbscspn.c (ASSERT): Likewise.
43235         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43236         * tests/test-mbspbrk.c (ASSERT): Likewise.
43237         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43238         * tests/test-mbsrchr.c (ASSERT): Likewise.
43239         * tests/test-mbsspn.c (ASSERT): Likewise.
43240         * tests/test-mbsstr1.c (ASSERT): Likewise.
43241         * tests/test-mbsstr2.c (ASSERT): Likewise.
43242         * tests/test-mbsstr3.c (ASSERT): Likewise.
43243         * tests/test-memchr2.c (ASSERT): Likewise.
43244         * tests/test-memmem.c (ASSERT): Likewise.
43245         * tests/test-open.c (ASSERT): Likewise.
43246         * tests/test-printf-frexp.c (ASSERT): Likewise.
43247         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43248         * tests/test-printf-posix.c (ASSERT): Likewise.
43249         * tests/test-quotearg.c (ASSERT): Likewise.
43250         * tests/test-rbtree_list.c (ASSERT): Likewise.
43251         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43252         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43253         * tests/test-round1.c (ASSERT): Likewise.
43254         * tests/test-roundf1.c (ASSERT): Likewise.
43255         * tests/test-roundl.c (ASSERT): Likewise.
43256         * tests/test-signbit.c (ASSERT): Likewise.
43257         * tests/test-sleep.c (ASSERT): Likewise.
43258         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43259         * tests/test-snprintf.c (ASSERT): Likewise.
43260         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43261         * tests/test-stat-time.c (ASSERT): Likewise.
43262         * tests/test-strcasestr.c (ASSERT): Likewise.
43263         * tests/test-strerror.c (ASSERT): Likewise.
43264         * tests/test-striconv.c (ASSERT): Likewise.
43265         * tests/test-striconveh.c (ASSERT): Likewise.
43266         * tests/test-striconveha.c (ASSERT): Likewise.
43267         * tests/test-strsignal.c (ASSERT): Likewise.
43268         * tests/test-strstr.c (ASSERT): Likewise.
43269         * tests/test-strtod.c (ASSERT): Likewise.
43270         * tests/test-trunc1.c (ASSERT): Likewise.
43271         * tests/test-trunc2.c (ASSERT): Likewise.
43272         * tests/test-truncf1.c (ASSERT): Likewise.
43273         * tests/test-truncf2.c (ASSERT): Likewise.
43274         * tests/test-truncl.c (ASSERT): Likewise.
43275         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43276         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43277         * tests/test-vasnprintf.c (ASSERT): Likewise.
43278         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43279         * tests/test-vasprintf.c (ASSERT): Likewise.
43280         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43281         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43282         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43283         * tests/test-vsnprintf.c (ASSERT): Likewise.
43284         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43285         * tests/test-wcwidth.c (ASSERT): Likewise.
43286         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43287         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43288         * tests/test-xvasprintf.c (ASSERT): Likewise.
43289         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43290         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43291         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43292         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43293         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43294         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43295         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43296         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43297         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43298         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43299         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43300         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43301         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43302         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43303         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43304         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43305         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43306         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43307         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43308         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43309         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43310         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43311         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43312         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43313         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43314         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43315         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43316         * tests/unictype/test-combining.c (ASSERT): Likewise.
43317         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43318         * tests/unictype/test-digit.c (ASSERT): Likewise.
43319         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43320         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43321         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43322         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43323         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43324         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43325         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43326         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43327         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43328         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43329         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43330         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43331         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43332         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43333         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43334         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43335         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43336         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43337         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43338         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43339         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43340         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43341         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43342         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43343         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43344         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43345         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43346         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43347         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43348         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43349         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43350         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43351         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43352         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43353         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43354         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43355         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43356         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43357         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43358         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43359         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43360         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43361         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43362         Reported by Eric Blake.
43363
43364 2008-04-11  Bruno Haible  <bruno@clisp.org>
43365
43366         * lib/wchar.in.h: Tweak comment.
43367
43368 2008-04-11  Bruno Haible  <bruno@clisp.org>
43369
43370         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43371         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43372         gl_COMMON.
43373         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43374
43375 2008-04-11  Bruno Haible  <bruno@clisp.org>
43376
43377         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43378
43379 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43380
43381         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43382         of attempting to use non-existing /dev/*random.  Based on patch
43383         from Adam Strzelecki <ono@java.pl> in
43384         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43385
43386 2008-04-08  Bruno Haible  <bruno@clisp.org>
43387
43388         Add tentative support for emx+gcc.
43389         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43390         * lib/fpurge.c (fpurge): Likewise.
43391         * lib/freadable.c (freadable): Likewise.
43392         * lib/freadahead.c (freadahead): Likewise.
43393         * lib/freading.c (freading): Likewise.
43394         * lib/freadptr.c (freadptr): Likewise.
43395         * lib/freadseek.c (freadptrinc): Likewise.
43396         * lib/fseeko.c (rpl_fseeko): Likewise.
43397         * lib/fseterr.c (fseterr): Likewise.
43398         * lib/fwritable.c (fwritable): Likewise.
43399         * lib/fwriting.c (fwriting): Likewise.
43400         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43401
43402 2008-04-09  Eric Blake  <ebb9@byu.net>
43403
43404         Avoid some autoconf warnings.
43405         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43406         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43407         * m4/afs.m4 (gl_AFS): Likewise.
43408         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43409         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43410         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43411         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43412         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43413         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43414         (AC_CHECK_DECLS_ONCE): Likewise.
43415         Rename file...
43416         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43417         gnulib-tool requires autoconf 2.59 or better.
43418         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43419
43420 2008-04-08  Eric Blake  <ebb9@byu.net>
43421
43422         Use 'git describe --match' if present (added in git 1.5.5).
43423         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43424         if possible.
43425
43426 2008-04-08  Bruno Haible  <bruno@clisp.org>
43427
43428         Add tentative support for OpenServer.
43429         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43430         _ptr, _cnt.
43431         * lib/fpurge.c (fpurge): Likewise.
43432         * lib/freadable.c (freadable): Likewise.
43433         * lib/freadahead.c (freadahead): Likewise.
43434         * lib/freading.c (freading): Likewise.
43435         * lib/freadptr.c (freadptr): Likewise.
43436         * lib/freadseek.c (freadptrinc): Likewise.
43437         * lib/fseeko.c (rpl_fseeko): Likewise.
43438         * lib/fseterr.c (fseterr): Likewise.
43439         * lib/fwritable.c (fwritable): Likewise.
43440         * lib/fwriting.c (fwriting): Likewise.
43441         Reported by Roger Cornelius <rac@tenzing.org> and
43442         Brian K. White <brian@aljex.com>.
43443
43444 2008-04-06  Jim Meyering  <meyering@redhat.com>
43445
43446         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43447
43448 2008-04-06  Bruno Haible  <bruno@clisp.org>
43449
43450         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43451         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43452         * tests/test-printf-posix.sh: Likewise.
43453         * tests/test-vfprintf-posix.sh: Likewise.
43454         * tests/test-vprintf-posix.sh: Likewise.
43455         * tests/test-xprintf-posix.sh: Likewise.
43456
43457 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43458
43459         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43460         hide error from 'ls', needed on OS/2.
43461         Report by Elbert Pol <elbert.pol@gmail.com>.
43462
43463 2008-04-04  Eric Blake  <ebb9@byu.net>
43464
43465         Make test-fseeko.c failures meaningful.
43466         * tests/test-fseeko.c: Print line number on failure.
43467         * tests/test-fseek.c: Likewise.
43468         Reported by Nelson H. F. Beebe.
43469
43470         Improve strtod bug detection check.
43471         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43472         required for Solaris 10.
43473         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43474
43475 2008-04-04  Bruno Haible  <bruno@clisp.org>
43476
43477         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43478         by m4/setenv.m4.
43479
43480 2008-04-03  Eric Blake  <ebb9@byu.net>
43481
43482         Ensure sane .version contents.
43483         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43484         version string.
43485         * build-aux/git-version-gen: Improve documentation.
43486
43487         Make GNU make output nicer.
43488         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43489         MAKECMDGOALS to enforce message for all command line targets.  Set
43490         srcdir for use in maint.mk.
43491
43492         Another maintainer tweak.
43493         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43494         a target that regenerates version.
43495
43496 2008-04-03  Jim Meyering  <meyering@redhat.com>
43497
43498         vc-list-files: don't cause coreutils "make po-check" failure
43499         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43500
43501 2008-04-03  Eric Blake  <ebb9@byu.net>
43502
43503         Allow VPATH usage of vc-list-files.
43504         * build-aux/vc-list-files (scriptversion): Add timestamp.
43505         (options): Add --help, --version, -C.
43506         (CVS): Support installed cvsu.
43507
43508 2008-04-02  Bruno Haible  <bruno@clisp.org>
43509
43510         Avoid some "statement with no effect" warnings from gcc.
43511         * tests/test-wctype.c (main): Explicitly ignore unused values.
43512         Reported by Jim Meyering.
43513
43514 2008-04-02  Jim Meyering  <meyering@redhat.com>
43515
43516         Avoid some warnings from "gcc -Wshadow".
43517         * tests/test-frexp.c (exp): Define to a different identifier.
43518         * tests/test-frexpl.c (exp): Likewise.
43519
43520 2008-04-03  Jim Meyering  <meyering@redhat.com>
43521
43522         bootstrap: remove dangling *.[ch] symlinks from lib
43523         * build-aux/bootstrap [dangling symlink removal]: Move find's
43524         -depth option to precede all others, to avoid a warning.
43525         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43526
43527 2008-04-02  Bruno Haible  <bruno@clisp.org>
43528
43529         Avoid some warnings from "gcc -Wshadow".
43530         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43531         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43532         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43533         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43534         Reported by Jim Meyering.
43535
43536 2008-04-01  Bruno Haible  <bruno@clisp.org>
43537
43538         Fix test to work on IRIX 6.5 with cc.
43539         * tests/test-math.c (numeric_equal): New function.
43540         (main): Use it.
43541
43542 2008-04-01  Bruno Haible  <bruno@clisp.org>
43543
43544         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43545
43546 2008-04-01  Bruno Haible  <bruno@clisp.org>
43547
43548         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43549         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43550         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43551         (Depends-on): Remove math.
43552
43553         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43554         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43555         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43556         (Depends-on): Remove math.
43557
43558         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43559         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43560         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43561         (Depends-on): Remove math.
43562         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43563         (Depends-on): Remove math.
43564
43565         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43566         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43567         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43568         (Depends-on): Remove math.
43569         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43570         (Depends-on): Remove math.
43571
43572         * tests/test-round1.c: Include nan.h.
43573         (main): Use NaNd instead of NAN.
43574         * modules/round-tests (Files): Add tests/nan.h.
43575
43576         * tests/test-trunc1.c: Include nan.h.
43577         (main): Use NaNd instead of NAN.
43578         * modules/trunc-tests (Files): Add tests/nan.h.
43579
43580         * tests/test-roundf1.c: Include nan.h.
43581         (main): Use NaNf instead of NAN.
43582         * modules/roundf-tests (Files): Add tests/nan.h.
43583
43584         * tests/test-truncf1.c: Include nan.h.
43585         (main): Use NaNf instead of NAN.
43586         * modules/truncf-tests (Files): Add tests/nan.h.
43587
43588         * tests/test-ceilf1.c: Include nan.h.
43589         (main): Use NaNf instead of NAN.
43590         * modules/ceilf-tests (Files): Add tests/nan.h.
43591
43592         * tests/test-floorf1.c: Include nan.h.
43593         (main): Use NaNf instead of NAN.
43594         * modules/floorf-tests (Files): Add tests/nan.h.
43595
43596         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43597         (main): Use NaNf instead of NAN.
43598         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43599
43600         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43601         (main): Use NaNd instead of NAN.
43602         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43603
43604         * tests/test-frexp.c: Include nan.h.
43605         (main): Use NaNd instead of NAN.
43606         * modules/frexp-tests (Files): Add tests/nan.h.
43607
43608         * lib/isnan.c: Don't include <math.h>.
43609         (FUNC): Don't use NAN macro.
43610         * modules/isnand-nolibm (Depends-on): Remove math.
43611         * modules/isnanf-nolibm (Depends-on): Remove math.
43612         * modules/isnanl (Depends-on): Remove math.
43613         * modules/isnanl-nolibm (Depends-on): Remove math.
43614
43615         * tests/nan.h: New file.
43616
43617 2008-04-01  Eric Blake  <ebb9@byu.net>
43618
43619         Fix typos.
43620         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43621         values to be the right type.
43622
43623         For now, cater to gnulib strtod inaccuracies.
43624         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43625         fractional results.  While not as nice from a QoI perspective, it
43626         is a quicker patch than correctly implementing decimal to binary
43627         rounding.
43628
43629 2008-03-31  Eric Blake  <ebb9@byu.net>
43630
43631         Guarantee a definition of NAN.
43632         * lib/math.in.h (NAN): Define if missing.
43633         * tests/test-math.c (main): Test it.
43634         * doc/posix-headers/math.texi (math.h): Document this.
43635         * lib/isnan.c (rpl_isnand): Use it.
43636         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43637         * tests/test-floorf1.c (NaN): Likewise.
43638         * tests/test-frexp.c (NaN): Likewise.
43639         * tests/test-isnand.c (NaN): Likewise.
43640         * tests/test-isnanf.c (NaN): Likewise.
43641         * tests/test-round1.c (NaN): Likewise.
43642         * tests/test-roundf1.c (NaN): Likewise.
43643         * tests/test-snprintf-posix.h (NaN): Likewise.
43644         * tests/test-sprintf-posix.h (NaN): Likewise.
43645         * tests/test-trunc1.c (NaN): Likewise.
43646         * tests/test-truncf1.c (NaN): Likewise.
43647         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43648         * tests/test-vasprintf-posix.c (NaN): Likewise.
43649         * modules/isnand-nolibm (Depends-on): Add math.
43650         * modules/isnanf-nolibm (Depends-on): Likewise.
43651         * modules/isnanl (Depends-on): Likewise.
43652         * modules/isnanl-nolibm (Depends-on): Likewise.
43653         * modules/snprintf-posix-tests (Depends-on): Likewise.
43654         * modules/sprintf-posix-tests (Depends-on): Likewise.
43655         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43656         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43657         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43658         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43659
43660 2008-03-31  Bruno Haible  <bruno@clisp.org>
43661
43662         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43663         * doc/posix-functions/strtod.texi: Likewise.
43664
43665 2008-03-31  Bruno Haible  <bruno@clisp.org>
43666
43667         * tests/test-strtod.c (main): Don't use C99 syntax.
43668
43669 2008-03-31  Bruno Haible  <bruno@clisp.org>
43670
43671         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43672         Reported by Eric Blake.
43673
43674 2008-03-31  Jim Meyering  <meyering@redhat.com>
43675
43676         Don't compare actual signbit return values.
43677         * tests/test-strtod.c (main): Rather, compare only their
43678         zero/non-zero nature.
43679
43680 2008-03-31  Eric Blake  <ebb9@byu.net>
43681
43682         More strtod documentation.
43683         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43684         failures as distinct bugs.
43685
43686 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43687
43688         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43689         Problem reported by Erik Benada in
43690         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43691
43692 2008-03-30  Bruno Haible  <bruno@clisp.org>
43693
43694         * tests/test-strtod.c: Add comments about which assertion fails on which
43695         platform.
43696         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43697
43698 2008-03-30  Eric Blake  <ebb9@byu.net>
43699
43700         Test signbit behavior on zeros.
43701         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43702         (test_signbitd, test_signbitl): Likewise.
43703
43704         More strtod touchups.
43705         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43706         sign of negative underflow, for now.  Use .5, not .1.
43707         * doc/posix-functions/strtod.texi (strtod): Mention these
43708         limitations.
43709         Reported by Jim Meyering.
43710
43711 2008-03-30  Bruno Haible  <bruno@clisp.org>
43712
43713         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43714         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43715
43716 2008-03-30  Bruno Haible  <bruno@clisp.org>
43717
43718         Avoid failure when attempting to return empty iconv results on some
43719         platforms.
43720         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43721         allocation, don't report ENOMEM when the resulting string is empty.
43722
43723 2008-03-30  Bruno Haible  <bruno@clisp.org>
43724
43725         Fix buffer overrun.
43726         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43727         Don't consider the width for tmp_length. Check count against tmp_length
43728         before doing the padding. Ensure enough allocation during padding.
43729
43730 2008-03-30  Eric Blake  <ebb9@byu.net>
43731
43732         strtod touchups.
43733         * lib/strtod.c (strtod): Avoid compiler warnings.
43734         Reported by Jim Meyering.
43735
43736 2008-03-30  Bruno Haible  <bruno@clisp.org>
43737
43738         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43739         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43740         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43741         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43742         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43743         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43744         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43745         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43746
43747         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43748         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43749         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43750         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43751         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43752         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43753         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43754         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43755
43756         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43757         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43758         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
43759         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
43760         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
43761         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
43762         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
43763         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
43764
43765         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
43766         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
43767
43768         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
43769         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
43770
43771         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
43772         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
43773
43774         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
43775         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
43776         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
43777
43778         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
43779         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
43780         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
43781
43782         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
43783         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
43784         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
43785
43786         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
43787         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
43788         * modules/vasprintf (Depends-on): Add EOVERFLOW.
43789
43790         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
43791         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
43792         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
43793         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
43794         (Depends-on): Add EOVERFLOW.
43795         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
43796         (Depends-on): Add EOVERFLOW.
43797         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43798         (Depends-on): Add EOVERFLOW.
43799         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43800         (Depends-on): Add EOVERFLOW.
43801         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43802         (Depends-on): Add EOVERFLOW.
43803         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43804         (Depends-on): Add EOVERFLOW.
43805         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43806         (Depends-on): Add EOVERFLOW.
43807         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43808         (Depends-on): Add EOVERFLOW.
43809
43810         * lib/sprintf.c (EOVERFLOW): Remove fallback.
43811         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
43812         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
43813
43814         * lib/snprintf.c (EOVERFLOW): Remove fallback.
43815         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
43816         * modules/snprintf (Depends-on): Add EOVERFLOW.
43817
43818         * lib/poll.c (EOVERFLOW): Remove fallback.
43819         * modules/poll (Depends-on): Add EOVERFLOW.
43820
43821         * lib/getugroups.c (EOVERFLOW): Remove fallback.
43822         * modules/getugroups (Depends-on): Add EOVERFLOW.
43823
43824         * lib/getdelim.c (EOVERFLOW): Remove fallback.
43825         * modules/getdelim (Depends-on): Add EOVERFLOW.
43826
43827         * lib/ftell.c (EOVERFLOW): Remove fallback.
43828         * modules/ftell (Depends-on): Add EOVERFLOW.
43829
43830         * lib/fprintf.c (EOVERFLOW): Remove fallback.
43831         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
43832         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
43833
43834         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
43835
43836         * modules/EOVERFLOW-tests: New file.
43837         * tests/test-EOVERFLOW.c: New file.
43838
43839         * modules/EOVERFLOW: New file.
43840         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
43841
43842 2008-03-30  Bruno Haible  <bruno@clisp.org>
43843
43844         Fix bug introduced on 2007-06-10.
43845         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
43846         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
43847
43848 2008-03-30  Bruno Haible  <bruno@clisp.org>
43849
43850         Improve freadseek's efficiency after ungetc.
43851         * lib/freadseek.c: Include freadahead.h.
43852         (freadptrinc): New function, extracted from freadseek.
43853         (freadseek): Use it in a loop. Use freadahead to determine the number
43854         of loop iterations.
43855         * modules/freadseek (Depends-on): Add freadahead.
43856         (configure.ac): Require AC_C_INLINE.
43857
43858 2008-03-30  Bruno Haible  <bruno@clisp.org>
43859
43860         * lib/freadseek.c (freadseek): Don't ignore the return value of
43861         freadptr.
43862
43863 2008-03-29  Eric Blake  <ebb9@byu.net>
43864
43865         Add hex float support.
43866         * modules/strtod (Depends-on): Add c-ctype.
43867         (Link): Mention POW_LIB.
43868         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
43869         whitespace between 'e' and exponent.
43870         * tests/test-strtod.c (main): Enable hex float tests.
43871         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
43872         now provides.
43873
43874         Document various strtod bugs, with some fixes.
43875         * doc/posix-functions/strtod.texi (strtod): Document bugs with
43876         "-0x", "inf", "nan", and hex constants.
43877         * doc/posix-functions/atof.texi (atof): Likewise.
43878         * modules/stdlib (Makefile.am): Support strtod.
43879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43880         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
43881         detect additional strtod bugs.
43882         * lib/stdlib.in.h (rpl_strtod): Add declarations.
43883         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
43884         bool where appropriate.  Parse 'inf' and 'nan'.
43885         * tests/test-strtod.c: New file.
43886         * modules/strtod (Depends-on): Add stdbool, stdlib.
43887         (configure.ac): Turn on module indicator.
43888         * modules/strtod-tests: New module.
43889
43890 2008-03-29  Eric Blake  <ebb9@byu.net>
43891
43892         Fix ftell on mingw.
43893         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
43894         * modules/ftell-tests (Depends-on): Add binary-io.
43895         * modules/ftello-tests (Depends-on): Likewise.
43896         * tests/test-ftell.c (main): Enhance test to cover behavior after
43897         ungetc.  Enforce binary mode.
43898         * tests/test-ftello.c (main): Likewise.
43899
43900         Pass test-freadseek on cygwin.
43901         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
43902         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
43903         ungetc buffer.
43904
43905         * tests/test-fflush2.c (main): Fix typo.
43906
43907 2008-03-29  Bruno Haible  <bruno@clisp.org>
43908
43909         * tests/test-fflush2.c (main): Temporarily disable the contents of
43910         this test.
43911         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
43912         Reported by Eric Blake.
43913
43914 2008-03-28  Simon Josefsson  <simon@josefsson.org>
43915
43916         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
43917         (GC_SHA224_DIGEST_SIZE): Add.
43918
43919         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
43920         (gc_hash_digest_length): Likewise.
43921         (gc_hash_buffer): Likewise.
43922
43923 2008-03-25  Bruno Haible  <bruno@clisp.org>
43924
43925         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
43926         detail which gettext release to use.
43927         Reported by Simon Josefsson.
43928
43929 2008-03-26  Jim Meyering  <meyering@redhat.com>
43930
43931         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
43932         * modules/gnumakefile (clean-GNUmakefile): Also, use
43933         test ... && ... || : syntax rather than if-then ... fi.
43934
43935         gnumakefile: Don't double-quote-expand $(VPATH) value.
43936         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
43937
43938 2008-03-24  Eric Blake  <ebb9@byu.net>
43939
43940         Alter GNUmakefile to install into top directory.
43941         * modules/maintainer-makefile: Split, and add dependency...
43942         * modules/gnumakefile: to this new module.
43943         * build-aux/GNUmakefile: Move...
43944         * top/GNUmakefile: ...here.
43945         * build-aux/maint.mk: Move...
43946         * top/maint.mk: ...here.
43947         * MODULES.html.sh (Support for maintaining...): Document new
43948         module.
43949
43950 2008-03-23  Bruno Haible  <bruno@clisp.org>
43951
43952         * gnulib-tool: New options --vc-files, --no-vc-files.
43953         (func_usage): Document them.
43954         (vc_files): New variable.
43955         (func_import): Consider vc_files.
43956         (func_create_testdir): Set vc_files to empty.
43957         Suggested by Jim Meyering and Karl Berry.
43958
43959 2008-03-23  Bruno Haible  <bruno@clisp.org>
43960
43961         Fix regex compilation error on HP-UX 11.
43962         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43963         * modules/regex (Files): Add m4/mbstate_t.m4.
43964         Reported by Ton Voon <ton.voon@altinity.com>.
43965
43966 2008-03-23  Bruno Haible  <bruno@clisp.org>
43967
43968         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43969
43970 2008-03-23  Eric Blake  <ebb9@byu.net>
43971             Bruno Haible  <bruno@clisp.org>
43972
43973         Install files from top/ in the destination directory.
43974         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43975         augmentation also for the files from top/.
43976         (func_import, func_create_testdir): Rewrite file names:
43977         top/filename -> filename.
43978
43979 2008-03-23  Bruno Haible  <bruno@clisp.org>
43980
43981         Tweak "gnulib --version" output.
43982         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43983
43984 2008-03-23  Bruno Haible  <bruno@clisp.org>
43985
43986         Tweak "gnulib --version" output.
43987         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43988         rather than contents of ChangeLog, when possible.
43989
43990 2008-03-21  Eric Blake  <ebb9@byu.net>
43991
43992         More --version tweaks.
43993         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
43994         date of last ChangeLog entry.
43995
43996 2008-03-21  Jim Meyering  <meyering@redhat.com>
43997
43998         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
43999
44000 2008-03-20  Eric Blake  <ebb9@byu.net>
44001
44002         VPATH fix.
44003         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
44004
44005 2008-03-20  Simon Josefsson  <simon@josefsson.org>
44006
44007         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
44008         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
44009
44010 2008-03-20  Eric Blake  <ebb9@byu.net>
44011
44012         Sync GNUmakefile with coreutils.
44013         * build-aux/GNUmakefile (have-Makefile): Rename...
44014         (_have-Makefile): ...to this, for namespace consideration.
44015         (GNUmakefile.cfg): Include, if present.
44016         (_autoreconf): Define a default.
44017         (_is-dist-target): New rule for rebuilds to pick up intra-release
44018         version.
44019         (maint-cfg.mk): Rename...
44020         (cfg.mk): ...to this.
44021
44022 2008-03-18  Jim Meyering  <meyering@redhat.com>
44023
44024         New script and module: mktempd
44025         * MODULES.html.sh (maint+release support): Add mktempd.
44026         * build-aux/mktempd: New file.
44027         * modules/mktempd: New file.
44028
44029 2008-03-15  Jim Meyering  <meyering@redhat.com>
44030
44031         Undo last change.
44032         * lib/sha1.c, lib/md5.c: 63 != ~63.
44033         Reported by Andreas Schwab.
44034
44035         sha1.c, md5.c: Hoist a redundant expression.
44036         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
44037         "ctx->buflen" only once, before calling *_process_block.
44038         * lib/md5.c (md5_process_bytes): Likewise.
44039
44040 2008-03-14  Eric Blake  <ebb9@byu.net>
44041
44042         Bump copyright year in files generated by gnulib-tool.
44043         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
44044         gnulib-tool, rather than hard-coding it.
44045
44046         Fix 'gnulib-tool --version' output to work with git.
44047         * gnulib-tool (func_gnulib_dir): New function, extracted from...
44048         (startup): ...here.
44049         (func_version): Use it to invoke git-version-gen, rather than
44050         relying on CVS keyword expansion.  Modernize wording.
44051         (cvsdatestamp, last_checkin_date, version): Kill unused
44052         variables.
44053
44054 2008-03-12  Jim Meyering  <meyering@redhat.com>
44055
44056         Recognize optional cast of the argument to free.
44057         * build-aux/useless-if-before-free: Update regexps.
44058
44059         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
44060
44061 2008-03-11  Bruno Haible  <bruno@clisp.org>
44062
44063         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
44064         by a single package.
44065         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
44066         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
44067         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
44068         Reported by Sam Steingold <sds@gnu.org>.
44069
44070 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44071
44072         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
44073         repositories.
44074
44075 2008-03-11  Bruno Haible  <bruno@clisp.org>
44076
44077         Avoid conflicts between local macro definitions.
44078         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44079         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
44080
44081 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
44082             Bruno Haible  <bruno@clisp.org>
44083
44084         Make va_copy work with some version of xlc on AIX 5.1.
44085         * lib/stdarg.in.h: New file.
44086         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44087         On AIX, use a <stdarg.h> file substitute.
44088         * modules/stdarg (Files): Add lib/stdarg.in.h.
44089         (Depends-on): Add include_next.
44090         (Makefile.am): Build a stdarg.h substitute if requested.
44091         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44092
44093 2008-03-10  Bruno Haible  <bruno@clisp.org>
44094
44095         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44096         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44097         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44098
44099 2008-03-10  Bruno Haible  <bruno@clisp.org>
44100
44101         * modules/stdlib (Depends-on): Add include_next, remove
44102         absolute-header.
44103
44104 2008-03-09  Bruno Haible  <bruno@clisp.org>
44105
44106         * lib/freadahead.h (freadahead): Document more precisely.
44107         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44108         the sum of both buffer sizes.
44109         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44110         * NEWS: Document the change.
44111
44112 2008-03-09  Bruno Haible  <bruno@clisp.org>
44113
44114         Extend freadptr to return also the buffer size.
44115         * lib/freadptr.h (freadptr): Add sizep argument.
44116         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44117         (freadptr): Add sizep argument. Determine buffer size like freadahead
44118         does.
44119         * tests/test-freadptr.c: Don't include freadahead.h.
44120         (main): Adapt for new calling convention of freadptr.
44121         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44122         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44123         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44124         tests/test-freadptr2.sh.
44125         (Depends): Remove freadahead.
44126         (TESTS): Add test-freadptr2.sh.
44127         (check_PROGRAMS): Add test-freadptr2.
44128
44129 2008-03-09  Bruno Haible  <bruno@clisp.org>
44130
44131         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44132         Report and solution by Simon Josefsson.
44133
44134 2008-03-06  Bruno Haible  <bruno@clisp.org>
44135
44136         Make fflush after ungetc work on BSD platforms.
44137         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44138         * tests/test-fflush2.c: New file.
44139         * tests/test-fflush2.sh: New file.
44140         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44141         tests/test-fflush2.c.
44142         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44143         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44144
44145 2008-03-06  Eric Blake  <ebb9@byu.net>
44146
44147         Likewise for ftello.
44148         * modules/ftello (Dependencies): Add extensions.
44149         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44150
44151 2008-03-06  Bruno Haible  <bruno@clisp.org>
44152
44153         * modules/fseeko (Dependencies): Add extensions.
44154         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44155         Needed on glibc systems.
44156
44157 2008-03-06  Bruno Haible  <bruno@clisp.org>
44158
44159         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44160         email address.
44161         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44162
44163 2008-03-06  Bruno Haible  <bruno@clisp.org>
44164
44165         * users.txt: Add libgnupdf.
44166
44167 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44168
44169         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44170         (Header File Substitutes, Function Substitutes,
44171         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44172         (Build robot for gnulib): Fix typo.
44173
44174 2008-03-06  Bruno Haible  <bruno@clisp.org>
44175
44176         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44177         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44178
44179 2008-03-06  Bruno Haible  <bruno@clisp.org>
44180
44181         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44182         * doc/gnulib.texi: Include it.
44183
44184 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44185
44186         * modules/func (License): Change license to unlimited; there was
44187         no LGPL parts in the module anyway.
44188
44189 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44190
44191         * modules/__func__: Renamed to modules/func.
44192         * modules/__func__-tests: Renamed to modules/func-tests.
44193         * tests/test-__func__.c: Renamed to tests/test-func.c.
44194         * m4/__func__.m4: Renamed to m4/func.m4.
44195         * doc/gnulib.texi (__func__): Section renamed to func.
44196         Suggested by Eric Blake <ebb9@byu.net>.
44197
44198 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44199
44200         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44201         about __func__.  Make example self-contained.  Suggested by Eric
44202         Blake <ebb9@byu.net>.
44203
44204         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44205         Suggested by Eric Blake <ebb9@byu.net>.
44206
44207 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44208
44209         * modules/__func__: New file.
44210         * modules/__func__-tests: New file.
44211         * tests/test-__func__.c: New file.
44212         * m4/__func__.m4: New file.
44213         * doc/gnulib.texi (__func__): Document __func__ module.
44214
44215 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44216
44217         * modules/byteswap (License): Re-license as LGPLv2+.
44218
44219 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44220
44221         * doc/Makefile: Add pdf target.
44222
44223 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44224
44225         * modules/inline (License): Use 'unlimited', since there are only
44226         *.m4 files in this module.
44227
44228 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44229             Bruno Haible  <bruno@clisp.org>
44230
44231         Add support for HP C 7.1 on OpenVMS 8.3.
44232         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44233
44234 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44235
44236         Update VMS specifics.
44237         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44238
44239 2008-03-02  Jim Meyering  <meyering@redhat.com>
44240
44241         Remove the last dependency on the "free" module.
44242         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44243         Reported by Bob Proulx.
44244
44245         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44246
44247         Remove useless "if" tests before free.  Deprecate "free" module.
44248         * doc/posix-functions/free.texi: Mention that this
44249         module is no longer useful.
44250         * modules/free (Notice): Say this module is obsolete.
44251         * modules/readutmp (Depends-on): Remove free.
44252         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44253         * lib/putenv.c (putenv): Likewise.
44254         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44255         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44256         * tests/test-c-strcasestr.c (main): Likewise.
44257         * tests/test-c-strstr.c (main): Likewise.
44258         * tests/test-mbscasestr1.c (main): Likewise.
44259         * tests/test-mbscasestr2.c (main): Likewise.
44260         * tests/test-mbsstr1.c (main): Likewise.
44261         * tests/test-mbsstr2.c (main): Likewise.
44262         * tests/test-memmem.c (main): Likewise.
44263         * tests/test-strcasestr.c (main): Likewise.
44264         * tests/test-striconv.c (main): Likewise.
44265         * tests/test-striconveh.c (main): Likewise.
44266         * tests/test-striconveha.c (main): Likewise.
44267         * tests/test-strstr.c (main): Likewise.
44268
44269         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44270
44271         bootstrap: sync from coreutils again
44272         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44273
44274 2008-03-01  Jim Meyering  <meyering@redhat.com>
44275
44276         bootstrap: sync from coreutils
44277         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44278         also when the target doesn't exist.
44279
44280 2008-03-01  Eric Blake  <ebb9@byu.net>
44281
44282         Fix bugs in last patch.
44283         * lib/memchr2.c (memchr2): Fix typo.
44284         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44285         extension.
44286         Reported by Bruce Korb.
44287
44288         New module 'memchr2'.
44289         * modules/memchr2: New file.
44290         * modules/memchr2-tests: Likewise.
44291         * lib/memchr2.h: Likewise.
44292         * lib/memchr2.c: Likewise, based on memchr.c.
44293         * tests/test-memchr2.c: New test.
44294         * MODULES.html.sh (String handling): Add memchr2.
44295
44296 2008-02-29  Bruno Haible  <bruno@clisp.org>
44297
44298         * modules/freadseek-tests: New file.
44299         * tests/test-freadseek.sh: New file.
44300         * tests/test-freadseek.c: New file.
44301
44302         New module 'freadseek'.
44303         * modules/freadseek: New file.
44304         * lib/freadseek.h: New file.
44305         * lib/freadseek.c: New file.
44306         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44307
44308 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44309
44310         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44311         wydawca.
44312
44313         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44314         program_invocation_name and program_invocation_short_name are
44315         present.
44316
44317 2008-02-28  Bruno Haible  <bruno@clisp.org>
44318
44319         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44320         * tests/test-freadptr.sh: Also test non-seekable stdin.
44321
44322 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44323
44324         * build-aux/bootstrap (source_base, m4_base)
44325         (doc_base, tests_base): New variables.
44326         (gnulib_tool_options): Do not hardcode base directories, use
44327         the above variables instead.
44328
44329 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44330
44331         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44332
44333 2008-02-28  Bruno Haible  <bruno@clisp.org>
44334
44335         * modules/freadptr-tests: New file.
44336         * tests/test-freadptr.sh: New file.
44337         * tests/test-freadptr.c: New file.
44338
44339         New module 'freadptr'.
44340         * modules/freadptr: New file.
44341         * lib/freadptr.h: New file.
44342         * lib/freadptr.c: New file.
44343         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44344
44345 2008-02-26  Karl Berry  <karl@freefriends.org>
44346
44347         Sync from Libtool:
44348         * libltdl/argz.c (argz_add, argz_count): New functions.
44349         * libltdl/argz.in.h: Declare them.
44350         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44351
44352 2008-02-22  Bruno Haible  <bruno@clisp.org>
44353
44354         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44355         is a pointer type.  Needed for HP-UX 10.
44356         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44357         * doc/posix-functions/gmtime_r.texi: Likewise.
44358         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44359
44360 2008-02-24  Bruno Haible  <bruno@clisp.org>
44361
44362         * modules/environ-tests: New file.
44363         * tests/test-environ.c: New file.
44364
44365         New module 'environ'.
44366         * modules/environ: New file.
44367         * lib/unistd.in.h (environ): New declaration.
44368         * m4/environ.m4: New file.
44369         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44370         after use.
44371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44372         HAVE_DECL_ENVIRON.
44373         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44374         HAVE_DECL_ENVIRON.
44375         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44376         wrong claim that 'environ' is missing on some systems.
44377         * modules/execute (Depends-on): Add environ.
44378         * lib/execute.c (environ): Remove fallback declaration.
44379         * modules/pipe (Depends-on): Add environ.
44380         * lib/pipe.c (environ): Remove fallback declaration.
44381         * modules/setenv (Depends-on): Add environ.
44382         * lib/setenv.c (environ): Remove fallback declaration.
44383         * modules/unsetenv (Depends-on): Add environ.
44384         * lib/unsetenv.c (environ): Remove fallback declaration.
44385         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44386         m4/environ.m4.
44387         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44388         (gl_PREREQ_UNSETENV): Likewise.
44389
44390 2008-02-24  Bruno Haible  <bruno@clisp.org>
44391
44392         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44393
44394 2008-02-20  Bob Proulx  <bob@proulx.com>
44395
44396         Enable use of older two part flavor 'git describe'.
44397         * build-aux/git-version-gen: If using the older two part flavor of
44398         git version then recreate the third part now present in the
44399         newer three part flavor of git describe.
44400
44401 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44402
44403         * lib/fts.c (fts_build): Typo correction to comment.
44404
44405 2008-02-17  Bruno Haible  <bruno@clisp.org>
44406
44407         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44408         generating no-op conflicts.
44409
44410 2008-02-17  Bruno Haible  <bruno@clisp.org>
44411
44412         Speed up by 10%.
44413         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44414         result_entries, rather than an index-based loop.
44415
44416 2008-02-17  Bruno Haible  <bruno@clisp.org>
44417
44418         Speed up by 25%.
44419         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44420         'hashcode_cached'.
44421         (entry_create): New function.
44422         (entry_hashcode): Use the cached hashcode if possible.
44423         (read_changelog_file, try_split_merged_entry): Use entry_create.
44424
44425 2008-02-17  Bruno Haible  <bruno@clisp.org>
44426
44427         Speed up from O(n^2) to O(n) for long ChangeLog files.
44428         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44429         (read_changelog_file): Change implementation of entries_reversed list
44430         to rbtreehash.
44431         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44432
44433 2008-02-17  Bruno Haible  <bruno@clisp.org>
44434
44435         New option --split-merged-entry.
44436         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44437         (find_paragraph_end, try_split_merged_entry): New functions.
44438         (long_options): Add option --split-merged-entry.
44439         (usage): Document option --split-merged-entry.
44440         (main): Implement option --split-merged-entry.
44441         Reported by Eric Blake.
44442
44443 2008-02-17  Bruno Haible  <bruno@clisp.org>
44444
44445         * lib/git-merge-changelog.c: Include c-strstr.h.
44446         (main): Support the "git pull --rebase" situation.
44447         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44448         Reported by Eric Blake.
44449
44450 2008-02-16  Eric Blake  <ebb9@byu.net>
44451
44452         Avoid doubling \ in common case of "c-maybe" quoting style.
44453         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44454         eliding outer quotes.
44455         * lib/quotearg.h: Document this.
44456         * tests/test-quotearg.c (result_strings, inputs, results_g)
44457         (flag_results, locale_results): Test it by adding a new string to
44458         each test group.
44459         (compare_strings): Test new string.
44460
44461 2008-02-13  Eric Blake  <ebb9@byu.net>
44462
44463         Avoid trigraph quoting in default output.
44464         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44465         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44466         unless explicitly requested.
44467         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44468
44469 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44470
44471         Don't rely on signed integer overflowing to negative value.
44472         * lib/getugroups.c (getugroups): Include <limits.h>.
44473         Instead, compare against INT_MAX, and increment only if the test passes.
44474
44475 2008-02-13  Jim Meyering  <meyering@redhat.com>
44476         and Eric Blake  <ebb9@byu.net>
44477
44478         Avoid shadowing warning and compile errors on Linux.
44479         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44480         forwarding macros on Linux.
44481         (dcgettext): Define a stub, for Linux.
44482         (results_g, main): Avoid warnings.
44483
44484 2008-02-12  Eric Blake  <ebb9@byu.net>
44485
44486         Silence warning in last patch.
44487         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44488
44489         Quotearg part 4: add tests, fix c-maybe colon quoting.
44490         * lib/quotearg.h: Improve documentation.
44491         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44492         escapes when adding outer quotes.  When quoting trigraphs, use
44493         valid C notation.  When quoting NUL, omit extra characters if next
44494         character is not digit.  Alter prototype.
44495         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44496         callers.
44497         * modules/quotearg-tests: New module.
44498         * tests/test-quotearg.c: New test.
44499
44500 2008-02-07  Eric Blake  <ebb9@byu.net>
44501
44502         Quotearg part 3: add flag to control outer quote elision.
44503         * lib/quotearg.h (c_maybe_quoting_style): New style.
44504         (enum quoting_flags): Better documentation of flags.
44505         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44506         c-maybe style.
44507         (quotearg_buffer_restyled): Handle new flag to elide outer
44508         quotes.
44509
44510         Quotearg part 2: add flag that can control NUL elision.
44511         * lib/quotearg.h (set_quoting_flags): New prototype.
44512         * lib/quotearg.c (struct quoting_options): Add flag field.
44513         (set_quoting_flags): New function.
44514         (quotearg_buffer_restyled): Add flags parameter.
44515         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44516         (quotearg_n_options): Set the flag, since length cannot be
44517         returned.
44518         (quoting_options_from_style): Default flags correctly.
44519
44520         Quotearg part 1: more wrappers, restore quotearg_char state.
44521         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44522         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44523         (quotearg_colon_mem): New wrappers.
44524         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44525         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44526         functions.
44527         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44528         (quotearg_colon_mem): New functions.
44529
44530 2008-02-11  Bruno Haible  <bruno@clisp.org>
44531
44532         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44533         library in the current directory: it does not work with parallel make.
44534         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44535
44536 2008-02-11  Bruno Haible  <bruno@clisp.org>
44537
44538         * .gitattributes: New file.
44539
44540 2008-02-11  Jim Meyering  <meyering@redhat.com>
44541
44542         useless-if-before-free: Fix reversed exit values.
44543         * build-aux/useless-if-before-free: Use correct values
44544         for EXIT_MATCH and EXIT_NO_MATCH.
44545
44546         * build-aux/useless-if-before-free: Close stdout carefully.
44547
44548 2008-02-10  Bruno Haible  <bruno@clisp.org>
44549
44550         New module 'git-merge-changelog'.
44551         * modules/git-merge-changelog: New file.
44552         * lib/git-merge-changelog.c: New file.
44553
44554 2008-02-10  Jim Meyering  <meyering@redhat.com>
44555
44556         useless-if-before-free: New option: --list (-l).
44557
44558         useless-if-before-free: Don't exit immediately upon open failure.
44559         * build-aux/useless-if-before-free: Exit 2 for errors.
44560         Upon failure to open a file, don't exit immediately.
44561         Rather, just warn and continue with any remaining files.
44562
44563 2008-02-10  Bruno Haible  <bruno@clisp.org>
44564
44565         New abstract list operation 'node_set_value'.
44566         * lib/gl_list.h (gl_list_node_set_value): New function.
44567         (struct gl_list_implementation): New field node_set_value.
44568         * lib/gl_list.c (gl_list_node_set_value): New function.
44569         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44570         (gl_array_list_implementation): Update.
44571         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44572         (gl_carray_list_implementation): Update.
44573         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44574         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44575         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44576         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44577         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44578         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44579         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44580         Update.
44581         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44582         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44583         (gl_sublist_list_implementation): Update.
44584
44585 2008-02-10  Bruno Haible  <bruno@clisp.org>
44586
44587         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44588         Needed when ELEMENT is #defined to 'some_type *'.
44589
44590 2008-02-10  Jim Meyering  <meyering@redhat.com>
44591
44592         New script and module: useless-if-before-free
44593         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44594         * build-aux/useless-if-before-free: New file.
44595         * modules/useless-if-before-free: New file.
44596
44597         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44598
44599         xstrtol_error: Fix typo.
44600         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44601         s/exit_failure/exit_status/.
44602
44603 2008-02-09  Jim Meyering  <meyering@redhat.com>
44604
44605         New script and module: gitlog-to-changelog
44606         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44607         * modules/gitlog-to-changelog: New file.
44608         * build-aux/gitlog-to-changelog: New file.
44609
44610 2008-02-08  Jim Meyering  <meyering@redhat.com>
44611
44612         Avoid two "parameter unused" warnings.
44613         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44614         Mark "st" as used.
44615
44616         Use "git COMMAND", not "git-COMMAND".
44617         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44618         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44619         * build-aux/git-version-gen: Use "git status", not "git-status".
44620
44621 2008-02-07  Bruno Haible  <bruno@clisp.org>
44622
44623         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44624         Avoids a crash on Windows Vista.
44625         Reported by Adam Strzelecki <ono@java.pl> via
44626         Simon Josefsson <simon@josefsson.org>.
44627
44628 2008-02-06  Bruno Haible  <bruno@clisp.org>
44629
44630         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44631         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44632         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44634         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44635         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44636         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44637         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44638         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44639         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44640         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44641         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44642         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44643         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44644         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44645         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44646         left-adjust flag.
44647         * tests/test-snprintf-posix.h (test_function): Likewise.
44648         * tests/test-sprintf-posix.h (test_function): Likewise.
44649         * tests/test-vasprintf-posix.c (test_function): Likewise.
44650         * doc/posix-functions/fprintf.texi: Update.
44651         * doc/posix-functions/printf.texi: Update.
44652         * doc/posix-functions/snprintf.texi: Update.
44653         * doc/posix-functions/sprintf.texi: Update.
44654         * doc/posix-functions/vfprintf.texi: Update.
44655         * doc/posix-functions/vprintf.texi: Update.
44656         * doc/posix-functions/vsnprintf.texi: Update.
44657         * doc/posix-functions/vsprintf.texi: Update.
44658         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44659
44660 2008-02-06  Bruno Haible  <bruno@clisp.org>
44661
44662         Fix bug introduced on 2008-01-26.
44663         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44664
44665 2008-02-06  Bruno Haible  <bruno@clisp.org>
44666
44667         Fix bug introduced on 2007-06-10.
44668         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44669         !NEED_PRINTF_FLAG_ZERO.
44670
44671 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44672
44673         getloadavg: use libperfstat on AIX5
44674         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44675
44676 2008-02-03  Bruno Haible  <bruno@clisp.org>
44677
44678         * lib/diffseq.h: Add comments about required #includes.
44679         Reported by Michael Biggs <gnulib@doubleplum.net>.
44680
44681 2008-02-01  Bruno Haible  <bruno@clisp.org>
44682
44683         * users.txt: Add gnuit.
44684
44685 2008-01-31  Bruno Haible  <bruno@clisp.org>
44686
44687         * lib/md4.c (set_uint32): Mark as inline.
44688         * lib/md5.c (set_uint32): Likewise.
44689         * lib/sha1.c (set_uint32): Likewise.
44690         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44691         * m4/md5.m4 (gl_MD5): Likewise.
44692         * m4/sha1.m4 (gl_SHA1): Likewise.
44693
44694 2008-01-31  Jim Meyering  <meyering@redhat.com>
44695
44696         Use "sizeof VAR", rather than a literal "4".
44697         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44698         * lib/md4.c (md4_read_ctx): Likewise.
44699         * lib/sha1.c (sha1_read_ctx): Likewise.
44700
44701 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44702
44703         * tests/test-sha1.c: New file, based on test-md5.c.
44704
44705         * modules/crypto/sha1-tests: New file.
44706
44707 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44708
44709         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44710
44711 2008-01-31  Jim Meyering  <meyering@redhat.com>
44712
44713         Prefer "sizeof v" over the equivalent "4".
44714         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44715         * lib/md5.c (set_uint32): Likewise.
44716         * lib/sha1.c (set_uint32): Likewise.
44717
44718 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44719
44720         * lib/sha1.c (set_uint32): Mark function as static.
44721
44722 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44723
44724         md2: clarify comments to say that alignment is not required.
44725         * lib/md2.h: Remove warning about alignment in comment.
44726         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44727         never been required.
44728
44729 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44730
44731         md4: adapt alignment constraint fix from sha1.
44732         * lib/md4.c (set_uint32): New function, from sha1.c
44733         (md4_read_ctx): Use it.
44734         (md4_finish_ctx): Doc fix.
44735         * lib/md4.h: Doc fix.
44736
44737 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44738
44739         md5: adapt alignment constraint fix from sha1.
44740         * lib/md5.c (set_uint32): New function, from sha1.c
44741         (md5_read_ctx): Use it.
44742         (md5_finish_ctx): Doc fix.
44743         * lib/md5.h: Doc fix.
44744
44745 2008-01-30  Peter Palfrader  <weasel@debian.org>
44746
44747         sha1: remove the result buffer alignment constraint
44748         * lib/sha1.c (set_uint32): New function.
44749         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44750         constraint.
44751         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44752         * lib/sha1.h: Likewise.
44753
44754 2008-01-30  Andreas Schwab  <schwab@suse.de>
44755             Bruno Haible  <bruno@clisp.org>
44756
44757         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44758         correct definition of LDBL_MIN_EXP.
44759
44760 2008-01-30  Karl Berry  <karl@gnu.org>
44761
44762         * config/srclist-update: try to preserve x bit on updates.
44763         * config/srclistvars.sh: update for karl.
44764
44765 2008-01-29  Jim Meyering  <meyering@redhat.com>
44766
44767         vasnprintf.c: Avoid warning about unused label
44768         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
44769         "overflow" label definition and associated code with the
44770         same cpp condition that guards the sole use of that label.
44771
44772 2008-01-26  Bruno Haible  <bruno@clisp.org>
44773
44774         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
44775         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
44776         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
44777         * lib/isnanl-nolibm.h (isnanl): Likewise.
44778         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44779
44780 2008-01-26  Bruno Haible  <bruno@clisp.org>
44781
44782         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
44783         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
44784
44785 2008-01-26  Bruno Haible  <bruno@clisp.org>
44786
44787         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
44788         GCC >= 4.0 built-in.
44789         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
44790
44791 2008-01-26  Bruno Haible  <bruno@clisp.org>
44792
44793         Rename isnan, applicable to 'double' only, to isnand.
44794         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
44795         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
44796         (configure.ac): Update.
44797         (Include): Replace "isnan.h" with "isnand.h".
44798         * m4/isnand.m4: Renamed from m4/isnan.m4.
44799         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
44800         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
44801         instead of isnan.c.
44802         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
44803         instead of HAVE_ISNAN_IN_LIBC.
44804         (isnand): Renamed from isnan.
44805         * lib/isnand.c: New file.
44806         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
44807         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
44808         (Makefile.am): Update.
44809         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
44810         Include isnand.h instead of isnan.h.
44811         (main): Test isnand instead of isnan.
44812         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
44813         isnan-nolibm.
44814         * modules/frexp (Depends-on): Likewise.
44815         * modules/frexp-tests (Depends-on): Likewise.
44816         * modules/frexp-nolibm (Depends-on): Likewise.
44817         * modules/frexp-nolibm-tests (Depends-on): Likewise.
44818         * modules/isfinite (Depends-on): Likewise.
44819         * modules/round-tests (Depends-on): Likewise.
44820         * modules/signbit (Depends-on): Likewise.
44821         * modules/signbit-tests (Depends-on): Likewise.
44822         * modules/snprintf-posix (Depends-on): Likewise.
44823         * modules/sprintf-posix (Depends-on): Likewise.
44824         * modules/trunc-tests (Depends-on): Likewise.
44825         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44826         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44827         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44828         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44829         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44830         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44831         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44832         * modules/vasnprintf-posix (Depends-on): Likewise.
44833         * modules/vasprintf-posix (Depends-on): Likewise.
44834         * modules/vfprintf-posix (Depends-on): Likewise.
44835         * modules/vsnprintf-posix (Depends-on): Likewise.
44836         * modules/vsprintf-posix (Depends-on): Likewise.
44837         * lib/frexp.c: Include isnand.h instead of isnan.h.
44838         (ISNAN): Set to isnand instead of isnan.
44839         * lib/isfinite.c: Include isnand.h instead of isnan.h.
44840         (gl_isfinited): Use isnand instead of isnan.
44841         * lib/signbitd.c: Include isnand.h instead of isnan.h.
44842         (gl_signbitd): Use isnand instead of isnan.
44843         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
44844         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
44845         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
44846         (main): Use isnand instead of isnan.
44847         * tests/test-round1.c: Include isnand.h.
44848         (main): Use isnand instead of isnan.
44849         * tests/test-round2.c: Include isnand.h instead of isnan.h.
44850         (ISNAN): Set to isnand instead of isnan.
44851         * tests/test-trunc1.c: Include isnand.h.
44852         (main): Use isnand instead of isnan.
44853         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
44854         (equal): Use isnand instead of isnan.
44855         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
44856         isnand-nolibm.
44857         * NEWS: Mention the change.
44858
44859 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44860             Bruno Haible  <bruno@clisp.org>
44861
44862         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
44863         the GCC builtins for signbits are present and set
44864         REPLACE_SIGNBIT_USING_GCC if so.
44865         * lib/math.in.h (signbit): Define using GCC builtins if
44866         REPLACE_SIGNBIT_USING_GCC is set.
44867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
44868         REPLACE_SIGNBIT_USING_GCC.
44869         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
44870
44871 2008-01-25  Jim Meyering  <meyering@redhat.com>
44872
44873         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
44874         * lib/poll.c: Include <config.h>, not "config.h".
44875         * tests/test-getaddrinfo.c: Likewise.
44876
44877 2008-01-25  Simon Josefsson  <simon@josefsson.org>
44878
44879         * modules/sockets-tests: New file.
44880
44881 2008-01-24  Simon Josefsson  <simon@josefsson.org>
44882
44883         * modules/sockets: New module, can be used to call WSA_Startup and
44884         WSA_Cleanup when needed.
44885
44886         * lib/sockets.h, lib/sockets.c: New files.
44887
44888         * m4/sockets.m4: New file.
44889
44890         * tests/test-sockets.c: New file.
44891
44892 2008-01-19  Bruno Haible  <bruno@clisp.org>
44893
44894         * doc/posix-headers: Renamed from doc/headers.
44895         * doc/posix-functions: Renamed from doc/functions.
44896         * doc/gnulib.texi: Update.
44897
44898 2008-01-19  Bruno Haible  <bruno@clisp.org>
44899
44900         * doc/glibc-functions/strcasestr.texi: Include contents of
44901         doc/functions/strcasestr.texi, fixing the list of platforms.
44902         * doc/functions/strcasestr.texi: Remove file.
44903
44904 2008-01-19  Bruno Haible  <bruno@clisp.org>
44905
44906         * doc/glibc-functions/memmem.texi: Include contents of
44907         doc/functions/memmem.texi.
44908         * doc/functions/memmem.texi: Remove file.
44909
44910 2008-01-18  Bruno Haible  <bruno@clisp.org>
44911
44912         * doc/glibc-functions/*.texi: New files.
44913         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
44914         to use the new files.
44915
44916 2008-01-17  Bruno Haible  <bruno@clisp.org>
44917
44918         * tests/test-gethostname.c (main): Fix printf statement.
44919
44920 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44921
44922         * modules/gethostname-tests: New file.
44923
44924         * tests/test-gethostname.c: New file.
44925
44926 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44927
44928         * lib/gethostname.c: Include string.h unconditionally, strncpy is
44929         used by the UNAME case.  Reported by Bruno Haible
44930         <bruno@clisp.org>.
44931
44932 2008-01-17  Eric Blake  <ebb9@byu.net>
44933
44934         Convert c-strcasestr to be more efficient.
44935         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
44936         (Depends-on): Add c-strcase, remove malloca, strnlen.
44937         * tests/test-c-strcasestr.c (main): Enhance test.
44938         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
44939
44940 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44941
44942         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
44943         Use it in creating po/Makevars.
44944
44945 2008-01-15  Simon Josefsson  <simon@josefsson.org>
44946
44947         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
44948         Applications that requires it should initialize libgcrypt
44949         manually.
44950
44951 2008-01-16  Simon Josefsson  <simon@josefsson.org>
44952
44953         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44954
44955 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44956
44957         Fix problem with getdate on mingw32 reported by Simon Josefsson
44958         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44959         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44960         tzname", when deciding whether to declare tzname.
44961         * lib/strftime.c (tzname): Likewise.
44962
44963 2008-01-15  Bruno Haible  <bruno@clisp.org>
44964
44965         Work around a MacOS X 10.5 bug in frexpl().
44966         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44967         * doc/functions/frexpl.texi: Document the bug.
44968         Reported by Elias Pipping <pipping@gentoo.org>.
44969
44970 2008-01-14  Eric Blake  <ebb9@byu.net>
44971
44972         Touch up previous patch.
44973         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44974         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44975
44976         Convert strcasestr module to use Two-Way algorithm.
44977         * modules/strcasestr-simple: New module, based on the old
44978         strcasestr, but with Two-Way rather than KMP.
44979         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44980         * lib/string.in.h (rpl_strcasestr): Declare.
44981         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44982         performance.
44983         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44984         * modules/string (Makefile.am): Support strcasestr.
44985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44986         * modules/strcasestr-tests (Depends-on): Check for alarm.
44987         * tests/test-strcasestr.c: Augment test.
44988         * lib/str-two-way.h: Clean up stray macro.
44989         * NEWS: Document new module.
44990         * MODULES.html.sh (string handling): Likewise.
44991         * doc/functions/strcasestr.texi: New file.
44992         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44993         here, since it is not a POSIX function.
44994
44995 2008-01-14  Colin Watson  <cjwatson@debian.org>
44996             Bruno Haible  <bruno@clisp.org>
44997
44998         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
44999         works fine; if not, set REPLACE_STRSIGNAL.
45000         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
45001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45002         REPLACE_STRSIGNAL.
45003         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
45004         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
45005         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
45006
45007 2008-01-14  Bruno Haible  <bruno@clisp.org>
45008
45009         * modules/strsignal (Include): Change to <string.h>.
45010
45011 2008-01-14  Colin Watson  <cjwatson@debian.org>
45012
45013         * modules/argp (Notice): Add a notice recommending to change
45014         XGETTEXT_OPTIONS.
45015         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
45016
45017 2008-01-13  Colin Watson  <cjwatson@debian.org>
45018
45019         * modules/strsignal-tests: New file.
45020         * tests/test-strsignal.c: New file.
45021
45022         * lib/strsignal.c: New file, from glibc with modifications.
45023         * lib/siglist.h: New file, from glibc with modifications.
45024         * lib/string.in.h (strsignal): New declaration.
45025         * m4/strsignal.m4: New file.
45026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45027         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
45028         * modules/strsignal: New file.
45029         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
45030         HAVE_DECL_STRSIGNAL.
45031
45032 2008-01-13  Bruno Haible  <bruno@clisp.org>
45033
45034         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
45035         locale encoding is not ASCII. Needed for OpenBSD 4.0.
45036         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45037         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45038
45039 2008-01-13  Bruno Haible  <bruno@clisp.org>
45040
45041         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
45042         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
45043         * lib/argp.h (__attribute__): Likewise.
45044         * lib/c-stack.c (__attribute__): Likewise.
45045         * lib/error.h (__attribute__): Likewise.
45046         * lib/fts.c (__attribute__): Likewise.
45047         * lib/openat.h (__attribute__): Likewise.
45048         * lib/stdio.in.h (__attribute__): Likewise.
45049         * lib/string.in.h (__attribute__): Likewise.
45050         * lib/utimens.c (__attribute__): Likewise.
45051         * lib/vasnprintf.h (__attribute__): Likewise.
45052         * lib/xalloc.h (__attribute__): Likewise.
45053         * lib/xprintf.h (__attribute__): Likewise.
45054         * lib/xstrtol.h (__attribute__): Likewise.
45055         * lib/xvasprintf.h (__attribute__): Likewise.
45056
45057 2008-01-12  Bruno Haible  <bruno@clisp.org>
45058
45059         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
45060         * doc/glibc-headers/a.out.texi: New file.
45061         * doc/glibc-headers/aliases.texi: New file.
45062         * doc/glibc-headers/alloca.texi: New file.
45063         * doc/glibc-headers/ar.texi: New file.
45064         * doc/glibc-headers/argp.texi: New file.
45065         * doc/glibc-headers/argz.texi: New file.
45066         * doc/glibc-headers/byteswap.texi: New file.
45067         * doc/glibc-headers/crypt.texi: New file.
45068         * doc/glibc-headers/endian.texi: New file.
45069         * doc/glibc-headers/envz.texi: New file.
45070         * doc/glibc-headers/err.texi: New file.
45071         * doc/glibc-headers/error.texi: New file.
45072         * doc/glibc-headers/execinfo.texi: New file.
45073         * doc/glibc-headers/fpu_control.texi: New file.
45074         * doc/glibc-headers/fstab.texi: New file.
45075         * doc/glibc-headers/fts.texi: New file.
45076         * doc/glibc-headers/getopt.texi: New file.
45077         * doc/glibc-headers/ieee754.texi: New file.
45078         * doc/glibc-headers/ifaddrs.texi: New file.
45079         * doc/glibc-headers/libintl.texi: New file.
45080         * doc/glibc-headers/mcheck.texi: New file.
45081         * doc/glibc-headers/mntent.texi: New file.
45082         * doc/glibc-headers/obstack.texi: New file.
45083         * doc/glibc-headers/paths.texi: New file.
45084         * doc/glibc-headers/printf.texi: New file.
45085         * doc/glibc-headers/pty.texi: New file.
45086         * doc/glibc-headers/resolv.texi: New file.
45087         * doc/glibc-headers/shadow.texi: New file.
45088         * doc/glibc-headers/sysexits.texi: New file.
45089         * doc/glibc-headers/ttyent.texi: New file.
45090
45091 2008-01-12  Jim Meyering  <meyering@redhat.com>
45092
45093         announce-gen: emit Gnulib's git-based version string.
45094         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45095         New option --gnulib-version=V, where V is expected to be
45096         the output of running git describe in the gnulib directory.
45097         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45098         not useful, and plan to stop publishing an xdelta file with each
45099         coreutils release.
45100
45101         * build-aux/announce-gen: Also check for lzma-compressed files.
45102
45103 2008-01-11  Bruno Haible  <bruno@clisp.org>
45104
45105         * tests/test-memmem.c (main): Increase maximum allowed time.
45106         * tests/test-strstr.c (main): Likewise.
45107
45108 2008-01-11  Bruno Haible  <bruno@clisp.org>
45109
45110         * doc/functions/memmem.texi: Add more precisions about platforms.
45111         * doc/functions/strstr.texi: Likewise.
45112
45113 2008-01-10  Eric Blake  <ebb9@byu.net>
45114
45115         * m4/strstr.m4: Delete cruft from copy-n-paste.
45116         Reported by Bruno Haible.
45117
45118 2008-01-10  Bruno Haible  <bruno@clisp.org>
45119
45120         Make c-strstr rely on strstr.
45121         * lib/c-strstr.c: Don't include str-kmp.h.
45122         (c_strstr): Define in terms of strstr.
45123         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45124         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45125
45126 2008-01-10  Bruno Haible  <bruno@clisp.org>
45127
45128         * doc/gnulib.texi (String Functions in C Locale): New section.
45129         * doc/c-ctype.texi: New file.
45130         * doc/c-strcase.texi: New file.
45131         * doc/c-strcaseeq.texi: New file.
45132         * doc/c-strcasestr.texi: New file.
45133         * doc/c-strstr.texi: New file.
45134         * doc/c-strtod.texi: New file.
45135         * doc/c-strtold.texi: New file.
45136
45137 2008-01-10  Eric Blake  <ebb9@byu.net>
45138
45139         * lib/relocatable.h: Fix a comment.
45140
45141 2008-01-10  Eric Blake  <ebb9@byu.net>
45142
45143         Share two-way algorithm.
45144         * lib/str-two-way.h: New file, merged from...
45145         * lib/memmem.c: ...here...
45146         * lib/strstr.c: ...and here.
45147         * modules/memmem (Files): Use it.
45148         * modules/strstr (Files): Likewise.
45149
45150         Avoid quadratic strstr implementations.
45151         * lib/strstr.c: New file.
45152         * m4/strstr.m4: Likewise.
45153         * modules/strstr: Likewise.
45154         * modules/strstr-tests: Likewise.
45155         * tests/test-strstr.c: Likewise.
45156         * lib/string.in.h (rpl_strstr): Declare.
45157         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45159         * modules/string (Makefile.am): Likewise.
45160         * MODULES.html.sh (string handling): Mention new module.
45161         * doc/functions/strstr.texi (strstr): Document the bug.
45162
45163 2008-01-10  Bruno Haible  <bruno@clisp.org>
45164
45165         * lib/relocatable.h (relocate): State whether result is freshly
45166         allocated or not.
45167         * lib/relocatable.c (relocate): Return a freshly allocated string
45168         instead of a pointer to a privately held string.
45169         Reported by Sylvain Beucler <beuc@gnu.org>.
45170
45171 2008-01-10  Colin Watson  <cjwatson@debian.org>
45172
45173         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45174         s/S_ISNLK/S_ISLNK/.
45175
45176 2008-01-09  Bruno Haible  <bruno@clisp.org>
45177
45178         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45179         and other files.
45180         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45181         if it's only a guess.
45182         * modules/memmem: Simplify by depending on memmem-simple.
45183
45184 2008-01-09  Bruno Haible  <bruno@clisp.org>
45185
45186         Work around OpenBSD 4.0 tdelete() bug.
45187         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45188         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45189         macros and don't redefine the enum values.
45190         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45191         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45192         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45193
45194 2008-01-09  Bruno Haible  <bruno@clisp.org>
45195
45196         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45197         (main): Don't perform the tests if setlocale did not install a UTF-8
45198         locale. Needed on OpenBSD 4.0.
45199         * modules/wcwidth-tests (Depends-on): Add localcharset.
45200
45201 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45202
45203         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45204         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45205         * NEWS: announce this.
45206         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45207
45208 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45209         and Eric Blake  <ebb9@byu.net>
45210
45211         Add memmem-simple module.
45212         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45213         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45214         * modules/memmem-simple: New file.
45215         * modules/memmem (Description): Tweak.
45216         * MODULES.html.sh (string handling): Mention new module.
45217         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45218         addressed by memmem-simple.
45219         * NEWS: Document the difference.
45220
45221 2008-01-09  Eric Blake  <ebb9@byu.net>
45222
45223         Give gcc some memmem optimization hints.
45224         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45225         (strcasestr): Declare as pure.
45226         * modules/memmem (Maintainer): Claim my implementation.
45227
45228 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45229
45230         Support AIX 6.1 and higher.
45231         * build-aux/config.libpath: Likewise.
45232         * build-aux/config.rpath: Likewise.
45233
45234 2008-01-08  Jim Meyering  <meyering@redhat.com>
45235             Bruno Haible  <bruno@clisp.org>
45236
45237         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45238         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45239         Reported by Peter Fales in
45240         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45241
45242 2008-01-08  Bruno Haible  <bruno@clisp.org>
45243
45244         * modules/unictype/category-of (Depends-on): Add
45245         unictype/category-none.
45246         * modules/unictype/category-and-tests (Depends-on): Add
45247         unictype/category-{L,N,Lu,Nd}.
45248         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45249         * modules/unictype/category-or-tests (Depends-on): Add
45250         unictype/category-{L,N}.
45251         * modules/unictype/category-name-tests (Depends-on): Add
45252         unictype/category-{Z,Nl}.
45253         Reported by Simon Josefsson.
45254
45255 2008-01-08  Bruno Haible  <bruno@clisp.org>
45256
45257         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45258         convention better.
45259         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45260         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45261         Reported by Peter Miller <millerp@canb.auug.org.au>.
45262
45263 2008-01-08  Eric Blake  <ebb9@byu.net>
45264
45265         Rewrite memmem to guarantee linear complexity without malloc.
45266         * lib/memmem.c (memmem): Use Two-Way rather than
45267         Knuth-Morris-Pratt, to allow O(1) space usage.
45268         (critical_factorization, two_way_short_needle)
45269         (two_way_long_needle): New functions.
45270         (knuth_morris_pratt): Delete.
45271         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45272         Add stdint.
45273         * tests/test-memmem.c (main): Add tests for periodic needle and
45274         sublinear performance.
45275         * doc/functions/memmem.texi (memmem): Document other deficiencies
45276         in cygwin and older glibc.
45277
45278 2008-01-08  Bruno Haible  <bruno@clisp.org>
45279
45280         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45281         augmentation.
45282
45283 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45284
45285         Add a configure time option: --disable-acl.
45286         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45287         AC_ARG_ENABLE(acl).
45288
45289 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45290
45291         * tests/test-localename.c: Don't include obsolete "setenv.h".
45292
45293         * modules/localename-tests (Depends-on): Need unsetenv.
45294
45295 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45296
45297         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45298
45299 2008-01-06  Colin Watson  <cjwatson@debian.org>
45300
45301         * users.txt: Add man-db.
45302
45303 2008-01-07  Bruno Haible  <bruno@clisp.org>
45304
45305         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45306         previous section name.
45307
45308 2008-01-07  Bruno Haible  <bruno@clisp.org>
45309
45310         * lib/progname.c (set_program_name): Don't strip off a leading
45311         "lt-" prefix outside a .libs directory.
45312         Suggested by Paul Eggert.
45313
45314 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45315             Bruno Haible  <bruno@clisp.org>
45316
45317         Improve memory cleanup in 'relocatable' module.
45318         * lib/relocatable.h (compute_curr_prefix): Change return type to
45319         'char *'.
45320         * lib/relocatable.c (compute_curr_prefix): Change return type to
45321         'char *'. Free curr_installdir after use.
45322         (relocate): Free curr_prefix_better after use.
45323         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45324
45325 2008-01-01  Bruno Haible  <bruno@clisp.org>
45326
45327         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45328         failure on older glibc systems.
45329         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45330
45331 2008-01-05  Eric Blake  <ebb9@byu.net>
45332
45333         Avoid quadratic system memmem.
45334         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45335         Reported by Ralf Wildenhues.
45336
45337         Fix memmem test for mingw.
45338         * modules/memmem-tests (configure.ac): Check for alarm.
45339         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45340         it.
45341         * doc/functions/memmem.texi: New file.
45342         * doc/gnulib.texi (Function Substitutes): Add memmem.
45343         Reported by Bruno Haible.
45344
45345 2008-01-04  Bruno Haible  <bruno@clisp.org>
45346
45347         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45348         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45349         gl_HEADER_STRING_H_DEFAULTS.
45350
45351 2008-01-04  Eric Blake  <ebb9@byu.net>
45352
45353         Shorten duration of memmem test.
45354         * tests/test-memmem.c (main): Use alarm to declare failure if test
45355         is taking too long.
45356         Reported by Ralf Wildenhues.
45357
45358 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45359
45360         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45361         string, needed by strerror.
45362
45363 2008-01-03  Colin Watson  <cjwatson@debian.org>
45364             Bruno Haible  <bruno@clisp.org>
45365
45366         * doc/gnulib-tool.texi (Localization): New section.
45367
45368 2008-01-02  Bruno Haible  <bruno@clisp.org>
45369
45370         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45371         variables to 'unsigned char *' type.
45372         Reported by Paul Eggert.
45373
45374 2008-01-02  Jim Meyering  <jim@meyering.net>
45375
45376         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45377
45378 2007-12-31  Jim Meyering  <jim@meyering.net>
45379
45380         Avoid use of private FTS type name.
45381         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45382
45383 2007-12-30  Karl Berry  <karl@gnu.org>
45384
45385         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45386         work around defect in Texinfo and/or the standalone Info browser.
45387
45388 2007-12-30  Bruno Haible  <bruno@clisp.org>
45389
45390         Unify 5 copies of the KMP code.
45391         * lib/str-kmp.h: New file.
45392         * lib/c-strcasestr.c: Include str-kmp.h.
45393         (knuth_morris_pratt): Remove function.
45394         (c_strcasestr): Update.
45395         * lib/c-strstr.c: Include str-kmp.h.
45396         (knuth_morris_pratt): Remove function.
45397         (c_strcasestr): Update.
45398         * lib/mbscasestr.c: Include str-kmp.h.
45399         (knuth_morris_pratt_unibyte): Remove function.
45400         * lib/mbsstr.c: Include str-kmp.h.
45401         (knuth_morris_pratt_unibyte): Remove function.
45402         * lib/strcasestr.c: Include str-kmp.h.
45403         (knuth_morris_pratt): Remove function.
45404         (strcasestr): Update.
45405         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45406         * modules/c-strstr (Files): Likewise.
45407         * modules/mbscasestr (Files): Likewise.
45408         * modules/mbsstr (Files): Likewise.
45409         * modules/strcasestr (Files): Likewise.
45410         Suggested by Paul Eggert.
45411
45412 2007-12-30  Bruno Haible  <bruno@clisp.org>
45413
45414         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45415         defined.
45416
45417 2007-12-30  Bruno Haible  <bruno@clisp.org>
45418
45419         * lib/xmalloca.h: Include xalloc.h.
45420         (xnmalloca): New macro.
45421
45422 2007-12-30  Bruno Haible  <bruno@clisp.org>
45423
45424         * lib/malloca.h (nmalloca): New macro.
45425         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45426         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45427         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45428         knuth_morris_pratt_multibyte): Likewise.
45429         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45430         knuth_morris_pratt_multibyte): Likewise.
45431         * lib/memmem.c (knuth_morris_pratt): Likewise.
45432         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45433
45434 2007-12-25  Bruno Haible  <bruno@clisp.org>
45435
45436         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45437         * lib/glob.c: Don't include openat.h.
45438         (link_exists2_p): Add back the code that deals with the
45439         !GLOB_ALTDIRFUNC case.
45440         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45441         let it do the filename concatenation.
45442         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45443         * modules/glob (Depends-on): Remove openat.
45444
45445 2007-12-31  Bruno Haible  <bruno@clisp.org>
45446
45447         * modules/dirfd (License): Change to LGPLv2+.
45448         Approved by Jim Meyering.
45449
45450 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45451
45452         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45453         when multiplying M by sizeof (size_t).
45454
45455 2007-12-10  Martin Lambers  <marlam@marlam.de>
45456
45457         Override getpagesize on mingw.
45458         * lib/getpagesize.c: New file.
45459         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45460         * modules/getpagesize (Files): Add lib/getpagesize.c.
45461         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45463         REPLACE_GETPAGESIZE.
45464         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45465
45466 2007-12-25  Bruno Haible  <bruno@clisp.org>
45467
45468         * modules/localcharset (Notice): New field.
45469         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45470         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45471
45472 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45473             Bruno Haible  <bruno@clisp.org>
45474
45475         Avoid using the syntax symbol() in formatted documentation.
45476         * MODULES.html.sh (func_module): When replacing symbol() with a
45477         hyperlink, remove the parentheses. Show an error if some remain.
45478         Recognize and render the '...' syntax.
45479         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45480         Rework. Add paragraph about GCC's inlining.
45481         * doc/alloca.texi: Likewise.
45482         * doc/error.texi: Remove parentheses from symbol reference.
45483         * doc/gnulib-intro.texi: Likewise.
45484         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45485         * modules/fnmatch (Description): Reword to say "the ... function".
45486         * modules/full-read (Description): Likewise.
45487         * modules/full-write (Description): Likewise.
45488         * modules/safe-read (Description): Likewise.
45489         * modules/safe-write (Description): Likewise.
45490         * modules/strchrnul (Description): Likewise.
45491         * modules/trim (Description): Likewise.
45492         * modules/error (Description): Remove parentheses from symbol
45493         references.
45494         * modules/verror (Description): Likewise.
45495         Reported by Karl Berry.
45496
45497 2007-12-25  Bruno Haible  <bruno@clisp.org>
45498
45499         Fixup after 2007-10-16 commit.
45500         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45501
45502 2007-12-24  Bruno Haible  <bruno@clisp.org>
45503
45504         Make --enable-relocatable work with DESTDIR.
45505         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45506         to compute installdir from destprog.
45507         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45508         also set the RELOC_DESTDIR variable.
45509         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45510
45511 2007-12-24  Bruno Haible  <bruno@clisp.org>
45512
45513         Fix link error due to xalloc_die().
45514         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45515         of xreadlink.
45516         * lib/relocwrapper.c: Update comments.
45517         * build-aux/install-reloc: Remove xreadlink.c from file list.
45518         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45519         xreadlink.c.
45520         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45521
45522 2007-12-24  Bruno Haible  <bruno@clisp.org>
45523
45524         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45525         * lib/setenv.h: Remove file.
45526         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45527         lib/setenv.h.
45528         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45529         (Depends-on): Add stdlib.
45530         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45531         gl_FUNC_UNSETENV.
45532         (Include): Replace setenv.h with <stdlib.h>.
45533         * modules/unsetenv: New file.
45534         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45535         * lib/unsetenv.c: Include <stdlib.h> first.
45536         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45537         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45538         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45539         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45540         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45541         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45543         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45544         * doc/functions/unsetenv.texi: Update.
45545         * modules/xsetenv (Depends-on): Add unsetenv.
45546         * modules/getdate (Depends-on): Likewise.
45547         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45548         * lib/xsetenv.c: Don't include setenv.h.
45549         * lib/getdate.y: Likewise.
45550         * lib/relocwrapper.c: Likewise.
45551         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45552         (Depends-on): Add stdlib.
45553         * NEWS: Mention the changes.
45554         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45555
45556 2007-12-23  Bruno Haible  <bruno@clisp.org>
45557
45558         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45559         indentation.
45560
45561 2007-12-23  Bruno Haible  <bruno@clisp.org>
45562
45563         * lib/c-strcasestr.c: Add more comments.
45564         * lib/c-strstr.c: Likewise.
45565         * lib/mbscasestr.c: Likewise.
45566         * lib/mbsstr.c: Likewise.
45567         * lib/strcasestr.c: Likewise.
45568         * lib/memmem.c: Likewise.
45569
45570 2007-12-23  Bruno Haible  <bruno@clisp.org>
45571
45572         * tests/test-memmem.c: Include <string.h> first.
45573
45574 2007-12-22  Bruno Haible  <bruno@clisp.org>
45575
45576         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45577         the contents of $testsbase.
45578         Reported by Ralf Wildenhues.
45579
45580 2007-12-22  Bruno Haible  <bruno@clisp.org>
45581
45582         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45583         two variables local_ldadd_before, local_ldadd_last.
45584
45585 2007-12-20  Eric Blake  <ebb9@byu.net>
45586
45587         Work around circular library issue when cross-compiling.
45588         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45589         that progname.o does not need to pull in rpl_memcmp.
45590
45591 2007-12-19  Eric Blake  <ebb9@byu.net>
45592
45593         Fix memmem to avoid O(n^2) worst-case complexity.
45594         * lib/memmem.c (knuth_morris_pratt): New function.
45595         (memmem): Use it if first few naive iterations fail.
45596         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45597         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45598         * modules/memchr (License): Likewise.
45599         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45600         malloca.
45601         * tests/test-memmem.c: Rewrite, borrowing ideas from
45602         test-mbsstr1.c; the old version wouldn't even compile!
45603         * modules/memmem-tests: New file.
45604         * lib/string.in.h (rpl_memmem): Add declaration.
45605         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45607         REPLACE_MEMMEM.
45608
45609 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45610
45611         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45612         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45613         before any system include files, and undef after them all.  This
45614         should fix a problem on VMS reported by John E. Malmberg in
45615         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45616
45617 2007-12-17  Eric Blake  <ebb9@byu.net>
45618
45619         Revert addition of verify, for BSD/OS.
45620         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45621         can't handle large files, for the sake of obsolete platforms.
45622         * modules/fseeko (Depends-on): Remove verify.
45623         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45624         * doc/functions/ftello.texi (ftello): Likewise.
45625         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45626         Reported by Larry Jones.
45627
45628 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45629
45630         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45631         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45632
45633 2007-12-17  Jim Meyering  <meyering@redhat.com>
45634
45635         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45636         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45637         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45638         * modules/getcwd (Depends-on): Add openat.
45639         Reported by Petr Salinger.
45640
45641 2007-12-17  Bruno Haible  <bruno@clisp.org>
45642
45643         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45644         avoid a segmentation fault of the configure test on x86_64 systems.
45645
45646 2007-12-15  Jim Meyering  <meyering@redhat.com>
45647
45648         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45649
45650 2007-12-13  Eric Blake  <ebb9@byu.net>
45651
45652         Another fseek test.
45653         * tests/test-fseek.c (main): Also test ungetc handling.
45654         * tests/test-fseeko.c (main): Likewise.
45655         * modules/fseeko (Depends-on): Add verify.
45656         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45657         large.
45658         Reported by Larry Jones.
45659
45660         Fix fseeko on mingw.
45661         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45662         seek.
45663
45664         Beef up fseek tests.
45665         * tests/test-fseek.c (main): Also test eof handling.
45666         * tests/test-fseeko.c (main): Likewise.
45667         Reported by Larry Jones.
45668
45669 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45670
45671         Fix fseeko on BSD-based platforms.
45672         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45673         successful seek.
45674
45675 2007-12-12  Eric Blake  <ebb9@byu.net>
45676
45677         Allow circular dependency of separate libtests.a
45678         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45679         when use_libtests.
45680
45681 2007-12-11  Eric Blake  <ebb9@byu.net>
45682
45683         Fix bug with -0.0L in previous patch.
45684         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45685         * tests/test-isnan.c (main): Also test on zeroes.
45686         * tests/test-isnanf.c (main): Likewise.
45687         * tests/test-isnanl.h (main): Likewise.
45688
45689         Detect pseudo-denormals on x86 even when cross-compiling.
45690         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45691         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45692         invalid bit patterns that happen to satisfy ==.
45693
45694         Avoid link failures with separate libtests.a.
45695         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45696         last, to satisfy circular dependencies.
45697
45698 2007-12-11  Eric Blake  <ebb9@byu.net>
45699         and Bruno Haible  <bruno@clisp.org>
45700
45701         Fix OpenBSD 4.0 <float.h> handling of long double.
45702         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45703         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45704         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45705
45706 2007-12-11  Jim Meyering  <meyering@redhat.com>
45707
45708         * users.txt: Add libvirt.
45709
45710         Support versions of autoconf prior to 2.59c.
45711         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45712         if it is not already defined.
45713
45714 2007-12-09  Bruno Haible  <bruno@clisp.org>
45715
45716         Let 'gnulib-tool --import' collect sources needed for the tests in
45717         tests/ rather than in lib/.
45718         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45719         argument. If true, add rules to generate libtests.a, and put libtests.a
45720         into $(LDADD). Consider source files in subdirectories and set
45721         uses_subdirs.
45722         (func_emit_initmacro_start, func_emit_initmacro_end,
45723         func_emit_initmacro_done): Pass all arguments explicitly.
45724         (func_import): Determine two module lists main_modules,
45725         testsrelated_modules. Determine use_libtests. Determine two variables
45726         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45727         instead of just sed_transform_lib_file. Determine two variables
45728         main_files and testsrelated_files. Compute 'files' as the union of
45729         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45730         func_add_or_update. In the generated gnulib-comp.m4, collect the
45731         object files for tests/ in different variables than those for lib/.
45732         Substitute LIBTESTS_LIBDEPS.
45733         (func_create_testdir): Combine the uses_subdirs results from
45734         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45735
45736 2007-12-09  Bruno Haible  <bruno@clisp.org>
45737
45738         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45739         the build-aux directory.
45740
45741 2007-12-09  Bruno Haible  <bruno@clisp.org>
45742
45743         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45744         introduced on 2006-09-09.
45745
45746 2007-12-07  Jim Meyering  <meyering@redhat.com>
45747
45748         Let these macros work also with autoconf-2.59.
45749         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45750         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45751         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45752
45753 2007-12-06  Jim Meyering  <meyering@redhat.com>
45754
45755         Avoid a configure-time syntax error in gl_FUNC_ACL.
45756         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45757         function in each branch, before testing the cache variable.
45758
45759 2007-12-04  Eric Blake  <ebb9@byu.net>
45760
45761         Make scripts executable.
45762         * build-aux/config.guess: Add execute permissions.
45763         * build-aux/config.sub: Likewise.
45764         * build-aux/gendocs.sh: Likewise.
45765
45766         Fix frexp on mingw.
45767         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
45768         cross-compiling.
45769         * doc/functions/frexp.texi (frexp): Document the bug.
45770
45771         Make cygwin fseeko check more reliable.
45772         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
45773         version numbers, rather than unrelated feature check.
45774         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
45775         * doc/functions/ftello.texi (ftello): Likewise.
45776         Reported by Bruno Haible.
45777
45778         * m4/strerror.m4: Bump version number.
45779
45780 2007-12-03  Bruno Haible  <bruno@clisp.org>
45781
45782         * doc/functions/mprotect.texi: Mention the mingw problem.
45783
45784 2007-12-03  Eric Blake  <ebb9@byu.net>
45785
45786         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
45787         REPLACE_STRERROR is initialized before this macro.
45788
45789 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45790
45791         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
45792         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
45793         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
45794         put -lsec in even for programs other than 'ls'.  This fixes a problem
45795         for gettext reported by Bruno Haible in
45796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45797         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
45798         Add support for Solaris 10.  This isn't efficient, but should get the
45799         job done for now.
45800
45801 2007-12-03  James Youngman  <jay@gnu.org>
45802
45803         * doc/regexprops-generic.texi: change "an close-group" to "a
45804         close-group" and "illegal" to "not allowed".
45805
45806 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45807
45808         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
45809         pr_byname.h. Needed for the rare case when the maintainer has done
45810         "make maintainer-clean" in the source directory and then attempts a
45811         build outside the source directory.
45812         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
45813         scripts_byname.h.
45814
45815 2007-12-02  Martin Lambers <marlam@marlam.de>
45816             Bruno Haible  <bruno@clisp.org>
45817
45818         * lib/getpagesize.h: Remove file.
45819         * lib/unistd.in.h: Include declaration of getpagesize here.
45820         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
45821         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
45822         HAVE_SYS_PARAM_H.
45823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
45824         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45825         * modules/getpagesize (Files): Remove lib/getpagesize.h.
45826         (Depends-on): Add unistd.
45827         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45828         (Include): Use <unistd.h> instead of getpagesize.h.
45829         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
45830         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45831         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
45832         gl_GETPAGESIZE invocation, already handled by module dependency.
45833         * lib/pagealign_alloc.c: Don't include getpagesize.h.
45834
45835 2007-12-02  Bruno Haible  <bruno@clisp.org>
45836
45837         * modules/strings-tests: New file.
45838         * tests/test-strings.c: New file.
45839
45840         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
45841         * lib/strings.in.h: New file.
45842         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
45843         * m4/strings_h.m4: New file.
45844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
45845         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
45846         * modules/strings: New file.
45847         * modules/string (Makefile.am): Update.
45848         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
45849         Reported by Karl Berry.
45850
45851 2007-12-01  Eric Blake  <ebb9@byu.net>
45852
45853         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
45854         accomodate fix in cygwin 1.5.25.
45855
45856 2007-12-01  Jim Meyering  <meyering@redhat.com>
45857
45858         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
45859         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
45860         that would inhibit utf8-optimization of a regexp containing line-
45861         or buffer-anchors, e.g., `^', `$'.
45862
45863 2007-11-30  Bruno Haible  <bruno@clisp.org>
45864
45865         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
45866         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
45867         glthread_recursive_lock_init.
45868         * lib/lock.c (glthread_recursive_lock_init)
45869         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
45870         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45871
45872 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
45873
45874         New function qset_acl, like set_acl but with syscall semantics.
45875         * lib/acl.h (qset_acl): New decl.
45876         * lib/acl.c (qset_acl): New function.
45877         (set_acl): Use new function.  Use more-consistent diagnostics.
45878
45879 2007-11-28  Jim Meyering  <meyering@redhat.com>
45880
45881         * modules/physmem (License): Change from GPL to LGPLv2+.
45882
45883 2007-11-26  Bruno Haible  <bruno@clisp.org>
45884
45885         * lib/vasnprintf.c (decode_long_double): Don't abort if the
45886         'long double' type has excess precision.
45887         Reported by Jim Meyering in
45888         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
45889
45890 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45891
45892         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
45893         Sync from <http://gnu.org/licenses>.
45894         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
45895         with license text from same location.
45896         * doc/maintain.texi, doc/standards.texi:  Sync from
45897         <http://savannah.gnu.org/projects/gnustandards>.
45898
45899 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
45900         and Jim Meyering  <meyering@redhat.com>
45901
45902         Adjust getdate' grammar to accept a slightly more regular language.
45903         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
45904         Before, the former was rejected.
45905         * lib/getdate.y (digits_to_date_time): New function, factored
45906         out of ...
45907         (number): ...here.  Just call digits_to_date_time.
45908         (hybrid): New non-terminal to handle an <unsigned number,
45909         signed relative offset> sequence consistently.
45910
45911 2007-11-18  Jim Meyering  <meyering@redhat.com>
45912
45913         Pull my changes from coreutils:
45914         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
45915         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
45916         use of $gnulib_tool_option_extras, so that it's separated from the
45917         preceding argument.
45918
45919         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
45920         * build-aux/bootstrap (cp_mark_as_generated): Create any required
45921         parent destination directories before copying a file into place.
45922
45923 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45924
45925         bootstrap: work also with 4-argument variant of AC_INIT
45926         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
45927
45928 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45929
45930         Port test-getaddrinfo to Solaris.
45931         Problem reported by Bruno Haible in
45932         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
45933         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
45934         explanation of setting 'hints'.
45935         Don't reject an implementation merely because it returns EAI_SERVICE.
45936         (EAI_SERVICE): Define to 0 if not defined.
45937
45938 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45939
45940         The license of gnu-make and posix-shell is now "GPLed build tool".
45941         * modules/gnu-make (License): Likewise.
45942         * modules/posix-shell (License): Likewise.
45943
45944         New module posix-shell, for determining a POSIX shell
45945         or perhaps something that is close enough to a POSIX shell.
45946         * m4/posix-shell.m4: New file.
45947         * modules/posix-shell: New file.
45948
45949         * MODULES.html.sh: Mention new module.
45950
45951         New module gnu-make, for determining whether we're using GNU Make.
45952         * m4/gnu-make.m4: New file.
45953         * modules/gnu-make: New file.
45954         * MODULES.html.sh: Mention new module.
45955
45956 2007-11-14  Jim Meyering  <meyering@redhat.com>
45957
45958         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45959         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45960         use this macro to create a function _definition_.
45961         Remove useless "#undef ARGMATCH_DIE".
45962
45963 2007-11-14  Bruno Haible  <bruno@clisp.org>
45964
45965         * lib/config.charset: Update for OpenBSD 4.1.
45966         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45967
45968 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45969
45970         Document 64-bit #if problems in stdint.texi.
45971         * doc/headers/stdint.texi (stdint.h): Mention problems with
45972         64-bit-#if, and how to work around them.
45973
45974         Don't insist on 'long long int' support in the preprocessor.  It
45975         breaks too many things.  For example, PRIdMAX still uses a 'long
45976         long int' format with the latest Sun compiler, even though
45977         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45978         preprocessor problem.  This causes the latest coreutils to dump
45979         core on Solaris 10 sparc with the Sun C compiler.
45980         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45981         the troublesome expressions at configure-time, not at #if-time.
45982         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45983         preprocessor.
45984         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45985         compile-time C checks, done at 'configure'-time.
45986         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45987         * modules/inttypes (Makefile): Substitute the new symbols that
45988         gl_INTTYPES_H now generates.
45989         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45990
45991 2007-11-12  Bruno Haible  <bruno@clisp.org>
45992
45993         Tests for Unicode character classification functions.
45994
45995         * modules/unictype/bidicategory-byname-tests: New file.
45996         * modules/unictype/bidicategory-name-tests: New file.
45997         * modules/unictype/bidicategory-of-tests: New file.
45998         * modules/unictype/bidicategory-test-tests: New file.
45999         * modules/unictype/block-list-tests: New file.
46000         * modules/unictype/block-of-tests: New file.
46001         * modules/unictype/block-test-tests: New file.
46002         * modules/unictype/category-C-tests: New file.
46003         * modules/unictype/category-Cc-tests: New file.
46004         * modules/unictype/category-Cf-tests: New file.
46005         * modules/unictype/category-Cn-tests: New file.
46006         * modules/unictype/category-Co-tests: New file.
46007         * modules/unictype/category-Cs-tests: New file.
46008         * modules/unictype/category-L-tests: New file.
46009         * modules/unictype/category-Ll-tests: New file.
46010         * modules/unictype/category-Lm-tests: New file.
46011         * modules/unictype/category-Lo-tests: New file.
46012         * modules/unictype/category-Lt-tests: New file.
46013         * modules/unictype/category-Lu-tests: New file.
46014         * modules/unictype/category-M-tests: New file.
46015         * modules/unictype/category-Mc-tests: New file.
46016         * modules/unictype/category-Me-tests: New file.
46017         * modules/unictype/category-Mn-tests: New file.
46018         * modules/unictype/category-N-tests: New file.
46019         * modules/unictype/category-Nd-tests: New file.
46020         * modules/unictype/category-Nl-tests: New file.
46021         * modules/unictype/category-No-tests: New file.
46022         * modules/unictype/category-P-tests: New file.
46023         * modules/unictype/category-Pc-tests: New file.
46024         * modules/unictype/category-Pd-tests: New file.
46025         * modules/unictype/category-Pe-tests: New file.
46026         * modules/unictype/category-Pf-tests: New file.
46027         * modules/unictype/category-Pi-tests: New file.
46028         * modules/unictype/category-Po-tests: New file.
46029         * modules/unictype/category-Ps-tests: New file.
46030         * modules/unictype/category-S-tests: New file.
46031         * modules/unictype/category-Sc-tests: New file.
46032         * modules/unictype/category-Sk-tests: New file.
46033         * modules/unictype/category-Sm-tests: New file.
46034         * modules/unictype/category-So-tests: New file.
46035         * modules/unictype/category-Z-tests: New file.
46036         * modules/unictype/category-Zl-tests: New file.
46037         * modules/unictype/category-Zp-tests: New file.
46038         * modules/unictype/category-Zs-tests: New file.
46039         * modules/unictype/category-and-not-tests: New file.
46040         * modules/unictype/category-and-tests: New file.
46041         * modules/unictype/category-byname-tests: New file.
46042         * modules/unictype/category-name-tests: New file.
46043         * modules/unictype/category-none-tests: New file.
46044         * modules/unictype/category-of-tests: New file.
46045         * modules/unictype/category-or-tests: New file.
46046         * modules/unictype/category-test-withtable-tests: New file.
46047         * modules/unictype/combining-class-tests: New file.
46048         * modules/unictype/ctype-alnum-tests: New file.
46049         * modules/unictype/ctype-alpha-tests: New file.
46050         * modules/unictype/ctype-blank-tests: New file.
46051         * modules/unictype/ctype-cntrl-tests: New file.
46052         * modules/unictype/ctype-digit-tests: New file.
46053         * modules/unictype/ctype-graph-tests: New file.
46054         * modules/unictype/ctype-lower-tests: New file.
46055         * modules/unictype/ctype-print-tests: New file.
46056         * modules/unictype/ctype-punct-tests: New file.
46057         * modules/unictype/ctype-space-tests: New file.
46058         * modules/unictype/ctype-upper-tests: New file.
46059         * modules/unictype/ctype-xdigit-tests: New file.
46060         * modules/unictype/decimal-digit-tests: New file.
46061         * modules/unictype/digit-tests: New file.
46062         * modules/unictype/mirror-tests: New file.
46063         * modules/unictype/numeric-tests: New file.
46064         * modules/unictype/property-alphabetic-tests: New file.
46065         * modules/unictype/property-ascii-hex-digit-tests: New file.
46066         * modules/unictype/property-bidi-arabic-digit-tests: New file.
46067         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
46068         * modules/unictype/property-bidi-block-separator-tests: New file.
46069         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
46070         * modules/unictype/property-bidi-common-separator-tests: New file.
46071         * modules/unictype/property-bidi-control-tests: New file.
46072         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
46073         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
46074         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
46075         * modules/unictype/property-bidi-european-digit-tests: New file.
46076         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
46077         * modules/unictype/property-bidi-left-to-right-tests: New file.
46078         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
46079         * modules/unictype/property-bidi-other-neutral-tests: New file.
46080         * modules/unictype/property-bidi-pdf-tests: New file.
46081         * modules/unictype/property-bidi-segment-separator-tests: New file.
46082         * modules/unictype/property-bidi-whitespace-tests: New file.
46083         * modules/unictype/property-byname-tests: New file.
46084         * modules/unictype/property-combining-tests: New file.
46085         * modules/unictype/property-composite-tests: New file.
46086         * modules/unictype/property-currency-symbol-tests: New file.
46087         * modules/unictype/property-dash-tests: New file.
46088         * modules/unictype/property-decimal-digit-tests: New file.
46089         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46090         * modules/unictype/property-deprecated-tests: New file.
46091         * modules/unictype/property-diacritic-tests: New file.
46092         * modules/unictype/property-extender-tests: New file.
46093         * modules/unictype/property-format-control-tests: New file.
46094         * modules/unictype/property-grapheme-base-tests: New file.
46095         * modules/unictype/property-grapheme-extend-tests: New file.
46096         * modules/unictype/property-grapheme-link-tests: New file.
46097         * modules/unictype/property-hex-digit-tests: New file.
46098         * modules/unictype/property-hyphen-tests: New file.
46099         * modules/unictype/property-id-continue-tests: New file.
46100         * modules/unictype/property-id-start-tests: New file.
46101         * modules/unictype/property-ideographic-tests: New file.
46102         * modules/unictype/property-ids-binary-operator-tests: New file.
46103         * modules/unictype/property-ids-trinary-operator-tests: New file.
46104         * modules/unictype/property-ignorable-control-tests: New file.
46105         * modules/unictype/property-iso-control-tests: New file.
46106         * modules/unictype/property-join-control-tests: New file.
46107         * modules/unictype/property-left-of-pair-tests: New file.
46108         * modules/unictype/property-line-separator-tests: New file.
46109         * modules/unictype/property-logical-order-exception-tests: New file.
46110         * modules/unictype/property-lowercase-tests: New file.
46111         * modules/unictype/property-math-tests: New file.
46112         * modules/unictype/property-non-break-tests: New file.
46113         * modules/unictype/property-not-a-character-tests: New file.
46114         * modules/unictype/property-numeric-tests: New file.
46115         * modules/unictype/property-other-alphabetic-tests: New file.
46116         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46117         * modules/unictype/property-other-grapheme-extend-tests: New file.
46118         * modules/unictype/property-other-id-continue-tests: New file.
46119         * modules/unictype/property-other-id-start-tests: New file.
46120         * modules/unictype/property-other-lowercase-tests: New file.
46121         * modules/unictype/property-other-math-tests: New file.
46122         * modules/unictype/property-other-uppercase-tests: New file.
46123         * modules/unictype/property-paired-punctuation-tests: New file.
46124         * modules/unictype/property-paragraph-separator-tests: New file.
46125         * modules/unictype/property-pattern-syntax-tests: New file.
46126         * modules/unictype/property-pattern-white-space-tests: New file.
46127         * modules/unictype/property-private-use-tests: New file.
46128         * modules/unictype/property-punctuation-tests: New file.
46129         * modules/unictype/property-quotation-mark-tests: New file.
46130         * modules/unictype/property-radical-tests: New file.
46131         * modules/unictype/property-sentence-terminal-tests: New file.
46132         * modules/unictype/property-soft-dotted-tests: New file.
46133         * modules/unictype/property-space-tests: New file.
46134         * modules/unictype/property-terminal-punctuation-tests: New file.
46135         * modules/unictype/property-test-tests: New file.
46136         * modules/unictype/property-titlecase-tests: New file.
46137         * modules/unictype/property-unassigned-code-value-tests: New file.
46138         * modules/unictype/property-unified-ideograph-tests: New file.
46139         * modules/unictype/property-uppercase-tests: New file.
46140         * modules/unictype/property-variation-selector-tests: New file.
46141         * modules/unictype/property-white-space-tests: New file.
46142         * modules/unictype/property-xid-continue-tests: New file.
46143         * modules/unictype/property-xid-start-tests: New file.
46144         * modules/unictype/property-zero-width-tests: New file.
46145         * modules/unictype/scripts-tests: New file.
46146         * modules/unictype/syntax-c-ident-tests: New file.
46147         * modules/unictype/syntax-c-whitespace-tests: New file.
46148         * modules/unictype/syntax-java-ident-tests: New file.
46149         * modules/unictype/syntax-java-whitespace-tests: New file.
46150         * tests/unictype/test-bidi_byname.c: New file.
46151         * tests/unictype/test-bidi_name.c: New file.
46152         * tests/unictype/test-bidi_of.c: New file.
46153         * tests/unictype/test-bidi_test.c: New file.
46154         * tests/unictype/test-block_list.c: New file.
46155         * tests/unictype/test-block_of.c: New file.
46156         * tests/unictype/test-block_test.c: New file.
46157         * tests/unictype/test-categ_and.c: New file.
46158         * tests/unictype/test-categ_and_not.c: New file.
46159         * tests/unictype/test-categ_byname.c: New file.
46160         * tests/unictype/test-categ_name.c: New file.
46161         * tests/unictype/test-categ_none.c: New file.
46162         * tests/unictype/test-categ_of.c: New file.
46163         * tests/unictype/test-categ_or.c: New file.
46164         * tests/unictype/test-categ_test_withtable.c: New file.
46165         * tests/unictype/test-combining.c: New file.
46166         * tests/unictype/test-decdigit.c: New file.
46167         * tests/unictype/test-digit.c: New file.
46168         * tests/unictype/test-mirror.c: New file.
46169         * tests/unictype/test-numeric.c: New file.
46170         * tests/unictype/test-pr_byname.c: New file.
46171         * tests/unictype/test-pr_test.c: New file.
46172         * tests/unictype/test-predicate-part1.h: New file.
46173         * tests/unictype/test-predicate-part2.h: New file.
46174         * tests/unictype/test-scripts.c: New file.
46175         * tests/unictype/test-sy_c_ident.c: New file.
46176         * tests/unictype/test-sy_java_ident.c: New file.
46177
46178         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46179         for Unicode 5.0.0.
46180         * tests/unictype/test-categ_Cc.c: Likewise.
46181         * tests/unictype/test-categ_Cf.c: Likewise.
46182         * tests/unictype/test-categ_Cn.c: Likewise.
46183         * tests/unictype/test-categ_Co.c: Likewise.
46184         * tests/unictype/test-categ_Cs.c: Likewise.
46185         * tests/unictype/test-categ_L.c: Likewise.
46186         * tests/unictype/test-categ_Ll.c: Likewise.
46187         * tests/unictype/test-categ_Lm.c: Likewise.
46188         * tests/unictype/test-categ_Lo.c: Likewise.
46189         * tests/unictype/test-categ_Lt.c: Likewise.
46190         * tests/unictype/test-categ_Lu.c: Likewise.
46191         * tests/unictype/test-categ_M.c: Likewise.
46192         * tests/unictype/test-categ_Mc.c: Likewise.
46193         * tests/unictype/test-categ_Me.c: Likewise.
46194         * tests/unictype/test-categ_Mn.c: Likewise.
46195         * tests/unictype/test-categ_N.c: Likewise.
46196         * tests/unictype/test-categ_Nd.c: Likewise.
46197         * tests/unictype/test-categ_Nl.c: Likewise.
46198         * tests/unictype/test-categ_No.c: Likewise.
46199         * tests/unictype/test-categ_P.c: Likewise.
46200         * tests/unictype/test-categ_Pc.c: Likewise.
46201         * tests/unictype/test-categ_Pd.c: Likewise.
46202         * tests/unictype/test-categ_Pe.c: Likewise.
46203         * tests/unictype/test-categ_Pf.c: Likewise.
46204         * tests/unictype/test-categ_Pi.c: Likewise.
46205         * tests/unictype/test-categ_Po.c: Likewise.
46206         * tests/unictype/test-categ_Ps.c: Likewise.
46207         * tests/unictype/test-categ_S.c: Likewise.
46208         * tests/unictype/test-categ_Sc.c: Likewise.
46209         * tests/unictype/test-categ_Sk.c: Likewise.
46210         * tests/unictype/test-categ_Sm.c: Likewise.
46211         * tests/unictype/test-categ_So.c: Likewise.
46212         * tests/unictype/test-categ_Z.c: Likewise.
46213         * tests/unictype/test-categ_Zl.c: Likewise.
46214         * tests/unictype/test-categ_Zp.c: Likewise.
46215         * tests/unictype/test-categ_Zs.c: Likewise.
46216         * tests/unictype/test-ctype_alnum.c: Likewise.
46217         * tests/unictype/test-ctype_alpha.c: Likewise.
46218         * tests/unictype/test-ctype_blank.c: Likewise.
46219         * tests/unictype/test-ctype_cntrl.c: Likewise.
46220         * tests/unictype/test-ctype_digit.c: Likewise.
46221         * tests/unictype/test-ctype_graph.c: Likewise.
46222         * tests/unictype/test-ctype_lower.c: Likewise.
46223         * tests/unictype/test-ctype_print.c: Likewise.
46224         * tests/unictype/test-ctype_punct.c: Likewise.
46225         * tests/unictype/test-ctype_space.c: Likewise.
46226         * tests/unictype/test-ctype_upper.c: Likewise.
46227         * tests/unictype/test-ctype_xdigit.c: Likewise.
46228         * tests/unictype/test-decdigit.h: Likewise.
46229         * tests/unictype/test-digit.h: Likewise.
46230         * tests/unictype/test-numeric.h: Likewise.
46231         * tests/unictype/test-pr_alphabetic.c: Likewise.
46232         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46233         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46234         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46235         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46236         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46237         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46238         * tests/unictype/test-pr_bidi_control.c: Likewise.
46239         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46240         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46241         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46242         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46243         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46244         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46245         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46246         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46247         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46248         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46249         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46250         * tests/unictype/test-pr_combining.c: Likewise.
46251         * tests/unictype/test-pr_composite.c: Likewise.
46252         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46253         * tests/unictype/test-pr_dash.c: Likewise.
46254         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46255         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46256         * tests/unictype/test-pr_deprecated.c: Likewise.
46257         * tests/unictype/test-pr_diacritic.c: Likewise.
46258         * tests/unictype/test-pr_extender.c: Likewise.
46259         * tests/unictype/test-pr_format_control.c: Likewise.
46260         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46261         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46262         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46263         * tests/unictype/test-pr_hex_digit.c: Likewise.
46264         * tests/unictype/test-pr_hyphen.c: Likewise.
46265         * tests/unictype/test-pr_id_continue.c: Likewise.
46266         * tests/unictype/test-pr_id_start.c: Likewise.
46267         * tests/unictype/test-pr_ideographic.c: Likewise.
46268         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46269         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46270         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46271         * tests/unictype/test-pr_iso_control.c: Likewise.
46272         * tests/unictype/test-pr_join_control.c: Likewise.
46273         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46274         * tests/unictype/test-pr_line_separator.c: Likewise.
46275         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46276         * tests/unictype/test-pr_lowercase.c: Likewise.
46277         * tests/unictype/test-pr_math.c: Likewise.
46278         * tests/unictype/test-pr_non_break.c: Likewise.
46279         * tests/unictype/test-pr_not_a_character.c: Likewise.
46280         * tests/unictype/test-pr_numeric.c: Likewise.
46281         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46282         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46283         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46284         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46285         * tests/unictype/test-pr_other_id_start.c: Likewise.
46286         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46287         * tests/unictype/test-pr_other_math.c: Likewise.
46288         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46289         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46290         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46291         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46292         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46293         * tests/unictype/test-pr_private_use.c: Likewise.
46294         * tests/unictype/test-pr_punctuation.c: Likewise.
46295         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46296         * tests/unictype/test-pr_radical.c: Likewise.
46297         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46298         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46299         * tests/unictype/test-pr_space.c: Likewise.
46300         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46301         * tests/unictype/test-pr_titlecase.c: Likewise.
46302         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46303         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46304         * tests/unictype/test-pr_uppercase.c: Likewise.
46305         * tests/unictype/test-pr_variation_selector.c: Likewise.
46306         * tests/unictype/test-pr_white_space.c: Likewise.
46307         * tests/unictype/test-pr_xid_continue.c: Likewise.
46308         * tests/unictype/test-pr_xid_start.c: Likewise.
46309         * tests/unictype/test-pr_zero_width.c: Likewise.
46310         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46311         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46312
46313 2007-11-12  Bruno Haible  <bruno@clisp.org>
46314
46315         Unicode character classification functions.
46316         * lib/unictype.h: New file.
46317         * modules/unictype/base: New file.
46318         * modules/unictype/category-L: New file.
46319         * modules/unictype/category-Lu: New file.
46320         * modules/unictype/category-Ll: New file.
46321         * modules/unictype/category-Lt: New file.
46322         * modules/unictype/category-Lm: New file.
46323         * modules/unictype/category-Lo: New file.
46324         * modules/unictype/category-M: New file.
46325         * modules/unictype/category-Mn: New file.
46326         * modules/unictype/category-Mc: New file.
46327         * modules/unictype/category-Me: New file.
46328         * modules/unictype/category-N: New file.
46329         * modules/unictype/category-Nd: New file.
46330         * modules/unictype/category-Nl: New file.
46331         * modules/unictype/category-No: New file.
46332         * modules/unictype/category-P: New file.
46333         * modules/unictype/category-Pc: New file.
46334         * modules/unictype/category-Pd: New file.
46335         * modules/unictype/category-Ps: New file.
46336         * modules/unictype/category-Pe: New file.
46337         * modules/unictype/category-Pi: New file.
46338         * modules/unictype/category-Pf: New file.
46339         * modules/unictype/category-Po: New file.
46340         * modules/unictype/category-S: New file.
46341         * modules/unictype/category-Sm: New file.
46342         * modules/unictype/category-Sc: New file.
46343         * modules/unictype/category-Sk: New file.
46344         * modules/unictype/category-So: New file.
46345         * modules/unictype/category-Z: New file.
46346         * modules/unictype/category-Zs: New file.
46347         * modules/unictype/category-Zl: New file.
46348         * modules/unictype/category-Zp: New file.
46349         * modules/unictype/category-C: New file.
46350         * modules/unictype/category-Cc: New file.
46351         * modules/unictype/category-Cf: New file.
46352         * modules/unictype/category-Cs: New file.
46353         * modules/unictype/category-Co: New file.
46354         * modules/unictype/category-Cn: New file.
46355         * modules/unictype/category-or: New file.
46356         * modules/unictype/category-of: New file.
46357         * modules/unictype/category-test: New file.
46358         * modules/unictype/category-test-withtable: New file.
46359         * modules/unictype/category-byname: New file.
46360         * modules/unictype/category-none: New file.
46361         * modules/unictype/category-and: New file.
46362         * modules/unictype/category-and-not: New file.
46363         * modules/unictype/category-name: New file.
46364         * modules/unictype/combining-class: New file.
46365         * modules/unictype/category-all: New file.
46366         * modules/unictype/bidicategory-all: New file.
46367         * modules/unictype/bidicategory-byname: New file.
46368         * modules/unictype/bidicategory-name: New file.
46369         * modules/unictype/bidicategory-of: New file.
46370         * modules/unictype/bidicategory-test: New file.
46371         * modules/unictype/decimal-digit: New file.
46372         * modules/unictype/digit: New file.
46373         * modules/unictype/numeric: New file.
46374         * modules/unictype/mirror: New file.
46375         * modules/unictype/property-white-space: New file.
46376         * modules/unictype/property-alphabetic: New file.
46377         * modules/unictype/property-other-alphabetic: New file.
46378         * modules/unictype/property-not-a-character: New file.
46379         * modules/unictype/property-default-ignorable-code-point: New file.
46380         * modules/unictype/property-other-default-ignorable-code-point: New
46381         file.
46382         * modules/unictype/property-deprecated: New file.
46383         * modules/unictype/property-logical-order-exception: New file.
46384         * modules/unictype/property-variation-selector: New file.
46385         * modules/unictype/property-private-use: New file.
46386         * modules/unictype/property-unassigned-code-value: New file.
46387         * modules/unictype/property-uppercase: New file.
46388         * modules/unictype/property-other-uppercase: New file.
46389         * modules/unictype/property-lowercase: New file.
46390         * modules/unictype/property-other-lowercase: New file.
46391         * modules/unictype/property-titlecase: New file.
46392         * modules/unictype/property-soft-dotted: New file.
46393         * modules/unictype/property-id-start: New file.
46394         * modules/unictype/property-other-id-start: New file.
46395         * modules/unictype/property-id-continue: New file.
46396         * modules/unictype/property-other-id-continue: New file.
46397         * modules/unictype/property-xid-start: New file.
46398         * modules/unictype/property-xid-continue: New file.
46399         * modules/unictype/property-pattern-white-space: New file.
46400         * modules/unictype/property-pattern-syntax: New file.
46401         * modules/unictype/property-join-control: New file.
46402         * modules/unictype/property-grapheme-base: New file.
46403         * modules/unictype/property-grapheme-extend: New file.
46404         * modules/unictype/property-other-grapheme-extend: New file.
46405         * modules/unictype/property-grapheme-link: New file.
46406         * modules/unictype/property-bidi-control: New file.
46407         * modules/unictype/property-bidi-left-to-right: New file.
46408         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46409         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46410         * modules/unictype/property-bidi-european-digit: New file.
46411         * modules/unictype/property-bidi-eur-num-separator: New file.
46412         * modules/unictype/property-bidi-eur-num-terminator: New file.
46413         * modules/unictype/property-bidi-arabic-digit: New file.
46414         * modules/unictype/property-bidi-common-separator: New file.
46415         * modules/unictype/property-bidi-block-separator: New file.
46416         * modules/unictype/property-bidi-segment-separator: New file.
46417         * modules/unictype/property-bidi-whitespace: New file.
46418         * modules/unictype/property-bidi-non-spacing-mark: New file.
46419         * modules/unictype/property-bidi-boundary-neutral: New file.
46420         * modules/unictype/property-bidi-pdf: New file.
46421         * modules/unictype/property-bidi-embedding-or-override: New file.
46422         * modules/unictype/property-bidi-other-neutral: New file.
46423         * modules/unictype/property-hex-digit: New file.
46424         * modules/unictype/property-ascii-hex-digit: New file.
46425         * modules/unictype/property-ideographic: New file.
46426         * modules/unictype/property-unified-ideograph: New file.
46427         * modules/unictype/property-radical: New file.
46428         * modules/unictype/property-ids-binary-operator: New file.
46429         * modules/unictype/property-ids-trinary-operator: New file.
46430         * modules/unictype/property-zero-width: New file.
46431         * modules/unictype/property-space: New file.
46432         * modules/unictype/property-non-break: New file.
46433         * modules/unictype/property-iso-control: New file.
46434         * modules/unictype/property-format-control: New file.
46435         * modules/unictype/property-dash: New file.
46436         * modules/unictype/property-hyphen: New file.
46437         * modules/unictype/property-punctuation: New file.
46438         * modules/unictype/property-line-separator: New file.
46439         * modules/unictype/property-paragraph-separator: New file.
46440         * modules/unictype/property-quotation-mark: New file.
46441         * modules/unictype/property-sentence-terminal: New file.
46442         * modules/unictype/property-terminal-punctuation: New file.
46443         * modules/unictype/property-currency-symbol: New file.
46444         * modules/unictype/property-math: New file.
46445         * modules/unictype/property-other-math: New file.
46446         * modules/unictype/property-paired-punctuation: New file.
46447         * modules/unictype/property-left-of-pair: New file.
46448         * modules/unictype/property-combining: New file.
46449         * modules/unictype/property-composite: New file.
46450         * modules/unictype/property-decimal-digit: New file.
46451         * modules/unictype/property-numeric: New file.
46452         * modules/unictype/property-diacritic: New file.
46453         * modules/unictype/property-extender: New file.
46454         * modules/unictype/property-ignorable-control: New file.
46455         * modules/unictype/property-test: New file.
46456         * modules/unictype/property-byname: New file.
46457         * modules/unictype/property-all: New file.
46458         * modules/unictype/scripts: New file.
46459         * modules/unictype/scripts-all: New file.
46460         * modules/unictype/block-of: New file.
46461         * modules/unictype/block-test: New file.
46462         * modules/unictype/block-list: New file.
46463         * modules/unictype/block-all: New file.
46464         * modules/unictype/syntax-c-whitespace: New file.
46465         * modules/unictype/syntax-java-whitespace: New file.
46466         * modules/unictype/syntax-c-ident: New file.
46467         * modules/unictype/syntax-java-ident: New file.
46468         * modules/unictype/ctype-alnum: New file.
46469         * modules/unictype/ctype-alpha: New file.
46470         * modules/unictype/ctype-cntrl: New file.
46471         * modules/unictype/ctype-digit: New file.
46472         * modules/unictype/ctype-graph: New file.
46473         * modules/unictype/ctype-lower: New file.
46474         * modules/unictype/ctype-print: New file.
46475         * modules/unictype/ctype-punct: New file.
46476         * modules/unictype/ctype-space: New file.
46477         * modules/unictype/ctype-upper: New file.
46478         * modules/unictype/ctype-xdigit: New file.
46479         * modules/unictype/ctype-blank: New file.
46480         * lib/unictype/bidi_byname.c: New file.
46481         * lib/unictype/bidi_name.c: New file.
46482         * lib/unictype/bidi_of.c: New file.
46483         * lib/unictype/bidi_test.c: New file.
46484         * lib/unictype/bitmap.h: New file.
46485         * lib/unictype/block_test.c: New file.
46486         * lib/unictype/blocks.c: New file.
46487         * lib/unictype/categ_C.c: New file.
46488         * lib/unictype/categ_Cc.c: New file.
46489         * lib/unictype/categ_Cf.c: New file.
46490         * lib/unictype/categ_Cn.c: New file.
46491         * lib/unictype/categ_Co.c: New file.
46492         * lib/unictype/categ_Cs.c: New file.
46493         * lib/unictype/categ_L.c: New file.
46494         * lib/unictype/categ_Ll.c: New file.
46495         * lib/unictype/categ_Lm.c: New file.
46496         * lib/unictype/categ_Lo.c: New file.
46497         * lib/unictype/categ_Lt.c: New file.
46498         * lib/unictype/categ_Lu.c: New file.
46499         * lib/unictype/categ_M.c: New file.
46500         * lib/unictype/categ_Mc.c: New file.
46501         * lib/unictype/categ_Me.c: New file.
46502         * lib/unictype/categ_Mn.c: New file.
46503         * lib/unictype/categ_N.c: New file.
46504         * lib/unictype/categ_Nd.c: New file.
46505         * lib/unictype/categ_Nl.c: New file.
46506         * lib/unictype/categ_No.c: New file.
46507         * lib/unictype/categ_P.c: New file.
46508         * lib/unictype/categ_Pc.c: New file.
46509         * lib/unictype/categ_Pd.c: New file.
46510         * lib/unictype/categ_Pe.c: New file.
46511         * lib/unictype/categ_Pf.c: New file.
46512         * lib/unictype/categ_Pi.c: New file.
46513         * lib/unictype/categ_Po.c: New file.
46514         * lib/unictype/categ_Ps.c: New file.
46515         * lib/unictype/categ_S.c: New file.
46516         * lib/unictype/categ_Sc.c: New file.
46517         * lib/unictype/categ_Sk.c: New file.
46518         * lib/unictype/categ_Sm.c: New file.
46519         * lib/unictype/categ_So.c: New file.
46520         * lib/unictype/categ_Z.c: New file.
46521         * lib/unictype/categ_Zl.c: New file.
46522         * lib/unictype/categ_Zp.c: New file.
46523         * lib/unictype/categ_Zs.c: New file.
46524         * lib/unictype/categ_and.c: New file.
46525         * lib/unictype/categ_and_not.c: New file.
46526         * lib/unictype/categ_byname.c: New file.
46527         * lib/unictype/categ_name.c: New file.
46528         * lib/unictype/categ_none.c: New file.
46529         * lib/unictype/categ_of.c: New file.
46530         * lib/unictype/categ_or.c: New file.
46531         * lib/unictype/categ_test.c: New file.
46532         * lib/unictype/combining.c: New file.
46533         * lib/unictype/ctype_alnum.c: New file.
46534         * lib/unictype/ctype_alpha.c: New file.
46535         * lib/unictype/ctype_blank.c: New file.
46536         * lib/unictype/ctype_cntrl.c: New file.
46537         * lib/unictype/ctype_digit.c: New file.
46538         * lib/unictype/ctype_graph.c: New file.
46539         * lib/unictype/ctype_lower.c: New file.
46540         * lib/unictype/ctype_print.c: New file.
46541         * lib/unictype/ctype_punct.c: New file.
46542         * lib/unictype/ctype_space.c: New file.
46543         * lib/unictype/ctype_upper.c: New file.
46544         * lib/unictype/ctype_xdigit.c: New file.
46545         * lib/unictype/decdigit.c: New file.
46546         * lib/unictype/digit.c: New file.
46547         * lib/unictype/identsyntaxmap.h: New file.
46548         * lib/unictype/mirror.c: New file.
46549         * lib/unictype/numeric.c: New file.
46550         * lib/unictype/pr_alphabetic.c: New file.
46551         * lib/unictype/pr_ascii_hex_digit.c: New file.
46552         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46553         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46554         * lib/unictype/pr_bidi_block_separator.c: New file.
46555         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46556         * lib/unictype/pr_bidi_common_separator.c: New file.
46557         * lib/unictype/pr_bidi_control.c: New file.
46558         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46559         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46560         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46561         * lib/unictype/pr_bidi_european_digit.c: New file.
46562         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46563         * lib/unictype/pr_bidi_left_to_right.c: New file.
46564         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46565         * lib/unictype/pr_bidi_other_neutral.c: New file.
46566         * lib/unictype/pr_bidi_pdf.c: New file.
46567         * lib/unictype/pr_bidi_segment_separator.c: New file.
46568         * lib/unictype/pr_bidi_whitespace.c: New file.
46569         * lib/unictype/pr_byname.c: New file.
46570         * lib/unictype/pr_byname.gperf: New file.
46571         * lib/unictype/pr_combining.c: New file.
46572         * lib/unictype/pr_composite.c: New file.
46573         * lib/unictype/pr_currency_symbol.c: New file.
46574         * lib/unictype/pr_dash.c: New file.
46575         * lib/unictype/pr_decimal_digit.c: New file.
46576         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46577         * lib/unictype/pr_deprecated.c: New file.
46578         * lib/unictype/pr_diacritic.c: New file.
46579         * lib/unictype/pr_extender.c: New file.
46580         * lib/unictype/pr_format_control.c: New file.
46581         * lib/unictype/pr_grapheme_base.c: New file.
46582         * lib/unictype/pr_grapheme_extend.c: New file.
46583         * lib/unictype/pr_grapheme_link.c: New file.
46584         * lib/unictype/pr_hex_digit.c: New file.
46585         * lib/unictype/pr_hyphen.c: New file.
46586         * lib/unictype/pr_id_continue.c: New file.
46587         * lib/unictype/pr_id_start.c: New file.
46588         * lib/unictype/pr_ideographic.c: New file.
46589         * lib/unictype/pr_ids_binary_operator.c: New file.
46590         * lib/unictype/pr_ids_trinary_operator.c: New file.
46591         * lib/unictype/pr_ignorable_control.c: New file.
46592         * lib/unictype/pr_iso_control.c: New file.
46593         * lib/unictype/pr_join_control.c: New file.
46594         * lib/unictype/pr_left_of_pair.c: New file.
46595         * lib/unictype/pr_line_separator.c: New file.
46596         * lib/unictype/pr_logical_order_exception.c: New file.
46597         * lib/unictype/pr_lowercase.c: New file.
46598         * lib/unictype/pr_math.c: New file.
46599         * lib/unictype/pr_non_break.c: New file.
46600         * lib/unictype/pr_not_a_character.c: New file.
46601         * lib/unictype/pr_numeric.c: New file.
46602         * lib/unictype/pr_other_alphabetic.c: New file.
46603         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46604         * lib/unictype/pr_other_grapheme_extend.c: New file.
46605         * lib/unictype/pr_other_id_continue.c: New file.
46606         * lib/unictype/pr_other_id_start.c: New file.
46607         * lib/unictype/pr_other_lowercase.c: New file.
46608         * lib/unictype/pr_other_math.c: New file.
46609         * lib/unictype/pr_other_uppercase.c: New file.
46610         * lib/unictype/pr_paired_punctuation.c: New file.
46611         * lib/unictype/pr_paragraph_separator.c: New file.
46612         * lib/unictype/pr_pattern_syntax.c: New file.
46613         * lib/unictype/pr_pattern_white_space.c: New file.
46614         * lib/unictype/pr_private_use.c: New file.
46615         * lib/unictype/pr_punctuation.c: New file.
46616         * lib/unictype/pr_quotation_mark.c: New file.
46617         * lib/unictype/pr_radical.c: New file.
46618         * lib/unictype/pr_sentence_terminal.c: New file.
46619         * lib/unictype/pr_soft_dotted.c: New file.
46620         * lib/unictype/pr_space.c: New file.
46621         * lib/unictype/pr_terminal_punctuation.c: New file.
46622         * lib/unictype/pr_test.c: New file.
46623         * lib/unictype/pr_titlecase.c: New file.
46624         * lib/unictype/pr_unassigned_code_value.c: New file.
46625         * lib/unictype/pr_unified_ideograph.c: New file.
46626         * lib/unictype/pr_uppercase.c: New file.
46627         * lib/unictype/pr_variation_selector.c: New file.
46628         * lib/unictype/pr_white_space.c: New file.
46629         * lib/unictype/pr_xid_continue.c: New file.
46630         * lib/unictype/pr_xid_start.c: New file.
46631         * lib/unictype/pr_zero_width.c: New file.
46632         * lib/unictype/scripts.c: New file.
46633         * lib/unictype/sy_c_ident.c: New file.
46634         * lib/unictype/sy_c_whitespace.c: New file.
46635         * lib/unictype/sy_java_ident.c: New file.
46636         * lib/unictype/sy_java_whitespace.c: New file.
46637
46638         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46639         Unicode 5.0.0.
46640         * lib/unictype/blocks.h: Likewise.
46641         * lib/unictype/categ_C.h: Likewise.
46642         * lib/unictype/categ_Cc.h: Likewise.
46643         * lib/unictype/categ_Cf.h: Likewise.
46644         * lib/unictype/categ_Cn.h: Likewise.
46645         * lib/unictype/categ_Co.h: Likewise.
46646         * lib/unictype/categ_Cs.h: Likewise.
46647         * lib/unictype/categ_L.h: Likewise.
46648         * lib/unictype/categ_Ll.h: Likewise.
46649         * lib/unictype/categ_Lm.h: Likewise.
46650         * lib/unictype/categ_Lo.h: Likewise.
46651         * lib/unictype/categ_Lt.h: Likewise.
46652         * lib/unictype/categ_Lu.h: Likewise.
46653         * lib/unictype/categ_M.h: Likewise.
46654         * lib/unictype/categ_Mc.h: Likewise.
46655         * lib/unictype/categ_Me.h: Likewise.
46656         * lib/unictype/categ_Mn.h: Likewise.
46657         * lib/unictype/categ_N.h: Likewise.
46658         * lib/unictype/categ_Nd.h: Likewise.
46659         * lib/unictype/categ_Nl.h: Likewise.
46660         * lib/unictype/categ_No.h: Likewise.
46661         * lib/unictype/categ_P.h: Likewise.
46662         * lib/unictype/categ_Pc.h: Likewise.
46663         * lib/unictype/categ_Pd.h: Likewise.
46664         * lib/unictype/categ_Pe.h: Likewise.
46665         * lib/unictype/categ_Pf.h: Likewise.
46666         * lib/unictype/categ_Pi.h: Likewise.
46667         * lib/unictype/categ_Po.h: Likewise.
46668         * lib/unictype/categ_Ps.h: Likewise.
46669         * lib/unictype/categ_S.h: Likewise.
46670         * lib/unictype/categ_Sc.h: Likewise.
46671         * lib/unictype/categ_Sk.h: Likewise.
46672         * lib/unictype/categ_Sm.h: Likewise.
46673         * lib/unictype/categ_So.h: Likewise.
46674         * lib/unictype/categ_Z.h: Likewise.
46675         * lib/unictype/categ_Zl.h: Likewise.
46676         * lib/unictype/categ_Zp.h: Likewise.
46677         * lib/unictype/categ_Zs.h: Likewise.
46678         * lib/unictype/categ_of.h: Likewise.
46679         * lib/unictype/combining.h: Likewise.
46680         * lib/unictype/ctype_alnum.h: Likewise.
46681         * lib/unictype/ctype_alpha.h: Likewise.
46682         * lib/unictype/ctype_blank.h: Likewise.
46683         * lib/unictype/ctype_cntrl.h: Likewise.
46684         * lib/unictype/ctype_digit.h: Likewise.
46685         * lib/unictype/ctype_graph.h: Likewise.
46686         * lib/unictype/ctype_lower.h: Likewise.
46687         * lib/unictype/ctype_print.h: Likewise.
46688         * lib/unictype/ctype_punct.h: Likewise.
46689         * lib/unictype/ctype_space.h: Likewise.
46690         * lib/unictype/ctype_upper.h: Likewise.
46691         * lib/unictype/ctype_xdigit.h: Likewise.
46692         * lib/unictype/decdigit.h: Likewise.
46693         * lib/unictype/digit.h: Likewise.
46694         * lib/unictype/mirror.h: Likewise.
46695         * lib/unictype/numeric.h: Likewise.
46696         * lib/unictype/pr_alphabetic.h: Likewise.
46697         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46698         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46699         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46700         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46701         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46702         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46703         * lib/unictype/pr_bidi_control.h: Likewise.
46704         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46705         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46706         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46707         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46708         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46709         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46710         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46711         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46712         * lib/unictype/pr_bidi_pdf.h: Likewise.
46713         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46714         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46715         * lib/unictype/pr_combining.h: Likewise.
46716         * lib/unictype/pr_composite.h: Likewise.
46717         * lib/unictype/pr_currency_symbol.h: Likewise.
46718         * lib/unictype/pr_dash.h: Likewise.
46719         * lib/unictype/pr_decimal_digit.h: Likewise.
46720         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46721         * lib/unictype/pr_deprecated.h: Likewise.
46722         * lib/unictype/pr_diacritic.h: Likewise.
46723         * lib/unictype/pr_extender.h: Likewise.
46724         * lib/unictype/pr_format_control.h: Likewise.
46725         * lib/unictype/pr_grapheme_base.h: Likewise.
46726         * lib/unictype/pr_grapheme_extend.h: Likewise.
46727         * lib/unictype/pr_grapheme_link.h: Likewise.
46728         * lib/unictype/pr_hex_digit.h: Likewise.
46729         * lib/unictype/pr_hyphen.h: Likewise.
46730         * lib/unictype/pr_id_continue.h: Likewise.
46731         * lib/unictype/pr_id_start.h: Likewise.
46732         * lib/unictype/pr_ideographic.h: Likewise.
46733         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46734         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46735         * lib/unictype/pr_ignorable_control.h: Likewise.
46736         * lib/unictype/pr_iso_control.h: Likewise.
46737         * lib/unictype/pr_join_control.h: Likewise.
46738         * lib/unictype/pr_left_of_pair.h: Likewise.
46739         * lib/unictype/pr_line_separator.h: Likewise.
46740         * lib/unictype/pr_logical_order_exception.h: Likewise.
46741         * lib/unictype/pr_lowercase.h: Likewise.
46742         * lib/unictype/pr_math.h: Likewise.
46743         * lib/unictype/pr_non_break.h: Likewise.
46744         * lib/unictype/pr_not_a_character.h: Likewise.
46745         * lib/unictype/pr_numeric.h: Likewise.
46746         * lib/unictype/pr_other_alphabetic.h: Likewise.
46747         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46748         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46749         * lib/unictype/pr_other_id_continue.h: Likewise.
46750         * lib/unictype/pr_other_id_start.h: Likewise.
46751         * lib/unictype/pr_other_lowercase.h: Likewise.
46752         * lib/unictype/pr_other_math.h: Likewise.
46753         * lib/unictype/pr_other_uppercase.h: Likewise.
46754         * lib/unictype/pr_paired_punctuation.h: Likewise.
46755         * lib/unictype/pr_paragraph_separator.h: Likewise.
46756         * lib/unictype/pr_pattern_syntax.h: Likewise.
46757         * lib/unictype/pr_pattern_white_space.h: Likewise.
46758         * lib/unictype/pr_private_use.h: Likewise.
46759         * lib/unictype/pr_punctuation.h: Likewise.
46760         * lib/unictype/pr_quotation_mark.h: Likewise.
46761         * lib/unictype/pr_radical.h: Likewise.
46762         * lib/unictype/pr_sentence_terminal.h: Likewise.
46763         * lib/unictype/pr_soft_dotted.h: Likewise.
46764         * lib/unictype/pr_space.h: Likewise.
46765         * lib/unictype/pr_terminal_punctuation.h: Likewise.
46766         * lib/unictype/pr_titlecase.h: Likewise.
46767         * lib/unictype/pr_unassigned_code_value.h: Likewise.
46768         * lib/unictype/pr_unified_ideograph.h: Likewise.
46769         * lib/unictype/pr_uppercase.h: Likewise.
46770         * lib/unictype/pr_variation_selector.h: Likewise.
46771         * lib/unictype/pr_white_space.h: Likewise.
46772         * lib/unictype/pr_xid_continue.h: Likewise.
46773         * lib/unictype/pr_xid_start.h: Likewise.
46774         * lib/unictype/pr_zero_width.h: Likewise.
46775         * lib/unictype/scripts.h: Likewise.
46776         * lib/unictype/scripts_byname.gperf: Likewise.
46777         * lib/unictype/sy_c_ident.h: Likewise.
46778         * lib/unictype/sy_c_whitespace.h: Likewise.
46779         * lib/unictype/sy_java_ident.h: Likewise.
46780         * lib/unictype/sy_java_whitespace.h: Likewise.
46781
46782         * lib/unictype/Makefile: New file.
46783         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
46784         glibc.
46785         * lib/unictype/3level.h: New file, copied from glibc.
46786         * lib/unictype/3levelbit.h: New file.
46787
46788 2007-11-11  Bruno Haible  <bruno@clisp.org>
46789
46790         * modules/gperf: New file.
46791         * modules/iconv_open (Depends-on): Add it.
46792         (Makefile.am): Remove the GPERF definition.
46793
46794 2007-11-11  Bruno Haible  <bruno@clisp.org>
46795
46796         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
46797         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
46798
46799 2007-11-11  Bruno Haible  <bruno@clisp.org>
46800
46801         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
46802         (usage): Remove function.
46803
46804 2007-11-11  Bruno Haible  <bruno@clisp.org>
46805
46806         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
46807         gl_FUNC_CEILF_LIBS.
46808         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
46809         gl_FUNC_CEIL_LIBS.
46810         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
46811         gl_FUNC_CEILL_LIBS.
46812         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
46813         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
46814         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
46815
46816 2007-11-11  Bruno Haible  <bruno@clisp.org>
46817
46818         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
46819         roundf were declared but do not exist on functions.
46820         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
46821         roundl were declared but do not exist on functions.
46822         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
46823         HAVE_FLOORL_AND_CEILL, respectively.
46824         Needed for Sun C on Solaris 10.
46825
46826 2007-11-11  Bruno Haible  <bruno@clisp.org>
46827
46828         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
46829         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
46830         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
46831         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
46832         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46833         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
46834         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
46835         HAVE_DECL_ROUNDF.
46836         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
46837         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
46838         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
46839         of HAVE_DECL_ROUND*.
46840         * modules/math (Makefile.am): Update.
46841
46842 2007-11-10  Bruno Haible  <bruno@clisp.org>
46843
46844         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
46845         ptrdiff_t as m4/intl.m4.
46846
46847 2007-11-10  Jim Meyering  <meyering@redhat.com>
46848
46849         Avoid link failure for the argmatch test.
46850         * tests/test-argmatch.c (usage): Define function to avoid a link
46851         failure: argmatch_die requires a usage function.
46852
46853 2007-11-09  Bruno Haible  <bruno@clisp.org>
46854
46855         * doc/functions/snprintf.texi: Mention BeOS deficiency.
46856         * doc/functions/vsnprintf.texi: Likewise.
46857         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
46858         with a size argument < 2.
46859
46860 2007-11-09  Bruno Haible  <bruno@clisp.org>
46861
46862         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
46863         buffer. Fixes an inefficiency introduced on 2007-11-03.
46864
46865 2007-11-09  Bruno Haible  <bruno@clisp.org>
46866
46867         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
46868         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
46869
46870 2007-11-08  Jim Meyering  <meyering@redhat.com>
46871
46872         Change cache variable name prefix "jm_" to "gl_" everywhere.
46873         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
46874         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
46875         * m4/uptime.m4: s/gl_/jm_/
46876
46877 2007-11-07  Bruno Haible  <bruno@clisp.org>
46878
46879         Update to GNU gettext 0.17.
46880         * m4/intl.m4: Update to GNU gettext 0.17.
46881         * m4/po.m4: Likewise.
46882         * modules/gettext (Files): Remove m4/ulonglong.m4.
46883         (configure.ac): Require gettext infrastructure from version 0.17.
46884
46885 2007-11-06  Bruno Haible  <bruno@clisp.org>
46886
46887         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
46888         symbolic values are not defined in a public header.
46889         * lib/freadable.c (freadable) [QNX]: Likewise.
46890         * lib/freadahead.c (freadahead) [QNX]: Likewise.
46891         * lib/freading.c (freading) [QNX]: Likewise.
46892         * lib/fseterr.c (fseterr) [QNX]: Likewise.
46893         * lib/fwritable.c (fwritable) [QNX]: Likewise.
46894         * lib/fwriting.c (fwriting) [QNX]: Likewise.
46895         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
46896         Reported by Alain Magloire.
46897
46898         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
46899
46900 2007-11-05  Bruno Haible  <bruno@clisp.org>
46901
46902         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
46903         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
46904         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
46905         Reported by Eric Blake.
46906
46907 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46908             Bruno Haible  <bruno@clisp.org>
46909
46910         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
46911         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
46912         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
46913         (malloc): Undefine also before including <stdlib.h>.
46914         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
46915         Needed on OSF/1 4.0.
46916
46917 2007-11-05  Jim Meyering  <meyering@redhat.com>
46918
46919         git-version-gen: sync from coreutils.
46920         * build-aux/git-version-gen: Add comments.
46921         Change the first '-' to '.' in the snapshot version string,
46922         e.g., 6.9-377-08144 -> 6.9.377-08144
46923         Remove first parameter.
46924         Don't declare a version "-dirty" merely because a time
46925         stamp has changed.
46926
46927 2007-11-04  Bruno Haible  <bruno@clisp.org>
46928
46929         * lib/lock.h: Protect all macro definitions containing an 'if'
46930         statement through a "do { ... } while (0)".
46931         * lib/tls.h: Likewise.
46932
46933 2007-11-04  Bruno Haible  <bruno@clisp.org>
46934
46935         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
46936
46937 2007-11-04  Bruno Haible  <bruno@clisp.org>
46938
46939         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
46940         * modules/fprintf-posix (Depends-on): Add nocrash.
46941         * modules/snprintf-posix (Depends-on): Likewise.
46942         * modules/sprintf-posix (Depends-on): Likewise.
46943         * modules/vasnprintf-posix (Depends-on): Likewise.
46944         * modules/vasprintf-posix (Depends-on): Likewise.
46945         * modules/vfprintf-posix (Depends-on): Likewise.
46946         * modules/vsnprintf-posix (Depends-on): Likewise.
46947         * modules/vsprintf-posix (Depends-on): Likewise.
46948         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46949         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46950         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46951         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46952         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46953         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46954         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46955
46956 2007-11-04  Bruno Haible  <bruno@clisp.org>
46957
46958         * modules/nocrash: New file.
46959         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46960         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46961
46962 2007-11-04  Bruno Haible  <bruno@clisp.org>
46963
46964         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46965         precision handling.
46966         * tests/test-vasprintf-posix.c (test_function): Likewise.
46967         * tests/test-snprintf-posix.h (test_function): Likewise.
46968         * tests/test-sprintf-posix.h (test_function): Likewise.
46969
46970         Fix *printf behaviour for large precisions on mingw and BeOS.
46971         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46972         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46973         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46974         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46975         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46976         gl_PRINTF_PRECISION and test its result. Invoke
46977         gl_PREREQ_VASNPRINTF_PRECISION.
46978         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46979         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46984         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46985         * doc/functions/fprintf.texi: Update.
46986         * doc/functions/printf.texi: Update.
46987         * doc/functions/snprintf.texi: Update.
46988         * doc/functions/sprintf.texi: Update.
46989         * doc/functions/vfprintf.texi: Update.
46990         * doc/functions/vprintf.texi: Update.
46991         * doc/functions/vsnprintf.texi: Update.
46992         * doc/functions/vsprintf.texi: Update.
46993
46994 2007-11-04  Bruno Haible  <bruno@clisp.org>
46995
46996         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
46997
46998 2007-11-04  Bruno Haible  <bruno@clisp.org>
46999
47000         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
47001         Reported by Sylvain Beucler <beuc@gnu.org>.
47002
47003 2007-11-03  Bruno Haible  <bruno@clisp.org>
47004
47005         * tests/test-fprintf-posix2.sh: New file.
47006         * tests/test-fprintf-posix2.c: New file.
47007         * modules/fprintf-posix-tests (Files): Add them.
47008         (TESTS): Add test-fprintf-posix2.sh.
47009         (configure.ac): Check for getrlimit and setrlimit.
47010         (check_PROGRAMS): Add test-fprintf-posix2.
47011
47012         * tests/test-printf-posix2.sh: New file.
47013         * tests/test-printf-posix2.c: New file.
47014         * modules/printf-posix-tests (Files): Add them.
47015         (TESTS): Add test-printf-posix2.sh.
47016         (configure.ac): Check for getrlimit and setrlimit.
47017         (check_PROGRAMS): Add test-printf-posix2.
47018
47019         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
47020         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
47021         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
47022         (decode_double): New function, copied from decode_long_double.
47023         (scale10_round_decimal_decoded): New function, extracted from
47024         scale10_round_decimal_long_double.
47025         (scale10_round_decimal_long_double): Use it.
47026         (scale10_round_decimal_double): New function.
47027         (floorlog10): New function.
47028         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
47029         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
47030         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47031         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47032         gl_PRINTF_ENOMEM and test its result. Invoke
47033         gl_PREREQ_VASNPRINTF_ENOMEM.
47034         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47035         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47036         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47037         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47038         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47039         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47040         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47041         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
47042         * modules/snprintf-posix (Depends-on): Likewise.
47043         * modules/sprintf-posix (Depends-on): Likewise.
47044         * modules/vasnprintf-posix (Depends-on): Likewise.
47045         * modules/vasprintf-posix (Depends-on): Likewise.
47046         * modules/vfprintf-posix (Depends-on): Likewise.
47047         * modules/vsnprintf-posix (Depends-on): Likewise.
47048         * modules/vsprintf-posix (Depends-on): Likewise.
47049         * doc/functions/fprintf.texi: Update.
47050         * doc/functions/printf.texi: Update.
47051         * doc/functions/snprintf.texi: Update.
47052         * doc/functions/sprintf.texi: Update.
47053         * doc/functions/vfprintf.texi: Update.
47054         * doc/functions/vprintf.texi: Update.
47055         * doc/functions/vsnprintf.texi: Update.
47056         * doc/functions/vsprintf.texi: Update.
47057
47058 2007-11-03  Bruno Haible  <bruno@clisp.org>
47059
47060         * modules/frexp-nolibm-tests: New file.
47061
47062         * modules/frexp-nolibm: New file.
47063         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
47064
47065 2007-11-03  Bruno Haible  <bruno@clisp.org>
47066
47067         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
47068         value is C99 compliant.
47069         Needed for OSF/1 5.1.
47070
47071 2007-11-03  Bruno Haible  <bruno@clisp.org>
47072
47073         Fix out-of-memory handling of vasnprintf.
47074         * lib/printf-parse.c: Include <errno.h>.
47075         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
47076         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
47077         is already set.
47078
47079 2007-11-02  Eric Blake  <ebb9@byu.net>
47080
47081         Fix tests on cygwin.
47082         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
47083
47084 2007-11-01  Bruno Haible  <bruno@clisp.org>
47085
47086         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47087         warning.
47088         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47089         needed for POSIX compatibility.
47090
47091 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47092
47093         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47094         for compatibility with GNU.
47095
47096 2007-11-01  Bruno Haible  <bruno@clisp.org>
47097
47098         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47099         (putenv): Renamed from rpl_putenv. Change argument type from
47100         'const char *' to 'char *'.
47101         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47102         of defining putenv in config.h, just set REPLACE_PUTENV.
47103         * modules/putenv (Depends-on): Add stdlib.
47104         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47105         (Include): Use <stdlib.h>.
47106         * lib/stdlib.in.h (putenv): New declaration.
47107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47108         REPLACE_PUTENV.
47109         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47110         REPLACE_PUTENV.
47111         Needed for MacOS X 10.5.0.
47112         Reported by Peter O'Gorman <peter@pogma.com>.
47113
47114 2007-11-01  Jim Meyering  <meyering@redhat.com>
47115
47116         Treat an empty date string exactly like "0".
47117         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47118         if the remaining date string (to be parsed) is empty, use "0".
47119         Reported by Mischa Molhoek and discussed in this thread:
47120         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47121
47122 2007-10-31  Bruno Haible  <bruno@clisp.org>
47123
47124         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47125         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47126         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47127         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47128         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47129         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47130
47131 2007-10-31  Bruno Haible  <bruno@clisp.org>
47132
47133         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47134         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47135         (AC_TYPE_LONG_LONG_INT): Use it.
47136         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47137         it as well.
47138         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47139         to m4/longlong.m4.
47140         * modules/stdint (Files): Remove m4/ulonglong.m4.
47141         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47142         m4/ulonglong.m4.
47143         * modules/strtoumax (Files): Likewise.
47144
47145 2007-10-30  Bruno Haible  <bruno@clisp.org>
47146
47147         * modules/xvasprintf-posix: New file.
47148         Suggested by Eric Blake.
47149
47150 2007-10-30  Bruno Haible  <bruno@clisp.org>
47151
47152         * modules/xprintf-posix-tests: New file.
47153         * tests/test-xprintf-posix.sh: New file.
47154         * tests/test-xprintf-posix.c: New file.
47155         * tests/test-xfprintf-posix.c: New file.
47156
47157         * modules/xprintf-posix: New file.
47158
47159 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47160
47161         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47162         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47163         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47164
47165 2007-10-29  Bruno Haible  <bruno@clisp.org>
47166
47167         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47168         contain the special marker '_cv_'.
47169         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47170         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47171         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47172         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47173         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47174         Reported by Ralf Wildenhues.
47175
47176 2007-10-29  Bruno Haible  <bruno@clisp.org>
47177
47178         * gnulib-tool (func_import): When --lgpl is not specified, set
47179         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47180         GPLv3.
47181         Reported by Simon Josefsson.
47182
47183 2007-10-28  Bruno Haible  <bruno@clisp.org>
47184
47185         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47186         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47187         HAVE_DECL_ISFINITE.
47188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47189         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47190         HAVE_DECL_ISFINITE.
47191
47192 2007-10-28  Bruno Haible  <bruno@clisp.org>
47193
47194         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47195         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47196
47197 2007-10-28  Bruno Haible  <bruno@clisp.org>
47198
47199         Fix link errors with Sun C 5.0 on Solaris 10.
47200         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47201         function is declared but not present in the compiler's libm.
47202         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47203         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47204         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47205         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47206         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47207         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47208         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47209         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47210         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47211         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47212         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47213         HAVE_DECL_FLOORL.
47214
47215 2007-10-28  Bruno Haible  <bruno@clisp.org>
47216
47217         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47218         gl_FUNC_FLOORL. Cache the result.
47219         (gl_FUNC_FLOORL): Use it.
47220         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47221         gl_FUNC_CEILL. Cache the result.
47222         (gl_FUNC_CEILL): Use it.
47223
47224         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47225         gl_FUNC_FLOOR. Cache the result.
47226         (gl_FUNC_FLOOR): Use it.
47227         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47228         gl_FUNC_CEIL. Cache the result.
47229         (gl_FUNC_CEIL): Use it.
47230
47231         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47232         gl_FUNC_FLOORF. Cache the result.
47233         (gl_FUNC_FLOORF): Use it.
47234         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47235         gl_FUNC_CEILF. Cache the result.
47236         (gl_FUNC_CEILF): Use it.
47237
47238 2007-10-28  Bruno Haible  <bruno@clisp.org>
47239
47240         * gnulib-tool: Allow specifying the LGPL version number through
47241         --lgpl=2 or --lgpl=3.
47242         (func_usage): Document --lgpl with argument.
47243         Handle --lgpl=... arguments.
47244         (func_import): Recognize also gl_LGPL calls with an argument. When
47245         --lgpl=2 is used and the module's license is just LGPL, report an
47246         error. Set sed_transform_lib_file according to the lgpl variable. In
47247         the generated files, use --lgpl or gl_LGPL invocations with argument,
47248         if necessary.
47249         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47250         an LGPv2+ license.
47251         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47252         gl_LGPL macro.
47253
47254 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47255             Bruno Haible  <bruno@clisp.org>
47256
47257         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47258         (u16_uctomb_aux): Likewise.
47259         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47260         !HAVE_INLINE.
47261         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47262
47263 2007-10-28  Bruno Haible  <bruno@clisp.org>
47264
47265         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47266         Invoke AM_GETTEXT_OPTION if it exists.
47267         * modules/vasprintf: Likewise.
47268         * modules/verror: Likewise.
47269         * modules/xprintf: Likewise.
47270         * modules/xvasprintf: Likewise.
47271
47272 2007-10-27  Ben Pfaff  <blp@gnu.org>
47273
47274         * lib/math.in.h: Define isfinite macro and prototypes for
47275         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47276         implementations.
47277         * m4/math_h.m4: New substitutions for isfinite module.
47278         * lib/isfinite.c: New file.
47279         * m4/isfinite.m4: New file.
47280         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47281         * modules/isfinite: New file.
47282         * modules/isfinite-tests: New file.
47283         * tests/tests-isfinite.c: New file.
47284         * doc/functions/isfinite.texi: Mention isfinite module.
47285         * MODULES.html.sh: Mention new module.
47286
47287 2007-10-27  Ben Pfaff  <blp@gnu.org>
47288
47289         Ralf Wildenhues reported that Tru64 4.0D declares the round
47290         functions but does not have definitions.
47291         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47292         cannot be found in any library, set the output variable to
47293         "missing" instead of "".
47294         * m4/round.m4: Also use our substitute if we cannot find round in
47295         any library, even if it is declared.
47296         * m4/roundf.m4: Likewise for roundf.
47297         * m4/roundl.m4: Likewise for roundl.
47298         * lib/math.in.h: Undefine roundf, round, roundl before defining
47299         their replacements, to allow for hypothetical systems where these
47300         may be defined as macros but not available in libraries.
47301
47302 2007-10-27  Bruno Haible  <bruno@clisp.org>
47303
47304         * doc/gnulib.texi: Invoke @firstparagraphindent.
47305         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47306         changes in gnulib.
47307         (Source changes): New section.
47308
47309 2007-10-26  Bruno Haible  <bruno@clisp.org>
47310
47311         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47312         borrowed from autoconf.
47313
47314 2007-10-26  Bruno Haible  <bruno@clisp.org>
47315
47316         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47317         strerror returned the empty string. Needed on HP-UX 11.00.
47318
47319 2007-10-24  Micah Cowan  <micah@cowan.name>
47320
47321         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47322         * build-aux/bootstrap: Remove support for now-unnecessary option,
47323         --cvs-user, and envvars CVS_USER, CVS_RSH.
47324
47325 2007-10-24  Jim Meyering  <meyering@redhat.com>
47326
47327         Avoid diagnostics from sha1sum when there is no cached checksum.
47328         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47329         if the po.s1 file hasn't been created yet.
47330
47331         * build-aux/bootstrap: Sync from coreutils:
47332         2007-10-24  Jim Meyering  <meyering@redhat.com>
47333         Get gnulib from the git repository, not from an obsolete cvs one.
47334         * build-aux/bootstrap: Suggestion from Micah Cowan.
47335         2007-10-04  Jim Meyering  <jim@meyering.net>
47336         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47337         (update_po_files): Work also when there are no .po files in po/.
47338
47339 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47340
47341         * README: Append ".git" to git and cg examples.
47342         Problem reported by Benoit Sigoure.
47343
47344 2007-10-23  Micah Cowan  <micah@cowan.name>
47345
47346         * users.txt: Add wget.
47347
47348 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47349
47350         Fix linking of some unistdio tests on FreeBSD.
47351         * modules/unistdio/u16-vsnprintf-tests
47352         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47353         * modules/unistdio/u16-vsprintf-tests
47354         (test_u16_vsnprintf1_LDADD): Likewise.
47355         * modules/unistdio/u32-vsnprintf-tests
47356         (test_u32_vsnprintf1_LDADD): Likewise.
47357         * modules/unistdio/u32-vsprintf-tests
47358         (test_u32_vsprintf1_LDADD): Likewise.
47359         * modules/unistdio/u8-vsnprintf-tests
47360         (test_u8_vsnprintf1_LDADD): Likewise.
47361         * modules/unistdio/u8-vsprintf-tests
47362         (test_u8_vsprintf1_LDADD): Likewise.
47363         * modules/unistdio/ulc-vsnprintf-tests
47364         (test_ulc_vsnprintf1_LDADD): Likewise.
47365         * modules/unistdio/ulc-vsprintf-tests
47366         (test_ulc_vsprintf1_LDADD): Likewise.
47367
47368         Fix linking of some uniconv tests on FreeBSD.
47369         * modules/uniconv/u16-conv-from-enc-tests
47370         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47371         * modules/uniconv/u16-conv-to-enc-tests
47372         (test_u16_conv_to_enc_LDADD): Likewise.
47373         * modules/uniconv/u16-strconv-from-enc-tests
47374         (test_u16_strconv_from_enc_LDADD): Likewise.
47375         * modules/uniconv/u16-strconv-to-enc-tests
47376         (test_u16_strconv_to_enc_LDADD): Likewise.
47377         * modules/uniconv/u32-conv-from-enc-tests
47378         (test_u32_conv_from_enc_LDADD): Likewise.
47379         * modules/uniconv/u32-conv-to-enc-tests
47380         (test_u32_conv_to_enc_LDADD): Likewise.
47381         * modules/uniconv/u32-strconv-from-enc-tests
47382         (test_u32_strconv_from_enc_LDADD): Likewise.
47383         * modules/uniconv/u32-strconv-to-enc-tests
47384         (test_u32_strconv_to_enc_LDADD): Likewise.
47385         * modules/uniconv/u8-conv-from-enc-tests
47386         (test_u8_conv_from_enc_LDADD): Likewise.
47387         * modules/uniconv/u8-conv-to-enc-tests
47388         (test_u8_conv_to_enc_LDADD): Likewise.
47389         * modules/uniconv/u8-strconv-from-enc-tests
47390         (test_u8_strconv_from_enc_LDADD): Likewise.
47391         * modules/uniconv/u8-strconv-to-enc-tests
47392         (test_u8_strconv_to_enc_LDADD): Likewise.
47393
47394 2007-10-22  Bruno Haible  <bruno@clisp.org>
47395
47396         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47397         size.
47398
47399 2007-10-22  Eric Blake  <ebb9@byu.net>
47400
47401         Tweak x*printf documentation.
47402         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47403         variable name and comments.
47404         Suggested by Bruno Haible.
47405
47406 2007-10-22  Bruno Haible  <bruno@clisp.org>
47407
47408         * lib/acl.c (copy_acl): Fix file name in comment.
47409
47410 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47411
47412         Fix Tru64 problem with stdbool.h.
47413         * lib/stdbool.in.h (false, true):
47414         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47415         Don't declare as an enum in this situation; it runs afoul of Tru64.
47416         Problem reported by Steven M. Schweda in
47417         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47418
47419 2007-10-22  Eric Blake  <ebb9@byu.net>
47420
47421         Also wrap vf?printf.
47422         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47423         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47424         (xvprintf, xvfprintf): New functions.
47425
47426 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47427
47428         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47429         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47430
47431         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47432         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47433
47434 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47435
47436         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47437         by Bruno Haible.
47438
47439 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47440
47441         * lib/getloadavg.c
47442         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47443         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47444
47445         * tests/test-i-ring.c: Work for C89.
47446
47447 2007-10-22  Bruno Haible  <bruno@clisp.org>
47448
47449         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47450         -1u, in preprocessor expression, so that we don't test for the bug
47451         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47453
47454 2007-10-22  Eric Blake  <ebb9@byu.net>
47455
47456         * tests/test-yesno.sh: Silence stderr during test.
47457
47458 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47459
47460         * modules/crypto/gc-camellia: New file.
47461
47462         * m4/gc-camellia.m4: New file.
47463
47464         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47465
47466         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47467
47468 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47469
47470         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47471         --help to stdout.  Reported by sms@antinode.org (Steven
47472         M. Schweda).
47473
47474 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47475
47476         * users.txt: Fix link to libksba.
47477
47478 2007-10-21  Ben Pfaff  <blp@gnu.org>
47479
47480         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47481         round.c roundf implementation that depends on floorf and ceilf to
47482         be tested unconditionally.
47483
47484 2007-10-21  Ben Pfaff  <blp@gnu.org>
47485
47486         * m4/check-libm-func.m4: Removed.
47487         * m4/check-math-lib.m4: New file.
47488         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47489         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47490         definition and lack of AC_LIBOBJ([roundf]).
47491         * m4/roundl.m4: Ditto, and similarly for roundl.
47492         * modules/round: Reference new m4 file.
47493         * modules/roundf: Ditto.
47494         * modules/roundl: Ditto.
47495         * tests/test-round2.c (main): Use ROUND instead of round.
47496         Bug report from Bruno Haible.
47497
47498 2007-10-21  Bruno Haible  <bruno@clisp.org>
47499
47500         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47501         context.
47502
47503 2007-10-21  Bruno Haible  <bruno@clisp.org>
47504
47505         * tests/test-wcwidth.c (main): Allow negative result for some control
47506         characters.
47507
47508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47509         Needed on OSF/1 5.1.
47510
47511 2007-10-21  Bruno Haible  <bruno@clisp.org>
47512
47513         * tests/test-floorf1.c: Include isnanf.h.
47514         (main): Use isnanf() instead of isnan().
47515         * tests/test-ceilf1.c: Include isnanf.h.
47516         (main): Use isnanf() instead of isnan().
47517         * tests/test-truncf1.c: Include isnanf.h.
47518         (main): Use isnanf() instead of isnan().
47519         * tests/test-roundf1.c: Include isnanf.h.
47520         (main): Use isnanf() instead of isnan().
47521
47522 2007-10-21  Eric Blake  <ebb9@byu.net>
47523
47524         * users.txt: Update URL for m4.
47525
47526 2007-10-21  Bruno Haible  <bruno@clisp.org>
47527
47528         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47529
47530 2007-10-21  Bruno Haible  <bruno@clisp.org>
47531
47532         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47533         Git's management files if the CVS files are not present.
47534
47535 2007-10-20  Bruno Haible  <bruno@clisp.org>
47536
47537         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47538         gcc-3.4.x.
47539
47540 2007-10-20  Ben Pfaff  <blp@gnu.org>
47541
47542         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47543         implementations.
47544         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47545         * lib/round.c: New file.
47546         * lib/roundf.c: New file.
47547         * lib/roundl.c: New file.
47548         * m4/round.m4: New file.
47549         * m4/roundf.m4: New file.
47550         * m4/roundl.m4: New file.
47551         * m4/check-libm-func-m4: New file.
47552         * modules/math: Replace round, roundf, roundl related @VARS@ in
47553         math.in.h.
47554         * modules/round: New file.
47555         * modules/round-tests: New file.
47556         * modules/roundf: New file.
47557         * modules/roundf-tests: New file.
47558         * modules/roundl: New file.
47559         * modules/roundl-tests: New file.
47560         * tests/test-round1.c: New file.
47561         * tests/test-round2.c: New file.
47562         * tests/test-roundf1.c: New file.
47563         * tests/test-roundf2.c: New file.
47564         * tests/test-roundl.c: New file.
47565         * doc/functions/round.texi: Mention round module.
47566         * doc/functions/roundf.texi: Mention roundf module.
47567         * doc/functions/roundl.texi: Mention roundl module.
47568         * MODULES.html.sh: Mention new modules.
47569         Thanks to Bruno Haible for suggestions.
47570
47571 2007-10-20  Jim Meyering  <meyering@redhat.com>
47572
47573         * lib/xprintf.c: Include <config.h> unconditionally.
47574
47575         Change xprintf's license to GPL.
47576         * modules/xprintf (License): s/LGPL/GPL/, since this module
47577         depends on modules (exit and exitfail) which are GPL.
47578         Suggestion from Bruno Haible.
47579
47580         xprintf fixes.
47581         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47582         Use a clearer diagnostic.
47583         Patch from Bruno Haible.
47584
47585 2007-10-20  Bruno Haible  <bruno@clisp.org>
47586
47587         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47588         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47589         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47590
47591 2007-10-20  Bruno Haible  <bruno@clisp.org>
47592
47593         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47594         precision in the comparison result > x - 1 or similar.
47595         * tests/test-ceilf2.c (correct_result_p): Likewise.
47596         * tests/test-truncf2.c (correct_result_p): Likewise.
47597         * tests/test-trunc2.c (correct_result_p): Likewise.
47598         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47599
47600 2007-10-20  Bruno Haible  <bruno@clisp.org>
47601
47602         * modules/ceil: New file.
47603         * m4/ceil.m4: New file.
47604         * doc/functions/ceil.texi: Mention the 'ceil' module.
47605
47606 2007-10-20  Bruno Haible  <bruno@clisp.org>
47607
47608         * modules/floor: New file.
47609         * m4/floor.m4: New file.
47610         * doc/functions/floor.texi: Mention the 'floor' module.
47611
47612 2007-10-20  Bruno Haible  <bruno@clisp.org>
47613
47614         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47615         of %a.
47616         * modules/floorf-tests (Depends-on): Likewise.
47617         * modules/truncf-tests (Depends-on): Likewise.
47618         * modules/trunc-tests (Depends-on): Likewise.
47619         Reported by Ben Pfaff.
47620
47621 2007-10-19  Jim Meyering  <meyering@redhat.com>
47622
47623         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47624         Don't bother testing specific errno values.  Just test ferror.
47625
47626         New module: xprintf
47627         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47628
47629 2007-10-19  Bruno Haible  <bruno@clisp.org>
47630
47631         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47632         syntax.
47633         * modules/javaexec (Makefile.am): Likewise.
47634         * modules/relocatable-prog (Makefile.am): Likewise.
47635         Suggested by Jim Meyering.
47636
47637 2007-10-18  Bruno Haible  <bruno@clisp.org>
47638
47639         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47640         Reported by Jim Meyering.
47641
47642 2007-10-18  Eric Blake  <ebb9@byu.net>
47643
47644         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47645
47646 2007-10-18  Bruno Haible  <bruno@clisp.org>
47647
47648         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47649         the format string into writable memory. Needed in Fortify conditions.
47650
47651 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47652             Bruno Haible  <bruno@clisp.org>
47653
47654         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47655         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47656         * modules/trim (Depends-on): Add mbchar.
47657         (configure.ac): Add gl_FUNC_MBRTOWC.
47658         (Makefile.am): Augment lib_SOURCES.
47659
47660 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47661
47662         Modify glob.c to use fstatat and dirfd, to simplify it.
47663         Suggested by Eric Blake.
47664         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47665         Don't include <stdbool.h>; not used.
47666         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47667         (link_exists_p): Simplify implementation, since we can now assume
47668         dirfd and fstatat.
47669         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47670
47671 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47672
47673         * gnulib-tool (func_get_dependencies): Fix sed script to
47674         match only tests.
47675
47676 2007-10-17  Bruno Haible  <bruno@clisp.org>
47677
47678         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47679         allow locale names without encoding suffix.
47680         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47681         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47682
47683 2007-10-16  Bruno Haible  <bruno@clisp.org>
47684
47685         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47686         * lib/getgroups.c (getgroups): Likewise.
47687         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47688
47689 2007-10-16  Bruno Haible  <bruno@clisp.org>
47690
47691         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47692         * modules/malloc-posix (License): Likewise.
47693         * modules/realloc-posix (License): Likewise.
47694         * modules/calloc-posix (License): Likewise.
47695         * modules/intprops (License): Change from GPL to LGPL, with
47696         Paul Eggert's approval.
47697
47698 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47699
47700         Merge glibc changes into lib/glob.c.
47701
47702         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47703         2007-10-15 04:59:03 UTC.  Here are the changes:
47704
47705         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47706
47707         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47708
47709         * lib/glob.c: Add some branch prediction throughout.
47710
47711         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47712
47713         [BZ #5103]
47714         * lib/glob.c (glob): Recognize patterns starting \/.
47715
47716         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47717
47718         [BZ #3996]
47719         * lib/glob.c (attribute_hidden): Define if not defined.
47720         (glob): Unescape dirname, filename or username when needed and not
47721         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47722         is NULL.  Handle unescaped [ in pattern without closing ].
47723         Don't pass GLOB_CHECK down to recursive glob for directories.
47724         (__glob_pattern_type): New function.
47725         (__glob_pattern_p): Implement using __glob_pattern_type.
47726         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47727         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47728         Remove unreachable code.
47729
47730         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47731
47732         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47733         explain why there are no leaks.
47734
47735         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47736
47737         [BZ #3253]
47738         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47739         time, rather allocate increasingly bigger arrays of pointers, if
47740         possible with alloca, if too large with malloc.
47741
47742 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47743
47744         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47745         Problem reported by H.Merijn Brand in
47746         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47747         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47748         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47749
47750 2007-10-15  Bruno Haible  <bruno@clisp.org>
47751
47752         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47753         with explicit rpl_ prefix.
47754         * lib/fopen.c (fopen): Likewise.
47755         * lib/freopen.c (freopen): Likewise.
47756         * lib/iconv.c (iconv): Likewise.
47757         * lib/iconv_close.c (iconv_close): Likewise.
47758
47759 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47760
47761         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
47762
47763 2007-10-15  Bruno Haible  <bruno@clisp.org>
47764
47765         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
47766         <stddef.h> instead of <stdlib.h> since we only need NULL.
47767         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47768
47769 2007-10-15  Bruno Haible  <bruno@clisp.org>
47770
47771         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
47772         Replace paragraph talking about LIBOBJS.
47773         Reported by Colin Watson <cjwatson@debian.org>.
47774
47775 2007-10-15  Bruno Haible  <bruno@clisp.org>
47776
47777         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
47778         <stdlib.h> before using NULL.
47779
47780 2007-10-15  Simon Josefsson  <simon@josefsson.org>
47781
47782         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
47783         Reported by Albert Chin <china@thewrittenword.com>.
47784
47785 2007-10-14  Bruno Haible  <bruno@clisp.org>
47786
47787         * modules/iconv_open-utf-tests: New file.
47788         * tests/test-iconv-utf.c: New file.
47789
47790         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
47791         * modules/iconv_open-utf: New file.
47792         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
47793         (iconv, iconv_close): New declarations.
47794         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
47795         be defined.
47796         (iconv_open): Add special handling of conversion between UTF-8 and
47797         UTF-{16,32}{BE,LE}.
47798         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
47799         * lib/iconv_close.c: New file.
47800         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
47801         gl_FUNC_ICONV_OPEN.
47802         (gl_FUNC_ICONV_OPEN): Use it.
47803         (gl_FUNC_ICONV_OPEN_UTF): New macro.
47804         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
47805         and REPLACE_ICONV_UTF.
47806         * modules/iconv_open (Depends-on): Add c-strcase.
47807         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
47808         ICONV_CONST.
47809         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
47810
47811 2007-10-13  Albert Chin  <china@thewrittenword.com>
47812             Bruno Haible  <bruno@clisp.org>
47813
47814         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
47815         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
47816
47817 2007-10-13  Bruno Haible  <bruno@clisp.org>
47818
47819         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
47820         defined, use the ISO C99 inline semantics.
47821         * lib/argp.h (ARGP_EI): Likewise.
47822
47823 2007-10-13  Bruno Haible  <bruno@clisp.org>
47824
47825         Handle 'inline' change in gcc 4.3.0.
47826         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
47827         argp_fmtstream_write, argp_fmtstream_set_lmargin,
47828         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
47829         argp_fmtstream_point): Disable 'extern' declaration if the function
47830         definition is going to be provided inline.
47831         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
47832         semantics, not the ISO C99 inline semantics.
47833         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
47834         'extern' declaration if the function definition is going to be provided
47835         inline.
47836         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
47837         the GNU C inline semantics, not the ISO C99 inline semantics. With
47838         GCC 4.2, avoid a warning.
47839
47840 2007-10-13  Bruno Haible  <bruno@clisp.org>
47841
47842         * lib/freading.h (freading): Enable the use of __freading for
47843         glibc >= 2.7.
47844         * lib/freading.c (freading): Likewise.
47845
47846 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47847
47848         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
47849         "warning: C99 inline functions are not supported; using GNU89".
47850
47851 2007-10-12  Bruno Haible  <bruno@clisp.org>
47852
47853         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
47854         of 2.
47855         * tests/test-ceilf2.c: New file.
47856         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
47857
47858         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
47859         * modules/ceilf-tests: Update.
47860
47861 2007-10-12  Bruno Haible  <bruno@clisp.org>
47862
47863         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
47864         of 2.
47865         * tests/test-floorf2.c: New file.
47866         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
47867
47868         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
47869         * modules/floorf-tests: Update.
47870
47871 2007-10-12  Bruno Haible  <bruno@clisp.org>
47872
47873         * tests/test-trunc2.c: New file.
47874         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
47875
47876         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
47877         * modules/trunc-tests: Update.
47878
47879 2007-10-12  Bruno Haible  <bruno@clisp.org>
47880
47881         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
47882         of 2.
47883         * tests/test-truncf2.c: New file.
47884         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
47885
47886         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
47887         * modules/truncf-tests: Update.
47888
47889 2007-10-11  Eric Blake  <ebb9@byu.net>
47890
47891         Don't claim strerror is broken on Interix.
47892         * doc/functions/strerror.texi (strerror): Known broken systems are
47893         now Solaris 8, and not Interix.
47894         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
47895         Interix on cross-compile.
47896         Reported by Martin Koeppe in
47897         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
47898
47899 2007-10-11  Bruno Haible  <bruno@clisp.org>
47900
47901         * modules/i-ring-tests: New file.
47902         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
47903         instead of assert.
47904
47905 2007-10-11  Bruno Haible  <bruno@clisp.org>
47906
47907         * modules/filenamecat-tests: New file.
47908         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
47909         * lib/filenamecat.c: Remove test code.
47910
47911 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47912
47913         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
47914
47915         * lib/strerror.c: Include <string.h> always, to test interface,
47916         and to remove the need for the dummy.
47917         Include intprops.h to compute width instead of doing it ourselves
47918         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
47919         (strerror): Define it to return NULL if there's no system strerror.
47920         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
47921         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
47922         ancient pre-strerror Unix systems well any more.  Saying "unknown
47923         system error" is enough.
47924         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
47925         simpler strerror.c implementation.
47926         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
47927         Simplify the tests to reflect the simpler strerror implementation.
47928         * modules/strerror (Depends-on): Add intprops.
47929
47930 2007-10-09  Eric Blake  <ebb9@byu.net>
47931
47932         Silence test-fpending.
47933         * modules/fpending-tests (Files): Add wrapper script.
47934         * tests/test-fpending.sh: New file.
47935
47936 2007-10-09  Bruno Haible  <bruno@clisp.org>
47937
47938         * MODULES.html.sh (func_module): Don't create a hyperlink for
47939         function names like 'printf_frexp'.
47940         (Misc): Add crc, memxor.
47941         (Characteristics of floating types): New section.
47942         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
47943         isnanf-nolibm, signbit, trunc, truncf, truncl.
47944         (Enhancements for ISO C 99 functions): New subsection Input/output.
47945         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
47946         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
47947         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
47948         (Compatibility checks for POSIX:2001 functions): Add clock-time.
47949         (Enhancements for POSIX:2001 functions): Add chdir-long.
47950         (File system functions): Add areadlink, chdir-safer, read-file.
47951         Remove cycle-check.
47952         (File system as inode set): New section.
47953         (Date and time): Add gethrxtime.
47954         (Multithreading): Add openmp.
47955         (Internationalization functions): Add localename.
47956         (Unicode string functions): Add unistr/u*-mbsnlen.
47957         (Support for maintaining and releasing projects): Add git-version-gen.
47958         (Lone files): Remove directories.
47959
47960 2007-10-08  Ben Pfaff  <blp@gnu.org>
47961
47962         * lib/xmalloca.h: Fix typo in comment.
47963
47964 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47965
47966         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47967         when avoiding problems with integer overflow.  Use a portable test
47968         instead.
47969
47970 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47971
47972         * modules/dummy (License): Change to LGPLv2+.
47973         * modules/float (License): Likewise
47974         * modules/realloc (License): Likewise
47975         * modules/stdlib (License): Likewise
47976
47977 2007-10-07  Bruno Haible  <bruno@clisp.org>
47978
47979         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47980         * floor.c (TWO_MANT_DIG): Likewise.
47981         * ceil.c (TWO_MANT_DIG): Likewise.
47982         Reported by Ben Pfaff.
47983
47984 2007-10-07  Bruno Haible  <bruno@clisp.org>
47985
47986         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47987         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47988         * lib/frexp.c (FUNC): Likewise.
47989         * lib/printf-frexp.h (printf_frexp): Likewise.
47990         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47991         * lib/printf-frexp.c (FUNC): Likewise.
47992         Suggested by Jim Meyering.
47993
47994 2007-10-07  Jim Meyering  <meyering@redhat.com>
47995
47996         Make xnanosleep's integer overflow test more robust.
47997         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
47998         so that gcc-4.3.0 doesn't optimize away this test for overflow.
47999
48000 2007-10-07  Bruno Haible  <bruno@clisp.org>
48001
48002         * NEWS: Mention the license change.
48003
48004         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
48005         abbreviations in the modules files.
48006
48007         Change copyright notice from GPLv2+ to GPLv3+.
48008         * README: Change copyright notice.
48009         * MODULES.html.sh: Likewise.
48010         * build-aux/bootstrap.conf: Likewise.
48011         * build-aux/config.libpath: Likewise.
48012         * build-aux/csharpcomp.sh.in: Likewise.
48013         * build-aux/csharpexec.sh.in: Likewise.
48014         * build-aux/install-reloc: Likewise.
48015         * build-aux/javacomp.sh.in: Likewise.
48016         * build-aux/javaexec.sh.in: Likewise.
48017         * build-aux/ldd.sh.in: Likewise.
48018         * build-aux/reloc-ldflags: Likewise.
48019         * build-aux/relocatable.sh.in: Likewise.
48020         * build-aux/x-to-1.in: Likewise.
48021         * check-module: Likewise.
48022         * config/srclistvars.sh: Likewise.
48023         * gnulib-tool: Likewise.
48024         * lib/acl-internal.h: Likewise.
48025         * lib/acl.c: Likewise.
48026         * lib/acl.h: Likewise.
48027         * lib/acl_entries.c: Likewise.
48028         * lib/areadlink-with-size.c: Likewise.
48029         * lib/areadlink.c: Likewise.
48030         * lib/areadlink.h: Likewise.
48031         * lib/argmatch.c: Likewise.
48032         * lib/argmatch.h: Likewise.
48033         * lib/argp-ba.c: Likewise.
48034         * lib/argp-eexst.c: Likewise.
48035         * lib/argp-fmtstream.c: Likewise.
48036         * lib/argp-fmtstream.h: Likewise.
48037         * lib/argp-fs-xinl.c: Likewise.
48038         * lib/argp-help.c: Likewise.
48039         * lib/argp-namefrob.h: Likewise.
48040         * lib/argp-parse.c: Likewise.
48041         * lib/argp-pin.c: Likewise.
48042         * lib/argp-pv.c: Likewise.
48043         * lib/argp-pvh.c: Likewise.
48044         * lib/argp-xinl.c: Likewise.
48045         * lib/argp.h: Likewise.
48046         * lib/at-func.c: Likewise.
48047         * lib/atanl.c: Likewise.
48048         * lib/backupfile.c: Likewise.
48049         * lib/backupfile.h: Likewise.
48050         * lib/basename.c: Likewise.
48051         * lib/binary-io.h: Likewise.
48052         * lib/byteswap.in.h: Likewise.
48053         * lib/c-stack.c: Likewise.
48054         * lib/c-stack.h: Likewise.
48055         * lib/c-strcasestr.c: Likewise.
48056         * lib/c-strcasestr.h: Likewise.
48057         * lib/c-strstr.c: Likewise.
48058         * lib/c-strstr.h: Likewise.
48059         * lib/c-strtod.c: Likewise.
48060         * lib/calloc.c: Likewise.
48061         * lib/canon-host.c: Likewise.
48062         * lib/canon-host.h: Likewise.
48063         * lib/canonicalize-lgpl.c: Likewise.
48064         * lib/canonicalize.c: Likewise.
48065         * lib/canonicalize.h: Likewise.
48066         * lib/ceil.c: Likewise.
48067         * lib/ceilf.c: Likewise.
48068         * lib/ceill.c: Likewise.
48069         * lib/chdir-long.c: Likewise.
48070         * lib/chdir-long.h: Likewise.
48071         * lib/chdir-safer.c: Likewise.
48072         * lib/chdir-safer.h: Likewise.
48073         * lib/chown.c: Likewise.
48074         * lib/classpath.c: Likewise.
48075         * lib/classpath.h: Likewise.
48076         * lib/clean-temp.c: Likewise.
48077         * lib/clean-temp.h: Likewise.
48078         * lib/cloexec.c: Likewise.
48079         * lib/close-stream.c: Likewise.
48080         * lib/closein.c: Likewise.
48081         * lib/closein.h: Likewise.
48082         * lib/closeout.c: Likewise.
48083         * lib/closeout.h: Likewise.
48084         * lib/concat-filename.c: Likewise.
48085         * lib/copy-file.c: Likewise.
48086         * lib/copy-file.h: Likewise.
48087         * lib/count-one-bits.h: Likewise.
48088         * lib/crc.c: Likewise.
48089         * lib/crc.h: Likewise.
48090         * lib/creat-safer.c: Likewise.
48091         * lib/csharpcomp.c: Likewise.
48092         * lib/csharpcomp.h: Likewise.
48093         * lib/csharpexec.c: Likewise.
48094         * lib/csharpexec.h: Likewise.
48095         * lib/cycle-check.c: Likewise.
48096         * lib/cycle-check.h: Likewise.
48097         * lib/diacrit.c: Likewise.
48098         * lib/diacrit.h: Likewise.
48099         * lib/diffseq.h: Likewise.
48100         * lib/dirchownmod.c: Likewise.
48101         * lib/dirent.in.h: Likewise.
48102         * lib/dirfd.c: Likewise.
48103         * lib/dirfd.h: Likewise.
48104         * lib/dirname.c: Likewise.
48105         * lib/dirname.h: Likewise.
48106         * lib/dummy.c: Likewise.
48107         * lib/dup-safer.c: Likewise.
48108         * lib/dup2.c: Likewise.
48109         * lib/eealloc.h: Likewise.
48110         * lib/error.c: Likewise.
48111         * lib/error.h: Likewise.
48112         * lib/euidaccess.c: Likewise.
48113         * lib/exclude.c: Likewise.
48114         * lib/exclude.h: Likewise.
48115         * lib/execute.c: Likewise.
48116         * lib/execute.h: Likewise.
48117         * lib/exitfail.c: Likewise.
48118         * lib/exitfail.h: Likewise.
48119         * lib/expl.c: Likewise.
48120         * lib/fatal-signal.c: Likewise.
48121         * lib/fatal-signal.h: Likewise.
48122         * lib/fbufmode.c: Likewise.
48123         * lib/fbufmode.h: Likewise.
48124         * lib/fchdir.c: Likewise.
48125         * lib/fchmodat.c: Likewise.
48126         * lib/fchownat.c: Likewise.
48127         * lib/fcntl--.h: Likewise.
48128         * lib/fcntl-safer.h: Likewise.
48129         * lib/fcntl.in.h: Likewise.
48130         * lib/fd-safer.c: Likewise.
48131         * lib/fflush.c: Likewise.
48132         * lib/file-has-acl.c: Likewise.
48133         * lib/file-set.c: Likewise.
48134         * lib/file-type.c: Likewise.
48135         * lib/file-type.h: Likewise.
48136         * lib/fileblocks.c: Likewise.
48137         * lib/filemode.c: Likewise.
48138         * lib/filemode.h: Likewise.
48139         * lib/filename.h: Likewise.
48140         * lib/filenamecat.c: Likewise.
48141         * lib/filenamecat.h: Likewise.
48142         * lib/findprog.c: Likewise.
48143         * lib/findprog.h: Likewise.
48144         * lib/float.in.h: Likewise.
48145         * lib/floor.c: Likewise.
48146         * lib/floorf.c: Likewise.
48147         * lib/floorl.c: Likewise.
48148         * lib/fopen-safer.c: Likewise.
48149         * lib/fopen.c: Likewise.
48150         * lib/fpending.c: Likewise.
48151         * lib/fpending.h: Likewise.
48152         * lib/fprintf.c: Likewise.
48153         * lib/fprintftime.h: Likewise.
48154         * lib/fpucw.h: Likewise.
48155         * lib/fpurge.c: Likewise.
48156         * lib/fpurge.h: Likewise.
48157         * lib/freadable.c: Likewise.
48158         * lib/freadable.h: Likewise.
48159         * lib/freadahead.c: Likewise.
48160         * lib/freadahead.h: Likewise.
48161         * lib/freading.c: Likewise.
48162         * lib/freading.h: Likewise.
48163         * lib/free.c: Likewise.
48164         * lib/freopen.c: Likewise.
48165         * lib/frexp.c: Likewise.
48166         * lib/frexpl.c: Likewise.
48167         * lib/fseek.c: Likewise.
48168         * lib/fseterr.c: Likewise.
48169         * lib/fseterr.h: Likewise.
48170         * lib/fstatat.c: Likewise.
48171         * lib/fstrcmp.c: Likewise.
48172         * lib/fstrcmp.h: Likewise.
48173         * lib/fsusage.c: Likewise.
48174         * lib/fsusage.h: Likewise.
48175         * lib/ftell.c: Likewise.
48176         * lib/ftello.c: Likewise.
48177         * lib/fts-cycle.c: Likewise.
48178         * lib/fts.c: Likewise.
48179         * lib/fts_.h: Likewise.
48180         * lib/full-read.c: Likewise.
48181         * lib/full-read.h: Likewise.
48182         * lib/full-write.c: Likewise.
48183         * lib/full-write.h: Likewise.
48184         * lib/fwritable.c: Likewise.
48185         * lib/fwritable.h: Likewise.
48186         * lib/fwriteerror.c: Likewise.
48187         * lib/fwriteerror.h: Likewise.
48188         * lib/fwriting.c: Likewise.
48189         * lib/fwriting.h: Likewise.
48190         * lib/gcd.c: Likewise.
48191         * lib/gcd.h: Likewise.
48192         * lib/getcwd.c: Likewise.
48193         * lib/getdate.h: Likewise.
48194         * lib/getdate.y: Likewise.
48195         * lib/getdomainname.c: Likewise.
48196         * lib/getdomainname.h: Likewise.
48197         * lib/getgroups.c: Likewise.
48198         * lib/gethostname.c: Likewise.
48199         * lib/gethrxtime.c: Likewise.
48200         * lib/gethrxtime.h: Likewise.
48201         * lib/getloadavg.c: Likewise.
48202         * lib/getndelim2.c: Likewise.
48203         * lib/getndelim2.h: Likewise.
48204         * lib/getnline.c: Likewise.
48205         * lib/getnline.h: Likewise.
48206         * lib/getopt.c: Likewise.
48207         * lib/getopt.in.h: Likewise.
48208         * lib/getopt1.c: Likewise.
48209         * lib/getopt_int.h: Likewise.
48210         * lib/getpagesize.h: Likewise.
48211         * lib/getsubopt.c: Likewise.
48212         * lib/gettime.c: Likewise.
48213         * lib/getugroups.c: Likewise.
48214         * lib/getugroups.h: Likewise.
48215         * lib/getusershell.c: Likewise.
48216         * lib/gl_anyavltree_list1.h: Likewise.
48217         * lib/gl_anyavltree_list2.h: Likewise.
48218         * lib/gl_anyhash_list1.h: Likewise.
48219         * lib/gl_anyhash_list2.h: Likewise.
48220         * lib/gl_anylinked_list1.h: Likewise.
48221         * lib/gl_anylinked_list2.h: Likewise.
48222         * lib/gl_anyrbtree_list1.h: Likewise.
48223         * lib/gl_anyrbtree_list2.h: Likewise.
48224         * lib/gl_anytree_list1.h: Likewise.
48225         * lib/gl_anytree_list2.h: Likewise.
48226         * lib/gl_anytree_oset.h: Likewise.
48227         * lib/gl_anytreehash_list1.h: Likewise.
48228         * lib/gl_anytreehash_list2.h: Likewise.
48229         * lib/gl_array_list.c: Likewise.
48230         * lib/gl_array_list.h: Likewise.
48231         * lib/gl_array_oset.c: Likewise.
48232         * lib/gl_array_oset.h: Likewise.
48233         * lib/gl_avltree_list.c: Likewise.
48234         * lib/gl_avltree_list.h: Likewise.
48235         * lib/gl_avltree_oset.c: Likewise.
48236         * lib/gl_avltree_oset.h: Likewise.
48237         * lib/gl_avltreehash_list.c: Likewise.
48238         * lib/gl_avltreehash_list.h: Likewise.
48239         * lib/gl_carray_list.c: Likewise.
48240         * lib/gl_carray_list.h: Likewise.
48241         * lib/gl_linked_list.c: Likewise.
48242         * lib/gl_linked_list.h: Likewise.
48243         * lib/gl_linkedhash_list.c: Likewise.
48244         * lib/gl_linkedhash_list.h: Likewise.
48245         * lib/gl_list.c: Likewise.
48246         * lib/gl_list.h: Likewise.
48247         * lib/gl_oset.c: Likewise.
48248         * lib/gl_oset.h: Likewise.
48249         * lib/gl_rbtree_list.c: Likewise.
48250         * lib/gl_rbtree_list.h: Likewise.
48251         * lib/gl_rbtree_oset.c: Likewise.
48252         * lib/gl_rbtree_oset.h: Likewise.
48253         * lib/gl_rbtreehash_list.c: Likewise.
48254         * lib/gl_rbtreehash_list.h: Likewise.
48255         * lib/gl_sublist.c: Likewise.
48256         * lib/gl_sublist.h: Likewise.
48257         * lib/group-member.c: Likewise.
48258         * lib/group-member.h: Likewise.
48259         * lib/hard-locale.c: Likewise.
48260         * lib/hard-locale.h: Likewise.
48261         * lib/hash-pjw.c: Likewise.
48262         * lib/hash-pjw.h: Likewise.
48263         * lib/hash-triple.c: Likewise.
48264         * lib/hash.c: Likewise.
48265         * lib/hash.h: Likewise.
48266         * lib/human.c: Likewise.
48267         * lib/human.h: Likewise.
48268         * lib/i-ring.c: Likewise.
48269         * lib/i-ring.h: Likewise.
48270         * lib/idcache.c: Likewise.
48271         * lib/imaxabs.c: Likewise.
48272         * lib/imaxdiv.c: Likewise.
48273         * lib/inet_pton.c: Likewise.
48274         * lib/inet_pton.h: Likewise.
48275         * lib/intprops.h: Likewise.
48276         * lib/inttostr.c: Likewise.
48277         * lib/inttostr.h: Likewise.
48278         * lib/inttypes.in.h: Likewise.
48279         * lib/isapipe.c: Likewise.
48280         * lib/isdir.c: Likewise.
48281         * lib/isnan.c: Likewise.
48282         * lib/isnan.h: Likewise.
48283         * lib/isnanf.c: Likewise.
48284         * lib/isnanf.h: Likewise.
48285         * lib/isnanl-nolibm.h: Likewise.
48286         * lib/isnanl.c: Likewise.
48287         * lib/isnanl.h: Likewise.
48288         * lib/javacomp.c: Likewise.
48289         * lib/javacomp.h: Likewise.
48290         * lib/javaexec.c: Likewise.
48291         * lib/javaexec.h: Likewise.
48292         * lib/javaversion.c: Likewise.
48293         * lib/javaversion.h: Likewise.
48294         * lib/javaversion.java: Likewise.
48295         * lib/lbrkprop.h: Likewise.
48296         * lib/lchmod.h: Likewise.
48297         * lib/lchown.c: Likewise.
48298         * lib/ldexpl.c: Likewise.
48299         * lib/linebreak.c: Likewise.
48300         * lib/linebreak.h: Likewise.
48301         * lib/linebuffer.c: Likewise.
48302         * lib/linebuffer.h: Likewise.
48303         * lib/locale.in.h: Likewise.
48304         * lib/logl.c: Likewise.
48305         * lib/long-options.c: Likewise.
48306         * lib/long-options.h: Likewise.
48307         * lib/lstat.c: Likewise.
48308         * lib/lstat.h: Likewise.
48309         * lib/math.in.h: Likewise.
48310         * lib/mbchar.c: Likewise.
48311         * lib/mbchar.h: Likewise.
48312         * lib/mbfile.h: Likewise.
48313         * lib/mbiter.h: Likewise.
48314         * lib/mbscasecmp.c: Likewise.
48315         * lib/mbscasestr.c: Likewise.
48316         * lib/mbschr.c: Likewise.
48317         * lib/mbscspn.c: Likewise.
48318         * lib/mbslen.c: Likewise.
48319         * lib/mbsncasecmp.c: Likewise.
48320         * lib/mbsnlen.c: Likewise.
48321         * lib/mbspbrk.c: Likewise.
48322         * lib/mbspcasecmp.c: Likewise.
48323         * lib/mbsrchr.c: Likewise.
48324         * lib/mbssep.c: Likewise.
48325         * lib/mbsspn.c: Likewise.
48326         * lib/mbsstr.c: Likewise.
48327         * lib/mbstok_r.c: Likewise.
48328         * lib/mbswidth.c: Likewise.
48329         * lib/mbswidth.h: Likewise.
48330         * lib/mbuiter.h: Likewise.
48331         * lib/memcasecmp.c: Likewise.
48332         * lib/memcasecmp.h: Likewise.
48333         * lib/memchr.c: Likewise.
48334         * lib/memcmp.c: Likewise.
48335         * lib/memcoll.c: Likewise.
48336         * lib/memcoll.h: Likewise.
48337         * lib/memcpy.c: Likewise.
48338         * lib/memrchr.c: Likewise.
48339         * lib/mkancesdirs.c: Likewise.
48340         * lib/mkdir-p.c: Likewise.
48341         * lib/mkdir-p.h: Likewise.
48342         * lib/mkdir.c: Likewise.
48343         * lib/mkdirat.c: Likewise.
48344         * lib/mkdtemp.c: Likewise.
48345         * lib/mkstemp-safer.c: Likewise.
48346         * lib/mkstemp.c: Likewise.
48347         * lib/modechange.c: Likewise.
48348         * lib/modechange.h: Likewise.
48349         * lib/mountlist.c: Likewise.
48350         * lib/mountlist.h: Likewise.
48351         * lib/mpsort.c: Likewise.
48352         * lib/nanosleep.c: Likewise.
48353         * lib/obstack.c: Likewise.
48354         * lib/obstack.h: Likewise.
48355         * lib/open-safer.c: Likewise.
48356         * lib/open.c: Likewise.
48357         * lib/openat-die.c: Likewise.
48358         * lib/openat-priv.h: Likewise.
48359         * lib/openat-proc.c: Likewise.
48360         * lib/openat.c: Likewise.
48361         * lib/openat.h: Likewise.
48362         * lib/pagealign_alloc.c: Likewise.
48363         * lib/pagealign_alloc.h: Likewise.
48364         * lib/physmem.c: Likewise.
48365         * lib/physmem.h: Likewise.
48366         * lib/pipe-safer.c: Likewise.
48367         * lib/pipe.c: Likewise.
48368         * lib/pipe.h: Likewise.
48369         * lib/posixtm.c: Likewise.
48370         * lib/posixtm.h: Likewise.
48371         * lib/posixver.c: Likewise.
48372         * lib/printf-frexp.c: Likewise.
48373         * lib/printf-frexp.h: Likewise.
48374         * lib/printf-frexpl.c: Likewise.
48375         * lib/printf-frexpl.h: Likewise.
48376         * lib/printf.c: Likewise.
48377         * lib/progname.c: Likewise.
48378         * lib/progname.h: Likewise.
48379         * lib/progreloc.c: Likewise.
48380         * lib/putenv.c: Likewise.
48381         * lib/quote.c: Likewise.
48382         * lib/quote.h: Likewise.
48383         * lib/quotearg.c: Likewise.
48384         * lib/quotearg.h: Likewise.
48385         * lib/raise.c: Likewise.
48386         * lib/readline.c: Likewise.
48387         * lib/readline.h: Likewise.
48388         * lib/readlink.c: Likewise.
48389         * lib/readtokens.c: Likewise.
48390         * lib/readtokens.h: Likewise.
48391         * lib/readtokens0.c: Likewise.
48392         * lib/readtokens0.h: Likewise.
48393         * lib/readutmp.c: Likewise.
48394         * lib/readutmp.h: Likewise.
48395         * lib/realloc.c: Likewise.
48396         * lib/relocwrapper.c: Likewise.
48397         * lib/rename-dest-slash.c: Likewise.
48398         * lib/rename.c: Likewise.
48399         * lib/rmdir.c: Likewise.
48400         * lib/rpmatch.c: Likewise.
48401         * lib/safe-read.c: Likewise.
48402         * lib/safe-read.h: Likewise.
48403         * lib/safe-write.c: Likewise.
48404         * lib/safe-write.h: Likewise.
48405         * lib/same-inode.h: Likewise.
48406         * lib/same.c: Likewise.
48407         * lib/same.h: Likewise.
48408         * lib/save-cwd.c: Likewise.
48409         * lib/save-cwd.h: Likewise.
48410         * lib/savedir.c: Likewise.
48411         * lib/savedir.h: Likewise.
48412         * lib/savewd.c: Likewise.
48413         * lib/savewd.h: Likewise.
48414         * lib/search.in.h: Likewise.
48415         * lib/setenv.c: Likewise.
48416         * lib/setenv.h: Likewise.
48417         * lib/settime.c: Likewise.
48418         * lib/sh-quote.c: Likewise.
48419         * lib/sh-quote.h: Likewise.
48420         * lib/sig2str.c: Likewise.
48421         * lib/sig2str.h: Likewise.
48422         * lib/signal.in.h: Likewise.
48423         * lib/signbitd.c: Likewise.
48424         * lib/signbitf.c: Likewise.
48425         * lib/signbitl.c: Likewise.
48426         * lib/sigprocmask.c: Likewise.
48427         * lib/sincosl.c: Likewise.
48428         * lib/sleep.c: Likewise.
48429         * lib/sprintf.c: Likewise.
48430         * lib/sqrtl.c: Likewise.
48431         * lib/stat-time.h: Likewise.
48432         * lib/stdio--.h: Likewise.
48433         * lib/stdio-safer.h: Likewise.
48434         * lib/stdlib--.h: Likewise.
48435         * lib/stdlib-safer.h: Likewise.
48436         * lib/stdlib.in.h: Likewise.
48437         * lib/stpcpy.c: Likewise.
48438         * lib/stpncpy.c: Likewise.
48439         * lib/strchrnul.c: Likewise.
48440         * lib/strcspn.c: Likewise.
48441         * lib/strerror.c: Likewise.
48442         * lib/strftime.c: Likewise.
48443         * lib/strftime.h: Likewise.
48444         * lib/striconveh.c: Likewise.
48445         * lib/striconveh.h: Likewise.
48446         * lib/striconveha.c: Likewise.
48447         * lib/striconveha.h: Likewise.
48448         * lib/stripslash.c: Likewise.
48449         * lib/strnlen1.c: Likewise.
48450         * lib/strnlen1.h: Likewise.
48451         * lib/strtod.c: Likewise.
48452         * lib/strtoimax.c: Likewise.
48453         * lib/strtok_r.c: Likewise.
48454         * lib/strtol.c: Likewise.
48455         * lib/strtoll.c: Likewise.
48456         * lib/strtoul.c: Likewise.
48457         * lib/strtoull.c: Likewise.
48458         * lib/sysexits.in.h: Likewise.
48459         * lib/tempname.c: Likewise.
48460         * lib/tempname.h: Likewise.
48461         * lib/timespec.h: Likewise.
48462         * lib/tls.c: Likewise.
48463         * lib/tls.h: Likewise.
48464         * lib/tmpdir.c: Likewise.
48465         * lib/tmpdir.h: Likewise.
48466         * lib/tmpfile-safer.c: Likewise.
48467         * lib/tmpfile.c: Likewise.
48468         * lib/trigl.c: Likewise.
48469         * lib/trigl.h: Likewise.
48470         * lib/trim.c: Likewise.
48471         * lib/trim.h: Likewise.
48472         * lib/trunc.c: Likewise.
48473         * lib/truncf.c: Likewise.
48474         * lib/truncl.c: Likewise.
48475         * lib/tsearch.c: Likewise.
48476         * lib/unicodeio.c: Likewise.
48477         * lib/unicodeio.h: Likewise.
48478         * lib/unistd--.h: Likewise.
48479         * lib/unistd-safer.h: Likewise.
48480         * lib/unistdio/ulc-fprintf.c: Likewise.
48481         * lib/unistdio/ulc-vfprintf.c: Likewise.
48482         * lib/unlinkdir.c: Likewise.
48483         * lib/unlinkdir.h: Likewise.
48484         * lib/unlocked-io.h: Likewise.
48485         * lib/unsetenv.c: Likewise.
48486         * lib/userspec.c: Likewise.
48487         * lib/utime.c: Likewise.
48488         * lib/utimecmp.c: Likewise.
48489         * lib/utimecmp.h: Likewise.
48490         * lib/utimens.c: Likewise.
48491         * lib/verify.h: Likewise.
48492         * lib/verror.c: Likewise.
48493         * lib/verror.h: Likewise.
48494         * lib/version-etc-fsf.c: Likewise.
48495         * lib/version-etc.c: Likewise.
48496         * lib/version-etc.h: Likewise.
48497         * lib/vfprintf.c: Likewise.
48498         * lib/vprintf.c: Likewise.
48499         * lib/vsprintf.c: Likewise.
48500         * lib/w32spawn.h: Likewise.
48501         * lib/wait-process.c: Likewise.
48502         * lib/wait-process.h: Likewise.
48503         * lib/wcwidth.c: Likewise.
48504         * lib/write-any-file.c: Likewise.
48505         * lib/xalloc-die.c: Likewise.
48506         * lib/xalloc.h: Likewise.
48507         * lib/xasprintf.c: Likewise.
48508         * lib/xgetcwd.c: Likewise.
48509         * lib/xgetcwd.h: Likewise.
48510         * lib/xgetdomainname.c: Likewise.
48511         * lib/xgetdomainname.h: Likewise.
48512         * lib/xgethostname.c: Likewise.
48513         * lib/xmalloc.c: Likewise.
48514         * lib/xmalloca.c: Likewise.
48515         * lib/xmalloca.h: Likewise.
48516         * lib/xmemcoll.c: Likewise.
48517         * lib/xnanosleep.c: Likewise.
48518         * lib/xreadlink.c: Likewise.
48519         * lib/xreadlink.h: Likewise.
48520         * lib/xsetenv.c: Likewise.
48521         * lib/xsetenv.h: Likewise.
48522         * lib/xstriconv.c: Likewise.
48523         * lib/xstriconv.h: Likewise.
48524         * lib/xstrndup.c: Likewise.
48525         * lib/xstrndup.h: Likewise.
48526         * lib/xstrtod.c: Likewise.
48527         * lib/xstrtod.h: Likewise.
48528         * lib/xstrtol-error.c: Likewise.
48529         * lib/xstrtol.c: Likewise.
48530         * lib/xstrtol.h: Likewise.
48531         * lib/xtime.h: Likewise.
48532         * lib/xvasprintf.c: Likewise.
48533         * lib/xvasprintf.h: Likewise.
48534         * lib/yesno.c: Likewise.
48535         * lib/yesno.h: Likewise.
48536         * posix-modules: Likewise.
48537         * tests/test-alloca-opt.c: Likewise.
48538         * tests/test-arcfour.c: Likewise.
48539         * tests/test-arctwo.c: Likewise.
48540         * tests/test-argmatch.c: Likewise.
48541         * tests/test-argp-2.sh: Likewise.
48542         * tests/test-argp.c: Likewise.
48543         * tests/test-arpa_inet.c: Likewise.
48544         * tests/test-array_list.c: Likewise.
48545         * tests/test-array_oset.c: Likewise.
48546         * tests/test-atexit.c: Likewise.
48547         * tests/test-avltree_list.c: Likewise.
48548         * tests/test-avltree_oset.c: Likewise.
48549         * tests/test-avltreehash_list.c: Likewise.
48550         * tests/test-base64.c: Likewise.
48551         * tests/test-binary-io.c: Likewise.
48552         * tests/test-byteswap.c: Likewise.
48553         * tests/test-c-ctype.c: Likewise.
48554         * tests/test-c-strcasecmp.c: Likewise.
48555         * tests/test-c-strcasestr.c: Likewise.
48556         * tests/test-c-strncasecmp.c: Likewise.
48557         * tests/test-c-strstr.c: Likewise.
48558         * tests/test-canonicalize-lgpl.c: Likewise.
48559         * tests/test-canonicalize.c: Likewise.
48560         * tests/test-carray_list.c: Likewise.
48561         * tests/test-ceilf.c: Likewise.
48562         * tests/test-ceill.c: Likewise.
48563         * tests/test-count-one-bits.c: Likewise.
48564         * tests/test-crc.c: Likewise.
48565         * tests/test-dirname.c: Likewise.
48566         * tests/test-fbufmode.c: Likewise.
48567         * tests/test-fcntl.c: Likewise.
48568         * tests/test-fflush.c: Likewise.
48569         * tests/test-floorf.c: Likewise.
48570         * tests/test-floorl.c: Likewise.
48571         * tests/test-fopen.c: Likewise.
48572         * tests/test-fprintf-posix.c: Likewise.
48573         * tests/test-fprintf-posix.h: Likewise.
48574         * tests/test-fpurge.c: Likewise.
48575         * tests/test-freadable.c: Likewise.
48576         * tests/test-freadahead.c: Likewise.
48577         * tests/test-freading.c: Likewise.
48578         * tests/test-freopen.c: Likewise.
48579         * tests/test-frexp.c: Likewise.
48580         * tests/test-frexpl.c: Likewise.
48581         * tests/test-fseek.c: Likewise.
48582         * tests/test-fseeko.c: Likewise.
48583         * tests/test-fseterr.c: Likewise.
48584         * tests/test-fstrcmp.c: Likewise.
48585         * tests/test-ftell.c: Likewise.
48586         * tests/test-ftello.c: Likewise.
48587         * tests/test-fwritable.c: Likewise.
48588         * tests/test-fwriting.c: Likewise.
48589         * tests/test-getaddrinfo.c: Likewise.
48590         * tests/test-getpass.c: Likewise.
48591         * tests/test-gettimeofday.c: Likewise.
48592         * tests/test-hmac-md5.c: Likewise.
48593         * tests/test-hmac-sha1.c: Likewise.
48594         * tests/test-iconv.c: Likewise.
48595         * tests/test-iconvme.c: Likewise.
48596         * tests/test-inttypes.c: Likewise.
48597         * tests/test-isnan.c: Likewise.
48598         * tests/test-isnanf.c: Likewise.
48599         * tests/test-isnanl-nolibm.c: Likewise.
48600         * tests/test-isnanl.c: Likewise.
48601         * tests/test-isnanl.h: Likewise.
48602         * tests/test-ldexpl.c: Likewise.
48603         * tests/test-linked_list.c: Likewise.
48604         * tests/test-linkedhash_list.c: Likewise.
48605         * tests/test-locale.c: Likewise.
48606         * tests/test-localename.c: Likewise.
48607         * tests/test-lock.c: Likewise.
48608         * tests/test-lseek.c: Likewise.
48609         * tests/test-malloca.c: Likewise.
48610         * tests/test-math.c: Likewise.
48611         * tests/test-mbscasecmp.c: Likewise.
48612         * tests/test-mbscasestr1.c: Likewise.
48613         * tests/test-mbscasestr2.c: Likewise.
48614         * tests/test-mbscasestr3.c: Likewise.
48615         * tests/test-mbscasestr4.c: Likewise.
48616         * tests/test-mbschr.c: Likewise.
48617         * tests/test-mbscspn.c: Likewise.
48618         * tests/test-mbsncasecmp.c: Likewise.
48619         * tests/test-mbspbrk.c: Likewise.
48620         * tests/test-mbspcasecmp.c: Likewise.
48621         * tests/test-mbsrchr.c: Likewise.
48622         * tests/test-mbsspn.c: Likewise.
48623         * tests/test-mbsstr1.c: Likewise.
48624         * tests/test-mbsstr2.c: Likewise.
48625         * tests/test-mbsstr3.c: Likewise.
48626         * tests/test-md5.c: Likewise.
48627         * tests/test-memmem.c: Likewise.
48628         * tests/test-netinet_in.c: Likewise.
48629         * tests/test-open.c: Likewise.
48630         * tests/test-printf-frexp.c: Likewise.
48631         * tests/test-printf-frexpl.c: Likewise.
48632         * tests/test-printf-posix.c: Likewise.
48633         * tests/test-printf-posix.h: Likewise.
48634         * tests/test-rbtree_list.c: Likewise.
48635         * tests/test-rbtree_oset.c: Likewise.
48636         * tests/test-rbtreehash_list.c: Likewise.
48637         * tests/test-read-file.c: Likewise.
48638         * tests/test-rijndael.c: Likewise.
48639         * tests/test-search.c: Likewise.
48640         * tests/test-signbit.c: Likewise.
48641         * tests/test-sleep.c: Likewise.
48642         * tests/test-snprintf-posix.c: Likewise.
48643         * tests/test-snprintf-posix.h: Likewise.
48644         * tests/test-snprintf.c: Likewise.
48645         * tests/test-sprintf-posix.c: Likewise.
48646         * tests/test-sprintf-posix.h: Likewise.
48647         * tests/test-stat-time.c: Likewise.
48648         * tests/test-stdbool.c: Likewise.
48649         * tests/test-stdint.c: Likewise.
48650         * tests/test-stdio.c: Likewise.
48651         * tests/test-stdlib.c: Likewise.
48652         * tests/test-stpncpy.c: Likewise.
48653         * tests/test-strcasestr.c: Likewise.
48654         * tests/test-striconv.c: Likewise.
48655         * tests/test-striconveh.c: Likewise.
48656         * tests/test-striconveha.c: Likewise.
48657         * tests/test-string.c: Likewise.
48658         * tests/test-sys_select.c: Likewise.
48659         * tests/test-sys_socket.c: Likewise.
48660         * tests/test-sys_stat.c: Likewise.
48661         * tests/test-sys_time.c: Likewise.
48662         * tests/test-sysexits.c: Likewise.
48663         * tests/test-time.c: Likewise.
48664         * tests/test-tls.c: Likewise.
48665         * tests/test-trunc.c: Likewise.
48666         * tests/test-truncf.c: Likewise.
48667         * tests/test-truncl.c: Likewise.
48668         * tests/test-unistd.c: Likewise.
48669         * tests/test-vasnprintf-posix.c: Likewise.
48670         * tests/test-vasnprintf-posix2.c: Likewise.
48671         * tests/test-vasnprintf.c: Likewise.
48672         * tests/test-vasprintf-posix.c: Likewise.
48673         * tests/test-vasprintf.c: Likewise.
48674         * tests/test-verify.c: Likewise.
48675         * tests/test-vfprintf-posix.c: Likewise.
48676         * tests/test-vprintf-posix.c: Likewise.
48677         * tests/test-vsnprintf-posix.c: Likewise.
48678         * tests/test-vsnprintf.c: Likewise.
48679         * tests/test-vsprintf-posix.c: Likewise.
48680         * tests/test-wchar.c: Likewise.
48681         * tests/test-wctype.c: Likewise.
48682         * tests/test-wcwidth.c: Likewise.
48683         * tests/test-xstrtol.c: Likewise.
48684         * tests/test-xvasprintf.c: Likewise.
48685         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48686         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48687         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48688         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48689         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48690         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48691         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48692         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48693         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48694         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48695         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48696         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48697         * tests/uniname/test-uninames.c: Likewise.
48698         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48699         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48700         * tests/unistdio/test-u16-printf1.h: Likewise.
48701         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48702         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48703         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48704         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48705         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48706         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48707         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48708         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48709         * tests/unistdio/test-u32-printf1.h: Likewise.
48710         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48711         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48712         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48713         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48714         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48715         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48716         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48717         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48718         * tests/unistdio/test-u8-printf1.h: Likewise.
48719         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48720         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48721         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48722         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48723         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48724         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48725         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48726         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48727         * tests/unistdio/test-ulc-printf1.h: Likewise.
48728         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48729         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48730         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48731         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48732         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48733         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48734         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48735         * tests/uniwidth/test-u16-width.c: Likewise.
48736         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48737         * tests/uniwidth/test-u32-width.c: Likewise.
48738         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48739         * tests/uniwidth/test-u8-width.c: Likewise.
48740         * tests/uniwidth/test-uc_width.c: Likewise.
48741         * config/srclist-update: Likewise.
48742         (fixlicense): Update to GPLv3+.
48743
48744         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48745         * tests/test-tsearch.c: Change copyright notice.
48746
48747         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48748         * lib/c-strcaseeq.h: Change copyright notice.
48749         * lib/streq.h: Likewise.
48750         * lib/uniconv.h: Likewise.
48751         * lib/uniconv/u-conv-from-enc.h: Likewise.
48752         * lib/uniconv/u-conv-to-enc.h: Likewise.
48753         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48754         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48755         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48756         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48757         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48758         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
48759         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
48760         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
48761         * lib/uniconv/u32-conv-from-enc.c: Likewise.
48762         * lib/uniconv/u32-conv-to-enc.c: Likewise.
48763         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
48764         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
48765         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
48766         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
48767         * lib/uniconv/u8-conv-from-enc.c: Likewise.
48768         * lib/uniconv/u8-conv-to-enc.c: Likewise.
48769         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
48770         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
48771         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
48772         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
48773         * lib/uniname.h: Likewise.
48774         * lib/uniname/uniname.c: Likewise.
48775         * lib/unistdio.h: Likewise.
48776         * lib/unistdio/u-asnprintf.h: Likewise.
48777         * lib/unistdio/u-asprintf.h: Likewise.
48778         * lib/unistdio/u-printf-args.c: Likewise.
48779         * lib/unistdio/u-printf-args.h: Likewise.
48780         * lib/unistdio/u-printf-parse.h: Likewise.
48781         * lib/unistdio/u-snprintf.h: Likewise.
48782         * lib/unistdio/u-sprintf.h: Likewise.
48783         * lib/unistdio/u-vasprintf.h: Likewise.
48784         * lib/unistdio/u-vsnprintf.h: Likewise.
48785         * lib/unistdio/u-vsprintf.h: Likewise.
48786         * lib/unistdio/u16-asnprintf.c: Likewise.
48787         * lib/unistdio/u16-asprintf.c: Likewise.
48788         * lib/unistdio/u16-printf-parse.c: Likewise.
48789         * lib/unistdio/u16-snprintf.c: Likewise.
48790         * lib/unistdio/u16-sprintf.c: Likewise.
48791         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48792         * lib/unistdio/u16-u16-asprintf.c: Likewise.
48793         * lib/unistdio/u16-u16-snprintf.c: Likewise.
48794         * lib/unistdio/u16-u16-sprintf.c: Likewise.
48795         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
48796         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
48797         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
48798         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
48799         * lib/unistdio/u16-vasnprintf.c: Likewise.
48800         * lib/unistdio/u16-vasprintf.c: Likewise.
48801         * lib/unistdio/u16-vsnprintf.c: Likewise.
48802         * lib/unistdio/u16-vsprintf.c: Likewise.
48803         * lib/unistdio/u32-asnprintf.c: Likewise.
48804         * lib/unistdio/u32-asprintf.c: Likewise.
48805         * lib/unistdio/u32-printf-parse.c: Likewise.
48806         * lib/unistdio/u32-snprintf.c: Likewise.
48807         * lib/unistdio/u32-sprintf.c: Likewise.
48808         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
48809         * lib/unistdio/u32-u32-asprintf.c: Likewise.
48810         * lib/unistdio/u32-u32-snprintf.c: Likewise.
48811         * lib/unistdio/u32-u32-sprintf.c: Likewise.
48812         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
48813         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
48814         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
48815         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
48816         * lib/unistdio/u32-vasnprintf.c: Likewise.
48817         * lib/unistdio/u32-vasprintf.c: Likewise.
48818         * lib/unistdio/u32-vsnprintf.c: Likewise.
48819         * lib/unistdio/u32-vsprintf.c: Likewise.
48820         * lib/unistdio/u8-asnprintf.c: Likewise.
48821         * lib/unistdio/u8-asprintf.c: Likewise.
48822         * lib/unistdio/u8-printf-parse.c: Likewise.
48823         * lib/unistdio/u8-snprintf.c: Likewise.
48824         * lib/unistdio/u8-sprintf.c: Likewise.
48825         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
48826         * lib/unistdio/u8-u8-asprintf.c: Likewise.
48827         * lib/unistdio/u8-u8-snprintf.c: Likewise.
48828         * lib/unistdio/u8-u8-sprintf.c: Likewise.
48829         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
48830         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
48831         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
48832         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
48833         * lib/unistdio/u8-vasnprintf.c: Likewise.
48834         * lib/unistdio/u8-vasprintf.c: Likewise.
48835         * lib/unistdio/u8-vsnprintf.c: Likewise.
48836         * lib/unistdio/u8-vsprintf.c: Likewise.
48837         * lib/unistdio/ulc-asnprintf.c: Likewise.
48838         * lib/unistdio/ulc-asprintf.c: Likewise.
48839         * lib/unistdio/ulc-printf-parse.c: Likewise.
48840         * lib/unistdio/ulc-snprintf.c: Likewise.
48841         * lib/unistdio/ulc-sprintf.c: Likewise.
48842         * lib/unistdio/ulc-vasnprintf.c: Likewise.
48843         * lib/unistdio/ulc-vasprintf.c: Likewise.
48844         * lib/unistdio/ulc-vsnprintf.c: Likewise.
48845         * lib/unistdio/ulc-vsprintf.c: Likewise.
48846         * lib/unistr.h: Likewise.
48847         * lib/unistr/u-cpy-alloc.h: Likewise.
48848         * lib/unistr/u-cpy.h: Likewise.
48849         * lib/unistr/u-endswith.h: Likewise.
48850         * lib/unistr/u-move.h: Likewise.
48851         * lib/unistr/u-set.h: Likewise.
48852         * lib/unistr/u-startswith.h: Likewise.
48853         * lib/unistr/u-stpcpy.h: Likewise.
48854         * lib/unistr/u-stpncpy.h: Likewise.
48855         * lib/unistr/u-strcat.h: Likewise.
48856         * lib/unistr/u-strcpy.h: Likewise.
48857         * lib/unistr/u-strcspn.h: Likewise.
48858         * lib/unistr/u-strdup.h: Likewise.
48859         * lib/unistr/u-strlen.h: Likewise.
48860         * lib/unistr/u-strncat.h: Likewise.
48861         * lib/unistr/u-strncpy.h: Likewise.
48862         * lib/unistr/u-strnlen.h: Likewise.
48863         * lib/unistr/u-strpbrk.h: Likewise.
48864         * lib/unistr/u-strspn.h: Likewise.
48865         * lib/unistr/u-strstr.h: Likewise.
48866         * lib/unistr/u-strtok.h: Likewise.
48867         * lib/unistr/u16-check.c: Likewise.
48868         * lib/unistr/u16-chr.c: Likewise.
48869         * lib/unistr/u16-cmp.c: Likewise.
48870         * lib/unistr/u16-cpy-alloc.c: Likewise.
48871         * lib/unistr/u16-cpy.c: Likewise.
48872         * lib/unistr/u16-endswith.c: Likewise.
48873         * lib/unistr/u16-mblen.c: Likewise.
48874         * lib/unistr/u16-mbsnlen.c: Likewise.
48875         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48876         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48877         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48878         * lib/unistr/u16-mbtouc.c: Likewise.
48879         * lib/unistr/u16-mbtoucr.c: Likewise.
48880         * lib/unistr/u16-move.c: Likewise.
48881         * lib/unistr/u16-next.c: Likewise.
48882         * lib/unistr/u16-prev.c: Likewise.
48883         * lib/unistr/u16-set.c: Likewise.
48884         * lib/unistr/u16-startswith.c: Likewise.
48885         * lib/unistr/u16-stpcpy.c: Likewise.
48886         * lib/unistr/u16-stpncpy.c: Likewise.
48887         * lib/unistr/u16-strcat.c: Likewise.
48888         * lib/unistr/u16-strchr.c: Likewise.
48889         * lib/unistr/u16-strcmp.c: Likewise.
48890         * lib/unistr/u16-strcpy.c: Likewise.
48891         * lib/unistr/u16-strcspn.c: Likewise.
48892         * lib/unistr/u16-strdup.c: Likewise.
48893         * lib/unistr/u16-strlen.c: Likewise.
48894         * lib/unistr/u16-strmblen.c: Likewise.
48895         * lib/unistr/u16-strmbtouc.c: Likewise.
48896         * lib/unistr/u16-strncat.c: Likewise.
48897         * lib/unistr/u16-strncmp.c: Likewise.
48898         * lib/unistr/u16-strncpy.c: Likewise.
48899         * lib/unistr/u16-strnlen.c: Likewise.
48900         * lib/unistr/u16-strpbrk.c: Likewise.
48901         * lib/unistr/u16-strrchr.c: Likewise.
48902         * lib/unistr/u16-strspn.c: Likewise.
48903         * lib/unistr/u16-strstr.c: Likewise.
48904         * lib/unistr/u16-strtok.c: Likewise.
48905         * lib/unistr/u16-to-u32.c: Likewise.
48906         * lib/unistr/u16-to-u8.c: Likewise.
48907         * lib/unistr/u16-uctomb-aux.c: Likewise.
48908         * lib/unistr/u16-uctomb.c: Likewise.
48909         * lib/unistr/u32-check.c: Likewise.
48910         * lib/unistr/u32-chr.c: Likewise.
48911         * lib/unistr/u32-cmp.c: Likewise.
48912         * lib/unistr/u32-cpy-alloc.c: Likewise.
48913         * lib/unistr/u32-cpy.c: Likewise.
48914         * lib/unistr/u32-endswith.c: Likewise.
48915         * lib/unistr/u32-mblen.c: Likewise.
48916         * lib/unistr/u32-mbsnlen.c: Likewise.
48917         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48918         * lib/unistr/u32-mbtouc.c: Likewise.
48919         * lib/unistr/u32-mbtoucr.c: Likewise.
48920         * lib/unistr/u32-move.c: Likewise.
48921         * lib/unistr/u32-next.c: Likewise.
48922         * lib/unistr/u32-prev.c: Likewise.
48923         * lib/unistr/u32-set.c: Likewise.
48924         * lib/unistr/u32-startswith.c: Likewise.
48925         * lib/unistr/u32-stpcpy.c: Likewise.
48926         * lib/unistr/u32-stpncpy.c: Likewise.
48927         * lib/unistr/u32-strcat.c: Likewise.
48928         * lib/unistr/u32-strchr.c: Likewise.
48929         * lib/unistr/u32-strcmp.c: Likewise.
48930         * lib/unistr/u32-strcpy.c: Likewise.
48931         * lib/unistr/u32-strcspn.c: Likewise.
48932         * lib/unistr/u32-strdup.c: Likewise.
48933         * lib/unistr/u32-strlen.c: Likewise.
48934         * lib/unistr/u32-strmblen.c: Likewise.
48935         * lib/unistr/u32-strmbtouc.c: Likewise.
48936         * lib/unistr/u32-strncat.c: Likewise.
48937         * lib/unistr/u32-strncmp.c: Likewise.
48938         * lib/unistr/u32-strncpy.c: Likewise.
48939         * lib/unistr/u32-strnlen.c: Likewise.
48940         * lib/unistr/u32-strpbrk.c: Likewise.
48941         * lib/unistr/u32-strrchr.c: Likewise.
48942         * lib/unistr/u32-strspn.c: Likewise.
48943         * lib/unistr/u32-strstr.c: Likewise.
48944         * lib/unistr/u32-strtok.c: Likewise.
48945         * lib/unistr/u32-to-u16.c: Likewise.
48946         * lib/unistr/u32-to-u8.c: Likewise.
48947         * lib/unistr/u32-uctomb.c: Likewise.
48948         * lib/unistr/u8-check.c: Likewise.
48949         * lib/unistr/u8-chr.c: Likewise.
48950         * lib/unistr/u8-cmp.c: Likewise.
48951         * lib/unistr/u8-cpy-alloc.c: Likewise.
48952         * lib/unistr/u8-cpy.c: Likewise.
48953         * lib/unistr/u8-endswith.c: Likewise.
48954         * lib/unistr/u8-mblen.c: Likewise.
48955         * lib/unistr/u8-mbsnlen.c: Likewise.
48956         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48957         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48958         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48959         * lib/unistr/u8-mbtouc.c: Likewise.
48960         * lib/unistr/u8-mbtoucr.c: Likewise.
48961         * lib/unistr/u8-move.c: Likewise.
48962         * lib/unistr/u8-next.c: Likewise.
48963         * lib/unistr/u8-prev.c: Likewise.
48964         * lib/unistr/u8-set.c: Likewise.
48965         * lib/unistr/u8-startswith.c: Likewise.
48966         * lib/unistr/u8-stpcpy.c: Likewise.
48967         * lib/unistr/u8-stpncpy.c: Likewise.
48968         * lib/unistr/u8-strcat.c: Likewise.
48969         * lib/unistr/u8-strchr.c: Likewise.
48970         * lib/unistr/u8-strcmp.c: Likewise.
48971         * lib/unistr/u8-strcpy.c: Likewise.
48972         * lib/unistr/u8-strcspn.c: Likewise.
48973         * lib/unistr/u8-strdup.c: Likewise.
48974         * lib/unistr/u8-strlen.c: Likewise.
48975         * lib/unistr/u8-strmblen.c: Likewise.
48976         * lib/unistr/u8-strmbtouc.c: Likewise.
48977         * lib/unistr/u8-strncat.c: Likewise.
48978         * lib/unistr/u8-strncmp.c: Likewise.
48979         * lib/unistr/u8-strncpy.c: Likewise.
48980         * lib/unistr/u8-strnlen.c: Likewise.
48981         * lib/unistr/u8-strpbrk.c: Likewise.
48982         * lib/unistr/u8-strrchr.c: Likewise.
48983         * lib/unistr/u8-strspn.c: Likewise.
48984         * lib/unistr/u8-strstr.c: Likewise.
48985         * lib/unistr/u8-strtok.c: Likewise.
48986         * lib/unistr/u8-to-u16.c: Likewise.
48987         * lib/unistr/u8-to-u32.c: Likewise.
48988         * lib/unistr/u8-uctomb-aux.c: Likewise.
48989         * lib/unistr/u8-uctomb.c: Likewise.
48990         * lib/unitypes.h: Likewise.
48991         * lib/uniwidth.h: Likewise.
48992         * lib/uniwidth/cjk.h: Likewise.
48993         * lib/uniwidth/u16-strwidth.c: Likewise.
48994         * lib/uniwidth/u16-width.c: Likewise.
48995         * lib/uniwidth/u32-strwidth.c: Likewise.
48996         * lib/uniwidth/u32-width.c: Likewise.
48997         * lib/uniwidth/u8-strwidth.c: Likewise.
48998         * lib/uniwidth/u8-width.c: Likewise.
48999         * lib/uniwidth/width.c: Likewise.
49000
49001 2007-10-07  Bruno Haible  <bruno@clisp.org>
49002
49003         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
49004         The file is still under LGPL (see modules/inttypes).
49005
49006 2007-10-06  Bruno Haible  <bruno@clisp.org>
49007
49008         * modules/trunc (Dependencies): Add 'extensions'.
49009         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
49010         Reported by Ben Pfaff <blp@gnu.org>.
49011
49012 2007-10-06  Bruno Haible  <bruno@clisp.org>
49013
49014         * modules/freopen-tests: New file.
49015         * tests/test-freopen.c: New file.
49016
49017         * modules/fopen-tests: New file.
49018         * tests/test-fopen.c: New file.
49019
49020         * modules/fopen: New file.
49021         * lib/fopen.c: New file.
49022         * m4/fopen.m4: New file.
49023         * modules/freopen: New file.
49024         * lib/freopen.c: New file.
49025         * m4/freopen.m4: New file.
49026         * lib/stdio.in.h (fopen, freopen): New declarations.
49027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
49028         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49029         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
49030         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49031         * doc/functions/fopen.texi: Mention the 'fopen' module.
49032         * doc/functions/freopen.texi: Mention the 'freopen' module.
49033
49034 2007-10-06  Bruno Haible  <bruno@clisp.org>
49035
49036         * modules/open-tests: New file.
49037         * tests/test-open.c: New file.
49038
49039         * modules/open: New file.
49040         * lib/open.c: New file.
49041         * m4/open.m4: New file.
49042         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
49043         lib/open.c does.
49044         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
49045         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
49046         macros.
49047         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
49048         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
49049         REPLACE_OPEN.
49050         * doc/functions/open.texi: Mention the 'open' module.
49051
49052 2007-10-04  Bruno Haible  <bruno@clisp.org>
49053
49054         * modules/ceill-tests: New file.
49055         * tests/test-ceill.c: New file.
49056
49057         * modules/ceill: New file.
49058         * lib/ceill.c: Replace entire file.
49059         * m4/ceill.m4: New file.
49060         * lib/math.in.h (ceill): Replace declaration.
49061         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
49062         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
49063         * doc/functions/ceill.texi: Mention the 'ceill' module.
49064         * modules/mathl (Files): Remove lib/ceill.c.
49065         (Depends-on): Add ceill.
49066
49067 2007-10-04  Bruno Haible  <bruno@clisp.org>
49068
49069         * modules/ceilf-tests: New file.
49070         * tests/test-ceilf.c: New file.
49071
49072         * modules/ceilf: New file.
49073         * lib/ceil.c: New file.
49074         * lib/ceilf.c: New file.
49075         * m4/ceilf.m4: New file.
49076         * lib/math.in.h (ceilf): New declaration.
49077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
49078         HAVE_DECL_CEILF.
49079         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
49080         HAVE_DECL_CEILF.
49081         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
49082
49083 2007-10-04  Bruno Haible  <bruno@clisp.org>
49084
49085         * modules/floorl-tests: New file.
49086         * tests/test-floorl.c: New file.
49087
49088         * modules/floorl: New file.
49089         * lib/floorl.c: Replace entire file.
49090         * m4/floorl.m4: New file.
49091         * lib/math.in.h (floorl): Replace declaration.
49092         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49093         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49094         * doc/functions/floorl.texi: Mention the 'floorl' module.
49095         * modules/mathl (Files): Remove lib/floorl.c.
49096         (Depends-on): Add floorl.
49097
49098 2007-10-04  Bruno Haible  <bruno@clisp.org>
49099
49100         * modules/floorf-tests: New file.
49101         * tests/test-floorf.c: New file.
49102
49103         * modules/floorf: New file.
49104         * lib/floor.c: New file.
49105         * lib/floorf.c: New file.
49106         * m4/floorf.m4: New file.
49107         * lib/math.in.h (floorf): New declaration.
49108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49109         HAVE_DECL_FLOORF.
49110         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49111         HAVE_DECL_FLOORF.
49112         * doc/functions/floorf.texi: Mention the 'floorf' module.
49113
49114 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49115             Bruno Haible  <bruno@clisp.org>
49116
49117         Advertise for the Git server instead of the CVS server.
49118         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49119         repository instead of the CVS one.
49120         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49121         about all VCS systems generically.
49122         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49123
49124 2007-10-04  Bruno Haible  <bruno@clisp.org>
49125
49126         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49127         means.
49128         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49129
49130 2007-10-04  Bruno Haible  <bruno@clisp.org>
49131
49132         * modules/truncl-tests: New file.
49133         * tests/test-truncl.c: New file.
49134
49135         * modules/truncl: New file.
49136         * lib/truncl.c: New file.
49137         * m4/truncl.m4: New file.
49138         * lib/math.in.h (truncl): New declaration.
49139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49140         HAVE_DECL_TRUNCL.
49141         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49142         HAVE_DECL_TRUNCL.
49143         * doc/functions/truncl.texi: Mention the 'truncl' module.
49144
49145 2007-10-04  Bruno Haible  <bruno@clisp.org>
49146
49147         * modules/truncf-tests: New file.
49148         * tests/test-truncf.c: New file.
49149
49150         * modules/truncf: New file.
49151         * lib/trunc.c: Make paramerizable through USE_* macros.
49152         * lib/truncf.c: New file.
49153         * m4/truncf.m4: New file.
49154         * lib/math.in.h (truncf): New declaration.
49155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49156         HAVE_DECL_TRUNCF.
49157         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49158         HAVE_DECL_TRUNCF.
49159         * doc/functions/truncf.texi: Mention the 'truncf' module.
49160
49161 2007-10-03  Bruno Haible  <bruno@clisp.org>
49162
49163         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49164         augmentation also for tests modules.
49165         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49166         * modules/atexit-tests (Makefile.am): Likewise.
49167         * modules/binary-io-tests (Makefile.am): Likewise.
49168         * modules/c-strcase-tests (Makefile.am): Likewise.
49169         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49170         * modules/canonicalize-tests (Makefile.am): Likewise.
49171         * modules/closein-tests (Makefile.am): Likewise.
49172         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49173         * modules/freadahead-tests (Makefile.am): Likewise.
49174         * modules/fseek-tests (Makefile.am): Likewise.
49175         * modules/fseeko-tests (Makefile.am): Likewise.
49176         * modules/ftell-tests (Makefile.am): Likewise.
49177         * modules/ftello-tests (Makefile.am): Likewise.
49178         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49179         * modules/isnanl-tests (Makefile.am): Likewise.
49180         * modules/lseek-tests (Makefile.am): Likewise.
49181         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49182         * modules/mbscasestr-tests (Makefile.am): Likewise.
49183         * modules/mbschr-tests (Makefile.am): Likewise.
49184         * modules/mbscspn-tests (Makefile.am): Likewise.
49185         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49186         * modules/mbspbrk-tests (Makefile.am): Likewise.
49187         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49188         * modules/mbsrchr-tests (Makefile.am): Likewise.
49189         * modules/mbsspn-tests (Makefile.am): Likewise.
49190         * modules/mbsstr-tests (Makefile.am): Likewise.
49191         * modules/printf-posix-tests (Makefile.am): Likewise.
49192         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49193         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49194         * modules/tsearch-tests (Makefile.am): Likewise.
49195         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49196         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49197         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49198         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49199         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49200         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49201         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49202         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49203         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49204         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49205         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49206         * modules/xstrtol-tests (Makefile.am): Likewise.
49207         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49208         * modules/yesno-tests (Makefile.am): Likewise.
49209
49210 2007-10-03  Bruno Haible  <bruno@clisp.org>
49211
49212         * modules/trunc-tests: New file.
49213         * tests/test-trunc.c: New file.
49214
49215         * modules/trunc: New file.
49216         * lib/trunc.c: New file.
49217         * m4/trunc.m4: New file.
49218         * lib/math.in.h (trunc): New declaration.
49219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49220         HAVE_DECL_TRUNC.
49221         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49222         HAVE_DECL_TRUNC.
49223         * doc/functions/trunc.texi: Mention the 'trunc' module.
49224
49225 2007-10-03  Bruno Haible  <bruno@clisp.org>
49226
49227         * tests/test-fpending.c: New file, mostly copied
49228         from coreutils/lib/t-fpending.c.
49229         * modules/fpending-tests: New file.
49230
49231 2007-10-03  Bruno Haible  <bruno@clisp.org>
49232
49233         Port the stdio extensions to QNX (untested).
49234         * lib/fseterr.c (fseterr): Add support for QNX.
49235         * lib/fbufmode.c (fbufmode): Likewise.
49236         * lib/freadable.c (freadable): Likewise.
49237         * lib/fwritable.c (fwritable): Likewise.
49238         * lib/freading.c (freading): Likewise.
49239         * lib/fwriting.c (fwriting): Likewise.
49240         * lib/freadahead.c (freadahed): Likewise.
49241         * lib/fpurge.c (fpurge): Likewise.
49242         * lib/fseeko.c (rpl_fseeko): Likewise.
49243
49244 2007-10-03  Bruno Haible  <bruno@clisp.org>
49245             Jim Meyering  <jim@meyering.net>
49246             Eric Blake  <ebb9@byu.net>
49247
49248         * doc/relocatable.texi: Use @command instead of @program.
49249
49250 2007-10-02  Jim Meyering  <jim@meyering.net>
49251
49252         Perform one more "_.h" -> ".in.h" substitution.
49253         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49254         instead of unistd_.h here, too.
49255
49256 2007-10-01  Bruno Haible  <bruno@clisp.org>
49257
49258         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49259         Needed for the alloca-opt module.
49260
49261 2007-09-30  Bruno Haible  <bruno@clisp.org>
49262
49263         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49264         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49265         alloca_.h.
49266         * lib/argz.in.h: Renamed from lib/argz_.h.
49267         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49268         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49269         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49270         byteswap_.h.
49271         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49272         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49273         dirent_.h.
49274         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49275         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49276         fcntl_.h.
49277         * lib/float.in.h: Renamed from lib/float_.h.
49278         * modules/float (Files, Makefile.am): Use float.in.h instead of
49279         float_.h.
49280         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49281         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49282         fnmatch_.h.
49283         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49284         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49285         getopt_.h.
49286         * lib/glob.in.h: Renamed from lib/glob_.h.
49287         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49288         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49289         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49290         iconv_.h.
49291         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49292         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49293         inttypes_.h.
49294         * lib/locale.in.h: Renamed from lib/locale_.h.
49295         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49296         locale_.h.
49297         * lib/math.in.h: Renamed from lib/math_.h.
49298         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49299         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49300         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49301         of netinet_in_.h. Add dependency.
49302         * lib/poll.in.h: Renamed from lib/poll_.h.
49303         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49304         * lib/search.in.h: Renamed from lib/search_.h.
49305         * modules/search (Files, Makefile.am): Use search.in.h instead of
49306         search_.h.
49307         * lib/signal.in.h: Renamed from lib/signal_.h.
49308         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49309         _signal.h.
49310         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49311         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49312         stdbool_.h.
49313         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49314         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49315         stdint_.h.
49316         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49317         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49318         stdio_.h.
49319         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49320         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49321         stdlib_.h.
49322         * lib/string.in.h: Renamed from lib/string_.h.
49323         * modules/string (Files, Makefile.am): Use string.in.h instead of
49324         string_.h.
49325         * doc/gnulib-tool.texi (Initial import): Update.
49326         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49327         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49328         of sys_select_.h. Add dependency.
49329         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49330         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49331         of sys_socket_.h.
49332         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49333         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49334         sys_stat_.h.
49335         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49336         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49337         sys_time_.h.
49338         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49339         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49340         sysexits_.h.
49341         * lib/time.in.h: Renamed from lib/time_.h.
49342         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49343         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49344         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49345         unistd_.h.
49346         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49347         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49348         wchar_.h.
49349         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49350         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49351         wctype_.h.
49352         * build-aux/bootstrap (slurp): Update.
49353         * lib/.cppi-disable: Update.
49354
49355 2007-09-30  Bruno Haible  <bruno@clisp.org>
49356
49357         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49358         Needed on BeOS.
49359
49360 2007-09-30  Bruno Haible  <bruno@clisp.org>
49361
49362         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49363
49364 2007-09-29  Bruno Haible  <bruno@clisp.org>
49365
49366         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49367
49368 2007-09-29  Bruno Haible  <bruno@clisp.org>
49369
49370         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49371         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49372         * build-aux/install-reloc: Compile also areadlink.c.
49373         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49374
49375 2007-09-29  Bruno Haible  <bruno@clisp.org>
49376
49377         * gnulib-tool (func_emit_initmacro_done): Indentation.
49378
49379 2007-09-29  Bruno Haible  <bruno@clisp.org>
49380
49381         * README: Add CVS checkout update instructions.
49382         Info from Bob Proulx <bob@proulx.com>.
49383
49384 2007-09-28  Eric Blake  <ebb9@byu.net>
49385
49386         Provide move-if-change.
49387         * build-aux/move-if-change: New file, based on best practice
49388         rather than any canonical upstream location.
49389
49390 2007-09-28  Jim Meyering  <jim@meyering.net>
49391
49392         Fix canonicalize loop-detection corner case.
49393         Do not attempt to stat the symlink values stored via seen_triple.
49394         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49395         on linux-2.6.18, (but not 2.6.22).
49396         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49397         triple_compare.  The former compares dev,ino,filename, while the latter
49398         would actually stat dirname(filename) when dev and ino were equal.
49399         * lib/hash-triple.c: Install <string.h>.
49400         (STREQ): Define.
49401         (triple_compare_ino_str): New function.
49402         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49403
49404 2007-09-28  Eric Blake  <ebb9@byu.net>
49405
49406         Enforce that AC_REPLACE_FUNCS files exist.
49407         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49408         override check for typos.
49409
49410         Fix test-closein on Solaris 10.
49411         * tests/test-closein.c (main): Don't assume stdin can be inherited
49412         closed on all systems.
49413         * tests/test-closein.sh: Likewise.
49414         Reported by Piotr Tarnowski.
49415
49416 2007-09-28  Jim Meyering  <jim@meyering.net>
49417
49418         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49419
49420 2007-09-27  Jim Meyering  <jim@meyering.net>
49421
49422         canonicalize: Avoid a false-positive cycle failure.
49423         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49424         Sort.  Remove cycle-check.
49425         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49426         not cycle-check.h.
49427         (seen_triple): New function.
49428         (canonicalize_filename_mode): Use it instead of cycle-check.
49429         * tests/test-canonicalize.c: Add a test for this bug.
49430         * tests/test-canonicalize.sh: Set up and run the test.
49431
49432         New module, file-set, from coreutils.
49433         * modules/file-set: Define it.
49434         * lib/file-set.c, lib/file-set.h: Implement.
49435
49436         New module, hash-triple, from coreutils.
49437         * modules/hash-triple: Define it.
49438         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49439
49440 2007-09-25  Eric Blake  <ebb9@byu.net>
49441
49442         Fix strerror on Interix.
49443         * lib/string_.h (strerror): Declare replacement.
49444         * doc/functions/strerror.texi (strerror): Document the Interix
49445         shortcoming.
49446         * modules/string (Makefile.am): Support new hooks.
49447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49448         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49449         gl_FUNC_STRERROR_SEPARATE.
49450         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49451         * lib/strerror.c (rpl_strerror): Provide replacement.
49452         * modules/strerror (Depends-on): Add string.
49453         (configure.ac): Detect use of module.
49454         * tests/test-strerror.c: New file.
49455         * modules/strerror-tests: New test module.
49456         * modules/argp (Depends-on): Add strerror.
49457         * modules/error (Depends-on): Likewise.
49458         Reported by Martin Koeppe.
49459
49460 2007-09-24  Bruno Haible  <bruno@clisp.org>
49461
49462         * README: Update git instructions.
49463
49464 2007-09-24  Eric Blake  <ebb9@byu.net>
49465
49466         Revert fpending breakage from 2007-09-08.
49467         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49468         __fpending.c.
49469
49470 2007-09-24  Jim Meyering  <jim@meyering.net>
49471
49472         filenamecat.c: Add a test.
49473         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49474         showing how the function works when DIR is the empty string.
49475
49476 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49477
49478         * tests/test-canonicalize.sh: Turn on executable bit.
49479
49480 2007-09-19  Eric Blake  <ebb9@byu.net>
49481
49482         * README: Update CVS instructions.
49483
49484 2007-09-18  Bruno Haible  <bruno@clisp.org>
49485
49486         * modules/areadlink: New file.
49487         * lib/areadlink.h (areadlink): New declaration.
49488         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49489
49490 2007-09-17  Jim Meyering  <jim@meyering.net>
49491
49492         * lib/savewd.c (ESTALE) [!defined]: Define.
49493         Reported to be required on Interix by Martin Koeppe.
49494
49495 2007-09-17  Bruno Haible  <bruno@clisp.org>
49496
49497         * gnulib-tool (func_version): Use $version.
49498
49499 2007-09-16  Bruno Haible  <bruno@clisp.org>
49500
49501         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49502         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49503         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49504         Reported by Greg Schafer <gschafer@zip.com.au>.
49505
49506 2007-09-15  Bruno Haible  <bruno@clisp.org>
49507
49508         * gnulib-tool (sed): Try a little harder to make bash understand the
49509         alias.
49510         Reported by Bruce Korb <bruce.korb@gmail.com>.
49511
49512 2007-09-13  Eric Blake  <ebb9@byu.net>
49513
49514         * ChangeLog: Remove conflict markers.
49515
49516 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49517
49518         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49519         Reported by Bruno Haible <bruno@clisp.org>.
49520
49521 2007-09-12  Bruno Haible  <bruno@clisp.org>
49522
49523         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49524         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49525         is not defined.
49526
49527 2007-09-12  Eric Blake  <ebb9@byu.net>
49528
49529         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49530         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49531         Autoconf definition.
49532         * modules/euidaccess (Depends-on): Add extensions, for
49533         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49534         * modules/fnmatch (Depends-on): Likewise.
49535         * modules/getaddrinfo (Depends-on): Likewise.
49536         * modules/getdelim (Depends-on): Likewise.
49537         * modules/getline (Depends-on): Likewise.
49538         * modules/getsubopt (Depends-on): Likewise.
49539         * modules/gettext (Depends-on): Likewise.
49540         * modules/group-member (Depends-on): Likewise.
49541         * modules/mbchar (Depends-on): Likewise.
49542         * modules/memmem (Depends-on): Likewise.
49543         * modules/mempcpy (Depends-on): Likewise.
49544         * modules/memrchr (Depends-on): Likewise.
49545         * modules/pagealign_alloc (Depends-on): Likewise.
49546         * modules/readutmp (Depends-on): Likewise.
49547         * modules/stpcpy (Depends-on): Likewise.
49548         * modules/stpncpy (Depends-on): Likewise.
49549         * modules/strchrnul (Depends-on): Likewise.
49550         * modules/strndup (Depends-on): Likewise.
49551         * modules/strsep (Depends-on): Likewise.
49552         * modules/strverscmp (Depends-on): Likewise.
49553         * modules/vasprintf (Depends-on): Likewise.
49554         * modules/wcwidth (Depends-on): Likewise.
49555         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49556         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49557         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49558         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49559         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49560         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49561         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49562         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49563         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49564         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49565         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49566         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49567         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49568         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49569         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49570         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49571         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49572         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49573         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49574         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49575         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49576         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49577         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49578         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49579         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49581         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49582         so that lock.m4 can be used in gettext without extensions module.
49583
49584 2007-09-11  Bruno Haible  <bruno@clisp.org>
49585
49586         * m4/isc-posix.m4: Remove file.
49587         Suggested by Eric Blake.
49588
49589 2007-09-11  Eric Blake  <ebb9@byu.net>
49590
49591         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49592
49593 2007-09-10  Bruno Haible  <bruno@clisp.org>
49594
49595         * posix-modules: Fix typo in error message.
49596         Reported by Matt <mkraai@beckman.com>.
49597
49598 2007-09-09  Bruno Haible  <bruno@clisp.org>
49599
49600         * doc/functions/getdelim.texi: Update list of platforms lacking the
49601         function.
49602         * doc/functions/getline.texi: Likewise.
49603
49604 2007-09-09  Jim Meyering  <jim@meyering.net>
49605
49606         * lib/hash.c (hash_initialize): Detect calloc failure.
49607         Reported by Bruno Haible.
49608
49609 2007-09-09  Bruno Haible  <bruno@clisp.org>
49610
49611         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49612         malloc or realloc fails.
49613
49614 2007-09-09  Bruno Haible  <bruno@clisp.org>
49615
49616         * modules/getcwd (Depends-on): Add malloc-posix.
49617         * modules/glob (Depends-on): Likewise.
49618         * modules/putenv (Depends-on): Likewise.
49619         * modules/strdup (Depends-on): Likewise.
49620         * modules/getdelim (Depends-on): Add realloc-posix.
49621         * modules/read-file (Depends-on): Likewise.
49622
49623 2007-09-09  Bruno Haible  <bruno@clisp.org>
49624
49625         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49626         (gl_FUNC_MALLOC_POSIX): Require it.
49627         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49628         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49629         * modules/realloc (Files): Add m4/malloc.m4.
49630         * modules/calloc (Files): Likewise.
49631
49632 2007-09-09  Bruno Haible  <bruno@clisp.org>
49633
49634         * modules/malloc-posix: New file.
49635         * modules/malloc (Depends-on): Add malloc-posix.
49636         * lib/malloc.c: Include errno.h.
49637         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49638         and a POSIX-compatible malloc into a single function. Set ENOMEM
49639         when returning NULL.
49640         * m4/malloc.m4: New file.
49641         * doc/functions/malloc.texi: Mention the malloc-posix module.
49642         * lib/stdlib_.h (malloc): New declaration.
49643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49644         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49645         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49646         and HAVE_MALLOC_POSIX.
49647
49648 2007-09-09  Bruno Haible  <bruno@clisp.org>
49649
49650         * modules/realloc-posix: New file.
49651         * modules/realloc (Depends-on): Add realloc-posix.
49652         * lib/realloc.c: Include errno.h.
49653         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49654         and a POSIX-compatible realloc into a single function. Set ENOMEM
49655         when returning NULL.
49656         * m4/realloc.m4: New file.
49657         * doc/functions/realloc.texi: Mention the realloc-posix module.
49658         * lib/stdlib_.h (realloc): New declaration.
49659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49660         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49661         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49662         and HAVE_REALLOC_POSIX.
49663
49664 2007-09-09  Bruno Haible  <bruno@clisp.org>
49665
49666         * modules/calloc-posix: New file.
49667         * modules/calloc (Depends-on): Add calloc-posix.
49668         * lib/calloc.c: Include errno.h.
49669         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49670         and a POSIX-compatible calloc into a single function. Set ENOMEM
49671         when returning NULL.
49672         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49673         * doc/functions/calloc.texi: Mention the calloc-posix module.
49674         * lib/stdlib_.h (calloc): New declaration.
49675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49676         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49677         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49678         and HAVE_CALLOC_POSIX.
49679
49680 2007-09-09  Bruno Haible  <bruno@clisp.org>
49681
49682         Allow for modules to show an arbitrary notice.
49683         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49684         * gnulib-tool: New option --extract-notice.
49685         (func_usage): Document it.
49686         (sed_extract_prog): Update.
49687         (func_get_notice): New function.
49688         (func_modules_notice): New function.
49689         (func_import, func_create_testdir): Invoke it.
49690         Suggested by Jim Meyering.
49691
49692 2007-09-09  Bruno Haible  <bruno@clisp.org>
49693
49694         * gnulib-tool: New options --verbose, --quiet.
49695         (func_usage): Document them.
49696         (verbose): New variable.
49697         (func_execute_command): New function.
49698         (func_import): Don't show the module list and the file list if
49699         $verbose < 0.
49700         (func_create_testdir): Likewise. Use func_execute_command.
49701         (func_create_megatestdir): Use func_execute_command.
49702
49703 2007-09-08  Bruno Haible  <bruno@clisp.org>
49704
49705         * gnulib-tool (func_import): Prefer rsync over wget when available,
49706         for fetching the PO files.
49707
49708 2007-09-08  Bruno Haible  <bruno@clisp.org>
49709
49710         * posix-modules: New file. Portions copied from gnulib-tool.
49711         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49712
49713 2007-09-08  Jim Meyering  <jim@meyering.net>
49714
49715         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49716         * lib/fpending.h: Rename from __fpending.h.
49717         * lib/fpending.c: Rename from __fpending.c.
49718         Include "fpending.h", not "__fpending.h".
49719         * lib/__fpending.h, lib/__fpending.c: Remove files.
49720         * modules/fpending (Files): Reflect new file names.
49721         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49722
49723 2007-09-08  Bruno Haible  <bruno@clisp.org>
49724
49725         * m4/inttypes-h.m4: Remove stub file.
49726
49727 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49728
49729         * doc/headers/stdint.texi: Discuss #include_next issue.
49730
49731 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49732
49733         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49734
49735 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49736
49737         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49738         in variable name.
49739
49740 2007-09-03  Jim Meyering  <jim@meyering.net>
49741
49742         New module: git-version-gen.
49743         * modules/git-version-gen: New file.
49744
49745         Import changes from coreutils for bootstrap script.
49746
49747         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49748
49749         bootstrap: uses rsync to download the .po files
49750         * build-aux/bootstrap (po_download_command_format): New global.
49751         (download_po_files): Use rsync.
49752         (update_po_files): Don't remove .po files after download,
49753         so future rsync runs can take advantage of the copies.
49754
49755         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49756
49757         Solve the unnecessary-.po-file-regeneration problem once and for all.
49758         * build-aux/bootstrap (download_po_files): New function, renamed from
49759         get_translations.  Now, downloads, but doesn't update LINGUAS.
49760         (update_po_files): New function.
49761
49762         bootstrap: Ignore more.
49763         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
49764         uniwidth to e.g., lib/.gitignore.
49765         (slurp): Handle the sys_stat_.h -> sys mapping, too.
49766
49767         * build-aux/bootstrap: New setting: vc_ignore.
49768         (insert_sorted_if_absent): Create $file if absent.
49769         Adapt to new, possibly empty, list: $vc_ignore.
49770
49771         bootstrap: generate more ignorable names
49772         * build-aux/bootstrap (slurp): When generating ignorable names,
49773         also map .sin to .sed, .gperf to .c, and .y to .c.
49774
49775 2007-09-03  Jim Meyering  <jim@meyering.net>
49776
49777         * build-aux/git-version-gen: New file, from coreutils.  For details, see
49778         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
49779
49780 2007-09-02  Bruno Haible  <bruno@clisp.org>
49781
49782         Fix mis-recognition of 'mcs' on QNX 6.
49783         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
49784         output contains the string "Mono".
49785         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
49786         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
49787
49788 2007-09-01  Bruno Haible  <bruno@clisp.org>
49789
49790         Fix collision between uniwidth/* and linebreak modules.
49791         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
49792         u32_width): Remove declarations.
49793         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
49794         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
49795         streq3, streq2, streq1, streq0): Remove functions.
49796         (STREQ): Remove macro.
49797         (is_cjk_encoding): Remove function.
49798         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
49799         (uc_width, u8_width, u16_width, u32_width): Remove functions.
49800         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
49801         * NEWS: Document the change.
49802
49803 2007-09-01  Bruno Haible  <bruno@clisp.org>
49804
49805         * lib/streq.h: Add double-inclusion guard.
49806
49807 2007-09-01  Karl Berry  <karl@gnu.org>
49808
49809         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
49810
49811 2007-08-28  Jim Meyering  <jim@meyering.net>
49812
49813         Rename mreadlink_with_size to areadlink_with_size.
49814         * NEWS: Document the change.
49815         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
49816         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
49817         * lib/mreadlink.h: Rename this to...
49818         * lib/areadlink.h: ...this.
49819         * modules/mreadlink-with-size: Rename this to...
49820         * modules/areadlink-with-size: ...this.
49821         * lib/canonicalize.c: Reflect the renaming.
49822         * modules/canonicalize: Likewise.
49823
49824 2007-08-26  Bruno Haible  <bruno@clisp.org>
49825
49826         * gnulib-tool (func_import): When deciding which files to remove,
49827         consider also dangling symbolic links.
49828         Reported by Eric Blake.
49829
49830 2007-08-26  Bruno Haible  <bruno@clisp.org>
49831
49832         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
49833
49834 2007-08-23  Simon Josefsson  <simon@josefsson.org>
49835
49836         * lib/readline.c: Don't include getline.h, the prototype is now
49837         found in stdio.h.
49838
49839 2007-08-23  Jim Meyering  <jim@meyering.net>
49840
49841         Getdelim touchup.
49842         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
49843         around the funlockfile call, since funlockfile never sets errno.
49844         Don't set errno upon failed realloc.
49845
49846 2007-08-22  Eric Blake  <ebb9@byu.net>
49847
49848         Getline touchups.
49849         * lib/getdelim.c (getdelim): Revert regression that required *n to
49850         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
49851         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
49852         getdelim, rather than whether implementation is missing.
49853         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
49854         * lib/stdio_.h (getline): Also declare if replacement is
49855         required.
49856         * doc/functions/getdelim.texi: New file.
49857         * doc/functions/getline.texi: Likewise.
49858         * doc/gnulib.texi (Function Substitutes): Add new files.
49859         Reported by Bruno Haible.
49860
49861 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
49862
49863         * users.txt: Add Guile.
49864
49865 2007-08-22  Eric Blake  <ebb9@byu.net>
49866
49867         * tests/test-getdelim.c (main): Use remove, not unlink.
49868         * tests/test-getline.c (main): Likewise.
49869
49870         Move getline and getdelim into stdio.h, per POSIX 200x.
49871         * modules/getline (Files): Remove getline.h.
49872         (Depends-on): Add stdio.
49873         (configure.ac): Add module indicator.
49874         * modules/getdelim (Files): Remove getdelim.h.
49875         (Depends-on): Add stdio.
49876         (configure.ac): Add module indicator.
49877         * modules/stdio (Makefile.am): Work with new indicators.
49878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49879         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
49880         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49881         * lib/getdelim.h: Delete.
49882         * lib/getline.h: Delete.
49883         * lib/stdio_.h (getdelim, getline): Declare.
49884         * modules/getdelim-tests: New module.
49885         * modules/getline-tests: Likewise.
49886         * tests/test-getdelim.c: New file.
49887         * tests/test-getline.c: Likewise.
49888         * NEWS: Document the change.
49889         * lib/getline.c: Update choice of header.
49890         * lib/csharpcomp.c: Likewise.
49891         * lib/getpass.c: Likewise.
49892         * lib/javacomp.c: Likewise.
49893         * lib/javaversion.c: Likewise.
49894         * lib/yesno.c: Likewise.
49895         * lib/getdelim.c: Likewise.
49896         (getdelim): Set errno on failure, and avoid memory leak.
49897
49898 2007-08-19  Bruno Haible  <bruno@clisp.org>
49899
49900         * modules/closein (Depends-on): Add freadahead.
49901         * lib/closein.c: Include freadahead.h.
49902         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
49903         is zero.
49904
49905 2007-08-19  Bruno Haible  <bruno@clisp.org>
49906
49907         * modules/freadahead-tests: New file.
49908         * tests/test-freadahead.sh: New file.
49909         * tests/test-freadahead.c: New file.
49910
49911         * modules/freadahead: New file.
49912         * lib/freadahead.h: New file.
49913         * lib/freadahead.c: New file.
49914         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
49915         fbufmode, fpurge, freadable, fwritable.
49916
49917 2007-08-19  Eric Blake  <ebb9@byu.net>
49918
49919         Test yesno in combination with closein.
49920         * lib/yesno.c (yesno): Document use of stdin.
49921         * modules/yesno-tests (Files): New module.
49922         * tests/test-yesno.c (main): New file.
49923         * tests/test-yesno.sh: Likewise.
49924
49925 2007-08-19  Bruno Haible  <bruno@clisp.org>
49926
49927         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
49928         * lib/fseeko.c (rpl_fseeko): Likewise.
49929         * lib/fseterr.c (fseterr): Likewise.
49930
49931 2007-08-19  Bruno Haible  <bruno@clisp.org>
49932
49933         * tests/test-lseek.c (main): Disable a test for BeOS.
49934         * doc/functions/lseek.texi: Document the BeOS bug.
49935
49936 2007-08-19  Bruno Haible  <bruno@clisp.org>
49937             Eric Blake  <ebb9@byu.net>
49938
49939         * lib/lseek.c: Include <sys/stat.h>.
49940         (rpl_lseek): Add workaround code also for Unix platforms.
49941         Needed for BeOS.
49942         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
49943         * doc/functions/lseek.texi: Document BeOS definiency.
49944
49945 2007-08-18  Bruno Haible  <bruno@clisp.org>
49946
49947         * modules/fstrcmp-tests: New file.
49948         * tests/test-fstrcmp.c: New file.
49949
49950 2007-08-18  Bruno Haible  <bruno@clisp.org>
49951
49952         * modules/fstrcmp: New file, from GNU gettext with modifications.
49953         * lib/fstrcmp.h: New file, from GNU gettext.
49954         * lib/fstrcmp.c: New file, from GNU gettext.
49955         * MODULES.html.sh (String handling): Add fstrcmp.
49956
49957 2007-08-18  Bruno Haible  <bruno@clisp.org>
49958
49959         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49960         'bool'.
49961         (diag, compareseq): Remove const from the ctxt argument.
49962         (USE_HEURISTIC): Undefine at the end.
49963
49964 2007-08-18  Jim Meyering  <jim@meyering.net>
49965
49966         New file: lib/idcache.h
49967         * NEWS: Mention the addition.
49968         * modules/idcache (Files): Add lib/idcache.h
49969         * lib/idcache.c: Include "idcache.h".
49970         Don't include <sys/types.h>.
49971         Add a FIXME comment.
49972         Move file-scoped "static" declarations to the top.
49973         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49974
49975 2007-08-17  Bruno Haible  <bruno@clisp.org>
49976         and Paul Eggert  <eggert@cs.ucla.edu>
49977
49978         * MODULES.html.sh: Add diffseq.
49979         * modules/diffseq: New file.
49980         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49981         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49982
49983 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49984
49985         Import changes from coreutils for bootstrap script.
49986
49987         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49988
49989         * build-aux/bootstrap (slurp): Work even in environments where
49990         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49991         current code does not slurp files whose names start with ".", and
49992         this looks like it might be a troublesome area.
49993
49994         2007-07-11  Jim Meyering  <jim@meyering.net>
49995
49996         If there's a GPL vN copyright comment, require that N == 3.
49997
49998         2007-07-08  Jim Meyering  <jim@meyering.net>
49999
50000         Run the coreutils-specific code only if tests/Makefile.am.in exists.
50001         * build-aux/bootstrap (mam_template): Move definition out of loop.
50002
50003         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
50004
50005         * build-aux/bootstrap (symlink_to_dir): Rename function from
50006         symlink_to_gnulib.  Add a directory parameter.  Update all
50007         callers.
50008         (cp_mark_as_generated): Also check for -- and link to -- files in
50009         gl/.
50010
50011         2007-07-08  Jim Meyering  <jim@meyering.net>
50012
50013         Adapt to deeper hierarchy in gnulib.
50014         * build-aux/bootstrap (symlink_to_dir): If the destination
50015         directory doesn't exist, create it. This is required at least for
50016         "lib/uniwidth/cjk.h".
50017
50018         2007-05-15  Jim Meyering  <jim@meyering.net>
50019
50020         * build-aux/bootstrap: Now that generated Makefile.am files
50021         are no longer under version control, they must be created at
50022         bootstrap time.
50023
50024 2007-08-14  Ben Pfaff  <blp@gnu.org>
50025
50026         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
50027
50028 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50029
50030         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
50031         given the changes below.
50032         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
50033         even on hosts that have padding bits beyond the supported 64.
50034
50035 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50036
50037         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
50038         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
50039         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
50040         depends on it.
50041         (xstrtol_error): Remove.
50042         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
50043         but with a different signature.
50044         (ATTRIBUTE_NORETURN, __attribute__): New macros.
50045         * lib/xstrtol-error.c: Include exitfail.h.
50046         (xstrtol_fatal): New function, with a different signature from the
50047         old xstrtol_error, so that the caller need not worry about passing
50048         in an exit status, or about storage management of the option argument.
50049         (xstrtol_error): Now a static function.  Redo signature to
50050         implement xstrtol_fatal.  Output the correct number of hyphens in
50051         front of the option so that the caller need not worry about
50052         storage management.
50053         (N_): New macro.
50054         (_): Remove; not used now.
50055         * modules/xstrtol: Depend on getopt.
50056         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50057         of old STRTOL_FATAL_ERROR macro.
50058         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
50059         of test program.
50060         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
50061         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
50062
50063 2007-08-08  Eric Blake  <ebb9@byu.net>
50064
50065         * lib/xstrtol-error.c: Add missing include.
50066
50067         Move xstrtol messages into gnulib domain, when --pobase is used.
50068         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
50069         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
50070         * modules/xstrtol (Files): Distribute new file.
50071         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
50072         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
50073         * tests/test-xstrtol.c: ...into new file.
50074         * tests/test-xstrtoul.c: Also test xstrtoul.
50075         * tests/test-xstrtoimax.c: Also test xstrtoimax.
50076         * tests/test-xstrtoumax.c: Also test xstrtoumax.
50077         * tests/test-xstrtol.sh: Drive the tests.
50078         * tests/test-xstrtoimax.sh: Likewise.
50079         * tests/test-xstrtoumax.sh: Likewise.
50080         * modules/xstrtol-tests: New module.
50081         * modules/xstrtoimax-tests: Likewise.
50082         * modules/xstrtoumax-tests: Likewise.
50083
50084 2007-08-08  Jim Meyering  <jim@meyering.net>
50085
50086         New function: mfile_name_concat.
50087         * lib/filenamecat.c (mfile_name_concat): New function, just like
50088         file_name_concat, but return NULL upon failure rather than exiting
50089         with a diagnostic.
50090         * lib/filenamecat.h: Declare it.
50091
50092 2007-08-07  Bruno Haible  <bruno@clisp.org>
50093
50094         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50095         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50096         warning from gcc.
50097         Reported by Eric Blake.
50098
50099 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50100
50101         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50102         * modules/crypto/arcfour (License): Likewise.
50103         * modules/crypto/des-tests (License): Likewise.
50104         * modules/crypto/gc-arctwo-tests (License): Likewise.
50105         * modules/crypto/gc-des-tests (License): Likewise.
50106         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50107         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50108         * modules/crypto/gc-md2-tests (License): Likewise.
50109         * modules/crypto/gc-md4-tests (License): Likewise.
50110         * modules/crypto/gc-md5-tests (License): Likewise.
50111         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50112         * modules/crypto/gc-rijndael-tests (License): Likewise.
50113         * modules/crypto/gc-sha1-tests (License): Likewise.
50114         * modules/crypto/gc-tests (License): Likewise.
50115         * modules/crypto/hmac-md5 (License): Likewise.
50116         * modules/crypto/hmac-sha1 (License): Likewise.
50117         * modules/crypto/md2-tests (License): Likewise.
50118         * modules/crypto/md4-tests (License): Likewise.
50119         * modules/crypto/md5 (License): Likewise.
50120         * modules/crypto/rijndael (License): Likewise.
50121         * modules/crypto/sha1 (License): Likewise.
50122         * modules/memxor (License): Likewise.
50123
50124 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50125         and Bruno Haible  <bruno@clisp.org>
50126
50127         * NEWS: Describe interface changes to human, xstrtol.
50128         * lib/human.h: Include <xstrtol.h>.
50129         (human_options): Return enum strtol_error, not int.  Remove
50130         bool arg; take int * instead.
50131         * lib/human.c: Don't include "gettext.h".
50132         (_): Remove; no longer used.
50133         Don't include <xstrtol.h>, since human.h does it.
50134         (human_options): Adjust to abovementioned interface changes.
50135         Do not report error to stderr; that's now the caller's
50136         responsibility.
50137         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50138         interface change.
50139         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50140         Str, Argument_type_string.  All uses changed.  Put " argument"
50141         in diagnostics to make them clearer.  Change wording of suffix
50142         message for clarity.
50143         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50144         Argument_type_string.
50145         (STRTOL_FATAL_WARN): Remove; no longer used.
50146         * modules/human (Depends-on): Remove gettext-h.
50147
50148 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50149
50150         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50151
50152 2007-07-31  Bruno Haible  <bruno@clisp.org>
50153
50154         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50155         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50156         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50157
50158 2007-07-31  Bruno Haible  <bruno@clisp.org>
50159
50160         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50161         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50162
50163 2007-07-30  Bruno Haible  <bruno@clisp.org>
50164
50165         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50166         * modules/c-ctype (License): Likewise.
50167         * modules/c-strcase (License): Likewise.
50168         * modules/check-version (License): Likewise.
50169         * modules/iconv (License): Likewise.
50170         * modules/iconv_open (License): Likewise.
50171         * modules/read-file (License): Likewise.
50172         * modules/striconv (License): Likewise.
50173         * modules/strverscmp (License): Likewise.
50174         * modules/vasprintf (License): Likewise.
50175         * modules/crypto/des (License): Likewise.
50176         * modules/crypto/gc (License): Likewise.
50177         * modules/crypto/gc-arcfour (License): Likewise.
50178         * modules/crypto/gc-arctwo (License): Likewise.
50179         * modules/crypto/gc-des (License): Likewise.
50180         * modules/crypto/gc-hmac-md5 (License): Likewise.
50181         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50182         * modules/crypto/gc-md2 (License): Likewise.
50183         * modules/crypto/gc-md4 (License): Likewise.
50184         * modules/crypto/gc-md5 (License): Likewise.
50185         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50186         * modules/crypto/gc-random (License): Likewise.
50187         * modules/crypto/gc-rijndael (License): Likewise.
50188         * modules/crypto/gc-sha1 (License): Likewise.
50189         * modules/crypto/md2 (License): Likewise.
50190         * modules/crypto/md4 (License): Likewise.
50191
50192 2007-07-30  Jim Meyering  <jim@meyering.net>
50193
50194         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50195         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50196         it has valid stat data.  This bug would cause du not to count the
50197         sizes of inaccessible directories.
50198         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50199         in <http://bugzilla.redhat.com/250077>.
50200
50201 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50202             Bruno Haible  <bruno@clisp.org>
50203
50204         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50205         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50206         #include_next, gives a diagnostic about it, but reports no error in
50207         the exit code.
50208         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50209
50210 2007-07-24  Ben Pfaff  <blp@gnu.org>
50211
50212         Improve name: "count-one-bits" is better than "popcount".
50213         * MODULES.html.sh: Update name.
50214         * lib/popcount.h: Renamed lib/count-one-bits.h.
50215         (popcount): Renamed count_one_bits.
50216         (popcountl): Renamed count_one_bits_l.
50217         (popcountll): Renamed count_one_bits_ll.
50218         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50219         * modules/popcount: Renamed module/count-one-bits.
50220         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50221         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50222
50223 2007-07-23  Ben Pfaff  <blp@gnu.org>
50224
50225         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50226         better code generation, and add U to large constants to avoid
50227         warnings, in non-GCC case.
50228         Suggested by Bruno Haible.
50229
50230 2007-07-23  Ben Pfaff  <blp@gnu.org>
50231
50232         * lib/popcount.h: Use verify_true instead of if...abort.
50233         * modules/popcount: Depend on verify module.
50234         Suggested by Jim Meyering.
50235
50236 2007-07-23  Bruno Haible  <bruno@clisp.org>
50237
50238         * gnulib-tool (func_import): Create a .cvsignore file also when the
50239         directory is not yet in CVS but the toplevel directory is. When
50240         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50241         Reported by Karl Berry.
50242
50243 2007-07-22  Ben Pfaff  <blp@gnu.org>
50244
50245         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50246         case.
50247         Suggested by Eric Blake.
50248
50249 2007-07-22  Ben Pfaff  <blp@gnu.org>
50250
50251         New module: popcount.
50252         * MODULES.html.sh: Add popcount.
50253         * modules/popcount: New file.
50254         * modules/popcount-tests: New file.
50255         * tests/test-popcount.c: New file.
50256         * lib/popcount.h: New file.
50257         * m4/popcount.m4: New file.
50258
50259 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50260
50261         * build-aux/announce-gen: Update to GPLv3.
50262
50263         * build-aux/config.guess: Update from config.
50264
50265 2007-07-21  Bruno Haible  <bruno@clisp.org>
50266
50267         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50268         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50269
50270 2007-07-20  Jim Meyering  <jim@meyering.net>
50271
50272         * check-module: Diagnose a self-dependency.
50273
50274 2007-07-19  Bruno Haible  <bruno@clisp.org>
50275
50276         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50277         empty.
50278         Reported by Eric Blake.
50279
50280 2007-07-18  Bruno Haible  <bruno@clisp.org>
50281
50282         * gnulib-tool: New options --po-base, --po-domain.
50283         (func_usage): Document them.
50284         (pobase, po_domain): New variables.
50285         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50286         DEFAULT_TEXT_DOMAIN.
50287         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50288         (func_import): Consider pobase and po_domain. Create a po/ directory.
50289         (func_create_testdir): Set pobase and po_domain to empty.
50290         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50291         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50292
50293 2007-07-18  Bruno Haible  <bruno@clisp.org>
50294
50295         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50296         EXTRA_DIST augmentation for files in build-aux/.
50297
50298 2007-07-16  Bruno Haible  <bruno@clisp.org>
50299
50300         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50301         * modules/getdelim (License): Likewise.
50302
50303 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50304
50305         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50306         * modules/d-type (License): Likewise.
50307         * modules/extensions (License): Likewise.
50308         * modules/fnmatch (License): Likewise.
50309         * modules/fseeko (License): Likewise.
50310         * modules/getaddrinfo (License): Likewise.
50311         * modules/getline (License): Likewise.
50312         * modules/getlogin_r (License): Likewise.
50313         * modules/getpass (License): Likewise.
50314         * modules/gettimeofday (License): Likewise.
50315         * modules/glob (License): Likewise.
50316         * modules/inet_ntop (License): Likewise.
50317         * modules/malloc (License): Likewise.
50318         * modules/malloca (License): Likewise.
50319         * modules/memmem (License): Likewise.
50320         * modules/mempcpy (License): Likewise.
50321         * modules/memset (License): Likewise.
50322         * modules/minmax (License): Likewise.
50323         * modules/mktime (License): Likewise.
50324         * modules/netinet_in (License): Likewise.
50325         * modules/pathmax (License): Likewise.
50326         * modules/poll (License): Likewise.
50327         * modules/regex (License): Likewise.
50328         * modules/snprintf (License): Likewise.
50329         * modules/stdbool (License): Likewise.
50330         * modules/stdint (License): Likewise.
50331         * modules/stdio (License): Likewise.
50332         * modules/strcase (License): Likewise.
50333         * modules/strcasestr (License): Likewise.
50334         * modules/strdup (License): Likewise.
50335         * modules/string (License): Likewise.
50336         * modules/strndup (License): Likewise.
50337         * modules/strnlen (License): Likewise.
50338         * modules/strpbrk (License): Likewise.
50339         * modules/strptime (License): Likewise.
50340         * modules/strsep (License): Likewise.
50341         * modules/sys_select (License): Likewise.
50342         * modules/sys_socket (License): Likewise.
50343         * modules/sys_stat (License): Likewise.
50344         * modules/sys_time (License): Likewise.
50345         * modules/time (License): Likewise.
50346         * modules/time_r (License): Likewise.
50347         * modules/timegm (License): Likewise.
50348         * modules/unistd (License): Likewise.
50349         * modules/vsnprintf (License): Likewise.
50350         * modules/wctype (License): Likewise.
50351
50352 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50353
50354         * modules/argz (License): LGPLv2+.
50355
50356 2007-07-15  Karl Berry  <karl@gnu.org>
50357
50358         * doc/gnulib.texi: revise node structure per new fdl.texi.
50359
50360 2007-07-14  Bruno Haible  <bruno@clisp.org>
50361
50362         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50363         the output file.
50364         * lib/uniname/uninames.h: Regenerated.
50365
50366 2007-07-14  Karl Berry  <karl@gnu.org>
50367
50368         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50369         omitting sectioning and index commands.
50370
50371 2007-07-13  Bruno Haible  <bruno@clisp.org>
50372
50373         New gnulib-tool option --more-symlinks.
50374         * gnulib-tool (func_usage): Document --more-symlinks.
50375         (do_copyrights): New variable.
50376         Recognize option --more-symlinks.
50377         (func_import): Don't add a copyright notice transform to
50378         sed_transform_lib_file if do_copyrights is empty.
50379
50380 2007-07-13  Bruno Haible  <bruno@clisp.org>
50381
50382         * lib/vasnprintf.c (decimal_point_char): Define also if
50383         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50384         && !NEED_PRINTF_DIRECTIVE_A.
50385         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50386         Gary V. Vaughan <gary@gnu.org>.
50387
50388 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50389
50390         * lib/inttypes_.h: Undo previous change, since it was fixed
50391         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50392
50393 2007-07-13  Bruno Haible  <bruno@clisp.org>
50394
50395         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50396         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50397
50398 2007-07-13  Jim Meyering  <jim@meyering.net>
50399
50400         df: Don't fail for Tru64's "file-on-file mount".
50401         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50402         so we fall through and use statfs instead.  Details here:
50403         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50404         Reported by Albert Chin.
50405
50406 2007-07-13  Bruno Haible  <bruno@clisp.org>
50407
50408         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50409         * modules/configmake (License): Likewise.
50410         * modules/gettext (License): Likewise.
50411         * modules/gettext-h (License): Likewise.
50412         * modules/include_next (License): Likewise.
50413         * modules/link-warning (License): Likewise.
50414         * modules/localcharset (License): Likewise.
50415         * modules/localename (License): Likewise.
50416         * modules/lock (License): Likewise.
50417         * modules/relocatable-lib-lgpl (License): Likewise.
50418         * modules/size_max (License): Likewise.
50419         * modules/vasnprintf (License): Likewise.
50420         * modules/wchar (License): Likewise.
50421         * modules/xsize (License): Likewise.
50422
50423 2007-07-13  Bruno Haible  <bruno@clisp.org>
50424
50425         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50426         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50427
50428 2007-07-12  Bruno Haible  <bruno@clisp.org>
50429
50430         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50431         in the modules files.
50432
50433 2007-07-11  Karl Berry  <karl@gnu.org>
50434
50435         * MODULES.html.sh (func_module): use
50436          sed -e '\|^'"${includefile}"'$|d'
50437          instead of /.../d, to avoid errors on $includefile's containing /.
50438
50439 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50440
50441         * gnulib-tool (func_import): Avoid duplication of --avoid
50442         statements
50443         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50444         names to `_' in variable names.
50445
50446 2007-07-10  Eric Blake  <ebb9@byu.net>
50447
50448         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50449         * NEWS: Document this change.
50450
50451 2007-07-08  Bruno Haible  <bruno@clisp.org>
50452
50453         Update to Unicode 5.0.
50454         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50455         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50456         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50457         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50458         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50459         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50460         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50461         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50462         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50463         U+10A3F, U+1D242..U+1D244.
50464         (nonspacing_table_ind): Update.
50465         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50466         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50467
50468 2007-07-08  Bruno Haible  <bruno@clisp.org>
50469
50470         Update to Unicode 5.0.
50471         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50472         code transform. Extend the name index field of unicode_name_to_code and
50473         unicode_code_to_name from 16 to 24 bits.
50474         * lib/uniname/uniname.c (unicode_character_name,
50475         unicode_name_character): Add the range 0x12xxx to the code transform.
50476         * lib/uniname/uninames.h: Regenerated.
50477         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50478
50479 2007-07-07  Bruno Haible  <bruno@clisp.org>
50480
50481         * modules/wcwidth-tests: New file.
50482         * tests/test-wcwidth.c: New file.
50483
50484         Work around MacOS X wcwidth() bug.
50485         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50486         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50487         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50488         original wcwidth in non-UTF-8 locales.
50489         * modules/wcwidth (Depends-on): Add localcharset, streq,
50490         uniwidth/width.
50491         * doc/functions/wcwidth.texi: Update.
50492
50493 2007-07-07  Bruno Haible  <bruno@clisp.org>
50494
50495         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50496         (wcwidth): New declaration.
50497         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50498         macros.
50499         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50500         here. Prepare for creating <wchar.h> unconditionally.
50501         * modules/wchar (Depends-on): Add link-warning.
50502         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50503         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50504         * lib/wcwidth.h: Remove file.
50505         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50506         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50507         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50508         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50509         (Include): Replace wcwidth.h with <wchar.h>.
50510         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50511         * lib/mbchar.h: Don't include wcwidth.h.
50512         * lib/mbswidth.c: Likewise.
50513         * NEWS: Mention the change.
50514
50515 2007-07-07  Bruno Haible  <bruno@clisp.org>
50516
50517         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50518         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50519         definition with an external declaration.
50520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50521         defined as a function. Remove AC_C_INLINE requirement.
50522         * modules/wcwidth (Files): Add lib/wcwidth.c.
50523         (Makefile.am): Remove redundant statement.
50524
50525 2007-07-07  Bruno Haible  <bruno@clisp.org>
50526
50527         * MODULES.html.sh (Unicode string functions): Add the new modules.
50528
50529         * tests/uniwidth/test-u32-strwidth.c: New file.
50530         * modules/uniwidth/u32-strwidth-tests: New file.
50531
50532         * lib/uniwidth/u32-strwidth.c: New file.
50533         * modules/uniwidth/u32-strwidth: New file.
50534
50535         * tests/uniwidth/test-u16-strwidth.c: New file.
50536         * modules/uniwidth/u16-strwidth-tests: New file.
50537
50538         * lib/uniwidth/u16-strwidth.c: New file.
50539         * modules/uniwidth/u16-strwidth: New file.
50540
50541         * tests/uniwidth/test-u8-strwidth.c: New file.
50542         * modules/uniwidth/u8-strwidth-tests: New file.
50543
50544         * lib/uniwidth/u8-strwidth.c: New file.
50545         * modules/uniwidth/u8-strwidth: New file.
50546
50547         * tests/uniwidth/test-u32-width.c: New file.
50548         * modules/uniwidth/u32-width-tests: New file.
50549
50550         * lib/uniwidth/u32-width.c: New file.
50551         * modules/uniwidth/u32-width: New file.
50552
50553         * tests/uniwidth/test-u16-width.c: New file.
50554         * modules/uniwidth/u16-width-tests: New file.
50555
50556         * lib/uniwidth/u16-width.c: New file.
50557         * modules/uniwidth/u16-width: New file.
50558
50559         * tests/uniwidth/test-u8-width.c: New file.
50560         * modules/uniwidth/u8-width-tests: New file.
50561
50562         * lib/uniwidth/u8-width.c: New file.
50563         * modules/uniwidth/u8-width: New file.
50564
50565         * tests/uniwidth/test-uc_width.c: New file.
50566         * modules/uniwidth/width-tests: New file.
50567
50568         * lib/uniwidth/width.c: New file, from GNU libiconv.
50569         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50570         * modules/uniwidth/width: New file.
50571
50572         * lib/uniwidth.h: New file, from GNU libiconv.
50573         * modules/uniwidth/base: New file.
50574
50575 2007-07-07  Bruno Haible  <bruno@clisp.org>
50576
50577         * lib/uniname.h: New file, from GNU gettext.
50578         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50579         * lib/uniname/uninames.h: New file, from GNU gettext.
50580         * lib/uniname/uniname.c: New file, from GNU gettext.
50581         * tests/uniname/test-uninames.sh: New file.
50582         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50583         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50584         * modules/uniname/base: New file.
50585         * modules/uniname/uniname: New file.
50586         * modules/uniname/uniname-tests: New file.
50587         * MODULES.html.sh (Unicode string functions): Add the new modules.
50588
50589 2007-07-06  Bruno Haible  <bruno@clisp.org>
50590
50591         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50592
50593 2007-07-06  Bruno Haible  <bruno@clisp.org>
50594
50595         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50596         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50597         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50598         include <sys/time.h>.
50599         Reported by Eric Blake.
50600
50601 2007-07-06  Eric Blake  <ebb9@byu.net>
50602
50603         Fix testing canonicalize on cygwin.
50604         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50605         Revert patch from 2007-06-19.
50606         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50607         canonicalize module is also in use.
50608         * tests/test-canonicalize.c: New file.
50609         * tests/test-canonicalize.sh: Likewise.
50610         * modules/canonicalize-tests: Likewise.
50611
50612 2007-07-06  Jim Meyering  <jim@meyering.net>
50613
50614         * lib/getugroups.c (getugroups): Detect getgrent failure.
50615         Adjust comment to reflect reality: this function may return -1.
50616
50617 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50618
50619         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50620         the new TP address.
50621         (usage): Fix typo
50622         (gnulib_mk): New variable.
50623
50624 2007-07-05  Jim Meyering  <jim@meyering.net>
50625
50626         Don't let endgrent clobber errno, no matter how improbable.
50627         * lib/getugroups.c (getugroups): Save and restore errno around
50628         endgrent call.
50629
50630         Close the group DB even when failing with 2^31 or more members.
50631         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50632
50633 2007-07-04  Jim Meyering  <jim@meyering.net>
50634
50635         * lib/getugroups.h: New file.
50636         * lib/getugroups.c: Include "getugroups.h".
50637         Remove uses of "register" keyword.
50638         Move local variable, "cp", down into scope where used.
50639         Give "username" parameter the "const" attribute.
50640         * modules/getugroups (Files): Add lib/getugroups.h
50641
50642 2007-07-04  Karl Berry  <karl@gnu.org>
50643
50644         * MODULES.html.sh (func_all_modules): Complete rename of
50645         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50646
50647 2007-07-02  Bruno Haible  <bruno@clisp.org>
50648
50649         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50650         mode, when inttypes.h comes from gnulib.
50651         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50652
50653 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50654
50655         * NEWS: Mention lgpl module name change.
50656
50657         * modules/lgpl-2.1: Renamed from lgpl.
50658
50659         * NEWS: Mention gpl module name change.
50660
50661         * modules/gpl-3.0: New file, based on gpl-2.0.
50662
50663         * modules/gpl-2.0: Renamed from gpl.
50664
50665         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50666         doc/gpl-2.0.texi.
50667
50668 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50669
50670         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50671         #define __STDC_LIMIT_MACROS temporarily while including
50672         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50673         Problem reported by Joel E. Denny in
50674         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50675
50676 2007-07-01  Bruno Haible  <bruno@clisp.org>
50677
50678         * lib/unistdio.h: New file.
50679         * lib/unistdio/u-asnprintf.h: New file.
50680         * lib/unistdio/u-asprintf.h: New file.
50681         * lib/unistdio/u-printf-args.c: New file.
50682         * lib/unistdio/u-printf-args.h: New file.
50683         * lib/unistdio/u-printf-parse.h: New file.
50684         * lib/unistdio/u-snprintf.h: New file.
50685         * lib/unistdio/u-sprintf.h: New file.
50686         * lib/unistdio/u-vasprintf.h: New file.
50687         * lib/unistdio/u-vsnprintf.h: New file.
50688         * lib/unistdio/u-vsprintf.h: New file.
50689         * lib/unistdio/ulc-asnprintf.c: New file.
50690         * lib/unistdio/ulc-asprintf.c: New file.
50691         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50692         * lib/unistdio/ulc-printf-parse.c: New file.
50693         * lib/unistdio/ulc-snprintf.c: New file.
50694         * lib/unistdio/ulc-sprintf.c: New file.
50695         * lib/unistdio/ulc-vasnprintf.c: New file.
50696         * lib/unistdio/ulc-vasprintf.c: New file.
50697         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50698         * lib/unistdio/ulc-vsnprintf.c: New file.
50699         * lib/unistdio/ulc-vsprintf.c: New file.
50700         * lib/unistdio/u8-asnprintf.c: New file.
50701         * lib/unistdio/u8-asprintf.c: New file.
50702         * lib/unistdio/u8-printf-parse.c: New file.
50703         * lib/unistdio/u8-snprintf.c: New file.
50704         * lib/unistdio/u8-sprintf.c: New file.
50705         * lib/unistdio/u8-vasnprintf.c: New file.
50706         * lib/unistdio/u8-vasprintf.c: New file.
50707         * lib/unistdio/u8-vsnprintf.c: New file.
50708         * lib/unistdio/u8-vsprintf.c: New file.
50709         * lib/unistdio/u8-u8-asnprintf.c: New file.
50710         * lib/unistdio/u8-u8-asprintf.c: New file.
50711         * lib/unistdio/u8-u8-snprintf.c: New file.
50712         * lib/unistdio/u8-u8-sprintf.c: New file.
50713         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50714         * lib/unistdio/u8-u8-vasprintf.c: New file.
50715         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50716         * lib/unistdio/u8-u8-vsprintf.c: New file.
50717         * lib/unistdio/u16-asnprintf.c: New file.
50718         * lib/unistdio/u16-asprintf.c: New file.
50719         * lib/unistdio/u16-printf-parse.c: New file.
50720         * lib/unistdio/u16-snprintf.c: New file.
50721         * lib/unistdio/u16-sprintf.c: New file.
50722         * lib/unistdio/u16-vasnprintf.c: New file.
50723         * lib/unistdio/u16-vasprintf.c: New file.
50724         * lib/unistdio/u16-vsnprintf.c: New file.
50725         * lib/unistdio/u16-vsprintf.c: New file.
50726         * lib/unistdio/u16-u16-asnprintf.c: New file.
50727         * lib/unistdio/u16-u16-asprintf.c: New file.
50728         * lib/unistdio/u16-u16-snprintf.c: New file.
50729         * lib/unistdio/u16-u16-sprintf.c: New file.
50730         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50731         * lib/unistdio/u16-u16-vasprintf.c: New file.
50732         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50733         * lib/unistdio/u16-u16-vsprintf.c: New file.
50734         * lib/unistdio/u32-asnprintf.c: New file.
50735         * lib/unistdio/u32-asprintf.c: New file.
50736         * lib/unistdio/u32-printf-parse.c: New file.
50737         * lib/unistdio/u32-snprintf.c: New file.
50738         * lib/unistdio/u32-sprintf.c: New file.
50739         * lib/unistdio/u32-vasnprintf.c: New file.
50740         * lib/unistdio/u32-vasprintf.c: New file.
50741         * lib/unistdio/u32-vsnprintf.c: New file.
50742         * lib/unistdio/u32-vsprintf.c: New file.
50743         * lib/unistdio/u32-u32-asnprintf.c: New file.
50744         * lib/unistdio/u32-u32-asprintf.c: New file.
50745         * lib/unistdio/u32-u32-snprintf.c: New file.
50746         * lib/unistdio/u32-u32-sprintf.c: New file.
50747         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50748         * lib/unistdio/u32-u32-vasprintf.c: New file.
50749         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50750         * lib/unistdio/u32-u32-vsprintf.c: New file.
50751         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50752         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50753         * tests/unistdio/test-ulc-printf1.h: New file.
50754         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50755         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50756         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50757         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50758         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
50759         * tests/unistdio/test-ulc-vasprintf1.c: New file.
50760         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
50761         * tests/unistdio/test-ulc-vsprintf1.c: New file.
50762         * tests/unistdio/test-u8-asnprintf1.c: New file.
50763         * tests/unistdio/test-u8-asnprintf1.h: New file.
50764         * tests/unistdio/test-u8-printf1.h: New file.
50765         * tests/unistdio/test-u8-vasnprintf1.c: New file.
50766         * tests/unistdio/test-u8-vasnprintf2.c: New file.
50767         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
50768         * tests/unistdio/test-u8-vasnprintf3.c: New file.
50769         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
50770         * tests/unistdio/test-u8-vasprintf1.c: New file.
50771         * tests/unistdio/test-u8-vsnprintf1.c: New file.
50772         * tests/unistdio/test-u8-vsprintf1.c: New file.
50773         * tests/unistdio/test-u16-asnprintf1.c: New file.
50774         * tests/unistdio/test-u16-asnprintf1.h: New file.
50775         * tests/unistdio/test-u16-printf1.h: New file.
50776         * tests/unistdio/test-u16-vasnprintf1.c: New file.
50777         * tests/unistdio/test-u16-vasnprintf2.c: New file.
50778         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
50779         * tests/unistdio/test-u16-vasnprintf3.c: New file.
50780         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
50781         * tests/unistdio/test-u16-vasprintf1.c: New file.
50782         * tests/unistdio/test-u16-vsnprintf1.c: New file.
50783         * tests/unistdio/test-u16-vsprintf1.c: New file.
50784         * tests/unistdio/test-u32-asnprintf1.c: New file.
50785         * tests/unistdio/test-u32-asnprintf1.h: New file.
50786         * tests/unistdio/test-u32-printf1.h: New file.
50787         * tests/unistdio/test-u32-vasnprintf1.c: New file.
50788         * tests/unistdio/test-u32-vasnprintf2.c: New file.
50789         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
50790         * tests/unistdio/test-u32-vasnprintf3.c: New file.
50791         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
50792         * tests/unistdio/test-u32-vasprintf1.c: New file.
50793         * tests/unistdio/test-u32-vsnprintf1.c: New file.
50794         * tests/unistdio/test-u32-vsprintf1.c: New file.
50795         * modules/unistdio/base: New file.
50796         * modules/unistdio/u-printf-args: New file.
50797         * modules/unistdio/ulc-asnprintf: New file.
50798         * modules/unistdio/ulc-asprintf: New file.
50799         * modules/unistdio/ulc-fprintf: New file.
50800         * modules/unistdio/ulc-printf-parse: New file.
50801         * modules/unistdio/ulc-snprintf: New file.
50802         * modules/unistdio/ulc-sprintf: New file.
50803         * modules/unistdio/ulc-vasnprintf: New file.
50804         * modules/unistdio/ulc-vasprintf: New file.
50805         * modules/unistdio/ulc-vfprintf: New file.
50806         * modules/unistdio/ulc-vsnprintf: New file.
50807         * modules/unistdio/ulc-vsprintf: New file.
50808         * modules/unistdio/u8-asnprintf: New file.
50809         * modules/unistdio/u8-asprintf: New file.
50810         * modules/unistdio/u8-printf-parse: New file.
50811         * modules/unistdio/u8-snprintf: New file.
50812         * modules/unistdio/u8-sprintf: New file.
50813         * modules/unistdio/u8-vasnprintf: New file.
50814         * modules/unistdio/u8-vasprintf: New file.
50815         * modules/unistdio/u8-vsnprintf: New file.
50816         * modules/unistdio/u8-vsprintf: New file.
50817         * modules/unistdio/u8-u8-asnprintf: New file.
50818         * modules/unistdio/u8-u8-asprintf: New file.
50819         * modules/unistdio/u8-u8-snprintf: New file.
50820         * modules/unistdio/u8-u8-sprintf: New file.
50821         * modules/unistdio/u8-u8-vasnprintf: New file.
50822         * modules/unistdio/u8-u8-vasprintf: New file.
50823         * modules/unistdio/u8-u8-vsnprintf: New file.
50824         * modules/unistdio/u8-u8-vsprintf: New file.
50825         * modules/unistdio/u16-asnprintf: New file.
50826         * modules/unistdio/u16-asprintf: New file.
50827         * modules/unistdio/u16-printf-parse: New file.
50828         * modules/unistdio/u16-snprintf: New file.
50829         * modules/unistdio/u16-sprintf: New file.
50830         * modules/unistdio/u16-vasnprintf: New file.
50831         * modules/unistdio/u16-vasprintf: New file.
50832         * modules/unistdio/u16-vsnprintf: New file.
50833         * modules/unistdio/u16-vsprintf: New file.
50834         * modules/unistdio/u16-u16-asnprintf: New file.
50835         * modules/unistdio/u16-u16-asprintf: New file.
50836         * modules/unistdio/u16-u16-snprintf: New file.
50837         * modules/unistdio/u16-u16-sprintf: New file.
50838         * modules/unistdio/u16-u16-vasnprintf: New file.
50839         * modules/unistdio/u16-u16-vasprintf: New file.
50840         * modules/unistdio/u16-u16-vsnprintf: New file.
50841         * modules/unistdio/u16-u16-vsprintf: New file.
50842         * modules/unistdio/u32-asnprintf: New file.
50843         * modules/unistdio/u32-asprintf: New file.
50844         * modules/unistdio/u32-printf-parse: New file.
50845         * modules/unistdio/u32-snprintf: New file.
50846         * modules/unistdio/u32-sprintf: New file.
50847         * modules/unistdio/u32-vasnprintf: New file.
50848         * modules/unistdio/u32-vasprintf: New file.
50849         * modules/unistdio/u32-vsnprintf: New file.
50850         * modules/unistdio/u32-vsprintf: New file.
50851         * modules/unistdio/u32-u32-asnprintf: New file.
50852         * modules/unistdio/u32-u32-asprintf: New file.
50853         * modules/unistdio/u32-u32-snprintf: New file.
50854         * modules/unistdio/u32-u32-sprintf: New file.
50855         * modules/unistdio/u32-u32-vasnprintf: New file.
50856         * modules/unistdio/u32-u32-vasprintf: New file.
50857         * modules/unistdio/u32-u32-vsnprintf: New file.
50858         * modules/unistdio/u32-u32-vsprintf: New file.
50859         * modules/unistdio/ulc-asnprintf-tests: New file.
50860         * modules/unistdio/ulc-vasnprintf-tests: New file.
50861         * modules/unistdio/ulc-vasprintf-tests: New file.
50862         * modules/unistdio/ulc-vsnprintf-tests: New file.
50863         * modules/unistdio/ulc-vsprintf-tests: New file.
50864         * modules/unistdio/u8-asnprintf-tests: New file.
50865         * modules/unistdio/u8-vasnprintf-tests: New file.
50866         * modules/unistdio/u8-vasprintf-tests: New file.
50867         * modules/unistdio/u8-vsnprintf-tests: New file.
50868         * modules/unistdio/u8-vsprintf-tests: New file.
50869         * modules/unistdio/u16-asnprintf-tests: New file.
50870         * modules/unistdio/u16-vasnprintf-tests: New file.
50871         * modules/unistdio/u16-vasprintf-tests: New file.
50872         * modules/unistdio/u16-vsnprintf-tests: New file.
50873         * modules/unistdio/u16-vsprintf-tests: New file.
50874         * modules/unistdio/u32-asnprintf-tests: New file.
50875         * modules/unistdio/u32-vasnprintf-tests: New file.
50876         * modules/unistdio/u32-vasprintf-tests: New file.
50877         * modules/unistdio/u32-vsnprintf-tests: New file.
50878         * modules/unistdio/u32-vsprintf-tests: New file.
50879         * MODULES.html.sh (Unicode string functions): Add the new modules.
50880
50881 2007-07-01  Bruno Haible  <bruno@clisp.org>
50882
50883         * lib/sprintf.c (sprintf): Limit the available length estimation,
50884         to avoid address wraparound.
50885         * lib/vsprintf.c (vsprintf): Likewise.
50886         * modules/sprintf-posix (Dependencies): Add stdint.
50887         * modules/vsprintf-posix (Dependencies): Likewise.
50888
50889 2007-07-01  Bruno Haible  <bruno@clisp.org>
50890
50891         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
50892         Windows PATH as well. Conservative double-quoting. Comments.
50893
50894 2007-07-01  Bruno Haible  <bruno@clisp.org>
50895             Eric Blake  <ebb9@byu.net>
50896             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50897
50898         * gnulib-tool (self_abspathname): Fix algorithm to cope with
50899         empty components in $PATH, denoting '.'.
50900
50901 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50902
50903         * gnulib-tool: Fix indentation.
50904         (func_create_megatestdir): Likewise.
50905         Report by Bruno Haible.
50906
50907 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50908
50909         Sync from Automake.
50910         * build-aux/gnupload: Fix shell portability issues with for loops.
50911         Report by Karl Berry.
50912
50913 2007-06-29  Simon Josefsson  <simon@josefsson.org>
50914
50915         * build-aux/maint.mk (POURL): Use translationproject.org.
50916
50917 2007-06-27  Simon Josefsson  <simon@josefsson.org>
50918             Bruno Haible  <bruno@clisp.org>
50919
50920         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
50921         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
50922         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
50923         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
50924         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
50925
50926 2007-06-27  Bruno Haible  <bruno@clisp.org>
50927
50928         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
50929         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
50930
50931 2007-06-26  Karl Berry  <karl@gnu.org>
50932
50933         * MODULES.html.sh: remove xreadlink-with-size.
50934
50935 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50936
50937         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
50938         method that I hope also handles the double-include problem noted
50939         by Bruno Haible in
50940         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
50941
50942 2007-06-23  Bruno Haible  <bruno@clisp.org>
50943
50944         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50945         Don't let the 'mostlyclean' target fail if the last subdirectory could
50946         not be removed.
50947         Reported by Karl Berry.
50948
50949 2007-06-23  Bruno Haible  <bruno@clisp.org>
50950
50951         * gnulib-tool (echo): Add a speedier workaround for ksh.
50952         * tests/test-echo.sh: Likewise.
50953
50954 2007-06-23  Bruno Haible  <bruno@clisp.org>
50955
50956         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50957         * tests/test-echo.sh: Likewise.
50958
50959 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50960
50961         * gnulib-tool (IFS): Initialize early, so we don't set it to
50962         empty later.
50963         (self_abspathname): Rewrite algorithm to set it, reindent.
50964         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50965         (func_create_megatestdir): Merge some sed scripts.
50966
50967 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50968
50969         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50970         exposed by Sun Studio 11 cc on Solaris 8.
50971
50972 2007-06-22  Bruno Haible  <bruno@clisp.org>
50973
50974         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50975         backslashes.
50976         * tests/test-echo.sh: New file.
50977
50978 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50979
50980         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50981         simplify `sed_replace_build_aux' scripts, they are portable but
50982         echoing them with `echo' is not.
50983         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50984
50985 2007-06-21  Karl Berry  <karl@gnu.org>
50986
50987         * config/srclist.txt: guess we can't handle the licenses via
50988         srclist at the moment.
50989
50990 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50991
50992         * MODULES.html.sh: Add include_next.
50993         * modules/include_next: New file.
50994
50995 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50996
50997         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
50998         INCLUDE_NEXT.
50999         (gl_CHECK_NEXT_HEADERS): New macro.
51000         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
51001         the obsolescent gl_ABSOLUTE_HEADER.
51002         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
51003         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
51004         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
51005         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51006         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51007         * m4/math_h.m4 (gl_MATH_H): Likewise.
51008         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51009         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51010         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51011         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51012         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51013         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51014         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51015         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51016         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51017         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51018         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51019         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
51020         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
51021         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51022         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51023         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51024         * m4/inttypes.m4 (gl_INTTYPES_H): Define
51025         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
51026         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
51027         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
51028         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
51029         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
51030         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
51031         * lib/float_.h: Likewise.
51032         * lib/inttypes_.h: Likewise.
51033         * lib/math_.h: Likewise.
51034         * lib/search_.h: Likewise.
51035         * lib/signal_.h: Likewise.
51036         * lib/stdint_.h: Likewise.
51037         * lib/stdio_.h: Likewise.
51038         * lib/stdlib_.h: Likewise.
51039         * lib/string_.h: Likewise.
51040         * lib/sys_stat_.h: Likewise.
51041         * lib/sys_time_.h: Likewise.
51042         * lib/time_.h: Likewise.
51043         * lib/unistd_.h: Likewise.
51044         * lib/wchar_.h: Likewise.
51045         * lib/wctype_.h: Likewise.
51046         * lib/dirent_.h: Likewise.
51047         * lib/iconv_.h: Likewise.
51048         * lib/locale_.h: Likewise.
51049         * lib/netinet_in_.h: Likewise.
51050         * lib/sys_select_.h: Likewise.
51051         * lib/sys_socket_.h: Likewise.
51052         * lib/sysexits_.h: Likewise.
51053         * modules/fcntl (Depends-on): Depend on include_next, not
51054         absolute_header.
51055         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51056         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51057         * modules/fchdir: Likewise.
51058         * modules/float: Likewise.
51059         * modules/iconv_open: Likewise.
51060         * modules/inttypes: Likewise.
51061         * modules/locale: Likewise.
51062         * modules/math: Likewise.
51063         * modules/netinet_in: Likewise.
51064         * modules/search: Likewise.
51065         * modules/signal: Likewise.
51066         * modules/stdint: Likewise.
51067         * modules/stdio: Likewise.
51068         * modules/stdlib: Likewise.
51069         * modules/string: Likewise.
51070         * modules/sys_select: Likewise.
51071         * modules/sys_socket: Likewise.
51072         * modules/sys_stat: Likewise.
51073         * modules/sys_time: Likewise.
51074         * modules/sysexits: Likewise.
51075         * modules/time: Likewise.
51076         * modules/unistd: Likewise.
51077         * modules/wchar: Likewise.
51078         * modules/wctype: Likewise.
51079         * modules/sys_stat: Change maintainer to "all".
51080         * modules/unistd: Likewise.
51081
51082 2007-06-20  Karl Berry  <karl@gnu.org>
51083
51084         * config/srclist.txt: track www changes in license files.
51085
51086 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51087
51088         * build-aux/bootstrap: Remove stray dot.
51089         Make sure build_aux settings are honored when linking
51090         gnulib_extra_files.
51091
51092 2007-06-19  Eric Blake  <ebb9@byu.net>
51093
51094         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51095         Allow compilation on cygwin.
51096
51097 2007-06-19  Jim Meyering  <jim@meyering.net>
51098
51099         xreadlink-with-size: Remove module.  No longer used.
51100         Ex-callers now use xreadlink or mreadlink-with-size.
51101         * modules/xreadlink-with-size: Remove module.
51102         * lib/xreadlink-with-size.c: Remove file.
51103         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51104         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51105         just before the function definition *is* accurate.
51106
51107         Eliminate one way canonicalize_filename_mode could exit.
51108         * lib/canonicalize.c (canonicalize_filename_mode):
51109         Use mreadlink_with_size, not xreadlink_with_size.
51110
51111 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51112
51113         Detect porting problems to FreeBSD/arm, which has time_t wider than
51114         long int.  Original problem reported for GNU diff by Xin Li in
51115         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51116         * modules/getdate (Depends-on): Add intprops, verify.
51117         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51118         is an integer type no wider than long int.
51119
51120 2007-06-18  Jim Meyering  <jim@meyering.net>
51121
51122         New module: mreadlink-with-size.
51123         * MODULES.html.sh: Add mreadlink-with-size.
51124         * modules/mreadlink-with-size: New module
51125         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51126         not xreadlink-with-size.
51127         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51128
51129 2007-06-16  Bruno Haible  <bruno@clisp.org>
51130
51131         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51132         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51133         Reported by Gary V. Vaughan <gary@gnu.org>.
51134
51135 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51136
51137         Revamp lchown so that it lives in unistd.h where it belongs.
51138         * lib/lchown.h: Remove.
51139         * lib/dirchownmod.c: Don't include lib/lchown.h.
51140         * lib/fchownat.c: Likewise.
51141         * lib/openat.c: Likewise.
51142         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51143         does not follow symlinks.
51144         (EOPNOTSUPP): Define if not defined.
51145         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51146         is defined to 0.
51147         (lchown): New decl.
51148         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51149         Do not check for lchown decl.
51150         Set REPLACE_LCHOWN.
51151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51152         REPLACE_LCHOWN.
51153         * modules/chown: Make it clear it follows symlinks.
51154         * modules/lchown: Make it clear it doesn't follow symlinks.
51155         (Files): Remove lib/lchown.h
51156         (Depends-on): Add unistd.
51157         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51158         (Include): Include <unistd.h>, not "lchown.h".
51159         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51160         REPLACE_LCHOWN.
51161
51162 2007-06-15  Jim Meyering  <jim@meyering.net>
51163
51164         Change license (GPL to LGPL) of fsusage and dependents.
51165         * modules/fsusage (License): Change to LGPL.
51166         * modules/full-read (License): Likewise.
51167         * modules/full-write (License): Likewise.
51168         * modules/safe-read (License): Likewise.
51169         * modules/safe-write (License): Likewise.
51170
51171 2007-06-14  Ben Pfaff  <blp@gnu.org>
51172
51173         Missing part of allocsa -> malloca transition.
51174         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51175         gl_MALLOCA.
51176
51177 2007-06-12  Bruno Haible  <bruno@clisp.org>
51178
51179         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51180         to ia64, x86_64, i386.
51181         Reported by Eric Blake.
51182
51183 2007-06-12  Bruno Haible  <bruno@clisp.org>
51184
51185         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51186         cross-compiling to x86_64.
51187
51188 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51189
51190         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51191         glitch reported by Ralf Wildenhues in
51192         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51193
51194         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51195         Vin Shelton.
51196
51197 2007-06-11  Bruno Haible  <bruno@clisp.org>
51198
51199         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51200         replacement string.
51201         Reported by Eric Blake.
51202
51203 2007-06-10  Bruno Haible  <bruno@clisp.org>
51204
51205         Prepare vasnprintf code for use with Unicode strings.
51206         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51207         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51208         TYPE_U32_STRING.
51209         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51210         a_u32_string variants.
51211         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51212         * lib/printf-args.c: Don't include config.h and the specification
51213         header if PRINTF_FETCHARGS is already defined.
51214         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51215         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51216         TYPE_U16_STRING, TYPE_U32_STRING.
51217         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51218         u16_directive, u16_directives, u32_directive, u32_directives): New
51219         types.
51220         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51221         New declarations.
51222         * lib/printf-parse.c: Don't include config.h and the specification
51223         header if PRINTF_PARSE is already defined. Eliminate the set of
51224         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51225         them now. Include c-ctype.h.
51226         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51227         directive and CHAR_T_ONLY_ASCII.
51228         * lib/vasnprintf.c: Don't include config.h and the specification header
51229         if VASNPRINTF is already defined.
51230         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51231         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51232         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51233         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51234         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51235         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51236         code accordingly.
51237         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51238         pad_ourselves also in this case, with the 'c' and 's' directives, and
51239         with a different notion of "width".
51240         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51241
51242 2007-06-10  Bruno Haible  <bruno@clisp.org>
51243
51244         * modules/unistr/u32-mbsnlen: New file.
51245         * lib/unistr/u32-mbsnlen.c: New file.
51246
51247         * modules/unistr/u16-mbsnlen: New file.
51248         * lib/unistr/u16-mbsnlen.c: New file.
51249
51250         * modules/unistr/u8-mbsnlen: New file.
51251         * lib/unistr/u8-mbsnlen.c: New file.
51252
51253         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51254         declarations.
51255
51256 2007-06-10  Bruno Haible  <bruno@clisp.org>
51257
51258         * lib/string_.h (mbsnlen): New declaration.
51259         * lib/mbsnlen.c: New file.
51260         * m4/mbsnlen.m4: New file.
51261         * modules/mbsnlen: New file.
51262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51263         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51264         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51265
51266 2007-06-10  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51269
51270 2007-06-10  Bruno Haible  <bruno@clisp.org>
51271
51272         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51273         * lib/mbuiter.h: Likewise.
51274
51275 2007-06-10  Bruno Haible  <bruno@clisp.org>
51276
51277         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51278         declaration.
51279
51280 2007-06-10  Karl Berry  <karl@gnu.org>
51281
51282         * config/srclist.txt: remove gettext entries, Bruno prefers
51283         to update individually.
51284
51285 2007-06-10  Bruno Haible  <bruno@clisp.org>
51286
51287         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51288         'maxlen'. Ensure only length + width bytes are allocated, not
51289         length + 1 + width.
51290
51291 2007-06-09  Bruno Haible  <bruno@clisp.org>
51292
51293         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51294         (CHAR_T): Remove macro.
51295         (VASNPRINTF): Update.
51296
51297 2007-06-09  Bruno Haible  <bruno@clisp.org>
51298
51299         * MODULES.html.sh (Unicode string functions): Add the new modules.
51300
51301         * modules/uniconv/u32-conv-to-enc: New file.
51302         * lib/uniconv/u32-conv-to-enc.c: New file.
51303         * modules/uniconv/u32-conv-to-enc-tests: New file.
51304         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51305
51306         * modules/uniconv/u16-conv-to-enc: New file.
51307         * lib/uniconv/u16-conv-to-enc.c: New file.
51308         * lib/uniconv/u-conv-to-enc.h: New file.
51309         * modules/uniconv/u16-conv-to-enc-tests: New file.
51310         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51311
51312         * modules/uniconv/u8-conv-to-enc: New file.
51313         * lib/uniconv/u8-conv-to-enc.c: New file.
51314         * modules/uniconv/u8-conv-to-enc-tests: New file.
51315         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51316
51317         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51318         u32_conv_to_encoding): New declarations.
51319
51320 2007-06-09  Bruno Haible  <bruno@clisp.org>
51321
51322         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51323
51324 2007-06-09  Bruno Haible  <bruno@clisp.org>
51325
51326         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51327         * modules/malloca: Renamed from modules/allocsa, updated.
51328         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51329         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51330         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51331         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51332         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51333         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51334         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51335         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51336         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51337         * modules/c-strcasestr (Depends-on): Update.
51338         * lib/c-strcasestr.c: Update.
51339         * modules/c-strstr (Depends-on): Update.
51340         * lib/c-strstr.c: Update.
51341         * modules/canonicalize-lgpl (Depends-on): Update.
51342         * lib/canonicalize-lgpl.c: Update.
51343         * modules/clean-temp (Depends-on): Update.
51344         * lib/clean-temp.c: Update.
51345         * modules/csharpcomp (Depends-on): Update.
51346         * lib/csharpcomp.c: Update.
51347         * modules/csharpexec (Depends-on): Update.
51348         * lib/csharpexec.c: Update.
51349         * modules/javacomp (Depends-on): Update.
51350         * lib/javacomp.c: Update.
51351         * modules/javaexec (Depends-on): Update.
51352         * lib/javaexec.c: Update.
51353         * modules/mbscasestr (Depends-on): Update.
51354         * lib/mbscasestr.c: Update.
51355         * modules/mbsstr (Depends-on): Update.
51356         * lib/mbsstr.c: Update.
51357         * modules/setenv (Depends-on): Update.
51358         * lib/setenv.c: Update.
51359         * modules/strcasestr (Depends-on): Update.
51360         * lib/strcasestr.c: Update.
51361         * modules/striconveha (Depends-on): Update.
51362         * lib/striconveha.c: Update.
51363         * modules/relocatable-prog-wrapper (Files): Update.
51364         * lib/relocwrapper.c: Update.
51365         * build-aux/install-reloc: Update.
51366         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51367
51368 2007-06-08  Bruno Haible  <bruno@clisp.org>
51369
51370         Port to uClibc.
51371         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51372         * lib/fpurge.c (fpurge): Likewise.
51373         * lib/freading.c (freading): Likewise.
51374         * lib/fseeko.c (rpl_fseeko): Likewise.
51375         * lib/fseterr.c (fseterr): Likewise.
51376         * lib/fwriting.c (fwriting): Likewise.
51377         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51378
51379 2007-06-08  Bruno Haible  <bruno@clisp.org>
51380
51381         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51382         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51383         * modules/gettext (Files): Add m4/intlmacosx.m4.
51384
51385 2007-06-07  Bruno Haible  <bruno@clisp.org>
51386
51387         * modules/localename-tests: New file.
51388         * tests/test-localename.c: New file.
51389
51390         New module 'localename'.
51391         * lib/localename.h: New file.
51392         * lib/localename.c: New file, from GNU gettext.
51393         * m4/localename.m4: New file.
51394         * modules/localename: New file.
51395
51396 2007-06-07  Bruno Haible  <bruno@clisp.org>
51397
51398         Work around the lack of <wchar.h> on some builds of uClibc.
51399         * doc/headers/wchar.texi: Update.
51400         * lib/wchar_.h: Include <wchar.h> only if it exists.
51401         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51402         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51403         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51404         doesn't exist.
51405         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51406         * modules/mbfile (Depends-on): Add wchar.
51407         * modules/mbiter (Depends-on): Likewise.
51408         * modules/mbuiter (Depends-on): Likewise.
51409         Reported by Simon Josefsson.
51410
51411 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51412
51413         Work around problem reported by Steven M. Schweda in
51414         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51415         Tru64 5.1B with the Compaq compiler environment installed declares
51416         an 'isblank' function but does not define it in the C library.
51417         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51418         * lib/regex_internal.h (isblank): Likewise.
51419         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51420         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51421
51422 2007-06-05  Bruno Haible  <bruno@clisp.org>
51423
51424         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51425         ia64.
51426         * modules/printf-safe: New file.
51427         * modules/fprintf-posix (Depends-on): Add printf-safe.
51428         * modules/printf-posix (Depends-on): Likewise.
51429         * modules/snprintf-posix (Depends-on): Likewise.
51430         * modules/sprintf-posix (Depends-on): Likewise.
51431         * modules/vasnprintf-posix (Depends-on): Likewise.
51432         * modules/vasprintf-posix (Depends-on): Likewise.
51433         * modules/vfprintf-posix (Depends-on): Likewise.
51434         * modules/vprintf-posix (Depends-on): Likewise.
51435         * modules/vsnprintf-posix (Depends-on): Likewise.
51436         * modules/vsprintf-posix (Depends-on): Likewise.
51437         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51438         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51439         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51440         "no" on i386, x86_64, ia64.
51441         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51442         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51443         on i386, x86_64, ia64.
51444         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51445         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51446         on i386, x86_64, ia64.
51447         * tests/test-vasnprintf-posix.c: Include float.h.
51448         (LDBL80_WORDS): New macro.
51449         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51450         on i386, x86_64, ia64.
51451         * tests/test-vasprintf-posix.c: Include float.h.
51452         (LDBL80_WORDS): New macro.
51453         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51454         on i386, x86_64, ia64.
51455         * tests/test-snprintf-posix.c: Include float.h.
51456         * tests/test-sprintf-posix.c: Likewise.
51457         * tests/test-vsnprintf-posix.c: Likewise.
51458         * tests/test-vsprintf-posix.c: Likewise.
51459
51460 2007-06-05  Bruno Haible  <bruno@clisp.org>
51461
51462         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51463         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51464         non-IEEE numbers on i386, x86_64, ia64.
51465         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51466         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51467         * tests/test-isnanl.h: Include float.h.
51468         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51469
51470 2007-06-05  Bruno Haible  <bruno@clisp.org>
51471
51472         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51473         also the %a / %A. Handle the %a / %A code before this extra handling.
51474
51475 2007-06-05  Bruno Haible  <bruno@clisp.org>
51476
51477         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51478         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51479
51480 2007-06-05  Bruno Haible  <bruno@clisp.org>
51481
51482         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51483         typo in variable name.
51484
51485 2007-06-05  Eric Blake  <ebb9@byu.net>
51486
51487         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51488         Reported by Simon Josefsson.
51489
51490 2007-06-04  Bruno Haible  <bruno@clisp.org>
51491
51492         Avoid test failures on some PowerPC platforms.
51493         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51494         Define differently for PowerPC.
51495         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51496         Reported by Gary V. Vaughan <gary@gnu.org>.
51497
51498 2007-06-02  Bruno Haible  <bruno@clisp.org>
51499
51500         Fix test-stdint failure on FreeBSD/ia64.
51501         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51502         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51503         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51504         * doc/headers/stdint.texi: Update.
51505
51506 2007-06-01  Bruno Haible  <bruno@clisp.org>
51507
51508         * tests/test-binary-io.c (main): Pass a third argument to open().
51509         Reported by Gary V. Vaughan <gary@gnu.org>.
51510
51511 2007-06-01  Bruno Haible  <bruno@clisp.org>
51512
51513         * doc/functions/frexpl.texi: Update for mingw.
51514
51515 2007-06-01  Bruno Haible  <bruno@clisp.org>
51516
51517         * tests/test-lseek.c (main): Disable test of errno for invalid third
51518         argument.
51519         * doc/functions/lseek.texi: Update.
51520         Reported by Gary V. Vaughan <gary@gnu.org>.
51521
51522 2007-05-28  Bruno Haible  <bruno@clisp.org>
51523
51524         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51525
51526 2007-05-31  Eric Blake  <ebb9@byu.net>
51527
51528         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51529         cross compiling.
51530
51531 2007-05-30  Eric Blake  <ebb9@byu.net>
51532         and Bruno Haible  <bruno@clisp.org>
51533
51534         Work around mingw test failures exposed by m4-1.4.9b.
51535         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51536         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51537         moment.
51538
51539 2007-05-30  Bruno Haible  <bruno@clisp.org>
51540
51541         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51542         assuming that they are closed. Needed on HP-UX 11.
51543
51544 2007-05-29  Bruno Haible  <bruno@clisp.org>
51545
51546         Fix a problem with #include_next.
51547         * lib/dirent_.h: Split the double-inclusion guard.
51548         * lib/fcntl_.h: Likewise.
51549         * lib/float_.h: Likewise.
51550         * lib/iconv_.h: Likewise.
51551         * lib/inttypes_.h: Likewise.
51552         * lib/locale_.h: Likewise.
51553         * lib/math_.h: Likewise.
51554         * lib/netinet_in_.h: Likewise.
51555         * lib/search_.h: Likewise.
51556         * lib/signal_.h: Likewise.
51557         * lib/stdint_.h: Likewise.
51558         * lib/stdio_.h: Likewise.
51559         * lib/stdlib_.h: Likewise.
51560         * lib/string_.h: Likewise.
51561         * lib/sys_select_.h: Likewise.
51562         * lib/sys_socket_.h: Likewise.
51563         * lib/sys_stat_.h: Likewise.
51564         * lib/sys_time_.h: Likewise.
51565         * lib/sysexits_.h: Likewise.
51566         * lib/time_.h: Likewise.
51567         * lib/unistd_.h: Likewise.
51568         * lib/wchar_.h: Likewise.
51569         * lib/wctype_.h: Likewise.
51570
51571 2007-05-29  Bruno Haible  <bruno@clisp.org>
51572
51573         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51574         for the moment.
51575
51576 2007-05-29  Bruno Haible  <bruno@clisp.org>
51577
51578         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51579         invocation.
51580         Reported by Eric Blake.
51581
51582 2007-05-29  Bruno Haible  <bruno@clisp.org>
51583
51584         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51585         compiling case.
51586
51587 2007-05-29  Eric Blake  <ebb9@byu.net>
51588             Bruno Haible  <bruno@clisp.org>
51589
51590         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51591         cross compiles.
51592
51593 2007-05-28  Eric Blake  <ebb9@byu.net>
51594
51595         * modules/closein-tests (test_closein_LDADD): Support test on
51596         cygwin with libtool.
51597
51598 2007-05-28  Bruno Haible  <bruno@clisp.org>
51599
51600         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51601         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51602         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51603         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51604         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51605         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51606         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51607         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51608         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51609
51610 2007-05-28  Eric Blake  <ebb9@byu.net>
51611
51612         Unconditionally include <config.h> in unit tests.
51613         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51614         * tests/test-allocsa.c, tests/test-arcfour.c,
51615         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51616         tests/test-array_list.c, tests/test-array_oset.c,
51617         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51618         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51619         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51620         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51621         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51622         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51623         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51624         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51625         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51626         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51627         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51628         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51629         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51630         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51631         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51632         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51633         test-md5.c, test-memmem.c, test-printf-posix.c,
51634         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51635         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51636         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51637         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51638         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51639         test-vasnprintf-posix2.c, test-vasnprintf.c,
51640         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51641         test-vfprintf-posix.c, test-vprintf-posix.c,
51642         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51643         test-xvasprintf.c: Likewise.
51644
51645 2007-05-28  Bruno Haible  <bruno@clisp.org>
51646
51647         * gnulib-tool (func_import): Remember the --with-tests command-line
51648         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51649         Reported by Eric Blake.
51650
51651 2007-05-28  Bruno Haible  <bruno@clisp.org>
51652
51653         * modules/ftell-tests: New file.
51654         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51655         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51656
51657         * lib/ftell.c: New file.
51658         * modules/ftell: New file.
51659         * m4/ftell.m4: New file.
51660         * doc/functions/ftell.texi: Update.
51661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51662         REPLACE_FTELL.
51663         * lib/stdio_.h (rpl_ftell): New declaration.
51664         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51665         REPLACE_FTELL.
51666
51667 2007-05-28  Eric Blake  <ebb9@byu.net>
51668
51669         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51670
51671 2007-05-28  Bruno Haible  <bruno@clisp.org>
51672
51673         * modules/fseek-tests: New file.
51674         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51675         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51676
51677         * lib/fseek.c: New file.
51678         * modules/fseek: New file.
51679         * m4/fseek.m4: New file.
51680         * doc/functions/fseek.texi: Update.
51681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51682         REPLACE_FSEEK.
51683         * lib/stdio_.h (rpl_fseek): New declaration.
51684         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51685         REPLACE_FSEEK.
51686
51687 2007-05-28  Bruno Haible  <bruno@clisp.org>
51688
51689         * lib/stdio_.h (fflush): More comments.
51690
51691 2007-05-28  Bruno Haible  <bruno@clisp.org>
51692
51693         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51694         runtime test.
51695
51696 2007-05-28  Eric Blake  <ebb9@byu.net>
51697
51698         Improve lseek module.
51699         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51700         * lib/unistd_.h (lseek): Scale back link warning message.
51701         * tests/test-lseek.c: Beef up test.
51702         * tests/test-lseek.sh: Exercise more facets of lseek.
51703         Reported by Bruno Haible.
51704
51705 2007-05-28  Bruno Haible  <bruno@clisp.org>
51706
51707         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51708         to define.
51709
51710 2007-05-27  Bruno Haible  <bruno@clisp.org>
51711
51712         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51713
51714 2007-05-27  Bruno Haible  <bruno@clisp.org>
51715
51716         * modules/openmp: New file.
51717         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51718         Noah Misch.
51719
51720 2007-05-26  Bruno Haible  <bruno@clisp.org>
51721
51722         * modules/chdir-long (Depends-on): Add fchdir.
51723         * modules/chdir-safer (Depends-on): Likewise.
51724         * modules/fts (Depends-on): Likewise.
51725         * modules/fts-lgpl (Depends-on): Likewise.
51726         * modules/openat (Depends-on): Likewise.
51727         * modules/savewd (Depends-on): Likewise.
51728
51729 2007-05-24  Eric Blake  <ebb9@byu.net>
51730
51731         Fix lseek on mingw.
51732         * modules/lseek: New module.
51733         * m4/lseek.m4: New file.
51734         * lib/lseek.c: New file.
51735         * modules/lseek-tests: New file.
51736         * tests/test-lseek.c: New file.
51737         * tests/test-lseek.sh: New file.
51738         * MODULES.html.sh: Document lseek module.
51739         * modules/fflush (Depends-on): Add lseek, fseeko.
51740         * modules/fseeko (Depends-on): Likewise.
51741         * modules/ftello (Depends-on): Likewise.
51742         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51743         broken.
51744         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51745         broken.
51746         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51747         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51748         * lib/ftello.c (rpl_ftello): Likewise.
51749         * tests/test-fseeko.c (main): Test this.
51750         * tests/test-fseeko.sh: Likewise.
51751         * tests/test-ftello.c (main): Likewise.
51752         * tests/test-ftello.sh: Likewise.
51753         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51754         implies replacing fseek.
51755         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51756         HAVE_FTELLO.
51757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51758         * modules/unistd (Makefile.am): Likewise.
51759         * lib/unistd_.h (lseek): Declare a replacement.
51760         * doc/functions/lseek.texi (lseek): Document this fix.
51761         * doc/functions/fseek.texi (fseek): Likewise.
51762         * doc/functions/ftell.texi (ftell): Likewise.
51763
51764 2007-05-24  Bruno Haible  <bruno@clisp.org>
51765
51766         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
51767         in the printed representation of a NaN.
51768         * tests/test-vasprintf-posix.c (test_function): Likewise.
51769         * tests/test-snprintf-posix.h (test_function): Likewise.
51770         * tests/test-sprintf-posix.h (test_function): Likewise.
51771         Reported by Eric Blake.
51772
51773 2007-05-23  Eric Blake  <ebb9@byu.net>
51774
51775         Fix fseeko/ftello on cygwin 1.5.24.
51776         * doc/functions/fseeko.texi (fseeko): Document the fix.
51777         * doc/functions/ftello.texi (ftello): Document the fix.
51778         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
51779         * doc/functions/stdout.text (stdout): New file.
51780         * doc/functions/stderr.text (stderr): New file.
51781         * doc/gnulib.texi (Function Substitutes): Use new files.
51782         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
51783         prior to 1.7.0.
51784         * tests/test-ftello.c (main): Likewise for ftello.
51785         * tests/test-fseeko.sh: New file.
51786         * tests/test-ftello.sh: New file.
51787         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
51788         with seekable stdin.
51789         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
51790         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
51791         (gl_REPLACE_FSEEKO): New macro.
51792         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
51793         * modules/fseeko (Files): Distribute fseeko.c.
51794         * modules/ftello (Files): Distribute ftello.c.
51795         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
51796         mode.
51797         * lib/ftello.c (rpl_ftello): New file.
51798         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
51799         fseeko, ftello.
51800         (gl_STDIN_LARGE_OFFSET): New macro.
51801         * modules/stdio (Makefile.am): Perform the replacement.
51802         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
51803
51804 2007-05-23  Bruno Haible  <bruno@clisp.org>
51805
51806         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
51807         GNULIB_POSIXCHECK is defined.
51808
51809 2007-05-21  Bruno Haible  <bruno@clisp.org>
51810
51811         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
51812         Check also the output for NaN arguments. When cross-compiling, guess
51813         no on IRIX.
51814         * lib/vasnprintf.c: Update comments.
51815         * tests/test-vasnprintf-posix.c (strisnan): New function.
51816         (test_function): Use it.
51817         * tests/test-vasprintf-posix.c (strisnan): New function.
51818         (test_function): Use it.
51819         * tests/test-snprintf-posix.h (strisnan): New function.
51820         (test_function): Use it.
51821         * tests/test-sprintf-posix.h (strisnan): New function.
51822         (test_function): Use it.
51823         Reported by Eric Blake.
51824
51825 2007-05-20  Bruno Haible  <bruno@clisp.org>
51826
51827         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
51828         numbers that fails on BeOS.
51829         * doc/functions/frexpl.texi: Update.
51830
51831 2007-05-20  Jim Meyering  <jim@meyering.net>
51832
51833         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
51834         forced upon us by glibc-2.6.
51835
51836 2007-05-20  Bruno Haible  <bruno@clisp.org>
51837
51838         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
51839         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
51840         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
51841         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
51842         NEED_PRINTF_INFINITE.
51843         (is_infinitel): New function.
51844         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
51845         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
51846         gl_PREREQ_VASNPRINTF_INFINITE.
51847         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
51848         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51849         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
51850         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
51851         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
51852         gl_PREREQ_VASNPRINTF_INFINITE.
51853         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51854         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51855         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51856         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51857         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51858         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51859         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51860         * doc/functions/fprintf.texi: Update.
51861         * doc/functions/printf.texi: Update.
51862         * doc/functions/snprintf.texi: Update.
51863         * doc/functions/sprintf.texi: Update.
51864         * doc/functions/vfprintf.texi: Update.
51865         * doc/functions/vprintf.texi: Update.
51866         * doc/functions/vsnprintf.texi: Update.
51867         * doc/functions/vsprintf.texi: Update.
51868
51869 2007-05-20  Bruno Haible  <bruno@clisp.org>
51870
51871         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
51872         was not found in libc.
51873         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51874
51875 2007-05-20  Bruno Haible  <bruno@clisp.org>
51876
51877         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51878         printed as "-nan" instead of "nan".
51879         * tests/test-vasprintf-posix.c (test_function): Likewise.
51880         * tests/test-snprintf-posix.h (test_function): Likewise.
51881         * tests/test-sprintf-posix.h (test_function): Likewise.
51882         Needed for HP-UX 11.
51883
51884 2007-05-20  Jim Meyering  <jim@meyering.net>
51885
51886         Fix buggy test for the fchownat-deref bug.
51887         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
51888         symlink required for the run-test.  Without it, this test would
51889         always declare that fchownat doesn't work, and client code would
51890         unnecessarily use the replacement function with fixed libc.
51891         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
51892         Reported by Greg Schafer.
51893
51894 2007-05-19  Bruno Haible  <bruno@clisp.org>
51895
51896         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
51897         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
51898         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
51899         Needed for IRIX 6.5 and Solaris 2.5.1.
51900
51901 2007-05-19  Bruno Haible  <bruno@clisp.org>
51902
51903         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
51904         (test_function): Skip tests involving -0.0 on platforms where
51905         -0.0 = 0.0.
51906         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
51907         (test_function): Skip tests involving -0.0 on platforms where
51908         -0.0 = 0.0.
51909         * tests/test-snprintf-posix.h (have_minus_zero): New function.
51910         (test_function): Skip tests involving -0.0 on platforms where
51911         -0.0 = 0.0.
51912         * tests/test-sprintf-posix.h (have_minus_zero): New function.
51913         (test_function): Skip tests involving -0.0 on platforms where
51914         -0.0 = 0.0.
51915         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
51916         tests.
51917         * tests/test-printf-posix.h (test_function): Likewise.
51918         * tests/test-printf-posix.output: Remove all -0.0 related results.
51919         Needed for IRIX 6.5.
51920
51921 2007-05-19  Bruno Haible  <bruno@clisp.org>
51922
51923         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51924         printed as "nan0x7fffffff" instead of "nan".
51925         * tests/test-vasprintf-posix.c (test_function): Likewise.
51926         * tests/test-snprintf-posix.h (test_function): Likewise.
51927         * tests/test-sprintf-posix.h (test_function): Likewise.
51928         * tests/test-fprintf-posix.h (NaN): Remove macro.
51929         (test_function): Remove all NaN related tests.
51930         * tests/test-printf-posix.h (NaN): Remove macro.
51931         (test_function): Remove all NaN related tests.
51932         * tests/test-printf-posix.output: Remove all NaN related results.
51933         Needed for IRIX 6.5.
51934
51935 2007-05-19  Bruno Haible  <bruno@clisp.org>
51936
51937         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
51938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51939
51940 2007-05-19  Bruno Haible  <bruno@clisp.org>
51941
51942         * lib/float_.h: New file.
51943         * m4/float_h.m4: New file.
51944         * modules/float: New file.
51945         * modules/isnanl (Dependencies): Add float.
51946         * modules/isnanl-nolibm (Dependencies): Likewise.
51947         * modules/mathl (Dependencies): Likewise.
51948         * modules/printf-frexpl (Dependencies): Likewise.
51949         * modules/signbit (Dependencies): Likewise.
51950         * modules/vasnprintf (Dependencies): Likewise.
51951         * doc/headers/float.texi: Update.
51952
51953 2007-05-19  Jim Meyering  <jim@meyering.net>
51954
51955         * lib/utimens.c (gl_futimens): Rename from futimens,
51956         now that glibc-2.6 declares futimens.
51957         * lib/utimens.h: Likewise.
51958
51959 2007-05-19  Bruno Haible  <bruno@clisp.org>
51960
51961         Avoid test failures on mingw.
51962         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51963         * tests/test-printf-posix.sh: Likewise.
51964         * tests/test-vfprintf-posix.sh: Likewise.
51965         * tests/test-vprintf-posix.sh: Likewise.
51966
51967 2007-05-19  Bruno Haible  <bruno@clisp.org>
51968
51969         Fix *printf result for NaN, Inf, -0.0 on mingw.
51970         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51971         * lib/vasnprintf.c: Include math.h and isnan.h.
51972         (is_infinite_or_zero): New function.
51973         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51974         values in the %f, %F, %e, %E, %g, %G directives.
51975         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51976         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51977         gl_PRINTF_INFINITE and test its result. Invoke
51978         gl_PREREQ_VASNPRINTF_INFINITE.
51979         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51980         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51981         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51982         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51983         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51984         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51985         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51986         * doc/functions/fprintf.texi: Update.
51987         * doc/functions/printf.texi: Update.
51988         * doc/functions/snprintf.texi: Update.
51989         * doc/functions/sprintf.texi: Update.
51990         * doc/functions/vfprintf.texi: Update.
51991         * doc/functions/vprintf.texi: Update.
51992         * doc/functions/vsnprintf.texi: Update.
51993         * doc/functions/vsprintf.texi: Update.
51994
51995 2007-05-19  Bruno Haible  <bruno@clisp.org>
51996
51997         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
51998         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
51999         Instead of multiplying with 10^k, set extra_zeroes to k.
52000         (scale10_round_long_double): Remove function.
52001
52002 2007-05-18  Bruno Haible  <bruno@clisp.org>
52003
52004         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
52005         introduced on 2007-05-06.
52006
52007 2007-05-18  Bruno Haible  <bruno@clisp.org>
52008
52009         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
52010         %g directives.
52011         * tests/test-vasprintf-posix.c (test_function): Likewise.
52012         * tests/test-snprintf-posix.h (test_function): Likewise.
52013         * tests/test-sprintf-posix.h (test_function): Likewise.
52014
52015 2007-05-18  Bruno Haible  <bruno@clisp.org>
52016
52017         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
52018         (strmatch): New function.
52019         (test_function): Test the %f directive on numbers of various exponents.
52020         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
52021         (strmatch): New function.
52022         (test_function): Test the %f directive on numbers of various exponents.
52023         * tests/test-snprintf-posix.h (strmatch): New function.
52024         (test_function): Test the %f directive on numbers of various exponents.
52025         * tests/test-sprintf-posix.h (strmatch): New function.
52026         (test_function): Test the %f directive on numbers of various exponents.
52027         * tests/test-snprintf-posix.c (SIZEOF): New macro.
52028         * tests/test-sprintf-posix.c (SIZEOF): New macro.
52029         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
52030         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
52031
52032 2007-05-18  Bruno Haible  <bruno@clisp.org>
52033
52034         Add support for 'long double' number output.
52035         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
52036         * lib/vasnprintf.c: Include math.h and float+.h.
52037         (mp_limb_t): New type.
52038         (GMP_LIMB_BITS): New macro.
52039         (mp_twolimb_t): New type.
52040         (GMP_TWOLIMB_BITS): New macro.
52041         (mpn_t): New type.
52042         (multiply, divide, convert_to_decimal, decode_long_double,
52043         scale10_round_long_double, scale10_round_decimal_long_double,
52044         floorlog10l): New functions.
52045         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
52046         for the %f, %F, %e, %E, %g, %G directives.
52047         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
52048         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52049         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52050         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52051         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52052         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52053         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52054         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52055         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52056         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52057         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52058         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
52059         * modules/snprintf-posix (Depends-on): Likewise.
52060         * modules/sprintf-posix (Depends-on): Likewise.
52061         * modules/vasnprintf-posix (Depends-on): Likewise.
52062         * modules/vasprintf-posix (Depends-on): Likewise.
52063         * modules/vfprintf-posix (Depends-on): Likewise.
52064         * modules/vsnprintf-posix (Depends-on): Likewise.
52065         * modules/vsprintf-posix (Depends-on): Likewise.
52066         * modules/vasnprintf (Files): Add lib/float+.h.
52067         * doc/functions/fprintf.texi: Update.
52068         * doc/functions/printf.texi: Update.
52069         * doc/functions/snprintf.texi: Update.
52070         * doc/functions/sprintf.texi: Update.
52071         * doc/functions/vfprintf.texi: Update.
52072         * doc/functions/vprintf.texi: Update.
52073         * doc/functions/vsnprintf.texi: Update.
52074         * doc/functions/vsprintf.texi: Update.
52075
52076 2007-05-18  Bruno Haible  <bruno@clisp.org>
52077
52078         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
52079
52080 2007-05-18  Bruno Haible  <bruno@clisp.org>
52081
52082         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
52083         for printing 64-bit integers. Needed for mingw.
52084
52085 2007-05-18  Bruno Haible  <bruno@clisp.org>
52086
52087         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52088         gl_FUNC_FREXPL_WORKS.
52089         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52090
52091 2007-05-18  Bruno Haible  <bruno@clisp.org>
52092
52093         * modules/frexpl-nolibm-tests: New file.
52094
52095         * modules/frexpl-nolibm: New file.
52096         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52097
52098 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52099
52100         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52101         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52102         GCC 4.2, which otherwise issues a lot of warnings.
52103         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52104         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52105         Likewise.
52106         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52107         * modules/iconv_open (iconv.h): Likewise.
52108         * modules/locale (locale.h): Likewise.
52109         * modules/netinet_in (netinet/in.h): Likewise.
52110         * modules/sys_select (sys_select.h): Likewise.
52111         * modules/sys_socket (sys/socket.h): Likewise.
52112         * modules/sys_stat (sys/stat.h): Likewise.
52113         * modules/sysexits (sysexits.h): Likewise.
52114         * modules/unistd (unistd.h): Likewise.
52115
52116 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52117
52118         * modules/closein-tests (Makefile.am): Distribute
52119         `test-closein.sh'.
52120
52121 2007-05-17  Bruno Haible  <bruno@clisp.org>
52122
52123         * tests/test-printf-posix.output: Renamed from
52124         tests/test-fprintf-posix.out.
52125         * modules/fprintf-posix-tests: Update.
52126         * modules/printf-posix-tests: Update.
52127         * modules/vfprintf-posix-tests: Update.
52128         * modules/vprintf-posix-tests: Update.
52129         * tests/test-fprintf-posix.sh: Update.
52130         * tests/test-printf-posix.sh: Update.
52131         * tests/test-vfprintf-posix.sh: Update.
52132         * tests/test-vprintf-posix.sh: Update.
52133         Reported by Ralf Wildenhues.
52134
52135 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52136
52137         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
52138         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52139         GCC 4.2, which otherwise issues a lot of warnings.
52140         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52141         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52142         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52143         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52144         it should no longer be needed.
52145         * lib/string_.h: Likewise.
52146         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52147         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52148         * modules/inttypes (inttypes.h): Likewise.
52149         * modules/math (math.h): Likewise.
52150         * modules/search (search.h): Likewise.
52151         * modules/signal (signal.h): Likewise.
52152         * modules/stdint (stdint.h): Likewise.
52153         * modules/stdio (stdio.h): Likewise.
52154         * modules/stdlib (stdlib.h): Likewise.
52155         * modules/string (string.h): Likewise.
52156         * modules/sys_time (sys/time.h): Likewise.
52157         * modules/time (time.h): Likewise.
52158         * modules/wchar (wchar.h): Likewise.
52159         * modules/wctype (wtype.h): Likewise.
52160
52161 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52162
52163         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52164
52165 2007-05-13  Bruno Haible  <bruno@clisp.org>
52166
52167         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52168         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52169         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52170         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52171         (gl_PREREQ_STRTOK_R): Don't require it here.
52172
52173 2007-05-13  Bruno Haible  <bruno@clisp.org>
52174
52175         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52176         when used in C++ mode.
52177
52178 2007-05-12  Bruno Haible  <bruno@clisp.org>
52179
52180         * lib/linebuffer.h: Tweak doc.
52181         * lib/linebuffer.c: Likewise.
52182
52183 2007-05-12  James Youngman  <jay@gnu.org>
52184
52185         * lib/linebuffer.c (readlinebuffer_delim): New function,
52186         like readlinebuffer, but use a caller-specified delimiter.
52187         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52188         as the delimiter.
52189         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52190
52191 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52192
52193         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52194         * modules/openat (Files): Remove openat-die.c.
52195         (Depends-on): Add openat-die.
52196         * modules/openat-die: New module.
52197
52198 2007-05-06  Bruno Haible  <bruno@clisp.org>
52199
52200         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52201         Update with info about Cygwin.
52202         * doc/functions/fprintf.texi: Update.
52203         * doc/functions/printf.texi: Update.
52204         * doc/functions/snprintf.texi: Update.
52205         * doc/functions/sprintf.texi: Update.
52206         * doc/functions/vfprintf.texi: Update.
52207         * doc/functions/vprintf.texi: Update.
52208         * doc/functions/vsnprintf.texi: Update.
52209         * doc/functions/vsprintf.texi: Update.
52210         Reported by Eric Blake.
52211
52212 2007-05-06  Bruno Haible  <bruno@clisp.org>
52213
52214         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52215         padding ourselves for the floating-point directives.
52216         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52219         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52220         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52221         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52222         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52223         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52224         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52225         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52228         * tests/test-snprintf-posix.h (test_function): Also check the width
52229         and some flags in the %f directive.
52230         * tests/test-sprintf-posix.h (test_function): Likewise.
52231         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52232         * tests/test-vasprintf-posix.c (test_function): Likewise.
52233         * doc/functions/fprintf.texi: Update.
52234         * doc/functions/printf.texi: Update.
52235         * doc/functions/snprintf.texi: Update.
52236         * doc/functions/sprintf.texi: Update.
52237         * doc/functions/vfprintf.texi: Update.
52238         * doc/functions/vprintf.texi: Update.
52239         * doc/functions/vsnprintf.texi: Update.
52240         * doc/functions/vsprintf.texi: Update.
52241
52242 2007-05-06  Bruno Haible  <bruno@clisp.org>
52243
52244         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52245         pass the ' flag character to sprintf or snprintf.
52246         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52248         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52249         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52250         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52251         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52252         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52253         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52254         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52255         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52256         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52257         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52258         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52259         flag.
52260         * tests/test-sprintf-posix.h (test_function): Likewise.
52261         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52262         * tests/test-vasprintf-posix.c (test_function): Likewise.
52263         * doc/functions/fprintf.texi: Update.
52264         * doc/functions/printf.texi: Update.
52265         * doc/functions/snprintf.texi: Update.
52266         * doc/functions/sprintf.texi: Update.
52267         * doc/functions/vfprintf.texi: Update.
52268         * doc/functions/vprintf.texi: Update.
52269         * doc/functions/vsnprintf.texi: Update.
52270         * doc/functions/vsprintf.texi: Update.
52271
52272 2007-05-01  Bruno Haible  <bruno@clisp.org>
52273
52274         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52275
52276 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52277
52278         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52279         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52280
52281 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52282
52283         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52284         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52285         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52286
52287 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52288
52289         * lib/argp-help.c (struct hol_entry): New member `ord'.
52290         (HOL_ENTRY_PTRCMP): Use ord for comparison
52291         (hol_sort): Initialize ord.
52292
52293 2007-05-01  Bruno Haible  <bruno@clisp.org>
52294
52295         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52296         Reported by Eric Blake.
52297         * doc/gnulib.texi (Function Substitutes): Update.
52298
52299 2007-05-01  Bruno Haible  <bruno@clisp.org>
52300
52301         * doc/functions.texi: Remove file, now redundant through
52302         doc/functions/*.texi.
52303
52304 2007-05-01  Bruno Haible  <bruno@clisp.org>
52305
52306         * modules/argp (Depends-on): Add sleep.
52307
52308 2007-05-01  Bruno Haible  <bruno@clisp.org>
52309
52310         * modules/sleep-tests: New file.
52311         * tests/test-sleep.c: New file.
52312
52313         * modules/sleep: New file.
52314         * lib/sleep.c: New file.
52315         * m4/sleep.m4: New file.
52316         * lib/unistd_.h (sleep): New declaration.
52317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52318         HAVE_SLEEP.
52319         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52320         * doc/functions/sleep.texi: Document the sleep module.
52321
52322 2007-05-01  Bruno Haible  <bruno@clisp.org>
52323
52324         * lib/sigprocmask.h: Remove file.
52325         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52326         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52327         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52328         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52329         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52330         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52331         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52332         HAVE_SIGSET_T as a shell variable.
52333         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52334         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52335         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52336         (Depends-on): Add signal. Remove verify.
52337         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52338         (Include): Mention <signal.h> instead of sigprocmask.h.
52339         * NEWS: Mention the change.
52340         * lib/fatal-signal.c: Don't include sigprocmask.h.
52341
52342 2007-05-01  Bruno Haible  <bruno@clisp.org>
52343
52344         * modules/signal: New file.
52345         * lib/signal_.h: New file.
52346         * m4/signal_h.m4: New file.
52347
52348 2007-05-01  Bruno Haible  <bruno@clisp.org>
52349
52350         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52351         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52352         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52353         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52354
52355 2007-05-01  Bruno Haible  <bruno@clisp.org>
52356
52357         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52358         configure time.
52359         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52360         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52361         * modules/sys_stat (Makefile.am): Substitute their values into
52362         sys/stat.h.
52363
52364 2007-05-01  Bruno Haible  <bruno@clisp.org>
52365
52366         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52367         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52368         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52369
52370 2007-05-01  Bruno Haible  <bruno@clisp.org>
52371
52372         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52373         'assert' module here.
52374
52375 2007-05-01  Bruno Haible  <bruno@clisp.org>
52376
52377         * doc/functions/*.texi: New files.
52378         * doc/functions/google-ranking.txt: New file.
52379         * doc/gnulib.texi (Function Substitutes): New chapter.
52380         (ctime, inet_ntoa): Remove sections.
52381         * doc/ctime.texi: Remove file.
52382         * doc/inet_ntoa.texi: Remove file.
52383         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52384         dependencies.
52385         (%.info): New rule, specifying a --reference-limit.
52386
52387 2007-05-01  Bruno Haible  <bruno@clisp.org>
52388
52389         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52390
52391 2007-05-01  Bruno Haible  <bruno@clisp.org>
52392
52393         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52394         the portability of 'mkdir' to mingw systems.
52395
52396 2007-05-01  Bruno Haible  <bruno@clisp.org>
52397
52398         * doc/headers/google-ranking.txt: New file.
52399
52400 2007-04-30  Eric Blake  <ebb9@byu.net>
52401
52402         Prefer fseeko to fseek.
52403         * modules/getpass (Depends-on): Add fseeko.
52404         * lib/getpass.c (getpass): Use fseeko, not fseek.
52405
52406 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52407
52408         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52409         assumes the sorting is stable, while most qsort implementations
52410         are not.  Use argument addresses to ensure they never compare as
52411         equal.
52412
52413         * tests/test-argp-2.sh (usage-indent test): Fix output
52414         (func_compare): Restore diff options
52415         * tests/test-argp.c: Restore #include "progname.h"
52416
52417 2007-04-29  Bruno Haible  <bruno@clisp.org>
52418
52419         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52420         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52421         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52422         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52423         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52424         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52425         (TESTS, check_PROGRAMS): Add test-snprintf.
52426         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52427         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52428         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52429         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52430         assertions that fail on HP-UX, OSF/1, or IRIX.
52431         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52432
52433 2007-04-29  Bruno Haible  <bruno@clisp.org>
52434
52435         * MODULES.html.sh (posix_functions): Remove 'contents'.
52436
52437 2007-04-29  Karl Berry  <karl@gnu.org>
52438
52439         * config/srclist.txt (gendocs_template_min): new entry.
52440
52441 2007-04-29  Bruno Haible  <bruno@clisp.org>
52442
52443         Work around fpurge bug on BSD systems.
52444         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52445         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52446         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52447         fpurge to rpl_fpurge if the system already has this function.
52448         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52449         the case where the system already has this function. Correct invariants
52450         on BSD systems.
52451         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52452         BSD systems.
52453
52454 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52455
52456         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52457         proposed by Sven Verdoolaege.
52458
52459         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52460         options.
52461         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52462         (usage and help tests): Update
52463
52464 2007-04-29  Bruno Haible  <bruno@clisp.org>
52465
52466         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52467         Print more information in case of failure. Disable a test on BeOS.
52468
52469 2007-04-29  Bruno Haible  <bruno@clisp.org>
52470
52471         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52472         This helps debugging on systems on which no gdb is available.
52473
52474 2007-04-29  Bruno Haible  <bruno@clisp.org>
52475
52476         * lib/freading.h: Improve comments.
52477         * lib/fwriting.h: Likewise.
52478         * tests/test-freading.c (main): Don't check freading immediately after
52479         repositioning. Needed for glibc.
52480
52481 2007-04-29  Bruno Haible  <bruno@clisp.org>
52482
52483         * lib/freading.c (freading): Trivial simplification.
52484
52485 2007-04-28  Bruno Haible  <bruno@clisp.org>
52486
52487         * tests/test-fwriting.c (main): Also test the interaction between
52488         fflush and fwriting.
52489         * modules/fwriting-tests (Depends-on): Add fflush.
52490
52491         * tests/test-freading.c (main): Also test the interaction between
52492         fflush and freading.
52493         * modules/freading-tests (Depends-on): Add fflush.
52494
52495 2007-04-28  Bruno Haible  <bruno@clisp.org>
52496
52497         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52498         fseeko and ftello.
52499         Suggested by Eric Blake.
52500
52501 2007-04-28  Jim Meyering  <jim@meyering.net>
52502
52503         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52504         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52505         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52506
52507 2007-04-27  Eric Blake  <ebb9@byu.net>
52508
52509         * doc/headers/assert.texi (assert.h): Document assert module use.
52510
52511 2007-04-27  Bruno Haible  <bruno@clisp.org>
52512
52513         * doc/headers/*.texi: New files.
52514         * doc/gnulib.texi (Header File Substitutes): New chapter.
52515         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52516         dependencies.
52517         (standards.info ,standards.html, standards.dvi): Update dependencies.
52518         (mostlyclean, clean): New targets.
52519
52520 2007-04-27  Bruno Haible  <bruno@clisp.org>
52521
52522         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52523         * modules/sysexits (Files, Makefile.am): Update.
52524
52525         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52526         * modules/sys_socket (Files, Makefile.am): Update.
52527
52528         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52529         * modules/sys_stat (Files, Makefile.am): Update.
52530
52531 2007-04-27  Eric Blake  <ebb9@byu.net>
52532
52533         * lib/freading.h: Improve comments.
52534         * lib/fwriting.h: Likewise.
52535         * lib/fflush.c: Likewise.
52536
52537         Fix closein for mingw.
52538         * modules/closein-tests: Add tests for closein.
52539         * tests/test-closein.c: New file.
52540         * tests/test-closein.sh: Likewise.
52541         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52542         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52543
52544 2007-04-27  Bruno Haible  <bruno@clisp.org>
52545
52546         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52547         version is < 6.
52548         * lib/math_.h [__DECC]: Likewise.
52549         * lib/stdio_.h [__DECC]: Likewise.
52550         * lib/stdlib_.h [__DECC]: Likewise.
52551         * lib/string_.h [__DECC]: Likewise.
52552         * lib/time_.h [__DECC]: Likewise.
52553         * lib/wchar_.h [__DECC]: Likewise.
52554         * lib/wctype_.h [__DECC]: Likewise.
52555
52556 2007-04-27  Bruno Haible  <bruno@clisp.org>
52557
52558         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52559
52560 2007-04-27  Bruno Haible  <bruno@clisp.org>
52561
52562         * lib/fflush.c: Add comments.
52563         * modules/fpurge-tests (Depends-on): Add fflush.
52564         * modules/freadable-tests (Depends-on): Likewise.
52565         * modules/fwritable-tests (Depends-on): Likewise.
52566
52567 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52568
52569         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52570         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52571         Report by Bruno Haible <bruno@clisp.org>.
52572
52573 2007-04-26  Eric Blake  <ebb9@byu.net>
52574
52575         Fix fflush on mingw.
52576         * modules/fflush (Depends-on): Add freading.
52577         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52578         but unread data.
52579
52580 2007-04-26  Eric Blake  <ebb9@byu.net>
52581         and Bruno Haible  <bruno@clisp.org>
52582
52583         Implement freading and fwriting.
52584         * lib/freading.c: New file.
52585         * lib/freading.h: Likewise.
52586         * m4/freading.m4: Likewise.
52587         * modules/freading: Likewise.
52588         * modules/freading-tests: Likewise.
52589         * tests/test-freading.c: Likewise.
52590         * lib/fwriting.c: New file.
52591         * lib/fwriting.h: Likewise.
52592         * m4/fwriting.m4: Likewise.
52593         * modules/fwriting: Likewise.
52594         * modules/fwriting-tests: Likewise.
52595         * tests/test-fwriting.c: Likewise.
52596         * MODULES.html.sh (File stream based Input/Output): Mention them.
52597
52598 2007-04-26  Bruno Haible  <bruno@clisp.org>
52599
52600         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52601         'long' when we assume it.
52602         Suggested by Eric Blake.
52603
52604 2007-04-26  Bruno Haible  <bruno@clisp.org>
52605
52606         Ensure fseeko, ftello are declared on glibc systems.
52607         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52608         * modules/fseeko (configure.ac-early): Likewise.
52609         * modules/ftello (configure.ac-early): Likewise.
52610         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52611         AC_FUNC_FSEEKO for this.
52612         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52613         (gl_CHECK_FSEEKO): Remove macro.
52614
52615 2007-04-26  Bruno Haible  <bruno@clisp.org>
52616
52617         * tests/test-fflush.c (main): Also check the ftell result after
52618         fflush and fseek/fseeko.
52619         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52620         file descriptor position cache in the stream.
52621         * lib/fseeko.c (rpl_fseeko): Likewise.
52622
52623 2007-04-26  Bruno Haible  <bruno@clisp.org>
52624
52625         * modules/fflush-tests (Depends-on): Add fseeko.
52626
52627 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52628             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52629
52630         * lib/argz_.h: ensure error_t definition is obtained in same
52631         mechanism system argz.h would have.
52632         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52633         argz facilities are known bad.  Err on the side of caution if
52634         cross-compiling.
52635
52636 2007-04-25  Eric Blake  <ebb9@byu.net>
52637
52638         * lib/fpurge.c (includes): Use stdlib.h for free.
52639         * tests/test-fflush.c (main): Also test fflush-fseeko.
52640
52641 2007-04-25  Bruno Haible  <bruno@clisp.org>
52642
52643         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52644         * lib/fseeko.c: New file.
52645         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52646         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52647         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52648         gl_FUNC_FSEEKO.
52649         (gl_FUNC_FSEEKO): Invoke it.
52650         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52651         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52652         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52653
52654 2007-04-25  Bruno Haible  <bruno@clisp.org>
52655
52656         * modules/fflush (Depends-on): Add ftello.
52657
52658 2007-04-25  Bruno Haible  <bruno@clisp.org>
52659
52660         * modules/ftello-tests: New file.
52661         * tests/test-ftello.c: New file.
52662
52663         * modules/ftello: New file.
52664         * m4/ftello.m4: New file.
52665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52666         HAVE_FTELLO.
52667         * lib/stdio_.h (ftello): New declaration.
52668         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52669         HAVE_FTELLO.
52670
52671 2007-04-25  Bruno Haible  <bruno@clisp.org>
52672
52673         * modules/fseeko-tests: New file.
52674         * tests/test-fseeko.c: New file.
52675
52676         * modules/fseeko: New file.
52677         * m4/fseeko.m4: New file.
52678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52679         HAVE_FSEEKO.
52680         * lib/stdio_.h (fseeko): New declaration.
52681         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52682         HAVE_FSEEKO.
52683
52684 2007-04-25  Bruno Haible  <bruno@clisp.org>
52685
52686         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52687
52688 2007-04-25  Bruno Haible  <bruno@clisp.org>
52689
52690         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52691         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52692         * tests/test-unistd.c: Likewise.
52693         * tests/test-fcntl.c: Likewise.
52694
52695 2007-04-23  Eric Blake  <ebb9@byu.net>
52696
52697         * lib/fflush.c: Fix missing include.
52698         Reported by Bruno Haible.
52699
52700 2007-04-23  Bruno Haible  <bruno@clisp.org>
52701
52702         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52703         Reported by Eric Blake.
52704
52705 2007-04-23  Bruno Haible  <bruno@clisp.org>
52706
52707         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52708
52709 2007-04-23  Bruno Haible  <bruno@clisp.org>
52710
52711         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52712
52713 2007-04-23  Bruno Haible  <bruno@clisp.org>
52714
52715         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52716         Needed on HP-UX 11.
52717
52718 2007-04-16  Eric Blake  <ebb9@byu.net>
52719
52720         Make fflush rely on fpurge.
52721         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52722         open coding all variants.
52723         * modules/fflush (Depends-on): Add fpurge and unistd.
52724         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52725         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52726
52727         Fix --with-tests compilation on cygwin.
52728         * modules/argmatch-tests (Makefile.am): List gnulib library first
52729         in LDADD.
52730         * modules/argp-tests (Makefile.am): Likewise.
52731         * modules/array-list-tests (Makefile.am): Likewise.
52732         * modules/array-oset-tests (Makefile.am): Likewise.
52733         * modules/avltree-list-tests (Makefile.am): Likewise.
52734         * modules/avltree-oset-tests (Makefile.am): Likewise.
52735         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52736         * modules/carray-list-tests (Makefile.am): Likewise.
52737         * modules/dirname-tests (Makefile.am): Likewise.
52738         * modules/frexp-tests (Makefile.am): Likewise.
52739         * modules/isnanl-tests (Makefile.am): Likewise.
52740         * modules/linked-list-tests (Makefile.am): Likewise.
52741         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52742         * modules/lock-tests (Makefile.am): Likewise.
52743         * modules/rbtree-list-tests (Makefile.am): Likewise.
52744         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52745         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52746         * modules/tls-tests (Makefile.am): Likewise.
52747         * modules/tsearch-tests (Makefile.am): Likewise.
52748         * modules/xvasprintf-tests (Makefile.am): Likewise.
52749
52750         Fix fpurge for cygwin.
52751         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52752         value.
52753         * modules/fpurge-tests (Depends-on): Clean up trash.
52754
52755 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52756
52757         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52758
52759         * m4/autobuild.m4: Re-indent.
52760
52761 2007-04-13  Bruno Haible  <bruno@clisp.org>
52762
52763         * modules/fpurge-tests: New file.
52764         * tests/test-fpurge.c: New file.
52765
52766         * modules/fpurge: New file.
52767         * lib/fpurge.h: New file.
52768         * lib/fpurge.c: New file.
52769         * m4/fpurge.m4: New file.
52770
52771 2007-04-13  Bruno Haible  <bruno@clisp.org>
52772
52773         * modules/fbufmode-tests: New file.
52774         * tests/test-fbufmode.c: New file.
52775
52776         * modules/fbufmode: New file.
52777         * lib/fbufmode.h: New file.
52778         * lib/fbufmode.c: New file.
52779         * m4/fbufmode.m4: New file.
52780
52781 2007-04-13  Bruno Haible  <bruno@clisp.org>
52782
52783         * modules/fwritable-tests: New file.
52784         * tests/test-fwritable.c: New file.
52785
52786         * modules/fwritable: New file.
52787         * lib/fwritable.h: New file.
52788         * lib/fwritable.c: New file.
52789         * m4/fwritable.m4: New file.
52790
52791 2007-04-13  Bruno Haible  <bruno@clisp.org>
52792
52793         * modules/freadable-tests: New file.
52794         * tests/test-freadable.c: New file.
52795
52796         * modules/freadable: New file.
52797         * lib/freadable.h: New file.
52798         * lib/freadable.c: New file.
52799         * m4/freadable.m4: New file.
52800
52801 2007-04-13  Bruno Haible  <bruno@clisp.org>
52802
52803         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
52804         MOSTLYCLEANFILES.
52805
52806 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52807
52808         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
52809         gzip bootstrap.conf to avoid dragging in i18n machinery.
52810         (gnulib_tool_option): Use it.
52811
52812 2007-04-13  Bruno Haible  <bruno@clisp.org>
52813
52814         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
52815         %F directives.
52816         * tests/test-vasprintf-posix.c (test_function): Likewise.
52817         * tests/test-snprintf-posix.h (test_function): Likewise.
52818         * tests/test-sprintf-posix.h (test_function): Likewise.
52819         * tests/test-fprintf-posix.h (test_function): Likewise.
52820         * tests/test-printf-posix.h (test_function): Likewise.
52821         * tests/test-fprintf-posix.out: Likewise.
52822
52823 2007-04-13  Bruno Haible  <bruno@clisp.org>
52824
52825         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
52826         * modules/tls-tests (configure.ac): Likewise.
52827         Reported by Arto C. Nirkko <anirkko@insel.ch>.
52828
52829 2007-04-13  Bruno Haible  <bruno@clisp.org>
52830
52831         * lib/tls.c (glthread_tls_get): Fix return type.
52832         Patch by Arto C. Nirkko <anirkko@insel.ch>.
52833
52834 2007-04-12  Eric Blake  <ebb9@byu.net>
52835
52836         * modules/gettime (Depends-on): Remove gettime.
52837         Reported by Dmitry V. Levin.
52838
52839 2007-04-12  Bruno Haible  <bruno@clisp.org>
52840
52841         * modules/fflush (Include): Mention <stdio.h>.
52842         * modules/strtoimax (Include): Mention <inttypes.h>.
52843         * modules/strtoumax (Include): Likewise.
52844
52845 2007-04-12  Eric Blake  <ebb9@byu.net>
52846
52847         * .cvsignore: New file.
52848         * .gitignore: Likewise.
52849
52850 2007-04-12  Bruno Haible  <bruno@clisp.org>
52851
52852         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
52853         not before, since $(LDADD) often contains libgnu.a.
52854         * modules/striconv-tests (test_striconv_LDADD): Likewise.
52855         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
52856         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
52857         Needed on Cygwin.
52858
52859 2007-04-12  Eric Blake  <ebb9@byu.net>
52860
52861         Work around glibc's failure to flush stdin on fclose.
52862         * lib/closein.c (close_stdin): Flush stdin before closing.
52863
52864         Work around glibc's failure to reset seekable stdin on exit.
52865         * modules/closein: New module.
52866         * lib/closein.c: New file.
52867         * lib/closein.h: Likewise.
52868         * m4/closein.m4: Likewise.
52869         * MODULES.html.sh (File stream based Input/Output): Document it.
52870
52871 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52872
52873         * gnulib-tool: Rename generated 'autobuild' script to
52874         'do-autobuild' in --create-megatestdir output.
52875
52876         * doc/gnulib.texi (Build robot for gnulib): Fix.
52877
52878 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52879
52880         * modules/sysexits (Depends-on): Add absolute-header.
52881
52882 2007-04-12  Eric Blake  <ebb9@byu.net>
52883
52884         No need to preserve errno on success.
52885         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
52886         Reported by Bruno Haible.
52887
52888 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52889
52890         * MODULES.html.sh (Support for maintaining and releasing
52891         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
52892
52893 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52894
52895         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
52896
52897 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52898
52899         * modules/autobuild: New module.
52900
52901         * m4/autobuild.m4: New file.
52902
52903 2007-04-11  Bruno Haible  <bruno@clisp.org>
52904
52905         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
52906         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
52907         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
52908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
52909         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52910         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52911         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52912         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52913         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52914         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52915         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
52916         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52917         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52918         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
52919         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52920         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52921         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
52922         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52923         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52924         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
52925         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52926         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52927         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
52928         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52929         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52930         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
52931         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52932         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52933         Reported by Eric Blake.
52934
52935 2007-04-11  Bruno Haible  <bruno@clisp.org>
52936
52937         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
52938
52939 2007-04-10  Bruno Haible  <bruno@clisp.org>
52940
52941         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
52942         for NaN and Infinity. Needed on FreeBSD 6.1.
52943         * tests/test-vasnprintf-posix.c (test_function): Undo last change
52944         regarding results for "%010a" of Infinity and NaN.
52945         * tests/test-vasprintf-posix.c (test_function): Likewise.
52946         * tests/test-snprintf-posix.h (test_function): Likewise.
52947         * tests/test-sprintf-posix.h (test_function): Likewise.
52948         * tests/test-fprintf-posix.h (test_function): Likewise.
52949         * tests/test-printf-posix.h (test_function): Likewise.
52950         * tests/test-fprintf-posix.out: Likewise.
52951
52952 2007-04-10  Bruno Haible  <bruno@clisp.org>
52953
52954         * modules/locale-tests: New file.
52955         * tests/test-locale.c: New file.
52956
52957         * modules/locale: New file.
52958         * lib/locale_.h: New file.
52959         * m4/locale_h.m4: New file.
52960
52961 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52962             Bruno Haible  <bruno@clisp.org>
52963
52964         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52965         be determined, test for availability of the copysignf, copysign,
52966         copysignl functions.
52967         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52968         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52969         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52970
52971 2007-04-09  Eric Blake  <ebb9@byu.net>
52972
52973         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52974         * modules/stdio (Makefile.am): Support fflush.
52975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52976         * modules/fflush: New file.
52977         * lib/fflush.c: Likewise.
52978         * m4/fflush.m4: Likewise.
52979         * modules/fflush-tests: New test.
52980         * tests/test-fflush.c: Likewise.
52981         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52982
52983 2007-04-06  Bruno Haible  <bruno@clisp.org>
52984
52985         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52986         (VASNPRINTF): Use signbit for faster determination whether to print a
52987         minus sign.
52988         * modules/vasnprintf (Files): Remove lib/float+.h.
52989         * modules/fprintf-posix (Depends-on): Add signbit.
52990         * modules/snprintf-posix (Depends-on): Likewise.
52991         * modules/sprintf-posix (Depends-on): Likewise.
52992         * modules/vasnprintf-posix (Depends-on): Likewise.
52993         * modules/vasprintf-posix (Depends-on): Likewise.
52994         * modules/vfprintf-posix (Depends-on): Likewise.
52995         * modules/vsnprintf-posix (Depends-on): Likewise.
52996         * modules/vsprintf-posix (Depends-on): Likewise.
52997
52998 2007-04-06  Bruno Haible  <bruno@clisp.org>
52999
53000         * tests/test-frexp.c (main): Test also the sign bit of zero results.
53001         * tests/test-frexpl.c (main): Likewise.
53002         * tests/test-ldexpl.c (main): Likewise.
53003         * modules/frexp-tests (Depends-on): Add signbit.
53004         * modules/frexpl-tests (Depdends-on): Likewise.
53005         * modules/ldexpl-tests (Depdends-on): Likewise.
53006
53007 2007-04-06  Bruno Haible  <bruno@clisp.org>
53008
53009         * modules/signbit-tests: New file.
53010         * tests/test-signbit.c: New file.
53011
53012         * modules/signbit: New file.
53013         * lib/signbitf.c: New file.
53014         * lib/signbitd.c: New file.
53015         * lib/signbitl.c: New file.
53016         * m4/signbit.m4: New file.
53017         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
53018         (signbit): New macro.
53019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
53020         REPLACE_SIGNBIT.
53021         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
53022         REPLACE_FREXPL into math.h.
53023
53024 2007-04-06  Bruno Haible  <bruno@clisp.org>
53025
53026         * modules/isnanf-nolibm-tests: New file.
53027         * tests/test-isnanf.c: New file.
53028
53029         * modules/isnanf-nolibm: New file.
53030         * lib/isnanf.h: New file.
53031         * lib/isnanf.c: New file.
53032         * lib/isnan.c: Consider the USE_FLOAT macro.
53033         * m4/isnanf.m4: New file.
53034
53035 2007-04-06  Bruno Haible  <bruno@clisp.org>
53036
53037         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
53038         (Link): New section.
53039
53040         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
53041
53042 2007-04-06  Bruno Haible  <bruno@clisp.org>
53043
53044         Assume the 'long double' type.
53045         * m4/longdouble.m4: Remove file.
53046         * config/srclist.txt: Don't mention longdouble.m4.
53047         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
53048         * lib/float+.h: Likewise.
53049         * lib/frexp.c: Likewise.
53050         * lib/printf-args.h: Likewise.
53051         * lib/printf-args.c: Likewise.
53052         * lib/printf-frexp.c: Likewise.
53053         * lib/printf-parse.c: Likewise.
53054         * lib/vasnprintf.c: Likewise.
53055         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53056         * m4/intl.m4: Likewise.
53057         * m4/isnanl.m4: Likewise.
53058         * m4/printf.m4: Likewise.
53059         * m4/printf-frexpl.m4: Likewise.
53060         * m4/vasnprintf.m4: Likewise.
53061         * modules/allocsa (Files): Remove m4/longdouble.m4.
53062         * modules/gettext (Files): Likewise.
53063         * modules/relocatable-prog-wrapper (Files): Likewise.
53064         * modules/vasnprintf (Files): Likewise.
53065         * modules/isnanl (Files): Likewise.
53066         (Include): Simplify.
53067         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
53068         (Include): Simplify.
53069         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
53070         (Include): Simplify.
53071         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
53072         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53073         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
53074         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53075         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53076         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53077         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
53078         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53079         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53080         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53081         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
53082         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53083         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
53084         * tests/test-isnanl.c: Likewise.
53085         * tests/test-snprintf-posix.h: Likewise.
53086         * tests/test-sprintf-posix.h: Likewise.
53087         * tests/test-vasnprintf-posix.c: Likewise.
53088         * tests/test-vasnprintf-posix2.c: Likewise.
53089         * tests/test-vasprintf-posix.c: Likewise.
53090
53091 2007-04-06  Bruno Haible  <bruno@clisp.org>
53092
53093         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53094         * lib/math_.h [__DECC]: Include the overridden include file through
53095         #include_next, outside the double-inclusion guard.
53096         * lib/stdio_.h [__DECC]: Likewise.
53097         * lib/stdlib_.h [__DECC]: Likewise.
53098         * lib/string_.h [__DECC]: Likewise.
53099         * lib/time_.h [__DECC]: Likewise.
53100         * lib/wchar_.h [__DECC]: Likewise.
53101         * lib/wctype_.h [__DECC]: Likewise.
53102         * lib/inttypes_.h [__DECC]: Likewise.
53103         Reported by Albert Chin <china@thewrittenword.com> in
53104         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53105
53106 2007-04-04  Eric Blake  <ebb9@byu.net>
53107
53108         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53109         1.5.x.
53110
53111 2007-04-04  Bruno Haible  <bruno@clisp.org>
53112
53113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53114         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53115
53116 2007-04-04  Bruno Haible  <bruno@clisp.org>
53117
53118         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53119         results for "%010a" of Infinity and NaN.
53120         * tests/test-vasprintf-posix.c (test_function): Likewise.
53121         * tests/test-snprintf-posix.h (test_function): Likewise.
53122         * tests/test-sprintf-posix.h (test_function): Likewise.
53123         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53124         * tests/test-printf-posix.h (test_function): Likewise.
53125         * tests/test-fprintf-posix.out: Update.
53126         Needed for FreeBSD 6.1.
53127
53128 2007-04-04  Bruno Haible  <bruno@clisp.org>
53129
53130         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53131         directly used by the gnulib modules nor by gnulib-tool.
53132
53133 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53134
53135         * DEPENDENCIES: Give overall description of version dependency
53136         desirability.  Use more-typical names for apps.
53137         Add shell, coreutils, diffutils, grep, tar, gzip.
53138
53139 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53140
53141         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53142
53143 2007-04-04  Karl Berry  <karl@gnu.org>
53144
53145         * MODULES.html.sh (func_module): missing '.
53146
53147 2007-04-03  Bruno Haible  <bruno@clisp.org>
53148
53149         * modules/argmatch-tests (Makefile.am): New variable
53150         test_argmatch_LDADD.
53151         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53152         * modules/array-list-tests (Makefile.am): New variable
53153         test_array_list_LDADD.
53154         * modules/array-oset-tests (Makefile.am): New variable
53155         test_array_oset_LDADD.
53156         * modules/avltree-list-tests (Makefile.am): New variable
53157         test_avltree_list_LDADD.
53158         * modules/avltree-oset-tests (Makefile.am): New variable
53159         test_avltree_oset_LDADD.
53160         * modules/avltreehash-list-tests (Makefile.am): New variable
53161         test_avltreehash_list_LDADD.
53162         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53163         test_canonicalize_lgpl_LDADD.
53164         * modules/carray-list-tests (Makefile.am): New variable
53165         test_carray_list_LDADD.
53166         * modules/dirname-tests (Makefile.am): New variable
53167         test_dirname_LDADD.
53168         * modules/linked-list-tests (Makefile.am): New variable
53169         test_linked_list_LDADD.
53170         * modules/linkedhash-list-tests (Makefile.am): New variable
53171         test_linkedhash_list_LDADD.
53172         * modules/rbtree-list-tests (Makefile.am): New variable
53173         test_rbtree_list_LDADD.
53174         * modules/rbtree-oset-tests (Makefile.am): New variable
53175         test_rbtree_oset_LDADD.
53176         * modules/rbtreehash-list-tests (Makefile.am): New variable
53177         test_rbtreehash_list_LDADD.
53178         * modules/xvasprintf-tests (Makefile.am): New variable
53179         test_xvasprintf_LDADD.
53180         Reported by Eric Blake.
53181
53182 2007-04-03  Eric Blake  <ebb9@byu.net>
53183
53184         * DEPENDENCIES: Weaken m4 requirements.
53185
53186 2007-04-03  Bruno Haible  <bruno@clisp.org>
53187
53188         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53189         * modules/isnanl-tests (configure.ac): Likewise.
53190
53191 2007-04-03  Ben Pfaff  <blp@gnu.org>
53192
53193         * modules/iconv_open: Add $(srcdir)/ to source directory
53194         references in Makefile fragments that call gperf, to fix VPATH
53195         builds.
53196
53197 2007-04-03  Bruno Haible  <bruno@clisp.org>
53198
53199         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53200         * lib/ldexpl.c: Undo last change.
53201
53202 2007-04-03  Bruno Haible  <bruno@clisp.org>
53203
53204         * modules/printf-frexpl (Depends-on): Undo last change.
53205         (Files): Add m4/ldexpl.m4.
53206
53207 2007-04-03  Bruno Haible  <bruno@clisp.org>
53208
53209         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53210         * modules/isnanl (Link): New section.
53211
53212         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53213         * modules/frexp (Link): New section.
53214
53215         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53216         * modules/frexpl (Link): New section.
53217
53218         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53219         * modules/ldexpl (Link): New section.
53220
53221 2007-04-03  Bruno Haible  <bruno@clisp.org>
53222
53223         * modules/TEMPLATE-EXTENDED: New file.
53224         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53225
53226 2007-04-03  Bruno Haible  <bruno@clisp.org>
53227
53228         * DEPENDENCIES: New file.
53229         Suggested by Simon Josefsson.
53230
53231 2007-04-03  Bruno Haible  <bruno@clisp.org>
53232
53233         * doc/gnulib.texi: Escape @.
53234
53235 2007-04-03  James Youngman  <jay@gnu.org>
53236         and Paul Eggert  <eggert@cs.ucla.edu>
53237
53238         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53239         birthtime on all systems that have birthtime, not just those which
53240         use st_birthtimensec rather than st_birthtim.  Putting zero in
53241         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53242         that the birth time is not available for files on an NFS mount.
53243
53244 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53245
53246         * modules/memxor: Move back from crypto/, suggested by Bruno.
53247         * modules/crypto/hmac-sha1: Fix memxor dependency.
53248
53249         * modules/crypto/gc: Moved from ../.
53250
53251 2007-04-02  Eric Blake  <ebb9@byu.net>
53252
53253         * lib/ldexpl.c (includes): Avoid libm.
53254
53255         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53256
53257 2007-04-02  Bruno Haible  <bruno@clisp.org>
53258
53259         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53260         on IRIX.
53261
53262 2007-04-02  Bruno Haible  <bruno@clisp.org>
53263
53264         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53265         x86 or x86_64 platforms running MacOS X.
53266         Reported by Ryan Schmidt <@ryandesign.com>.
53267
53268 2007-04-02  Bruno Haible  <bruno@clisp.org>
53269
53270         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53271         i386.
53272
53273 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53274
53275         * modules/crypto/arcfour: Moved from ../.
53276         * modules/crypto/arcfour-tests: Moved from ../.
53277         * modules/crypto/arctwo: Moved from ../.
53278         * modules/crypto/arctwo-tests: Moved from ../.
53279         * modules/crypto/des: Moved from ../.
53280         * modules/crypto/des-tests: Moved from ../.
53281         * modules/crypto/gc-arcfour: Moved from ../.
53282         * modules/crypto/gc-arcfour-tests: Moved from ../.
53283         * modules/crypto/gc-arctwo: Moved from ../.
53284         * modules/crypto/gc-arctwo-tests: Moved from ../.
53285         * modules/crypto/gc-des: Moved from ../.
53286         * modules/crypto/gc-des-tests: Moved from ../.
53287         * modules/crypto/gc-hmac-md5: Moved from ../.
53288         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53289         * modules/crypto/gc-hmac-sha1: Moved from ../.
53290         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53291         * modules/crypto/gc-md2: Moved from ../.
53292         * modules/crypto/gc-md2-tests: Moved from ../.
53293         * modules/crypto/gc-md4: Moved from ../.
53294         * modules/crypto/gc-md4-tests: Moved from ../.
53295         * modules/crypto/gc-md5: Moved from ../.
53296         * modules/crypto/gc-md5-tests: Moved from ../.
53297         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53298         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53299         * modules/crypto/gc-random: Moved from ../.
53300         * modules/crypto/gc-rijndael: Moved from ../.
53301         * modules/crypto/gc-rijndael-tests: Moved from ../.
53302         * modules/crypto/gc-sha1: Moved from ../.
53303         * modules/crypto/gc-sha1-tests: Moved from ../.
53304         * modules/crypto/gc-tests: Moved from ../.
53305         * modules/crypto/hmac-md5: Moved from ../.
53306         * modules/crypto/hmac-md5-tests: Moved from ../.
53307         * modules/crypto/hmac-sha1: Moved from ../.
53308         * modules/crypto/hmac-sha1-tests: Moved from ../.
53309         * modules/crypto/md2: Moved from ../.
53310         * modules/crypto/md2-tests: Moved from ../.
53311         * modules/crypto/md4: Moved from ../.
53312         * modules/crypto/md4-tests: Moved from ../.
53313         * modules/crypto/md5: Moved from ../.
53314         * modules/crypto/md5-tests: Moved from ../.
53315         * modules/crypto/memxor: Moved from ../.
53316         * modules/crypto/rijndael: Moved from ../.
53317         * modules/crypto/rijndael-tests: Moved from ../.
53318         * modules/crypto/sha1: Moved from ../.
53319
53320 2007-03-30  James Youngman  <jay@gnu.org>
53321
53322         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53323         rename() to change the ctime of a file (because ctime is unaffected
53324         by rename on jfs2 on AIX 5.1).
53325         (main): Start by doing cleanup, in case a previous run failed leaving
53326         test files behind.
53327
53328 2007-03-31  Bruno Haible  <bruno@clisp.org>
53329
53330         Support old proprietary implementations of iconv.
53331         * modules/iconv_open: New file.
53332         * lib/iconv_.h: New file.
53333         * m4/iconv_h.m4: New file.
53334         * lib/iconv_open.c: New file.
53335         * lib/iconv_open-aix.gperf: New file.
53336         * lib/iconv_open-hpux.gperf: New file.
53337         * lib/iconv_open-irix.gperf: New file.
53338         * lib/iconv_open-osf.gperf: New file.
53339         * m4/iconv_open.m4: New file.
53340         * modules/linebreak (Depends-on): Add iconv_open.
53341         * modules/striconv (Depends-on): Likewise.
53342         * modules/striconveh (Depends-on): Likewise.
53343         * modules/unicodeio (Depends-on): Likewise.
53344         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53345         (iconv_t)(-1).
53346         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53347         conversion if cd is (iconv_t)(-1).
53348         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53349         is not possible.
53350
53351 2007-03-31  Bruno Haible  <bruno@clisp.org>
53352
53353         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53354         work on Solaris either. Protect also second use of "autodetect_jp".
53355
53356 2007-03-31  Bruno Haible  <bruno@clisp.org>
53357
53358         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53359         the function is not present.
53360
53361 2007-03-31  Bruno Haible  <bruno@clisp.org>
53362
53363         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53364         the function is not present.
53365
53366 2007-03-31  Bruno Haible  <bruno@clisp.org>
53367
53368         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53369         a bug in HP-UX iconv_open().
53370
53371 2007-03-31  Bruno Haible  <bruno@clisp.org>
53372
53373         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53374         (Mathematics <math.h>): New section, add fpieee.
53375         (Input/output <stdio.h>): Add fseterr.
53376         (Mathematics <math.h>): New section, add printf-frexp.
53377         (Container data structures): Add sublist.
53378         (Core language properties): Add fpucw, inline.
53379         (Functions for greatest-width integer types <inttypes.h>): Add
53380         imaxabs, imaxdiv, inttypes.
53381         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53382         isnanl-nolibm, ldexp.
53383         (Mathematics <math.h>): New section, add printf-frexpl.
53384         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53385         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53386         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53387         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53388         (Unicode string functions): Add unistr/u*-mbtoucr.
53389         (Java): Add javacomp-script, javaexec-script.
53390         (C#): Add csharpcomp-script, csharpexec-script.
53391         (Support for building libraries and executables): Add havelib,
53392         relocatable-*.
53393         (Support for maintaining and releasing projects): Renamed from
53394         'Support for maintaining and release projects'. Add announce-gen.
53395
53396 2007-03-31  Bruno Haible  <bruno@clisp.org>
53397
53398         * README: Talk primarily about git.
53399         (git and CVS): Renamed from CVS.
53400         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53401         gnulib is available through git.
53402         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53403
53404 2007-03-30  Bruno Haible  <bruno@clisp.org>
53405
53406         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53407         * lib/poll_.h: Likewise.
53408         * lib/stat_.h: Likewise.
53409         * lib/sys_time_.h: Likewise.
53410         * lib/sysexit_.h: Likewise.
53411         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53412         * lib/stdbool_.h: Likewise.
53413         * lib/byteswap_.h: Add double-inclusion guard.
53414
53415 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53416
53417         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53418
53419 2007-03-30  Karl Berry  <karl@gnu.org>
53420
53421         * config/srclist-update: double space after USA in the license
53422         substitution, since that's how it's usually (?) written.
53423
53424 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53425
53426         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53427         reported by Bruno Haible.
53428
53429 2007-03-29  Bruno Haible  <bruno@clisp.org>
53430
53431         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53432         a bug in AIX iconv().
53433
53434 2007-03-29  Bruno Haible  <bruno@clisp.org>
53435
53436         * modules/ldexpl-tests: New file.
53437         * tests/test-ldexpl.c: New file.
53438
53439 2007-03-29  Bruno Haible  <bruno@clisp.org>
53440
53441         * lib/ldexpl.c: Include fpucw.h.
53442         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53443         multiplication.
53444         * modules/ldexpl (Depends-on): Add fpucw.
53445
53446 2007-03-29  Bruno Haible  <bruno@clisp.org>
53447
53448         * modules/ldexpl: New file.
53449         * m4/ldexpl.m4: New file.
53450         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53451         set.
53452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53453         REPLACE_LDEXPL.
53454         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53455         REPLACE_LDEXPL.
53456         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53457         gl_FUNC_LDEXPL_WORKS.
53458         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53459         * modules/mathl (Files): Remove lib/ldexpl.c.
53460         (Depends-on): Add ldexpl.
53461
53462 2007-03-29  Bruno Haible  <bruno@clisp.org>
53463
53464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53465
53466 2007-03-29  Bruno Haible  <bruno@clisp.org>
53467
53468         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53469         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53470         and possibly also HP-UX.
53471         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53472         work on AIX, IRIX, HP-UX, OSF/1.
53473         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53474         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53475         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53476         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53477         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53478         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53479
53480 2007-03-29  Bruno Haible  <bruno@clisp.org>
53481
53482         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53483
53484 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53485
53486         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53487         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53488
53489 2007-03-29  Eric Blake  <ebb9@byu.net>
53490
53491         * lib/acl-internal.h: Remove redundant include.
53492         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53493         Cygwin when a file is locked.
53494
53495 2007-03-29  Bruno Haible  <bruno@clisp.org>
53496
53497         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53498         file.
53499         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53500
53501 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53502
53503         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53504         try to remove a parent directory if the child couldn't be removed
53505         (except for the first rmdir, which could fail because the child
53506         doesn't exist).  Problem reported by Jeff Blaine in
53507         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53508
53509 2007-03-28  Bruno Haible  <bruno@clisp.org>
53510
53511         * lib/striconveh.c (utf8conv_carefully): New function.
53512         (mem_cd_iconveh_internal): Invoke it.
53513
53514 2007-03-28  Bruno Haible  <bruno@clisp.org>
53515
53516         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53517         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53518         input.
53519         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53520         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53521         unistr/u8-uctomb.
53522
53523 2007-03-28  Bruno Haible  <bruno@clisp.org>
53524
53525         * modules/unistr/u8-mbtoucr: New file.
53526         * lib/unistr/u8-mbtoucr.c: New file.
53527         * modules/unistr/u16-mbtoucr: New file.
53528         * lib/unistr/u16-mbtoucr.c: New file.
53529         * modules/unistr/u16-mbtoucr: New file.
53530         * lib/unistr/u16-mbtoucr.c: New file.
53531         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53532
53533 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53534             Bruno Haible  <bruno@clisp.org>
53535
53536         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53537         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53538         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53539
53540         * m4/stdio_h.m4: Add stubs for vasprintf too.
53541
53542         * modules/stdio: Support vasprintf in sed command.
53543
53544         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53545         vasprintf.h.  Add stdio module indicator.
53546
53547         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53548         vasprintf.h.
53549
53550         * lib/vasprintf.h: File removed.
53551
53552         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53553         * lib/vasprintf.c: Ditto.
53554         * lib/xvasprintf.c: Ditto.
53555         * tests/test-vasprintf-posix.c: Ditto.
53556         * tests/test-vasprintf.c: Ditto.
53557
53558 2007-03-27  Bruno Haible  <bruno@clisp.org>
53559
53560         Make vasnprintf multithread-safe.
53561         * lib/vasnprintf.c (decimal_point_char): New function.
53562         (VASNPRINTF): Use it.
53563         Suggested by Simon Josefsson.
53564
53565 2007-03-27  Eric Blake  <ebb9@byu.net>
53566
53567         Support sub-second birthtime on cygwin.
53568         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53569         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53570         (get_stat_birthtime): Also work with st_birthtim.
53571
53572 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53573
53574         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53575         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53576         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53577         (get_stat_birthtime_ns): Simplify compile-time tests.
53578         (get_stat_birthtime): Change the API to look like
53579         get_stat_mtime etc., except return a negative tv_nsec on error.
53580         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53581         Don't check for "spare" fields.
53582         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53583         or for struct stat.st_birthtime, as these tests aren't used.
53584         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53585
53586 2007-03-27  Bruno Haible  <bruno@clisp.org>
53587
53588         * lib/stat-time.h: Include <sys/stat.h>.
53589
53590 2007-03-27  James Youngman  <jay@gnu.org>
53591
53592         * lib/stat-time.h (get_stat_birthtime): New function for
53593           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53594         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53595           and its variants.
53596         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53597         * modules/stat-time-test: New file.
53598         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53599
53600 2007-03-26  Bruno Haible  <bruno@clisp.org>
53601
53602         Better support of signalling NaNs.
53603         * lib/atanl.c: Include isnanl.h.
53604         (atanl): Perform test for NaN at the beginning of the function and
53605         through a call to isnanl.
53606         * lib/cosl.c: Include isnanl.h.
53607         (cosl): Perform test for NaN at the beginning of the function and
53608         through a call to isnanl.
53609         * lib/ldexpl.c: Include isnanl.h.
53610         (ldexpl): Perform test for NaN through a call to isnanl.
53611         * lib/logl.c: Include isnanl.h.
53612         (logl): Perform test for NaN at the beginning of the function and
53613         through a call to isnanl.
53614         * lib/sinl.c: Include isnanl.h.
53615         (sinl): Perform test for NaN at the beginning of the function and
53616         through a call to isnanl.
53617         * lib/sqrtl.c: Include isnanl.h.
53618         (sqrtl): Perform test for NaN at the beginning of the function and
53619         through a call to isnanl.
53620         * lib/tanl.c: Include isnanl.h.
53621         (tanl): Perform test for NaN at the beginning of the function and
53622         through a call to isnanl.
53623         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53624         * modules/mathl (Depends-on): Add isnanl.
53625
53626 2007-03-26  Eric Blake  <ebb9@byu.net>
53627
53628         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53629         regression in logic sense of previous patch.
53630
53631 2007-03-26  Bruno Haible  <bruno@clisp.org>
53632
53633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53634         unportable shell command "if ! ...".
53635         Reported by Ralf Wildenhues.
53636
53637 2007-03-25  Bruno Haible  <bruno@clisp.org>
53638
53639         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53640         <sysexits.h> file, and only add EX_CONFIG.
53641         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53642         absolute file name and whether it is sufficient. Substitute also
53643         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53644         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53645         ABSOLUTE_SYSEXITS_H into sysexits.h.
53646
53647 2007-03-25  Bruno Haible  <bruno@clisp.org>
53648
53649         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53650         hints is NULL.
53651
53652 2007-03-25  Bruno Haible  <bruno@clisp.org>
53653
53654         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53655         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53656
53657 2007-03-25  Bruno Haible  <bruno@clisp.org>
53658
53659         * lib/vasnprintf.c: Include langinfo.h.
53660         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53661         multithread-safe.
53662         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53663         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53664         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53665         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53666         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53667         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53668         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53669         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53670         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53671         Reported by Simon Josefsson.
53672
53673 2007-03-25  Bruno Haible  <bruno@clisp.org>
53674
53675         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53676         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53677         * modules/vasnprintf (Depends-on): Add stdint.
53678
53679 2007-03-25  Bruno Haible  <bruno@clisp.org>
53680
53681         * modules/fpieee: New file.
53682         * m4/fpieee.m4: New file.
53683         * modules/isnan-nolibm (Depends-on): Add fpieee.
53684         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53685         * modules/isnanl (Depends-on): Add fpieee.
53686
53687 2007-03-25  Bruno Haible  <bruno@clisp.org>
53688
53689         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53690
53691 2007-03-25  Bruno Haible  <bruno@clisp.org>
53692
53693         Avoid test failures on IRIX 6.5.
53694         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53695         (main): Use it.
53696         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53697         macros.
53698         (main): Use them.
53699
53700 2007-03-25  Bruno Haible  <bruno@clisp.org>
53701
53702         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53703         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53704         exists but doesn't work.
53705         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53706         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53708         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53709         math.h.
53710
53711 2007-03-25  Bruno Haible  <bruno@clisp.org>
53712
53713         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53714         returns inf. Needed on IRIX 6.5.
53715
53716 2007-03-25  Bruno Haible  <bruno@clisp.org>
53717
53718         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53719         (main): Use isnanl instead of x != x idiom.
53720         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53721
53722         * tests/test-frexp.c: Include isnan.h.
53723         (main): Use isnan instead of x != x idiom.
53724         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53725
53726 2007-03-25  Bruno Haible  <bruno@clisp.org>
53727
53728         * tests/test-frexp.c (NaN): New function/macro.
53729         (main): Use it instead of 0.0 / 0.0.
53730         * tests/test-isnan.c (NaN): New function/macro.
53731         (main): Use it instead of 0.0 / 0.0.
53732         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53733         (test_function): Use it instead of 0.0 / 0.0.
53734         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53735         (test_function): Use it instead of 0.0 / 0.0.
53736         * tests/test-snprintf-posix.h (NaN): New function/macro.
53737         (test_function): Use it instead of 0.0 / 0.0.
53738         * tests/test-sprintf-posix.h (NaN): New function/macro.
53739         (test_function): Use it instead of 0.0 / 0.0.
53740         * tests/test-fprintf-posix.h (NaN): New function/macro.
53741         (test_function): Use it instead of 0.0 / 0.0.
53742         * tests/test-printf-posix.h (NaN): New function/macro.
53743         (test_function): Use it instead of 0.0 / 0.0.
53744
53745         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53746
53747 2007-03-25  Bruno Haible  <bruno@clisp.org>
53748
53749         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53750
53751 2007-03-25  Bruno Haible  <bruno@clisp.org>
53752
53753         * lib/regexec.c (merge_state_with_log): Make static.
53754
53755 2007-03-25  Bruno Haible  <bruno@clisp.org>
53756
53757         * lib/trigl.c (kernel_rem_pio2): Make static.
53758
53759 2007-03-25  Bruno Haible  <bruno@clisp.org>
53760
53761         * lib/sincosl.c (sincosl_table): Make static.
53762
53763 2007-03-25  Bruno Haible  <bruno@clisp.org>
53764
53765         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
53766         if the compiler does not support C99.
53767
53768 2007-03-25  Bruno Haible  <bruno@clisp.org>
53769
53770         * modules/time (Makefile.am): Ensure all rule action lines start with a
53771         tab.
53772
53773 2007-03-24  Bruno Haible  <bruno@clisp.org>
53774
53775         * modules/tsearch-tests: New file.
53776         * tests/test-tsearch.sh: New file.
53777         * tests/test-tsearch.c: New file, mostly copied from glibc.
53778
53779         * modules/search-tests: New file.
53780         * tests/test-search.c: New file.
53781
53782         * modules/search: New file.
53783         * lib/search_.h: New file, incorporating lib/tsearch.h.
53784         * m4/search_h.m4: New file.
53785         * lib/tsearch.h: Remove file.
53786         * lib/tsearch.c: Include search.h instead of tsearch.h.
53787         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
53788         HAVE_TSEARCH.
53789         * modules/tsearch (Files): Remove lib/tsearch.h.
53790         (Depends-on): Add search.
53791         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
53792         (Include): Change tsearch.h into search.h.
53793
53794 2007-03-24  Bruno Haible  <bruno@clisp.org>
53795
53796         * modules/fpucw: New file.
53797         * lib/fpucw.h: New file.
53798         * lib/frexp.c: Include fpucw.h.
53799         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53800         (FUNC): Use them.
53801         * lib/printf-frexp.c: Include fpucw.h.
53802         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53803         (FUNC): Use them.
53804         * lib/vasnprintf.c: Include fpucw.h.
53805         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
53806         'long double' calculations.
53807         * tests/test-frexpl.c: Include fpucw.h.
53808         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53809         * tests/test-printf-frexpl.c: Include fpucw.h.
53810         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53811         * modules/frexpl (Depends-on): Add fpucw.
53812         * modules/printf-frexpl (Depends-on): Likewise.
53813         * modules/fprintf-posix (Depends-on): Likewise.
53814         * modules/snprintf-posix (Depends-on): Likewise.
53815         * modules/sprintf-posix (Depends-on): Likewise.
53816         * modules/vasnprintf-posix (Depends-on): Likewise.
53817         * modules/vasprintf-posix (Depends-on): Likewise.
53818         * modules/vfprintf-posix (Depends-on): Likewise.
53819         * modules/vsnprintf-posix (Depends-on): Likewise.
53820         * modules/vsprintf-posix (Depends-on): Likewise.
53821         * modules/frexpl-tests (Depends-on): Likewise.
53822         * modules/printf-frexpl-tests (Depends-on): Likewise.
53823
53824 2007-03-24  Bruno Haible  <bruno@clisp.org>
53825
53826         * lib/float+.h: New file.
53827         * lib/isnan.c: Include float+.h.
53828         (SIZE): New macro.
53829         (FUNC): Compare only SIZE bytes of the value.
53830         * lib/vasnprintf.c: Include float+.h.
53831         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
53832         SIZEOF_LDBL or SIZEOF_DBL bytes.
53833         * modules/isnan-nolibm (Files): Add lib/float+.h.
53834         * modules/isnanl-nolibm (Files): Add lib/float+.h.
53835         * modules/isnanl (Files): Add lib/float+.h.
53836         * modules/vasnprintf (Files): Add lib/float+.h.
53837
53838 2007-03-24  Bruno Haible  <bruno@clisp.org>
53839
53840         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
53841         include isnanl-nolibm.h.
53842
53843 2007-03-24  Bruno Haible  <bruno@clisp.org>
53844
53845         * tests/test-read-file.c (main): Don't produce spurious output for
53846         expected situations. Make the test fail if it encountered unexpected
53847         results.
53848
53849 2007-03-24  Bruno Haible  <bruno@clisp.org>
53850
53851         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
53852         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
53853
53854 2007-03-24  Bruno Haible  <bruno@clisp.org>
53855
53856         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
53857
53858 2007-03-24  Bruno Haible  <bruno@clisp.org>
53859
53860         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
53861         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
53862
53863         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
53864         * modules/utf8-ucs4: Turn into a symbolic link to module
53865         unistr/u8-mbtouc.
53866
53867         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
53868         utf8-ucs4-unsafe.
53869         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
53870         unistr/u8-mbtouc-unsafe.
53871
53872         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
53873         * modules/utf16-ucs4: Turn into a symbolic link to module
53874         unistr/u16-mbtouc.
53875
53876         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
53877         utf16-ucs4-unsafe.
53878         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
53879         unistr/u16-mbtouc-unsafe.
53880
53881         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
53882         * modules/ucs4-utf8: Turn into a symbolic link to module
53883         unistr/u8-ubtomb.
53884
53885         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
53886         * modules/ucs4-utf16: Turn into a symbolic link to module
53887         unistr/u16-ubtomb.
53888
53889 2007-03-24  Bruno Haible  <bruno@clisp.org>
53890
53891         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
53892         Enable the function only if HAVE_INLINE.
53893         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
53894         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53895         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
53896         Enable the function only if HAVE_INLINE.
53897         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
53898         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53899         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
53900         Enable the function only if HAVE_INLINE.
53901         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
53902         Enable the function only if HAVE_INLINE.
53903         * modules/utf8-ucs4: Update.
53904         * modules/utf8-ucs4-unsafe: Update.
53905         * modules/utf16-ucs4: Update.
53906         * modules/utf16-ucs4-unsafe: Update.
53907         * modules/ucs4-utf8: Update.
53908         * modules/ucs4-utf16: Update.
53909
53910 2007-03-24  Bruno Haible  <bruno@clisp.org>
53911
53912         * lib/utf8-ucs4.h: Remove file.
53913         * lib/utf8-ucs4-unsafe.h: Remove file.
53914         * lib/utf16-ucs4.h: Remove file.
53915         * lib/utf16-ucs4-unsafe.h: Remove file.
53916         * lib/ucs4-utf8.h: Remove file.
53917         * lib/ucs4-utf16.h: Remove file.
53918         * lib/unistr.h: Include their previous contents.
53919         * m4/utf-ucs4.m4: Remove file.
53920         * m4/ucs4-utf.m4: Remove file.
53921         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
53922         (Depends-on): Add unistr/base.
53923         (configure.ac): Remove gl_UTF_UCS4.
53924         (Makefile.am): Update.
53925         (Include): Change to unistr.h.
53926         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
53927         (Depends-on): Add unistr/base.
53928         (configure.ac): Remove gl_UTF_UCS4.
53929         (Makefile.am): Update.
53930         (Include): Change to unistr.h.
53931         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
53932         (Depends-on): Add unistr/base.
53933         (configure.ac): Remove gl_UTF_UCS4.
53934         (Makefile.am): Update.
53935         (Include): Change to unistr.h.
53936         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
53937         (Depends-on): Add unistr/base.
53938         (configure.ac): Remove gl_UTF_UCS4.
53939         (Makefile.am): Update.
53940         (Include): Change to unistr.h.
53941         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
53942         (Depends-on): Add unistr/base.
53943         (configure.ac): Remove gl_UCS4_UTF.
53944         (Makefile.am): Update.
53945         (Include): Change to unistr.h.
53946         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
53947         (Depends-on): Add unistr/base.
53948         (configure.ac): Remove gl_UCS4_UTF.
53949         (Makefile.am): Update.
53950         (Include): Change to unistr.h.
53951         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
53952         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
53953         utf8-ucs4-unsafe.h.
53954         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53955         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53956         utf16-ucs4-unsafe.h.
53957         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53958         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53959         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53960         * lib/unistr/u8-strchr.c: Likewise.
53961         * lib/unistr/u8-strrchr.c: Likewise.
53962         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53963         * lib/unistr/u16-strchr.c: Likewise.
53964         * lib/unistr/u16-strrchr.c: Likewise.
53965         * lib/striconveh.c: Update.
53966         * lib/linebreak.c: Update.
53967
53968 2007-03-24  Bruno Haible  <bruno@clisp.org>
53969
53970         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53971         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53972
53973 2007-03-22  Bruno Haible  <bruno@clisp.org>
53974
53975         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53976
53977 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53978
53979         * MODULES.html.sh (File system functions): New module write-any-file.
53980         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53981         * m4/write-any-file.m4: New files.
53982
53983 2007-03-23  Eric Blake  <ebb9@byu.net>
53984
53985         * gnulib-tool: Rearrange space-tab sequences, since some editors
53986         like to eat them.
53987
53988 2007-03-23  Eric Blake  <ebb9@byu.net>
53989
53990         * lib/version-etc.c (version_etc_va): Update license wording to
53991         be more concise.  Recommended by Richard Stallman.
53992
53993 2007-03-22  Bruno Haible  <bruno@clisp.org>
53994
53995         * lib/poll.c (MSG_PEEK): New fallback definition.
53996
53997 2007-03-22  Bruno Haible  <bruno@clisp.org>
53998
53999         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
54000         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
54001         (main): Update.
54002         Fixes a compilation error on BeOS.
54003
54004 2007-03-22  Bruno Haible  <bruno@clisp.org>
54005
54006         * modules/frexpl-tests: New file.
54007         * tests/test-frexpl.c: New file.
54008
54009         * modules/frexpl: New file.
54010         * m4/frexpl.m4: New file.
54011         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
54012         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
54013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
54014         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
54015         (Depends-on): Add frexpl. Remove isnanl-nolibm.
54016         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
54017
54018 2007-03-22  Bruno Haible  <bruno@clisp.org>
54019
54020         * lib/frexpl.c: Share code with lib/frexp.c.
54021         * modules/mathl (Files): Add lib/frexp.c.
54022         (Depends-on): Add isnanl-nolibm.
54023
54024 2007-03-22  Bruno Haible  <bruno@clisp.org>
54025
54026         * modules/printf-frexp (Files): Add m4/frexp.m4.
54027         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
54028         only if the found frexp function actually works.
54029
54030 2007-03-22  Bruno Haible  <bruno@clisp.org>
54031
54032         * lib/frexp.c: Remove older implementation that uses divisions.
54033
54034 2007-03-21  Bruno Haible  <bruno@clisp.org>
54035
54036         * modules/frexp-tests: New file.
54037         * tests/test-frexp.c: New file.
54038
54039         * modules/frexp: New file.
54040         * lib/frexp.c: New file.
54041         * m4/frexp.m4: New file.
54042         * lib/math_.h (frexp): New declaration.
54043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
54044         REPLACE_FREXP.
54045         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
54046
54047 2007-03-21  Bruno Haible  <bruno@clisp.org>
54048
54049         * modules/isnanl-tests: New file.
54050         * tests/test-isnanl.c: New file.
54051
54052         * modules/isnanl: New file.
54053         * lib/isnanl.h: New file.
54054         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54055         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54056         gl_FUNC_ISNANL_WORKS.
54057         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
54058         New macros.
54059
54060 2007-03-21  Bruno Haible  <bruno@clisp.org>
54061
54062         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
54063         lib/isnanl.h.
54064         (Include): Update.
54065         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
54066         * lib/vasnprintf.c: Update.
54067         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
54068         tests/test-isnanl.h, remove tests/test-isnanl.c.
54069         (Makefile.am): Update.
54070         * tests/test-isnanl-nolibm.c: New file.
54071         * tests/test-isnanl.h: New file.
54072         * tests/test-isnanl.c: Remove file.
54073
54074 2007-03-21  Jim Meyering  <jim@meyering.net>
54075
54076         When trying to open ".", treat ESTALE like EACCES.
54077         * lib/savewd.c (savewd_save): Resort to forking not just upon
54078         failure with EACCES, but also when errno is ESTALE.
54079
54080 2007-03-20  Bruno Haible  <bruno@clisp.org>
54081
54082         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
54083         Needed on AIX 5.1. Reported by Matthew Woehlke.
54084
54085 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54086
54087         Suggestions by Bruno Haible:
54088         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54089         our own.
54090         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54091         * modules/acl (Depends-on): Add gettext.
54092
54093 2007-03-19  Bruno Haible  <bruno@clisp.org>
54094
54095         * modules/iconvme: Remove file.
54096         * lib/iconvme.h: Remove file.
54097         * lib/iconvme.c: Remove file.
54098         * m4/iconvme.m4: Remove file.
54099
54100 2007-03-19  Bruno Haible  <bruno@clisp.org>
54101
54102         * doc/relocatable-maint.texi: Break long shell script line.
54103         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54104
54105 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54106
54107         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54108         handle file_has_acl.
54109         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54110         * lib/acl.c: Move header inclusions and related macro defns into
54111         lib/acl-internal.h.
54112         (S_ISLNK): Remove defn, since that's now done for us.
54113         (file_has_acl): Move to lib/file-has-acl.c.
54114         Call acl_trivial if available.  This is the crucial part of the fix.
54115         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54116         shared within the library.  Rewrite a bit, partly to make it compatible
54117         with the GNU coding style.
54118         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54119         Remove unnecessary double-quotes.
54120         Don't test for acl_to_text; the build will catch that.
54121         Replace acl_entries if it doesn't exist and it is needed.
54122         Check for -lsec and acl_trivial (as used on Solaris 10).
54123         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54124         lib/file-has-acl.c.
54125         (Depends-on): Add sys_stat, for S_ISLNK.
54126
54127 2007-03-19  Ben Pfaff  <blp@gnu.org>
54128
54129         * doc/gnulib.texi: Fix typos.
54130         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54131
54132 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54133
54134         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54135         If size is zero here, buf must be zero.
54136
54137 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54138
54139         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54140         <bruno@clisp.org>.
54141
54142 2007-03-18  Bruno Haible  <bruno@clisp.org>
54143
54144         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54145         Suggested by Eric Blake.
54146
54147 2007-03-18  Ben Pfaff  <blp@gnu.org>
54148
54149         * doc/relocatable.texi: Recommend using as prefix a directory
54150         that does not exist and will never be created.  Based on
54151         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54152         and others.
54153
54154 2007-03-17  Bruno Haible  <bruno@clisp.org>
54155
54156         * lib/fchownat.c: Include lchown.h.
54157
54158 2007-03-17  Bruno Haible  <bruno@clisp.org>
54159
54160         Fix endless loop when the given allocated size was > INT_MAX.
54161         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54162         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54163         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54164         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54165         * lib/sprintf.c (sprintf): Likewise.
54166
54167 2007-03-17  Bruno Haible  <bruno@clisp.org>
54168
54169         * tests/test-argp-2.sh (func_compare): Output a context diff.
54170
54171 2007-03-17  Bruno Haible  <bruno@clisp.org>
54172
54173         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54174         locale's decimal-point character.
54175
54176 2007-03-17  Bruno Haible  <bruno@clisp.org>
54177
54178         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54179         before comparing it. Needed because on some platforms (e.g. x86) a
54180         'long double' occupies less bytes than sizeof (long double).
54181
54182 2007-03-17  Bruno Haible  <bruno@clisp.org>
54183
54184         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54185         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54186         * tests/test-getaddrinfo.c (simple): Likewise.
54187         * tests/test-read-file.c (main): Likewise.
54188
54189 2007-03-17  Bruno Haible  <bruno@clisp.org>
54190
54191         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54192
54193 2007-03-17  Bruno Haible  <bruno@clisp.org>
54194
54195         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54196         unused variable.
54197
54198 2007-03-17  Bruno Haible  <bruno@clisp.org>
54199
54200         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54201         * tests/test-c-strncasecmp.c: Likewise.
54202
54203 2007-03-17  Bruno Haible  <bruno@clisp.org>
54204
54205         * modules/stdlib (Depends-on): Add unistd.
54206         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54207         Needed for MacOS X 10.3.
54208
54209 2007-03-17  Bruno Haible  <bruno@clisp.org>
54210
54211         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54212
54213 2007-03-17  Bruno Haible  <bruno@clisp.org>
54214
54215         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54216
54217 2007-03-17  Bruno Haible  <bruno@clisp.org>
54218
54219         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54220         to reflect files copied from gnulib (with or without modifications).
54221         Suggested by Jim Meyering.
54222
54223 2007-03-17  Eric Blake  <ebb9@byu.net>
54224
54225         * NEWS: Document stdlib change from 2007-02-18.
54226
54227 2007-03-17  Jim Meyering  <jim@meyering.net>
54228
54229         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54230         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54231         someone uses a name containing shell meta-characters.
54232         Reported by Alfred M. Szmidt.
54233
54234         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54235
54236 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54237
54238         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54239         and copy gettext configuration files only if configure.ac contains
54240         a use of AM_GNU_GETTEXT_VERSION.
54241
54242 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54243
54244         * build-aux/bootstrap (gnulib_name): New variable.
54245         (gnulib_tool_options): Use it.
54246
54247 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54248
54249         * tests/test-des.c: Use new namespace.
54250
54251 2007-03-15  Bruno Haible  <bruno@clisp.org>
54252
54253         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54254         Reported by James Youngman <jay@gnu.org>.
54255
54256 2007-03-15  Bruno Haible  <bruno@clisp.org>
54257
54258         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54259         declared prototype. Needed with cc on OSF/1 5.1.
54260
54261 2007-03-15  Bruno Haible  <bruno@clisp.org>
54262
54263         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54264         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54265         (struct gl_list_implementation): Add dispose_fn argument to the
54266         'create_empty', 'create' methods.
54267         (struct gl_list_impl_base): Add field 'dispose_fn'.
54268         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54269         argument.
54270         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54271         dispose_fn argument.
54272         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54273         dispose_fn on the dropped values.
54274         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54275         dispose_fn argument.
54276         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54277         dropped values.
54278         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54279         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54280         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54281         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54282         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54283         argument.
54284         (gl_tree_list_free): Call dispose_fn on the dropped values.
54285         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54286         the dropped values.
54287         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54288         Add dispose_fn argument.
54289         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54290         Call dispose_fn on the dropped values.
54291         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54292         Add dispose_fn argument.
54293         (gl_sublist_create): Initialize the 'dispose_fn' field.
54294         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54295         * tests/test-array_list.c (main): Update.
54296         * tests/test-carray_list.c (main): Update.
54297         * tests/test-avltree_list.c (main): Update.
54298         * tests/test-rbtree_list.c (main): Update.
54299         * tests/test-avltreehash_list.c (main): Update.
54300         * tests/test-rbtreehash_list.c (main): Update.
54301         * tests/test-linked_list.c (main): Update.
54302         * tests/test-linkedhash_list.c (main): Update.
54303         * tests/test-array_oset.c (main): Update.
54304
54305 2007-03-15  Bruno Haible  <bruno@clisp.org>
54306
54307         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54308         (gl_oset_create_empty): Add dispose_fn argument.
54309         (struct gl_oset_implementation): Add dispose_fn argument to
54310         'create_empty' method.
54311         (struct gl_oset_impl_base): Add dispose_fn field.
54312         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54313         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54314         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54315         values.
54316         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54317         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54318         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54319         dropped value.
54320         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54321         dropped value.
54322         * tests/test-array_oset.c (main): Update.
54323         * tests/test-avltree_oset.c (main): Update.
54324         * tests/test-rbtree_oset.c (main): Update.
54325         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54326
54327 2007-03-13  Bruno Haible  <bruno@clisp.org>
54328
54329         * tests/test-stdbool.c (i): Update after last patch.
54330
54331 2007-03-12  Bruno Haible  <bruno@clisp.org>
54332
54333         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54334         the iswprint macro. Needed on Solaris 2.5.1.
54335
54336 2007-03-12  Bruno Haible  <bruno@clisp.org>
54337
54338         * tests/test-printf-frexp.c (main): Declare x as volatile.
54339
54340 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54341
54342         * doc/gnulib.texi (Build robot for gnulib): New section.
54343
54344 2007-03-12  Jim Meyering  <jim@meyering.net>
54345
54346         * build-aux/bootstrap: New file.
54347         * build-aux/bootstrap.conf: New file, from coreutils.
54348
54349 2007-03-11  Bruno Haible  <bruno@clisp.org>
54350
54351         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54352
54353 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54354
54355         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54356         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54357         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54358
54359 2007-03-11  Bruno Haible  <bruno@clisp.org>
54360
54361         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54362         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54363
54364 2007-03-11  Bruno Haible  <bruno@clisp.org>
54365
54366         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54367         formula. Needed for SunPRO C 5.0.
54368
54369 2007-03-11  Bruno Haible  <bruno@clisp.org>
54370
54371         * modules/long-options (Depends-on): Add getopt.
54372
54373 2007-03-11  Bruno Haible  <bruno@clisp.org>
54374
54375         * modules/modechange (Depends-on): Add stdbool.
54376
54377 2007-03-11  Bruno Haible  <bruno@clisp.org>
54378
54379         * modules/i-ring (Depends-on): Add stdbool.
54380
54381 2007-03-11  Bruno Haible  <bruno@clisp.org>
54382
54383         * modules/gc-des (Depends-on): Add stdbool.
54384
54385 2007-03-11  Bruno Haible  <bruno@clisp.org>
54386
54387         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54388
54389 2007-03-11  Bruno Haible  <bruno@clisp.org>
54390
54391         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54392
54393 2007-03-11  Bruno Haible  <bruno@clisp.org>
54394
54395         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54396
54397 2007-03-11  Bruno Haible  <bruno@clisp.org>
54398
54399         * lib/vasnprintf.c (sprintf): Undefine.
54400
54401 2007-03-11  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54404         initializers in SunPRO C and Compaq C compilers.
54405
54406 2007-03-11  Bruno Haible  <bruno@clisp.org>
54407
54408         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54409         decrementing code ANSI C compliant.
54410
54411 2007-03-11  Bruno Haible  <bruno@clisp.org>
54412
54413         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54414         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54415
54416 2007-03-11  Bruno Haible  <bruno@clisp.org>
54417
54418         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54419         <stdbool.h> substitute doesn't pass.
54420
54421 2007-03-11  Bruno Haible  <bruno@clisp.org>
54422
54423         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54424
54425 2007-03-11  Bruno Haible  <bruno@clisp.org>
54426
54427         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54428         script, for submission to autobuild.josefsson.org.
54429
54430 2007-03-10  Bruno Haible  <bruno@clisp.org>
54431
54432         * modules/canonicalize-lgpl-tests: New file.
54433         * tests/test-canonicalize-lgpl.sh: New file.
54434         * tests/test-canonicalize-lgpl.c: New file.
54435
54436         * modules/c-strcase-tests: New file.
54437         * tests/test-c-strcase.sh: New file.
54438         * tests/test-c-strcasecmp.c: New file.
54439         * tests/test-c-strncasecmp.c: New file.
54440
54441         * modules/atexit-tests: New file.
54442         * tests/test-atexit.sh: New file.
54443         * tests/test-atexit.c: New file.
54444
54445 2007-03-10  Bruno Haible  <bruno@clisp.org>
54446
54447         * tests/test-binary-io.sh: Use temporary filenames that are not so
54448         likely to clash with those of other tests (in a parallel make).
54449         * tests/test-binary-io.c: Likewise.
54450
54451 2007-03-10  Bruno Haible  <bruno@clisp.org>
54452
54453         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54454         fallback; use #error instead.
54455         Suggested by Simon Josefsson.
54456
54457 2007-03-10  Bruno Haible  <bruno@clisp.org>
54458
54459         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54460         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54461         first and the last.
54462
54463 2007-03-10  Bruno Haible  <bruno@clisp.org>
54464
54465         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54466
54467 2007-03-10  Bruno Haible  <bruno@clisp.org>
54468
54469         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54470         "make distcheck".
54471         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54472         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54473         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54474
54475 2007-03-10  Bruno Haible  <bruno@clisp.org>
54476
54477         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54478         variable.
54479         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54480         variable.
54481
54482 2007-03-09  Eric Blake  <ebb9@byu.net>
54483         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54484
54485         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54486         types are not being provided by gnulib.
54487         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54488         types are supported.
54489
54490 2007-03-10  Bruno Haible  <bruno@clisp.org>
54491
54492         * lib/stdio_.h (__attribute__): New macro.
54493         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54494         vsprintf): Specify __attribute__ __format__ for GCC.
54495         Suggested by Eric Blake.
54496
54497 2007-03-09  Bruno Haible  <bruno@clisp.org>
54498
54499         * modules/printf-posix-tests: New file.
54500         * tests/test-printf-posix.sh: New file.
54501         * tests/test-printf-posix.c: New file.
54502
54503         * modules/printf-posix: New file.
54504         * lib/printf.c: New file.
54505         * m4/printf-posix-rpl.m4: New file.
54506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54507         REPLACE_PRINTF.
54508         * lib/stdio_.h (printf): New declaration.
54509         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54510         ____strfmon____): New macros.
54511         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54512         REPLACE_PRINTF.
54513
54514 2007-03-09  Bruno Haible  <bruno@clisp.org>
54515
54516         * tests/test-vasnprintf-posix2.sh: New file.
54517         * tests/test-vasnprintf-posix2.c: New file.
54518         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54519         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54520         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54521
54522         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54523         a locale dependent decimal point, rather than always '.'.
54524
54525 2007-03-09  Eric Blake  <ebb9@byu.net>
54526
54527         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54528         spite of platforms like Tandem/NSK that define it to -1.
54529
54530 2007-03-08  Bruno Haible  <bruno@clisp.org>
54531
54532         * modules/vprintf-posix-tests: New file.
54533         * tests/test-vprintf-posix.sh: New file.
54534         * tests/test-vprintf-posix.c: New file.
54535         * tests/test-printf-posix.h: New file.
54536
54537         * modules/vprintf-posix: New file.
54538         * lib/vprintf.c: New file.
54539         * m4/vprintf-posix.m4: New file.
54540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54541         REPLACE_VPRINTF.
54542         * lib/stdio_.h (vprintf): New declaration.
54543         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54544         REPLACE_VPRINTF.
54545
54546 2007-03-08  Bruno Haible  <bruno@clisp.org>
54547
54548         * modules/fprintf-posix-tests: New file.
54549         * tests/test-fprintf-posix.sh: New file.
54550         * tests/test-fprintf-posix.c: New file.
54551
54552         * modules/fprintf-posix: New file.
54553         * lib/fprintf.c: New file.
54554         * m4/fprintf-posix.m4: New file.
54555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54556         REPLACE_FPRINTF.
54557         * lib/stdio_.h (fprintf): New declaration.
54558         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54559         REPLACE_FPRINTF.
54560
54561 2007-03-08  Bruno Haible  <bruno@clisp.org>
54562
54563         * modules/vfprintf-posix-tests: New file.
54564         * tests/test-vfprintf-posix.sh: New file.
54565         * tests/test-vfprintf-posix.c: New file.
54566         * tests/test-fprintf-posix.h: New file.
54567         * tests/test-fprintf-posix.out: New file.
54568
54569         * modules/vfprintf-posix: New file.
54570         * lib/vfprintf.c: New file.
54571         * m4/vfprintf-posix.m4: New file.
54572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54573         REPLACE_VFPRINTF.
54574         * lib/stdio_.h (vfprintf): New declaration.
54575         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54576         REPLACE_VFPRINTF.
54577
54578 2007-03-08  Bruno Haible  <bruno@clisp.org>
54579
54580         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54581
54582 2007-03-08  Bruno Haible  <bruno@clisp.org>
54583
54584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54585         instead of 'expr' invocations.
54586         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54587         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54588         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54591         Suggested by Paul Eggert.
54592
54593 2007-03-08  Bruno Haible  <bruno@clisp.org>
54594
54595         * modules/fseterr-tests: New file.
54596         * tests/test-fseterr.c: New file.
54597
54598         * modules/fseterr: New file.
54599         * lib/fseterr.h: New file.
54600         * lib/fseterr.c: New file.
54601
54602 2007-03-08  Bruno Haible  <bruno@clisp.org>
54603
54604         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54605         * lib/getopt_.h: Likewise.
54606         * lib/mbswidth.h: Likewise.
54607         * lib/setenv.h: Likewise.
54608         * lib/vasnprintf.h: Likewise.
54609         * lib/vasprintf.h: Likewise.
54610         * lib/verror.h: Likewise.
54611         * lib/xsetenv.h: Likewise.
54612         * lib/xvasprintf.h: Likewise.
54613
54614 2007-03-08  Jim Meyering  <jim@meyering.net>
54615
54616         * users.txt: Add parted.
54617
54618         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54619
54620 2007-03-07  Bruno Haible  <bruno@clisp.org>
54621
54622         * m4/printf.m4: Make the shell script snippets copy&pastable.
54623
54624 2007-03-02  Bruno Haible  <bruno@clisp.org>
54625
54626         * lib/netinet_in_.h: New file.
54627         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54628         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54629         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54630         (Depends-on): Add absolute-header.
54631         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54632         into netinet/in.h.
54633
54634 2007-03-03  Bruno Haible  <bruno@clisp.org>
54635
54636         * lib/sys_select_.h: New file.
54637         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54638         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54639         * modules/sys_select (Files): Add lib/sys_select_.h.
54640         (Depends-on): Add absolute-header.
54641         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54642         into sys/select.h.
54643
54644 2007-03-02  Bruno Haible  <bruno@clisp.org>
54645
54646         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54647         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54648         values.
54649         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54650         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54651         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54652         * modules/sys_socket (Depends-on): Add absolute-header.
54653         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54654         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54655         (Include): Remove requirement of inclusion of <sys/types.h>.
54656
54657 2007-03-02  Bruno Haible  <bruno@clisp.org>
54658
54659         * lib/byteswap_.h (bswap_32): Fix formula.
54660
54661 2007-03-06  Bruno Haible  <bruno@clisp.org>
54662
54663         * modules/sprintf-posix-tests: New file.
54664         * tests/test-sprintf-posix.c: New file.
54665
54666         * modules/sprintf-posix: New file.
54667         * lib/sprintf.c: New file.
54668         * m4/sprintf-posix.m4: New file.
54669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54670         REPLACE_SPRINTF.
54671         * lib/stdio_.h (sprintf): New declaration.
54672         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54673         REPLACE_SPRINTF.
54674
54675 2007-03-06  Bruno Haible  <bruno@clisp.org>
54676
54677         * modules/vsprintf-posix-tests: New file.
54678         * tests/test-vsprintf-posix.c: New file.
54679         * tests/test-sprintf-posix.h: New file.
54680
54681         * modules/vsprintf-posix: New file.
54682         * lib/vsprintf.c: New file.
54683         * m4/vsprintf-posix.m4: New file.
54684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54685         REPLACE_VSPRINTF.
54686         * lib/stdio_.h (vsprintf): New declaration.
54687         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54688         REPLACE_VSPRINTF.
54689
54690 2007-03-06  Bruno Haible  <bruno@clisp.org>
54691
54692         * modules/vsnprintf (Depend-on): Remove minmax.
54693
54694 2007-03-06  Bruno Haible  <bruno@clisp.org>
54695
54696         * modules/snprintf-posix-tests: New file.
54697         * tests/test-snprintf-posix.c: New file.
54698
54699         * modules/snprintf-posix: New file.
54700         * m4/snprintf-posix.m4: New file.
54701         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54702         gl_FUNC_SNPRINTF.
54703         (gl_FUNC_SNPRINTF): Invoke it.
54704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54705         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54706         is set.
54707         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54708
54709 2007-03-06  Bruno Haible  <bruno@clisp.org>
54710
54711         * modules/vsnprintf-posix-tests: New file.
54712         * tests/test-vsnprintf-posix.c: New file.
54713         * tests/test-snprintf-posix.h: New file.
54714
54715         * modules/vsnprintf-posix: New file.
54716         * m4/vsnprintf-posix.m4: New file.
54717         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54718         gl_FUNC_VSNPRINTF.
54719         (gl_FUNC_VSNPRINTF): Invoke it.
54720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54721         * lib/stdio_.h (vsnprintf): Define as a replacement if
54722         REPLACE_VSNPRINTF is set.
54723         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54724
54725 2007-03-06  Bruno Haible  <bruno@clisp.org>
54726
54727         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54728         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54729
54730 2007-03-06  Bruno Haible  <bruno@clisp.org>
54731
54732         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54733         (asinl): Declare also if HAVE_DECL_ASINL is set.
54734         (atanl): Declare also if HAVE_DECL_ATANL is set.
54735         (ceill): Declare also if HAVE_DECL_CEILL is set.
54736         (cosl): Declare also if HAVE_DECL_COSL is set.
54737         (expl): Declare also if HAVE_DECL_EXPL is set.
54738         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54739         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54740         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54741         (logl): Declare also if HAVE_DECL_LOGL is set.
54742         (sinl): Declare also if HAVE_DECL_SINL is set.
54743         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54744         (tanl): Declare also if HAVE_DECL_TANL is set.
54745         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54747         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54748         declaration of frexpl, ldexpl.
54749         * modules/printf-frexpl (Depends-on): Add math.
54750         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54751
54752 2007-03-05  Bruno Haible  <bruno@clisp.org>
54753
54754         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54755         frexpl and ldexpl are declared.
54756         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54757
54758 2007-03-05  Bruno Haible  <bruno@clisp.org>
54759
54760         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
54761         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
54762
54763 2007-03-05  Bruno Haible  <bruno@clisp.org>
54764
54765         * lib/stdio_.h: Include <stddef.h>.
54766
54767 2007-03-05  Bruno Haible  <bruno@clisp.org>
54768
54769         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
54770
54771 2007-03-05  Bruno Haible  <bruno@clisp.org>
54772
54773         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
54774         NetBSD 4, from Ralf Wildenhues.
54775
54776 2007-03-04  Bruno Haible  <bruno@clisp.org>
54777
54778         * lib/vasprintf.h: Update #if logic for the case when the functions
54779         exist but are overridden.
54780
54781 2007-03-04  Bruno Haible  <bruno@clisp.org>
54782
54783         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
54784         implementations: glibc-2.4 and MacOS X 10.3.
54785         * tests/test-vasnprintf-posix.c (test_function): Test also the case
54786         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
54787         * tests/test-vasprintf-posix.c (test_function): Likewise.
54788
54789 2007-03-04  Bruno Haible  <bruno@clisp.org>
54790
54791         * modules/vasprintf-posix-tests: New file.
54792         * tests/test-vasprintf-posix.c: New file.
54793
54794         * modules/vasprintf-posix: New file.
54795         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
54796         defined.
54797         * m4/vasprintf-posix.m4: New file.
54798         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
54799         gl_FUNC_VASPRINTF.
54800         (gl_FUNC_VASPRINTF): Invoke it.
54801         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
54802         here.
54803         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
54804
54805 2007-03-04  Bruno Haible  <bruno@clisp.org>
54806
54807         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
54808         REPLACE_GETTIMEOFDAY.
54809         * modules/sys_time (Makefile.am): Likewise.
54810         * m4/sys_time_h.m4: Likewise.
54811         * m4/gettimeofday.m4: Likewise.
54812
54813 2007-03-04  Bruno Haible  <bruno@clisp.org>
54814
54815         * modules/vasnprintf-posix-tests: New file.
54816         * tests/test-vasnprintf-posix.c: New file.
54817
54818         * modules/vasnprintf-posix: New file.
54819         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
54820         printf-frexpl.h.
54821         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
54822         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
54823         REPLACE_VASNPRINTF is defined.
54824         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
54825         gl_FUNC_VASNPRINTF.
54826         (gl_FUNC_VASNPRINTF): Invoke it.
54827         * m4/vasnprintf-posix.m4: New file.
54828         * m4/printf.m4: New file.
54829
54830 2007-03-04  Bruno Haible  <bruno@clisp.org>
54831
54832         Compile progreloc.c only if --enable-relocatable is specified.
54833         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
54834         if --enable-relocatable was specified.
54835         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
54836         lib_SOURCES.
54837
54838 2007-03-04  Jim Meyering  <jim@meyering.net>
54839
54840         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
54841         Use it consistently, rather than enumerating errno constants.
54842
54843 2007-03-04  Bruno Haible  <bruno@clisp.org>
54844
54845         * modules/xvasprintf-tests: New file.
54846         * tests/test-xvasprintf.c: New file.
54847
54848         * modules/vasprintf-tests: New file.
54849         * tests/test-vasprintf.c: New file.
54850
54851         * modules/vasnprintf-tests: New file.
54852         * tests/test-vasnprintf.c: New file.
54853
54854         * modules/vsnprintf-tests: New file.
54855         * tests/test-vsnprintf.c: New file.
54856
54857         * modules/snprintf-tests: New file.
54858         * tests/test-snprintf.c: New file.
54859
54860 2007-03-04  Bruno Haible  <bruno@clisp.org>
54861
54862         Compile relocatable.c only if --enable-relocatable is specified.
54863         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
54864         gl_RELOCATABLE_LIBRARY.
54865         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
54866         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
54867         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
54868         gl_RELOCATABLE_LIBRARY.
54869         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
54870         (Makefile.am): Remove lib_SOURCES.
54871         * modules/relocatable-lib-lgpl (configure.ac): Invoke
54872         gl_RELOCATABLE_LIBRARY.
54873         (Makefile.am): Remove lib_SOURCES.
54874         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
54875         always.
54876         * modules/relocatable-prog-wrapper (configure.ac): Invoke
54877         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
54878
54879 2007-03-04  Bruno Haible  <bruno@clisp.org>
54880
54881         * modules/argmatch-tests: New file.
54882         * tests/test-argmatch.c: New file.
54883
54884         * tests/test-allocsa.c (main): Halve the number of loop runs.
54885
54886         * modules/alloca-opt-tests: New file.
54887         * tests/test-alloca-opt.c: New file.
54888
54889 2007-03-04  Jim Meyering  <jim@meyering.net>
54890
54891         Work around difference between Linux ACLs and Solaris 10 ZFS.
54892         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
54893         for EINVAL.
54894
54895 2007-03-03  Bruno Haible  <bruno@clisp.org>
54896
54897         * modules/relocatable-prog (Depends-on): Add back progreloc's
54898         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
54899
54900 2007-03-03  Bruno Haible  <bruno@clisp.org>
54901
54902         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
54903         * modules/relocatable-lib: New file.
54904
54905 2007-03-03  Bruno Haible  <bruno@clisp.org>
54906
54907         * modules/relocatable-prog: Renamed from modules/relocatable.
54908         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
54909
54910 2007-03-03  Bruno Haible  <bruno@clisp.org>
54911
54912         * modules/relocatable-script (Files): Add doc/relocatable.texi,
54913         m4/relocatable-lib.m4.
54914         (Depends-on): Remove 'relocatable'.
54915         (configure.ac): Add gl_RELOCATABLE_NOP.
54916
54917 2007-03-03  Bruno Haible  <bruno@clisp.org>
54918
54919         * modules/relocatable-prog-wrapper: New file.
54920         * modules/relocatable (Depends-on): Add it. Remove all other
54921         dependencies except progname.
54922         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
54923
54924         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
54925         (gl_FUNC_STRERROR): Nop.
54926         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
54927
54928         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
54929         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
54930
54931         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
54932         (gl_FUNC_READLINK): Update.
54933
54934         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
54935
54936 2007-03-03  Bruno Haible  <bruno@clisp.org>
54937
54938         * lib/xreadlink.c: Include <unistd.h> unconditionally.
54939         * modules/xreadlink (Depends-on): Add unistd.
54940         * modules/xreadlink-with-size (Depends-on): Likewise.
54941
54942 2007-03-03  Bruno Haible  <bruno@clisp.org>
54943
54944         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
54945         extracted from gt_FUNC_SETENV.
54946         (gt_FUNC_SETENV): Remove macro.
54947         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
54948         remove gt_FUNC_SETENV.
54949
54950 2007-03-03  Bruno Haible  <bruno@clisp.org>
54951
54952         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
54953         ENABLE_RELOCATABLE here.
54954         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54955
54956 2007-03-03  Bruno Haible  <bruno@clisp.org>
54957
54958         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54959         * tests/test-rbtreehash_list.c: Include progname.h.
54960         (main): Call set_program_name.
54961
54962         * modules/rbtree-oset-tests (Depends-on): Add progname.
54963         * tests/test-rbtree_oset.c: Include progname.h.
54964         (main): Call set_program_name.
54965
54966         * modules/rbtree-list-tests (Depends-on): Add progname.
54967         * tests/test-rbtree_list.c: Include progname.h.
54968         (main): Call set_program_name.
54969
54970         * modules/linked-list-tests (Depends-on): Add progname.
54971         * tests/test-linked_list.c: Include progname.h.
54972         (main): Call set_program_name.
54973
54974 2007-03-03  Bruno Haible  <bruno@clisp.org>
54975
54976         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54977         All uses of __restrict changed to _Restrict_.
54978         * lib/glob_.h (__restrict): Remove macro.
54979
54980 2007-03-02  Bruno Haible  <bruno@clisp.org>
54981
54982         * modules/gettext (configure.ac): Require gettext infrastructure
54983         from version 0.16.1.
54984
54985 2007-03-02  Bruno Haible  <bruno@clisp.org>
54986
54987         * modules/linkedhash-list-tests (Depends-on): Add progname.
54988         * tests/test-linkedhash_list.c: Include progname.h.
54989         (main): Call set_program_name.
54990
54991         * modules/carray-list-tests (Depends-on): Add progname.
54992         * tests/test-carray_list.c: Include progname.h.
54993         (main): Call set_program_name.
54994
54995         * modules/avltreehash-list-tests (Depends-on): Add progname.
54996         * tests/test-avltreehash_list.c: Include progname.h.
54997         (main): Call set_program_name.
54998
54999         * modules/avltree-oset-tests (Depends-on): Add progname.
55000         * tests/test-avltree_oset.c: Include progname.h.
55001         (main): Call set_program_name.
55002
55003         * modules/avltree-list-tests (Depends-on): Add progname.
55004         * tests/test-avltree_list.c: Include progname.h.
55005         (main): Call set_program_name.
55006
55007         * modules/array-oset-tests (Depends-on): Add progname.
55008         * tests/test-array_oset.c: Include progname.h.
55009         (main): Call set_program_name.
55010
55011         * modules/array-list-tests (Depends-on): Add progname.
55012         * tests/test-array_list.c: Include progname.h.
55013         (main): Call set_program_name.
55014
55015         * modules/argp-tests (Depends-on): Add progname.
55016         * tests/test-argp.c: Include argp.h first. Include progname.h.
55017         (main): Call set_program_name.
55018
55019 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
55020
55021         * doc/gnulib-tool.texi (Initial import): Reword description of
55022         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
55023         limited effect even if defined after the first system include.
55024
55025 2007-03-01  Bruno Haible  <bruno@clisp.org>
55026
55027         * build-aux/config.libpath: Update to libtool-1.5.22.
55028         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55029
55030 2007-03-01  Bruno Haible  <bruno@clisp.org>
55031
55032         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
55033         foo_CFLAGS.
55034         Reported by Ralf Wildenhues.
55035
55036 2007-03-01  Bruno Haible  <bruno@clisp.org>
55037
55038         * build-aux/install-reloc: Remove object files left over by some
55039         compilers.
55040         Reported by Ralf Wildenhues.
55041
55042 2007-03-01  Bruno Haible  <bruno@clisp.org>
55043
55044         * build-aux/install-reloc: Break long lines.
55045
55046 2007-03-01  Bruno Haible  <bruno@clisp.org>
55047
55048         * doc/relocatable.texi: Document that it may not work on OpenBSD.
55049         Reported by Ralf Wildenhues.
55050
55051 2007-03-01  Bruno Haible  <bruno@clisp.org>
55052
55053         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55054         include ordering constraints.
55055
55056 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55057
55058         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
55059         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
55060         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
55061         as another example.
55062         * lib/time_.h: Fix misspelling.
55063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55064         Require gl_HEADER_TIME_H_DEFAULTS.
55065         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
55066         * m4/time_r.m4 (gl_TIME_R): Likewise.
55067         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
55068
55069 2007-03-01  Bruno Haible  <bruno@clisp.org>
55070
55071         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
55072         * m4/utimens.m4 (gl_UTIMENS): Likewise.
55073
55074 2007-03-01  Jim Meyering  <jim@meyering.net>
55075
55076         * modules/xreadlink (Maintainer): Add my name.
55077         * modules/xreadlink-with-size (Depends-on): Alphabetize.
55078
55079 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
55080             Bruno Haible  <bruno@clisp.org>
55081
55082         * build-aux/install-reloc: Compile also c-ctype.c.
55083         * build-aux/relocatable.sh.in: New file.
55084         * doc/relocatable.texi: New file.
55085         * doc/relocatable-maint.texi: New file.
55086         * doc/gnulib.texi: Include relocatable-maint.texi.
55087         * lib/progreloc.c: Include unistd.h unconditionally.
55088         * lib/relocwrapper.c: Include unistd.h unconditionally.
55089         Include c-ctype.h.
55090         (add_dotbin): Use c_tolower.
55091         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55092         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55093         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55094         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55095         to m4/relocatable-lib.m4.
55096         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55097         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55098         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55099         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55100         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55101         * modules/relocatable: New file.
55102         * modules/relocatable-lib: New file.
55103         * modules/relocatable-script: New file.
55104
55105 2007-02-28  Bruno Haible  <bruno@clisp.org>
55106
55107         Import --enable-relocatable infrastructure.
55108         * build-aux/config.libpath: New file, from GNU gettext.
55109         * build-aux/install-reloc: New file, from GNU gettext.
55110         * build-aux/reloc-ldflags: New file, from GNU gettext.
55111         * lib/relocatable.h: New file, from GNU gettext.
55112         * lib/relocatable.c: New file, from GNU gettext.
55113         * lib/relocwrapper.c: New file, from GNU gettext.
55114         * m4/relocatable.m4: New file, from GNU gettext.
55115
55116 2007-02-28  Bruno Haible  <bruno@clisp.org>
55117
55118         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55119
55120         * modules/xreadlink: New file, from GNU gettext with modifications.
55121         * lib/xreadlink.c: New file, from GNU gettext.
55122         * lib/xreadlink.h: Add comments.
55123         (xreadlink): New declaration.
55124
55125         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55126         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55127         lib/xreadlink-with-size.c.
55128         (configure.ac): Remove gl_XREADLINK invocation.
55129         (Makefile.am): Augment lib_SOURCES.
55130         * m4/xreadlink.m4: Remove file.
55131         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55132         (xreadlink_with_size): Renamed from xreadink.
55133         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55134         * modules/canonicalize (Depends-on): Replace xreadlink with
55135         xreadlink-with-size.
55136         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55137
55138 2007-02-25  Jim Meyering  <jim@meyering.net>
55139
55140         * build-aux/announce-gen: When complaining about excess arguments,
55141         list them.
55142
55143 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55144
55145         * README: Document signed integer overflow situation more
55146         accurately.
55147
55148 2007-02-25  Bruno Haible  <bruno@clisp.org>
55149
55150         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55151         'a' or 'A' conversion.
55152
55153 2007-02-25  Bruno Haible  <bruno@clisp.org>
55154
55155         * modules/filename: Renamed from modules/pathname.
55156         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55157         lib/concatpath.c with lib/concat-filename.c.
55158         (Makefile.am): Update.
55159         (Include): Replace pathname.h with filename.h.
55160         * lib/filename.h: Renamed from lib/pathname.h.
55161         (concatenated_filename): Renamed from concatenated_pathname.
55162         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55163         (concatenated_filename): Renamed from concatenated_pathname.
55164         * lib/findprog.c: Include filename.h instead of pathname.h.
55165         (find_in_path): Update.
55166         * lib/javacomp.c: Include filename.h instead of pathname.h.
55167         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55168         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55169         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55170         is_oldgcj_14_13_usable, is_javac_usable): Update.
55171         * lib/javaexec.c: Include filename.h instead of pathname.h.
55172         (execute_java_class): Update.
55173         * modules/findprog: Update.
55174         * modules/javacomp: Update.
55175         * modules/javaexec: Update.
55176         * MODULES.html.sh (File system functions): Add 'filename', remove
55177         'pathname'.
55178
55179 2007-02-25  Bruno Haible  <bruno@clisp.org>
55180
55181         * modules/printf-frexpl-tests: New file.
55182         * tests/test-printf-frexpl.c: New file.
55183
55184         * modules/printf-frexpl: New file.
55185         * lib/printf-frexpl.h: New file.
55186         * lib/printf-frexpl.c: New file.
55187         * m4/printf-frexpl.m4: New file.
55188
55189 2007-02-25  Bruno Haible  <bruno@clisp.org>
55190
55191         * modules/printf-frexp-tests: New file.
55192         * tests/test-printf-frexp.c: New file.
55193
55194         * modules/printf-frexp: New file.
55195         * lib/printf-frexp.h: New file.
55196         * lib/printf-frexp.c: New file.
55197         * m4/printf-frexp.m4: New file.
55198
55199 2007-02-25  Bruno Haible  <bruno@clisp.org>
55200
55201         Assume automake >= 1.10 for the tests.
55202         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55203         * modules/arctwo-tests: Likewise.
55204         * modules/argp-tests: Likewise.
55205         * modules/avltree-list-tests: Likewise.
55206         * modules/avltree-oset-tests: Likewise.
55207         * modules/avltreehash-list-tests: Likewise.
55208         * modules/carray-list-tests: Likewise.
55209         * modules/crc-tests: Likewise.
55210         * modules/des-tests: Likewise.
55211         * modules/gc-arcfour-tests: Likewise.
55212         * modules/gc-arctwo-tests: Likewise.
55213         * modules/gc-des-tests: Likewise.
55214         * modules/gc-hmac-md5-tests: Likewise.
55215         * modules/gc-hmac-sha1-tests: Likewise.
55216         * modules/gc-md2-tests: Likewise.
55217         * modules/gc-md4-tests: Likewise.
55218         * modules/gc-md5-tests: Likewise.
55219         * modules/gc-pbkdf2-sha1-tests: Likewise.
55220         * modules/gc-rijndael-tests: Likewise.
55221         * modules/gc-sha1-tests: Likewise.
55222         * modules/gc-tests: Likewise.
55223         * modules/getaddrinfo-tests: Likewise.
55224         * modules/hmac-md5-tests: Likewise.
55225         * modules/hmac-sha1-tests: Likewise.
55226         * modules/linked-list-tests: Likewise.
55227         * modules/linkedhash-list-tests: Likewise.
55228         * modules/lock-tests: Likewise.
55229         * modules/md2-tests: Likewise.
55230         * modules/md4-tests: Likewise.
55231         * modules/md5-tests: Likewise.
55232         * modules/rbtree-list-tests: Likewise.
55233         * modules/rbtree-oset-tests: Likewise.
55234         * modules/rbtreehash-list-tests: Likewise.
55235         * modules/read-file-tests: Likewise.
55236         * modules/rijndael-tests: Likewise.
55237         * modules/stdint-tests: Likewise.
55238         * modules/tls-tests: Likewise.
55239
55240 2007-02-24  Bruno Haible  <bruno@clisp.org>
55241
55242         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55243         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55244         function; instead check whether isnan with a double argument links.
55245         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55246         function; instead check whether isnan with a 'long double' argument
55247         links.
55248         Reported by Eric Blake <ebb9@byu.net>.
55249
55250 2007-02-24  Bruno Haible  <bruno@clisp.org>
55251
55252         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55253         defined.
55254         * lib/isnanl.c: Remove all code. Just include isnan.c.
55255         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55256
55257 2007-02-25  Jim Meyering  <jim@meyering.net>
55258
55259         Avoid conflicting types for 'unsetenv' on FreeBSD.
55260         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55261         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55262         in stdlib.h.
55263
55264 2007-02-24  Bruno Haible  <bruno@clisp.org>
55265
55266         * modules/isnanl-nolibm-tests: New file.
55267         * tests/test-isnanl.c: New file.
55268
55269         * modules/isnanl-nolibm: New file.
55270         * lib/isnanl.h: New file.
55271         * lib/isnanl.c: New file.
55272         * m4/isnanl.m4: New file.
55273
55274 2007-02-24  Bruno Haible  <bruno@clisp.org>
55275
55276         * modules/isnan-nolibm-tests: New file.
55277         * tests/test-isnan.c: New file.
55278
55279         * modules/isnan-nolibm: New file.
55280         * lib/isnan.h: New file.
55281         * lib/isnan.c: New file.
55282         * m4/isnan.m4: New file.
55283
55284 2007-02-24  Bruno Haible  <bruno@clisp.org>
55285
55286         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55287         assume that an exponent fits in 20 bits.
55288
55289 2007-02-24  Jim Meyering  <jim@meyering.net>
55290
55291         * m4/regex.m4: Update the description of the configure-time option,
55292         --without-included-regex, to state accurately what the defaults are,
55293         and perhaps to give people an idea why using this option is risky.
55294
55295 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55296
55297         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55298         loops on small arguments.  This attempts to avoid the problem
55299         Bruno Haible reported for AIX 4.3.2 in
55300         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55301
55302 2007-02-23  Bruno Haible  <bruno@clisp.org>
55303
55304         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55305         Needed for help2man.
55306
55307 2007-02-23  Karl Berry  <karl@gnu.org>
55308
55309         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55310         exists, foo.h should be cvs-ignored, not committed.
55311
55312 2007-02-23  Eric Blake  <ebb9@byu.net>
55313
55314         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55315         * lib/stat-time.h (includes): Likewise.
55316         * lib/utimecmp.c (includes): Likewise.
55317         * lib/utimens.h (includes): Likewise.
55318         * lib/getdate.y (includes): Also include "timespec.h" for use
55319         internal to the module.
55320         * modules/utimens (Depends-on): Revert yesterday's patch.
55321         * modules/nanosleep (Depends-on): Add missing dependency.
55322
55323 2007-02-22  Bruno Haible  <bruno@clisp.org>
55324
55325         * lib/glob.c: Don't include getlogin_r.h.
55326
55327 2007-02-22  Jim Meyering  <jim@meyering.net>
55328
55329         * modules/utimens (Depends-on): Add timespec, required for
55330         utimens.h's inclusion of timespec.h.
55331
55332 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55333
55334         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55335         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55336         Schwab in
55337         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55338         I'll try to think of a better way to fix the Solaris problem.
55339
55340         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55341         like glibc; on Solaris 10, it fails with errno == EINVAL.
55342         POSIX says the behavior is unspecified if the first argument is NULL,
55343         so play it safe and never pass NULL to the system getcwd.
55344
55345 2007-02-21  Jim Meyering  <jim@meyering.net>
55346
55347         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55348         of gettimeofday.  It would conflict with the one now always
55349         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55350         an IRIX 6.5 build failure.
55351
55352 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55353
55354         Minor fixups to port to Solaris 10 with Sun C 5.8.
55355         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55356         * modules/getcwd (Depends-on): Add dirfd.
55357         * lib/putenv.c (putenv): #undef it.
55358         (rpl_putenv): New decl.
55359         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55360
55361 2007-02-20  Bruno Haible  <bruno@clisp.org>
55362
55363         * modules/stdio-tests: New file.
55364         * tests/test-stdio.c: New file.
55365
55366         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55367         (Depends-on): Add stdio.
55368         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55369         (Include): Use <stdio.h> instead of vsnprintf.h.
55370         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55371         HAVE_DECL_VSNPRINTF.
55372         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55373
55374         * modules/snprintf (Files): Remove lib/snprintf.h.
55375         (Depends-on): Add stdio.
55376         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55377         (Include): Use <stdio.h> instead of snprintf.h.
55378         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55379         HAVE_DECL_SNPRINTF.
55380         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55381         * lib/getaddrinfo.c: Likewise.
55382
55383         * modules/stdio: New file.
55384         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55385         * lib/snprintf.h: Remove file.
55386         * lib/vsnprintf.h: Remove file.
55387         * lib/.cppi-disable: Remove snprintf.h.
55388         * m4/stdio_h.m4: New file.
55389         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55390
55391 2007-02-20  Jim Meyering  <jim@meyering.net>
55392
55393         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55394         used by e.g., mingw.  From Bruno Haible.
55395
55396 2007-02-19  Bruno Haible  <bruno@clisp.org>
55397
55398         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55399         warnings.
55400         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55401
55402 2007-02-19  Bruno Haible  <bruno@clisp.org>
55403
55404         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55405         from mingw users.
55406
55407 2007-02-19  Bruno Haible  <bruno@clisp.org>
55408
55409         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55410         warnings.
55411         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55412
55413 2007-02-19  Jim Meyering  <jim@meyering.net>
55414
55415         Don't use FD after a successful "fdopendir (fd)".
55416         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55417         Reset it by calling dirfd on the just-obtained DIR*.
55418
55419         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55420         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55421
55422 2007-02-18  Bruno Haible  <bruno@clisp.org>
55423
55424         * lib/readlink.c: Include <unistd.h>.
55425         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55426         HAVE_READLINK.
55427         * modules/readlink (Depends-on): Add unistd.
55428         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55429         (Include): Add <unistd.h>.
55430
55431         * lib/getlogin_r.h: Remove file.
55432         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55433         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55434         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55435         HAVE_DECL_GETLOGIN_R.
55436         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55437         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55438         (Include): Use <unistd.h> instead of getlogin_r.h.
55439
55440         * lib/getcwd.h: Remove file.
55441         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55442         * lib/xgetcwd.c: Likewise.
55443         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55444         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55445         * modules/getcwd (Files): Remove lib/getcwd.h.
55446         (Depends-on): Add unistd.
55447         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55448         (Include): Use <unistd.h> instad of getcwd.h.
55449
55450         * lib/ftruncate.c: Include <unistd.h> first.
55451         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55452         Set HAVE_FTRUNCATE.
55453         * modules/ftruncate (Depends-on): Add unistd.
55454         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55455
55456         * lib/fchdir.c: Include <unistd.h> first.
55457         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55459         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55460         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55461         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55462
55463         * lib/dup2.c: Include <unistd.h> first.
55464         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55465         HAVE_DUP2.
55466         * modules/dup2 (Depends-on): Add unistd.
55467         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55468
55469         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55470         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55471         REPLACE_CHOWN. Don't define chown as a macro here.
55472         * modules/chown (Depends-on): Add unistd.
55473         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55474
55475         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55476         Add definition for GL_LINK_WARNING.
55477         (chown, dup2): New declarations.
55478         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55479         link warning.
55480         (ftruncate): New declaration.
55481         (getcwd): New declaration, taken from old getcwd.h.
55482         (getlogin_r): New declaration, taken from old getlogin_r.h.
55483         (readlink): New declaration.
55484         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55485         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55486         (gl_PREREQ_UNISTD): Remove macro.
55487         (gl_UNISTD_MODULE_INDICATOR): New macro.
55488         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55489         many new variables. Don't set UNISTD_H.
55490         * modules/unistd (Description): Change.
55491         (Depends-on): Add link-warning.
55492         (configure.ac): Update.
55493         (Makefile.am): Create unistd.h always. Substitute many new variables
55494         into it.
55495
55496 2007-02-18  Bruno Haible  <bruno@clisp.org>
55497
55498         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55499         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55500         HAVE_GETSUBOPT.
55501         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55502         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55503         * lib/getsubopt.h: Remove file.
55504         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55505         (Depends-on): Add stdlib.
55506         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55507         (Includes): Use <stdlib.h> instead of getsubopt.h.
55508         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55509         Set HAVE_GETSUBOPT.
55510         * lib/getsubopt.c: Don't include getsubopt.h.
55511
55512 2007-02-18  Bruno Haible  <bruno@clisp.org>
55513
55514         * modules/fchdir (Depends-on): Add dup2.
55515
55516 2007-02-18  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/stdlib_.h: Handle glibc's special invocation convention
55519         specially.
55520
55521 2007-02-18  Bruno Haible  <bruno@clisp.org>
55522
55523         * modules/stdlib-tests: New file.
55524         * tests/test-stdlib.c: New file.
55525
55526         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55527         (Depends-on): Add stdlib.
55528         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55529         (Includes): Use <stdlib.h> instead of mkstemp.h.
55530         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55531         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55532         * lib/mkstemp.c: Don't include mkstemp.h.
55533         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55534         * lib/stdlib--.h: Don't include mkstemp.h.
55535
55536         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55537         (Depends-on): Add stdlib.
55538         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55539         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55540         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55541         HAVE_MKDTEMP.
55542         * lib/mkdtemp.c: Don't include mkdtemp.h.
55543         * lib/clean-temp.c: Don't include mkdtemp.h.
55544
55545         * modules/exit (Files): Remove lib/exit.h.
55546         (Depends-on): Add stdlib.
55547         (Makefile.am): Remove lib_SOURCES.
55548         (Include): Use <stdlib.h> instead of exit.h.
55549         * lib/argmatch.c: Don't include exit.h.
55550         * lib/execute.c: Likewise.
55551         * lib/pagealign_alloc.c: Likewise.
55552         * lib/pipe.c: Likewise.
55553         * lib/wait-process.c: Likewise.
55554         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55555         * lib/exitfail.c: Likewise.
55556         * lib/savewd.c: Likewise.
55557         * lib/xsetenv.c: Likewise.
55558
55559         * modules/stdlib: New file.
55560         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55561         and extra comments about mkstemp().
55562         * lib/exit.h: Remove file.
55563         * lib/mkdtemp.h: Remove file.
55564         * lib/mkstemp.h: Remove file.
55565         * m4/stdlib_h.m4: New file.
55566         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55567
55568 2007-02-18  Bruno Haible  <bruno@clisp.org>
55569
55570         * modules/math-tests: New file.
55571         * tests/test-math.c: New file.
55572
55573         * modules/math: New file.
55574         * modules/mathl (Files): Remove lib/mathl.h.
55575         (Depends-on): Add math.
55576         (Makefile.am): Don't mention mathl.h.
55577         (Include): Use <math.h> instead of mathl.h.
55578         * lib/math_.h: New file.
55579         * lib/mathl.h: Remove file.
55580         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55581         mathl.h.
55582         * lib/asinl.c: Likewise.
55583         * lib/atanl.c: Likewise.
55584         * lib/ceill.c: Likewise.
55585         * lib/cosl.c: Likewise.
55586         * lib/expl.c: Likewise.
55587         * lib/floorl.c: Likewise.
55588         * lib/frexpl.c: Likewise.
55589         * lib/ldexpl.c: Likewise.
55590         * lib/logl.c: Likewise.
55591         * lib/sincosl.c: Likewise.
55592         * lib/sinl.c: Likewise.
55593         * lib/sqrtl.c: Likewise.
55594         * lib/tanl.c: Likewise.
55595         * lib/trigl.c: Likewise.
55596         * m4/math_h.m4: New file.
55597         * MODULES.html.sh (Mathematics): Add math.
55598
55599 2007-02-17  Bruno Haible  <bruno@clisp.org>
55600
55601         * modules/wctype-tests: New file.
55602         * tests/test-wctype.c: New file.
55603
55604         * modules/wchar-tests: New file.
55605         * tests/test-wchar.c: New file.
55606
55607         * modules/unistd-tests: New file.
55608         * tests/test-unistd.c: New file.
55609
55610         * modules/time-tests: New file.
55611         * tests/test-time.c: New file.
55612
55613         * modules/sysexits-tests: New file.
55614         * tests/test-sysexits.c: New file.
55615
55616         * modules/sys_time-tests: New file.
55617         * tests/test-sys_time.c: New file.
55618
55619         * modules/sys_stat-tests: New file.
55620         * tests/test-sys_stat.c: New file.
55621
55622         * modules/sys_socket-tests: New file.
55623         * tests/test-sys_socket.c: New file.
55624
55625         * modules/sys_select-tests: New file.
55626         * tests/test-sys_select.c: New file.
55627
55628         * modules/string-tests: New file.
55629         * tests/test-string.c: New file.
55630
55631         * modules/stdbool-tests: New file.
55632         * tests/test-stdbool.c: New file.
55633
55634         * modules/netinet_in-tests: New file.
55635         * tests/test-netinet_in.c: New file.
55636
55637         * modules/inttypes-tests: New file.
55638         * tests/test-inttypes.c: New file.
55639
55640         * modules/fcntl-tests: New file.
55641         * tests/test-fcntl.c: New file.
55642
55643         * modules/byteswap-tests: New file.
55644         * tests/test-byteswap.c: New file.
55645
55646         * modules/arpa_inet-tests: New file.
55647         * tests/test-arpa_inet.c: New file.
55648
55649 2007-02-17  Bruno Haible  <bruno@clisp.org>
55650
55651         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55652         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55653         if the corresponding module is not enabled. Emit link warnings if
55654         the function is used nevertheless.
55655         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55656         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55657         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55658         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55659         * modules/inttypes (Depends-on): Add link-warning.
55660         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55661         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55662         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55663         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55664         * modules/imaxdiv (configure.ac): Likewise.
55665         * modules/strtoimax (configure.ac): Likewise.
55666         * modules/strtoumax (configure.ac): Likewise.
55667
55668 2007-02-17  Bruno Haible  <bruno@clisp.org>
55669
55670         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55671         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55672         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55673         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55674
55675 2007-02-17  Bruno Haible  <bruno@clisp.org>
55676
55677         * modules/link-warning: New file.
55678         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55679         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55680         * modules/string (Depends-on): Add link-warning.
55681         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55682         string.h.
55683         * MODULES.html.sh (Support for building libraries and executables): Add
55684         link-warning.
55685
55686 2007-02-17  Bruno Haible  <bruno@clisp.org>
55687
55688         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55689         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55690         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55691         long lines.
55692
55693 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55694             Bruno Haible  <bruno@clisp.org>
55695
55696         * modules/tmpfile: New file.
55697         * lib/tmpfile.c: New file.
55698         * m4/tmpfile.m4: New file.
55699         * MODULES.html.sh (func_all_modules): New section "Input/output".
55700
55701 2007-02-15  Bruno Haible  <bruno@clisp.org>
55702
55703         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55704         (supports_delete_on_close): New function.
55705         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55706
55707 2007-02-14  Bruno Haible  <bruno@clisp.org>
55708
55709         * modules/mbspcasecmp-tests: New file.
55710         * tests/test-mbspcasecmp.sh: New file.
55711         * tests/test-mbspcasecmp.c: New file.
55712
55713         New module mbspcasecmp.
55714         * modules/mbspcasecmp: New file.
55715         * lib/mbspcasecmp.c: New file.
55716         * lib/string_.h (strncasecmp): Change warning message.
55717         (mbspcasecmp): New declaration.
55718         * m4/mbspcasecmp.m4: New file.
55719         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55720         GNULIB_MBSPCASECMP.
55721         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55722         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55723
55724 2007-02-14  Bruno Haible  <bruno@clisp.org>
55725
55726         * modules/mbsncasecmp-tests: New file.
55727         * tests/test-mbsncasecmp.sh: New file.
55728         * tests/test-mbsncasecmp.c: New file.
55729
55730         New module mbsncasecmp.
55731         * modules/mbsncasecmp: New file.
55732         * lib/mbsncasecmp.c: New file.
55733         * lib/string_.h (mbsncasecmp): New declaration.
55734         * m4/mbsncasecmp.m4: New file.
55735         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55736         GNULIB_MBSNCASECMP.
55737         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55738         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55739
55740 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55741
55742         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55743         Verify that it doesn't overlap with our flags.
55744         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55745         do not have the desired effect in multibyte locales; instead, use
55746         mbscasecmp.
55747         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55748         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55749         we don't require GNU fnmatch ourselves (if our users require it, they
55750         should do so explicitly).
55751
55752         Fix regex code so it doesn't rely on strcasecmp.
55753         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55754         Otherwise, include gnulib's langinfo.h.
55755         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55756         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55757         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55758         * modules/regex (FILES): Remove m4/codeset.m4.
55759         (Depends-on): Add localcharset.  Remove strcase.
55760
55761 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55762
55763         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
55764         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
55765
55766 2007-02-13  Bruno Haible  <bruno@clisp.org>
55767
55768         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
55769         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55770
55771 2007-02-12  Bruno Haible  <bruno@clisp.org>
55772
55773         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55774         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
55775         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
55776         time warning rather than a link error.
55777
55778 2007-02-12  Bruno Haible  <bruno@clisp.org>
55779
55780         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
55781         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55782         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55783
55784 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55785
55786         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
55787         args, not 2.
55788
55789 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55790
55791         New module 'time', so that apps can include <time.h> as per
55792         POSIX and GNU instead of separate include files like time_r.h
55793         and timegm.h.  This implementation tries out a simpler approach
55794         for replacing decls in standard include files (as compared to
55795         the string module), somewhat as an experiment.
55796
55797         * config/srclist.txt: Comment out mktime.c for now.
55798         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
55799         since it doesn't apply any more.  Use generic wording instead.
55800         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
55801         'time'.
55802         * lib/time_.h, m4/time_h.m4, modules/time: New files.
55803         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
55804         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
55805         Don't include <sys/types.h>; no longer needed since we assume C89.
55806         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
55807         * lib/strftime.c: Likewise.
55808         * lib/time_r.c: Likewise.
55809         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
55810         * lib/nanosleep.c: Include <time.h> first, to check interface.
55811         * lib/strptime.c: Likewise.
55812         * lib/time_r.c: Likewise.
55813         * lib/timegm.c: Likewise.
55814         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
55815         needed.
55816         * lib/timegm.c: Don't include timegm.h; no longer needed.
55817         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
55818         time.h now handles any problems in that area.
55819         (struct timespec, nanosleep): Remove; time.h now arranges for these.
55820         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
55821         that time.h defines struct timespec.
55822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
55823         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
55824         handles that.
55825         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
55826         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
55827         needed.  Set REPLACE_LOCALTIME.
55828         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
55829         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
55830         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
55831         nanosleep; time_h.m4 now does that.  Don't require
55832         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
55833         module handles this now.
55834         * modules/getdate (Depends-on): Remove timespec.  Add time.
55835         * modules/nanosleep (Depends-on): Likewise.
55836         * modules/stat-time (Depends-on): Likewise.
55837         * modules/nanosleep (Include): Include time.h, not timespec.h.
55838         * modules/strptime (Files): Remove lib/strptime.h.
55839         (Depends-on): Add extensions, time.
55840         (Include): Include time.h, not strptime.h.
55841         * modules/time_r (Files): Remove lib/time_r.h.
55842         (Depends-on): Add time.
55843         (Include): Include time.h, not time_r.h.
55844         * modules/timegm: Likewise.
55845         * modules/timespec (Description): Now does timespec-related decls
55846         of our own, instead of struct timespec itself.
55847         (Depends-on): Add time; remove extensions.
55848         (Maintainer): Add self.
55849         * modules/utimecmp (Depends-on): Add time; remove timespec.
55850         * modules/utimens (Depends-on): Likewise.
55851         * modules/xnanosleep (Depends-on): Likewise.
55852
55853 2007-02-11  Bruno Haible  <bruno@clisp.org>
55854
55855         * lib/c-strstr.c: Include allocsa.h.
55856         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55857         * lib/c-strcasestr.c: Include allocsa.h.
55858         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55859         * lib/strcasestr.c: Include allocsa.h.
55860         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55861         * lib/mbsstr.c: Include allocsa.h.
55862         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55863         allocsa/freesa instead of malloc/free.
55864         * lib/mbscasestr.c: Include allocsa.h.
55865         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55866         allocsa/freesa instead of malloc/free.
55867         * modules/c-strstr (Depends-on): Add allocsa.
55868         * modules/c-strcasestr (Depends-on): Likewise.
55869         * modules/strcasestr (Depends-on): Likewise.
55870         * modules/mbsstr (Depends-on): Likewise.
55871         * modules/mbscasestr (Depends-on): Likewise.
55872
55873 2007-02-11  Bruno Haible  <bruno@clisp.org>
55874
55875         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
55876
55877         * modules/mbsspn-tests: New file.
55878         * tests/test-mbsspn.sh: New file.
55879         * tests/test-mbsspn.c: New file.
55880
55881 2007-02-11  Bruno Haible  <bruno@clisp.org>
55882
55883         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
55884
55885         * modules/mbspbrk-tests: New file.
55886         * tests/test-mbspbrk.sh: New file.
55887         * tests/test-mbspbrk.c: New file.
55888
55889 2007-02-11  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
55892         unneeded cast.
55893
55894         * modules/mbscspn-tests: New file.
55895         * tests/test-mbscspn.sh: New file.
55896         * tests/test-mbscspn.c: New file.
55897
55898 2007-02-11  Bruno Haible  <bruno@clisp.org>
55899
55900         * modules/mbscasecmp-tests: New file.
55901         * tests/test-mbscasecmp.sh: New file.
55902         * tests/test-mbscasecmp.c: New file.
55903
55904 2007-02-11  Bruno Haible  <bruno@clisp.org>
55905
55906         Ensure O(n) worst-case complexity of mbscasestr.
55907         * lib/mbscasestr.c: Include stdbool.h.
55908         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55909         functions.
55910         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
55911         the bookkeeping indicates that it's worth it.
55912         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
55913
55914         * modules/mbscasestr-tests: New file.
55915         * tests/test-mbscasestr1.c: New file.
55916         * tests/test-mbscasestr2.sh: New file.
55917         * tests/test-mbscasestr2.c: New file.
55918         * tests/test-mbscasestr3.sh: New file.
55919         * tests/test-mbscasestr3.c: New file.
55920         * tests/test-mbscasestr4.sh: New file.
55921         * tests/test-mbscasestr4.c: New file.
55922         * m4/locale-tr.m4: New file.
55923
55924 2007-02-11  Bruno Haible  <bruno@clisp.org>
55925
55926         Ensure O(n) worst-case complexity of mbsstr.
55927         * lib/mbsstr.c: Include stdbool.h.
55928         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55929         functions.
55930         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
55931         bookkeeping indicates that it's worth it.
55932         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
55933
55934         * modules/mbsstr-tests: New file.
55935         * tests/test-mbsstr1.c: New file.
55936         * tests/test-mbsstr2.sh: New file.
55937         * tests/test-mbsstr2.c: New file.
55938         * tests/test-mbsstr3.sh: New file.
55939         * tests/test-mbsstr3.c: New file.
55940         * m4/locale-fr.m4: New file.
55941
55942 2007-02-11  Bruno Haible  <bruno@clisp.org>
55943
55944         * lib/mbsrchr.c (mbsrchr): Fix bug.
55945
55946         * modules/mbsrchr-tests: New file.
55947         * tests/test-mbsrchr.sh: New file.
55948         * tests/test-mbsrchr.c: New file.
55949
55950 2007-02-11  Bruno Haible  <bruno@clisp.org>
55951
55952         * lib/mbschr.c (mbschr): Fix bug.
55953
55954         * modules/mbschr-tests: New file.
55955         * tests/test-mbschr.sh: New file.
55956         * tests/test-mbschr.c: New file.
55957         * m4/locale-zh.m4: New file.
55958
55959 2007-02-11  Bruno Haible  <bruno@clisp.org>
55960
55961         Support for copying multibyte string iterators.
55962         * lib/mbiter.h: Include <string.h>.
55963         (mbiter_multi_copy): New function.
55964         (mbi_copy): New macro.
55965         * lib/mbuiter.h: Include <string.h>.
55966         (mbuiter_multi_copy): New function.
55967         (mbui_copy): New macro.
55968
55969 2007-02-11  Bruno Haible  <bruno@clisp.org>
55970
55971         New module mbslen.
55972         * modules/mbslen: New file.
55973         * lib/mbslen.c: New file.
55974         * lib/string_.h (mbslen): New declaration.
55975         * m4/mbslen.m4: New file.
55976         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55977         GNULIB_MBSLEN.
55978         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55979         * MODULES.html.sh (Internationalization functions): Add mbslen.
55980
55981 2007-02-11  Bruno Haible  <bruno@clisp.org>
55982
55983         Ensure O(n) worst-case complexity of strcasestr substitute.
55984         * lib/strcasestr.c: Include stdbool.h.
55985         (knuth_morris_pratt): New function.
55986         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55987         bookkeeping indicates that it's worth it.
55988         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55989
55990         * modules/strcasestr-tests: New file.
55991         * tests/test-strcasestr.c: New file.
55992
55993 2007-02-11  Bruno Haible  <bruno@clisp.org>
55994
55995         Ensure O(n) worst-case complexity of c_strcasestr.
55996         * lib/c-strcasestr.c: Include stdbool.h, string.h.
55997         (knuth_morris_pratt): New function.
55998         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
55999         the bookkeeping indicates that it's worth it.
56000         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
56001
56002         * modules/c-strcasestr-tests: New file.
56003         * tests/test-c-strcasestr.c: New file.
56004
56005 2007-02-11  Bruno Haible  <bruno@clisp.org>
56006
56007         Ensure O(n) worst-case complexity of c_strstr.
56008         * lib/c-strstr.c: Include stdbool.h, string.h.
56009         (knuth_morris_pratt): New function.
56010         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56011         bookkeeping indicates that it's worth it.
56012         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
56013
56014         * lib/c-strstr.c: Complete rewrite for maintainability.
56015
56016         * modules/c-strstr-tests: New file.
56017         * tests/test-c-strstr.c: New file.
56018
56019 2007-02-11  Bruno Haible  <bruno@clisp.org>
56020
56021         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
56022         5.2.1 and earlier, whereby \055 was treated just like the range
56023         delimiter '-'.
56024         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56025
56026 2007-02-08  Bruno Haible  <bruno@clisp.org>
56027
56028         * modules/regex (Depends-on): Add stdbool.
56029         Reported by Dalibor Topic <robilad@kaffe.org>.
56030
56031 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56032
56033         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
56034         Prefer returning from main to exiting from it.
56035         Remove unnecessary parens after sizeof.
56036
56037 2007-02-05  Bruno Haible  <bruno@clisp.org>
56038
56039         New module mbssep.
56040         * modules/mbssep: New file.
56041         * lib/mbssep.c: New file.
56042         * lib/string_.h (strsep): Add a conditional link warning.
56043         (mbssep): New declaration.
56044         * m4/mbssep.m4: New file.
56045         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56046         GNULIB_MBSSEP.
56047         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
56048         * MODULES.html.sh (Internationalization functions): Add mbssep.
56049
56050 2007-02-05  Bruno Haible  <bruno@clisp.org>
56051
56052         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56053         Optimize search in case of 1 delimiter.
56054
56055 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56056
56057         * lib/acl.h: Include sys/types.h before sys/acl.h.
56058
56059 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56060
56061         Merge upstream fix for glibc bugzilla #3957:
56062
56063         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
56064
56065         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
56066         bit for RE_HAT_LISTS_NOT_NEWLINE.
56067         (build_charclass_op): Remove bogus comment.
56068
56069 2007-02-05  Simon Josefsson  <simon@josefsson.org>
56070
56071         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
56072
56073 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56074
56075         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
56076         * lib/memmem.c [!defined _LIBC]: Include config.h.
56077
56078 2007-02-04  Bruno Haible  <bruno@clisp.org>
56079
56080         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56081         warning message.
56082
56083 2007-02-04  Bruno Haible  <bruno@clisp.org>
56084
56085         New module mbstok_r.
56086         * modules/mbstok_r: New file.
56087         * lib/mbstok_r.c: New file.
56088         * lib/string_.h (strtok_r): Change argument names to match the
56089         comments. Add a conditional link warning.
56090         (mbstok_r): New declaration.
56091         * m4/mbstok_r.m4: New file.
56092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56093         GNULIB_MBSTOK_R.
56094         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56095         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56096
56097 2007-02-04  Bruno Haible  <bruno@clisp.org>
56098
56099         New module mbsspn.
56100         * modules/mbsspn: New file.
56101         * lib/mbsspn.c: New file.
56102         * lib/string_.h (strspn): Add a conditional link warning.
56103         (mbsspn): New declaration.
56104         * m4/mbsspn.m4: New file.
56105         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56106         GNULIB_MBSSPN.
56107         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56108         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56109
56110 2007-02-04  Bruno Haible  <bruno@clisp.org>
56111
56112         New module mbspbrk.
56113         * modules/mbspbrk: New file.
56114         * lib/mbspbrk.c: New file.
56115         * lib/string_.h (strpbrk): Add a conditional link warning.
56116         (mbspbrk): New declaration.
56117         * m4/mbspbrk.m4: New file.
56118         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56119         GNULIB_MBSPBRK.
56120         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56121         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56122
56123 2007-02-04  Bruno Haible  <bruno@clisp.org>
56124
56125         New module mbscspn.
56126         * modules/mbscspn: New file.
56127         * lib/mbscspn.c: New file.
56128         * lib/string_.h (strcspn): Add a conditional link warning.
56129         (mbscspn): New declaration.
56130         * m4/mbscspn.m4: New file.
56131         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56132         GNULIB_MBSCSPN.
56133         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56134         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56135
56136 2007-02-04  Bruno Haible  <bruno@clisp.org>
56137
56138         New module mbscasestr, reduced goal of strcasestr.
56139         * modules/mbscasestr: New file.
56140         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56141         (mbscasestr): Renamed from strcasestr.
56142         * lib/strcasestr.c: Don't include mbuiter.h.
56143         (strcasestr): Remove support for multibyte locales.
56144         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56145         Change the conditional link warning.
56146         (mbscasestr): New declaration.
56147         * m4/mbscasestr.m4: New file.
56148         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56149         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56150         REPLACE_STRCASESTR.
56151         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56152         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56153         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56154         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56155         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56156         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56157         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56158         (Depends-on): Remove mbuiter.
56159         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56160
56161 2007-02-04  Bruno Haible  <bruno@clisp.org>
56162
56163         Simplify handling of strncasecmp.
56164         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56165         the conditional link warning.
56166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56167         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56168         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56169         * modules/strcase (configure.ac): Don't invoke
56170         gl_STRING_MODULE_INDICATOR.
56171         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56172
56173 2007-02-04  Bruno Haible  <bruno@clisp.org>
56174
56175         New module mbscasecmp, reduced goal of strcasecmp.
56176         * modules/mbscasecmp: New file.
56177         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56178         (mbscasecmp): Renamed from strcasecmp.
56179         * lib/strcasecmp.c: Don't include mbuiter.h.
56180         (strcasecmp): Remove support for multibyte locales.
56181         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56182         Change the conditional link warning.
56183         (mbscasecmp): New declaration.
56184         * m4/mbscasecmp.m4: New file.
56185         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56186         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56187         REPLACE_STRCASECMP.
56188         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56189         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56190         GNULIB_MBSCASECMP.
56191         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56192         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56193         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56194         (Depends-on): Remove mbuiter.
56195         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56196
56197 2007-02-04  Bruno Haible  <bruno@clisp.org>
56198
56199         New module mbsstr. Remove module strstr.
56200         * modules/mbsstr: New file.
56201         * modules/strstr: Remove file.
56202         * lib/mbsstr.c: Renamed from lib/strstr.c.
56203         (mbsstr): Renamed from strstr.
56204         * lib/string_.h (strstr): Remove declaration. Change the conditional
56205         link warning.
56206         (mbsstr): New declaration.
56207         * m4/mbsstr.m4: New file.
56208         * m4/strstr.m4: Remove file.
56209         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56210         REPLACE_STRSTR.
56211         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56212         Don't initialize GNULIB_STRSTR.
56213         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56214         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56215         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56216         (Support for systems lacking ANSI C 89): Remove strstr.
56217
56218 2007-02-04  Bruno Haible  <bruno@clisp.org>
56219
56220         New module mbsrchr.
56221         * modules/mbsrchr: New file.
56222         * lib/mbsrchr.c: New file.
56223         * lib/string_.h (strrchr): Add a conditional link warning.
56224         (mbsrchr): New declaration.
56225         * m4/mbsrchr.m4: New file.
56226         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56227         GNULIB_MBSRCHR.
56228         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56229         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56230
56231 2007-02-04  Bruno Haible  <bruno@clisp.org>
56232
56233         New module mbschr.
56234         * modules/mbschr: New file.
56235         * lib/mbschr.c: New file.
56236         * lib/string_.h (strchr): Add a conditional link warning.
56237         (mbschr): New declaration.
56238         * m4/mbschr.m4: New file.
56239         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56240         GNULIB_MBSCHR.
56241         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56242         * MODULES.html.sh (Internationalization functions): Add mbschr.
56243
56244 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56245
56246         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56247
56248         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56249
56250 2007-02-04  Bruno Haible  <bruno@clisp.org>
56251
56252         New module description section 'configure.ac-early'.
56253         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56254         (func_get_autoconf_early_snippet): New function.
56255         (func_import, func_create_testdir): Use it. Remove special cases for
56256         modules 'extensions' and 'lock'.
56257         * modules/extensions (configure.ac-early): Require
56258         gl_USE_SYSTEM_EXTENSIONS.
56259         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56260
56261 2007-02-04  Bruno Haible  <bruno@clisp.org>
56262
56263         Make use of gcj-4.3's -fsource and -ftarget option.
56264         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56265         and if so try the options -fsource and -ftarget.
56266         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56267         source_version, ftarget_option, target_version arguments.
56268         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56269         (is_envjavac_oldgcj_14_14_usable): Renamed from
56270         is_envjavac_gcj_14_14_usable.
56271         (is_envjavac_oldgcj_14_13_usable): Renamed from
56272         is_envjavac_gcj_14_13_usable.
56273         (is_gcj_present): Update.
56274         (is_gcj_43, is_gcj43_usable): New functions.
56275         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56276         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56277         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56278         try the options -fsource and -ftarget.
56279
56280 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56281
56282         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56283         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56284         larger value.
56285
56286 2007-02-03  Jim Meyering  <jim@meyering.net>
56287
56288         Give tools a better chance to allocate space for very large buffers.
56289         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56290
56291         Make pwd and readlink work also when run with an unreadable parent dir
56292         on systems with openat support.
56293         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56294         provided getcwd function, even when we have openat support.
56295         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56296
56297 2007-02-02  Bruno Haible  <bruno@clisp.org>
56298
56299         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56300         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56301         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56302         portability problems if one of these functions is only used on specific
56303         platforms.
56304         Reported by Paul Eggert.
56305
56306 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56307
56308         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56309         is causing more trouble than it's curing.
56310         * lib/regex_internal.h (__mempcpy): Remove.
56311         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56312         (and make the code a tad smaller to boot).
56313         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56314
56315 2007-02-02  Jim Meyering  <jim@meyering.net>
56316
56317         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56318         section, not in the Makefile.am: one.
56319
56320 2007-02-02  Eric Blake  <ebb9@byu.net>
56321
56322         * lib/strchrnul.c: Always include config.h first.
56323
56324         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56325         gnulib strstr is not necessary here.
56326
56327 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56328
56329         * m4/socklen.m4: Fix typo.
56330
56331 2007-02-02  Eric Blake  <ebb9@byu.net>
56332
56333         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56334         * modules/netinet_in (Makefile.am): Likewise.
56335
56336 2007-02-01  Bruno Haible  <bruno@clisp.org>
56337
56338         * lib/string_.h (GL_LINK_WARNING): New macro.
56339         (strcasecmp, strstr, strcasestr): If provided by the system,
56340         conditionally define as a macro that leads to a warning instead of to
56341         an error.
56342         (strncasecmp): Conditionally define as a macro that leads to a warning.
56343
56344 2007-02-01  Karl Berry  <karl@gnu.org>
56345
56346         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56347
56348 2007-02-01  Bruno Haible  <bruno@clisp.org>
56349
56350         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56351         renamings.
56352
56353 2007-02-01  Eric Blake  <ebb9@byu.net>
56354
56355         * modules/regex (Depends-on): Revert dependence on mempcpy.
56356         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56357         module's definition of mempcpy.
56358         Reported by Paul Eggert.
56359
56360 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56361
56362         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56363         the symbol XYZ before redefining it.  This fixes a problem with
56364         programs that don't use XYZ, when compiled on systems that define
56365         XYZ to something else.
56366
56367 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56368
56369         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56370         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56371         writeable to group or other and (2) is intended to have a special
56372         mode bit that is set or cleared.  In such a case, the directory
56373         should be neither group- nor other-writeable until the special
56374         mode bits are right.
56375
56376 2007-01-31  Eric Blake  <ebb9@byu.net>
56377
56378         * modules/mountlist (Depends-on): Add strstr.
56379
56380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56381         bug.
56382         * modules/string (Makefile.am): Remove redundant replacement.
56383         * modules/regex (Depends-on): Add mempcpy.
56384
56385 2007-01-31  Bruno Haible  <bruno@clisp.org>
56386
56387         New module description field 'Link'.
56388         * gnulib-tool (func_usage): Document --extract-link-directive.
56389         (sed_extract_prog): Recognize 'Link' directive.
56390         (func_get_link_directive): New function.
56391         (func_import): Show summary of link directives.
56392         Handle --extract-link-directive option.
56393         * modules/acl (Link): New section.
56394         * modules/clock-time (Link): New section.
56395         * modules/euidaccess (Link): New section.
56396         * modules/gettext (Link): New section.
56397         * modules/iconv (Link): New section.
56398         * modules/lock (Link): New section.
56399         * modules/nanosleep (Link): New section.
56400         * modules/readline (Link): New section.
56401
56402 2007-01-27  Bruno Haible  <bruno@clisp.org>
56403
56404         Enforce the use of gnulib modules for unportable <string.h> functions.
56405         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56406         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56407         (gl_HEADER_STRING_H_BODY): Require it.
56408         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56409         the symbol XYZ to one that gives a link error.
56410         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56411         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56412         * modules/mempcpy (configure.ac): Likewise.
56413         * modules/memrchr (configure.ac): Likewise.
56414         * modules/stpcpy (configure.ac): Likewise.
56415         * modules/stpncpy (configure.ac): Likewise.
56416         * modules/strcase (configure.ac): Likewise.
56417         * modules/strcasestr (configure.ac): Likewise.
56418         * modules/strchrnul (configure.ac): Likewise.
56419         * modules/strdup (configure.ac): Likewise.
56420         * modules/strndup (configure.ac): Likewise.
56421         * modules/strnlen (configure.ac): Likewise.
56422         * modules/strpbrk (configure.ac): Likewise.
56423         * modules/strsep (configure.ac): Likewise.
56424         * modules/strstr (configure.ac): Likewise.
56425         * modules/strtok_r (configure.ac): Likewise.
56426
56427 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56428
56429         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56430
56431 2007-01-30  Jim Meyering  <jim@meyering.net>
56432
56433         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56434
56435 2007-01-29  Bruno Haible  <bruno@clisp.org>
56436
56437         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56438         * lib/execute.c: Likewise.
56439         * lib/pipe.c: Likewise.
56440         * lib/printf-args.h: Likewise.
56441         * lib/printf-args.c: Likewise.
56442         * lib/printf-parse.c: Likewise.
56443         * lib/vasnprintf.c: Likewise.
56444
56445 2007-01-29  Eric Blake  <ebb9@byu.net>
56446
56447         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56448         declaration.
56449
56450 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56451
56452         * lib/strptime.h (strptime): Use 'restrict' for args where
56453         POSIX requires this.
56454         * lib/strptime.c (strptime): Likewise.
56455         Change license notice from LGPL to GPL, since gnulib-tool will
56456         change this as needed.
56457         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56458         defined.
56459         Include "strptime.h" first, to check interface.
56460         Do not #undef _LIBC and _NL_CURRENT.
56461         Do not include <stdlib.h>; no longer needed.
56462         Include "time_r.h" and declare ptime_locale_status
56463         only if _LIBC is not defined.
56464         (__P): Remove unused macro.
56465         (match_string): Bring back glibc version, but use it only if _LIBC
56466         is defined.
56467         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56468         Remove unnecessary assertion and abort() call.
56469         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56470         * m4/strptime.m4: Fix serial number comment.
56471         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56472         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56473         (Depends-on): Add time_r.
56474
56475 2007-01-29  Bruno Haible  <bruno@clisp.org>
56476
56477         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56478         strptime.
56479         * modules/strptime (Depends-on): Add stdbool.
56480         * lib/strptime.h: Include <time.h> always. Add comments.
56481
56482 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56483
56484         * modules/strptime: New file.
56485         * lib/strptime.h: New file.
56486         * lib/strptime.c: New file.
56487         * m4/strptime.m4: New file.
56488
56489 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56490
56491         * MODULES.html.sh: New module mpsort.
56492         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56493
56494         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56495         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56496         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56497         All uses changed.
56498         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56499         All uses changed.
56500         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56501         to _Restrict_.
56502         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56503         the parameter matches the prototype.
56504
56505 2007-01-28  Jim Meyering  <jim@meyering.net>
56506
56507         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56508         sys/time.h here, reverting that part of the previous patch:
56509         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56510
56511 2007-01-28  Bruno Haible  <bruno@clisp.org>
56512
56513         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56514         value of $(SYS_TIME_H).
56515         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56516         remove it conditionally, too. [added by Jim Meyering]
56517         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56518         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56519         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56520         GETTIMEOFDAY_REPLACEMENT to 1.
56521
56522 2007-01-28  Bruno Haible  <bruno@clisp.org>
56523
56524         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56525         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56526         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56527         Set UNISTD_H instead of UNISTD_H2.
56528         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56529
56530 2007-01-28  Bruno Haible  <bruno@clisp.org>
56531
56532         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56533         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56534
56535 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56536
56537         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56538         (func_create_testdir): Ensure C locale for `grep' and `tr'
56539         character ranges.
56540         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56541         ACLOCAL_AMFLAGS parsing state machine.
56542
56543 2007-01-27  Bruno Haible  <bruno@clisp.org>
56544
56545         * modules/unistr/base: Update.
56546
56547 2007-01-27  Bruno Haible  <bruno@clisp.org>
56548
56549         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56550         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56551         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56552         modules/unistr/u32-mbtouc.
56553         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56554         * lib/unistr.h: Update.
56555         * lib/linebreak.c: Update.
56556         * modules/unistr/u32-mbtouc: Renamed from
56557         modules/unistr/u32-mbtouc-safe.
56558         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56559         * lib/unistr.h: Update.
56560         * lib/unistr/u32-to-u8.c: Update.
56561         * lib/unistr/u32-to-u16.c: Update.
56562
56563 2007-01-27  Bruno Haible  <bruno@clisp.org>
56564
56565         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56566         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56567         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56568         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56569         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56570         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56571         modules/unistr/u16-mbtouc.
56572         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56573         * lib/unistr.h: Update.
56574         * lib/linebreak.c: Update.
56575         * modules/linebreak: Update.
56576         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56577         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56578         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56579         * modules/unistr/u16-mbtouc: Renamed from
56580         modules/unistr/u16-mbtouc-safe.
56581         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56582         * lib/unistr.h: Update.
56583         * lib/unistr/u16-to-u8.c: Update.
56584         * modules/unistr/u16-to-u8: Update.
56585         * lib/unistr/u16-to-u32.c: Update.
56586         * modules/unistr/u16-to-u32: Update.
56587
56588 2007-01-27  Bruno Haible  <bruno@clisp.org>
56589
56590         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56591         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56592         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56593         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56594         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56595         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56596         modules/unistr/u8-mbtouc.
56597         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56598         * lib/unistr.h: Update.
56599         * lib/striconveh.c: Update.
56600         * modules/striconveh: Update.
56601         * lib/linebreak.c: Update.
56602         * modules/linebreak: Update.
56603         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56604         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56605         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56606         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56607         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56608         * lib/unistr.h: Update.
56609         * lib/striconveh.c: Update.
56610         * modules/striconveh: Update.
56611         * lib/unistr/u8-to-u16.c: Update.
56612         * modules/unistr/u8-to-u16: Update.
56613         * lib/unistr/u8-to-u32.c: Update.
56614         * modules/unistr/u8-to-u32: Update.
56615
56616 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56617
56618         Sync from Libtool.
56619         * lib/argz.c: Do not include strings.h nor memory.h, include
56620         string.h unconditionally.  Patch by Simon Josefsson.
56621
56622 2007-01-27  Bruno Haible  <bruno@clisp.org>
56623
56624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56625         from gl_HEADER_STRING_H_BODY.
56626         (gl_HEADER_STRING_H_BODY): Require it.
56627         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56628         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56629         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56630         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56631         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56632         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56633         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56634         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56635         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56636         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56637         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56638         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56639         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56640         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56641         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56642
56643 2007-01-27  Bruno Haible  <bruno@clisp.org>
56644
56645         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56646         check_PROGRAMS into noinst_PROGRAMS.
56647         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56648         check_PROGRAMS in this case.
56649         (func_import): Set for_test to false.
56650         (func_create_testdir): Set for_test to true.
56651
56652 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56653             Bruno Haible  <bruno@clisp.org>
56654
56655         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56656         (Depends-on): Add string.
56657         (Includes): Use <string.h> instead of strcasestr.h.
56658         * modules/string (Makefile.am): Also substitute the value of
56659         REPLACE_STRCASESTR.
56660         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56661         assume strcasestr is declared in <string.h> not <strings.h>. Also
56662         set REPLACE_STRCASESTR.
56663         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56664         REPLACE_STRCASESTR.
56665         * lib/strcasestr.h: Remove file.
56666         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56667         * lib/string_.h (strcasestr): New declaration.
56668
56669 2007-01-27  Bruno Haible  <bruno@clisp.org>
56670
56671         * lib/string_.h: Use 'extern'.
56672
56673 2007-01-27  Jim Meyering  <jim@meyering.net>
56674
56675         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56676         of set-but-not-used local, "q".
56677
56678         * lib/mempcpy.c: Include <config.h> before <string.h>.
56679         This fixes a compilation error on HP-UX, due to the system's
56680         "restrict"-using mempcpy prototype.
56681
56682 2007-01-26  Bruno Haible  <bruno@clisp.org>
56683
56684         Small optimization.
56685         * lib/javacomp.c: Include c-strstr.h.
56686          (is_envjavac_gcj): Use c_strstr instead of strstr.
56687         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56688
56689 2007-01-26  Bruno Haible  <bruno@clisp.org>
56690
56691         * MODULES.html.sh (Unicode string functions): Add the new modules.
56692
56693         * modules/uniconv/u32-strconv-to-locale: New file.
56694         * lib/uniconv/u32-strconv-to-locale.c: New file.
56695
56696         * modules/uniconv/u16-strconv-to-locale: New file.
56697         * lib/uniconv/u16-strconv-to-locale.c: New file.
56698
56699         * modules/uniconv/u8-strconv-to-locale: New file.
56700         * lib/uniconv/u8-strconv-to-locale.c: New file.
56701
56702         * modules/uniconv/u32-strconv-from-locale: New file.
56703         * lib/uniconv/u32-strconv-from-locale.c: New file.
56704
56705         * modules/uniconv/u16-strconv-from-locale: New file.
56706         * lib/uniconv/u16-strconv-from-locale.c: New file.
56707
56708         * modules/uniconv/u8-strconv-from-locale: New file.
56709         * lib/uniconv/u8-strconv-from-locale.c: New file.
56710
56711         * modules/uniconv/u32-strconv-to-enc: New file.
56712         * lib/uniconv/u32-strconv-to-enc.c: New file.
56713         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56714         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56715
56716         * modules/uniconv/u16-strconv-to-enc: New file.
56717         * lib/uniconv/u16-strconv-to-enc.c: New file.
56718         * lib/uniconv/u-strconv-to-enc.h: New file.
56719         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56720         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56721
56722         * modules/uniconv/u8-strconv-to-enc: New file.
56723         * lib/uniconv/u8-strconv-to-enc.c: New file.
56724         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56725         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56726
56727         * modules/uniconv/u32-strconv-from-enc: New file.
56728         * lib/uniconv/u32-strconv-from-enc.c: New file.
56729         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56730         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56731
56732         * modules/uniconv/u16-strconv-from-enc: New file.
56733         * lib/uniconv/u16-strconv-from-enc.c: New file.
56734         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56735         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56736
56737         * modules/uniconv/u8-strconv-from-enc: New file.
56738         * lib/uniconv/u8-strconv-from-enc.c: New file.
56739         * lib/uniconv/u-strconv-from-enc.h: New file.
56740         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56741         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56742
56743         * modules/uniconv/u32-conv-from-enc: New file.
56744         * lib/uniconv/u32-conv-from-enc.c: New file.
56745         * modules/uniconv/u32-conv-from-enc-tests: New file.
56746         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56747
56748         * modules/uniconv/u16-conv-from-enc: New file.
56749         * lib/uniconv/u16-conv-from-enc.c: New file.
56750         * lib/uniconv/u-conv-from-enc.h: New file.
56751         * modules/uniconv/u16-conv-from-enc-tests: New file.
56752         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56753
56754         * modules/uniconv/u8-conv-from-enc: New file.
56755         * lib/uniconv/u8-conv-from-enc.c: New file.
56756         * modules/uniconv/u8-conv-from-enc-tests: New file.
56757         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56758
56759         * modules/uniconv/base: New file.
56760         * lib/uniconv.h: New file.
56761
56762 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56763
56764         * doc/gnulib-tool.texi (Initial import): Update to match current
56765         behavior with strdup module.
56766         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
56767         * lib/memmem.h: Remove; all uses removed.  This is now done
56768         by <string.h>.
56769         * lib/mempcpy.h: Likewise.
56770         * lib/memrchr.h: Likewise.
56771         * lib/stpcpy.h: Likewise.
56772         * lib/stpncpy.h: Likewise.
56773         * lib/strcase.h: Likewise.
56774         * lib/strchrnul.h: Likewise.
56775         * lib/strdup.h: Likewise.
56776         * lib/strndup.h: Likewise.
56777         * lib/strnlen.h: Likewise.
56778         * lib/strpbrk.h: Likewise.
56779         * lib/strsep.h: Likewise.
56780         * lib/strstr.h: Likewise.
56781         * lib/strtok_r.h: Likewise.
56782         * lib/string_.h: New file.
56783         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
56784         Rely on <string.h> instead.
56785         * lib/canon-host.c: Likewise.
56786         * lib/chdir-long.c: Likewise.
56787         * lib/concatpath.c: Likewise.
56788         * lib/exclude.c: Likewise.
56789         * lib/fchdir.c: Likewise.
56790         * lib/getaddrinfo.c: Likewise.
56791         * lib/getcwd.c: Likewise.
56792         * lib/getsubopt.c: Likewise.
56793         * lib/glob.c: Likewise.
56794         * lib/hard-locale.c: Likewise.
56795         * lib/iconvme.c: Likewise.
56796         * lib/javacomp.c: Likewise.
56797         * lib/mempcpy.c: Likewise.
56798         * lib/memrchr.c: Likewise.
56799         * lib/regex_internal.h: Likewise.
56800         * lib/stpncpy.c: Likewise.
56801         * lib/strcasecmp.c: Likewise.
56802         * lib/strchrnul.c: Likewise.
56803         * lib/strdup.c: Likewise.
56804         * lib/striconv.c: Likewise.
56805         * lib/striconveh.c: Likewise.
56806         * lib/striconveha.c: Likewise.
56807         * lib/strncasecmp.c: Likewise.
56808         * lib/strndup.c: Likewise.
56809         * lib/strnlen.c: Likewise.
56810         * lib/strsep.c: Likewise.
56811         * lib/strstr.c: Likewise.
56812         * lib/strtok_r.c: Likewise.
56813         * lib/userspec.c: Likewise.
56814         * lib/w32spawn.h: Likewise.
56815         * lib/xstrndup.c: Likewise.
56816         * lib/mountlist.c (strstr): Remove decl.
56817         * m4/string_h.m4: New file.
56818         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
56819         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
56820         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
56821         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
56822         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
56823         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
56824         Set REPLACE_STRCASECMP if necessary.
56825         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
56826         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
56827         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
56828         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
56829         HAVE_DECL_STRDUP if necessary.
56830         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
56831         since gl_FUNC_STRNDUP does that now.
56832         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
56833         Check for decl here...
56834         (gl_PREREQ_STRNLEN): ... not here.
56835         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
56836         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
56837         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
56838         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
56839         necessary.
56840         * modules/string: New file.
56841         * modules/memmem (Files): Remove special-purpose include file.
56842         (Depends-on): Add string.
56843         (Include): Include <string.h>, not the removed file.
56844         * modules/mempcpy: Likewise.
56845         * modules/memrchr: Likewise.
56846         * modules/stpcpy: Likewise.
56847         * modules/stpncpy: Likewise.
56848         * modules/strcase: Likewise.
56849         * modules/strchrnul: Likewise.
56850         * modules/strdup: Likewise.
56851         * modules/strndup: Likewise.
56852         * modules/strnlen: Likewise.
56853         * modules/strpbrk: Likewise.
56854         * modules/strsep: Likewise.
56855         * modules/strstr: Likewise.
56856         * modules/strtok_r: Likewise.
56857         * tests/test-dirname.c: Don't include "strdup.h", since
56858         <string.h> now suffices.
56859         * tests/test-memmem.c: Don't include "memmem.h", since
56860         <string.h> now suffices.
56861
56862 2007-01-25  Bruno Haible  <bruno@clisp.org>
56863
56864         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
56865         *resultp is 0.
56866
56867         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
56868         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
56869         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
56870         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
56871
56872         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
56873         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
56874         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
56875         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
56876         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
56877         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
56878
56879 2007-01-24  Bruno Haible  <bruno@clisp.org>
56880
56881         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
56882         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
56883         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
56884         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
56885         gl_FUNC_FTS_CORE.
56886         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
56887         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
56888         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56889         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
56890         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
56891         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
56892         gl_FUNC_FCHOWNAT.
56893         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
56894         gl_FUNC_STRFTIME.
56895         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
56896         Reported by Ralf Wildenhues.
56897
56898 2007-01-24  Bruno Haible  <bruno@clisp.org>
56899
56900         Drop AC_REQUIRE calls that are redundant with the module dependencies.
56901         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
56902         gl_GETADDRINFO.
56903         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
56904         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
56905         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
56906
56907 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
56908
56909         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
56910         Don't use 'exit'; just return from 'main'.
56911         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
56912
56913         * lib/fnmatch_.h: Readjust white space and comments to match
56914         glibc, to avoid spurious diffs.
56915
56916 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56917
56918         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
56919         2004-12-01 change by Jakub Jelinek, since this code won't compile
56920         if !LIBC.  Problem reported by Bob Proulx.
56921
56922 2007-01-23  Bruno Haible  <bruno@clisp.org>
56923
56924         * lib/striconveh.c: Include c-strcaseeq.h.
56925         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
56926         * modules/striconveh (Depends-on): Add c-strcaseeq.
56927
56928 2007-01-23  Bruno Haible  <bruno@clisp.org>
56929
56930         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
56931
56932         * modules/c-strcaseeq: New file.
56933         * lib/c-strcaseeq.h: New file.
56934
56935         * modules/streq: New file.
56936         * lib/streq.h: New file.
56937
56938 2007-01-23  Bruno Haible  <bruno@clisp.org>
56939
56940         * modules/striconveha-tests: New file.
56941         * tests/test-striconveha.c: New file.
56942
56943         * lib/striconveha.h: Include <stdbool.h>.
56944         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
56945         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
56946         (mem_iconveha_notranslit): Renamed from mem_iconveha.
56947         (mem_iconveha): New function.
56948         (str_iconveha_notranslit): Renamed from str_iconveha.
56949         (str_iconveha): New function.
56950         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
56951         c-strcase.
56952
56953 2007-01-23  Bruno Haible  <bruno@clisp.org>
56954
56955         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56956         encodings without forgiving before trying any encoding with handler.
56957         (str_iconveha): Try all encodings without forgiving before trying any
56958         encoding with handler.
56959
56960 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56961
56962         Import the following changes from libc.
56963
56964         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56965
56966         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56967
56968         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56969
56970         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56971         normal_bracket label.
56972
56973         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56974
56975         [BZ #361]
56976         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56977         to normal_bracket after fetching the next character.
56978
56979 2007-01-22  Bruno Haible  <bruno@clisp.org>
56980
56981         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56982         argument.
56983         * lib/striconveh.c (iconv_carefully_1): New function.
56984         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56985         argument.
56986         (str_cd_iconveh): Update.
56987         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56988         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56989         * tests/test-striconveh.c (MAGIC): New macro.
56990         (new_offsets): New function.
56991         (main): Test call with and without offsets.
56992
56993 2007-01-22  Bruno Haible  <bruno@clisp.org>
56994
56995         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
56996         * modules/sys_select (Makefile.am): Likewise.
56997         * modules/sys_socket (Makefile.am): Likewise.
56998         * modules/sys_time (Makefile.am): Likewise.
56999
57000 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57001
57002         * modules/gettimeofday (License): Change from GPL to LGPL, since
57003         gettimeofday is a library function.
57004
57005 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57006
57007         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
57008
57009 2007-01-21  Bruno Haible  <bruno@clisp.org>
57010
57011         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
57012
57013 2007-01-21  Bruno Haible  <bruno@clisp.org>
57014
57015         * modules/striconveha: New file.
57016         * lib/striconveha.h: New file.
57017         * lib/striconveha.c: New file.
57018         * MODULES.html.sh (Internationalization functions): Add striconveha.
57019         * lib/striconv.c (str_iconv): Optimize the case of an empty input
57020         string.
57021         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
57022
57023 2007-01-21  Bruno Haible  <bruno@clisp.org>
57024
57025         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
57026         * lib/striconveh.c (str_iconveh): Likewise.
57027
57028 2007-01-21  Bruno Haible  <bruno@clisp.org>
57029
57030         * lib/striconveh.h (mem_iconveh): New declaration.
57031         * lib/striconveh.c (mem_iconveh): New function.
57032         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
57033
57034 2007-01-21  Bruno Haible  <bruno@clisp.org>
57035
57036         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
57037
57038         * lib/striconveh.h (mem_cd_iconveh): Change specification.
57039         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
57040         original result buffer.
57041         (str_cd_iconveh): Update.
57042         * tests/test-striconveh.c (main): Update.
57043
57044         * lib/striconv.h (mem_cd_iconv): Change specification.
57045         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
57046         result buffer.
57047         (str_cd_iconv): Update.
57048         * tests/test-striconv.c (main): Update.
57049
57050 2007-01-21  Bruno Haible  <bruno@clisp.org>
57051
57052         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57053
57054 2007-01-20  Jim Meyering  <jim@meyering.net>
57055
57056         * lib/userspec.c (parse_with_separator): If a user or group string
57057         starts with "+", skip the corresponding name-to-ID look-up, since
57058         such a look-up must fail: user and group names may not include "+".
57059
57060 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57061
57062         * lib/poll.c: Include sys/time.h and time.h unconditionally,
57063         since we now assume the sys_time module.
57064         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
57065         check for sys/time.h; no longer needed.
57066         * modules/poll (Depends-on): Depend on sys_time.
57067
57068 2007-01-18  Bruno Haible  <bruno@clisp.org>
57069
57070         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
57071         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57072
57073         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
57074         gettimeofday.
57075
57076         * tests/test-gettimeofday.c: Include <time.h>.
57077         (dummy): Remove variable.
57078
57079         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
57080         gl_HEADER_SYS_TIME_H.
57081         (gl_HEADER_SYS_TIME_H): New macro.
57082
57083         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
57084         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57085         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
57086         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57087         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57088         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57089         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57090         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57091         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57092         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57093         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57094
57095         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57096         last change; it caused a compilation error when cross-compiling to
57097         Cygwin.
57098
57099 2007-01-18  Jim Meyering  <jim@meyering.net>
57100
57101         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57102         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57103         than the race-prone "test -d sys || mkdir sys".
57104         (configure.ac): Use AC_PROG_MKDIR_P.
57105         * modules/sys_select: Likewise.
57106         * modules/sys_socket: Likewise.
57107         * modules/sys_time: Likewise.
57108
57109 2007-01-18  Eric Blake  <ebb9@byu.net>
57110
57111         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57112         replace gettimeofday.
57113         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57114         name, to avoid infinite recursion.
57115
57116 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57117
57118         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57119         module sys_time.
57120         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57121         assume timespec.h defines struct timeval.
57122         * lib/settime.c: Likewise.
57123         * lib/utimens.c: Likewise.
57124         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57125         since we now assume the gettimeofday module.
57126         * lib/tempname.c (__gen_tempname): Likewise.
57127         * lib/gettimeofday.h: Remove.
57128         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57129         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57130         Include <time.h>, for 'time()'.
57131         (localtime_buffer_addr): Also use this workaround if
57132         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57133         to simplify the uses.  All uses changed.
57134         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57135         that #undef is inside {}, and 'const' follows type name consistently.
57136         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57137         (gettimeofday): Do not use the maximum possible value for
57138         tv->tv_usec, since that might break usages other than ls.c.
57139         Instead, we'll leave ls.c alone.  This undoes today's patch
57140         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57141         we've never observed the problem but might as well keep the
57142         canary.
57143         * lib/nanosleep.c: Include timespec.h first, for interface check.
57144         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57145         now assume the sys_time module.
57146         * lib/tempname.c: Likewise.
57147         * lib/timespec.h: Likewise.
57148         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57149         needed.
57150         * lib/strftime.c: Likewise.
57151         * lib/timespec.h: Likewise.
57152         * lib/posixtm.c: Include posixtm.h first, for interface check.
57153         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57154         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57155         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57156         * lib/sys_time_.h: New file.
57157         * lib/timespec.h (struct timespec): Use long int, not long.
57158         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57159         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57160         Remove obsolescent call to AC_HEADER_TIME.
57161         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57162         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57163         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57164         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57165         Likewise.
57166         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57167         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57168         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57169         into the sys_time module.  Check for gettimeofday just once.
57170         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57171         for gettimeofday signature to just check the signature.  Merely
57172         compile it, since linking doesn't test signature.  Improve test for
57173         whether gettimeofday.o is actually needed.
57174         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57175         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57176         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57177         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57178         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57179         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57180         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57181         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57182         than worrying about sys/time.h.
57183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57184         Don't bother worrying about TIME_WITH_SYS_TIME.
57185         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57186         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57187         * m4/sys_time_h.m4: New file.
57188         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57189         Don't include sys/time.h.  Return from main rather than exiting.
57190         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57191         all uses changed.
57192         * modules/gethrxtime (Depends-on): Add sys_time.
57193         * modules/gettime (Depends-on): Likewise.
57194         * modules/gettimeofday (Depends-on): Likewise.
57195         * modules/nanosleep (Depends-on): Likewise.
57196         * modules/settime (Depends-on): Likewise.
57197         * modules/tempname (Depends-on): Likewise.
57198         * modules/utimens (Depends-on): Likewise.
57199         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57200         (Include): Change back to <sys/time.h>.
57201         (Maintainer): Add self.
57202         * modules/sys_time: New file.
57203         * modules/tempname (Depends-on): Add gettimeofday.
57204         * tests/test-gettimeofday.c: Include <sys/time.h>
57205         rather than gettimeofday.h.
57206
57207 2007-01-17  Bruno Haible  <bruno@clisp.org>
57208
57209         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57210         the license default to GPL.
57211         (func_create_testdir): Don't complain if a module is LGPL and its
57212         tests module depends on GPLed modules.
57213
57214 2007-01-17  Bruno Haible  <bruno@clisp.org>
57215
57216         * lib/gettimeofday.c (gettimeofday): Add code for the case
57217         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57218         maximum possible value for tv->tv_usec, rather than the minimum one.
57219
57220 2005-10-08  Martin Lambers  <marlam@marlam.de>
57221 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57222 2007-01-16  Bruno Haible  <bruno@clisp.org>
57223
57224         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57225         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57226         gl_FUNC_GETTIMEOFDAY.
57227         (Include): Add gettimeofday.h.
57228         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57229         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57230         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57231         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57232         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57233         * lib/gettimeofday.h: New file.
57234         * lib/gettimeofday.c: Include <sys/timeb.h>.
57235         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57236         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57237         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57238         fall back on time().
57239
57240         * tests/test-gettimeofday.c: New file.
57241         * modules/gettimeofday-tests: New file.
57242
57243 2007-01-16  Eric Blake  <ebb9@byu.net>
57244
57245         * modules/fnmatch (Depends-on): Depend on wchar.
57246         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57247         * m4/fnmatch.m4: Likewise.
57248         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57249         * m4/mbchar.m4: Likewise.
57250         * modules/mbswidth (Depends-on): Depend on wchar.
57251         * lib/mbswidth.c: Assume <wchar.h>.
57252         * m4/mbswidth.m4: Likewise.
57253         * modules/quotearg (Depends-on): Depend on wchar.
57254         * lib/quotearg.c: Assume <wchar.h>.
57255         * m4/quotearg.m4: Likewise.
57256         * modules/regex (Depends-on): Depend on wchar.
57257         * lib/regex_internal.h: Assume <wchar.h>.
57258         * m4/regex.m4: Likewise.
57259         * modules/stdint (Depends-on): Depend on wchar.
57260         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57261         * m4/stdint.m4: Likewise.
57262         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57263         * modules/strftime (Depends-on): Depend on wchar.
57264         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57265         * modules/strtol (Depends-on): Depend on wchar.
57266         * lib/strtol.c: Assume <wchar.h>.
57267         * modules/wcwidth (Depends-on): Depend on wchar.
57268         * lib/wcwidth.h: Assume <wchar.h>.
57269         * m4/wcwidth.m4: Likewise.
57270
57271 2007-01-16  Bruno Haible  <bruno@clisp.org>
57272
57273         * modules/csharpexec-script: New, created from...
57274         * modules/csharpexec: ... this.
57275
57276 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57277
57278         * modules/javaexec-script: New, created from...
57279         * modules/javaexec: ... this.
57280
57281 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57282
57283         * modules/poll (Dependencies): Add sys_select.
57284
57285 2007-01-15  Jim Meyering  <jim@meyering.net>
57286
57287         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57288         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57289         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57290         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57291
57292 2007-01-15  Bruno Haible  <bruno@clisp.org>
57293
57294         * modules/striconveh: New file.
57295         * lib/striconveh.h: New file.
57296         * lib/striconveh.c: New file.
57297         * MODULES.html.sh (Internationalization functions): Add striconveh.
57298
57299         * modules/striconveh-tests: New file.
57300         * tests/test-striconveh.c: New file.
57301
57302 2007-01-15  Bruno Haible  <bruno@clisp.org>
57303
57304         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57305         not from GNU libiconv or GNU libc.
57306
57307 2007-01-15  Bruno Haible  <bruno@clisp.org>
57308
57309         * doc/gnulib-intro.texi (Copyright): Explain the different license
57310         terms for module descriptions, autoconf macros, tests, documentation.
57311
57312 2007-01-14  Bruno Haible  <bruno@clisp.org>
57313
57314         * modules/striconv-tests: New file.
57315         * tests/test-striconv.c: New file.
57316
57317 2007-01-14  Bruno Haible  <bruno@clisp.org>
57318
57319         * modules/iconv-tests: New file.
57320         * tests/test-iconv.c: New file.
57321
57322 2007-01-14  Bruno Haible  <bruno@clisp.org>
57323
57324         * gnulib-tool (func_get_license): For test modules, use the license of
57325         the main module.
57326
57327 2007-01-14  Bruno Haible  <bruno@clisp.org>
57328
57329         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57330         if iconv is found to exist.
57331
57332 2007-01-14  Bruno Haible  <bruno@clisp.org>
57333
57334         * modules/c-ctype-tests: New file.
57335         * tests/test-c-ctype.c: New file.
57336
57337 2007-01-14  Bruno Haible  <bruno@clisp.org>
57338
57339         * modules/binary-io-tests: New file.
57340         * tests/test-binary-io.sh: New file.
57341         * tests/test-binary-io.c: New file.
57342
57343 2007-01-14  Bruno Haible  <bruno@clisp.org>
57344
57345         * modules/array-oset-tests: New file.
57346         * tests/test-array_oset.c: New file.
57347
57348 2007-01-14  Bruno Haible  <bruno@clisp.org>
57349
57350         * modules/array-list-tests: New file.
57351         * tests/test-array_list.c: New file.
57352
57353 2007-01-14  Bruno Haible  <bruno@clisp.org>
57354
57355         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57356         and make.
57357         Reported by Simon Josefsson in
57358         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57359
57360 2007-01-14  Bruno Haible  <bruno@clisp.org>
57361
57362         * modules/allocsa-tests: New file.
57363         * tests/test-allocsa.c: New file.
57364
57365 2007-01-14  Bruno Haible  <bruno@clisp.org>
57366
57367         * modules/fchdir (Depends-on): Add absolute-header.
57368         * modules/unistd (Depends-on): Likewise.
57369
57370 2006-12-30  Bruno Haible  <bruno@clisp.org>
57371
57372         * modules/fchdir: New file.
57373         * modules/unistd (Files): Add lib/unistd_.h.
57374         (Makefile.am): Generate unistd.h from unistd_.h.
57375         * lib/fchdir.c: New file.
57376         * lib/dirent_.h: New file.
57377         * lib/unistd_.h: New file.
57378         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57379         * m4/fchdir.m4: New file.
57380         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57381         (gl_HEADER_UNISTD): Invoke it.
57382         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57383         function.
57384         * lib/backupfile.c (opendir, closedir): Undefine.
57385         * lib/chown.c (open, close): Undefine.
57386         * lib/clean-temp.c (open, close): Undefine.
57387         * lib/copy-file.c (open, close): Undefine.
57388         * lib/execute.c (open, close): Undefine.
57389         * lib/fsusage.c (open, close): Undefine.
57390         * lib/gc-gnulib.c (open, close): Undefine.
57391         * lib/getcwd.c (opendir, closedir): Undefine.
57392         * lib/glob.c (opendir, closedir): Undefine.
57393         * lib/javacomp.c (open, close): Undefine.
57394         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57395         * lib/openat-proc.c (open, close): Undefine.
57396         * lib/pagealign_alloc.c (open, close): Undefine.
57397         * lib/pipe.c (open, close): Undefine.
57398         * lib/progreloc.c (open, close): Undefine.
57399         * lib/savedir.c (opendir, closedir): Undefine.
57400         * lib/utime.c (open, close): Undefine.
57401         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57402
57403 2007-01-10  Bruno Haible  <bruno@clisp.org>
57404
57405         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57406
57407 2007-01-12  Eric Blake  <ebb9@byu.net>
57408
57409         Provide a robust <wchar.h>.  Further simplifications are now
57410         possible in other modules, but not included here.
57411         * modules/wchar: New module.
57412         * m4/wchar.m4: New file.
57413         * lib/wchar_.h: Likewise.
57414         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57415         of the new module.
57416         * MODULES.html.sh (Extended multibyte and wide character utilities):
57417         New section.
57418
57419 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57420
57421         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57422         to a reasonable default for memory allocation.
57423         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57424         file system that reports garbage st_size values for symlinks.
57425         Problem reported by Liyang Hu.
57426
57427 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57428
57429         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57430         Emacs .#* auto-save files).
57431
57432 2007-01-11  Bruno Haible  <bruno@clisp.org>
57433
57434         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57435         directory.
57436
57437 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57438
57439         Use @...@ consistently in lib/wctype_.h.
57440         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57441         on it being set to 1 or 0.
57442         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57443         go back to AC_SUBSTing it.
57444         * modules/wctype (Makefile.am): Undo previous change.
57445
57446 2007-01-10  Eric Blake  <ebb9@byu.net>
57447
57448         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57449         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57450         * modules/wctype (Makefile.am): Likewise.
57451         Reported by Chris McGuire.
57452
57453 2007-01-10  Jim Meyering  <jim@meyering.net>
57454
57455         fts.c: a small readability/maintainability improvement
57456         * lib/fts.c (fts_read): Make this code slightly more readable and
57457         maintainable by hoisting the "sp->fts_cur = p" assignments to
57458         immediately follow the statements that set P.  Derived from
57459         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57460
57461 2007-01-10  Eric Blake  <ebb9@byu.net>
57462
57463         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57464         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57466         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57467         Reported by Chris McGuire.
57468
57469 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57470
57471         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57472         in sed script.
57473
57474 2007-01-09  Bruno Haible  <bruno@clisp.org>
57475
57476         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57477         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57478         variables.
57479         (func_module): Use them.
57480
57481 2007-01-09  Bruno Haible  <bruno@clisp.org>
57482
57483         * modules/unistr/base: New file.
57484         * lib/unistr.h: New file.
57485
57486         * modules/unistr/u8-to-u16: New file.
57487         * lib/unistr/u8-to-u16.c: New file.
57488
57489         * modules/unistr/u8-to-u32: New file.
57490         * lib/unistr/u8-to-u32.c: New file.
57491
57492         * modules/unistr/u16-to-u8: New file.
57493         * lib/unistr/u16-to-u8.c: New file.
57494
57495         * modules/unistr/u16-to-u32: New file.
57496         * lib/unistr/u16-to-u32.c: New file.
57497
57498         * modules/unistr/u32-to-u8: New file.
57499         * lib/unistr/u32-to-u8.c: New file.
57500
57501         * modules/unistr/u32-to-u16: New file.
57502         * lib/unistr/u32-to-u16.c: New file.
57503
57504         * modules/unistr/u8-check: New file.
57505         * modules/unistr/u16-check: New file.
57506         * modules/unistr/u32-check: New file.
57507         * lib/unistr/u8-check.c: New file.
57508         * lib/unistr/u16-check.c: New file.
57509         * lib/unistr/u32-check.c: New file.
57510
57511         * modules/unistr/u8-chr: New file.
57512         * modules/unistr/u16-chr: New file.
57513         * modules/unistr/u32-chr: New file.
57514         * lib/unistr/u8-chr.c: New file.
57515         * lib/unistr/u16-chr.c: New file.
57516         * lib/unistr/u32-chr.c: New file.
57517
57518         * modules/unistr/u8-cmp: New file.
57519         * modules/unistr/u16-cmp: New file.
57520         * modules/unistr/u32-cmp: New file.
57521         * lib/unistr/u8-cmp.c: New file.
57522         * lib/unistr/u16-cmp.c: New file.
57523         * lib/unistr/u32-cmp.c: New file.
57524
57525         * modules/unistr/u8-cpy: New file.
57526         * modules/unistr/u16-cpy: New file.
57527         * modules/unistr/u32-cpy: New file.
57528         * lib/unistr/u8-cpy.c: New file.
57529         * lib/unistr/u16-cpy.c: New file.
57530         * lib/unistr/u32-cpy.c: New file.
57531         * lib/unistr/u-cpy.h: New file.
57532
57533         * modules/unistr/u8-cpy-alloc: New file.
57534         * modules/unistr/u16-cpy-alloc: New file.
57535         * modules/unistr/u32-cpy-alloc: New file.
57536         * lib/unistr/u8-cpy-alloc.c: New file.
57537         * lib/unistr/u16-cpy-alloc.c: New file.
57538         * lib/unistr/u32-cpy-alloc.c: New file.
57539         * lib/unistr/u-cpy-alloc.h: New file.
57540
57541         * modules/unistr/u8-endswith: New file.
57542         * modules/unistr/u16-endswith: New file.
57543         * modules/unistr/u32-endswith: New file.
57544         * lib/unistr/u8-endswith.c: New file.
57545         * lib/unistr/u16-endswith.c: New file.
57546         * lib/unistr/u32-endswith.c: New file.
57547         * lib/unistr/u-endswith.h: New file.
57548
57549         * modules/unistr/u8-mblen: New file.
57550         * modules/unistr/u16-mblen: New file.
57551         * modules/unistr/u32-mblen: New file.
57552         * lib/unistr/u8-mblen.c: New file.
57553         * lib/unistr/u16-mblen.c: New file.
57554         * lib/unistr/u32-mblen.c: New file.
57555
57556         * modules/unistr/u8-mbtouc: New file.
57557         * modules/unistr/u16-mbtouc: New file.
57558         * modules/unistr/u32-mbtouc: New file.
57559         * lib/unistr/u8-mbtouc.c: New file.
57560         * lib/unistr/u16-mbtouc.c: New file.
57561         * lib/unistr/u32-mbtouc.c: New file.
57562
57563         * modules/unistr/u8-mbtouc-safe: New file.
57564         * modules/unistr/u16-mbtouc-safe: New file.
57565         * modules/unistr/u32-mbtouc-safe: New file.
57566         * lib/unistr/u8-mbtouc-safe.c: New file.
57567         * lib/unistr/u16-mbtouc-safe.c: New file.
57568         * lib/unistr/u32-mbtouc-safe.c: New file.
57569
57570         * modules/unistr/u8-move: New file.
57571         * modules/unistr/u16-move: New file.
57572         * modules/unistr/u32-move: New file.
57573         * lib/unistr/u8-move.c: New file.
57574         * lib/unistr/u16-move.c: New file.
57575         * lib/unistr/u32-move.c: New file.
57576         * lib/unistr/u-move.h: New file.
57577
57578         * modules/unistr/u8-next: New file.
57579         * modules/unistr/u16-next: New file.
57580         * modules/unistr/u32-next: New file.
57581         * lib/unistr/u8-next.c: New file.
57582         * lib/unistr/u16-next.c: New file.
57583         * lib/unistr/u32-next.c: New file.
57584
57585         * modules/unistr/u8-prev: New file.
57586         * modules/unistr/u16-prev: New file.
57587         * modules/unistr/u32-prev: New file.
57588         * lib/unistr/u8-prev.c: New file.
57589         * lib/unistr/u16-prev.c: New file.
57590         * lib/unistr/u32-prev.c: New file.
57591
57592         * modules/unistr/u8-set: New file.
57593         * modules/unistr/u16-set: New file.
57594         * modules/unistr/u32-set: New file.
57595         * lib/unistr/u8-set.c: New file.
57596         * lib/unistr/u16-set.c: New file.
57597         * lib/unistr/u32-set.c: New file.
57598         * lib/unistr/u-set.h: New file.
57599
57600         * modules/unistr/u8-startswith: New file.
57601         * modules/unistr/u16-startswith: New file.
57602         * modules/unistr/u32-startswith: New file.
57603         * lib/unistr/u8-startswith.c: New file.
57604         * lib/unistr/u16-startswith.c: New file.
57605         * lib/unistr/u32-startswith.c: New file.
57606         * lib/unistr/u-startswith.h: New file.
57607
57608         * modules/unistr/u8-stpcpy: New file.
57609         * modules/unistr/u16-stpcpy: New file.
57610         * modules/unistr/u32-stpcpy: New file.
57611         * lib/unistr/u8-stpcpy.c: New file.
57612         * lib/unistr/u16-stpcpy.c: New file.
57613         * lib/unistr/u32-stpcpy.c: New file.
57614         * lib/unistr/u-stpcpy.h: New file.
57615
57616         * modules/unistr/u8-stpncpy: New file.
57617         * modules/unistr/u16-stpncpy: New file.
57618         * modules/unistr/u32-stpncpy: New file.
57619         * lib/unistr/u8-stpncpy.c: New file.
57620         * lib/unistr/u16-stpncpy.c: New file.
57621         * lib/unistr/u32-stpncpy.c: New file.
57622         * lib/unistr/u-stpncpy.h: New file.
57623
57624         * modules/unistr/u8-strcat: New file.
57625         * modules/unistr/u16-strcat: New file.
57626         * modules/unistr/u32-strcat: New file.
57627         * lib/unistr/u8-strcat.c: New file.
57628         * lib/unistr/u16-strcat.c: New file.
57629         * lib/unistr/u32-strcat.c: New file.
57630         * lib/unistr/u-strcat.h: New file.
57631
57632         * modules/unistr/u8-strchr: New file.
57633         * modules/unistr/u16-strchr: New file.
57634         * modules/unistr/u32-strchr: New file.
57635         * lib/unistr/u8-strchr.c: New file.
57636         * lib/unistr/u16-strchr.c: New file.
57637         * lib/unistr/u32-strchr.c: New file.
57638
57639         * modules/unistr/u8-strcmp: New file.
57640         * modules/unistr/u16-strcmp: New file.
57641         * modules/unistr/u32-strcmp: New file.
57642         * lib/unistr/u8-strcmp.c: New file.
57643         * lib/unistr/u16-strcmp.c: New file.
57644         * lib/unistr/u32-strcmp.c: New file.
57645
57646         * modules/unistr/u8-strcpy: New file.
57647         * modules/unistr/u16-strcpy: New file.
57648         * modules/unistr/u32-strcpy: New file.
57649         * lib/unistr/u8-strcpy.c: New file.
57650         * lib/unistr/u16-strcpy.c: New file.
57651         * lib/unistr/u32-strcpy.c: New file.
57652         * lib/unistr/u-strcpy.h: New file.
57653
57654         * modules/unistr/u8-strcspn: New file.
57655         * modules/unistr/u16-strcspn: New file.
57656         * modules/unistr/u32-strcspn: New file.
57657         * lib/unistr/u8-strcspn.c: New file.
57658         * lib/unistr/u16-strcspn.c: New file.
57659         * lib/unistr/u32-strcspn.c: New file.
57660         * lib/unistr/u-strcspn.h: New file.
57661
57662         * modules/unistr/u8-strdup: New file.
57663         * modules/unistr/u16-strdup: New file.
57664         * modules/unistr/u32-strdup: New file.
57665         * lib/unistr/u8-strdup.c: New file.
57666         * lib/unistr/u16-strdup.c: New file.
57667         * lib/unistr/u32-strdup.c: New file.
57668         * lib/unistr/u-strdup.h: New file.
57669
57670         * modules/unistr/u8-strlen: New file.
57671         * modules/unistr/u16-strlen: New file.
57672         * modules/unistr/u32-strlen: New file.
57673         * lib/unistr/u8-strlen.c: New file.
57674         * lib/unistr/u16-strlen.c: New file.
57675         * lib/unistr/u32-strlen.c: New file.
57676         * lib/unistr/u-strlen.h: New file.
57677
57678         * modules/unistr/u8-strmblen: New file.
57679         * modules/unistr/u16-strmblen: New file.
57680         * modules/unistr/u32-strmblen: New file.
57681         * lib/unistr/u8-strmblen.c: New file.
57682         * lib/unistr/u16-strmblen.c: New file.
57683         * lib/unistr/u32-strmblen.c: New file.
57684
57685         * modules/unistr/u8-strmbtouc: New file.
57686         * modules/unistr/u16-strmbtouc: New file.
57687         * modules/unistr/u32-strmbtouc: New file.
57688         * lib/unistr/u8-strmbtouc.c: New file.
57689         * lib/unistr/u16-strmbtouc.c: New file.
57690         * lib/unistr/u32-strmbtouc.c: New file.
57691
57692         * modules/unistr/u8-strncat: New file.
57693         * modules/unistr/u16-strncat: New file.
57694         * modules/unistr/u32-strncat: New file.
57695         * lib/unistr/u8-strncat.c: New file.
57696         * lib/unistr/u16-strncat.c: New file.
57697         * lib/unistr/u32-strncat.c: New file.
57698         * lib/unistr/u-strncat.h: New file.
57699
57700         * modules/unistr/u8-strncmp: New file.
57701         * modules/unistr/u16-strncmp: New file.
57702         * modules/unistr/u32-strncmp: New file.
57703         * lib/unistr/u8-strncmp.c: New file.
57704         * lib/unistr/u16-strncmp.c: New file.
57705         * lib/unistr/u32-strncmp.c: New file.
57706
57707         * modules/unistr/u8-strncpy: New file.
57708         * modules/unistr/u16-strncpy: New file.
57709         * modules/unistr/u32-strncpy: New file.
57710         * lib/unistr/u8-strncpy.c: New file.
57711         * lib/unistr/u16-strncpy.c: New file.
57712         * lib/unistr/u32-strncpy.c: New file.
57713         * lib/unistr/u-strncpy.h: New file.
57714
57715         * modules/unistr/u8-strnlen: New file.
57716         * modules/unistr/u16-strnlen: New file.
57717         * modules/unistr/u32-strnlen: New file.
57718         * lib/unistr/u8-strnlen.c: New file.
57719         * lib/unistr/u16-strnlen.c: New file.
57720         * lib/unistr/u32-strnlen.c: New file.
57721         * lib/unistr/u-strnlen.h: New file.
57722
57723         * modules/unistr/u8-strpbrk: New file.
57724         * modules/unistr/u16-strpbrk: New file.
57725         * modules/unistr/u32-strpbrk: New file.
57726         * lib/unistr/u8-strpbrk.c: New file.
57727         * lib/unistr/u16-strpbrk.c: New file.
57728         * lib/unistr/u32-strpbrk.c: New file.
57729         * lib/unistr/u-strpbrk.h: New file.
57730
57731         * modules/unistr/u8-strrchr: New file.
57732         * modules/unistr/u16-strrchr: New file.
57733         * modules/unistr/u32-strrchr: New file.
57734         * lib/unistr/u8-strrchr.c: New file.
57735         * lib/unistr/u16-strrchr.c: New file.
57736         * lib/unistr/u32-strrchr.c: New file.
57737
57738         * modules/unistr/u8-strspn: New file.
57739         * modules/unistr/u16-strspn: New file.
57740         * modules/unistr/u32-strspn: New file.
57741         * lib/unistr/u8-strspn.c: New file.
57742         * lib/unistr/u16-strspn.c: New file.
57743         * lib/unistr/u32-strspn.c: New file.
57744         * lib/unistr/u-strspn.h: New file.
57745
57746         * modules/unistr/u8-strstr: New file.
57747         * modules/unistr/u16-strstr: New file.
57748         * modules/unistr/u32-strstr: New file.
57749         * lib/unistr/u8-strstr.c: New file.
57750         * lib/unistr/u16-strstr.c: New file.
57751         * lib/unistr/u32-strstr.c: New file.
57752         * lib/unistr/u-strstr.h: New file.
57753
57754         * modules/unistr/u8-strtok: New file.
57755         * modules/unistr/u16-strtok: New file.
57756         * modules/unistr/u32-strtok: New file.
57757         * lib/unistr/u8-strtok.c: New file.
57758         * lib/unistr/u16-strtok.c: New file.
57759         * lib/unistr/u32-strtok.c: New file.
57760         * lib/unistr/u-strtok.h: New file.
57761
57762         * modules/unistr/u8-uctomb: New file.
57763         * modules/unistr/u16-uctomb: New file.
57764         * modules/unistr/u32-uctomb: New file.
57765         * lib/unistr/u8-uctomb.c: New file.
57766         * lib/unistr/u16-uctomb.c: New file.
57767         * lib/unistr/u32-uctomb.c: New file.
57768
57769         * MODULES.html.sh (Unicode string functions): Add the new modules.
57770
57771 2007-01-08  Bruno Haible  <bruno@clisp.org>
57772
57773         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
57774         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
57775         subdirectories.
57776
57777 2007-01-08  Karl Berry  <karl@gnu.org>
57778
57779         * doc/error.texi: mention that main() fns must set program_name
57780         when progname is used.
57781
57782 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
57783
57784         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
57785         WCTYPE_H is empty, for the benefit of builds from non-distclean
57786         directories.  Problem reported by Eric Blake in
57787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
57788
57789 2007-01-08  Bruno Haible  <bruno@clisp.org>
57790
57791         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
57792         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
57793         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
57794         PROVIDE_CANONICALIZE_FILENAME_MODE.
57795         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
57796
57797 2007-01-08  Bruno Haible  <bruno@clisp.org>
57798
57799         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
57800         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
57801         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
57802         * lib/fts.c: Likewise.
57803         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
57804
57805 2006-12-25  Bruno Haible  <bruno@clisp.org>
57806
57807         * modules/utf8-ucs4-safe: New file.
57808         * lib/utf8-ucs4-safe.h: New file.
57809         * lib/unistr/utf8-ucs4-safe.c: New file.
57810
57811         * modules/utf16-ucs4-safe: New file.
57812         * lib/utf16-ucs4-safe.h: New file.
57813         * lib/unistr/utf16-ucs4-safe.c: New file.
57814
57815         * MODULES.html.sh (Unicode string functions): Add the new modules.
57816
57817 2007-01-08  Bruno Haible  <bruno@clisp.org>
57818
57819         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
57820         (Depends-on): Add unitypes.
57821         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57822         (u8_mbtouc_aux): Move out to separate file.
57823         (u8_mbtouc): Use ucs4_t, uint8_t types.
57824         * lib/unistr/utf8-ucs4.c: New file.
57825
57826         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
57827         (Depends-on): Add unitypes.
57828         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57829         (u16_mbtouc_aux): Move out to separate file.
57830         (u16_mbtouc): Use ucs4_t, uint16_t types.
57831         * lib/unistr/utf16-ucs4.c: New file.
57832
57833         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
57834         (Depends-on): Add unitypes.
57835         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
57836         (u8_uctomb_aux): Move out to separate file.
57837         (u8_uctomb): Use ucs4_t, uint8_t types.
57838         * lib/unistr/ucs4-utf8.c: New file.
57839
57840         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
57841         (Depends-on): Add unitypes.
57842         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
57843         (u16_uctomb_aux): Move out to separate file.
57844         (u16_uctomb): Use ucs4_t, uint16_t types.
57845         * lib/unistr/ucs4-utf16.c: New file.
57846
57847 2006-12-25  Bruno Haible  <bruno@clisp.org>
57848
57849         * modules/unitypes: New file.
57850         * lib/unitypes.h: New file.
57851         * MODULES.html.sh (func_all_modules): New section "Unicode string
57852         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
57853         this section. Add unitypes.
57854
57855 2007-01-08  Bruno Haible  <bruno@clisp.org>
57856
57857         Avoid variable names that conflict with those from libtool.
57858         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
57859         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
57860         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
57861         library_names_spec to acl_library_names_spec, hardcode_* to
57862         acl_hardcode_*.
57863         Reported by Ralf Wildenhues.
57864
57865 2007-01-08  Bruno Haible  <bruno@clisp.org>
57866
57867         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
57868         definition.
57869         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
57870         definition.
57871         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
57872         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
57873         definition.
57874         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
57875         definition.
57876         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
57877         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
57878         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
57879         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
57880         definition.
57881         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
57882         definition.
57883         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
57884         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
57885         GC_USE_<algorithm>.
57886         * lib/gc-libgcrypt.c: Likewise.
57887         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
57888         * modules/gc-arctwo (configure.ac): Likewise.
57889         * modules/gc-des (configure.ac): Likewise.
57890         * modules/gc-hmac-md5 (configure.ac): Likewise.
57891         * modules/gc-hmac-sha1 (configure.ac): Likewise.
57892         * modules/gc-md2 (configure.ac): Likewise.
57893         * modules/gc-md4 (configure.ac): Likewise.
57894         * modules/gc-md5 (configure.ac): Likewise.
57895         * modules/gc-random (configure.ac): Likewise.
57896         * modules/gc-rijndael (configure.ac): Likewise.
57897         * modules/gc-sha1 (configure.ac): Likewise.
57898
57899 2007-01-08  Bruno Haible  <bruno@clisp.org>
57900
57901         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
57902         macro definition.
57903         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
57904         definition.
57905         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
57906         definition.
57907         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
57908         * modules/fcntl-safer (configure.ac): Likewise.
57909         * modules/fopen-safer (configure.ac): Likewise.
57910         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
57911         GNULIB_FWRITEERROR macro definition.
57912
57913 2007-01-08  Bruno Haible  <bruno@clisp.org>
57914
57915         * m4/gnulib-common.m4: New file.
57916         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
57917         (func_get_filelist): Add m4/gnulib-common.m4.
57918
57919 2007-01-08  Bruno Haible  <bruno@clisp.org>
57920
57921         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
57922         command.
57923
57924 2007-01-08  Jim Meyering  <jim@meyering.net>
57925
57926         Use a more robust test for a "can't happen" condition.
57927         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
57928         narrowed the st_size value.  Presuming the "can't happen" condition
57929         is true, that narrowing could conceivably convert an invalid st_size
57930         value into a valid one.  Instead, use a change based on Matthew
57931         Woehlke's original patch.
57932
57933         Slight readability improvement: use an assert-like macro
57934         in place of literal "abort ()" uses.
57935         * lib/fts.c (fts_assert): Define.
57936         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
57937         Use this macro instead of a bare 'abort'.
57938
57939 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
57940
57941         Don't worry about using IRIX 5.3's wctype.h broken definitions;
57942         simply work around them.
57943         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
57944         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
57945         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
57946         declaring.
57947         Don't bother to define as macros, since the standard doesn't require it.
57948         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
57949         longer worry about IRIX 5.3.
57950         (HAVE_WCTYPE_CTMP_BUG): Remove.
57951
57952 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57953
57954         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57955         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57956         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57957         Problems reported by Georg Schwarz for IRIX 5.3.
57958
57959         * gnulib-tool (autoconf_minversion): Take the maximum version number
57960         found, not the minimum.  Problem reported by James Youngman.
57961
57962 2007-01-03  Karl Berry  <karl@gnu.org>
57963
57964         * doc/error.texi: new file, explaining interaction with progname.
57965         * doc/gnulib.texi: include it.  Update copyright.
57966
57967 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57968
57969         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57970         AC_CANONICAL_HOST, to improve autobuild outputs.
57971
57972 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57973             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57974
57975         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57976         sockets, server sockets, and other file descriptors.  Count errors
57977         to compute the return value.  Reorder the code a bit to be easier
57978         to follow.  Don't set event bits that were not requested (except
57979         POLLERR and POLLHUP).
57980
57981 2007-01-01  Bruno Haible  <bruno@clisp.org>
57982
57983         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57984
57985 2007-01-03  Jim Meyering  <jim@meyering.net>
57986
57987         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57988
57989 2007-01-02  Bruno Haible  <bruno@clisp.org>
57990
57991         * modules/settime (Include): Require timespec.h.
57992         * modules/nanosleep (Include): Likewise.
57993
57994 2007-01-01  Bruno Haible  <bruno@clisp.org>
57995
57996         * gnulib-tool (func_emit_copyright_notice): Bump year.
57997         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
57998
57999 2007-01-01  Bruno Haible  <bruno@clisp.org>
58000
58001         Improve support for OpenBSD.
58002         * build-aux/config.rpath (libname_spec): Export.
58003         (library_names_spec): New variable. Export.
58004         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
58005         library_names_spec from the config.rpath output. Locate shared library
58006         through the name pattern in library_names_spec.
58007
58008 2007-01-01  Eric Blake  <ebb9@byu.net>
58009
58010         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
58011
58012 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
58013
58014         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
58015         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
58016         assume the C locale, and avoid an "eval" that could cause trouble.
58017         Problem with SORT reported by Bob Proulx.
58018
58019         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
58020         Define.  Trivial patch from Henning Nielsen Lund, originally
58021         sent to bug-grep@gnu.org today.
58022
58023 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58024
58025         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
58026         struct stat.  Problem reported by Henning Nielsen Lund.
58027         * lib/acl.c: Include acl.h first, to check interface.  Don't
58028         bother to include sys/types.h and sys/stat.h again.
58029
58030 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58031
58032         Import the following change from libc; problem reported by
58033         Sven Verdoolaege.
58034
58035         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
58036
58037         [BZ #1373]
58038         * lib/argp.h: Remove __NTH for __argp_usage inline function.
58039
58040 2006-12-28  Jim Meyering  <jim@meyering.net>
58041
58042         * build-aux/announce-gen: Do not assume that the package
58043         builds any of tar.gz, tar.bz2, and .xdelta files.
58044         Suggestion from Simon Josefsson.
58045
58046 2006-12-28  Simon Josefsson  <simon@josefsson.org>
58047
58048         * modules/announce-gen: New file.
58049
58050 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58051
58052         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58053         handles its gotchas now.
58054         * lib/mbswidth.c: Likewise.
58055         * lib/wcwidth.h: Likewise.
58056         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58057         and iswcntrl; the wctype module does this stuff now.
58058         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58060         * modules/mbchar (Depends-on): Add wctype.
58061         * modules/mbswidth (Depends-on): Likewise.
58062         * modules/wcwidth (Depends-on): Likewise.
58063
58064 2006-12-27  Eric Blake  <ebb9@byu.net>
58065
58066         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
58067         module uses more than what <wctype.h> is required to provide.
58068
58069 2006-12-26  Eric Blake  <ebb9@byu.net>
58070
58071         * gnulib-tool (sed_extract_prog): Avoid space-tab.
58072
58073 2006-12-26  Eric Blake  <ebb9@byu.net>
58074
58075         * modules/absolute-header: New module.
58076         * modules/fcntl (Depends-on): Depend on it.
58077         * modules/inttypes (Depends-on): Likewise.
58078         * modules/stdint (Depends-on): Likewise.
58079         * modules/sys_stat (Depends-on): Likewise.
58080         * modules/wctype (Depends-on): Likewise.
58081         * MODULES.html.sh (Support for building libraries and
58082         executables): Document it.
58083
58084 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58085
58086         * gnulib-tool (SED): Remove, undoing previous change.
58087         The problem was that it broke coreutils on Solaris, because
58088         "sed --posix" leaked into a makefile.
58089         (sed): New alias, if 'alias' and GNU sed.
58090
58091 2006-12-24  Jim Meyering  <jim@meyering.net>
58092
58093         Work around an fchownat bug in glibc-2.4:
58094         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58095         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58096         in spite of the -P option.
58097         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58098         New macros.
58099         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58100         * modules/openat (Files): Add lib/fchownat.c.
58101         * lib/openat.c (fchownat): Don't define here.  Move to...
58102         * lib/fchownat.c: ...this new file.
58103
58104 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58105
58106         Fix bug reported by Bruno Haible in
58107         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58108         where quotearg.c didn't compile on Mac OS X 10.2 because it
58109         lacks <wchar.h> and wint_t.
58110         * lib/wctype_.h (__wctype_wint_t): New type.
58111         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58112         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58113         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58114         Arg is now of type __wctype_wint_t, not wint_t.
58115         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58116         substitute HAVE_WINT_T.
58117         * modules/wctype (Files): Add m4/wint_t.m4.
58118         (wctype.h): Substitute HAVE_WINT_T.
58119
58120 2006-12-23  Bruno Haible  <bruno@clisp.org>
58121
58122         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58123
58124 2006-12-23  Bruno Haible  <bruno@clisp.org>
58125
58126         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58127         S_ISLNK.
58128         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58129         mingw.
58130
58131 2006-12-22  Bruno Haible  <bruno@clisp.org>
58132
58133         * lib/copy-file.c: Include acl.h.
58134         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58135         Close the file descriptors only after being done with copy_acl.
58136         * modules/copy-file (Depends-on): Add acl.
58137
58138 2006-12-22  Bruno Haible  <bruno@clisp.org>
58139
58140         * gnulib-tool (SED): New variable.
58141         Use $SED instead of sed everywhere.
58142
58143 2006-12-22  Bruno Haible  <bruno@clisp.org>
58144
58145         * modules/no-c++: New file.
58146         * m4/no-c++.m4: New file.
58147         * MODULES.html.sh (Support for building libraries and executables):
58148         Add no-c++.
58149
58150 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58151
58152         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58153         Include <limits.h>, and use its INT_MAX to rewrite the
58154         j loop so that it does not overflow 'int'.  Problem reported by
58155         Ralf Wildenhues in
58156         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58157         Play it safe by shifting left by 1 rather than multiplying by 2,
58158         as GCC is less likely to optimize this away when the value
58159         is signed (when it assumes overflow leads to undefined behavior).
58160         Also, don't assume time_t uses two's complement.
58161
58162 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58163
58164         * MODULES.html.sh: New module wctype.
58165         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58166         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58167         <wctype.h>, since the new wctype module should fix this.
58168         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58169         the wctype module should arrange for it.
58170         * lib/regex_internal.h: Likewise.
58171         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58172         since the wctype module should handle this now.
58173         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58174         * modules/fnmatch (Depends-on): Add wctype.
58175         * modules/quotearg (Depends-on): Likewise.
58176         * modules/regex (Depends-on): Likewise.
58177
58178 2006-12-19  Bruno Haible  <bruno@clisp.org>
58179
58180         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58181         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58182
58183 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58184
58185         * modules/savewd (Depends-on): Fix dependency on fcntl.
58186
58187 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58188
58189         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58190         conforms to C99, rather than relying on the user's environment
58191         setting of STDINT_H.
58192
58193 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58194         and Eric Blake  <ebb9@byu.net>
58195
58196         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58197         This is more consistent with the other defines here.
58198         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58199         Port to z/OS.  Problem reported by Paul Gilmartin.
58200         Change local vars to use gl_ prefix rather than ac_.
58201         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58202         with other defines.
58203         * modules/double-slash-root: New module.
58204         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58205         (Depends-on): Add double-slash-root.
58206         * MODULES.html.sh (File system functions): Mention new module.
58207
58208 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58209
58210         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58211         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58212         This is for the benefit of gzip, which doesn't do i18n.
58213
58214 2006-12-12  Jim Meyering  <jim@meyering.net>
58215
58216         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58217         Reported by Andreas Schwab <schwab@suse.de>.
58218
58219 2006-12-12  Bruno Haible  <bruno@clisp.org>
58220
58221         Merge these changes.
58222         2006-09-05  Bruno Haible  <bruno@clisp.org>
58223         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58224         iconv_alloc succeeded.
58225         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58226         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58227         test for " && dest " at the end - dest is always != NULL there. Call
58228         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58229         with 2xNULL arguments, also to flush the state storage. Handle the
58230         IRIX iconv behaviour. Realloc the final result, to throw away unused
58231         memory.
58232
58233 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58234
58235         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58236         and fchmodat unconditionally, since glibc 2.4 has them.
58237         Problem reported by Arkadiusz Miskiewicz.
58238
58239 2006-12-10  Bruno Haible  <bruno@clisp.org>
58240
58241         * gnulib-tool (func_import): Show the include files only for those
58242         modules that are copied and specified.
58243         Reported by Karl Berry.
58244
58245 2006-12-08  Jim Meyering  <jim@meyering.net>
58246
58247         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58248         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58249
58250         * build-aux/announce-gen: Add two new options, both optional:
58251         --bootstrap-tools=TOOL_LIST
58252               a comma-separated list of tools, e.g.,
58253               autoconf,automake,bison,gnulib
58254         --gnulib-snapshot-date=DATE
58255               if gnulib is in the bootstrap tool list,
58256               then report this as the snapshot date.
58257               If not specified, use the current date/time.
58258               If you specify a date here, be sure it's UTC.
58259
58260 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58261
58262         * tests/test-argp-2.sh: Fix test to match actual output.
58263         (func_compare): Fix sed script to be portable.
58264
58265 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58266
58267         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58268         workaround for this case.  It is not autoconfigured now; offhand
58269         it's hard to see how to autoconfigure it.
58270
58271 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58272
58273         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58274         a directory that is about to be chowned.  Such a directory's
58275         initial file permissions should permit the owner only and this
58276         should not be changed until after the chown, since the group and
58277         other bits would be incorrect if they granted permission before
58278         the chown.
58279
58280         Fix porting problem for iswctype reported by Georg Schwarz in:
58281         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58282         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58283         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58284         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58285         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58286
58287 2006-12-03  Jim Meyering  <jim@meyering.net>
58288
58289         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58290         p->fts_statp may not yet be defined.
58291         (fts_read): Instead, set it in the caller, once p->fts_statp is
58292         sure to be defined, and corresponds to a top-level directory.
58293         This bug made du -x fail.  Here's the coreutils test case:
58294         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58295         Reported by Mike Frysinger.
58296
58297 2006-12-01  Jim Meyering  <jim@meyering.net>
58298
58299         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58300         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58301         Reported by Simon Josefsson.
58302
58303 2006-11-30  Jim Meyering  <jim@meyering.net>
58304
58305         * m4/warning.m4: Use the all-permissive copyright notice
58306         recommended by RMS (rather than LGPL).
58307         * m4/vararrays.m4: Likewise.
58308         * m4/flexmember.m4: Likewise.
58309
58310 2006-11-29  Bruno Haible  <bruno@clisp.org>
58311
58312         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58313         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58314         using +=.
58315         Reported by Simon Josefsson <simon@josefsson.org>.
58316
58317 2006-11-28  James Youngman <jay@gnu.org>
58318
58319         * README: Advise users that they might find the bug-gnulib@gnu.org
58320         and autotools-announce@gnu.org mailing lists useful.
58321
58322 2006-11-28  Bruno Haible  <bruno@clisp.org>
58323
58324         * m4/ptrdiff_max.m4: Remove file.
58325
58326 2006-11-21  Bruno Haible  <bruno@clisp.org>
58327
58328         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58329         _AC_COMPUTE_INT.
58330         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58331         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58332         _AC_COMPUTE_INT.
58333         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58334         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58335         _AC_COMPUTE_INT.
58336         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58337
58338 2006-11-28  Jim Meyering  <jim@meyering.net>
58339
58340         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58341         warning from "gcc -Wshadow" about shadowing the builtin.
58342
58343 2006-11-27  Bruno Haible  <bruno@clisp.org>
58344
58345         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58346         _AC_COMPUTE_INT.
58347         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58348
58349 2006-11-27  Bruno Haible  <bruno@clisp.org>
58350             Paul Eggert  <eggert@cs.ucla.edu>
58351
58352         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58353
58354 2006-11-26  Bruno Haible  <bruno@clisp.org>
58355
58356         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58357         noinst_LTLIBRARIES.
58358
58359 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58360             Bruno Haible  <bruno@clisp.org>
58361
58362         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58363         if compiling with "gcc -ansi".
58364
58365 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58366
58367         Fix some incompatibilities with gcc -ansi -pedantic.
58368         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58369         if compiling pedantically with GCC, unless it's C99 or later.
58370         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58371         it mishandles gcc -ansi -pedantic as well.
58372         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58373         if gcc -pedantic.
58374         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58375         initializers for struct if -pedantic, unless it's C99 or later.
58376
58377 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58378
58379         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58380         Don't close an fd more than once. Identical atimes indicate
58381         success, not failure.
58382
58383 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58384
58385         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58386
58387 2006-11-23  Jim Meyering  <jim@meyering.net>
58388
58389         * build-aux/announce-gen: New file.  From coreutils.
58390
58391 2006-11-22  Jim Meyering  <jim@meyering.net>
58392
58393         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58394         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58395         (fts_read): Use a temporary to narrow the overused st_size member
58396         before using it in a switch statement.  Reported by Matthew Woehlke.
58397
58398         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58399         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58400
58401 2006-11-20  Bruno Haible  <bruno@clisp.org>
58402
58403         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58404         changequote instead of pairs of brackets.
58405         Reported by Andreas Schwab <schwab@suse.de>.
58406
58407 2006-11-21  Jim Meyering  <jim@meyering.net>
58408
58409         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58410         so as to remain compatible with older compilers.
58411         Patch from Michael Deutschmann.
58412
58413 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58414
58415         * MODULES.html.sh (File system functions): Add openat.
58416
58417         * lib/openat.h (rpl_fstatat): New macro, if
58418         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58419         (fstatat): Define to rpl_fstatat under the same conditions,
58420         unless COMPILING_FSTATAT.
58421         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58422         seems to have the bug.
58423         * lib/fstatat.c: New file.
58424         * modules/openat (Files): Add it.
58425
58426 2006-11-20  Bruno Haible  <bruno@clisp.org>
58427
58428         * Makefile: New file.
58429
58430 2006-11-20  Jim Meyering  <jim@meyering.net>
58431
58432         The beginnings of syntax-related checks for gnulib.
58433         * lib/Makefile: New file.
58434         * lib/t-idcache: New script.  Ensure that the two halves of
58435         idcache.c stay in sync.
58436
58437         * lib/idcache.c: Adjust comments in user- and group- portions to
58438         be more accurate, and to be consistent with one another.
58439
58440 2006-11-20  Jim Meyering  <jim@meyering.net>
58441
58442         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58443         continue using the flexible array member (thus, this module performs
58444         half as many malloc calls), with the addition that...
58445         (getgroup, getuser): Consistently record a non-match via an empty
58446         "name" string, and map an empty string match to a NULL return value.
58447         * modules/idcache (Depends-on): Re-add flexmember.
58448
58449         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58450         (getuidbyname, getgroup, getgidbyname): Likewise.
58451
58452         Use cleaner syntax: NULL rather than 0.
58453         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58454
58455 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58456
58457         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58458         It mishandled the case where the group was missing.
58459         Problem reported by Greg Schafer.
58460         * modules/idcache: Likewise.
58461
58462 2006-11-18  Jim Meyering  <jim@meyering.net>
58463
58464         * check-module (%exempt_header): Add exception for some
58465         conditionally-included headers.
58466
58467         * modules/i-ring (Depends-on): Add verify.
58468         (License): Change to LGPL.
58469
58470 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58471
58472         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58473         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58474         and inttostr.h.  Use snprintf rather than uinttostr, so that
58475         LGPLed code doesn't depend on GPLed.
58476
58477 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58478
58479         * modules/inline (License): Change from GPL to LGPL.
58480
58481 2006-11-17  Jim Meyering  <jim@meyering.net>
58482
58483         * modules/d-type (License): Switch to LGPL.
58484
58485 2006-11-15  Bruno Haible  <bruno@clisp.org>
58486
58487         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58488
58489 2006-11-15  Eric Blake  <ebb9@byu.net>
58490
58491         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58492         the module dependency.
58493
58494 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58495             Bruno Haible  <bruno@clisp.org>
58496
58497         * gnulib-tool (func_create_testdir): Add license consistency check.
58498
58499 2006-11-15  Eric Blake  <ebb9@byu.net>
58500
58501         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58502         random "(cached)" in configure output.
58503
58504 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58505
58506         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58507         test for conforming inttypes.h is both announced and cached.
58508
58509         * MODULES.html.sh (seen_modules, seen_files): New variables.
58510         (func_module): Rewrite to use a few less gnulib-tool and sed
58511         invocations.  Avoid a couple of quadratic algorithms for ...
58512         (missed_modules, missed_files): ... these, with ...
58513         (func_append, func_tmpdir): ... these new functions, from
58514         gnulib-tool.  Analogously, install traps for cleanup.
58515
58516         * tests/test-gc.c (main): Remove unused variables.
58517         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58518
58519 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58520
58521         * modules/inttostr (License): Change to LGPL.
58522
58523 2006-11-14  Eric Blake  <ebb9@byu.net>
58524
58525         * modules/tempname (License): Change to LGPL.
58526
58527 2006-11-14  Eric Blake  <ebb9@byu.net>
58528
58529         * doc/functions.texi (Function Portability): *printf functions on
58530         Cygwin now understand all POSIX size specifiers.
58531
58532 2006-11-14  Bruno Haible  <bruno@clisp.org>
58533
58534         * modules/c-ctype (License): Change to LGPL.
58535
58536 2006-11-12  Bruno Haible  <bruno@clisp.org>
58537
58538         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58539         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58540         for GNOME libraries, for which the include files are installed in
58541         subdirectories of $prefix/include.
58542
58543 2006-11-12  Bruno Haible  <bruno@clisp.org>
58544
58545         * m4/lib-link.m4: Require at least autoconf-2.54.
58546         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58547         name to underscores for the --with option.
58548
58549 2006-11-13  Bruno Haible  <bruno@clisp.org>
58550
58551         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58552         the tests directory.
58553         Reported by Ralf Wildenhues.
58554
58555 2006-11-13  Bruno Haible  <bruno@clisp.org>
58556
58557         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58558         (func_emit_initmacro_end): Undo the override here.
58559         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58560         Works around the famous automake error in coreutils.
58561
58562 2006-11-13  Eric Blake  <ebb9@byu.net>
58563
58564         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58565         element, not its node.
58566
58567 2006-11-12  Bruno Haible  <bruno@clisp.org>
58568
58569         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58570         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58571
58572 2006-11-12  Bruno Haible  <bruno@clisp.org>
58573
58574         * gnulib-tool: New option --local-symlink.
58575         (func_usage): Document it.
58576         (lsymbolic): New variable.
58577         (func_import, func_create_testdir): If --symlink was not specified,
58578         test whether --local-symlink was specified and the file comes from
58579         the local_gnulib_dir.
58580
58581 2006-11-12  Bruno Haible  <bruno@clisp.org>
58582
58583         * gnulib-tool (func_ln): New function.
58584         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58585
58586 2006-11-12  Bruno Haible  <bruno@clisp.org>
58587
58588         Finish support for source files in subdirectories.
58589         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58590         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58591         AUTOMAKE_OPTIONS.
58592         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58593
58594 2006-11-12  Bruno Haible  <bruno@clisp.org>
58595
58596         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58597         EXTRA_lib_SOURCES augmentation.
58598         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58599
58600 2006-11-12  Jim Meyering  <jim@meyering.net>
58601
58602         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58603         file descriptors.  This also averts a failure on systems with
58604         native openat support when a traversed directory lacks "x" access.
58605         * lib/fts_.h: Include "i-ring.h"
58606         (struct FTS) [fts_fd_ring]: New member.
58607         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58608         (FCHDIR): Add parentheses.
58609         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58610         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58611         When descending, rather than simply closing the previous
58612         fts_cwd_fd value, push that file descriptor onto the ring.
58613         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58614         (fts_open): Initialize the new fd_ring member.
58615         (fts_close): Clear the ring.
58616         (fts_safe_changedir): When possible, use our new fd_ring to skip
58617         the diropen and fstat and dev/ino comparison that would normally
58618         accompany a virtual `chdir ("..")'.
58619
58620         * modules/fts (Depends-on): Add i-ring.
58621         * modules/i-ring: New module.
58622         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58623         * m4/i-ring.m4: New file.
58624
58625 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58626
58627         * gnulib-tool (func_create_testdir): Fix replacement of
58628         `build-aux' in configure.ac.  Run autotools in gltests
58629         subdirectory.
58630         (func_create_testdir, func_create_megatestdir, test): There is
58631         no need for '--force' in most autotool invocations in a new
58632         tree.  Actually fail the whole test if any of the tools, or the
58633         configure or make stages fail.
58634
58635         Sync from Automake.
58636         * build-aux/gnupload: Revert last change.  Add pointer to upload
58637         instructions of the GNU Maintenance Instructions.
58638         Suggestion by Karl Berry.
58639
58640 2006-11-10  Jim Meyering  <jim@meyering.net>
58641
58642         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58643
58644 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58645
58646         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58647         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58648         (bind_textdomain_codeset) [! ENABLE_NLS]:
58649         Evaluate all the arguments.  That way, callers get compatible behavior
58650         if the arguments have side effects.  Also, it avoids some GCC
58651         diagnostics in some cases; Joel E. Denny reported problems when Bison
58652         was configured with --enable-gcc-warnigs.
58653
58654 2006-11-10  Jim Meyering  <jim@meyering.net>
58655
58656         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58657         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58658         account.
58659
58660 2006-11-10  Jim Meyering  <jim@meyering.net>
58661
58662         * modules/inline: New file/module.
58663         * modules/xalloc (Files): Remove m4/inline.m4.
58664         (Depends-on): Add inline, instead.
58665         * modules/oset: Likewise.
58666         * modules/list: Likewise.
58667
58668 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58669
58670         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58671         Problem reported by Matthew Woehlke.
58672
58673 2006-11-09  Bruno Haible  <bruno@clisp.org>
58674
58675         * lib/tempname.c (gen_tempname): Remove variant that invokes
58676         __gen_tempname.
58677         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58678         __gen_tempname.
58679
58680 2006-11-08  Bruno Haible  <bruno@clisp.org>
58681
58682         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58683         to 'yes' instead of 'cross-compiling'.
58684
58685 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58686
58687         * lib/quotearg.h (quotearg_free): New decl.
58688         * lib/quotearg.c (quotearg_free): New function.
58689         (slot0, nslots, slotvec0, slotvec):
58690         Now file-scope so that quotearg_free can get at them.
58691
58692 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58693
58694         Sync from Automake.
58695         * build-aux/gnupload: Add missing 'gnu' to example URL.
58696         Report by Karl Berry.
58697
58698 2006-11-08  Bruno Haible  <bruno@clisp.org>
58699
58700         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58701         Suggested by Paul Eggert.
58702
58703 2006-11-08  Jim Meyering  <jim@meyering.net>
58704
58705         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58706         It's already included if !_LIBC.
58707         (fts_safe_changedir): Add a comment.
58708
58709 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58710
58711         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58712         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58713         Matthew Woehlke.
58714
58715         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58716         definitions up, to avoid colliding with change below.
58717         (static_inline) [HAVE_INLINE]: New macro.
58718         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58719         Provide extern decls when !HAVE_INLINE.  Do not define unless
58720         static_inline is defined, either by us or by xmalloc.c.  Use
58721         static_inline rather than static inline.
58722         (XCALLOC): Optimize sizeof(T) = 1 case.
58723         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58724
58725 2006-11-07  Bruno Haible  <bruno@clisp.org>
58726
58727         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58728         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58729         AC_C_INLINE.
58730         * modules/xalloc (Files): Add m4/inline.m4.
58731
58732 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58733
58734         * README: Fix typo.
58735         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58736         (Miscellanous Notes): ...from this.
58737
58738 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58739
58740         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58741         Mention that offsetof should be used instead of sizeof.
58742         From Bruno Haible.
58743
58744 2006-11-07  Bruno Haible  <bruno@clisp.org>
58745
58746         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58747
58748 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58749
58750         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58751         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58752         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58753         (gl_tree_add_before, gl_tree_add_after):
58754         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58755         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58756         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58757         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58758         (gl_linked_add_after, gl_linked_add_at): Likewise.
58759         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
58760         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58761         (gl_tree_add_before, gl_tree_add_after): Likewise.
58762         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
58763         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
58764         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58765
58766 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58767
58768         * lib/gl_oset.h: Use C comment style, not C++ comment style.
58769
58770 2006-11-06  Bruno Haible  <bruno@clisp.org>
58771
58772         * m4/inline.m4: New file.
58773         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
58774         * modules/list (Files): Add m4/inline.m4.
58775         * modules/oset (Files): Likewise.
58776
58777 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58778
58779         * lib/idcache.c: Include <stddef.h>, for offsetof.
58780         (struct userid.name): Change from char * to a flexible array member.
58781         All uses changed.
58782         * modules/idcache (Depends-on): Add flexmember.
58783
58784         * MODULES.html.sh (Core language properties): New module flexmember.
58785         * modules/flexmember, m4/flexmember.m4: New files.
58786
58787         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
58788         inline functions that are identical with the old xnmalloc_inline,
58789         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
58790         that we can avoid some unnecessary integer multiplications and
58791         divisions in the common case where the element size is known at
58792         compile time.
58793         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
58794         needed.
58795         (xnboundedmalloc): Remove.
58796         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
58797         arguments, for consistency with rest of this header.
58798         (xcharalloc): Rewrite using XNMALLOC.
58799         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
58800         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
58801         versions have been moved to lib/xalloc.h and renamed to be the
58802         non-*_inline versions.
58803         (xmalloc, xrealloc): Implement without reference to the xnmalloc
58804         and xnrealloc functions, since those functions are now inline and
58805         now call us.
58806         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
58807         renaming described above.
58808         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
58809         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
58810         captures the dependency in AC_C_INLINE.
58811
58812         New module canonicalize-lgpl, proposed by Charles Wilson in
58813         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
58814         with a few small changes afterwards.
58815         * MODULES.html.sh (File system functions): New module
58816         canonicalize-lgpl.
58817         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
58818         and canonicalize_file_name.
58819         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
58820         * modules/canonicalize-lgpl: New files.
58821
58822 2006-11-05  Bruno Haible  <bruno@clisp.org>
58823
58824         * gnulib-tool (func_import, func_create_testdir): Create directories
58825         also for files in subdirectories of lib/.
58826
58827 2006-11-05  Bruno Haible  <bruno@clisp.org>
58828
58829         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
58830         ANSI C compliant.
58831
58832 2006-11-03  Bruno Haible  <bruno@clisp.org>
58833
58834         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58835         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
58836         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
58837         (xnboundedmalloc): New inline function.
58838         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
58839         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
58840         xmalloc.
58841         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
58842         xmalloc.
58843         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
58844         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
58845         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
58846         xmalloc.
58847         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58848         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
58849         xmalloc.
58850         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
58851         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58852         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
58853         xmalloc.
58854         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58855         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
58856         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58857         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
58858         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
58859         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
58860         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
58861
58862 2006-11-03  Bruno Haible  <bruno@clisp.org>
58863
58864         * lib/c-ctype.h [C++]: Define functions without name mangling.
58865         * lib/fwriteerror.h [C++]: Likewise.
58866         * lib/gcd.h [C++]: Likewise.
58867         * lib/linebreak.h [C++]: Likewise.
58868
58869 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58870
58871         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
58872         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
58873         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
58874         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58875         Check for functions and headers just once.
58876         Check for declaration of canonicalize_file_name.
58877         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
58878
58879 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58880
58881         * gnulib-tool (func_import): Fix typo in actioncmd.
58882
58883 2006-11-02  Bruno Haible  <bruno@clisp.org>
58884
58885         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
58886         newline sequence in the Makefile.am snippet as a space, like "make"
58887         does.
58888         Reported by Roger Persson <perrog@gmail.com>.
58889
58890 2006-11-01  Bruno Haible  <bruno@clisp.org>
58891
58892         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
58893         already declared in <string.h>.
58894         * lib/strcase.h (strncasecmp): Don't declare it if yes.
58895
58896 2006-11-01  Bruno Haible  <bruno@clisp.org>
58897
58898         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
58899         * lib/strcase.h: Include <string.h>.
58900         (strcasecmp): Define to rpl_strcasecmp here.
58901
58902 2006-11-01  Bruno Haible  <bruno@clisp.org>
58903
58904         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
58905
58906 2006-11-01  Eric Blake  <ebb9@byu.net>
58907
58908         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
58909
58910         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
58911
58912 2006-10-29  Bruno Haible  <bruno@clisp.org>
58913
58914         Make it compile in C++ mode.
58915         * lib/full-write.c (full_rw): Add a cast.
58916
58917 2006-11-01  Bruno Haible  <bruno@clisp.org>
58918
58919         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
58920         be POSIX compliant.
58921         Reported by Roger Persson <perrog@gmail.com>.
58922
58923 2006-11-01  Eric Blake  <ebb9@byu.net>
58924
58925         * lib/getopt_.h: Fix comments.
58926
58927 2006-10-31  Eric Blake  <ebb9@byu.net>
58928
58929         * modules/tmpdir (Depends-on): Add sys_stat.
58930         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
58931         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
58932         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
58933         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
58934         tempname.
58935
58936 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
58937
58938         Avoid some C++ diagnostics reported by Bruno Haible.
58939         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
58940         xmalloc.
58941         (quotearg_alloc): Use xcharalloc rather than xmalloc.
58942         (struct slotvec): Move to top level.
58943         (quotearg_n_options): Rewrite to avoid xmalloc.
58944         * lib/xalloc.h (xcharalloc): New function.
58945         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
58946         [defined __cplusplus]: Add function template that provides result
58947         type propagation.  This part of the change is from Bruno Haible.
58948
58949 2006-10-29  Bruno Haible  <bruno@clisp.org>
58950
58951         Make it compile in C++ mode.
58952         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
58953         * lib/strnlen1.c (strnlen1): Cast memchr result.
58954         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58955         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58956         (create_temp_dir): Rename local variable 'template'.
58957         (compile_csharp_using_sscli): Add cast.
58958         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58959         * lib/findprog.c (find_in_path): Likewise.
58960         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58961         * lib/wait-process.c (register_slave_subprocess): Likewise.
58962
58963 2006-10-22  Bruno Haible  <bruno@clisp.org>
58964
58965         * modules/tsearch: New file.
58966         * lib/tsearch.h: New file.
58967         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58968         * m4/tsearch.m4: New file.
58969         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58970
58971 2006-10-29  Eric Blake  <ebb9@byu.net>
58972
58973         * lib/arcfour.c: Assume config.h.
58974         * lib/arctwo.c: Likewise.
58975         * lib/base64.c: Likewise.
58976         * lib/check-version.c: Likewise.
58977         * lib/crc.c: Likewise.
58978         * lib/des.c: Likewise.
58979         * lib/gc-gnulib.c: Likewise.
58980         * lib/gc-libgcrypt.c: Likewise.
58981         * lib/gc-pbkdf2-sha1.c: Likewise.
58982         * lib/getaddrinfo.c: Likewise.
58983         * lib/getdelim.c: Likewise.
58984         * lib/getline.c: Likewise.
58985         * lib/hmac-md5.c: Likewise.
58986         * lib/hmac-sha1.c: Likewise.
58987         * lib/iconvme.c: Likewise.
58988         * lib/md2.c: Likewise.
58989         * lib/md4.c: Likewise.
58990         * lib/memxor.c: Likewise.
58991         * lib/read-file.c: Likewise.
58992         * lib/readline.c: Likewise.
58993         * lib/rijndael-alg-fst.c: Likewise.
58994         * lib/rijndael-api-fst.c: Likewise.
58995         * lib/xgetdomainname.c: Likewise.
58996
58997 2006-10-28  Eric Blake  <ebb9@byu.net>
58998
58999         * lib/xstrndup.c: Assume config.h.
59000
59001 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59002
59003         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
59004         stat-macros.h is now for our own macros, whereas stat_h is for
59005         macros in the <sys/stat.h> name space.
59006         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
59007         (STAT_MACROS_H): Remove.
59008         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
59009         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
59010         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
59011         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
59012         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
59013         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
59014         Move these macros to ...
59015         * lib/stat_.h: here.  Don't include stat-macros.h.
59016         * lib/canonicalize.c: Don't include stat-macros.h.
59017         * lib/chown.c: Likewise.
59018         * lib/euidaccess.c: Likewise.
59019         * lib/file-type.c: Likewise.
59020         * lib/filemode.c: Likewise.
59021         * lib/glob.c: Likewise.
59022         * lib/isapipe.c: Likewise.
59023         * lib/lchown.c: Likewise.
59024         * lib/lstat.c: Likewise.
59025         * lib/mkdir-p.c: Likewise.
59026         * lib/rmdir.c: Likewise.
59027         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
59028         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
59029         unless mkdir isn't declared, to speed up 'configure'.
59030         Always create sys/stat.h, since it's unlikely any real sys/stat.h
59031         would define all the S_* symbols.
59032         * modules/canonicalize (Depends-on):
59033         Depend on sys_stat, not stat-macros.
59034         * modules/chown: Likewise.
59035         * modules/euidaccess: Likewise.
59036         * modules/filemode: Likewise.
59037         * modules/file-type: Likewise.
59038         * modules/glob: Likewise.
59039         * modules/isapipe: Likewise.
59040         * modules/lchown: Likewise.
59041         * modules/lstat: Likewise.
59042         * modules/mkancesdirs: Likewise.
59043         * modules/rmdir: Likewise.
59044         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
59045         * modules/modechange: Likewise.
59046         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
59047         (configure.ac): Remove gl_STAT_MACROS.
59048         * modules/sys_stat (Depends-on): Remove stat-macros.
59049
59050 2006-10-27  Bruno Haible  <bruno@clisp.org>
59051
59052         * m4/signed.m4: Remove file.
59053         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59054         invocation.
59055         * modules/vasnprintf (Files): Remove m4/signed.m4.
59056
59057 2006-10-27  Bruno Haible  <bruno@clisp.org>
59058
59059         Update to GNU gettext 0.16.
59060         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
59061         m4/inttypes-h.m4, m4/signed.m4.
59062         * m4/gettext.m4: Update to GNU gettext 0.16.
59063         * m4/intl.m4: New file, from GNU gettext.
59064         * m4/intldir.m4: New file, from GNU gettext.
59065         * config/srclist.txt: Update
59066
59067 2006-10-27  Eric Blake  <ebb9@byu.net>
59068
59069         * MODULES.html.sh: Document tempname.
59070         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
59071         dependencies.
59072         (Files): Move lib/tempname.c...
59073         * modules/tempname: ...to this new module.
59074         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
59075         (gl_PREREQ_TEMPNAME): Move...
59076         * m4/tempname.m4: ...to this new file.
59077         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
59078         * modules/sys_stat (Depends-on): Add stat-macros.
59079         * lib/stat_.h (includes): Pick up stat macros.
59080         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
59081         if stat macros are broken.
59082         * lib/tempname.c (includes): No need to include "stat-macros.h".
59083         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
59084         (direxists, __path_search) [!_LIBC]: Don't compile these in
59085         gnulib; the tmpdir module covers that.
59086         * lib/tempname.h: New file.
59087
59088 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59089
59090         * COPYING: Explain how gnulib-tool converts licence headers.
59091         Almost all wording by Eric Blake.
59092
59093 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59094
59095         * lib/mbchar.h (is_basic_table): Make read-only.
59096         * lib/mbchar.c (is_basic_table): Likewise.
59097         Reported by John Darrington.
59098
59099 2006-10-25  Bruno Haible  <bruno@clisp.org>
59100
59101         * lib/progname.h (set_program_name): Undefine before defining.
59102
59103 2006-10-25  Bruno Haible  <bruno@clisp.org>
59104
59105         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59106         false for non-gcc C++ compilers.
59107         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59108
59109 2006-10-24  Bruno Haible  <bruno@clisp.org>
59110
59111         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59112         iconv implementations like Irix iconv.
59113
59114 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         * modules/vararrays: New file.
59117         * m4/vararrays.m4: New file, taken from diffutils.
59118         * MODULES.html.sh: New module vararrays.
59119
59120 2006-10-24  Karl Berry  <karl@gnu.org>
59121
59122         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59123         Don't call GNU Unix.
59124
59125 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59126
59127         * users.txt: Add Libtool.
59128
59129         Sync from Libtool:
59130
59131         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59132
59133         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59134         to gnulib's policy of including config.h unconditionally.
59135
59136 2006-10-24  Bruno Haible  <bruno@clisp.org>
59137
59138         * modules/wcwidth (Files): Add m4/wint_t.m4.
59139         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59140         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59141
59142 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59143
59144         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59145         to pacify GCC with some -W flags enabled.  Problem reported by
59146         Bruno Haible.
59147
59148 2006-10-24  Jim Meyering  <jim@meyering.net>
59149
59150         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59151         Reported by Karl Berry.
59152
59153 2006-10-23  Bruno Haible  <bruno@clisp.org>
59154
59155         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59156
59157 2006-10-24  Bruno Haible  <bruno@clisp.org>
59158
59159         * lib/gl_list.h: Use C comment style, not C++ comment style.
59160
59161 2006-10-23  Eric Blake  <ebb9@byu.net>
59162
59163         * lib/getaddrinfo.c (includes): Add missing include.
59164
59165 2006-10-23  Bruno Haible  <bruno@clisp.org>
59166             Paul Eggert  <eggert@cs.ucla.edu>
59167
59168         Ability to rename obstack_free.
59169         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59170         obstack_free.
59171         (obstack_free): Invoke the __obstack_free macro.
59172         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59173
59174 2006-10-23  Bruno Haible  <bruno@clisp.org>
59175             Paul Eggert  <eggert@cs.ucla.edu>
59176
59177         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59178         __argc, __argv from the declaration. (They are defined as macros on
59179         mingw.)
59180
59181 2006-10-22  Bruno Haible  <bruno@clisp.org>
59182
59183         * doc/gnulib-intro.texi: New file.
59184         * doc/gnulib.texi: Include it.
59185
59186 2006-10-21  Bruno Haible  <bruno@clisp.org>
59187
59188         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59189         "Introduction", "Miscellanous Notes", "Particular Modules".
59190
59191 2006-10-21  Bruno Haible  <bruno@clisp.org>
59192
59193         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59194         Change mostlyclean-local rule to avoid sh syntax error from bash
59195         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59196
59197 2006-10-23  Jim Meyering  <jim@meyering.net>
59198
59199         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59200         in place of snprintf.
59201
59202         * modules/inttostr (Files): Add lib/uinttostr.c.
59203         * lib/uinttostr.c (inttostr): New file/function.
59204         * lib/inttostr.h (uinttostr): Declare.
59205         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59206         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59207         Add uinttostr.
59208         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59209
59210 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         * lib/canonicalize.c (ELOOP): Define if not already defined.
59213         Problem reported by Bruno Haible in
59214         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59215
59216 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59217
59218         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59219         Problem reported by Perry Smith and Ville Laurikari.
59220
59221         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59222         uses.
59223
59224 2006-10-19  Bruno Haible  <bruno@clisp.org>
59225
59226         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59227         for mingw.
59228
59229 2006-10-19  Bruno Haible  <bruno@clisp.org>
59230
59231         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59232         Needed for mingw.
59233
59234 2006-10-19  Bruno Haible  <bruno@clisp.org>
59235
59236         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59237
59238 2006-10-19  Bruno Haible  <bruno@clisp.org>
59239
59240         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59241         it.
59242
59243 2006-10-19  Bruno Haible  <bruno@clisp.org>
59244
59245         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59246         invocation.
59247
59248 2006-10-19  Bruno Haible  <bruno@clisp.org>
59249
59250         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59251         mountlist by default.
59252
59253 2006-10-16  Bruno Haible  <bruno@clisp.org>
59254
59255         * lib/c-strstr.c: Include c-strstr.h.
59256
59257 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59258
59259         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59260         in a slash.
59261
59262 2006-10-18  Bruno Haible  <bruno@clisp.org>
59263
59264         * lib/lock.h [C++]: Wrap definitions in extern "C".
59265
59266 2006-10-18  Bruno Haible  <bruno@clisp.org>
59267
59268         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59269         gl_LIBOBJS list.
59270
59271 2006-10-18  Bruno Haible  <bruno@clisp.org>
59272
59273         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59274
59275 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59276
59277         * lib/xstrtol.h: Include gettext.h.
59278         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59279         Problem reported by Eric Blake.
59280         * modules/xstrtol (Depends-on): Add gettext-h.
59281
59282 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59283
59284         * lib/strftime.c (advance): New macro.
59285         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59286         incomplete type, so you can't add 0 to it.  Problem and patch
59287         reported by Eelco Dolstra for dietlibc.
59288
59289 2006-10-18  Jim Meyering  <jim@meyering.net>
59290
59291         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59292         type for a local, and rename it: s/up/user_proc/.
59293
59294 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59295
59296         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59297         READ_UTMP_USER_PROCESS.
59298         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59299
59300 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59301
59302         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59303         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59304
59305 2006-10-17  Eric Blake  <ebb9@byu.net>
59306
59307         * lib/sigprocmask.c (sigprocmask): Fix typo.
59308
59309         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59310
59311         * modules/clean-temp (Makefile.am): Don't add to make output...
59312         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59313         config.h.
59314
59315 2006-10-17  Bruno Haible  <bruno@clisp.org>
59316
59317         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59318         differently if DEFAULT_TEXT_DOMAIN is set.
59319
59320 2006-10-16  Bruno Haible  <bruno@clisp.org>
59321
59322         * lib/clean-temp.c: Include fwriteerror.h.
59323
59324 2006-10-16  Bruno Haible  <bruno@clisp.org>
59325
59326         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59327
59328 2006-10-16  Bruno Haible  <bruno@clisp.org>
59329
59330         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59331         * lib/sigprocmask.h: Include <sys/types.h>.
59332         (sigset_t): Use the system's definition if present.
59333
59334 2006-10-17  Eric Blake  <ebb9@byu.net>
59335
59336         * lib/xvasprintf.c (includes): Assume config.h.
59337         * lib/xasprintf.c (includes): Likewise.
59338
59339 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59340
59341         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59342         at least as wide as intmax_t.
59343
59344 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59345
59346         (Imported from Automake.)
59347         * build-aux/gnupload: Update to version 1.1 of directive file.
59348
59349 2006-10-16  Eric Blake  <ebb9@byu.net>
59350
59351         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59352         match Automake 1.10a.
59353
59354 2006-10-14  Bruno Haible  <bruno@clisp.org>
59355
59356         * modules/sigprocmask: New file.
59357         * lib/sigprocmask.h: New file.
59358         * lib/sigprocmask.c: New file.
59359         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59360         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59361         request sigprocmask.o.
59362         (gl_PREREQ_SIGPROCMASK): New macro.
59363         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59364         (Depends-on): Add sigprocmask.
59365         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59366         gt_SIGNALBLOCKING. Test for 'raise' only once.
59367         * lib/fatal-signal.c: Include sigprocmask.h.
59368         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59369         unblock_fatal_signals): Define always.
59370         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59371         sigprocmask.
59372
59373 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59374
59375         Sync from Automake.
59376         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59377         which incorrectly sets the mode of an existing destination
59378         directory.  In some cases the unpatched install-sh could do the
59379         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59380         system.  We hope this is rare in practice, but it's clearly worth
59381         fixing.  Problem reported by Alex Unleashed in
59382         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59383         Also, don't bother to check for -m bugs unless we're using -m;
59384         suggested by Stepan Kasal.
59385
59386 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59387
59388         Sync from Automake.
59389         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59390         `-c' flag, so they appear at the same position as in %FASTDEP%
59391         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59392         which ignores unknown options only after the first non-option.
59393         Bug report against M4 by Nelson H. F. Beebe.
59394
59395 2006-10-13  Jim Meyering  <jim@meyering.net>
59396
59397         Fix a bug in yesterday's change.
59398         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59399         p->fts_statp->st_dev would be used uninitialized.
59400         Ensures that we always call fts_stat on the very first entry.
59401         Miklos Szeredi reported that find -xdev stopped working.
59402
59403 2006-10-12  Bruno Haible  <bruno@clisp.org>
59404
59405         * gnulib-tool (func_get_automake_snippet): Append an automatically
59406         computed EXTRA_DIST augmentation.
59407         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59408         * modules/alloca-opt (Makefile.am): Likewise.
59409         * modules/allocsa (Makefile.am): Likewise.
59410         * modules/arcfour (Makefile.am): Likewise.
59411         * modules/arctwo (Makefile.am): Likewise.
59412         * modules/argmatch (Makefile.am): Likewise.
59413         * modules/argz (Makefile.am): Likewise.
59414         * modules/atexit (Makefile.am): Likewise.
59415         * modules/backupfile (Makefile.am): Likewise.
59416         * modules/byteswap (Makefile.am): Likewise.
59417         * modules/c-strtod (Makefile.am): Likewise.
59418         * modules/c-strtold (Makefile.am): Likewise.
59419         * modules/calloc (Makefile.am): Likewise.
59420         * modules/canon-host (Makefile.am): Likewise.
59421         * modules/canonicalize (Makefile.am): Likewise.
59422         * modules/chdir-long (Makefile.am): Likewise.
59423         * modules/chdir-safer (Makefile.am): Likewise.
59424         * modules/check-version (Makefile.am): Likewise.
59425         * modules/chown (Makefile.am): Likewise.
59426         * modules/cloexec (Makefile.am): Likewise.
59427         * modules/close-stream (Makefile.am): Likewise.
59428         * modules/closeout (Makefile.am): Likewise.
59429         * modules/crc (Makefile.am): Likewise.
59430         * modules/csharpexec (Makefile.am): Likewise.
59431         * modules/cycle-check (Makefile.am): Likewise.
59432         * modules/des (Makefile.am): Likewise.
59433         * modules/dev-ino (Makefile.am): Likewise.
59434         * modules/dirfd (Makefile.am): Likewise.
59435         * modules/dirname (Makefile.am): Likewise.
59436         * modules/dup2 (Makefile.am): Likewise.
59437         * modules/eealloc (Makefile.am): Likewise.
59438         * modules/error (Makefile.am): Likewise.
59439         * modules/euidaccess (Makefile.am): Likewise.
59440         * modules/exclude (Makefile.am): Likewise.
59441         * modules/exitfail (Makefile.am): Likewise.
59442         * modules/fcntl-safer (Makefile.am): Likewise.
59443         * modules/fcntl (Makefile.am): Likewise.
59444         * modules/file-type (Makefile.am): Likewise.
59445         * modules/fileblocks (Makefile.am): Likewise.
59446         * modules/filemode (Makefile.am): Likewise.
59447         * modules/filenamecat (Makefile.am): Likewise.
59448         * modules/fnmatch (Makefile.am): Likewise.
59449         * modules/fopen-safer (Makefile.am): Likewise.
59450         * modules/fpending (Makefile.am): Likewise.
59451         * modules/fprintftime (Makefile.am): Likewise.
59452         * modules/free (Makefile.am): Likewise.
59453         * modules/fsusage (Makefile.am): Likewise.
59454         * modules/ftruncate (Makefile.am): Likewise.
59455         * modules/fts (Makefile.am): Likewise.
59456         * modules/gc-arcfour (Makefile.am): Likewise.
59457         * modules/gc-des (Makefile.am): Likewise.
59458         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59459         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59460         * modules/gc-md4 (Makefile.am): Likewise.
59461         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59462         * modules/gc-sha1 (Makefile.am): Likewise.
59463         * modules/gc (Makefile.am): Likewise.
59464         * modules/getaddrinfo (Makefile.am): Likewise.
59465         * modules/getcwd (Makefile.am): Likewise.
59466         * modules/getdelim (Makefile.am): Likewise.
59467         * modules/getdomainname (Makefile.am): Likewise.
59468         * modules/getgroups (Makefile.am): Likewise.
59469         * modules/gethostname (Makefile.am): Likewise.
59470         * modules/gethrxtime (Makefile.am): Likewise.
59471         * modules/getline (Makefile.am): Likewise.
59472         * modules/getloadavg (Makefile.am): Likewise.
59473         * modules/getlogin_r (Makefile.am): Likewise.
59474         * modules/getndelim2 (Makefile.am): Likewise.
59475         * modules/getopt (Makefile.am): Likewise.
59476         * modules/getpagesize (Makefile.am): Likewise.
59477         * modules/getpass-gnu (Makefile.am): Likewise.
59478         * modules/getpass (Makefile.am): Likewise.
59479         * modules/getsubopt (Makefile.am): Likewise.
59480         * modules/gettime (Makefile.am): Likewise.
59481         * modules/gettimeofday (Makefile.am): Likewise.
59482         * modules/getugroups (Makefile.am): Likewise.
59483         * modules/getusershell (Makefile.am): Likewise.
59484         * modules/glob (Makefile.am): Likewise.
59485         * modules/group-member (Makefile.am): Likewise.
59486         * modules/hard-locale (Makefile.am): Likewise.
59487         * modules/hash (Makefile.am): Likewise.
59488         * modules/hmac-md5 (Makefile.am): Likewise.
59489         * modules/hmac-sha1 (Makefile.am): Likewise.
59490         * modules/human (Makefile.am): Likewise.
59491         * modules/idcache (Makefile.am): Likewise.
59492         * modules/imaxabs (Makefile.am): Likewise.
59493         * modules/imaxdiv (Makefile.am): Likewise.
59494         * modules/inet_ntop (Makefile.am): Likewise.
59495         * modules/inet_pton (Makefile.am): Likewise.
59496         * modules/intprops (Makefile.am): Likewise.
59497         * modules/inttostr (Makefile.am): Likewise.
59498         * modules/inttypes (Makefile.am): Likewise.
59499         * modules/isapipe (Makefile.am): Likewise.
59500         * modules/javaversion (Makefile.am): Likewise.
59501         * modules/lchmod (Makefile.am): Likewise.
59502         * modules/lchown (Makefile.am): Likewise.
59503         * modules/localcharset (Makefile.am): Likewise.
59504         * modules/long-options (Makefile.am): Likewise.
59505         * modules/lstat (Makefile.am): Likewise.
59506         * modules/malloc (Makefile.am): Likewise.
59507         * modules/mathl (Makefile.am): Likewise.
59508         * modules/mbchar (Makefile.am): Likewise.
59509         * modules/md2 (Makefile.am): Likewise.
59510         * modules/md4 (Makefile.am): Likewise.
59511         * modules/md5 (Makefile.am): Likewise.
59512         * modules/memcasecmp (Makefile.am): Likewise.
59513         * modules/memchr (Makefile.am): Likewise.
59514         * modules/memcmp (Makefile.am): Likewise.
59515         * modules/memcoll (Makefile.am): Likewise.
59516         * modules/memcpy (Makefile.am): Likewise.
59517         * modules/memmem (Makefile.am): Likewise.
59518         * modules/memmove (Makefile.am): Likewise.
59519         * modules/mempcpy (Makefile.am): Likewise.
59520         * modules/memrchr (Makefile.am): Likewise.
59521         * modules/memset (Makefile.am): Likewise.
59522         * modules/memxor (Makefile.am): Likewise.
59523         * modules/mkancesdirs (Makefile.am): Likewise.
59524         * modules/mkdir-p (Makefile.am): Likewise.
59525         * modules/mkdir (Makefile.am): Likewise.
59526         * modules/mkdtemp (Makefile.am): Likewise.
59527         * modules/mkstemp (Makefile.am): Likewise.
59528         * modules/mktime (Makefile.am): Likewise.
59529         * modules/modechange (Makefile.am): Likewise.
59530         * modules/mountlist (Makefile.am): Likewise.
59531         * modules/nanosleep (Makefile.am): Likewise.
59532         * modules/obstack (Makefile.am): Likewise.
59533         * modules/openat (Makefile.am): Likewise.
59534         * modules/pagealign_alloc (Makefile.am): Likewise.
59535         * modules/pathmax (Makefile.am): Likewise.
59536         * modules/physmem (Makefile.am): Likewise.
59537         * modules/poll (Makefile.am): Likewise.
59538         * modules/posixtm (Makefile.am): Likewise.
59539         * modules/posixver (Makefile.am): Likewise.
59540         * modules/putenv (Makefile.am): Likewise.
59541         * modules/quote (Makefile.am): Likewise.
59542         * modules/quotearg (Makefile.am): Likewise.
59543         * modules/raise (Makefile.am): Likewise.
59544         * modules/read-file (Makefile.am): Likewise.
59545         * modules/readline (Makefile.am): Likewise.
59546         * modules/readlink (Makefile.am): Likewise.
59547         * modules/readtokens (Makefile.am): Likewise.
59548         * modules/readutmp (Makefile.am): Likewise.
59549         * modules/realloc (Makefile.am): Likewise.
59550         * modules/regex (Makefile.am): Likewise.
59551         * modules/rename-dest-slash (Makefile.am): Likewise.
59552         * modules/rename (Makefile.am): Likewise.
59553         * modules/rijndael (Makefile.am): Likewise.
59554         * modules/rmdir (Makefile.am): Likewise.
59555         * modules/rpmatch (Makefile.am): Likewise.
59556         * modules/safe-read (Makefile.am): Likewise.
59557         * modules/safe-write (Makefile.am): Likewise.
59558         * modules/same-inode (Makefile.am): Likewise.
59559         * modules/same (Makefile.am): Likewise.
59560         * modules/save-cwd (Makefile.am): Likewise.
59561         * modules/savedir (Makefile.am): Likewise.
59562         * modules/setenv (Makefile.am): Likewise.
59563         * modules/settime (Makefile.am): Likewise.
59564         * modules/sha1 (Makefile.am): Likewise.
59565         * modules/sig2str (Makefile.am): Likewise.
59566         * modules/snprintf (Makefile.am): Likewise.
59567         * modules/stat-macros (Makefile.am): Likewise.
59568         * modules/stat-time (Makefile.am): Likewise.
59569         * modules/stdbool (Makefile.am): Likewise.
59570         * modules/stdint (Makefile.am): Likewise.
59571         * modules/stdlib-safer (Makefile.am): Likewise.
59572         * modules/stpcpy (Makefile.am): Likewise.
59573         * modules/stpncpy (Makefile.am): Likewise.
59574         * modules/strcase (Makefile.am): Likewise.
59575         * modules/strcasestr (Makefile.am): Likewise.
59576         * modules/strchrnul (Makefile.am): Likewise.
59577         * modules/strcspn (Makefile.am): Likewise.
59578         * modules/strdup (Makefile.am): Likewise.
59579         * modules/strerror (Makefile.am): Likewise.
59580         * modules/strftime (Makefile.am): Likewise.
59581         * modules/strndup (Makefile.am): Likewise.
59582         * modules/strnlen (Makefile.am): Likewise.
59583         * modules/strpbrk (Makefile.am): Likewise.
59584         * modules/strsep (Makefile.am): Likewise.
59585         * modules/strstr (Makefile.am): Likewise.
59586         * modules/strtod (Makefile.am): Likewise.
59587         * modules/strtoimax (Makefile.am): Likewise.
59588         * modules/strtok_r (Makefile.am): Likewise.
59589         * modules/strtol (Makefile.am): Likewise.
59590         * modules/strtoll (Makefile.am): Likewise.
59591         * modules/strtoul (Makefile.am): Likewise.
59592         * modules/strtoull (Makefile.am): Likewise.
59593         * modules/strtoumax (Makefile.am): Likewise.
59594         * modules/strverscmp (Makefile.am): Likewise.
59595         * modules/sys_socket (Makefile.am): Likewise.
59596         * modules/sys_stat (Makefile.am): Likewise.
59597         * modules/sysexits (Makefile.am): Likewise.
59598         * modules/time_r (Makefile.am): Likewise.
59599         * modules/timegm (Makefile.am): Likewise.
59600         * modules/timespec (Makefile.am): Likewise.
59601         * modules/tmpfile-safer (Makefile.am): Likewise.
59602         * modules/trim (Makefile.am): Likewise.
59603         * modules/unistd-safer (Makefile.am): Likewise.
59604         * modules/unlinkdir (Makefile.am): Likewise.
59605         * modules/unlocked-io (Makefile.am): Likewise.
59606         * modules/userspec (Makefile.am): Likewise.
59607         * modules/utime (Makefile.am): Likewise.
59608         * modules/utimecmp (Makefile.am): Likewise.
59609         * modules/utimens (Makefile.am): Likewise.
59610         * modules/vasnprintf (Makefile.am): Likewise.
59611         * modules/vasprintf (Makefile.am): Likewise.
59612         * modules/vsnprintf (Makefile.am): Likewise.
59613         * modules/xalloc (Makefile.am): Likewise.
59614         * modules/xgetcwd (Makefile.am): Likewise.
59615         * modules/xnanosleep (Makefile.am): Likewise.
59616         * modules/xreadlink (Makefile.am): Likewise.
59617         * modules/xstrtod (Makefile.am): Likewise.
59618         * modules/xstrtol (Makefile.am): Likewise.
59619         * modules/xstrtold (Makefile.am): Likewise.
59620         * modules/yesno (Makefile.am): Likewise.
59621         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59622
59623 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59624
59625         * modules/error (Makefile.am): Distribute files through
59626         EXTRA_DIST, not lib_SOURCES.
59627
59628 2006-10-12  Eric Blake  <ebb9@byu.net>
59629
59630         * modules/error (Makefile.am): Distribute files in /lib.
59631         * modules/obstack (Makefile.am): Likewise.
59632
59633 2006-10-12  Bruno Haible  <bruno@clisp.org>
59634
59635         * modules/acl (Makefile.am): Distribute all files in lib/ through
59636         EXTRA_DIST.
59637         * modules/arcfour (Makefile.am): Likewise.
59638         * modules/arctwo (Makefile.am): Likewise.
59639         * modules/argmatch (Makefile.am): Likewise.
59640         * modules/argz (Makefile.am): Likewise.
59641         * modules/atexit (Makefile.am): Likewise.
59642         * modules/backupfile (Makefile.am): Likewise.
59643         * modules/c-strtod (Makefile.am): Likewise.
59644         * modules/c-strtold (Makefile.am): Likewise.
59645         * modules/calloc (Makefile.am): Likewise.
59646         * modules/canon-host (Makefile.am): Likewise.
59647         * modules/canonicalize (Makefile.am): Likewise.
59648         * modules/chdir-long (Makefile.am): Likewise.
59649         * modules/chdir-safer (Makefile.am): Likewise.
59650         * modules/check-version (Makefile.am): Likewise.
59651         * modules/chown (Makefile.am): Likewise.
59652         * modules/cloexec (Makefile.am): Likewise.
59653         * modules/close-stream (Makefile.am): Likewise.
59654         * modules/closeout (Makefile.am): Likewise.
59655         * modules/crc (Makefile.am): Likewise.
59656         * modules/cycle-check (Makefile.am): Likewise.
59657         * modules/des (Makefile.am): Likewise.
59658         * modules/dirfd (Makefile.am): Likewise.
59659         * modules/dirname (Makefile.am): Likewise.
59660         * modules/dup2 (Makefile.am): Likewise.
59661         * modules/euidaccess (Makefile.am): Likewise.
59662         * modules/exclude (Makefile.am): Likewise.
59663         * modules/exitfail (Makefile.am): Likewise.
59664         * modules/fcntl-safer (Makefile.am): Likewise.
59665         * modules/file-type (Makefile.am): Likewise.
59666         * modules/fileblocks (Makefile.am): Likewise.
59667         * modules/filemode (Makefile.am): Likewise.
59668         * modules/filenamecat (Makefile.am): Likewise.
59669         * modules/fnmatch (Makefile.am): Likewise.
59670         * modules/fopen-safer (Makefile.am): Likewise.
59671         * modules/fpending (Makefile.am): Likewise.
59672         * modules/fprintftime (Makefile.am): Likewise.
59673         * modules/free (Makefile.am): Likewise.
59674         * modules/fsusage (Makefile.am): Likewise.
59675         * modules/ftruncate (Makefile.am): Likewise.
59676         * modules/fts (Makefile.am): Likewise.
59677         * modules/gc (Makefile.am): Likewise.
59678         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59679         * modules/getaddrinfo (Makefile.am): Likewise.
59680         * modules/getcwd (Makefile.am): Likewise.
59681         * modules/getdelim (Makefile.am): Likewise.
59682         * modules/getdomainname (Makefile.am): Likewise.
59683         * modules/getgroups (Makefile.am): Likewise.
59684         * modules/gethostname (Makefile.am): Likewise.
59685         * modules/gethrxtime (Makefile.am): Likewise.
59686         * modules/getline (Makefile.am): Likewise.
59687         * modules/getloadavg (Makefile.am): Likewise.
59688         * modules/getlogin_r (Makefile.am): Likewise.
59689         * modules/getopt (Makefile.am): Likewise.
59690         * modules/getpass (Makefile.am): Likewise.
59691         * modules/getpass-gnu (Makefile.am): Likewise.
59692         * modules/getsubopt (Makefile.am): Likewise.
59693         * modules/gettime (Makefile.am): Likewise.
59694         * modules/gettimeofday (Makefile.am): Likewise.
59695         * modules/getugroups (Makefile.am): Likewise.
59696         * modules/getusershell (Makefile.am): Likewise.
59697         * modules/glob (Makefile.am): Likewise.
59698         * modules/group-member (Makefile.am): Likewise.
59699         * modules/hard-locale (Makefile.am): Likewise.
59700         * modules/hash (Makefile.am): Likewise.
59701         * modules/hmac-md5 (Makefile.am): Likewise.
59702         * modules/hmac-sha1 (Makefile.am): Likewise.
59703         * modules/human (Makefile.am): Likewise.
59704         * modules/idcache (Makefile.am): Likewise.
59705         * modules/imaxabs (Makefile.am): Likewise.
59706         * modules/imaxdiv (Makefile.am): Likewise.
59707         * modules/inet_ntop (Makefile.am): Likewise.
59708         * modules/inet_pton (Makefile.am): Likewise.
59709         * modules/inttostr (Makefile.am): Likewise.
59710         * modules/isapipe (Makefile.am): Likewise.
59711         * modules/lchown (Makefile.am): Likewise.
59712         * modules/long-options (Makefile.am): Likewise.
59713         * modules/lstat (Makefile.am): Likewise.
59714         * modules/malloc (Makefile.am): Likewise.
59715         * modules/mathl (Makefile.am): Likewise.
59716         * modules/mbchar (Makefile.am): Likewise.
59717         * modules/md2 (Makefile.am): Likewise.
59718         * modules/md4 (Makefile.am): Likewise.
59719         * modules/md5 (Makefile.am): Likewise.
59720         * modules/memcasecmp (Makefile.am): Likewise.
59721         * modules/memchr (Makefile.am): Likewise.
59722         * modules/memcmp (Makefile.am): Likewise.
59723         * modules/memcoll (Makefile.am): Likewise.
59724         * modules/memcpy (Makefile.am): Likewise.
59725         * modules/memmem (Makefile.am): Likewise.
59726         * modules/memmove (Makefile.am): Likewise.
59727         * modules/mempcpy (Makefile.am): Likewise.
59728         * modules/memrchr (Makefile.am): Likewise.
59729         * modules/memset (Makefile.am): Likewise.
59730         * modules/memxor (Makefile.am): Likewise.
59731         * modules/mkancesdirs (Makefile.am): Likewise.
59732         * modules/mkdir (Makefile.am): Likewise.
59733         * modules/mkdir-p (Makefile.am): Likewise.
59734         * modules/mkdtemp (Makefile.am): Likewise.
59735         * modules/mkstemp (Makefile.am): Likewise.
59736         * modules/mktime (Makefile.am): Likewise.
59737         * modules/modechange (Makefile.am): Likewise.
59738         * modules/mountlist (Makefile.am): Likewise.
59739         * modules/nanosleep (Makefile.am): Likewise.
59740         * modules/openat (Makefile.am): Likewise.
59741         * modules/pagealign_alloc (Makefile.am): Likewise.
59742         * modules/physmem (Makefile.am): Likewise.
59743         * modules/poll (Makefile.am): Likewise.
59744         * modules/posixtm (Makefile.am): Likewise.
59745         * modules/posixver (Makefile.am): Likewise.
59746         * modules/putenv (Makefile.am): Likewise.
59747         * modules/quote (Makefile.am): Likewise.
59748         * modules/quotearg (Makefile.am): Likewise.
59749         * modules/raise (Makefile.am): Likewise.
59750         * modules/read-file (Makefile.am): Likewise.
59751         * modules/readline (Makefile.am): Likewise.
59752         * modules/readlink (Makefile.am): Likewise.
59753         * modules/readtokens (Makefile.am): Likewise.
59754         * modules/readutmp (Makefile.am): Likewise.
59755         * modules/realloc (Makefile.am): Likewise.
59756         * modules/regex (Makefile.am): Likewise.
59757         * modules/rename (Makefile.am): Likewise.
59758         * modules/rename-dest-slash (Makefile.am): Likewise.
59759         * modules/rijndael (Makefile.am): Likewise.
59760         * modules/rmdir (Makefile.am): Likewise.
59761         * modules/rpmatch (Makefile.am): Likewise.
59762         * modules/safe-read (Makefile.am): Likewise.
59763         * modules/safe-write (Makefile.am): Likewise.
59764         * modules/same (Makefile.am): Likewise.
59765         * modules/save-cwd (Makefile.am): Likewise.
59766         * modules/savedir (Makefile.am): Likewise.
59767         * modules/setenv (Makefile.am): Likewise.
59768         * modules/settime (Makefile.am): Likewise.
59769         * modules/sha1 (Makefile.am): Likewise.
59770         * modules/sig2str (Makefile.am): Likewise.
59771         * modules/snprintf (Makefile.am): Likewise.
59772         * modules/stdlib-safer (Makefile.am): Likewise.
59773         * modules/stpcpy (Makefile.am): Likewise.
59774         * modules/stpncpy (Makefile.am): Likewise.
59775         * modules/strcase (Makefile.am): Likewise.
59776         * modules/strcasestr (Makefile.am): Likewise.
59777         * modules/strchrnul (Makefile.am): Likewise.
59778         * modules/strcspn (Makefile.am): Likewise.
59779         * modules/strdup (Makefile.am): Likewise.
59780         * modules/strerror (Makefile.am): Likewise.
59781         * modules/strftime (Makefile.am): Likewise.
59782         * modules/strndup (Makefile.am): Likewise.
59783         * modules/strnlen (Makefile.am): Likewise.
59784         * modules/strpbrk (Makefile.am): Likewise.
59785         * modules/strsep (Makefile.am): Likewise.
59786         * modules/strstr (Makefile.am): Likewise.
59787         * modules/strtod (Makefile.am): Likewise.
59788         * modules/strtoimax (Makefile.am): Likewise.
59789         * modules/strtok_r (Makefile.am): Likewise.
59790         * modules/strtol (Makefile.am): Likewise.
59791         * modules/strtoll (Makefile.am): Likewise.
59792         * modules/strtoul (Makefile.am): Likewise.
59793         * modules/strtoull (Makefile.am): Likewise.
59794         * modules/strtoumax (Makefile.am): Likewise.
59795         * modules/strverscmp (Makefile.am): Likewise.
59796         * modules/time_r (Makefile.am): Likewise.
59797         * modules/timegm (Makefile.am): Likewise.
59798         * modules/tmpfile-safer (Makefile.am): Likewise.
59799         * modules/unistd-safer (Makefile.am): Likewise.
59800         * modules/unlinkdir (Makefile.am): Likewise.
59801         * modules/userspec (Makefile.am): Likewise.
59802         * modules/utime (Makefile.am): Likewise.
59803         * modules/utimecmp (Makefile.am): Likewise.
59804         * modules/utimens (Makefile.am): Likewise.
59805         * modules/vasnprintf (Makefile.am): Likewise.
59806         * modules/vasprintf (Makefile.am): Likewise.
59807         * modules/vsnprintf (Makefile.am): Likewise.
59808         * modules/xalloc (Makefile.am): Likewise.
59809         * modules/xgetcwd (Makefile.am): Likewise.
59810         * modules/xnanosleep (Makefile.am): Likewise.
59811         * modules/xreadlink (Makefile.am): Likewise.
59812         * modules/xstrtod (Makefile.am): Likewise.
59813         * modules/xstrtol (Makefile.am): Likewise.
59814         * modules/xstrtold (Makefile.am): Likewise.
59815         * modules/yesno (Makefile.am): Likewise.
59816
59817 2006-10-12  Jim Meyering  <jim@meyering.net>
59818
59819         * m4/getloadavg.m4: Revert the change below.
59820
59821         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
59822         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
59823         fail with a symlink, which is what coreutils' ./bootstrap now
59824         creates by default.
59825
59826 2006-10-12  Bruno Haible  <bruno@clisp.org>
59827
59828         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
59829         mingw.
59830         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
59831         MSVC and mingw explicitly.
59832
59833 2006-10-11  Simon Josefsson  <jas@extundo.com>
59834             Bruno Haible  <bruno@clisp.org>
59835
59836         Add support for multiple gnulib-tool invocations in the scope of a
59837         single configure.ac file.
59838         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
59839         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
59840         with the same contents as the _LIBADD variable.
59841         (func_emit_initmacro_start, func_emit_initmacro_end,
59842         func_emit_initmacro_done): New functions.
59843         (func_import, func_create_testdir): Invoke them. Allow the identifiers
59844         gl_LIBOBJS and gl_LTLIBOBJS.
59845
59846 2006-10-11  Bruno Haible  <bruno@clisp.org>
59847
59848         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
59849         (func_create_testdir): Don't create po/Makefile.am, don't invoke
59850         autoreconf. Instead, invoke autopoint explicitly but move back the
59851         *.m4 files from gnulib.
59852
59853 2006-10-11  Bruno Haible  <bruno@clisp.org>
59854
59855         * gnulib-tool (func_usage): Make module names after --create-testdir
59856         optional.
59857         (func_create_testdir): If no module was specified, use nearly all
59858         modules.
59859
59860 2006-10-12  Jim Meyering  <jim@meyering.net>
59861
59862         Big performance improvement for fts-based tools that use FTS_NOSTAT.
59863         Avoid spurious inode-mismatch problems on non-POSIX file systems.
59864         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
59865         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
59866         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
59867         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
59868         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
59869         (fts_set_stat_required): New function.
59870         (fts_open): Defer the calls to fts_stat, if possible or requested.
59871         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
59872         into fts_stat itself.
59873         (fts_read): Perform any required (deferred) fts_stat call.
59874         (fts_build): Likewise, for the directory we're about to open and read.
59875         In the readdir loop, carefully decide whether each entry will require
59876         an eventual call to fts_stat, using dirent.d_type info if available.
59877         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
59878         a command line argument into this function.  Update all callers.
59879         Map a return value of FTS_DOT to FTS_D for a command line argument.
59880         * modules/fts (Depends-on): Add d-type.  Alphabetize.
59881         Thanks to Miklos Szeredi for his tenacity and for the initial
59882         bug report about "find" failing on a FUSE-based file system.
59883
59884         * lib/fts.c (fts_open): Use consistent indentation.
59885
59886 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59887
59888         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
59889         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
59890         reported by Jim Meyering.  All uses of cache variables renamed
59891         to match Autoconf's.
59892         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
59893         the other one.
59894
59895         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59896         Fix misspelling in diagnostic.
59897
59898 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59899
59900         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
59901         defined.  Problem reported by Matthew Woehlke.
59902
59903         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
59904         Add support for Tandem NonStop R series.
59905         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
59906         Use new macro.
59907
59908         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
59909         (has_trailing_slash): Omit size arg; all callers changed.
59910         Omit 'inline', since it doesn't help performance and we'd
59911         need to configure it.
59912         Don't count //, ///, etc. as having a trailing slash.
59913         As a side effect, this removes a C99ism reported by Matthew Woehlke.
59914         (rpl_rename_dest_slash): On failure, use rename's errno rather
59915         than (in some cases) an incorrect or junk errno.
59916         Simplify code by removing need to compute length; this does
59917         cause it to make two passes instead of one over the file name,
59918         but it's worth it.
59919
59920         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
59921         change, since Autoconf's version may no longer be appropriate now
59922         that we are using CVS Autoconf's version.  Add support for Tandem.
59923
59924 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59925             Bruno Haible  <bruno@clisp.org>
59926
59927         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
59928         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
59929         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
59930         gl_AC_TYPE_LONG_LONG.
59931
59932         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
59933         instead of HAVE_LONG_LONG.
59934         * lib/printf-args.c (printf_fetchargs): Likewise.
59935         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59936         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59937         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
59938         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
59939         gl_AC_TYPE_LONG_LONG.
59940
59941 2006-10-11  Bruno Haible  <bruno@clisp.org>
59942
59943         * m4/longlong.m4: Add comments.
59944         * m4/ulonglong.m4: Likewise.
59945
59946 2006-10-10  Bruno Haible  <bruno@clisp.org>
59947
59948         Make it possible to #define stpcpy, strdup to aliases.
59949         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
59950         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
59951
59952 2006-10-10  Bruno Haible  <bruno@clisp.org>
59953
59954         Make it possible to #define gcd to an alias.
59955         * lib/gcd.c: Include config.h.
59956
59957 2006-10-10  Bruno Haible  <bruno@clisp.org>
59958
59959         Make it possible to #define c_isascii to an alias.
59960         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59961         defined. Undefine the macros before defining them, to avoid gcc
59962         warnings.
59963         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59964         define NO_C_CTYPE_MACROS early.
59965
59966 2006-10-10  Bruno Haible  <bruno@clisp.org>
59967
59968         Make it possible to #define set_program_name to an alias.
59969         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59970         ENABLE_RELOCATABLE early.
59971
59972 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59973
59974         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59975         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59976         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59977         More generally, don't assume that 64-bit signed int is available
59978         if unsigned int is, and vice versa.
59979         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59980         unsigned symbols, not on their signed counterparts.
59981         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59982         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59983         (UINT64_C, UINTMAX_C):
59984         Likewise.
59985         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59986         unsigned counterparts.
59987         (Have_long_long, Unsigned): New macros.
59988         (Int): Renamed from INT.
59989         (strtoimax): Use the new macros.
59990         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59991         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59992         * modules/inttypes (inttypes.h): Substitute
59993         HAVE_UNSIGNED_LONG_LONG_INT.
59994         * modules/stdint (stdint.h): Likewise.
59995         (Files): Add m4/ulonglong.m4.
59996
59997 2006-10-10  Bruno Haible  <bruno@clisp.org>
59998
59999         Fix a gcc -Wshadow warning.
60000         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
60001         to 'bucket'.
60002         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
60003         gl_linked_indexof_from_to): Likewise.
60004         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
60005         Likewise.
60006         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
60007         Likewise.
60008         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
60009         Reported by Eric Blake.
60010
60011 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
60012
60013         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
60014         for NetBSD.  Problem reported by Bruno Haible.
60015
60016 2006-10-09  Jim Meyering  <jim@meyering.net>
60017
60018         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
60019         Patch from Bruno Haible.
60020
60021 2006-10-09  Jim Meyering  <jim@meyering.net>
60022
60023         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
60024         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
60025         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
60026
60027 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60028
60029         Don't include <config.h> twice; this doesn't work in some cases,
60030         e.g., when config.h has "#define intmax_t long long int" and
60031         we include <config.h>, <inttypes.h>, <config.h> in that order.
60032         Problem reported by Matthew Woehlke in:
60033         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
60034         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
60035         * lib/fts-cycle.c: Don't include config.h.
60036         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
60037         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
60038         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
60039         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
60040         inttypes.h.
60041         * lib/xstrtoumax.c: Likewise.
60042         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
60043         __strtol and the like, so that this module is more like its siblings.
60044         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
60045         Remove; no longer needed now that we assume gnulib inttypes.h.
60046
60047 2006-10-08  Bruno Haible  <bruno@clisp.org>
60048
60049         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60050         option.
60051
60052 2006-10-07  Jim Meyering  <jim@meyering.net>
60053
60054         * modules/inttypes (inttypes.h): Revert what seems to have been
60055         an inadvertent part of today's change: use "|", not "/" in the
60056         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60057
60058 2006-10-07  Bruno Haible  <bruno@clisp.org>
60059
60060         * modules/sublist: New file.
60061
60062 2006-10-07  Bruno Haible  <bruno@clisp.org>
60063
60064         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
60065         * modules/argz (argz.h): Likewise.
60066         * modules/arpa_inet (arpa/inet.h): Likewise.
60067         * modules/byteswap (byteswap.h): Likewise.
60068         * modules/configmake (configmake.h): Likewise.
60069         * modules/fcntl (fcntl.h): Likewise.
60070         * modules/fnmatch (fnmatch.h): Likewise.
60071         * modules/getopt (getopt.h): Likewise.
60072         * modules/glob (glob.h): Likewise.
60073         * modules/inttypes (inttypes.h): Likewise.
60074         * modules/netinet_in (netinet/in.h): Likewise.
60075         * modules/poll (poll.h): Likewise.
60076         * modules/stdbool (stdbool.h): Likewise.
60077         * modules/stdint (stdint.h): Likewise.
60078         * modules/sys_select (sys/select.h): Likewise.
60079         * modules/sys_socket (sys/socket.h): Likewise.
60080         * modules/sys_stat (sys/stat.h): Likewise.
60081         * modules/sysexits (sysexits.h): Likewise.
60082         * modules/unistd (unistd.h): Likewise.
60083         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60084         Add a "DO NOT EDIT" comment to the generated file.
60085         (func_import): Likewise for gnulib-comp.m4.
60086
60087 2006-10-07  Bruno Haible  <bruno@clisp.org>
60088
60089         * lib/gl_sublist.h: New file.
60090         * lib/gl_sublist.c: New file.
60091
60092 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60093
60094         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60095         name (relative to the original working directory) and the file
60096         name component (relative to the temporary working directory).  All
60097         callers changed.
60098         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60099         * lib/mkdir-p.c (make_dir_parents): Likewise.
60100         * lib/mkdir-p.h (make_dir_parents): Likewise.
60101
60102 2006-10-06  Eric Blake  <ebb9@byu.net>
60103
60104         Define several macros for use by the clean-temp module.
60105         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60106         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60107         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60108
60109         * lib/clean-temp.h (close_stream_temp): New declaration.
60110         * lib/clean-temp.c (includes): Pull in headers according to what
60111         other modules are in use.
60112         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60113
60114 2006-10-06  Bruno Haible  <bruno@clisp.org>
60115
60116         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60117         instead of fopen, fwriteerror.
60118
60119 2006-10-06  Bruno Haible  <bruno@clisp.org>
60120
60121         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60122         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60123         int.
60124         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60125         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60126         Return an error indicator.
60127         Suggested by Eric Blake.
60128
60129 2006-10-06  Bruno Haible  <bruno@clisp.org>
60130
60131         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60132         Reported by Eric Blake.
60133
60134 2006-10-06  Bruno Haible  <bruno@clisp.org>
60135
60136         * modules/closeout (Description): Mention stderr too.
60137
60138 2006-10-06  Bruno Haible  <bruno@clisp.org>
60139         and Paul Eggert  <eggert@cs.ucla.edu>
60140
60141         * lib/closeout.c (close_stdout): Also close stderr.
60142         * lib/closeout.h: Update comment.
60143
60144 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60145
60146         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60147         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60148         * lib/dirchownmod.c: Include lchown.h.
60149         * lib/lchown.c: Don't include files that lchown.h now includes.
60150         Don't declare chown, since lchown.h now does that.
60151         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60152         (lchown): Define to rpl_chown if lchown is declared but
60153         does not exist.  Declare using a prototype if lchown is not
60154         declared.  Add a copyright notice.
60155         * lib/mkstemp.h: Include <unistd.h>.
60156         * lib/openat.c: Include lchown.h.
60157
60158         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60159         we now test for that separately.
60160         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60161         rather than O_NOFOLLOW, when testing whether it's possible to
60162         avoid a race condition reliably.
60163         * lib/savewd.c (savewd_chdir): Likewise.
60164
60165         Remove macros that are no longer needed now that stdint.h is
60166         reliable.
60167         * lib/fsusage.c (UINTMAX_MAX): Remove.
60168         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60169         * lib/utimecmp.c (SIZE_MAX): Remove.
60170
60171         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60172
60173         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60174         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60175         O_NOATIME works.
60176
60177 2006-10-05  Bruno Haible  <bruno@clisp.org>
60178
60179         * lib/gl_list.h (gl_sortedlist_search_from_to,
60180         gl_sortedlist_indexof_from_to): New declarations.
60181         (gl_list_implementation): New fields sortedlist_search_from_to,
60182         sortedlist_indexof_from_to.
60183         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60184         inline functions.
60185         * lib/gl_list.c (gl_sortedlist_search_from_to,
60186         gl_sortedlist_indexof_from_to): New functions.
60187         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60188         function.
60189         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60190         (gl_array_sortedlist_search_from_to): New function.
60191         (gl_array_list_implementation): Update.
60192         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60193         function.
60194         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60195         (gl_carray_sortedlist_search_from_to): New function.
60196         (gl_carray_list_implementation): Update.
60197         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60198         gl_linked_sortedlist_indexof_from_to): New functions.
60199         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60200         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60201         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60202         gl_tree_sortedlist_indexof_from_to): New functions.
60203         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60204         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60205         Update.
60206         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60207         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60208         Update.
60209
60210 2006-10-05  Bruno Haible  <bruno@clisp.org>
60211
60212         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60213         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60214         (struct gl_list_implementation): Add fields search_from_to,
60215         indexof_from_to. Remove fields search, indexof.
60216         (gl_list_search): Use the search_from_to method.
60217         (gl_list_search_from, gl_list_search_from_to): New functions.
60218         (gl_list_indexof): Use the indexof_from_to method.
60219         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60220         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60221         (gl_list_search_from, gl_list_search_from_to): New functions.
60222         (gl_list_indexof): Use the indexof_from_to method.
60223         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60224         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60225         gl_array_indexof. Add start_index, end_index arguments.
60226         (gl_array_search_from_to): Renamed from gl_array_search. Add
60227         start_index, end_index arguments.
60228         (gl_array_remove, gl_array_list_implementation): Update.
60229         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60230         gl_carray_indexof. Add start_index, end_index arguments.
60231         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60232         start_index, end_index arguments.
60233         (gl_carray_remove, gl_carray_list_implementation): Update.
60234         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60235         gl_linked_search. Add start_index, end_index arguments.
60236         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60237         start_index, end_index arguments.
60238         (gl_linked_remove): Update.
60239         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60240         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60241         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60242         field to 'size_t'.
60243         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60244         gl_tree_search. Add start_index, end_index arguments.
60245         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60246         start_index, end_index arguments.
60247         (gl_tree_remove): Update.
60248         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60249         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60250         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60251         function.
60252         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60253         gl_tree_search. Add start_index, end_index arguments.
60254         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60255         start_index, end_index arguments.
60256         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60257         Update.
60258         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60259
60260 2006-10-05  Bruno Haible  <bruno@clisp.org>
60261
60262         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60263
60264         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60265         fwriteerror_temp): New declarations.
60266         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60267         (descriptors): New variable.
60268         (cleanup): First, close the descriptors.
60269         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60270         fclose_temp, fwriteerror_temp): New functions.
60271
60272 2006-10-04  Jim Meyering  <jim@meyering.net>
60273
60274         * lib/fts.c (fts_open): Tiny comment change.
60275
60276 2006-10-04  Bruno Haible  <bruno@clisp.org>
60277
60278         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60279         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60280         gl_LOCK_BODY.
60281         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60282         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60283         gl_LOCK_EARLY_BODY.
60284         (gl_LOCK): Require gl_LOCK_BODY.
60285
60286 2006-10-04  Bruno Haible  <bruno@clisp.org>
60287
60288         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60289         (gl_oset_search_atleast): New declaration.
60290         (struct gl_oset_implementation): Add field 'search_atleast'.
60291         (gl_oset_search_atleast): New inline function.
60292         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60293         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60294         (gl_array_oset_implementation): Update.
60295         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60296         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60297         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60298
60299 2006-10-04  Bruno Haible  <bruno@clisp.org>
60300
60301         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60302
60303 2006-10-03  Bruno Haible  <bruno@clisp.org>
60304
60305         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60306         from gl_avltreehash_list_implementation.
60307
60308 2006-10-03  Bruno Haible  <bruno@clisp.org>
60309
60310         * lib/gl_oset.c (gl_oset_add): Fix return type.
60311
60312 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60313
60314         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60315
60316 2006-10-02  Eric Blake  <ebb9@byu.net>
60317
60318         * modules/strnlen (Depends-on): Add extensions.
60319
60320 2006-10-02  Eric Blake  <ebb9@byu.net>
60321
60322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60323         definition in 2.60+.
60324
60325 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60326
60327         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60328         checks.
60329
60330 2006-10-02  Bruno Haible  <bruno@clisp.org>
60331
60332         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60333         to the AUTOMAKE_OPTIONS.
60334         Reported by Jim Meyering.
60335
60336 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60337
60338         Work around bug in Solaris 10 /proc file system:
60339         /proc/self/fd/NNN/.. isn't the parent directory of
60340         the directory whose file descriptor is NNN.  This needs to
60341         be worked around at run time, not compile time, since a
60342         program might be built on Solaris 8, where things work, and
60343         run on Solaris 10.
60344         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60345         to use the following interface instead:
60346         (OPENAT_BUFFER_SIZE): New macro.
60347         (openat_proc_name): New function.
60348         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60349         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60350         Likewise.
60351         * lib/openat-proc.c: New file.
60352         * modules/openat (Files): Add lib/openat-proc.c.
60353         (Depends-on): Add same-inode, stdbool.
60354         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60355
60356 2006-09-29  Bruno Haible  <bruno@clisp.org>
60357
60358         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60359         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60360         argument. Set stdout_closed before testing for ferror, not after.
60361         (fwriteerror, fwriteerror_no_ebadf): New functions.
60362
60363 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60364
60365         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60366
60367 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60368
60369         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60370         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60371
60372 2006-09-28  Jim Meyering  <jim@meyering.net>
60373
60374         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60375         Include <unistd.h>.
60376
60377 2006-09-28  Bruno Haible  <bruno@clisp.org>
60378
60379         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60380         * modules/linkedhash-list (Depends-on): Likewise.
60381         * modules/rbtreehash-list (Depends-on): Likewise.
60382
60383 2006-09-28  Bruno Haible  <bruno@clisp.org>
60384
60385         * lib/strndup.h: Simplify the redefinition of strndup.
60386         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60387         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60388
60389 2006-09-28  Bruno Haible  <bruno@clisp.org>
60390
60391         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60392         * lib/gl_linkedhash_list.c: Likewise.
60393         * lib/gl_rbtreehash_list.c: Likewise.
60394
60395 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60396
60397         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60398         getaddrinfo.
60399
60400         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60401         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60402         it causes <stdio_ext.h> to cause a compile-time error.
60403         Problem reported by Nelson H. F. Beebe.
60404         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60405         of HAVE_DECL___PENDING.
60406
60407         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60408         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60409         declaration.
60410
60411 2006-09-27  Jim Meyering  <jim@meyering.net>
60412
60413         This file could end up with a definition for a function
60414         named __strndup, rather than rpl_strndup on a system with
60415         incomplete weak_alias support.
60416         * lib/strndup.c (strndup): Rename from __strndup.
60417         Remove #defines that used to map __strndup to strndup.
60418         Don't use K&R prototypes.
60419         Remove LIBC-related code, since this file is not sync'd with glibc.
60420         * lib/strndup.h: Revamp, accordingly.
60421         * m4/strndup.m4: Modernize.
60422
60423 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60424
60425         * modules/savewd (Depends-on): Add 'raise'.
60426         * lib/savewd.c: Include <signal.h>, for 'raise'.
60427
60428 2006-09-26  Jim Meyering  <jim@meyering.net>
60429
60430         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60431         when we detect Darwin 8.7.0's acl_get_file bug.
60432         Rearrange to perform the new (below) run-test while $LIBS
60433         contains any acl-related library.  Set USE_ACL at the end.
60434         (gl_ACL_GET_FILE): New function.
60435
60436 2006-09-26  Eric Blake  <ebb9@byu.net>
60437
60438         * lib/verror.c: Include <config.h> unconditionally.
60439
60440 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60441
60442         * modules/clock-time (Maintainer): Add self.
60443         * modules/getlogin_r (Depends-on): Add extensions.
60444
60445 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60446
60447         * modules/clock-time: New module.
60448         * modules/nanosleep (Depends-on): Add clock-time.
60449         * modules/gethrxtime (Depends-on): Likewise.
60450         * modules/gettime (Depends-on): Likewise.
60451         * modules/settime (Depends-on): Likewise.
60452
60453         * modules/fts-lgpl: Depend on openat.
60454         * modules/mkancesdirs: Depend on savewd.
60455         * modules/mkdir-p: Likewise.
60456
60457 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60458
60459         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60460
60461         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60462         `gl_have_arbitrary_file_name_length_limit' to
60463         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60464         actually works between configure runs.
60465
60466 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60467             Bruno Haible  <bruno@clisp.org>
60468
60469         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60470
60471 2006-09-25  Jim Meyering  <jim@meyering.net>
60472
60473         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60474         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60475
60476 2006-09-25  Eric Blake  <ebb9@byu.net>
60477
60478         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60479         exec's in 2006-09-18 patch when shuffling fds.
60480
60481 2006-09-25  Bruno Haible  <bruno@clisp.org>
60482
60483         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60484         Reported by Jim Meyering.
60485
60486 2006-09-24  Jim Meyering  <jim@meyering.net>
60487
60488         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60489         compare a pointer against a literal "0".  That caused failures with
60490         at least HP-UX's hpcc.
60491
60492 2006-09-22  Simon Josefsson  <jas@extundo.com>
60493
60494         * modules/gc-sha1:
60495         * modules/gc-md4:
60496         * modules/gc-hmac-sha1:
60497         * modules/gc-hmac-md5:
60498         * modules/gc-des:
60499         * modules/gc-arcfour: Distribute more files.
60500
60501 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60502
60503         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60504         (gl_linked_iterator_from_to): Initialize struct completely.
60505         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60506         (gl_tree_iterator_from_to): Likewise
60507         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60508         * lib/gl_array_list.c [lint] (gl_array_iterator)
60509         (gl_array_iterator_from_to): Likewise.
60510         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60511         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60512         (gl_carray_iterator_from_to): Likewise.
60513
60514         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60515         * lib/md4.c (md4_process_block): Remove unused variable.
60516         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60517         parentheses for clarity.
60518
60519 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60520
60521         * modules/bison-i18n (Depends-on): Add gettext.
60522
60523 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60524
60525         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60526         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60527         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60528         also add missing comma that caused broken test.
60529         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60530         stdlib.h, for `abort'.
60531         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60532         variables.
60533         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60534         include unistd.h if present, for `rmdir'.
60535         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60536         variables.
60537         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60538         in the process include standard headers for prototypes.
60539         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60540         gets declared on GNU/Linux.
60541         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60542         unistd.h, for `rmdir'.
60543         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60544
60545         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60546         always true.
60547         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60548
60549         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60550
60551 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60552
60553         * gnulib-tool (func_version): Create output all at once.  This
60554         may help avoid triggering unnecessary SIGPIPEs, and at any
60555         rate it doesn't hurt.
60556
60557 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60558             Bruno Haible  <bruno@clisp.org>
60559
60560         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60561         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60562         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60563
60564         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60565         (gl_FUNC_VASPRINTF): Invoke it.
60566
60567 2006-09-22  Bruno Haible  <bruno@clisp.org>
60568
60569         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60570         getloadavg.c as first argument.
60571
60572 2006-09-22  Bruno Haible  <bruno@clisp.org>
60573
60574         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60575         at the beginning of the gl_INIT macro.
60576         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60577         gl_GETLOADAVG.
60578
60579 2006-09-22  Bruno Haible  <bruno@clisp.org>
60580
60581         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60582         module.
60583         Suggested by Ralf Wildenhues.
60584
60585 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60586
60587         Import this patch from libc:
60588
60589         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60590
60591         * lib/regex_internal.c (re_string_reconstruct): Handle
60592         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60593         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60594         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60595         re_string_context_at.
60596
60597         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60598         now requires it.
60599         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60600         gl_REGEX now does it for us.
60601         (gl_REGEX): Add test taken from
60602         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60603
60604         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60605         Check that large offsets work.  Modernize Autoconf usages.
60606         Prefer "yes" to mean a good thing rather than a bad.
60607         Don't put "#define mkstemp" in config.h, as this might interfere
60608         with standard system headers that "#define mkstemp mkstemp64".
60609
60610         * modules/mkstemp (Depends-on): Add extensions, so that
60611         mkstemp is visible on some platforms.
60612         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60613         (Include): Change to "mkstemp.h" from <stdlib.h>.
60614         (Files): Add mkstemp.h.
60615
60616         * lib/mkstemp.h: New file, since some standard headers
60617         #define mkstemp.
60618         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60619         Include "mkstemp.h".
60620         Make the _LIBC code resemble glibc original more,
60621         e.g., use K&R style.
60622         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60623         (mkstemp): Remove, since mkstemp.h does this for us.
60624         * lib/stdlib--.h: Include mkstemp.h.
60625
60626         Import this patch from libc:
60627
60628         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60629
60630         * lib/tempname.c (__gen_tempname): Change attempts_min
60631         into a macro.  Use preprocessor to decide how to initialize
60632         attempts [Coverity CID 67].
60633
60634 2006-09-20  Bruno Haible  <bruno@clisp.org>
60635
60636         * lib/mkdtemp.c: Import from libc.
60637         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60638                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60639                 attempts_min into a macro.  Use preprocessor to decide how to
60640                 initialize attempts [Coverity CID 67].
60641         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60642                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60643                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60644
60645 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60646
60647         * gnulib-tool (func_exit): New function, to allow to pass the
60648         exit status portably through the trap.  Use everywhere.
60649         (--help, --version): Signal a write error.
60650         (trap): catch SIGPIPE, for write errors.
60651         Exit at the end of the trap, with the correct exit status.
60652
60653 2006-09-19  Karl Berry  <karl@gnu.org>
60654
60655         * doc/gnulib.texi: note about the license texinfo files.
60656
60657 2006-09-19  Eric Blake  <ebb9@byu.net>
60658
60659         * gnulib-tool: Avoid space-tab.
60660
60661 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60662
60663         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60664         that prevented coreutils 6.1 from building.  Problem reported
60665         by Petter Reinholdtsen.
60666
60667 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60668
60669         * gnulib-tool (avoidlist): Fix typo that broke options like
60670         --avoid=lock that are used by coreutils bootstrap.
60671
60672 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60673
60674         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60675         more systematically.
60676
60677 2006-09-18  Jim Meyering  <jim@meyering.net>
60678
60679         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60680
60681 2006-09-18  Bruno Haible  <bruno@clisp.org>
60682
60683         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60684
60685 2006-09-18  Bruno Haible  <bruno@clisp.org>
60686
60687         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60688         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60689         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60690         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60691         * m4/gettext.m4: Require autoconf >= 2.52.
60692         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60693         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60694         of gl_cv_header_inttypes_h.
60695
60696 2006-09-18  Bruno Haible  <bruno@clisp.org>
60697
60698         * lib/javaversion.c: Include configmake.h.
60699
60700 2006-09-18  Bruno Haible  <bruno@clisp.org>
60701
60702         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60703         avoid that the while loops be executed in a subshell.
60704
60705 2006-09-18  Bruno Haible  <bruno@clisp.org>
60706
60707         * MODULES.html.sh (func_module): Break long lines.
60708         Suggested by Bruce Korb <bkorb@gnu.org>.
60709
60710 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60711
60712         Speed up by a factor of 1.12.
60713         * gnulib-tool (nl): New variable.
60714         (func_import): Rewrite include directive extraction to only read each
60715         directive once.
60716
60717 2006-09-17  Bruno Haible  <bruno@clisp.org>
60718
60719         * modules/javaversion (Makefile.am): Remove DEFS setting.
60720         (Depends-on): Add configmake, for PKGDATADIR definition.
60721
60722 2006-09-17  Bruno Haible  <bruno@clisp.org>
60723
60724         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60725
60726 2006-09-17  Bruno Haible  <bruno@clisp.org>
60727
60728         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60729         (func_modules_transitive_closure, func_modules_add_dummy,
60730         func_modules_to_filelist, func_import, func_create_testdir,
60731         func_create_megatestdir, ...): Use it wherever possible.
60732         Suggested by Ralf Wildenhues.
60733
60734 2006-09-16  Karl Berry  <karl@gnu.org>
60735
60736         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60737         to avoid sectioning errors.
60738         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60739         [ifinfo]: blank line after @center-ed titles.
60740         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60741         Spell FSF address consistently with others.
60742         (These changes approved by rms.)
60743
60744 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60745
60746         Speed up by a factor of 1.61.
60747         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60748         already checked module names again.
60749
60750 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60751
60752         Speed up by a factor of 1.13.
60753         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60754         for new_files, and the input to func_add_or_update.
60755
60756 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60757
60758         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
60759         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
60760
60761 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60762
60763         * modules/mkancesdirs (Depends-on): Add fcntl.
60764         * modules/savewd: New file.
60765         * MODULES.html.sh (File system functions): Add savewd.
60766
60767         * modules/configmake (Makefile.am): Add support for the
60768         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
60769
60770 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60771
60772         * m4/savewd.m4: New file.
60773
60774 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60775
60776         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
60777         (dirchownmod): New arg FD.  All callers changed.
60778         Use FD rather than opening the directory ourself, as opening is
60779         now the caller's responsibility.
60780         * lib/dirchownmod.h: Likewise.
60781         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
60782         hosts that require <sys/types.h> before <sys/stat.h>.  Include
60783         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
60784         (test_dir): Remove.
60785         (mkancesdirs): Return length of prefix of FILE that has already
60786         been made, or -2 if there is a child doing the work.  Redo
60787         algorithm so that it is O(N) rather than O(N**2).  Optimize away
60788         ".", and treat ".." specially since it might stray back into
60789         already-created areas.  Use a subprocess if necessary.  New arg
60790         WD; all users changed.  MAKE_DIR function should now return 1
60791         if it creates a directory that is not readable.  Return -2 if
60792         a child process is spun off.
60793         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
60794         Adjust signature to match code.
60795         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
60796         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
60797         all users changed.
60798         * lib/savewd.c, lib/savewd.h: New files.
60799
60800 2006-09-15  Jim Meyering  <jim@meyering.net>
60801
60802         * modules/rename-dest-slash: New module.
60803         * MODULES.html.sh (posix_compat): Add it here.
60804
60805         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
60806
60807 2006-09-15  Jim Meyering  <jim@meyering.net>
60808
60809         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
60810         file.
60811
60812         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
60813
60814 2006-09-15  Jim Meyering  <jim@meyering.net>
60815
60816         * lib/rename-dest-slash.c (has_trailing_slash): Use
60817         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
60818         (rpl_rename_dest_slash): Perform the cheaper trailing slash
60819         test before testing whether SRC is a directory.
60820         Suggestions from Bruno Haible.
60821
60822         Avoid a warning about an unused variable.
60823         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
60824         into the #ifdef block where it's used.
60825
60826         * lib/rename-dest-slash.c: New file.
60827
60828 2006-09-14  Bruno Haible  <bruno@clisp.org>
60829
60830         * lib/allocsa.c: Include <config.h> unconditionally.
60831         * lib/asnprintf.c: Likewise.
60832         * lib/asprintf.c: Likewise.
60833         * lib/c-strcasecmp.c: Likewise.
60834         * lib/c-strcasestr.c: Likewise.
60835         * lib/c-strncasecmp.c: Likewise.
60836         * lib/c-strstr.c: Likewise.
60837         * lib/classpath.c: Likewise.
60838         * lib/clean-temp.c: Likewise.
60839         * lib/concatpath.c: Likewise.
60840         * lib/copy-file.c: Likewise.
60841         * lib/csharpcomp.c: Likewise.
60842         * lib/csharpexec.c: Likewise.
60843         * lib/execute.c: Likewise.
60844         * lib/fatal-signal.c: Likewise.
60845         * lib/findprog.c: Likewise.
60846         * lib/fwriteerror.c: Likewise.
60847         * lib/gl_array_list.c: Likewise.
60848         * lib/gl_array_oset.c: Likewise.
60849         * lib/gl_avltree_list.c: Likewise.
60850         * lib/gl_avltree_oset.c: Likewise.
60851         * lib/gl_avltreehash_list.c: Likewise.
60852         * lib/gl_carray_list.c: Likewise.
60853         * lib/gl_linked_list.c: Likewise.
60854         * lib/gl_linkedhash_list.c: Likewise.
60855         * lib/gl_list.c: Likewise.
60856         * lib/gl_oset.c: Likewise.
60857         * lib/gl_rbtree_list.c: Likewise.
60858         * lib/gl_rbtree_oset.c: Likewise.
60859         * lib/gl_rbtreehash_list.c: Likewise.
60860         * lib/imaxabs.c: Likewise.
60861         * lib/imaxdiv.c: Likewise.
60862         * lib/javacomp.c: Likewise.
60863         * lib/javaexec.c: Likewise.
60864         * lib/javaversion.c: Likewise.
60865         * lib/linebreak.c: Likewise.
60866         * lib/localcharset.c: Likewise.
60867         * lib/lock.c: Likewise.
60868         * lib/mbchar.c: Likewise.
60869         * lib/mbswidth.c: Likewise.
60870         * lib/mkdtemp.c: Likewise.
60871         * lib/pipe.c: Likewise.
60872         * lib/printf-args.c: Likewise.
60873         * lib/printf-parse.c: Likewise.
60874         * lib/progname.c: Likewise.
60875         * lib/progreloc.c: Likewise.
60876         * lib/readlink.c: Likewise.
60877         * lib/sh-quote.c: Likewise.
60878         * lib/stpcpy.c: Likewise.
60879         * lib/stpncpy.c: Likewise.
60880         * lib/strcasecmp.c: Likewise.
60881         * lib/strcasestr.c: Likewise.
60882         * lib/strcspn.c: Likewise.
60883         * lib/striconv.c: Likewise.
60884         * lib/strncasecmp.c: Likewise.
60885         * lib/strnlen1.c: Likewise.
60886         * lib/strstr.c: Likewise.
60887         * lib/strtok_r.c: Likewise.
60888         * lib/tls.c: Likewise.
60889         * lib/tmpdir.c: Likewise.
60890         * lib/unicodeio.c: Likewise.
60891         * lib/unsetenv.c: Likewise.
60892         * lib/vasnprintf.c: Likewise.
60893         * lib/vasprintf.c: Likewise.
60894         * lib/wait-process.c: Likewise.
60895         * lib/xallocsa.c: Likewise.
60896         * lib/xsetenv.c: Likewise.
60897         * lib/xstriconv.c: Likewise.
60898
60899 2006-09-13  Simon Josefsson  <jas@extundo.com>
60900
60901         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
60902         that internally, suggested by Ralf Wildenhues
60903         <Ralf.Wildenhues@gmx.de>.
60904
60905 2006-09-13  Simon Josefsson  <jas@extundo.com>
60906
60907         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
60908         @LIBOBJS@.
60909         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60910
60911 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60912
60913         * lib/_fpending.c: Include <config.h> unconditionally, since we no
60914         longer worry about uses that don't define HAVE_CONFIG_H.
60915         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
60916         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
60917         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
60918         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
60919         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
60920         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
60921         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
60922         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
60923         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
60924         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
60925         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
60926         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
60927         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
60928         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
60929         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
60930         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
60931         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
60932         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
60933         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
60934         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
60935         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
60936         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
60937         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
60938         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
60939         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
60940         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
60941         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
60942         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
60943         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
60944         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
60945         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
60946         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
60947         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
60948         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
60949         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
60950         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
60951         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
60952         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
60953         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60954         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60955         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60956         Likewise.
60957
60958 2006-09-13  Eric Blake  <ebb9@byu.net>
60959
60960         * lib/getopt.c: Fix typo in last commit.
60961
60962 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60963
60964         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60965         dgettext.
60966
60967 2006-09-12  Jim Meyering  <jim@meyering.net>
60968
60969         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60970         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60971         Reported by Nelson H. F. Beebe.
60972
60973 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60974
60975         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60976         program_invocation_name and program_invocation_short_name are
60977         initialized.
60978         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60979         and program_invocation_short_name to argp.h, so they are visible
60980         to user programs.
60981         * lib/argp.h: Likewise
60982
60983 2006-09-10  Bruno Haible  <bruno@clisp.org>
60984
60985         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60986         m4/inttypes_h.m4, m4/uintmax_t.m4.
60987
60988 2006-09-10  Bruno Haible  <bruno@clisp.org>
60989
60990         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60991         gl_AC_TYPE_UINTMAX_T.
60992
60993 2006-09-10  Bruno Haible  <bruno@clisp.org>
60994
60995         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
60996
60997 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
60998
60999         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
61000         convention.  Text proposed by Bruno Haible.
61001         (struct argp_option): Document the use of N_() wrappers.
61002
61003         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
61004         '\v', and translate the two parts separately, instead of feeding
61005         the whole string to gettext.  This allows to exclude
61006         '\v' from the strings visible to the translator by writing doc
61007         strings as N_("..") "\v" N_("..").
61008
61009 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
61010
61011         * config/srclist.txt: Undo latest change; the bug was fixed.
61012
61013 2006-09-09  Bruno Haible  <bruno@clisp.org>
61014
61015         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
61016         assignments if building a library without libtool.
61017         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
61018         in func_emit_lib_Makefile_am.
61019         (func_import): When building a static library libfoo.a, arrange to
61020         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
61021         (func_create_testdir): Likewise.
61022         * modules/gc (configure.ac, Makefile.am): If building statically,
61023         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
61024         * modules/iconvme (configure.ac, Makefile.am): Likewise.
61025         * modules/striconv (configure.ac, Makefile.am): Likewise.
61026         Based on a suggestion by Ralf Wildenhues.
61027
61028 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61029
61030         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61031         Check for unistd.h too, since Autoconf doesn't assume POSIX.
61032         Also:
61033
61034         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61035         Add year_2050_test to catch glibc bug 2821
61036         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61037
61038         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61039         Prefer #ifdef to #if.
61040
61041         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
61042         Return from 'main' instead of calling 'exit'.
61043
61044 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61045
61046         * lib/mktime.c (guess_time_tm): Fix bug where mktime
61047         returned the maximum time_t value rather than (time_t) -1.
61048         Problem originally reported by William Bardwell
61049         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61050
61051         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61052         Moved to here ...
61053         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61054         ... from here.
61055
61056 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61057
61058         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
61059         2821 is fixed.
61060
61061 2006-09-08  Jim Meyering  <jim@meyering.net>
61062
61063         Don't make generated files read-only.  That would bother too many
61064         people.  However, do retain the ability to work when targets are
61065         read-only: remove the destination and temporary files before writing
61066         them (when generated via sed or echo), or by using the -f option for
61067         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
61068         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61069         * modules/byteswap, modules/configmake, modules/fcntl:
61070         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61071         * modules/localcharset, modules/netinet_in, modules/poll:
61072         * modules/stdbool, modules/stdint, modules/sys_select:
61073         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61074
61075 2006-09-08  Jim Meyering  <jim@meyering.net>
61076
61077         Avoid new build failure on FreeBSD 6.0.
61078         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
61079         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
61080         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
61081
61082 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61083
61084         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
61085
61086 2006-09-07  Jim Meyering  <jim@meyering.net>
61087
61088         Fix global typo in last change: use chmod u-w, not chmod u-x.
61089         Spotted by Paul Eggert and Bruce Korb.
61090         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61091         * modules/byteswap, modules/configmake, modules/fcntl:
61092         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61093         * modules/localcharset, modules/netinet_in, modules/poll:
61094         * modules/stdbool, modules/stdint, modules/sys_select:
61095         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61096
61097 2006-09-06  Jim Meyering  <jim@meyering.net>
61098
61099         Make generated files be read-only.
61100         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61101         Ensure that each generated file is now read-only.
61102         * modules/argz: Likewise.
61103         * modules/arpa_inet: Likewise.
61104         * modules/byteswap: Likewise.
61105         * modules/configmake: Likewise.
61106         * modules/fcntl: Likewise.
61107         * modules/fnmatch: Likewise.
61108         * modules/getopt: Likewise.
61109         * modules/glob: Likewise.
61110         * modules/inttypes: Likewise.
61111         * modules/netinet_in: Likewise.
61112         * modules/poll: Likewise.
61113         * modules/stdbool: Likewise.
61114         * modules/stdint: Likewise.
61115         * modules/sys_select: Likewise.
61116         * modules/sys_socket: Likewise.
61117         * modules/sys_stat: Likewise.
61118         * modules/sysexits: Likewise.
61119         * modules/localcharset: Same as above, but continue using temporary
61120         file named "t-$@" (why different?) rather than the "$@-t" used
61121         everywhere else.
61122
61123         * modules/sysexits (Makefile.am): Replace literal occurrences
61124         of "sysexit.h" more readable, and more consistent, "$@".
61125
61126 2006-09-06  Bruno Haible  <bruno@clisp.org>
61127
61128         * modules/striconv: New file.
61129         * modules/xstriconv: New file.
61130         * MODULES.html.sh (Internationalization functions): Add striconv,
61131         xstriconv.
61132
61133 2006-09-06  Bruno Haible  <bruno@clisp.org>
61134
61135         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61136         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61137         not using libtool correctly.
61138
61139 2006-09-06  Bruno Haible  <bruno@clisp.org>
61140
61141         * lib/striconv.h: New file.
61142         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61143         iconvstring.c.
61144         * lib/xstriconv.h: New file.
61145         * lib/xstriconv.c: New file.
61146
61147 2006-09-06  Bruno Haible  <bruno@clisp.org>
61148
61149         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61150         lib_..._LDFLAGS.
61151
61152 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61153
61154         * lib/argz_.h: Sync from Libtool.
61155
61156         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61157                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61158
61159         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61160
61161 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61162
61163         * modules/trim: New file.
61164
61165 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61166
61167         * lib/trim.h: New file.
61168         * lib/trim.c: New file.
61169
61170 2006-09-05  Bruno Haible  <bruno@clisp.org>
61171
61172         * MODULES.html.sh (String handling): Add trim.
61173
61174 2006-09-04  Karl Berry  <karl@gnu.org>
61175
61176         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61177         until next release.
61178
61179 2006-09-03  Bruno Haible  <bruno@clisp.org>
61180
61181         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61182         correctly.
61183
61184 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61185
61186         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61187         not gl_GETLOADAVG.  Omit unneeded semicolons.
61188         Problems reported by Ralf Wildenhues in
61189         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61190         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61191         at the end, which is the usual gnulib style.
61192
61193         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61194         of doing all the work ourselves.
61195         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61196         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61197
61198 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61199
61200         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61201         Problem reported by Ralf Wildenhues in
61202         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61203
61204         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61205         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61206
61207 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61208
61209         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61210         yesterday's patch by changing test -n to test -z.
61211
61212 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61213
61214         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61215         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61216         the former is now obsolescent.
61217
61218         * modules/chdir-long (Depends-on): Add fcntl.
61219
61220 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61221
61222         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61223         obsolescent, and programs should use gnulib instead.
61224         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61225         but with prefixes changed.
61226
61227 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61228
61229         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61230         or stdbool.h, because they might not exist while configuring.
61231
61232         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61233         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61234         does that for us.
61235         (O_DIRECTORY): Remove.
61236
61237 2006-08-31  Eric Blake  <ebb9@byu.net>
61238
61239         * gnulib-tool: Don't let emacs change spaces to TAB.
61240
61241 2006-08-31  Bruno Haible  <bruno@clisp.org>
61242
61243         * gnulib-tool: When calling func_import more than once, do it in a
61244         subshell.
61245         Reported by Eric Blake <ebb9@byu.net>.
61246
61247 2006-08-31  Bruno Haible  <bruno@clisp.org>
61248
61249         * gnulib-tool (nl): Remove variable.
61250         (sed_transform_lib_file): Use more robust test for config-h module.
61251         (func_import): Fix typo in 2006-08-25 patch.
61252
61253 2006-08-31  Bruno Haible  <bruno@clisp.org>
61254
61255         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61256         specified, augment Makefile.am variables instead of assigning them.
61257
61258 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61259
61260         Work around a bug in both the Linux and SunOS 64-bit kernels:
61261         nanosleep mishandles sleeps for longer than 2**31 seconds.
61262         Problem reported by Frank v Waveren in
61263         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61264         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61265         Check for nanosleep bug.
61266         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61267
61268 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61269
61270         Work around a bug in both the Linux and SunOS 64-bit kernels:
61271         nanosleep mishandles sleeps for longer than 2**31 seconds.
61272         Problem reported by Frank v Waveren in
61273         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61274         * lib/nanosleep.c (BILLION): New constant.
61275         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61276         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61277         implementation.
61278
61279 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61280
61281         * modules/nanosleep (Depends-on): Add gettime.
61282
61283 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61284         and Simon Josefsson  <jas@extundo.com>
61285         and Oskar Liljeblad  <oskar@osk.mine.nu>
61286
61287         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61288         * gnulib-tool (func_import): New license type 'unmodifiable license
61289         text'.
61290         * modules/fdl: Use it.  Longer description.
61291         * module/gpl, module/lgpl: New files.
61292
61293 2006-08-30  Jim Meyering  <jim@meyering.net>
61294
61295         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61296         shadowing the parameter.
61297
61298 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61299
61300         Sync from Libtool:
61301
61302         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61303
61304         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61305         sharing with gnulib.  Report by Eric Blake.
61306
61307 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61308
61309         * modules/isapipe: New file.
61310         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61311
61312 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61313
61314         * modules/configmake (Makefile.am): Add a comment, and omit
61315         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61316         by Bruno Haible.
61317
61318 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61319
61320         * m4/isapipe.m4: New file.
61321
61322 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61323
61324         * lib/isapipe.c, lib/isapipe.h: New files.
61325
61326 2006-08-29  Jim Meyering  <jim@meyering.net>
61327
61328         * modules/configmake (Makefile.am): Make configmake.h depend on
61329         Makefile.  Otherwise, a stale configmake.h could hang around.
61330
61331 2006-08-29  Eric Blake  <ebb9@byu.net>
61332
61333         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61334         resolution of upstream bug 3044.
61335
61336 2006-08-29  Bruno Haible  <bruno@clisp.org>
61337
61338         * modules/localcharset (Depends-on): Add configmake.
61339         (Makefile.am): Remove setting of LIBDIR through DEFS.
61340
61341 2006-08-29  Bruno Haible  <bruno@clisp.org>
61342
61343         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61344         defined.
61345
61346 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61347
61348         * modules/fcntl: New file.
61349         * modules/chdir-safer (Depends-on): Add fcntl.
61350         * modules/fts: Likewise.
61351         * modules/mkdir-p: Likewise.
61352
61353         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61354         This undoes the most recent change, since we're now addressing the
61355         problem in a different way.
61356
61357         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61358         into output, since the output might be called Makefile.am even
61359         if $makefile_name is something different.
61360         (func_import): Use $makefile_am rather than
61361         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61362         empty.
61363
61364         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61365
61366 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61367
61368         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61369         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61370         recent change to stdint.m4, since we're now addressing the problem in a
61371         different way.
61372
61373 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61374
61375         * m4/fcntl_h.m4: New file.
61376
61377 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61378
61379         * lib/fcntl_.h: New file.
61380         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61381         the fcntl module.
61382         * lib/dirchownmod.c: Likewise.
61383         * lib/fts.c: Likewise.
61384
61385         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61386         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61387         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61388         just before including <inttypes.h>, to avoid circular inclusion.
61389
61390 2006-08-28  Jim Meyering  <jim@meyering.net>
61391
61392         * doc/visibility.texi: Actually read and correct the grammar of the
61393         sentence affected by yesterday's change.
61394
61395 2006-08-28  Eric Blake  <ebb9@byu.net>
61396
61397         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61398         needs wrapper.
61399
61400 2006-08-28  Eric Blake  <ebb9@byu.net>
61401
61402         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61403
61404 2006-08-28  Eric Blake  <ebb9@byu.net>
61405
61406         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61407
61408 2006-08-28  Bruno Haible  <bruno@clisp.org>
61409
61410         * modules/c-strstr: New file, from GNU gettext.
61411         * MODULES.html.sh (String handling): Add c-strstr.
61412
61413 2006-08-28  Bruno Haible  <bruno@clisp.org>
61414
61415         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61416         macros.
61417         Reported by Eric Blake.
61418
61419 2006-08-28  Bruno Haible  <bruno@clisp.org>
61420
61421         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61422         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61423         * lib/vasprintf.c: Include errno.h, limits.h.
61424         (EOVERFLOW): New fallback definition.
61425         (vasprintf): Test here whether the string length is > INT_MAX.
61426         * lib/vsnprintf.c: Include errno.h, limits.h.
61427         (EOVERFLOW): New fallback definition.
61428         (vsnprintf): Fix bug when generated string was too long for the buffer.
61429         Test here whether the string length is > INT_MAX.
61430
61431 2006-08-28  Bruno Haible  <bruno@clisp.org>
61432
61433         * lib/inttypes_.h (SCNX*): Remove definitions.
61434         Reported by Eric Blake.
61435
61436 2006-08-28  Bruno Haible  <bruno@clisp.org>
61437
61438         * lib/c-strstr.h: New file, from GNU gettext.
61439         * lib/c-strstr.c: New file, from GNU gettext.
61440
61441 2006-08-28  Bruno Haible  <bruno@clisp.org>
61442
61443         * gnulib-tool: Reorder some statements.
61444
61445 2006-08-28  Bruno Haible  <bruno@clisp.org>
61446
61447         * gnulib-tool: New option --makefile-name.
61448         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61449         $makefile_name.
61450         (func_import): Write $makefile_name to the cache file, and read it from
61451         there unless explicitly specified. Use $makefile_name as file name
61452         instead of Makefile.am. Adjust the recommendations accordingly.
61453
61454 2006-08-28  Bruno Haible  <bruno@clisp.org>
61455
61456         * gnulib-tool (func_verify_module): Check against misapplying patch.
61457
61458 2006-08-28  Bruno Haible  <bruno@clisp.org>
61459
61460         * gnulib-tool (func_relativize, func_relconcat): New functions.
61461         Give an error if --local-dir is given with --update.
61462         Remove trailing slashes from $local_gnulib_dir.
61463         (func_import): Store the relativized $local_gnulib_dir in
61464         gnulib-cache.m4, and read it from there if not specified explicitly.
61465
61466 2006-08-28  Bruno Haible  <bruno@clisp.org>
61467
61468         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61469         is the current directory. Respect also $local_gnulib_dir.
61470
61471 2006-08-28  Bruno Haible  <bruno@clisp.org>
61472             Simon Josefsson  <jas@extundo.com>
61473
61474         BeOS portability.
61475         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61476
61477 2006-08-27  Jim Meyering  <jim@meyering.net>
61478
61479         * doc/visibility.texi: Remove duplicate word: "pointer".
61480
61481 2006-08-26  Bruno Haible  <bruno@clisp.org>
61482
61483         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61484         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61485         (Makefile.am): Create inttypes.h from inttypes_.h.
61486         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61487
61488         * modules/imaxabs: New file.
61489
61490         * modules/imaxdiv: New file.
61491
61492 2006-08-26  Bruno Haible  <bruno@clisp.org>
61493
61494         * m4/inttypes.m4: New file.
61495         * m4/_inttypes_h.m4: Remove file.
61496         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61497         PRI_MACROS_BROKEN.
61498         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61499
61500         * m4/imaxabs.m4: New file.
61501
61502         * m4/imaxdiv.m4: New file.
61503
61504 2006-08-26  Bruno Haible  <bruno@clisp.org>
61505
61506         * lib/inttypes_.h: New file.
61507         * lib/inttypes.h: Remove file.
61508         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61509
61510         * lib/imaxabs.c: New file.
61511
61512         * lib/imaxdiv.c: New file.
61513
61514 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61515
61516         New config-h module, so that "make" output needn't be cluttered
61517         by -DHAVE_CONFIG_H.
61518         * MODULES.html.sh (Support for building libraries and executables):
61519         Add config-h.
61520         * modules/config-h: New file.
61521         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61522         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61523         the config-h module is used.
61524
61525         New configmake module, so that "make" output needn't be cluttered
61526         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61527         * MODULES.html.sh (Support for building libraries and executables):
61528         Add configmake.
61529         * modules/configmake: New file.
61530
61531 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61532
61533         * m4/config-h.m4: New file.
61534
61535 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61536
61537         * config/srclist.txt: Add elisp-comp.
61538
61539 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61540
61541         * MODULES.html.sh (Support for building libraries and executables):
61542         Add elisp-comp.
61543         * build-aux/elisp-comp: New file.
61544         * modules/elisp-comp: New file.
61545
61546 2006-08-24  Bruno Haible  <bruno@clisp.org>
61547
61548         * gnulib-tool (func_create_testdir): Use non-default values of
61549         sourcebase and m4base.
61550
61551 2006-08-24  Bruno Haible  <bruno@clisp.org>
61552
61553         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61554         HTML structure.
61555
61556 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61557
61558         * modules/openat (Depends-on): Add lchown.
61559
61560 2006-08-23  Bruno Haible  <bruno@clisp.org>
61561
61562         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61563         of gl_LOCK_EARLY instead of gl_LOCK.
61564
61565 2006-08-23  Bruno Haible  <bruno@clisp.org>
61566
61567         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61568         on OSF/1 to no.
61569         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61570
61571 2006-08-23  Bruno Haible  <bruno@clisp.org>
61572
61573         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61574         as unusable.
61575
61576         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61577         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61578         (gl_LOCK): New macro.
61579
61580 2006-08-22  Simon Josefsson  <jas@extundo.com>
61581
61582         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61583         to md5 module.
61584
61585 2006-08-22  Simon Josefsson  <jas@extundo.com>
61586
61587         * MODULES.html.sh: Add "Support for maintaining and release
61588         projects".
61589
61590         * build-aux/gnupload: New file, from coreutils.
61591
61592 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61593
61594         Avoid the need for AC_LIBSOURCES in m4 macros.
61595         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61596         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61597         * modules/check-version (EXTRA_DIST): Add check-version.h.
61598         * modules/crc (EXTRA_DIST): Add crc.h.
61599         * modules/des (EXTRA_DIST): Add des.h.
61600         * modules/gc (EXTRA_DIST): Add gc.h.
61601         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61602         * modules/getline (EXTRA_DIST): Add getline.h.
61603         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61604         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61605         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61606         * modules/md2 (EXTRA_DIST): Add md2.h.
61607         * modules/md4 (EXTRA_DIST): Add md4.h.
61608         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61609         * modules/read-file (EXTRA_DIST): Add read-file.h.
61610         * modules/readline (EXTRA_DIST): Add readline.h.
61611         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61612         rijndael-api-fst.h.
61613
61614 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61615
61616         * m4/rijndael.m4 (gl_ARCFOUR):
61617         * m4/arctwo.m4 (gl_ARCTWO):
61618         * m4/check-version.m4 (gl_CHECK_VERSION):
61619         * m4/crc.m4 (gl_CRC):
61620         * m4/des.m4 (gl_DES):
61621         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61622         * m4/gc.m4 (gl_GC):
61623         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61624         * m4/getline.m4 (gl_FUNC_GETLINE):
61625         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61626         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61627         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61628         * m4/md2.m4 (gl_MD2):
61629         * m4/md4.m4 (gl_MD4):
61630         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61631         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61632         * m4/readline.m4 (gl_FUNC_READLINE):
61633         * m4/rijndael.m4 (gl_RIJNDAEL):
61634         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61635         to get the necessary .h files and whatnot.
61636
61637 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61638
61639         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61640         gnulib rather than the other way around.
61641         * config/srclistvars.sh (COREUTILS): Remove.
61642
61643 2006-08-22  Jim Meyering  <jim@meyering.net>
61644
61645         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61646
61647         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61648
61649 2006-08-22  Eric Blake  <ebb9@byu.net>
61650
61651         * modules/regexprops-generic: New file.
61652         * MODULES.html.sh (Support for building documentation): List it.
61653
61654 2006-08-22  Eric Blake  <ebb9@byu.net>
61655
61656         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61657         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61658         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61659         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61660
61661 2006-08-22  Bruno Haible  <bruno@clisp.org>
61662
61663         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61664         and lib_LTLIBRARIES like the other lib_* variables.
61665
61666 2006-08-22  Bruno Haible  <bruno@clisp.org>
61667
61668         * build-aux/x-to-1.in: New file, from GNU gettext.
61669
61670 2006-08-22  Bruno Haible  <bruno@clisp.org>
61671
61672         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61673         <utmpx.h> exists.
61674
61675 2006-08-22  Bruno Haible  <bruno@clisp.org>
61676
61677         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61678         <utmpx.h> exists.
61679
61680 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61681
61682         BeOS portability.
61683         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61684         exist.
61685         Problem reported by Bruno Haible.
61686
61687 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61688
61689         Avoid the need for AC_LIBSOURCES in m4 macros.
61690         * modules/acl (EXTRA_DIST): Add acl.h.
61691         * modules/argmatch (Files): Add m4/argmatch.m4.
61692         (configure.ac): Add gl_ARGMATCH.
61693         (EXTRA_DIST): Renamed from lib_SOURCES, for
61694         consistency with the other modules.  Remove argmatch.c.
61695         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61696         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61697         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61698         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61699         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61700         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61701         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61702         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61703         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61704         * modules/closeout (EXTRA_DIST): Add closeout.h.
61705         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61706         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61707         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61708         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61709         dirname.h; remove basename.c and stripslash.c.
61710         * modules/exclude (EXTRA_DIST): Add exclude.h.
61711         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61712         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61713         * modules/file-type (EXTRA_DIST): Add file-type.h.
61714         * modules/filemode (EXTRA_DIST): Add filemode.h.
61715         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61716         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61717         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61718         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61719         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61720         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61721         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61722         * modules/getdate (EXTRA_DIST): Add getdate.c.
61723         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61724         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61725         * modules/getpass (EXTRA_DIST): Add getpass.h.
61726         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61727         * modules/group-member (EXTRA_DIST): Add group-member.h.
61728         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61729         * modules/hash (EXTRA_DIST): Add hash.h.
61730         * modules/human (EXTRA_DIST): Add human.h.
61731         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61732         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61733         * modules/lchown (EXTRA_DIST): Add lchown.h.
61734         * modules/long-options (EXTRA_DIST): Add long-options.h.
61735         * modules/lstat (EXTRA_DIST): Add lstat.h.
61736         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61737         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61738         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61739         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61740         * modules/memxor (EXTRA_DIST): Add memxor.h.
61741         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61742         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61743         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61744         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61745         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61746         * modules/physmem (EXTRA_DIST): Add physmem.h.
61747         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61748         * modules/posixver (EXTRA_DIST): Add posixver.h.
61749         * modules/quote (EXTRA_DIST): Add quote.h.
61750         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61751         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61752         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61753         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61754         regex_internal.h regexec.c.
61755         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61756         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61757         * modules/same (EXTRA_DIST): Add same.h.
61758         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
61759         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
61760         * modules/savedir (EXTRA_DIST): Add savedir.h.
61761         * modules/sha1 (EXTRA_DIST): Add sha1.h.
61762         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
61763         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
61764         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
61765         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
61766         * modules/strdup (EXTRA_DIST): Add strdup.h.
61767         * modules/strftime (EXTRA_DIST): Add strftime.h.
61768         * modules/strndup (EXTRA_DIST): Add strndup.h.
61769         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
61770         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
61771         * modules/time_r (EXTRA_DIST): Add time_r.h.
61772         * modules/timespec (EXTRA_DIST): Add timespec.h.
61773         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61774         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
61775         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
61776         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
61777         * modules/userspec (EXTRA_DIST): Add userspec.h.
61778         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
61779         * modules/utimens (EXTRA_DIST): Add utimens.h.
61780         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
61781         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
61782         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
61783         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
61784         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
61785         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
61786         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
61787         * modules/yesno (EXTRA_DIST): Add yesno.h.
61788
61789 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61790
61791         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
61792
61793         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
61794         * m4/dev-ino.m4, same-inode.m4: Remove.
61795
61796         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
61797         * m4/acl.m4 (AC_FUNC_ACL):
61798         * m4/backupfile.m4 (gl_BACKUPFILE):
61799         * m4/c-strtod.m4 (gl_C99_STRTOLD):
61800         * m4/canon-host.m4 (gl_CANON_HOST):
61801         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61802         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
61803         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
61804         * m4/cloexec.m4 (gl_CLOEXEC):
61805         * m4/close-stream.m4 (gl_CLOSE_STREAM):
61806         * m4/closeout.m4 (gl_CLOSEOUT):
61807         * m4/dirfd.m4 (gl_FUNC_DIRFD):
61808         * m4/dirname.m4 (gl_DIRNAME):
61809         * m4/exclude.m4 (gl_EXCLUDE):
61810         * m4/exitfail.m4 (gl_EXITFAIL):
61811         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
61812         * m4/file-type.m4 (gl_FILE_TYPE):
61813         * m4/filemode.m4 (gl_FILEMODE):
61814         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
61815         * m4/fpending.m4 (gl_FUNC_FPENDING):
61816         * m4/fprintftime.m4 (gl_FPRINTFTIME):
61817         * m4/fts.m4 (gl_FUNC_FTS):
61818         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
61819         * m4/getdate.m4 (gl_GETDATE):
61820         * m4/gethrxtime.m4 (gl_GETHRXTIME):
61821         * m4/getpagesize.m4 (gl_GETPAGESIZE):
61822         * m4/getpass.m4 (gl_FUNC_GETPASS):
61823         * m4/gettime.m4 (gl_GETTIME):
61824         * m4/getugroups.m4 (gl_GETUGROUPS):
61825         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
61826         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
61827         * m4/hard-locale.m4 (gl_HARD_LOCALE):
61828         * m4/hash.m4 (gl_HASH):
61829         * m4/idcache.m4 (gl_IDCACHE):
61830         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
61831         * m4/lchown.m4 (gl_FUNC_LCHOWN):
61832         * m4/long-options.m4 (gl_LONG_OPTIONS):
61833         * m4/lstat.m4 (gl_FUNC_LSTAT):
61834         * m4/md5.m4 (gl_MD5):
61835         * m4/memcasecmp.m4 (gl_MEMCASECMP):
61836         * m4/memcoll.m4 (gl_MEMCOLL):
61837         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
61838         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
61839         * m4/memxor.m4 (gl_MEMXOR):
61840         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
61841         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
61842         * m4/modechange.m4 (gl_MODECHANGE):
61843         * m4/mountlist.m4 (gl_MOUNTLIST):
61844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61845         * m4/openat.m4 (gl_FUNC_OPENAT):
61846         * m4/pathmax.m4 (gl_PATHMAX):
61847         * m4/physmem.m4 (gl_PHYSMEM):
61848         * m4/posixtm.m4 (gl_POSIXTM):
61849         * m4/posixver.m4 (gl_POSIXVER):
61850         * m4/quote.m4 (gl_QUOTE):
61851         * m4/quotearg.m4 (gl_QUOTEARG):
61852         * m4/readtokens.m4 (gl_READTOKENS):
61853         * m4/readutmp.m4 (gl_READUTMP):
61854         * m4/regex.m4 (gl_REGEX):
61855         * m4/safe-read.m4 (gl_SAFE_READ):
61856         * m4/safe-write.m4 (gl_SAFE_WRITE):
61857         * m4/same.m4 (gl_SAME):
61858         * m4/save-cwd.m4 (gl_SAVE_CWD):
61859         * m4/savedir.m4 (gl_SAVEDIR):
61860         * m4/settime.m4 (gl_SETTIME):
61861         * m4/sha1.m4 (gl_SHA1):
61862         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
61863         * m4/stat-macros.m4 (gl_STAT_MACROS):
61864         * m4/stat-time.m4 (gl_STAT_TIME):
61865         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
61866         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
61867         * m4/strdup.m4 (gl_FUNC_STRDUP):
61868         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
61869         * m4/strndup.m4 (gl_FUNC_STRNDUP):
61870         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
61871         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
61872         * m4/time_r.m4 (gl_TIME_R):
61873         * m4/timespec.m4 (gl_TIMESPEC):
61874         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
61875         * m4/unlinkdir.m4 (gl_UNLINKDIR):
61876         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
61877         * m4/userspec.m4 (gl_USERSPEC):
61878         * m4/utimecmp.m4 (gl_UTIMECMP):
61879         * m4/utimens.m4 (gl_UTIMENS):
61880         * m4/xalloc.m4 (gl_XALLOC):
61881         * m4/xgetcwd.m4 (gl_XGETCWD):
61882         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
61883         * m4/xreadlink.m4 (gl_XREADLINK):
61884         * m4/xstrtod.m4 (gl_XSTRTOD):
61885         * m4/yesno.m4 (gl_YESNO):
61886         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61887         to get the necessary .h files and whatnot.
61888
61889 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
61890             Bruno Haible  <bruno@clisp.org>
61891
61892         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
61893         /bin/sh understanding of '!' conditional negation.
61894
61895 2006-08-21  Jim Meyering  <jim@meyering.net>
61896
61897         * modules/openat (Depends-on): Really alphabetize.
61898
61899         * modules/acl (Depends-on): Add error and quote.
61900
61901         * check-module (find_included_lib_files): Add at-func.c to the
61902         ok-to-include-more-than-once white list.
61903
61904         * modules/openat (Depends-on): Add lstat.  Alphabetize.
61905
61906 2006-08-21  Bruno Haible  <bruno@clisp.org>
61907
61908         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61909         Emit a pkgdata_DATA variable only if some snippets add contents to it.
61910         Reported by Martin Lambers <marlam@marlam.de>.
61911
61912 2006-08-21  Bruno Haible  <bruno@clisp.org>
61913
61914         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
61915         specify an installation location, don't emit a noinst_LIBRARIES or
61916         noinst_LTLIBRARIES assignment.
61917
61918 2006-08-21  Bruno Haible  <bruno@clisp.org>
61919
61920         BeOS portability.
61921         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
61922         BeOS has mbrtowc() but no <wctype.h>.
61923
61924 2006-08-21  Bruno Haible  <bruno@clisp.org>
61925
61926         BeOS portability.
61927         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
61928         exist.
61929
61930 2006-08-21  Bruno Haible  <bruno@clisp.org>
61931
61932         BeOS portability.
61933         * lib/mbchar.h: Include <wctype.h> only if it exists.
61934
61935 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61936
61937         Remove files that are no longer needed by their respective modules.
61938         * m4/obstack.m4: Remove.
61939         * m4/strerror_r.m4: Remove.
61940         * m4/uint32_t.m4: Remove.
61941         * m4/uintptr_t.m4: Remove.
61942         * m4/ullong_max.m4: Remove.
61943         * m4/xstrtoimax.m4: Remove.
61944         * m4/xstrtoumax.m4: Remove.
61945
61946         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
61947         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
61948         dependencies now capture this.
61949
61950         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
61951         Do not use AC_LIBSOURCES, since gnulib modules now do this.
61952         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
61953         * m4/human.m4 (gl_HUMAN): Likewise.
61954         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61955         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61956
61957         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61958
61959         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61960         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61961         stdint.
61962         * m4/human.m4 (gl_HUMAN): Likewise.
61963         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61964         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61965         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61966         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61967         * m4/xstrtol (gl_XSTRTOL): Likewise.
61968
61969         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61970         AC_TYPE_LONG_LONG_INT.
61971         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61972         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61973         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61974         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61975
61976         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61977         on stdbool.
61978
61979         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61980         (gl_PREREQ_XSTRTOUL): Remove.
61981
61982         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61983
61984         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61985         mode.
61986
61987 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61988
61989         Add and change modules to make it easier for coreutils to use
61990         gnulib-tool.
61991         * modules/backupfile (Files): Remove m4/d-ino.m4.
61992         (Depends-on): Add d-ino.
61993         * modules/cycle-check (Depends-on): Add stdint.
61994         (lib_SOURCES): Add cycle-check.h.
61995         * modules/d-ino: New module.
61996         * modules/d-type: New module.
61997         * modules/error (Files): Remove m4/strerror_r.m4.
61998         * modules/filemode (Files): Add m4/st_dm_mode.m4.
61999         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62000         m4/inttypes_h.m4, m4/uintmax_t.m4.
62001         (Depends-on): Add stdint.
62002         (lib_SOURCES): Add fsusage.h.
62003         * modules/getcwd (Files): Remove d-ino.m4.
62004         (Depends-on): Add d-ino.
62005         * modules/getndelim2 (Depends-on): Add stdint.
62006         * modules/glob (Files): Remove m4/d-type.m4.
62007         (Depends-on): Add d-type.
62008         * modules/host-os: New module.
62009         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
62010         m4/inttypes_h.m4, m4/uintmax_t.m4.
62011         * Depends-on: Add stdint.
62012         (lib_SOURCES): Add human.h.
62013         * modules/inttostr (Files): Remove m4/intmax_t.m4,
62014         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
62015         m4/uintmax_t.m4, m4/ulonglong.m4.
62016         (Depends-on): Add stdint.
62017         (EXTRA_DIST): Add inttostr.h.
62018         * modules/lchmod: New module.
62019         * modules/link-follow: New module.
62020         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
62021         (Depends-on): Add lchmod.
62022         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
62023         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
62024         (Depends-on): Add stdint.
62025         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
62026         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
62027         (Depends-on): Add stdint.
62028         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
62029         * modules/perl: New module.
62030         * modules/regex (Depends-on): Add stdint.
62031         * modules/rmdir-errno: New module.
62032         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62033         m4/intmax_t.m4.
62034         (Depends-on): Add stdint.
62035         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62036         m4/uintmax_t.m4.
62037         (Depends-on): Add stdint.
62038         * modules/unlink-busy: New module.
62039         * modules/utimecmp (Depends-on): Add stdint.
62040         * modules/uptime: New module.
62041         * modules/winsz-ioctl: New module.
62042         * modules/winsz-termios: New module.
62043         * modules/xnanosleep (Depends-on): Add nanosleep.
62044         * modules/ullong_max: Remove.
62045         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
62046         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
62047         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
62048         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
62049         (Depends-on): Add inttypes.
62050         (lib_SOURCES): Add xstrtol.h.
62051         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62052         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62053         * MODULES.html.sh: Move 'assert' into the assert section.
62054         Move 'dummy' into the linking section.
62055         Remove ullong_max.
62056         Add section for compatibility checks for POSIX:2001 functions,
62057         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
62058         winsz-ioctl, and winsz-termios into it.
62059         Add lchmod.
62060         Add top-level Misc section and put host-os, perl, and uptime
62061         into it.
62062
62063 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62064
62065         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
62066         now assume the stdint module.  Do not include inttypes.h.
62067         * lib/fsusage.h: Likewise.
62068         * lib/getndelim2.c: Likewise.
62069         * lib/human.h: Likewise.
62070         * lib/inttostr.h: Likewise.
62071         * lib/obstack.c: Likewise.
62072         * lib/regex_internal.h: Likewise.
62073         * lib/tempname.c: Likewise.
62074         * lib/utimecmp.c: Likewise.
62075         * lib/xstrtol.h: Likewise.
62076
62077         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
62078
62079         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
62080         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
62081         * lib/xtime.h: Likewise.
62082
62083 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62084
62085         * modules/openat (Files): Add lib/fchmodat.c.
62086         Fixes problem reported by Jay Youngman.
62087
62088 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62089
62090         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62091         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62092
62093 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62094             Bruno Haible  <bruno@clisp.org>
62095
62096         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62097         and is a script that invokes bison. Tighten the code. Add comments.
62098
62099 2006-08-18  Jim Meyering  <jim@meyering.net>
62100
62101         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62102         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62103         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62104         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62105
62106 2006-08-18  Bruno Haible  <bruno@clisp.org>
62107
62108         * modules/bison-i18n: New file.
62109         * MODULES.html.sh (Internationalization functions): Add it.
62110
62111 2006-08-18  Bruno Haible  <bruno@clisp.org>
62112
62113         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62114         sys/statvfs.h. When getmntinfo was found, check its declaration and
62115         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62116
62117 2006-08-18  Bruno Haible  <bruno@clisp.org>
62118
62119         * m4/bison-i18n.m4: New file, from bison.
62120
62121 2006-08-18  Bruno Haible  <bruno@clisp.org>
62122
62123         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62124         (ME_DUMMY): Treat "kernfs" as a dummy.
62125         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62126
62127 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62128
62129         Update from coreutils.
62130
62131         2006-08-15  Jim Meyering  <jim@meyering.net>
62132
62133         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62134
62135         2006-01-17  Jim Meyering  <jim@meyering.net>
62136
62137         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62138
62139         2006-01-11  Jim Meyering  <jim@meyering.net>
62140
62141         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62142         Check for the lchmod function.
62143
62144 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62145
62146         Update from coreutils.
62147
62148         * lib/__fpending.h: Add copyright notice.
62149         * lib/fprintftime.h: Likewise.
62150         * lib/savedir.c: Use (C) in copyright notice.
62151         * lib/savedir.h: Likewise.
62152
62153         2006-08-15  Jim Meyering  <jim@meyering.net>
62154
62155         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62156         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62157         in support of the EXPECTED_ERRNO macro.
62158         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62159         definitions.  Instead, define the appropriate symbols and include
62160         "at-func.c".
62161         * lib/mkdirat.c (mkdirat): Likewise.
62162         * lib/fchmodat.c (fchmodat): Likewise.
62163         (ENOSYS): Remove definition.
62164         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62165         it.  Don't include "unistd--.h" -- it wasn't ever used.
62166
62167         2006-01-17  Jim Meyering  <jim@meyering.net>
62168
62169         Rewrite fts.c not to change the current working directory,
62170         by using openat, fstatat, fdopendir, etc..
62171
62172         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62173         (HAVE_OPENAT_SUPPORT): Define.
62174         [_LIBC] (fchdir): Don't undef or define; no longer used.
62175         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62176         Now, this `function' always succeeds, and consumes its file descriptor
62177         parameter -- so callers must not close such FDs.  Update callers.
62178         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62179         (diropen): Add parameter, SP.  Adjust all callers.
62180         Implement using diropen_fd, rather than open.
62181         (fts_open): Initialize new member, fts_cwd_fd.
62182         Remove fts_rft-setting code.
62183         (fts_close): Close fts_cwd_fd, if necessary.
62184         (__opendir2): Define in terms of opendir or opendirat,
62185         depending on whether the FST_NOCHDIR flag is set.
62186         (fts_build): Since fts_safe_changedir consumes its FD, and since
62187         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62188         and close the dup'd file descriptor upon failure.
62189         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62190         (fts_safe_changedir): Tweak semantics to reflect that this function
62191         now calls cwd_advance_fd and hence consumes its FD argument.
62192         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62193         [struct FTS] (fts_rft): Remove now-unused member.
62194         [struct FTS] (fts_cycle.state): Improve comment.
62195
62196         * lib/openat.c (openat_needs_fchdir): New function.
62197         * lib/openat.h (openat_needs_fchdir): Declare it.
62198
62199 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62200
62201         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62202         Problem and fix reported by Pádraig Brady in
62203         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62204
62205 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62206
62207         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62208
62209 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62210
62211         * lib/memcoll.c (memcoll): Optimize for the common case where the
62212         arguments are bytewise equal.
62213
62214 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62215
62216         * doc/regexprops-generic.texi: Add a copyright notice.
62217
62218 2006-08-15  Bruno Haible  <bruno@clisp.org>
62219
62220         * modules/tmpdir (License): Change to LGPL.
62221
62222 2006-08-15  Bruno Haible  <bruno@clisp.org>
62223
62224         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62225         module.
62226
62227 2006-08-14  Simon Josefsson  <jas@extundo.com>
62228
62229         * config/srclist.txt: Add gnupload.
62230
62231 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62232
62233         Change copyright notice from LGPL 2 to GPL 2, since that's the
62234         standard form used in the gnulib repository.
62235         * tests/test-lock.c: Likewise.
62236         * tests/test-stdint.c: Likewise.
62237         * tests/test-tls.c: Likewise.
62238
62239         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62240         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62241         Add copyright notice.
62242
62243         * check-module: Add copyright notice.  Output a copyright
62244         notice if "--version" is specified.
62245         * modules/COPYING: New file.
62246         * tests/test-getaddrinfo.c: Add copyright notice.
62247         * tests/test-verify.c: Likewise.
62248
62249 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62250
62251         Change copyright notice from LGPL 2 to GPL 2, since that's the
62252         standard form used in the gnulib repository.
62253         * lib/lock.c: LGPL -> GPL.
62254         * lib/lock.h: Likewise.
62255         * lib/strnlen1.c: Likewise.
62256         * lib/strnlen1.h: Likewise.
62257         * lib/tls.c: Likewise.
62258         * lib/tls.h: Likewise.
62259         * lib/tmpdir.c: Likewise.
62260
62261         * lib/TODO: Remove; this belongs only in coreutils.
62262
62263 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62264
62265         Add copyright notices to long-enough files that lack them, since
62266         otherwise the files aren't clearly free.  Use the same notice that
62267         getdate.texi already uses.
62268         * doc/alloca-opt.texi: Add copyright notice.
62269         * doc/alloca.texi: Likewise.
62270         * doc/ctime.texi: Likewise.
62271         * doc/functions.texi: Likewise.
62272         * doc/gcd.texi: Likewise.
62273         * doc/gnulib-tool.texi: Likewise.
62274         * doc/inet_ntoa.texi: Likewise.
62275         * doc/visibility.texi: Likewise.
62276
62277         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62278         * doc/quote.texi: Add copyright notice.
62279
62280         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62281         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62282         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62283         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62284         is now obsolete, and give a pointer to the Sun list.
62285         Add copyright notice.
62286
62287 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62288
62289         * config/srclistvars.sh: Add copyright notice.
62290
62291 2006-08-14  Eric Blake  <ebb9@byu.net>
62292
62293         Import the following change from libc:
62294
62295         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62296
62297         Upstream bug 2997.
62298         * lib/misc/error.c: Add space between program name and message if file
62299         name is missing.
62300
62301 2006-08-12  Karl Berry  <karl@gnu.org>
62302
62303         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62304         remove, these originate in gnulib now.
62305
62306 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62307
62308         * doc/Makefile (standards.info standards.html standards.dvi):
62309         Also depend on make-stds.texi.
62310
62311 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62312
62313         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62314         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62315
62316         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62317         in wchar_t.  Problem reported by Eric Blake.
62318
62319         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62320         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62321         Also, help the compiler to keep LEN in a register.
62322
62323 2006-08-11  Eric Blake  <ebb9@byu.net>
62324
62325         * users.txt: Sort.  Add tar.
62326
62327 2006-08-11  Bruno Haible  <bruno@clisp.org>
62328
62329         * users.txt: New file.
62330
62331 2006-08-11  Bruno Haible  <bruno@clisp.org>
62332
62333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62334         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62335
62336 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62337
62338         * modules/snprintf (Depends-on): Remove minmax.
62339         (Maintainer): Add self and Bruno.
62340
62341 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62342
62343         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62344         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62345         (EOVERFLOW): Define if the system does not.
62346         Do not include "minmax.h"; it wasn't used.
62347         (snprintf): Don't assume size_t promotes to an unsigned type.
62348         Fix bug when generated string was too long for the buffer: the
62349         buffer's contents are supposed to be the initial prefix of the
62350         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62351         exceeds INT_MAX; do the check ourselves.
62352
62353         Import the following changes from libc:
62354
62355         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62356
62357         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62358         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62359         set wc to the byte which couldn't be converted.
62360         (re_string_reconstruct): Don't clear valid_raw_len before calling
62361         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62362         tip_context using re_string_context_at.
62363
62364         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62365
62366         * lib/posix/regex.h: g++ still cannot handled [restrict].
62367
62368         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62369
62370         * lib/posix/regex.h: Remove special handling for VMS.
62371
62372 2006-08-10  Jim Meyering  <jim@meyering.net>
62373
62374         * modules/same-inode: New module.
62375         * modules/dev-ino: New module.
62376         * modules/cycle-check: Depend on these modules, rather than simply
62377         including their .h files.
62378         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62379         required via m4/cycle-check.m4.
62380         * modules/same: Depend on new same-inode module, rather than
62381         including same-inode.h.
62382         * modules/chdir-safer: New file.
62383
62384         * modules/chown (Depends-on): Add stat-macros.
62385
62386 2006-08-10  Jim Meyering  <jim@meyering.net>
62387
62388         * m4/cycle-check.m4: New file.
62389         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62390         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62391
62392 2006-08-10  Eric Blake  <ebb9@byu.net>
62393
62394         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62395         in from original proposal.
62396
62397 2006-08-10  Eric Blake  <ebb9@byu.net>
62398         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62399
62400         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62401         namespace.
62402
62403 2006-08-10  Bruno Haible  <bruno@clisp.org>
62404
62405         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62406         as well.
62407
62408 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62409
62410         Sync from coreutils.
62411
62412         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62413
62414         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62415         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62416
62417 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62418
62419         * modules/restrict: Remove; no longer needed now that we assume
62420         Autoconf 2.59 or later.
62421         * MODULES.html.sh: Remove 'restrict'.
62422         * modules/argp (Depends-on): Remove 'restrict'.
62423         * modules/base64 (Depends-on): Likewise.
62424         * modules/gc (Depends-on): Likewise.
62425         * modules/getaddrinfo (Depends-on): Likewise.
62426         * modules/glob (Depends-on): Likewise.
62427         * modules/inet_ntop (Depends-on): Likewise.
62428         * modules/inet_pton (Depends-on): Likewise.
62429         * modules/memxor (Depends-on): Likewise.
62430         * modules/regex (Depends-on): Likewise.
62431         * modules/strtok_r (Depends-on): Likewise.
62432         * modules/time_r (Depends-on): Likewise.
62433
62434 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62435
62436         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62437         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62438         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62439         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62440         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62441         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62442         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62443         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62444
62445         Merge from coreutils.
62446         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62447         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62448         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62449         * m4/time_r.m4 (gl_TIME_R): Likewise.
62450
62451 2006-08-09  Karl Berry  <karl@gnu.org>
62452
62453         * config/srclist.txt: no more gettext-tools, per Bruno.
62454
62455 2006-08-08  Eric Blake  <ebb9@byu.net>
62456
62457         * modules/verror: New module.
62458         * MODULES.html.sh: Document it.
62459
62460 2006-08-08  Eric Blake  <ebb9@byu.net>
62461
62462         * lib/verror.h, lib/verror.c: New files.
62463
62464 2006-08-08  Eric Blake  <ebb9@byu.net>
62465
62466         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62467         verror_at_line output complies with GNU Coding Standards even when
62468         file is NULL.
62469
62470 2006-08-07  Bruno Haible  <bruno@clisp.org>
62471
62472         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62473         versions of AIX.
62474         Reported by Ralf Wildenhues.
62475
62476 2006-08-07  Bruno Haible  <bruno@clisp.org>
62477
62478         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62479         in an AC_DEFUN. Needed so that the autoconf snippets can use
62480         AC_REQUIRE.
62481
62482 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62483
62484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62485         Initialize pkgdata_DATA.
62486         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62487         overriding it.
62488
62489 2006-08-06  Eric Blake  <ebb9@byu.net>
62490
62491         * lib/error.h: Fold in some upstream changes from glibc.
62492         * lib/error.c: Likewise.
62493
62494 2006-08-04  Bruno Haible  <bruno@clisp.org>
62495
62496         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62497         Make the mostlyclean-local rule depend on mostlyclean-generic.
62498         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62499
62500 2006-07-31  Bruno Haible  <bruno@clisp.org>
62501
62502         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62503         <stdlib.h>, <string.h>.
62504
62505 2006-07-30  Bruno Haible  <bruno@clisp.org>
62506
62507         * modules/readlink (License): Change to LGPL.
62508
62509 2006-07-30  Bruno Haible  <bruno@clisp.org>
62510
62511         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62512         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62513         set PKGDATADIR to point to it.
62514
62515 2006-07-30  Bruno Haible  <bruno@clisp.org>
62516
62517         * modules/csharpexec (configure.ac): Comment out macro invocation.
62518         * modules/javaexec (configure.ac): Likewise.
62519         * modules/javacomp-script (configure.ac): Likewise.
62520
62521         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62522
62523 2006-07-30  Bruno Haible  <bruno@clisp.org>
62524
62525         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62526         linked-list.
62527
62528 2006-07-30  Bruno Haible  <bruno@clisp.org>
62529
62530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62531
62532 2006-07-30  Bruno Haible  <bruno@clisp.org>
62533
62534         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62535         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62536         get removed.
62537
62538 2006-07-29  Bruno Haible  <bruno@clisp.org>
62539
62540         Make it possible for gnulib-tool to work with locally modified or
62541         augmented gnulib repositories.
62542         * gnulib-tool (func_usage): Document --local-dir option.
62543         (local_gnulib_dir): New variable.
62544         Handle --local-dir option.
62545         (func_lookup_file): New function.
62546         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62547         (func_get_description, func_get_filelist, func_get_description,
62548         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62549         func_get_automake_snippet, func_get_include_directive,
62550         func_get_license, func_get_maintainer): Use func_lookup_file.
62551         (func_import, func_create_testdir): Use func_lookup_file.
62552
62553 2006-07-29  Bruno Haible  <bruno@clisp.org>
62554
62555         * modules/setenv (Depends-on): Add unistd.
62556
62557 2006-07-29  Bruno Haible  <bruno@clisp.org>
62558
62559         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62560
62561 2006-07-29  Bruno Haible  <bruno@clisp.org>
62562
62563         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62564
62565 2006-07-29  Bruno Haible  <bruno@clisp.org>
62566
62567         * gnulib-tool (import, update): If there is no Makefile.am, look at
62568         aclocal.m4, instead of bailing out.
62569
62570 2006-07-29  Bruno Haible  <bruno@clisp.org>
62571
62572         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62573         Categorize the options by when they are useful.
62574
62575 2006-07-29  Bruno Haible  <bruno@clisp.org>
62576
62577         * gnulib-tool (func_usage): Document option --no-libtool.
62578         Handle option --no-libtool.
62579         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62580         for changed semantics of $libtool variable.
62581         (func_import): Likewise. If libtool is not used, show this through
62582         an option --no-libtool.
62583         (func_create_testdir): Update.
62584
62585 2006-07-29  Bruno Haible  <bruno@clisp.org>
62586
62587         * gnulib-tool (func_import): Extend error message about missing
62588         --doc-base.
62589
62590 2006-07-29  Bruno Haible  <bruno@clisp.org>
62591
62592         * gnulib-tool (func_import): Don't create the $docbase directory if
62593         there is no file to store there.
62594
62595 2006-07-29  Bruno Haible  <bruno@clisp.org>
62596
62597         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62598         relevant, look for configure.ac there, not in the current directory.
62599         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62600
62601 2006-07-29  Bruno Haible  <bruno@clisp.org>
62602
62603         * gnulib-tool (SORT): New variable.
62604         (func_usage): Undocument --assume-autoconf option.
62605         Remove --assume-autoconf option handling.
62606         (autoconf_minversion): Determine from the contents of configure.ac.
62607         (func_import): Remove autoconf_minversion handling.
62608         Suggested by Eric Blake.
62609
62610 2006-07-29  Bruno Haible  <bruno@clisp.org>
62611
62612         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62613
62614 2006-07-29  Bruno Haible  <bruno@clisp.org>
62615
62616         * config/srclist.txt (*setenv.[ch]): Remove rules.
62617
62618 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62619
62620         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62621
62622 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62623
62624         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62625         arpa/inet.h.
62626
62627 2006-07-28  Simon Josefsson  <jas@extundo.com>
62628
62629         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62630         * modules/inet_pton (Depends-on): Likewise.
62631
62632 2006-07-28  Simon Josefsson  <jas@extundo.com>
62633
62634         * m4/netinet_in_h.m4: New file.
62635
62636 2006-07-28  Simon Josefsson  <jas@extundo.com>
62637
62638         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62639         #include's.
62640
62641 2006-07-28  Simon Josefsson  <jas@extundo.com>
62642
62643         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62644         #include's.
62645
62646 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62647
62648         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62649         setgid on directories only if they set these bits.
62650         * lib/modechange.h: Remove obsolete comment about masks.
62651
62652 2006-07-28  Eric Blake  <ebb9@byu.net>
62653
62654         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62655         macro expansion.
62656
62657 2006-07-28  Bruno Haible  <bruno@clisp.org>
62658
62659         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62660
62661 2006-07-28  Bruno Haible  <bruno@clisp.org>
62662
62663         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62664
62665 2006-07-28  Bruno Haible  <bruno@clisp.org>
62666
62667         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62668         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62669         Define fallbacks.
62670         Avoids link error on FreeBSD 4.x.
62671         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62672
62673         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62674         encoding.
62675         * lib/mbswidth.c (iswcntrl): Likewise.
62676
62677 2006-07-27  Bruno Haible  <bruno@clisp.org>
62678
62679         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62680         test.
62681
62682 2006-07-27  Bruno Haible  <bruno@clisp.org>
62683
62684         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62685         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62686         defined.
62687
62688 2006-07-26  Eric Blake  <ebb9@byu.net>
62689
62690         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62691
62692 2006-07-26  Eric Blake  <ebb9@byu.net>
62693
62694         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62695         like mingw that lack mkstemp.
62696         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62697         avoid compilation warning on mingw.
62698
62699 2006-07-26  Bruno Haible  <bruno@clisp.org>
62700
62701         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62702         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62703         INT_FAST*_MIN, INTPTR_MIN.
62704
62705 2006-07-25  Bruno Haible  <bruno@clisp.org>
62706
62707         * modules/version-etc (Depends-on): Add stdarg.
62708
62709 2006-07-25  Bruno Haible  <bruno@clisp.org>
62710
62711         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62712         complex commands.
62713
62714 2006-07-25  Bruno Haible  <bruno@clisp.org>
62715
62716         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62717         defined in <stdarg.h> or config.h.
62718
62719 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62720
62721         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62722         (gl_STDIO_SAFER): Remove.
62723
62724 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62725
62726         * MODULES.html.sh (File stream based Input/Output):
62727         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62728         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62729         * modules/fopen-safer, modules/tmpfile-safer: New files.
62730         * modules/stdio-safer: Remove.
62731
62732 2006-07-24  Bruno Haible  <bruno@clisp.org>
62733
62734         * modules/tmpdir: New file.
62735         * MODULES.html.sh (File system functions): Add it.
62736
62737 2006-07-24  Bruno Haible  <bruno@clisp.org>
62738
62739         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62740         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62741
62742 2006-07-24  Bruno Haible  <bruno@clisp.org>
62743
62744         * modules/clean-temp: New file.
62745
62746 2006-07-24  Bruno Haible  <bruno@clisp.org>
62747
62748         * m4/tmpdir.m4: New file, from GNU gettext.
62749
62750 2006-07-24  Bruno Haible  <bruno@clisp.org>
62751
62752         * lib/tmpdir.h: New file, from GNU gettext.
62753         * lib/tmpdir.c: New file, from GNU gettext.
62754
62755 2006-07-24  Bruno Haible  <bruno@clisp.org>
62756
62757         * lib/clean-temp.h: New file, from GNU gettext.
62758         * lib/clean-temp.c: New file, from GNU gettext.
62759
62760 2006-07-23  Eric Blake  <ebb9@byu.net>
62761
62762         * modules/stdio-safer (Files): Add tmpfile-safer.c.
62763         (Depends-on): Add binary-io.
62764
62765 2006-07-23  Eric Blake  <ebb9@byu.net>
62766
62767         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
62768
62769 2006-07-23  Eric Blake  <ebb9@byu.net>
62770
62771         * lib/tmpfile-safer.c: New file.
62772         * lib/stdio-safer.h (fopen_safer): Add prototype.
62773         * lib/stdio--.h (tmpfile): Make safer.
62774
62775 2006-07-23  Bruno Haible  <bruno@clisp.org>
62776
62777         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
62778         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
62779         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
62780         gl_linked_remove_at): Use it.
62781
62782 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62783         and Simon Josefsson <jas@extundo.com>
62784
62785         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
62786
62787         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
62788
62789 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62790
62791         * modules/close-stream: New file.
62792         * modules/closeout (Description): Make it clear that it exits
62793         with a diagnostic on error.
62794         (Depends-on): Add close-stream.  Remove fpending, stdbool.
62795         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
62796
62797 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62798
62799         * m4/close-stream.m4: New file.
62800
62801 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62802
62803         * lib/close-stream.c, lib/close-stream.h: New files.
62804
62805 2006-07-22  Bruno Haible  <bruno@clisp.org>
62806
62807         Merge from GNU gettext 0.15.
62808
62809         2006-05-01  Bruno Haible  <bruno@clisp.org>
62810
62811                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
62812
62813         2006-07-22  Bruno Haible  <bruno@clisp.org>
62814
62815                 * modules/javaversion: New file.
62816                 * MODULES.html.sh (Java): Add javaversion.
62817
62818         2006-03-12  Bruno Haible  <bruno@clisp.org>
62819
62820                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
62821
62822         2005-12-04  Bruno Haible  <bruno@clisp.org>
62823
62824                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
62825                 (untested).
62826
62827         2006-06-21  Bruno Haible  <bruno@clisp.org>
62828
62829                 Avoid warnings from recent versions of mcs.
62830                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
62831                 -o, -L, -r any more. Use options documented since mcs-1.0
62832                 instead. Similarly for -g.
62833
62834         2005-12-04  Bruno Haible  <bruno@clisp.org>
62835
62836                 * build-aux/csharpcomp.sh.in: Suffix for resources is
62837                 .resources, not .resource.
62838
62839         2005-07-09  Bruno Haible  <bruno@clisp.org>
62840
62841                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
62842                 add a .dll suffix.
62843                 Reported by Mark Junker <mjscod@gmx.de>.
62844
62845         2006-07-22  Bruno Haible  <bruno@clisp.org>
62846
62847                 * modules/gettext: Upgrade to gettext-0.15.
62848                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
62849                 m4/visibility.m4.
62850                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
62851
62852 2006-07-22  Bruno Haible  <bruno@clisp.org>
62853
62854         Merge from GNU gettext 0.15.
62855
62856         2006-03-25  Bruno Haible  <bruno@clisp.org>
62857
62858                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
62859
62860         2006-07-21  Bruno Haible  <bruno@clisp.org>
62861
62862                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
62863                 "1.1".
62864
62865         2006-05-09  Bruno Haible  <bruno@clisp.org>
62866
62867                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
62868                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
62869                 for the conftestver execution.
62870
62871         2006-05-01  Bruno Haible  <bruno@clisp.org>
62872
62873                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
62874                 optional target-version argument. Verify that the compiler
62875                 groks source of the specified source-version, or add -source
62876                 option as necessary. Verify that the compiler produces
62877                 bytecode in the specified target-version, or add -target and
62878                 -source options as necessary. Make the result of the test
62879                 available as variable CONF_JAVAC. Also log error output in
62880                 config.log.
62881
62882         2006-03-11  Bruno Haible  <bruno@clisp.org>
62883
62884                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
62885
62886         2006-05-09  Bruno Haible  <bruno@clisp.org>
62887
62888                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
62889                 CLASSPATH_SEPARATOR to a semicolon.
62890
62891         2006-03-12  Bruno Haible  <bruno@clisp.org>
62892
62893                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
62894                 available as variable CONF_JAVA, for subsequent autoconf
62895                 tests. Also log error output in config.log.
62896
62897         2006-07-19  Bruno Haible  <bruno@clisp.org>
62898
62899                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
62900                 that getline works on glibc2 systems. Needed to avoid trouble
62901                 in relocatable.c.
62902                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
62903
62904         2005-12-04  Bruno Haible  <bruno@clisp.org>
62905
62906                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
62907                 launcher (untested).
62908
62909         2005-12-04  Bruno Haible  <bruno@clisp.org>
62910
62911                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
62912
62913         2006-07-22  Bruno Haible  <bruno@clisp.org>
62914
62915                 * gettext.m4: Update from GNU gettext-0.15.
62916                 * nls.m4: Likewise.
62917                 * po.m4: Likewise.
62918                 * inttypes-pri.m4: Likewise.
62919                 * inttypes-h.m4: Renamed from inttypes.m4.
62920                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
62921
62922 2006-07-22  Bruno Haible  <bruno@clisp.org>
62923
62924         Merge from GNU gettext 0.15.
62925
62926         2005-07-05  Bruno Haible  <bruno@clisp.org>
62927
62928                 * printf-args.c (printf_fetchargs): Work around broken
62929                 definition of wint_t on mingw.
62930
62931         2005-02-12  Bruno Haible  <bruno@clisp.org>
62932
62933                 * xallocsa.h: Add extern "C" for C++.
62934
62935         2006-05-17  Bruno Haible  <bruno@clisp.org>
62936
62937                 Cygwin portability.
62938                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
62939
62940         2006-04-30  Bruno Haible  <bruno@clisp.org>
62941
62942                 * progreloc.c: Include <mach-o/dyld.h> if available.
62943                 (find_executable): Use _NSGetExecutablePath when possible.
62944
62945         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62946
62947                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
62948                 function.
62949
62950         2005-12-29  Bruno Haible  <bruno@clisp.org>
62951
62952                 * progreloc.c (set_program_name_and_installdir): Fix
62953                 compilation error.
62954
62955         2005-12-04  Bruno Haible  <bruno@clisp.org>
62956
62957                 Cygwin portability.
62958                 * progreloc.c: Include <windows.h> also on Cygwin.
62959                 (find_executable): Add support for Cygwin.
62960                 (set_program_name_and_installdir): Handle also platforms with
62961                 nonempty EXEEXT.
62962
62963         2006-07-11  Bruno Haible  <bruno@clisp.org>
62964
62965                 * javacomp.c: Fix a comment.
62966                 Reported by Jim Meyering.
62967
62968         2006-04-30  Bruno Haible  <bruno@clisp.org>
62969
62970                 * javacomp.h (compile_java_class): Add source_version,
62971                 target_version arguments.
62972                 * javacomp.c: Rewritten to choose only a compiler that
62973                 respects the specified source_version and target_version.
62974
62975         2006-06-27  Bruno Haible  <bruno@clisp.org>
62976
62977                 Assume correct S_ISDIR macro.
62978                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62979
62980         2006-07-22  Bruno Haible  <bruno@clisp.org>
62981
62982                 * javaversion.h: New file, from GNU gettext.
62983                 * javaversion.c: New file, from GNU gettext.
62984                 * javaversion.java: New file, from GNU gettext.
62985                 * javaversion.class: New file, from GNU gettext.
62986
62987         2006-05-17  Bruno Haible  <bruno@clisp.org>
62988
62989                 Cygwin portability.
62990                 * javaexec.c (execute_java_class): Test for jview program
62991                 also on Cygwin.
62992
62993         2006-04-09  Bruno Haible  <bruno@clisp.org>
62994
62995                 * fatal-signal.c: Don't include string.h.
62996                 (at_fatal_signal): Use a copying loop instead of memcpy.
62997
62998         2005-12-04  Bruno Haible  <bruno@clisp.org>
62999
63000                 * csharpexec.c: Add support for 'clix' launcher (untested).
63001                 (execute_csharp_using_sscli): New function.
63002                 (execute_csharp_program): Call it.
63003
63004         2006-06-21  Bruno Haible  <bruno@clisp.org>
63005
63006                 Avoid warnings from recent versions of mcs.
63007                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
63008                 -o, -L, -r any more. Use options documented since mcs-1.0
63009                 instead. Similarly for -g.
63010
63011         2005-07-09  Bruno Haible  <bruno@clisp.org>
63012
63013                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
63014                 add a .dll suffix.
63015                 Reported by Mark Junker <mjscod@gmx.de>.
63016
63017         2006-06-17  Bruno Haible  <bruno@clisp.org>
63018
63019                 * config.charset: Update for NetBSD 3.0.
63020
63021         2006-05-17  Bruno Haible  <bruno@clisp.org>
63022
63023                 Cygwin portability.
63024                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
63025
63026         2006-05-16  Bruno Haible  <bruno@clisp.org>
63027
63028                 * localcharset.c [CYGWIN]: Include <windows.h>.
63029                 (get_charset_aliases): For Cygwin, return the same CPxxx
63030                 aliases list as under WIN32.
63031                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
63032                 the environment variables. Fall back to GetACP().
63033
63034         2006-04-05  Bruno Haible  <bruno@clisp.org>
63035
63036                 * config.charset: Update Juan Manuel Guerrero's address.
63037
63038         2005-02-12  Bruno Haible  <bruno@clisp.org>
63039
63040                 * allocsa.h: Add extern "C" for C++.
63041
63042         2005-02-10  Bruno Haible  <bruno@clisp.org>
63043
63044                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
63045                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
63046
63047         2006-07-22  Bruno Haible  <bruno@clisp.org>
63048
63049                 * gettext.h: Update to GNU gettext-0.15.
63050
63051 2006-07-22  Bruno Haible  <bruno@clisp.org>
63052
63053         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63054         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63055         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63056
63057 2006-07-21  Eric Blake  <ebb9@byu.net>
63058
63059         * modules/stdlib-safer: New file.
63060         * MODULES.html.sh (File stream based Input/Output): Add
63061         stdlib-safer.
63062
63063 2006-07-21  Eric Blake  <ebb9@byu.net>
63064
63065         * lib/stdlib-safer.h: New file from coreutils, required by
63066         stdlib--.h.
63067
63068 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
63069
63070         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
63071
63072 2006-07-20  Bruno Haible  <bruno@clisp.org>
63073
63074         * gnulib-tool: Recognize new option --assume-autoconf.
63075         (autoconf_minversion): New variable.
63076         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
63077
63078 2006-07-20  Bruno Haible  <bruno@clisp.org>
63079
63080         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
63081
63082 2006-07-19  Derek R. Price  <derek@ximbiot.com>
63083
63084         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
63085         Reindent and repaginate.
63086
63087 2006-07-19  Derek Price  <derek@ximbiot.com>
63088
63089         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63090         Correct grammar.
63091
63092 2006-07-17  Bruno Haible  <bruno@clisp.org>
63093
63094         * modules/list: New file.
63095         * modules/array-list: New file.
63096         * modules/carray-list, modules/carray-list-tests: New files.
63097         * modules/linked-list, modules/linked-list-tests: New files.
63098         * modules/avltree-list, modules/avltree-list-tests: New files.
63099         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63100         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63101         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63102         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63103         * modules/oset: New file.
63104         * modules/array-oset: New file.
63105         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63106         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63107         * tests/test-carray_list.c: New file.
63108         * tests/test-linked_list.c: New file.
63109         * tests/test-avltree_list.c: New file.
63110         * tests/test-rbtree_list.c: New file.
63111         * tests/test-linkedhash_list.c: New file.
63112         * tests/test-avltreehash_list.c: New file.
63113         * tests/test-rbtreehash_list.c: New file.
63114         * tests/test-avltree_oset.c: New file.
63115         * tests/test-rbtree_oset.c: New file.
63116         * MODULES.html.sh (Container data structures): New section.
63117
63118 2006-07-17  Bruno Haible  <bruno@clisp.org>
63119
63120         * m4/gl_list.m4: New file.
63121
63122 2006-07-17  Bruno Haible  <bruno@clisp.org>
63123
63124         * lib/gl_list.h: New file.
63125         * lib/gl_list.c: New file.
63126         * lib/gl_array_list.h: New file.
63127         * lib/gl_array_list.c: New file.
63128         * lib/gl_carray_list.h: New file.
63129         * lib/gl_carray_list.c: New file.
63130         * lib/gl_linked_list.h: New file.
63131         * lib/gl_linked_list.c: New file.
63132         * lib/gl_anylinked_list1.h: New file.
63133         * lib/gl_anylinked_list2.h: New file.
63134         * lib/gl_avltree_list.h: New file.
63135         * lib/gl_avltree_list.c: New file.
63136         * lib/gl_anyavltree_list1.h: New file.
63137         * lib/gl_anyavltree_list2.h: New file.
63138         * lib/gl_rbtree_list.h: New file.
63139         * lib/gl_rbtree_list.c: New file.
63140         * lib/gl_anyrbtree_list1.h: New file.
63141         * lib/gl_anyrbtree_list2.h: New file.
63142         * lib/gl_anytree_list1.h: New file.
63143         * lib/gl_anytree_list2.h: New file.
63144         * lib/gl_linkedhash_list.h: New file.
63145         * lib/gl_linkedhash_list.c: New file.
63146         * lib/gl_anyhash_list1.h: New file.
63147         * lib/gl_anyhash_list2.h: New file.
63148         * lib/gl_avltreehash_list.h: New file.
63149         * lib/gl_avltreehash_list.c: New file.
63150         * lib/gl_rbtreehash_list.h: New file.
63151         * lib/gl_rbtreehash_list.c: New file.
63152         * lib/gl_anytreehash_list1.h: New file.
63153         * lib/gl_anytreehash_list2.h: New file.
63154
63155         * lib/gl_oset.h: New file.
63156         * lib/gl_oset.c: New file.
63157         * lib/gl_array_oset.h: New file.
63158         * lib/gl_array_oset.c: New file.
63159         * lib/gl_avltree_oset.h: New file.
63160         * lib/gl_avltree_oset.c: New file.
63161         * lib/gl_rbtree_oset.h: New file.
63162         * lib/gl_rbtree_oset.c: New file.
63163         * lib/gl_anytree_oset.h: New file.
63164
63165 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63166
63167         * m4/mkancesdirs.m4: New file.
63168         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63169         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63170         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63171         it.
63172
63173 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63174
63175         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63176         * lib/mkancesdirs.h: New files.
63177         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63178         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63179         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63180         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63181         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63182         callers changed.  Revamp internals significantly, by not
63183         attempting to create directories that are temporarily more
63184         permissive than the final results.  Do not attempt to use
63185         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63186         This removes some race conditions, fixes some bugs, and simplifies
63187         things.  Use new dirchownmod function to do owner and mode changes.
63188         * lib/mkdir-p.h: Likewise.
63189         * lib/modechange.c (octal_to_mode): New function.
63190         (struct mode_change): New member mentioned.
63191         (make_node_op_equals): New arg mentioned.  All callers changed.
63192         (mode_compile): Keep track of which mode bits the user has explicitly
63193         mentioned.
63194         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63195         New arg PMODE_BITS, to keep track of which mode bits the user
63196         mentioned; it treats S_ISUID and S_ISGID speciall.
63197         All callers changed.
63198         * lib/modechange.h: Likewise.
63199
63200 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63201
63202         * MODULES.html.sh: Add mkancestors.
63203         * modules/mkancesdirs: New module.
63204         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63205         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63206         The chdir-safer and afs files are now orphans; I'll remove them
63207         unless someone speaks up.
63208         Add lib/dirchownmod.c, lib/dirchownmod.h.
63209         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63210         Add lchown, mkancesdirs.
63211         (Maintainer): Add self.
63212
63213 2006-07-15  Karl Berry  <karl@gnu.org>
63214
63215         * gnulib-tool: help message wording/arrangement.
63216
63217 2006-07-14  Simon Josefsson  <jas@extundo.com>
63218
63219         * doc/gnulib.texi (Libtool and Windows): New section.
63220
63221 2006-07-12  Simon Josefsson  <jas@extundo.com>
63222
63223         * modules/gendocs (License): Fix license, approved by Karl.
63224
63225 2006-07-12  Eric Blake  <ebb9@byu.net>
63226
63227         * MODULES.html.sh: Add gendocs.
63228
63229 2006-07-11  Eric Blake  <ebb9@byu.net>
63230
63231         * modules/fdl: New module, to install doc/fdl.texi.
63232         * MODULES.html.sh: Add new section for documentation modules.
63233         * gnulib-tool: Avoid space-tab.
63234         (--doc-base): New option, to manage files from doc.
63235
63236 2006-07-11  Eric Blake  <ebb9@byu.net>
63237
63238         * m4/absolute-header.m4: Fix comments to match recent change.
63239
63240 2006-07-11  Eric Blake  <ebb9@byu.net>
63241
63242         * gnulib-tool: List --doc-base before --tests-base.
63243
63244 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63245
63246         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63247
63248 2006-07-11  Bruno Haible  <bruno@clisp.org>
63249
63250         * README: Mention where to put documentation.
63251
63252 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63253
63254         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63255
63256 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63257
63258         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63259         to stdint.m4.
63260
63261 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63262
63263         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63264         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63265         "no/such/file/stdint.h" when there is no such file, so that
63266         the resulting C code can be parsed by dodgy compilers.
63267         Problems reported by Bob Proulx.
63268
63269 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63270
63271         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63272         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63273         macros into the GNU _D_EXACT_NAMLEN.
63274         * lib/savedir.c:  Likewise.
63275         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63276
63277 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63278         and Paul Eggert  <eggert@cs.ucla.edu>
63279
63280         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63281         * m4/savedir.m4:
63282         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63283         macros into the GNU _D_EXACT_NAMLEN.
63284
63285 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63286
63287         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63288         around the absolute name, to work around a problem with the HP-UX
63289         11.23 native C compiler, reported by Bob Proulx.
63290
63291 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63292
63293         * doc/maintain.texi, make-stds.texi: Sync from
63294         <http://savannah.gnu.org/projects/gnustandards>.
63295
63296 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63297
63298         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63299
63300 2006-07-09  Jim Meyering  <jim@meyering.net>
63301
63302         * m4/glob.m4: Remove a doubled word in a comment.
63303
63304 2006-07-09  Jim Meyering  <jim@meyering.net>
63305
63306         * lib/argp-pv.c: Remove a doubled word in a comment.
63307         * lib/check-version.c (check_version): Likewise.
63308         * lib/javacomp.c (compile_java_class): Likewise.
63309
63310 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63311
63312         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63313         for the benefit of people using Autoconf 2.60.  If you want to
63314         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63315         (or m4/onceonly.m4, if pre-2.57) manually.
63316
63317 2006-07-08  Jim Meyering  <jim@meyering.net>
63318
63319         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63320         comment.
63321         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63322         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63323         comment.
63324
63325 2006-07-08  Jim Meyering  <jim@meyering.net>
63326
63327         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63328
63329 2006-07-07  Simon Josefsson  <jas@extundo.com>
63330
63331         * tests/test-crc.c: Change expected crc value, the test vector
63332         were probably computed using the old broken crc.c?
63333
63334 2006-07-06  Simon Josefsson  <jas@extundo.com>
63335
63336         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63337         now the canonical place for the M4 file).
63338
63339         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63340         from the sys_socket dependency now.
63341
63342         * modules/inet_pton (Files): Ditto.
63343
63344         * modules/inet_ntop (Files): Ditto.
63345
63346 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63347
63348         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63349         not gl_PREREQ_GETUSERSHELL.
63350
63351 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63352
63353         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63354         with only one argument, for Autoconf 2.60.
63355         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63356         expand to nothing, so add a shell command to avoid syntax error.
63357         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63358
63359 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63360
63361         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63362
63363 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63364
63365         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63366         no longer needed.  Check for isblank decl.
63367         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63368         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63369         of existence.
63370
63371 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63372
63373         * lib/getloadavg.c: Use __VMS, not VMS.
63374         * lib/getopt.c: Likewise.
63375         * lib/getpagesize.h: Likewise.
63376         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63377         and probably does not work.
63378
63379 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63380
63381         * lib/.cppi-disable: Add wcwidth.
63382         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63383         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63384         (ISGRAPH): Remove.  All uses changed to isgraph.
63385         (FOLD) [!defined _LIBC]: Remove special case.
63386         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63387         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63388         HAVE_ISBLANK.
63389         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63390         case.
63391
63392 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63393
63394         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63395         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63396         brackets.  Other minor changes to suppress some compiler
63397         warnings.
63398
63399 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63400         and Paul Eggert  <eggert@cs.ucla.edu>
63401
63402         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63403         of invoking obsolescent AC_HEADER_DIRENT macro.
63404         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63405         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63406         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63407         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63408         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63409         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63410         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63411         * m4/readdir.m4: Remove; no longer needed.
63412
63413 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63414         and Paul Eggert  <eggert@cs.ucla.edu>
63415
63416         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63417         Don't worry about this obsolete case any more.
63418         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63419         directories.
63420         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63421         worry about this obsolete case any more.
63422         * lib/fts.c: Likewise.
63423         * lib/getcwd.c: Likewise.
63424         * lib/glob.h: Likewise.
63425         * lib/savedir.c: Likewise.
63426
63427 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63428
63429         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63430         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63431         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63432         needed.
63433         All uses removed.
63434         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63435         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63436         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63437         needed.
63438         * m4/getdate.m4 (gl_GETDATE): Likewise.
63439         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63440         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63441         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63442         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63443         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63444         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63445         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63446         needed.
63447
63448 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63449
63450         * lib/memcasecmp.c: Include <limits.h>.
63451         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63452         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63453         Don't assume isdigit succeeds only on '0' through '9'.
63454
63455 2006-07-05  Eric Blake  <ebb9@byu.net>
63456
63457         * modules/getaddrinfo (Depends-on): Add snprintf.
63458
63459 2006-07-05  Eric Blake  <ebb9@byu.net>
63460
63461         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63462         to avoid 'header present but could not be compiled' on cygwin.
63463
63464 2006-07-05  Eric Blake  <ebb9@byu.net>
63465
63466         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63467         missing from netdb.h.
63468         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63469
63470 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63471
63472         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63473         no longer needed.
63474         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63475         * m4/getdate.m4 (gl_GETDATE): Likewise.
63476         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63477         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63478         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63479         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63480         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63481
63482 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63483
63484         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63485         All uses of is_space replaced by isspace.
63486         * lib/exit.h: Don't talk about STDC_HEADERS.
63487         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63488         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63489         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63490         replaced by isprint etc.
63491         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63492         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63493         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63494         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63495         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63496         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63497
63498 2006-07-05  Bruno Haible  <bruno@clisp.org>
63499
63500         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63501         the function exists, before testing against AIX.
63502         Reported by Martin Lambers <marlam@marlam.de>.
63503
63504 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63505
63506         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63507         From Mark D. Baushke.
63508
63509 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63510
63511         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63512         to the absolute name, not just one, to bypass Sun C 5.8's
63513         "warning: #include of /usr/include/... may be non-portable".
63514
63515 2006-07-04  Eric Blake  <ebb9@byu.net>
63516
63517         * modules/dirname-tests: New test module.
63518         * tests/test-dirname.c: New file, replacing dirname.c
63519         TEST_DIRNAME section that was recently deleted.
63520
63521 2006-07-04  Bruno Haible  <bruno@clisp.org>
63522
63523         Assume ANSI C header files and <ctype.h> functions.
63524         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63525         (mbsnwidth): Use isprint, iscntrl instead.
63526
63527 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63528
63529         Merge from coreutils.
63530         * MODULES.html.sh: Add xstrtold.
63531         * modules/xstrtold: New file.
63532         * modules/cycle-check (Files): Add lib/same-inode.h.
63533         * modules/dirname (Files): Add m4/double-slash-root.m4.
63534         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63535         * modules/mkdir-p (Files): Add lib/same-inode.h.
63536         * modules/same (Files): Add lib/same-inode.h.
63537
63538 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63539
63540         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63541         This is to keep the terminology clean; POSIX talks about
63542         "absolute pathnames", not "full pathnames", but the GNU
63543         Coding Standards say to use "path" for something else;
63544         so use "absolute" to keep both sides happy.
63545         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63546         Set gl_absolute_header, not gl_full_header_path.
63547         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63548         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63549         All uses changed.
63550
63551         Merge from coreutils.
63552
63553         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63554
63555         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63556         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63557         want to require the building of c-strtod.o.
63558         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63559         needs -lm directly.
63560         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63561
63562         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63563
63564         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63565         --as-needed option if available.  Problem reported by Albert Chin in
63566         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63567         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63568         cc merely issues a bunch of annoying warnings for --as-needed
63569         (this problem was reported by Bob Proulx).  Also, try linking with
63570         -lm to detect a bug in binutils 2.16 (this problem was reported
63571         by Ralf Wildenhues).
63572
63573         2006-06-18  Jim Meyering  <jim@meyering.net>
63574
63575         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63576         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63577         macro.
63578         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63579         also check for glibc-2.4's abort-inducing bug.
63580
63581         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63582         Low-probability clean-up should be to use rmdir to get rid of
63583         the just-created directory, not unlink.
63584
63585         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63586         configure fail, and request a bug report to inform us about it.
63587         Add a comment that, barring reports to the contrary, in 2007 we'll
63588         assume ftruncate is universally available.
63589
63590         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63591
63592         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63593
63594         2006-03-12  Jim Meyering  <jim@meyering.net>
63595
63596         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63597         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63598         * m4/same.m4 (gl_SAME): Likewise.
63599         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63600
63601         2006-03-11  Eric Blake  <ebb9@byu.net>
63602
63603         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63604         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63605         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63606         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63607
63608 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63609
63610         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63611         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63612         reported by Mark D. Baushke, one in
63613         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63614
63615         Merge from coreutils.
63616
63617         * lib/.cppi-disable: Add stdint_.h.
63618         * lib/.cvsignore: Add stdint.h.
63619
63620         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63621
63622         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63623         both double and long double versions.
63624         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63625         * lib/xstrtold.c: New file.
63626         * lib/xstrtod.h (xstrtold): New decl.
63627
63628         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63629
63630         * lib/filemode.c (setst): Remove.
63631         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63632         (arguably) clearer, and the generated code is a bit smaller on my
63633         Debian GNU/Linux stable x86 host.
63634
63635         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63636
63637         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63638         Assume that filemode.h includes sys/types.h and sys/stat.h.
63639         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63640         (ftypelet): Reorder to put common cases first, for efficiency.
63641         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63642         to do 'M'.
63643         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63644         of 10, for compatibility with FreeBSD.  All callers changed.
63645         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63646         types that can't be deduced solely from st_mode.  First arg is now a
63647         const pointer.
63648         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63649         (strmode): Renamed from mode_string.
63650         (filemodestring): New decl.
63651         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63652         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63653         needed.
63654         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63655
63656         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63657
63658         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63659         fsusage.h now does that.  Include fsusage.h first, to test interface.
63660         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63661         at most one method (the old code could have generated decls that
63662         didn't conform to C89, not that this was ever exercised).
63663         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63664
63665         2006-03-19  Jim Meyering  <jim@meyering.net>
63666
63667         Work even in a chroot where d_ino values for entries in "/"
63668         don't match the stat.st_ino values for the same names.
63669         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63670         number, iterate through all entries again, using lstat instead.
63671         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63672         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63673
63674         * lib/getcwd.c (__getcwd): Clarify a comment.
63675         Use memcpy in place of a call to strcpy.
63676
63677         2006-03-12  Jim Meyering  <jim@meyering.net>
63678
63679         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63680         matches that of the current directory (which we're about to chdir ".."
63681         out of), then save the dev-ino of the parent, instead.
63682
63683         * lib/same-inode.h (SAME_INODE): New file/macro.
63684         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63685         Include "same-inode.h", instead.
63686         * lib/same.c: Likewise.
63687         * lib/cycle-check.h: Include "same-inode.h".
63688         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63689         * lib/cycle-check.c (SAME_INODE): Remove definition.
63690         * lib/root-dev-ino.h: Include "same-inode.h".
63691
63692         2006-03-11  Eric Blake  <ebb9@byu.net>
63693
63694         * lib/same.c (same_name): s/base_name/last_component/
63695         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63696         * lib/filenamecat.c (file_name_concat): Likewise.
63697
63698         2006-03-11  Eric Blake  <ebb9@byu.net>,
63699                     Paul Eggert  <eggert@cs.ucla.edu>
63700
63701         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63702         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63703         drive prefix.
63704         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63705         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63706         (last_component): New method.
63707         * lib/dirname.c (dir_len): Determine when drive letters need a
63708         subsequent slash.  Preserve // when it is special.
63709         (dir_name): Don't append dot when drive letter is absolute.
63710         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63711         * lib/basename.c (base_name): New semantics - malloc the result.
63712         Preserve // when it is special.  Preserve relative files that look
63713         like drive letters.
63714         (base_len): Preserve // when it is special.
63715         (last_component): New method, similar to old base_name semantics.
63716         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63717         base_name.  Strip redundant slashes from ///.
63718
63719 2006-07-03  Jim Meyering  <jim@meyering.net>
63720
63721         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63722         macro is used before the first cycle_check call.
63723
63724 2006-07-03  Eric Blake  <ebb9@byu.net>
63725
63726         * modules/dirname (Depends-on): Add xstrndup.
63727
63728 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63729
63730         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63731         test cases, so that config.log is a bit easier to follow.
63732
63733 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63734
63735         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63736         both are 64 bits, since this seems to be the tradition, and this
63737         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63738         we ever run into a host that prefers long long to long in this
63739         case, we'll need another configure-time test.  Problem reported by
63740         Jim Meyering.
63741
63742 2006-07-02  Eric Blake  <ebb9@byu.net>
63743
63744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63745
63746 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63747
63748         * modules/inttypes (Depends-on): No longer depends on stdint.
63749         * modules/stdint (Description): Say more about assumptions.
63750         Say that the fast types might differ.  Say macros are used.
63751         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63752         (Makefile.am): Revise list of substituted symbols to match
63753         new stdint.m4.
63754         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63755         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63756         * tests/test-stdint.c (verify_same_types)
63757         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63758         the code conforms to C99/C89.
63759         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
63760         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
63761
63762 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63763
63764         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
63765         but fix a bug, by requiring at least 64 bits.
63766         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63767         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
63768         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
63769         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63770
63771         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
63772         changes.  Make 2.59 a prerequisite.  Check and substitute for
63773         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
63774         inttypes.h.  Do not use special include files; just use the
63775         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
63776         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
63777         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
63778         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
63779         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
63780         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
63781         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
63782         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
63783         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
63784         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
63785         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
63786         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
63787         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
63788         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
63789         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
63790         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
63791         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
63792         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
63793         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
63794         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
63795         WINT_MAX.  Check for C99 conformance more strictly, by detecting
63796         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
63797         not check for things that C99 does not require, e.g., int8_t.  If
63798         a test isn't needed unless <stdint.h> isn't working, and is
63799         unlikely to be needed for any other reason, then don't do it
63800         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
63801         size_t, since we assume C89 freestanding at least.  Do not check
63802         for sig_atomic_t, wchar_t, or wint_t, since the code now does
63803         the right thing even if the types are not defined.  Instead use:
63804         (gl_STDINT_TYPE_PROPERTIES): New macro.
63805         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
63806         testing whether <sys/types.h> clashes, as Autoconf does this for
63807         us now.  All uses removed.
63808         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
63809         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
63810         (gl_CHECK_TYPE_SAME):
63811         Remove; no longer needed.
63812         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
63813         exists, since we'll return 0 anyway in that case.
63814         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
63815
63816 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63817
63818         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
63819         possible collision with system files.
63820         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
63821         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
63822         WCHAR_MIN and WCHAR_MAX in this case.
63823         (<stddef.h>): Do not include; no longer needed.
63824         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
63825         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
63826         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
63827         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
63828         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
63829         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
63830         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
63831         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
63832         !defined(__c99))]: Include in this case too, since it's harmless
63833         now.
63834         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
63835         dangerous to do so.
63836         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
63837         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
63838         (_STDINT_MIN, _STDINT_MAX): New macros.
63839         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
63840         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
63841         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
63842         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
63843         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
63844         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
63845         macros, not typedefs; this simplifies things quite a bit.
63846         Use long int for all types narrower than int64_t.
63847         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
63848         Define in terms of long long int or int64_t or long int,
63849         not int64_t or int32_t.  This saves some compile-time testing.
63850         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
63851         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
63852         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
63853         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
63854         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
63855         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
63856         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
63857         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
63858         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
63859         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
63860         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63861         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63862         undef any previous version and define our own version, for
63863         simplicity and consistency with the new macros for types.
63864         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63865         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63866         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
63867         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
63868         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
63869         @WINT_T_SUFFIX@ to keep things simple here.
63870         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
63871         Simplify by assuming typical 8/16/32/64 host, since we're
63872         already doing that elsewhere anyway.
63873         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
63874         and assume long long int is 64 bits if available.  This
63875         speeds up 'configure'.
63876
63877 2006-07-01  Eric Blake  <ebb9@byu.net>
63878
63879         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
63880         Reported by Andreas Buening.
63881
63882 2006-07-01  Eric Blake  <ebb9@byu.net>
63883
63884         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
63885
63886 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63887
63888         * lib/getaddrinfo.c: fixed typo
63889
63890 2006-06-29  Jim Meyering  <jim@meyering.net>
63891
63892         * modules/strftime (Maintainer): Add my name, since with the
63893         FPRINTFTIME changes strftime.c has forked from glibc.
63894
63895 2006-06-29  Eric Blake  <ebb9@byu.net>
63896
63897         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
63898
63899 2006-06-29  Eric Blake  <ebb9@byu.net>
63900
63901         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
63902
63903 2006-06-29  Eric Blake  <ebb9@byu.net>
63904
63905         * lib/stat_.h: New file.
63906
63907 2006-06-29  Eric Blake  <ebb9@byu.net>
63908
63909         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
63910         unused static function.
63911
63912 2006-06-29  Eric Blake  <ebb9@byu.net>
63913
63914         * doc/functions.texi (Function Portability): Document missing lstat
63915         on mingw.
63916
63917 2006-06-29  Eric Blake  <ebb9@byu.net>
63918
63919         * MODULES.html.sh: Add sys_stat.
63920         * modules/sys_stat: New module.
63921         * modules/mkstemp (Depends-on): Add sys_stat.
63922
63923 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63924
63925         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
63926
63927 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63928
63929         * m4/c-bs-a.m4: Removed.
63930
63931 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63932
63933         * lib/strftime.c: Assume strftime() exists.
63934
63935 2006-06-29  Derek Price  <derek@ximbiot.com>
63936
63937         * modules/c-bs-a: Removed - \a is C89.
63938         * MODULES.html.sh: Remove c-bs-a.
63939
63940 2006-06-29  Bruno Haible  <bruno@clisp.org>
63941
63942         * modules/wcwidth (License): Change to LGPL.
63943
63944 2006-06-28  Simon Josefsson  <jas@extundo.com>
63945
63946         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
63947         on _WIN32.
63948
63949         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
63950         getnameinfo.
63951
63952 2006-06-28  Simon Josefsson  <jas@extundo.com>
63953
63954         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63955
63956 2006-06-28  Simon Josefsson  <jas@extundo.com>
63957
63958         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63959         functions there.  It will succeed on Windows XP, but on Windows
63960         2000 and (presumably) earlier, it will fail, and use the internal
63961         re-implementation.
63962         (use_win32_p): New function.
63963         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63964         Support AI_NUMERICSERV to disable getservbyname.
63965         (getnameinfo): New function, only supports
63966         NI_NUMERICHOST|NI_NUMERICSERV for now.
63967
63968         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63969         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63970         getnameinfo.
63971
63972 2006-06-28  Eric Blake  <ebb9@byu.net>
63973
63974         * modules/wcwidth: New file.
63975         * modules/mbchar (Depends-on): Add wcwidth.
63976         * modules/mbswidth (Depends-on): Add wcwidth.
63977         * MODULES.html.sh: Add wcwidth.
63978
63979 2006-06-28  Eric Blake  <ebb9@byu.net>
63980
63981         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63982         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63983
63984 2006-06-28  Eric Blake  <ebb9@byu.net>
63985
63986         * lib/xvasprintf.h: Fix comments.
63987
63988 2006-06-28  Eric Blake  <ebb9@byu.net>
63989
63990         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63991         * lib/mbswidth.c (wcwidth): Move from here...
63992         * lib/wcwidth.h: ...to this new file.
63993
63994 2006-06-28  Derek R. Price  <derek@ximbiot.com>
63995
63996         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
63997
63998         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
63999         it's obsolete.
64000         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
64001
64002 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64003
64004         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
64005         Autoconf 2.60 says this stuff was obsolete.
64006
64007 2006-06-28  Bruno Haible  <bruno@clisp.org>
64008
64009         * modules/wcwidth (Files): Add m4/wchar_t.m4.
64010
64011 2006-06-28  Bruno Haible  <bruno@clisp.org>
64012
64013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
64014         gt_TYPE_WCHAR_T.
64015
64016 2006-06-28  Bruno Haible  <bruno@clisp.org>
64017
64018         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
64019         declaration for wcwidth.
64020         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
64021
64022 2006-06-28  Bruno Haible  <bruno@clisp.org>
64023
64024         * lib/mkdtemp.c [MINGW]: Include <io.h>.
64025         (mkdir): Define using _mkdir.
64026
64027 2006-06-28  Bruno Haible  <bruno@clisp.org>
64028
64029         * lib/getaddrinfo.h: Fix POSIX URL.
64030         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
64031         _WIN32.
64032         (use_win32_p): Make static.
64033         (getaddrinfo): Reject service name if it is empty or does not consist
64034         solely of decimal digits, or if its value is > 65535.
64035         (getnameinfo): Remove useless casts.
64036
64037 2006-06-27  Simon Josefsson  <jas@extundo.com>
64038
64039         * modules/sys_select: New file, suggested by Bruno Haible, Paul
64040         Eggert and Martin Lambers.
64041
64042 2006-06-27  Simon Josefsson  <jas@extundo.com>
64043
64044         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
64045         Eggert and Martin Lambers.
64046
64047 2006-06-27  Bruno Haible  <bruno@clisp.org>
64048
64049         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64050         result to 0, not to empty.
64051         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64052
64053 2006-06-27  Bruno Haible  <bruno@clisp.org>
64054
64055         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64056
64057 2006-06-26  Simon Josefsson  <jas@extundo.com>
64058
64059         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
64060         present.
64061
64062 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
64063
64064         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
64065         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
64066         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
64067
64068 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
64069
64070         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
64071
64072 2006-06-26  Bruno Haible  <bruno@clisp.org>
64073
64074         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
64075
64076 2006-06-26  Bruno Haible  <bruno@clisp.org>
64077
64078         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
64079
64080 2006-06-26  Bruno Haible  <bruno@clisp.org>
64081
64082         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
64083         SGI C compiler in pre-C99 mode.
64084         Suggested by Mark D. Baushke and Larry Jones.
64085
64086 2006-06-26  Bruno Haible  <bruno@clisp.org>
64087
64088         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64089         WCHAR_MAX.
64090         Reported by Mark D. Baushke and Larry Jones.
64091
64092 2006-06-26  Bruno Haible  <bruno@clisp.org>
64093
64094         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64095         in pre-C99 mode.
64096         Suggested by Mark D. Baushke and Larry Jones.
64097
64098 2006-06-23  Simon Josefsson  <jas@extundo.com>
64099             Bruno Haible  <bruno@clisp.org>
64100
64101         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64102         Emit mostlyclean-local rule.
64103         (func_emit_tests_Makefile_am): Likewise.
64104         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64105
64106 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64107
64108         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64109
64110 2006-06-23  Bruno Haible  <bruno@clisp.org>
64111
64112         * tests/test-stdint.c: Update to match ISO C 99 Technical
64113         Corrigendum 1.
64114
64115 2006-06-23  Bruno Haible  <bruno@clisp.org>
64116
64117         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64118
64119 2006-06-23  Bruno Haible  <bruno@clisp.org>
64120
64121         * lib/stdint_.h: Treat IRIX like OpenBSD.
64122
64123 2006-06-23  Bruno Haible  <bruno@clisp.org>
64124
64125         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64126         ISO C 99 Technical Corrigendum 1.
64127
64128 2006-06-22  Simon Josefsson  <jas@extundo.com>
64129
64130         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64131         MinGW.
64132
64133 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64134
64135         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64136         needed.  Some compiler complained about some of them.  Problem reported
64137         by Larry Jones in
64138         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64139
64140 2006-06-21  Simon Josefsson  <jas@extundo.com>
64141
64142         * tests/test-getaddrinfo.c: New file.
64143
64144         * modules/getaddrinfo-tests: New file.
64145
64146         * MODULES.html.sh: Add inet_pton.
64147
64148         * modules/inet_pton: New file.
64149
64150 2006-06-21  Simon Josefsson  <jas@extundo.com>
64151
64152         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64153         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64154         of using the (limited) gnulib implementation on Windows XP.
64155
64156         * m4/inet_pton.m4: New file.
64157
64158 2006-06-21  Simon Josefsson  <jas@extundo.com>
64159
64160         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64161         variable.
64162
64163         * lib/socket_.h: Don't define WINVER.
64164
64165         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64166         slightly modified to work in gnulib.
64167
64168 2006-06-21  Simon Josefsson  <jas@extundo.com>
64169
64170         * doc/gnulib.texi (Windows sockets): Add.
64171
64172 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64173
64174         * lib/read-file.c (fread_file): Start with buffer allocation of
64175         0 bytes rather than 1 byte; this simplifies the code.
64176         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64177         code to free buffer and save/restore errno.
64178         (internal_read_file): Remove unused local.
64179
64180 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64181
64182         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64183         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64184         Problem reported by Denis Excoffier in
64185         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64186
64187 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64188
64189         * modules/sys_socket, modules/socklen: Include sys/types since
64190         FreeBSD 4.x's sys/socket.h needs it.
64191
64192 2006-06-19  Simon Josefsson  <jas@extundo.com>
64193
64194         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64195
64196 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64197
64198         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64199
64200 2006-06-19  Bruno Haible  <bruno@clisp.org>
64201
64202         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64203         and FULL_PATH_INTTYPES_H in angle brackets.
64204         Reported by Mark D. Baushke <mdb@gnu.org>.
64205
64206 2006-06-17  Eric Blake  <ebb9@byu.net>
64207
64208         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64209         errno.
64210
64211 2006-06-17  Bruno Haible  <bruno@clisp.org>
64212
64213         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64214         <sys/inttypes.h>.
64215
64216 2006-06-17  Bruno Haible  <bruno@clisp.org>
64217
64218         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64219         whether errno is declared. Assume <errno.h> declares errno.
64220
64221 2006-06-17  Bruno Haible  <bruno@clisp.org>
64222
64223         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64224
64225 2006-06-17  Bruno Haible  <bruno@clisp.org>
64226
64227         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64228         problem on Solaris 2.5.1.
64229
64230 2006-06-16  Eric Blake  <ebb9@byu.net>
64231
64232         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64233         * lib/unicodeio.c [!defined errno]: Likewise.
64234         * lib/strtol.c [!defined errno]: Likewise.
64235         * lib/strtod.c [!defined errno]: Likewise.
64236
64237 2006-06-15  Eric Blake  <ebb9@byu.net>
64238
64239         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64240
64241 2006-06-15  Eric Blake  <ebb9@byu.net>
64242
64243         * config/srclist.txt (ssize_t.m4): Lose sync.
64244
64245 2006-06-15  Bruno Haible  <bruno@clisp.org>
64246
64247         * modules/stdint (Files): Include m4/full-header-path.m4,
64248         m4/size_max.m4, m4/wchar_t.m4.
64249         (Makefile.am): Many more substitutions.
64250         * modules/stdint-tests: New file.
64251         * tests/test-stdint.c: New file.
64252
64253 2006-06-15  Bruno Haible  <bruno@clisp.org>
64254
64255         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64256         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64257         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64258         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64259         gl_CHECK_TYPE_SAME): New macros.
64260
64261 2006-06-15  Bruno Haible  <bruno@clisp.org>
64262
64263         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64264
64265 2006-06-15  Bruno Haible  <bruno@clisp.org>
64266
64267         * lib/stdint_.h: Rewritten to be fully auto-configured.
64268         Fixes bug on HP-UX/IA64.
64269
64270 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64271
64272         * lib/getdate.y (__attribute__): Don't define if already defined.
64273         Problem reported by Larry Jones.
64274         * lib/utimens.c (__attribute__): Likewise.
64275
64276 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64277
64278         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64279         reported by Andreas Schwab.
64280
64281 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64282             Bruno Haible  <bruno@clisp.org>
64283
64284         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64285         check for the declaration of strnlen and a run test that exposes the
64286         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64287         rpl_strndup.
64288
64289 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64290             Bruno Haible  <bruno@clisp.org>
64291
64292         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64293
64294 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64295
64296         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64297         compile test, for Tru64 4.0D.
64298
64299 2006-05-28  Karl Berry  <karl@gnu.org>
64300
64301         * config/srclist.txt (printf-args.c): lose sync.
64302
64303 2006-05-26  Martin Lambers  <marlam@marlam.de>
64304
64305         * lib/getpass.c: Updates the test for the native W32 API, and adds
64306         missing includes, thus fixing compilation warnings.
64307
64308 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64309
64310         * lib/exclude.c (exclude_fnmatch): New function.
64311         (excluded_file_name): Call exclude_fnmatch.
64312         * lib/exclude.h (excluded_file_name): New prototype
64313
64314 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64315
64316         * lib/tempname.c (small_open, large_open): New macros.
64317         (__open, __open64) [!_LIBC]: Remove.
64318         (__gen_tempname): Use small_open and large_open instead of __open
64319         and __open64.  This fixes a portability bug on HP-UX 11.11i
64320         reported by Simon Wing-Tang in
64321         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64322
64323 2006-05-24  Bruno Haible  <bruno@clisp.org>
64324
64325         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64326         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64327         Reported by Thorsten Maerz <torte@netztorte.de> via
64328         Aaron Stone <aaron@serendipity.cx>.
64329
64330 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64333         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64334         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64335         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64336         not really conditional on the cache.
64337         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64338
64339 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64340
64341         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64342         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64343         (my_usleep): Don't mishandle maximum value.
64344
64345 2006-05-19  Jim Meyering  <jim@meyering.net>
64346
64347         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64348
64349 2006-05-17  Bruno Haible  <bruno@clisp.org>
64350
64351         Cygwin portability.
64352         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64353
64354 2006-05-17  Bruno Haible  <bruno@clisp.org>
64355
64356         * lib/stdint_.h: Fix recognition of Cygwin.
64357
64358 2006-05-15  Bruno Haible  <bruno@clisp.org>
64359
64360         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64361         on libtool patch by Ralf Wildenhues.
64362
64363 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64364
64365         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64366         test for C99 conformance; (bool) 0.5 is an integer constant
64367         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64368         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64369
64370 2006-05-11  Simon Josefsson  <jas@extundo.com>
64371
64372         * m4/xvasprintf.m4: Fix obvious typo.
64373
64374 2006-05-11  Jim Meyering  <jim@meyering.net>
64375
64376         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64377         James Lemley.
64378
64379 2006-05-10  Simon Josefsson  <jas@extundo.com>
64380
64381         * lib/md4.c: Typo fix, update copyright years.
64382         (K1, K2): Don't use L because it turn computations into 64-bit on
64383         64-bit platforms.
64384
64385 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64386
64387         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64388         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64389         unwanted sign propagation, e.g., on hosts with 64-bit int.
64390         There still are some problems with reeelly weird theoretical hosts
64391         (e.g., 33-bit int) but it's not worth worrying about now.
64392         * lib/sha1.c (rol): Likewise.
64393         (K1, K2, K3, K4): Remove unnecessary L suffix.
64394
64395 2006-05-10  Bruno Haible  <bruno@clisp.org>
64396
64397         * lib/des.c: Cast to avoid warnings.
64398
64399 2006-05-09  Bruno Haible  <bruno@clisp.org>
64400
64401         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64402         (Depends-on): Depend also on xsize, stdarg.
64403         (configure.ac): Add gl_XVASPRINTF.
64404
64405 2006-05-09  Bruno Haible  <bruno@clisp.org>
64406
64407         * m4/xvasprintf.m4: New file.
64408
64409 2006-05-09  Bruno Haible  <bruno@clisp.org>
64410
64411         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64412         (EOVERFLOW): Define fallback value.
64413         (xstrcat): New function.
64414         (xvasprintf): Recognize the special case of a string concatenation.
64415
64416 2006-05-08  Eric Blake  <ebb9@byu.net>
64417
64418         * gnulib-tool (func_version): Base copyright year on CVS date.
64419         (func_emit_copyright_notice): New function.
64420         (func_emit_lib_Makefile_am): Use it.
64421         (func_emit_tests_Makefile_am): Likewise.
64422         (func_import): Likewise.
64423
64424 2006-05-08  Bruno Haible  <bruno@clisp.org>
64425
64426         * modules/stdarg: New file.
64427         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64428
64429 2006-05-08  Bruno Haible  <bruno@clisp.org>
64430
64431         * m4/stdarg.m4: New file, from GNU gettext.
64432
64433 2006-05-08  Bruno Haible  <bruno@clisp.org>
64434
64435         * config/srclist.txt (build-aux/config.rpath): different from latest
64436         release.
64437
64438 2006-05-08  Bruno Haible  <bruno@clisp.org>
64439
64440         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64441
64442 2006-05-05  Jim Meyering  <jim@meyering.net>
64443
64444         * m4/warning.m4: New file, derived from bison's file by the same name.
64445
64446 2006-05-03  Bruno Haible  <bruno@clisp.org>
64447
64448         * lib/stdint_.h: Shorter URL.
64449         * lib/inttypes.h: Likewise.
64450
64451 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64452
64453         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64454
64455 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64456
64457         * lib/verify.h: Document the internals better.  Most of this change
64458         was written by Bruno Haible.
64459
64460 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64461
64462         * doc/verify.texi: New file, partly based on a proposal by
64463         Bruno Haible.
64464
64465 2006-05-02  Bruno Haible  <bruno@clisp.org>
64466
64467         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64468         test from here...
64469         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64470
64471 2006-04-29  Bruno Haible  <bruno@clisp.org>
64472
64473         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64474         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64475
64476 2006-04-29  Bruno Haible  <bruno@clisp.org>
64477
64478         * gnulib-tool: Make --update option actually work.
64479
64480 2006-04-29  Bruno Haible  <bruno@clisp.org>
64481
64482         * doc/gcd.texi: New file.
64483         * doc/gnulib.texi: Include it.
64484
64485 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64486
64487         * lib/getdate.y (get_date): When adding relative date, start with the
64488         initial time, not with the result of the first mktime call.
64489
64490 2006-04-25  Bruno Haible  <bruno@clisp.org>
64491
64492         * gnulib-tool (func_import): Output the include directives in three
64493         blocks, sorted separately.
64494         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64495
64496 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64497
64498         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64499         to define main with arguments, for C++.  Reported by Eric Blake.
64500         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64501         Prefer 'int main ()' to 'int main (void)', for C++.
64502         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64503         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64504         for 'main', for C99 and C++.
64505
64506 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64507
64508         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64509         Don't assume that exit status -1 is valid.
64510         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64511         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64512         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64513         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64514         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64515         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64516         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64517         functions can be used without declaring them, or that you can
64518         exit with status -1.
64519         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64520
64521 2006-04-24  Karl Berry  <karl@gnu.org>
64522
64523         * config/srclist.txt (longdouble.m4): sync lost.
64524
64525 2006-04-24  Eric Blake  <ebb9@byu.net>
64526
64527         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64528
64529 2006-04-24  Bruno Haible  <bruno@clisp.org>
64530
64531         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64532         poll() implementation in AIX.
64533         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64534
64535 2006-04-24  Bruno Haible  <bruno@clisp.org>
64536
64537         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64538         assigned exactly once.
64539
64540 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64541             Bruno Haible  <bruno@clisp.org>
64542
64543         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64544         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64545         for AM_CPPFLAGS.
64546
64547 2006-04-23  Bruno Haible  <bruno@clisp.org>
64548
64549         * modules/copy-file: Depend on unistd.
64550         * modules/execute: Likewise.
64551         * modules/fatal-signal: Likewise.
64552         * modules/findprog: Likewise.
64553         * modules/mkdtemp : Likewise.
64554         * modules/pipe: Likewise.
64555         * modules/wait-process: Likewise.
64556
64557 2006-04-23  Bruno Haible  <bruno@clisp.org>
64558
64559         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64560         condition was already detected.
64561         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64562
64563 2006-04-23  Bruno Haible  <bruno@clisp.org>
64564
64565         * lib/copy-file.c: Include <unistd.h> unconditionally.
64566         * lib/execute.c: Likewise.
64567         * lib/fatal-signal.c: Likewise.
64568         * lib/findprog.c: Likewise.
64569         * lib/mkdtemp.c: Likewise.
64570         * lib/pipe.h: Likewise.
64571         * lib/pipe.c: Likewise.
64572         * lib/wait-process.h: Likewise.
64573
64574 2006-04-23  Bruno Haible  <bruno@clisp.org>
64575
64576         * gnulib-tool (func_usage): Fix --import description. Document
64577         --update.
64578         (func_import): Create temporary file in a temporary directory, if
64579         --dry-run is specified. Silence errors from 'grep' when there are no
64580         m4 files in $m4dir.
64581         (func_create_testdir): Silence errors from 'grep' when there are no
64582         m4 files in $m4dir.
64583         Reported by Karl Berry <karl@freefriends.org>.
64584
64585 2006-04-20  Bruno Haible  <bruno@clisp.org>
64586
64587         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64588         one argument, so that the code will be portable to Autoconf 2.60.
64589         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64590         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64591         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64592
64593 2006-04-19  Derek Price  <derek@ximbiot.com>
64594             Eric Blake  <ebb9@byu.net>
64595
64596         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64597         rather than "/full/path.h".  Update comment to match.  Shorten &
64598         generalize m4_translit call via AS_TR_CPP.
64599
64600 2006-04-19  Derek Price  <derek@ximbiot.com>
64601             Eric Blake  <ebb9@byu.net>
64602
64603         * lib/inttypes.h: Correct grammar in comment.
64604
64605 2006-04-18  Derek Price  <derek@ximbiot.com>
64606             Paul Eggert  <eggert@cs.ucla.edu>
64607
64608         * modules/inttypes: New file.
64609         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64610
64611 2006-04-18  Derek Price  <derek@ximbiot.com>
64612             Paul Eggert  <eggert@cs.ucla.edu>
64613
64614         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64615         New files.
64616
64617 2006-04-18  Derek Price  <derek@ximbiot.com>
64618             Paul Eggert  <eggert@cs.ucla.edu>
64619
64620         * lib/inttypes.h: New file.
64621         * lib/strtoimax.c: Assume <inttypes.h>.
64622
64623 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64624
64625         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64626         isn't mounted.  Problem reported by Kir Kolyshkin.
64627
64628 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64629
64630         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64631         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64632         Derek R. Price.
64633         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64634         implementation.
64635
64636 2006-04-12  Eric Blake  <ebb9@byu.net>
64637
64638         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64639         is now done automatically by the corresponding Autoconf macro.
64640
64641 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64642
64643         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64644         time_r.h.
64645
64646 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64647
64648         Merge regex changes from libc, removing some of our
64649         POSIX-conformance changes that were rejected and redoing them in a
64650         less-intrusive way.
64651
64652         * lib/regcomp.c (re_compile_internal, init_dfa):
64653         Length arg is now size_t, not Idx.  All uses changed.
64654         (peek_token): Forward decl now says internal_function.
64655         (__re_error_msgid, __re_error_msgid_idx):
64656         Now static rather than extern with attribute_hidden.
64657         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64658         For some reason libc prefers K&R style defns for external functions.
64659         (regerror) [!defined _LIBC]: Likewise.
64660         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64661         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64662         (build_range_exp, build_collating_symbol):
64663         Use K&R-style defn.
64664         (re_compile_fastmap): Use '\0' to memset, not 0.
64665         (utf8_sb_map): Make the calculations more obvious.
64666         (init_dfa, parse_bracket_exp, build_charclass_op):
64667         Call calloc and cast result, as glibc does.
64668         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64669         (build_range_exp, build_collating_symbol):
64670         Now internal functions.
64671
64672         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64673
64674         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64675         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64676         Don't depend on VMS; depend on __VMS instead, for POSIX
64677         namespace cleanness.
64678         (regoff_t): Define to ssize_t, not long int.
64679
64680         Remove the REG_ macros named below.  Instead, make the old names
64681         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64682         __USE_GNU_REGEX.
64683         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64684         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64685         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64686         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64687         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64688         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64689         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64690         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64691         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64692         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64693         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64694         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64695         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64696         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64697         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64698         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64699         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64700         (REG_NREGS):
64701         Remove.  All uses replaced by the old RE_* names.
64702         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64703         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64704         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64705         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64706         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64707         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64708         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64709         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64710         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64711         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64712         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64713         Don't bother having these macros be independent of each others'
64714         values, since they no longer exist in the POSIX name space.
64715
64716         Rename the following member names back to their old names,
64717         unless !__USE_GNU_REGEX.  All uses changed back.
64718         (buffer): Renamed from re_buffer.
64719         (allocated): Renamed from re_allocated.
64720         (used): Renamed from re_used.
64721         (syntax): Renamed from re_syntax.
64722         (fastmap): Renamed from re_fastmap.
64723         (translate): Renamed from re_translate.
64724         (can_be_null): Renamed from re_can_be_null.
64725         (regs_allocated): Renamed from re_regs_allocated.
64726         (fastmap_accurate): Renamed from re_fastmap_accurate.
64727         (no_sub): Renamed from re_no_sub.
64728         (not_bol): Renamed from re_not_bol.
64729         (not_eol): Renamed from re_not_eol.
64730         (newline_anchor): Renamed from re_newline_anchor.
64731         (num_regs): Renamed from rm_num_regs.
64732         (start): Renamed from rm_start.
64733         (end): Renamed from rm_end.
64734
64735         (free_state): Move up a bit.
64736
64737         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64738         #define to be empty.
64739         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64740         when that is what is intended.
64741         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64742         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64743         (MAX): New macro.
64744         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64745         All uses changed back to re_malloc, etc.  It's now the caller's
64746         responsibility to check for overflow; all callers changed.
64747         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64748         (re_x2nrealloc): Remove.
64749         (free_state): Remove decl.
64750
64751         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64752         (re_set_registers, re_exec):
64753         Use K&R-style defn.
64754
64755         2006-01-31  Roland McGrath  <roland@redhat.com>
64756
64757         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64758         Reported by Mike Frysinger <vapier@gentoo.org>.
64759
64760         2006-01-15  Andreas Jaeger  <aj@suse.de>
64761
64762         [BZ #1950]
64763         * lib/regex_internal.c (re_string_reconstruct): Adjust for
64764         build_wcs_upper_buffer change.
64765         (build_wcs_upper_buffer): Change return type.
64766
64767         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
64768
64769         * lib/regex_internal.h: Include <stdint.h> if available.
64770
64771         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
64772
64773         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
64774
64775         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64776
64777         * lib/regcomp.c: Adjust for changed secondary hash function.
64778
64779         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
64780
64781         * lib/regex.h: Pretty printing.
64782         Clean up namespace a bit.
64783
64784         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
64785
64786         * lib/regexec.c (update_cur_sifted_state, check_arrival,
64787         check_arrival_add_next_nodes): Avoid using uninitialized variable.
64788
64789         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64790                     Ulrich Drepper  <drepper@redhat.com>
64791
64792         [BZ #1302]
64793         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
64794         changed.
64795         (bitset_word_t): Renamed from bitset_word.  All uses changed.
64796
64797         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
64798
64799         [BZ #281]
64800         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
64801         * lib/regcomp.c: Remove unnecessary uses of
64802         unsigned RE_TRANSLATE_TYPE.
64803         * lib/regex_internal.h: Likewise.
64804         * lib/regex_internal.c: Likewise.
64805         * lib/regexec.c: Likewise.
64806         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
64807
64808         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
64809
64810         * lib/regexec.c (find_recover_state): Remove unnecessary
64811         initialization.
64812         (transit_state_bkref): Make DFA a const pointer.
64813         (get_subexp): Likewise.
64814         (check_arrival): Likewise.
64815         (update_cur_sifted_state): Likewise.
64816         (re_search_internal): Likewise.
64817         (prune_impossible_nodes): Likewise.
64818         (acquire_init_state_context): Likewise.
64819         (proceed_next_node): Likewise.
64820         (set_regs): Likewise.
64821         (free_fail_stack_return): Likewise.
64822         (check_arrival_expand_ecl): Mark DFA parameter as const.
64823         (check_arrival_expand_ecl_sub): Likewise.
64824         (check_subexp_limits): Likewise.
64825         (sub_epsilon_src_nodes):  Likewise.
64826         (add_epsilon_src_nodes):  Likewise.
64827         (merge_state_array): Likewise.
64828         (update_regs): Likewise.
64829         (build_trtable): Likewise.
64830         (sift_states_backward): Mark MCTX parameter as const.
64831         (build_sifted_states): Likewise.
64832         (update_cur_sifted_state): Likewise.
64833         (sift_states_mkref): Likewise.
64834         (check_arrival_expand_ecl): Mark eclosure as const.
64835         (check_dst_limits_calc_pos_1): Likewise.
64836         * lib/regex_internal.h (re_match_context_t): Make dfa a const
64837         pointer.
64838
64839         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
64840
64841         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
64842         (transit_state_sb): Likewise.
64843         (transit_state_mb): Likewise.
64844         (sift_states_iter_mb): Likewise.
64845         (check_arrival_add_next_nodes): Likewise.
64846         (check_node_accept_bytes): Change first parameter to pointer-to-const.
64847         [_LIBC] (re_search_2_stub): Use mempcpy.
64848
64849         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
64850         mbrtowc for very simple UTF-8 case.
64851
64852         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
64853         a pointer-to-const.
64854         (re_acquire_state_context): Likewise.
64855         * lib/regex_internal.h: Adjust prototypes.
64856
64857         * lib/regex.c: Prevent using C++ compilers.
64858
64859         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
64860         (re_acquire_state_context): Likewise.
64861
64862 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64863
64864         * modules/regex (Depends-on): Add ssize_t.
64865
64866 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64867
64868         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
64869         translation table.
64870
64871 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64872
64873         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
64874
64875 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
64876             Bruno Haible  <bruno@clisp.org>
64877
64878         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
64879         <sys/types.h> and <inttypes.h>.
64880
64881 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64882
64883         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
64884         `__error_t_defined', so argp.h will not typedef the former.
64885
64886 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64887
64888         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
64889         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
64890         glibc names.  Even if glibc is changed to conform to POSIX, the
64891         traditional names will be available anyway, since regex depends on
64892         the extensions module.  Also, fix a longstanding typo in the
64893         implementation of Spencer ERE test #75 from grep 2.3.  Problems
64894         reported by Emanuele Giaquinta.  Also, change sense of cached
64895         variable, so that the message makes sense.
64896
64897 2006-03-24  Simon Josefsson  <jas@extundo.com>
64898
64899         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
64900         including some doc fixes.
64901         (base64_encode_alloc): Fix +1 bug on allocation failures.
64902
64903 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64904
64905         * lib/base64.c (base64_encode): Do not read past end of array with
64906         unsanitized input on systems with CHAR_BIT > 8.
64907
64908 2006-03-24  Eric Blake  <ebb9@byu.net>
64909
64910         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
64911
64912 2006-03-22  Karl Berry  <karl@gnu.org>
64913
64914         * config/srclist.txt (*setenv.[ch]): get from coreutils.
64915         * config/srclistvars.sh (COREUTILS): new var.
64916
64917 2006-03-17  Jim Meyering  <jim@meyering.net>
64918
64919         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
64920         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
64921
64922 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
64925         no longer needs it.  Instead, check that regoff_t is as least
64926         as wide as ptrdiff_t.
64927
64928         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
64929         so that our regex.h stays compatible with the installed regex.
64930         This is helpful for installers who configure --without-included-regex.
64931         Problem reported by Emanuele Giaquinta.
64932
64933 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64934
64935         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
64936         Typedef to long int, not to off_, as POSIX will likely change
64937         in that direction.
64938
64939 2006-03-15  Eric Blake  <ebb9@byu.net>
64940
64941         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
64942
64943 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64944
64945         * lib/argp-help.c (validate_uparams): Fix typo
64946         * lib/argp-parse.c (argp_default_options): Consistently begin help
64947         messages with a lowercase letter.
64948
64949 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
64950
64951         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
64952         overrun buffers and shouldn't be used (much as gets shouldn't be
64953         used).
64954         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64955
64956 2006-03-08  Simon Josefsson  <jas@extundo.com>
64957
64958         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64959         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64960
64961 2006-03-08  Simon Josefsson  <jas@extundo.com>
64962
64963         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64964         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64965
64966 2006-03-08  Simon Josefsson  <jas@extundo.com>
64967
64968         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64969         signal that configure disabled the device.
64970
64971 2006-03-08  Simon Josefsson  <jas@extundo.com>
64972
64973         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64974         languages.
64975
64976 2006-03-07  Simon Josefsson  <jas@extundo.com>
64977
64978         * modules/getopt (Depends-on): Add unistd.
64979
64980         * modules/unistd: New file.
64981
64982 2006-03-07  Simon Josefsson  <jas@extundo.com>
64983
64984         * modules/gc-random: New file.
64985
64986 2006-03-07  Simon Josefsson  <jas@extundo.com>
64987
64988         * m4/unistd_h.m4: New file.
64989
64990 2006-03-07  Simon Josefsson  <jas@extundo.com>
64991
64992         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64993         test to be side-effect free by storing the result in the cache
64994         variable gl_cv_lib_readline, and moving the assignment of
64995         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
64996         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64997
64998 2006-03-07  Simon Josefsson  <jas@extundo.com>
64999
65000         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
65001         error on missing devices (the functions will return an error).
65002
65003         * m4/gc.m4: Move random stuff to gc-random.m4
65004
65005 2006-03-07  Simon Josefsson  <jas@extundo.com>
65006
65007         * lib/unistd_.h: New file.
65008
65009 2006-03-07  Simon Josefsson  <jas@extundo.com>
65010
65011         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
65012
65013 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65014
65015         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
65016         Problem reported by Juan Manuel Guerrero.
65017
65018 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65019
65020         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
65021         the unistd module.
65022         * lib/getlogin_r.c: Likewise.
65023         * lib/getlogin_r.h: Likewise.
65024         * lib/glob.c: Likewise.
65025         * lib/pagealign_alloc.c: Likewise.
65026         * lib/unistd_.h: Remove; no longer needed.
65027
65028 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65029
65030         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65031         Add unistd.
65032         * modules/c-stack (Depends-on): Add unistd.
65033         * modules/getlogin_r: Likewise.
65034         * modules/glob: Likewise.
65035         * modules/pagealign_alloc: Likewise.
65036         * modules/unistd (Files): Remove lib/unistd_.h.
65037         (EXTRA_DIST): Remove.
65038         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
65039         need unistd_.h.
65040         (MOSTLYCLEANFILES): Remove unistd.h-t.
65041
65042 2006-03-03  Simon Josefsson  <jas@extundo.com>
65043
65044         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
65045
65046 2006-03-03  Simon Josefsson  <jas@extundo.com>
65047
65048         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
65049         libidn and bison.
65050
65051 2006-03-03  Simon Josefsson  <jas@extundo.com>
65052
65053         * build-aux/maint.mk: Add indent target.
65054
65055 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65056
65057         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
65058         our replacement poll.h in any case, to avoid a differing
65059         declaration from a system header.  Seen on AIX.
65060
65061 2006-03-01  Simon Josefsson  <jas@extundo.com>
65062
65063         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
65064         <kasal@ucw.cz>.
65065
65066 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65067
65068         * modules/gettime (Depends-on): Add extensions module.
65069         * modules/nanosleep (Depends-on): Likewise.
65070         * modules/settime (Depends-on): Likewise.
65071
65072 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65073
65074         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
65075         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
65076         pedantically.
65077         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65078         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
65079
65080         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
65081         not "==".  Reported by Ralf Wildenhues.
65082
65083 2006-03-01  Karl Berry  <karl@gnu.org>
65084
65085         * doc/Copyright/request-*: new files, synced from gnuorg.
65086
65087 2006-03-01  Karl Berry  <karl@gnu.org>
65088
65089         * config/srclist.txt (Copyright/*): new entries.
65090
65091 2006-02-28  Simon Josefsson  <jas@extundo.com>
65092
65093         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65094
65095 2006-02-27  Simon Josefsson  <jas@extundo.com>
65096
65097         * lib/base64.h: Indent #define's.  From Jim Meyering
65098         <jim@meyering.net>.
65099
65100 2006-02-27  Jim Meyering  <jim@meyering.net>
65101
65102         Revert the change of 2006-02-24, so these files can continue
65103         to be sync'd from gettext.
65104         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65105         of `config.h'.
65106
65107 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65108
65109         * modules/intprops: New file.
65110         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65111         Add intprops.
65112         * modules/getloadavg (Files): Remove lib/intprops.h.
65113         (Depends-on): Add intprops.
65114         * modules/human: Likewise.
65115         * modules/inttostr: Likewise.
65116         * modules/openat: Likewise.
65117         * modules/sig2str: Likewise.
65118         * modules/userspec: Likewise.
65119         * modules/utimecmp: Likewise.
65120         * modules/xnanosleep: Likewise.
65121         * modules/xstrtol: Likewise.
65122
65123 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65124
65125         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65126         * modules/lock-tests (TESTS): Use $(EXEEXT).
65127         * modules/tls-tests: Likewise.
65128         * modules/argp-tests: Likewise.
65129         (check_PROGRAMS): New var, replacing...
65130         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65131
65132 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65133
65134         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65135         `config.h'.
65136
65137 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65138
65139         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65140
65141 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65142
65143         Sync from coreutils.
65144         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65145         gl_CHDIR_SAFER.
65146
65147 2006-02-22  Jim Meyering  <jim@meyering.net>
65148
65149         Sync from coreutils.
65150         * m4/chdir-safer.m4: New file.
65151
65152 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65153
65154         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65155         AT_FDCWD exceeds INT_MAX.
65156         * lib/openat.h (AT_FDCWD): Likewise.
65157
65158 2006-02-17  Eric Blake  <address@hidden>
65159
65160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65161
65162 2006-02-16  Simon Josefsson  <jas@extundo.com>
65163
65164         * modules/getaddrinfo (Depends-on): Add sys_socket.
65165
65166 2006-02-15  Simon Josefsson  <jas@extundo.com>
65167
65168         * build-aux/maint.mk: Add dsyntax-check rule.
65169
65170 2006-02-15  Eric Blake  <ebb9@byu.net>
65171
65172         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65173         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65174         'present but cannot compile' warnings on cygwin.
65175         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65176         use ws2tcpip.h if sys/socket.h works.
65177         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65178         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65179
65180 2006-02-14  Simon Josefsson  <jas@extundo.com>
65181
65182         * modules/maintainer-makefile (Files): Rename.
65183
65184         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65185         and (the local) Makefile.cfg to maint-cfg.mk.
65186
65187         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65188         to the latter.
65189
65190         * modules/maintainer-makefile: New module.
65191
65192         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65193         severaly stripped to make it possible to build it up from scratch
65194         with reliable tests.
65195
65196         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65197         fixes to permit overriding the default actions when configure and
65198         makefile are not available.
65199
65200 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65201
65202         Sync from coreutils.
65203         * modules/lstat (Depends-on): Don't depend on xalloc.
65204         (License): Change from GPL to LGPL, since this is now simply a
65205         replacement for a libc function.
65206
65207 2006-02-14  Jim Meyering  <jim@meyering.net>
65208
65209         Sync from coreutils.
65210
65211         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65212         failure on deficient systems, and simplify gnulib lgpl dependencies.
65213         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65214         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65215
65216         * lib/xalloc-die.c: Remove unused definition of N_.
65217
65218 2006-02-14  Jim Meyering  <jim@meyering.net>
65219
65220         Sync from coreutils.
65221         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65222         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65223         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65224         double-quote uses of that variable, to accommodate the rare case in
65225         which getmntent is available in none of the libraries checked.  This
65226         happens at least on FreeBSD 5.0.
65227
65228 2006-02-13  Simon Josefsson  <jas@extundo.com>
65229
65230         * gnulib-tool (Usage): Fix --import, from
65231         karl@freefriends.org (Karl Berry).
65232
65233 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65234
65235         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65236
65237 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65238
65239         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65240         "autoupdate" on 2005-12-12.
65241
65242 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65243
65244         * modules/closeout (Depends-on): Remove atexit.
65245
65246 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65247
65248         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65249         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65250
65251 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65252
65253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65254         __EXTENSIONS__ if this causes compilation to fail.  Problem
65255         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65256         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65257
65258 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65259
65260         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65261         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65262         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65263         All uses changed.
65264
65265 2006-01-26  Simon Josefsson  <jas@extundo.com>
65266
65267         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65268         prototype is visible on mingw32.
65269
65270         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65271         for mingw32.
65272
65273         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65274         mingw32).
65275
65276 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65277
65278         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65279         attempt to open for write; this always fails, at least on POSIX
65280         hosts.  This reinstates the 2006-01-09 change, which was
65281         inadvertently removed.
65282
65283 2006-01-26  Bruno Haible  <bruno@clisp.org>
65284
65285         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65286         Reported by Paul Eggert.
65287
65288 2006-01-26  Bruno Haible  <bruno@clisp.org>
65289             Paul Eggert  <eggert@cs.ucla.edu>
65290
65291         * lib/stdbool_.h (_Bool)
65292         [(! (defined __cplusplus || defined __BEOS__)
65293           && !defined __GNUC__
65294           && !(defined __HP_cc || defined __xlc__
65295                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65296                || defined __sgi))]:
65297         #define to signed char in these cases too; this simplifies
65298         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65299         etc., separately) and makes it more conservative.
65300
65301 2006-01-25  Simon Josefsson  <jas@extundo.com>
65302
65303         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65304         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65305         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65306
65307 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65308
65309         * lib/argp-namefrob.h: Bugfix. Remove stray #
65310
65311 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65312
65313         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65314         so that we test the test.
65315         Check for yet another HP-UX cc bug involving *bool |= bool.
65316
65317 2006-01-25  Karl Berry  <karl@gnu.org>
65318
65319         * config/srclist.txt (vasnprintf.c): sync lost.
65320
65321 2006-01-25  Jim Meyering  <jim@meyering.net>
65322
65323         Sync from the stable (b5) branch of coreutils:
65324
65325         * lib/fts.c (fts_children): Don't let close() clobber errno from
65326         failed fchdir().
65327
65328         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65329         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65330         a dangling symlink.  That can also happen at least for ELOOP.
65331         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65332         FYI, this bug predates the inclusion of fts.c in coreutils.
65333
65334         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65335         in their own block, so pre-c99 compilers don't object.
65336
65337         Avoid the double-free (first in fts_read, second in fts_close) that
65338         would occur when an `active' directory is made inaccessible (e.g.,
65339         via chmod a-x) during a traversal.
65340         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65341         before returning.  Reproduce this failure by
65342         mkdir -p a/b; cd a; chmod a-x . b
65343         Reported by Stavros Passas.
65344
65345 2006-01-25  Jim Meyering  <jim@meyering.net>
65346
65347         * lib/fileblocks.c: Remove more useless parentheses.
65348         * lib/readutmp.h: Likewise.
65349
65350 2006-01-25  Bruno Haible  <bruno@clisp.org>
65351
65352         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65353         warnings.
65354         Reported by Paul Eggert.
65355
65356 2006-01-25  Bruno Haible  <bruno@clisp.org>
65357
65358         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65359         rid of a trap command. For Solaris sh.
65360         Reported by Mark D. Baushke <mdb@gnu.org>.
65361
65362 2006-01-24  Simon Josefsson  <jas@extundo.com>
65363
65364         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65365         Bruno.
65366
65367 2006-01-24  Karl Berry  <karl@gnu.org>
65368
65369         * config/srclist.txt (argp-namefrob.h): sync lost.
65370
65371 2006-01-24  Jim Meyering  <jim@meyering.net>
65372
65373         * modules/openat (Files): Add lib/intprops.h.
65374         From Mark D. Baushke.
65375
65376 2006-01-24  Jim Meyering  <jim@meyering.net>
65377
65378         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65379         Reported by Mark D. Baushke.
65380
65381 2006-01-24  Jim Meyering  <jim@meyering.net>
65382
65383         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65384
65385 2006-01-24  Bruno Haible  <bruno@clisp.org>
65386
65387         * modules/strnlen (Maintainer): Change from glibc to all.
65388
65389 2006-01-24  Bruno Haible  <bruno@clisp.org>
65390
65391         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65392         Patch by Paul Eggert.
65393
65394 2006-01-24  Bruno Haible  <bruno@clisp.org>
65395
65396         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65397         already has it.
65398         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65399         2005-11-26.
65400
65401         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65402         'signed char' to avoid problems with the built-in _Bool type.
65403         Reported by Paul Eggert on 2005-11-26.
65404
65405 2006-01-24  Bruno Haible  <bruno@clisp.org>
65406
65407         * gnulib-tool (func_import): Avoid constructing complicated sed
65408         expressions inside backquote.
65409         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65410
65411 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65412
65413         These changes imported from libc.
65414         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65415         test and two separate function calls.
65416         * lib/strndup.c (__strndup): Add libc_hidden_def.
65417
65418 2006-01-23  Simon Josefsson  <jas@extundo.com>
65419
65420         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65421         Remove the test_*_SOURCES variable: automake infers it by default.
65422         * modules/tls-tests: Likewise.
65423
65424 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         Work around porting bugs reported by Dieter in
65427         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65428         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65429         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65430         Include "getopt.h" first, to check interface.
65431         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65432         !HAVE_DECL_GETENV.
65433         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65434         (__strndup): Revert to K&R-style function dfns, the glibc style.
65435         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65436         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65437         Include strnlen.h first, to get prototype properly.
65438         (strnlen): Renamed from __strnlen.
65439         Remove weak alias.
65440
65441 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65442
65443         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65444
65445 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65446
65447         * config/srclist.txt: Adjust to reflect glibc reorganization.
65448         This affects only comments.
65449
65450 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65451
65452          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65453          Reported by Bruce Korb <bkorb@gnu.org>.
65454
65455 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65456
65457         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65458         to pacify gcc -Wswitch-default.
65459
65460 2006-01-22  Bruno Haible  <bruno@clisp.org>
65461
65462         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65463         temporary buffer for sprintf, take into account the precision also
65464         for 'd', 'i', 'u', 'o', 'x', 'X'.
65465
65466 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65467
65468         * modules/argp-tests: New module
65469         * tests/test-argp.c: New file
65470         * tests/test-argp-2.sh: New file
65471
65472 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65473
65474         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65475         (__argp_base_name): Removed
65476         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65477         typo.
65478         (__argp_base_name): Provide macro definition or extern declaration
65479         depending on the configuration
65480
65481 2006-01-20  Simon Josefsson  <jas@extundo.com>
65482
65483         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65484
65485 2006-01-20  Simon Josefsson  <jas@extundo.com>
65486
65487         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65488
65489 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65490
65491         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65492         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65493         Suggested by Bruno Haible.
65494
65495 2006-01-20  Karl Berry  <karl@gnu.org>
65496
65497         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65498         until changes propagate, I guess.
65499
65500 2006-01-19  Simon Josefsson  <jas@extundo.com>
65501
65502         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65503
65504 2006-01-19  Simon Josefsson  <jas@extundo.com>
65505
65506         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65507
65508 2006-01-19  Simon Josefsson  <jas@extundo.com>
65509
65510         * gnulib-tool: Set check_PROGRAMS.
65511
65512         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65513         modules/des-tests, modules/gc-arcfour-tests,
65514         modules/gc-arctwo-tests, modules/gc-des-tests,
65515         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65516         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65517         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65518         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65519         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65520         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65521         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65522         test_*_SOURCES.
65523
65524 2006-01-18  Simon Josefsson  <jas@extundo.com>
65525
65526         * modules/socklen (Depends-on): Depend on sys_socket.
65527
65528 2006-01-18  Simon Josefsson  <jas@extundo.com>
65529
65530         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65531         modules/des-tests, modules/gc-arcfour-tests,
65532         modules/gc-arctwo-tests, modules/gc-des-tests,
65533         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65534         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65535         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65536         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65537         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65538         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65539         $(EXEEXT) to automake TESTS variable, for mingw32.
65540
65541 2006-01-17  Simon Josefsson  <jas@extundo.com>
65542
65543         * modules/socklen (Include): Need sys/socket.h.
65544
65545 2006-01-17  Bruno Haible  <bruno@clisp.org>
65546
65547         * modules/ssize_t (Include): Add <sys/types.h>.
65548
65549 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65550
65551         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65552         it's not portable and it doesn't work with cross-compiles.
65553         Problem reported by Bruno Haible.  Fix missing-$ typo in
65554         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65555         -zignore from being used with Sun's C compiler.
65556
65557 2006-01-12  Simon Josefsson  <jas@extundo.com>
65558
65559         * lib/base64.c: Fix warning, reported by Bruno Haible
65560         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65561
65562 2006-01-12  Bruno Haible  <bruno@clisp.org>
65563
65564         * modules/ldd: New file.
65565         * build-aux/ldd.sh.in: New file.
65566         * MODULES.html.sh (Support for building libraries and executables): Add
65567         ldd.
65568
65569 2006-01-12  Bruno Haible  <bruno@clisp.org>
65570
65571         * m4/ldd.m4: New file.
65572
65573 2006-01-12  Bruno Haible  <bruno@clisp.org>
65574
65575         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65576         endless loop while replacing $auxdir with build-aux.
65577
65578 2006-01-11  Simon Josefsson  <jas@extundo.com>
65579
65580         * lib/stdint_.h (SIZE_MAX): Add missing (.
65581
65582 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65583
65584         Sync from coreutils.
65585         * lib/md5.c: Fix commentary typos.
65586         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65587         * lib/md5.h (__attribute__): Remove; unused.
65588         * lib/sha1.c: Fix commentary to match md5 better.
65589         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65590         so that we don't need to worry about alignment.  All uses changed.
65591         This merges the 2005-10-28 md5 change into sha1.
65592
65593 2006-01-11  Jim Meyering  <jim@meyering.net>
65594
65595         Sync from coreutils.
65596         * lib/md5.c (OP): Fix spacing.
65597
65598 2006-01-11  Bruno Haible  <bruno@clisp.org>
65599
65600         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65601         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65602         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65603
65604 2006-01-11  Bruno Haible  <bruno@clisp.org>
65605
65606         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65607         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65608         the "early" section as well.
65609
65610 2006-01-11  Bruno Haible  <bruno@clisp.org>
65611
65612         Avoid "ar: no archive members specified" error on MacOS X.
65613         * gnulib-tool (func_modules_add_dummy): New function.
65614         (func_import, func_create_testdir): Invoke it.
65615
65616 2006-01-11  Bruno Haible  <bruno@clisp.org>
65617
65618         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65619         with $auxdir in AC_CONFIG_FILES statements.
65620
65621 2006-01-11  Bruno Haible  <bruno@clisp.org>
65622
65623         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65624         Initialize also noinst_HEADERS to empty.
65625
65626 2006-01-11  Bruno Haible  <bruno@clisp.org>
65627
65628         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65629         variables.
65630         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65631         autoreconf.
65632
65633 2006-01-11  Bruno Haible  <bruno@clisp.org>
65634
65635         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65636         overridable by the user.
65637         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65638
65639 2006-01-10  Simon Josefsson  <jas@extundo.com>
65640
65641         * modules/sys_socket: New file.
65642
65643 2006-01-10  Simon Josefsson  <jas@extundo.com>
65644
65645         * m4/sys_socket_h.m4: New file.
65646
65647 2006-01-10  Simon Josefsson  <jas@extundo.com>
65648
65649         * lib/socket_.h: New file.
65650
65651 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65652
65653         * modules/readutmp (Maintainer): Add myself.
65654
65655 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65658         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65659         People who are still concerned with buggy memcmp implementations
65660         can invoke gl_FUNC_MEMCMP themselves.
65661
65662 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65663
65664         * lib/regex_internal.h (BITSET_WORD_BITS):
65665         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65666         preprocessor mishandles large unsigned values as if they were signed.
65667         Problem reported by Claudio Fontana in
65668         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65669
65670 2006-01-10  Jim Meyering  <jim@meyering.net>
65671
65672         Avoid the double-free (first in fts_read, second in fts_close) that
65673         would occur when an `active' directory is made inaccessible (e.g.,
65674         via chmod a-x) during a traversal.
65675         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65676         before returning.  Reproduce this failure by
65677         mkdir -p a/b; cd a; chmod a-x . b
65678         Reported by Stavros Passas.
65679
65680         Sync from coreutils.
65681         * lib/sha1.c: Tweak grammar in a comment.
65682
65683 2006-01-10  Jim Meyering  <jim@meyering.net>
65684
65685         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65686         Patch by Joerg Sonnenberger.
65687
65688 2006-01-10  Bruno Haible  <bruno@clisp.org>
65689
65690         * modules/readutmp: Depend on module free.
65691         * modules/strtok_r: Depend on module restrict.
65692
65693 2006-01-10  Bruno Haible  <bruno@clisp.org>
65694
65695         * modules/gettext (configure.ac): Add an invocation of
65696         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65697
65698 2006-01-10  Bruno Haible  <bruno@clisp.org>
65699
65700         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65701         Reported by Werner Lemberg <wl@gnu.org>.
65702
65703 2006-01-10  Bruno Haible  <bruno@clisp.org>
65704
65705         * lib/localcharset.c: Update from GNU gettext.
65706
65707 2006-01-10  Bruno Haible  <bruno@clisp.org>
65708
65709         * lib/argp.h (__const): Remove macro. Use const instead.
65710         * lib/argp-fmtstream.h (__const): Likewise.
65711         * lib/glob_.h (__const): Remove macro.
65712         * lib/glob-libc.h: Use const instead of __const.
65713
65714 2006-01-10  Bruno Haible  <bruno@clisp.org>
65715
65716         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65717         variable.
65718         Needed to avoid an automake error regarding the 'gettext' module.
65719
65720 2006-01-09  Simon Josefsson  <jas@extundo.com>
65721
65722         * modules/inet_ntop (Depends-on): Add restrict.
65723
65724 2006-01-09  Simon Josefsson  <jas@extundo.com>
65725
65726         * modules/gc-rijndael-tests (License): Put under LGPL.
65727
65728         * modules/gc-des-tests (License): Likewise.
65729
65730         * modules/gc-arcfour-tests (License): Likewise.
65731
65732         * modules/gc-arctwo-tests (License): Likewise.
65733
65734         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65735
65736         * modules/gc-hmac-sha1-tests (Files): Likewise.
65737
65738         * modules/gc-hmac-md5-tests (License): Likewise.
65739
65740         * modules/gc-sha1-tests (License): Likewise.
65741
65742         * modules/gc-md5-tests (License): Likewise.
65743
65744         * modules/gc-md4-tests (License): Likewise.
65745
65746         * modules/gc-md2-tests (License): Likewise.
65747
65748         * modules/gc-tests (License): Likewise.
65749
65750         * modules/des-tests (License): Likewise.
65751
65752         * modules/md4-tests (License): Likewise.
65753
65754         * modules/md2-tests (License): Likewise.
65755
65756 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65757
65758         Sync from coreutils:
65759
65760         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
65761         * modules/lib-ignore: New file.
65762         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
65763         chdir-safer.m4, lchmod.m4.
65764         * modules/openat: Add mkdirat.c, openat-priv.h.
65765
65766 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65767
65768         Sync from coreutils.
65769         * m4/lib-ignore.m4: New file.
65770         * m4/lchmod.m4: New file.
65771
65772 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         Sync from coreutils.
65775         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
65776         for write access: POSIX says that must fail.
65777         * lib/fts.c (diropen): Likewise.
65778         * lib/save-cwd.c (save_cwd): Likewise.
65779         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
65780         well, for minor improvements on hosts that lack O_DIRECTORY.
65781         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
65782         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
65783         Fall back on chown if open failed with EACCES.
65784
65785         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
65786         Report an error at compile-time if only a 1-second nominal clock
65787         resolution is found.
65788
65789         * lib/lchmod.h: New file.
65790         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
65791         (make_dir_parents): Use lchown rather than chown, and
65792         lchmod rather than chmod.
65793
65794         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
65795         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
65796         "proc" reported by n0dalus.
65797
65798         * lib/mountlist.c: Include <limits.h>.
65799         (dev_from_mount_options)
65800         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
65801         New function.  It no longer assumes "dev=" has the System V meaning
65802         on Linux (since it doesn't).  It also parses "dev=" more carefully.
65803         (read_file_system_list)
65804         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
65805         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
65806         dev= in that case.
65807
65808         * lib/posixtm.h (PDS_PRE_2000): New macro.
65809         * lib/posixtm.c (year): Arg is now syntax_bits rather than
65810         allow_century.  All usages changed.  Reject dates outside the range
65811         1969-1999 if PDS_PRE_2000 is used.
65812
65813 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65814
65815         Sync from coreutils.
65816         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
65817         (Time of day items): Mention the possibility of leap seconds.
65818         Problem reported by Dr. David Alan Gilbert.
65819
65820 2006-01-09  Jim Meyering  <jim@meyering.net>
65821
65822         Sync from coreutils.
65823
65824         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
65825
65826         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
65827
65828         * lib/modechange.c (mode_compile): Reject an invalid mode string
65829         that starts with an octal digit.  From Andreas Gruenbacher.
65830
65831         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
65832         and dup to open_safer and dup_safer, respectively.
65833         (openat_permissive): Fix typo in comment.
65834
65835         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
65836         "gettext.h"; either no longer needed or are guaranteed by openat.h.
65837         (_): Remove; no longer needed.
65838         (openat): Renamed from rpl_openat; no need for rpl_openat
65839         since openat.h renames openat for us.
65840         Replace most of the body with a call to openat_permissive,
65841         to avoid duplicate code.
65842         Port to (probably hypothetical) environments were mode_t is
65843         wider than int.
65844         (openat_permissive): Require mode arg, so that we can check
65845         types better.  Put it just after flags.  Change cwd failure
65846         indicator from pointer-to-bool to pointer-to-errno-value.
65847         All callers changed.
65848         Invoke openat_save_fail and/or openat_restore_fail if
65849         cwd_errno is null, so that openat can call us.
65850         (openat_permissive, fdopendir, fstatat, unlinkat):
65851         Simplify errno handling to avoid some duplicate code,
65852         as it's OK to set errno on success.
65853         * lib/openat.h: Revamp code so that function macros depend on
65854         __OPENAT_PREFIX only, not also on AT_FDCWD.
65855         (openat_ro): Remove.  Caller changed to use openat_permissive.
65856         (openat_permissive): Now a macro, if not a function.
65857         (openat_restore_fail, openat_save_fail): Now always functions,
65858         since mkdirat needs them even if __OPENAT_PREFIX is defined.
65859
65860         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
65861         and openat.c.
65862         * lib/mkdirat.c: Include openat-priv.h.
65863         Remove definitions of macros defined therein.
65864         * lib/openat.c: Likewise.
65865
65866         * lib/mkdirat.c (mkdirat): New file and function.
65867         * lib/openat.h (mkdirat): Declare.
65868
65869         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
65870
65871         * lib/openat.h (openat_permissive): Declare.
65872         (openat_ro): Define.
65873
65874         * lib/openat.c (EXPECTED_ERRNO): New macro.
65875         (openat_permissive): New function -- used in remove.c rewrite.
65876         (all functions): Set errno just before returning, only if there
65877         was an actual failure.
65878         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
65879
65880         Emulate openat-family functions using Linux's procfs, if possible.
65881         Idea and some code based on Ulrich Drepper's glibc changes.
65882
65883         * lib/openat.c: (BUILD_PROC_NAME): New macro.
65884         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
65885         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
65886         before falling back on save_cwd and restore_cwd.
65887         (fdopendir, fstatat, unlinkat): Likewise.
65888
65889         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
65890         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
65891
65892         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
65893         as second argument to va_arg.  Otherwise, some versions of gcc
65894         warn that `if this code is reached, the program will abort'.
65895
65896 2006-01-09  Jim Meyering  <jim@meyering.net>
65897
65898         Sync from coreutils.
65899         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
65900         Require openat-priv.h.
65901
65902 2006-01-09  Bruno Haible  <bruno@clisp.org>
65903
65904         * modules/strnlen (Include): Use strnlen.h.
65905
65906 2006-01-09  Bruno Haible  <bruno@clisp.org>
65907
65908         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65909
65910 2006-01-09  Bruno Haible  <bruno@clisp.org>
65911
65912         * lib/sysexit_.h (EX_OK): New macro.
65913         Suggested by Martin Lambers <marlam@marlam.de>.
65914
65915 2006-01-09  Bruno Haible  <bruno@clisp.org>
65916
65917         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
65918         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
65919
65920 2006-01-09  Bruno Haible  <bruno@clisp.org>
65921
65922         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
65923         numbers.
65924
65925 2006-01-09  Bruno Haible  <bruno@clisp.org>
65926
65927         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
65928         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
65929         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
65930         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
65931
65932 2006-01-09  Bruno Haible  <bruno@clisp.org>
65933
65934         * build-aux/javacomp.sh.in: New file, moved from lib/.
65935         * modules/javacomp-script (Files): Update.
65936         (configure.ac): Add AC_CONFIG_FILES invocation.
65937         (EXTRA_DIST): Remove variable.
65938
65939         * build-aux/javaexec.sh.in: New file, moved from lib/.
65940         * modules/javaexec (Files): Update.
65941         (configure.ac): Add AC_CONFIG_FILES invocation.
65942         (EXTRA_DIST): Remove javaexec.sh.in.
65943
65944         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
65945         * modules/csharpcomp-script (Files): Update.
65946         (configure.ac): Add AC_CONFIG_FILES invocation.
65947         (EXTRA_DIST): Remove variable.
65948
65949         * build-aux/csharpexec.sh.in: New file, moved from lib/.
65950         * modules/csharpexec (Files): Update.
65951         (configure.ac): Add AC_CONFIG_FILES invocation.
65952         (EXTRA_DIST): Remove csharpexec.sh.in.
65953
65954 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65955
65956         Sync from coreutils.
65957
65958         Add POSIX ACL support
65959         * lib/acl.h (copy_acl, set_acl): Add declarations.
65960         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65961         systems other than Linux.
65962         (chmod_or_fchmod): New function: use fchmod when possible,
65963         and chmod otherwise.
65964         (file_has_acl): Add a POSIX ACL implementation, with a
65965         Linux-specific subcase.
65966         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65967         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65968         acls are unsupported.
65969         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65970         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65971         are unsupported.
65972
65973 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65974
65975         Sync from coreutils.
65976         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65977
65978 2006-01-07  Bruno Haible  <bruno@clisp.org>
65979
65980         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65981         gl_EARLY.
65982
65983 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65984
65985         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65986         Problem reported for Mingw by Mark Junker.
65987
65988 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65989
65990         * README: Gnulib normally doesn't generate a tarball.
65991
65992 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65993
65994         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
65995         long int, not int, for nanosecond counts, so that people who are
65996         used to POSIX struct timespec won't be surprised.  Reported by Jim
65997         Meyering.
65998
65999 2005-12-28  Bruno Haible  <bruno@clisp.org>
66000
66001         * build-aux/config.rpath: Update from GNU gettext.
66002
66003 2005-12-16  Jim Meyering  <jim@meyering.net>
66004
66005         * modules/fprintftime: New module.
66006         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
66007
66008 2005-12-16  Jim Meyering  <jim@meyering.net>
66009
66010         * m4/fprintftime.m4: New file.
66011
66012 2005-12-16  Jim Meyering  <jim@meyering.net>
66013
66014         * lib/fprintftime.c, lib/fprintftime.h: New files.
66015
66016 2005-12-15  Simon Josefsson  <jas@extundo.com>
66017
66018         * modules/socklen (configure.ac): Fix M4 macro name, to align with
66019         new m4/socklen.m4.
66020
66021 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66022
66023         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
66024         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
66025
66026 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66027
66028         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
66029         * lib/argp-help.c (fill_in_uparams): Check if the constructed
66030         struct uparams is valid. Fall back to the default values if it is
66031         not.
66032
66033 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66034
66035         * modules/argp (Files): Add argp-pin.c
66036         (Depends-on): dirname
66037         (lib_SOURCES): Add argp-pin.c
66038
66039 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66040
66041         * m4/argp.m4:  Check if program_invocation_name and
66042         program_invocation_short_name are declared and define appropriate
66043         macros if they are not.
66044
66045 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66046
66047         * lib/argp-help.c (__argp_base_name): New function
66048         (__argp_short_program_name): Rewrite using __argp_base_name
66049         * lib/argp-namefrob.h: Define program_invocation_name and
66050         program_invocation_short_name if requested
66051         (__argp_base_name): Add prototype
66052         * lib/argp-parse.c (argp_def): Use gettext wrappers
66053         (argp_default_parser): Use __argp_base_name
66054         * lib/argp-pin.c: New file. Defines program_invocation_name and
66055         program_invocation_short_name on systems that lack them.
66056
66057 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66058
66059         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
66060         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66061         porting problem reported by Georg Schwarz in
66062         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66063
66064 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66065
66066         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
66067         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66068         porting problem reported by Georg Schwarz in
66069         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66070
66071 2005-12-05  Bruno Haible  <bruno@clisp.org>
66072
66073         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
66074         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
66075         Reported by Mark Junker <mjscod@gmx.de>.
66076
66077 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
66078
66079         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
66080         Use implementation from Albert Chin, with some
66081         comments/corrections by Stepan Kasal and myself.
66082
66083 2005-12-02  Bruno Haible  <bruno@clisp.org>
66084
66085         * gnulib-tool (func_import): Accept GPLed build tool modules when
66086         --lgpl is given.
66087         * modules/csharpcomp-script: New file.
66088         * modules/csharpcomp: Depend on it.
66089         * modules/javacomp-script: New file.
66090         * modules/javacomp: Depend on it.
66091         Suggested by Simon Josefsson.
66092
66093 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66094
66095         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66096         statement, to work around an HP-UX 10.20 compiler bug reported by
66097         Peter O'Gorman.
66098
66099 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66100
66101         * modules/savedir (Depends-on): Add openat.
66102
66103 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66104
66105         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66106         (uintmax_t) [defined uintmax_t]: Do not declare.
66107         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66108         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66109         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66110         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66111         sake of portability to weird hosts that C allows (though we don't
66112         know of any practical examples).
66113
66114         * lib/savedir.h (fdsavedir): New decl.
66115         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66116         contains most of the former guts of savedir.
66117         (savedir): Use savedirstream.
66118         Include "openat.h".
66119
66120 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66121
66122         * modules/obstack (Files): Add m4/ulonglong.m4.
66123         Problem reported by Davide Angelocola.
66124
66125 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66126
66127         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66128         coreutils no longer futzes with rounding modes.
66129
66130 2005-11-14  Jim Meyering  <jim@meyering.net>
66131
66132         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66133         replacement of mkstemp.
66134
66135 2005-11-10  Simon Josefsson  <jas@extundo.com>
66136
66137         * lib/readline.c: Remove EOL.
66138
66139 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66140
66141         * modules/gethrxtime (Depends-on): Add gettime.
66142
66143 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66144
66145         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66146         or gettimeofday; no longer needed.
66147
66148 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66149
66150         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66151         time business.
66152         (gethrxtime) [! (HAVE_NANOUPTIME
66153         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66154         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66155         our own approximation.
66156
66157 2005-11-08  Eric Blake  <ebb9@byu.net>
66158
66159         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66160
66161 2005-11-08  Eric Blake  <ebb9@byu.net>
66162
66163         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66164
66165 2005-11-04  Bruno Haible  <bruno@clisp.org>
66166
66167         * gnulib-tool: Implement --update mode.
66168
66169 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66170
66171         Fix porting problem reported by Theodoros V. Kalamatianos.
66172         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66173         Don't assume that futimes failing means we must fail.
66174
66175 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66176
66177         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66178         variables to suggest the intended function of the PATH_MAX check.
66179
66180 2005-10-30  Kean Johnston  <jkj@sco.com>
66181
66182         Trivial changes to support SCO systems.
66183         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66184         as PATH_MAX.
66185         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66186         where __ptr is null when no I/O is pending.
66187
66188 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66189
66190         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66191         leave errno alone.  Problem reported by Dmitry V. Levin.
66192
66193 2005-10-28  Simon Josefsson  <jas@extundo.com>
66194
66195         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66196         Test more.
66197
66198         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66199
66200         * modules/md2, modules/md2-tests: New files.
66201
66202 2005-10-28  Simon Josefsson  <jas@extundo.com>
66203
66204         * m4/inet_ntop.m4: More tests.
66205
66206         * m4/gc-md2.m4, md2.m4: New file.
66207
66208 2005-10-28  Simon Josefsson  <jas@extundo.com>
66209
66210         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66211         "restrict" keywords, as per POSIX.  Protect the function
66212         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66213         Don't use K&R prototypes.  Check the sprintf return values.
66214         Re-define EAFNOSUPPORT if not present.  Indent.
66215
66216         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66217         suggested by Bruno Haible <bruno@clisp.org>.
66218
66219         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66220
66221         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66222
66223         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66224         libgcrypt).
66225
66226         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66227
66228         * lib/md2.h, lib/md2.c: New files.
66229
66230 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66231
66232         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66233         errno alone.  Problem reported by Frederic Jolliton.
66234
66235 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66236
66237         * modules/verify (License): Change from GPL to LGPL.  This is a
66238         tiny module and there are apparently near-equivalents that are
66239         under the BSD license.
66240
66241 2005-10-24  Simon Josefsson  <jas@extundo.com>
66242
66243         * modules/sha1: Relicense to LGPL.
66244
66245 2005-10-24  Simon Josefsson  <jas@extundo.com>
66246
66247         * lib/md4.h: Shrink buffer size, now that we changed the type.
66248
66249 2005-10-23  Simon Josefsson  <jas@extundo.com>
66250
66251         * gnulib-tool (func_import): Fix --tests-base.
66252
66253 2005-10-22  Simon Josefsson  <jas@extundo.com>
66254
66255         * modules/arcfour (Depends-on): Need stdint.
66256
66257 2005-10-22  Simon Josefsson  <jas@extundo.com>
66258
66259         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66260         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66261
66262 2005-10-22  Simon Josefsson  <jas@extundo.com>
66263
66264         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66265         suggested by Bruno Haible <bruno@clisp.org>.
66266
66267 2005-10-22  Simon Josefsson  <jas@extundo.com>
66268
66269         * lib/crc.h: Include stddef.h, for size_t.
66270
66271 2005-10-22  Simon Josefsson  <jas@extundo.com>
66272
66273         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66274         arcfour_context struct (simplify test vector testing in GNU
66275         Shishi).
66276
66277 2005-10-21  Simon Josefsson  <jas@extundo.com>
66278
66279         * modules/des, modules/des-tests: New files.
66280
66281         * modules/gc-des, modules/gc-des-tests: New files.
66282
66283         * tests/test-des.c, tests/test-gc-des.c: New file.
66284
66285 2005-10-21  Simon Josefsson  <jas@extundo.com>
66286
66287         * modules/arctwo, modules/arctwo-tests: New files.
66288
66289         * tests/test-arctwo.c: New file.
66290
66291         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66292
66293         * tests/test-gc-arctwo.c: New file.
66294
66295 2005-10-21  Simon Josefsson  <jas@extundo.com>
66296
66297         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66298         Bruno Haible <bruno@clisp.org>.
66299
66300         * m4/gc-des.m4: New file.
66301
66302 2005-10-21  Simon Josefsson  <jas@extundo.com>
66303
66304         * m4/arctwo.m4: New file.
66305
66306         * m4/gc-arctwo.m4: New file.
66307
66308 2005-10-21  Simon Josefsson  <jas@extundo.com>
66309
66310         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66311         block.
66312
66313 2005-10-21  Simon Josefsson  <jas@extundo.com>
66314
66315         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66316         <bruno@clisp.org>.
66317
66318         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66319
66320         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66321         Bruno Haible <bruno@clisp.org>.
66322
66323         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66324         <bruno@clisp.org>.
66325
66326 2005-10-21  Simon Josefsson  <jas@extundo.com>
66327
66328         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66329
66330 2005-10-21  Simon Josefsson  <jas@extundo.com>
66331
66332         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66333
66334 2005-10-21  Simon Josefsson  <jas@extundo.com>
66335
66336         * lib/des.h, lib/des.c: New files.
66337
66338         * lib/gc-gnulib.c: Support DES.c
66339
66340 2005-10-21  Simon Josefsson  <jas@extundo.com>
66341
66342         * lib/arctwo.h, lib/arctwo.c: New files.
66343
66344         * lib/gc-gnulib.c: Support ARCTWO.
66345
66346 2005-10-21  Simon Josefsson  <jas@extundo.com>
66347
66348         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66349         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66350
66351 2005-10-21  Simon Josefsson  <jas@extundo.com>
66352
66353         * gnulib-tool (func_import, func_create_testdir): Define automake
66354         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66355         Makefile.am snippet),
66356         suggested by Bruno Haible <bruno@clisp.org>.
66357
66358         * modules/gc (Makefile.am): Use it.
66359
66360 2005-10-21  Bruno Haible  <bruno@clisp.org>
66361
66362         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66363         patch.
66364
66365 2005-10-19  Simon Josefsson  <jas@extundo.com>
66366
66367         * tests/test-gc-rijndael.c: New file.
66368
66369         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66370
66371 2005-10-19  Simon Josefsson  <jas@extundo.com>
66372
66373         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66374         interface too.
66375
66376 2005-10-19  Simon Josefsson  <jas@extundo.com>
66377
66378         * tests/test-gc-arcfour.c: New file.
66379
66380         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66381
66382 2005-10-19  Simon Josefsson  <jas@extundo.com>
66383
66384         * modules/gc-md4, modules/gc-md4-tests: New file.
66385
66386         * tests/test-gc-md4.c: New file.
66387
66388 2005-10-19  Simon Josefsson  <jas@extundo.com>
66389
66390         * m4/gc-md4.m4: New file.
66391
66392 2005-10-19  Simon Josefsson  <jas@extundo.com>
66393
66394         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66395         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66396         <kasal@ucw.cz>.
66397
66398 2005-10-19  Simon Josefsson  <jas@extundo.com>
66399
66400         * m4/gc-arcfour.m4: New file.
66401
66402         * m4/gc-rijndael.m4: New file.
66403
66404 2005-10-19  Simon Josefsson  <jas@extundo.com>
66405
66406         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66407
66408 2005-10-19  Simon Josefsson  <jas@extundo.com>
66409
66410         * lib/gc-gnulib.c: Support ARCFOUR.
66411
66412 2005-10-19  Simon Josefsson  <jas@extundo.com>
66413
66414         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66415         support.
66416
66417         * lib/gc.h: Add ECB enum type.
66418
66419         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66420
66421 2005-10-18  Simon Josefsson  <jas@extundo.com>
66422
66423         * tests/test-md5.c: New file.
66424
66425         * modules/md5-tests: New file.
66426
66427 2005-10-18  Simon Josefsson  <jas@extundo.com>
66428
66429         * tests/test-md4.c: New file.
66430
66431         * modules/md4, modules/md4-tests: New files.
66432
66433 2005-10-18  Simon Josefsson  <jas@extundo.com>
66434
66435         * m4/md4.m4: New file.
66436
66437 2005-10-18  Simon Josefsson  <jas@extundo.com>
66438
66439         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66440
66441 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66442
66443         * gnulib-tool (func_create_testdir): Omit the second check whether
66444         BUILT_SOURCES in nonempty.
66445
66446 2005-10-17  Simon Josefsson  <jas@extundo.com>
66447
66448         * tests/test-rijndael.c: New file.
66449
66450 2005-10-17  Simon Josefsson  <jas@extundo.com>
66451
66452         * modules/sha1: Depend on stdint instead of md5.
66453
66454         * modules/md5: Depend on stdint, remove uint32_t.
66455
66456 2005-10-17  Simon Josefsson  <jas@extundo.com>
66457
66458         * modules/gc-sha1-tests: New file.
66459
66460         * tests/test-gc-sha1.c: New file.
66461
66462 2005-10-17  Simon Josefsson  <jas@extundo.com>
66463
66464         * m4/md5.m4: Remove call to uint32_t.m4.
66465
66466 2005-10-17  Simon Josefsson  <jas@extundo.com>
66467
66468         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66469
66470         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66471         md5.h.
66472
66473         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66474
66475         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66476
66477 2005-10-17  Simon Josefsson  <jas@extundo.com>
66478
66479         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66480
66481 2005-10-17  Simon Josefsson  <jas@extundo.com>
66482
66483         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66484
66485 2005-10-17  Simon Josefsson  <jas@extundo.com>
66486
66487         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66488
66489         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66490
66491 2005-10-17  Bruno Haible  <bruno@clisp.org>
66492
66493         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66494         that it can also be used in a test.
66495
66496 2005-10-16  Bruno Haible  <bruno@clisp.org>
66497
66498         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66499         TESTS_ENVIRONMENT, so that individual tests can augment it.
66500
66501         * gnulib-tool (func_create_testdir): Use an intermediate target for
66502         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66503         macros, like $(ALLOCA_H), which cannot be passed through the command
66504         line.
66505
66506 2005-10-15  Simon Josefsson  <jas@extundo.com>
66507
66508         * modules/rijndael-tests: New file.
66509
66510         * modules/rijndael: New file.
66511
66512 2005-10-15  Simon Josefsson  <jas@extundo.com>
66513
66514         * m4/rijndael.m4: New file.
66515
66516 2005-10-15  Simon Josefsson  <jas@extundo.com>
66517
66518         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66519
66520         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66521
66522 2005-10-14  Simon Josefsson  <jas@extundo.com>
66523
66524         * tests/test-arcfour.c: New file.
66525
66526         * modules/arcfour, modules/arcfour-tests: New files.
66527
66528 2005-10-14  Simon Josefsson  <jas@extundo.com>
66529
66530         * m4/arcfour.m4: New file.
66531
66532 2005-10-14  Simon Josefsson  <jas@extundo.com>
66533
66534         * lib/arcfour.h, lib/arcfour.c: New files.
66535
66536 2005-10-14  Roland McGrath  <roland@redhat.com>
66537
66538         Import from libc.  [BZ #1331]
66539         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66540         macro argument.
66541         Reported by Matej Vela <vela@debian.org>.
66542
66543 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66544
66545         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66546         include <wchar.h>; no longer needed.
66547
66548 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66549
66550         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66551
66552 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66553         and  Ulrich Drepper  <drepper@redhat.com>
66554
66555         Import from libc.
66556         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66557         instead of inline stream orientation test and two separate
66558         function calls.  Pay no attention to USE_IN_LIBIO.
66559
66560 2005-10-13  Simon Josefsson  <jas@extundo.com>
66561
66562         * modules/gc-hmac-md5-tests: New file.
66563
66564         * tests/test-gc-hmac-sha1.c: New file.
66565
66566         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66567
66568         * modules/gc-hmac-md5-tests: New file.
66569
66570         * tests/test-gc-md5.c: New file.
66571
66572         * modules/gc-md5-tests: New file.
66573
66574 2005-10-13  Simon Josefsson  <jas@extundo.com>
66575
66576         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66577         Move memory allocation outside of loop.
66578
66579 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66580
66581         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66582         intermediate directory is in a read-only file system.  Problem
66583         reported by Eric Blake.
66584
66585 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66586
66587         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66588
66589 2005-10-12  Simon Josefsson  <jas@extundo.com>
66590
66591         * tests/test-hmac-sha1.c: New file.
66592
66593         * modules/hmac-sha1-tests: New file.
66594
66595         * modules/hmac-sha1: New file.
66596
66597 2005-10-12  Simon Josefsson  <jas@extundo.com>
66598
66599         * modules/gc-sha1: New file.
66600
66601 2005-10-12  Simon Josefsson  <jas@extundo.com>
66602
66603         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66604
66605         * tests/test-gc-pbkdf2-sha1.c: New file.
66606
66607 2005-10-12  Simon Josefsson  <jas@extundo.com>
66608
66609         * modules/gc-md5, modules/gc-hmac-md5: New files.
66610
66611         * modules/gc (Files): Remove md5, memxor and hmac files.
66612
66613 2005-10-12  Simon Josefsson  <jas@extundo.com>
66614
66615         * m4/gc-pbkdf2-sha1.m4: New file.
66616
66617         * m4/gc-hmac-sha1.m4: New file.
66618
66619         * m4/gc-sha1: New file.
66620
66621         * m4/hmac-sha1.m4: New file.
66622
66623 2005-10-12  Simon Josefsson  <jas@extundo.com>
66624
66625         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66626
66627         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66628
66629 2005-10-12  Simon Josefsson  <jas@extundo.com>
66630
66631         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66632         suggested by Bruno Haible <bruno@clisp.org>.
66633
66634 2005-10-12  Simon Josefsson  <jas@extundo.com>
66635
66636         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66637
66638 2005-10-12  Simon Josefsson  <jas@extundo.com>
66639
66640         * lib/gc-pbkdf2-sha1.c: New file.
66641
66642         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66643
66644 2005-10-12  Simon Josefsson  <jas@extundo.com>
66645
66646         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66647
66648         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66649
66650 2005-10-12  Simon Josefsson  <jas@extundo.com>
66651
66652         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66653         GC_USE_HMAC_MD5, respectively.
66654
66655         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66656         (gc_md5): Fix typo.
66657
66658         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66659
66660         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66661
66662         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66663
66664 2005-10-12  Bruno Haible  <bruno@clisp.org>
66665
66666         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66667         Reported by Stepan Kasal <kasal@ucw.cz>.
66668
66669 2005-10-11  Simon Josefsson  <jas@extundo.com>
66670
66671         * tests/test-crc.c: New file.
66672
66673         * modules/crc, modules/crc-tests: New files.
66674
66675 2005-10-11  Simon Josefsson  <jas@extundo.com>
66676
66677         * m4/crc.m4: New file.
66678
66679 2005-10-11  Simon Josefsson  <jas@extundo.com>
66680
66681         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66682
66683         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66684
66685         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66686
66687 2005-10-11  Simon Josefsson  <jas@extundo.com>
66688
66689         * lib/crc.h, lib/crc.c: New files.
66690
66691         * lib/gc.h (gc_hash_buffer): Add doc.
66692
66693 2005-10-11  Bruno Haible  <bruno@clisp.org>
66694
66695         * modules/c-strcasestr: New file.
66696         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66697
66698 2005-10-11  Bruno Haible  <bruno@clisp.org>
66699
66700         * modules/c-strcase: New file.
66701         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66702
66703 2005-10-11  Bruno Haible  <bruno@clisp.org>
66704
66705         * lib/strcasecmp.c: Include limits.h.
66706         (strcasecmp): Avoid integer overflow on exotic platforms.
66707         * lib/strncasecmp.c: Include limits.h.
66708         (strncasecmp): Avoid integer overflow on exotic platforms.
66709         Reported by Paul Eggert.
66710
66711 2005-10-11  Bruno Haible  <bruno@clisp.org>
66712
66713         * lib/c-strcasestr.h: New file, from GNU gettext.
66714         * lib/c-strcasestr.c: New file, from GNU gettext.
66715
66716 2005-10-11  Bruno Haible  <bruno@clisp.org>
66717
66718         * lib/c-strcase.h: New file, from GNU gettext.
66719         * lib/c-strcasecmp.c: New file, from GNU gettext.
66720         * lib/c-strncasecmp.c: New file, from GNU gettext.
66721
66722 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66723
66724         * modules/mempcpy (License): GPL -> LGPL.
66725         * modules/strchrnul (License): Likewise.
66726         * modules/sysexits (License): Likewise.
66727
66728 2005-10-08  Simon Josefsson  <jas@extundo.com>
66729
66730         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66731
66732 2005-10-07  Simon Josefsson  <jas@extundo.com>
66733
66734         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66735
66736 2005-10-06  Simon Josefsson  <jas@extundo.com>
66737
66738         * tests/test-hmac-md5.c: New file.
66739
66740         * modules/hmac-md5-tests: New file.
66741
66742         * modules/hmac-md5: New file.
66743
66744 2005-10-06  Simon Josefsson  <jas@extundo.com>
66745
66746         * m4/hmac-md5.m4: New file.
66747
66748         * m4/memxor.m4: Require gl_C_RESTRICT.
66749
66750 2005-10-06  Simon Josefsson  <jas@extundo.com>
66751
66752         * lib/memxor.c (memxor): Avoid casts and warnings.
66753
66754 2005-10-06  Simon Josefsson  <jas@extundo.com>
66755
66756         * lib/hmac-md5.c: New file.
66757
66758         * lib/hmac.h: New file.
66759
66760 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
66763         promotes to int, not unsigned int, to catch the AIX 5.3
66764         compiler bug.
66765
66766 2005-10-05  Simon Josefsson  <jas@extundo.com>
66767
66768         * modules/memxor: New file.
66769
66770         * modules/iconv (Files): Move config.rpath to havelib, it is used
66771         there.
66772
66773         * modules/havelib (Files): Add config.rpath.
66774
66775 2005-10-05  Simon Josefsson  <jas@extundo.com>
66776
66777         * m4/memxor.m4: New file.
66778
66779 2005-10-05  Simon Josefsson  <jas@extundo.com>
66780
66781         * lib/memxor.c (memxor): Fix compiler error.
66782
66783         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
66784         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
66785
66786         * lib/memxor.h, lib/memxor.c: New files.
66787
66788         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
66789         we assume all systems have it, suggested by Jim Meyering
66790         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
66791         any systems lack sys/socket.h; mingw32 is known to lack it, but we
66792         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
66793         same reasons.
66794
66795 2005-10-05  Simon Josefsson  <jas@extundo.com>
66796
66797         * config/srclist.txt: Add glibc bug 1423 for md5.h.
66798
66799 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66800
66801         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
66802         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
66803         needed, since the source code now assumes these .h files.
66804
66805 2005-10-05  Derek Price  <derek@ximbiot.com>
66806
66807         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
66808
66809 2005-10-05  Bruno Haible  <bruno@clisp.org>
66810
66811         * modules/stdint (License): Change to LGPL.
66812
66813 2005-10-04  Simon Josefsson  <jas@extundo.com>
66814
66815         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
66816         D. Baushke" <mdb@gnu.org>.
66817
66818 2005-10-04  Bruno Haible  <bruno@clisp.org>
66819
66820         * lib/verify.h (verify_true): Provide alternative definition for C++.
66821
66822 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
66823
66824         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
66825         (SSIZE_MAX): New macro, if not already defined.
66826         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
66827         than 2 GiB.
66828
66829 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66830
66831         Sync from coreutils.
66832         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
66833         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
66834         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
66835         ULLONG_MAX doesn't work with 2.7.2.1.
66836
66837 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66838
66839         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
66840         From Ben Pfaff.
66841
66842         * modules/exclude (Depends-on): Depend on verify.
66843         * modules/strtoimax (Depends-on): Likewise.
66844         * modules/utimecmp (Depends-on): Likewise.
66845
66846 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66847
66848         * lib/exclude.c: Include verify.h.
66849         (verify): Remove.  All callers changed to use verify.h's version.
66850         * lib/strtoimax.c: Likewise.
66851         * lib/utimecmp.c: Likewis.e
66852
66853         Sync from coreutils.
66854         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
66855         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
66856         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
66857         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
66858         bother returning ENOSYS if settimeofday or stime fails; just let
66859         them return whatever errno they want to return.
66860         * lib/utimens.c: Include unistd.h, for dup2.
66861         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
66862         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
66863
66864 2005-10-02  Jim Meyering  <jim@meyering.net>
66865
66866         Sync from coreutils.
66867         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
66868         from glibc-2.2.5 that fails for read-only files.
66869
66870 2005-10-02  Jim Meyering  <jim@meyering.net>
66871
66872         Sync from coreutils.
66873         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
66874         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
66875         `#if HAVE_CONFIG_H'.
66876         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
66877         Remove AT_FDCWD test.
66878         Do not consume the fd unless successful.
66879         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
66880         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
66881         block, so that we don't even try to compile it if settimeofday is
66882         available.  This works around a compilation failure on OSF1 V5.1,
66883         due to stime requiring a `long int*' while tv_sec is `int'.
66884
66885 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
66886
66887         Sync from coreutils.
66888         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
66889         against `yes', rather than just testing for nonempty.
66890
66891 2005-10-01  Simon Josefsson  <jas@extundo.com>
66892
66893         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
66894         and Darwin.
66895
66896         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
66897         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
66898         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
66899         freeaddrinfo and gai_strerror are declared by the POSIX headers.
66900         Check if struct addrinfo is declared.
66901
66902 2005-10-01  Simon Josefsson  <jas@extundo.com>
66903
66904         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
66905         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
66906         AI_* and EAI_* definitions.  Protect function declarations.
66907
66908 2005-10-01  Jim Meyering  <jim@meyering.net>
66909
66910         Sync from coreutils.
66911
66912         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
66913         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
66914         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
66915         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66916         in the inet and nsl libraries.  Required on Solaris 5.7.
66917
66918 2005-10-01  Jim Meyering  <jim@meyering.net>
66919
66920         Sync from coreutils.
66921         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66922         in the inet and nsl libraries.  Required on Solaris 5.7.
66923
66924 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
66925
66926         * lib/getdelim.c (getdelim): Remove unused variables.
66927
66928 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66929
66930         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
66931         so that the code works even with ancient cpp.  Portability problem
66932         with GCC 2.7.2.1 reported by Thomas M.Ott.
66933
66934 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * modules/regex (Depends-on): Add strcase.
66937
66938         * modules/gethostname (Licence): Change from GPL to LGPL, since
66939         gethostname.c is a trivial implementation of a standard library
66940         function.
66941         * modules/poll (License): Change from GPL to LGPL, since it's
66942         derived from LGPL code.
66943
66944 2005-09-27  Jim Meyering  <jim@meyering.net>
66945
66946         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
66947         HAVE_CONFIG_H.
66948
66949         * lib/intprops.h (signed_type_or_expr__): Define.
66950         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
66951         for unsigned types.
66952
66953 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66954
66955         * lib/verify.h (verify_expr): Remove, replacing with:
66956         (verify_true): New macro that returns true instead of void.
66957         (verify_type__): Remove.
66958         (verify): Use verify_true rather than verify_type__.
66959
66960 2005-09-26  Bruno Haible  <bruno@clisp.org>
66961
66962         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66963         is necessary.
66964         (lib_SOURCES): Remove mbchar.c.
66965         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66966         (Files): Add m4/mbrtowc.m4.
66967         * modules/mbiter: Likewise.
66968         * modules/mbuiter: Likewise.
66969
66970 2005-09-26  Bruno Haible  <bruno@clisp.org>
66971
66972         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66973         compile mbchar.c if they are not both present.
66974         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66975         * m4/mbiter.m4 (gl_MBITER): Likewise.
66976         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66977         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66978         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66979
66980 2005-09-25  Jim Meyering  <jim@meyering.net>
66981
66982         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66983         also uses socklen_t.
66984
66985 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66986
66987         * lib/utimens.c (ENOSYS): Define if not already defined.
66988         (futimens): Support having a null PATH if the file descriptor
66989         is nonnegative.
66990
66991         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66992         Remove.
66993         (__attribute): Define to empty unless GCC 3.1 or later.
66994         This works around a core dump on OpenBSD 3.4, which has GCC
66995         2.95.3, which dumps core when given __attribute__(()).  It also
66996         simplifies other tests, since we really don't want to bother with
66997         worrying about which ancient version of GCC supported what.
66998         Original problem reported by Yoann Vandoorselaere, with part of
66999         the fix suggested by Derek Price.
67000
67001 2005-09-24  Jim Meyering  <jim@meyering.net>
67002
67003         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
67004         so we can once again use a positive bitfield width of 1 -- now we
67005         don't have to explain why we were using a bitfield width of 2.
67006
67007 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67008
67009         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
67010         and similarly for the other external symbols.  Problem reported
67011         by James Gallager.
67012
67013         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
67014         bug reported by Jim Meyering.
67015
67016         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
67017         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
67018         not needed, since socklen is a prerequisite module.
67019
67020 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67021
67022         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
67023         Problem reported by Eric Blake.
67024         (getaddrinfo): Initialize se so that it's not garbage.
67025         Redo internal storage allocation so that it doesn't make unportable
67026         assumptions about alignment.
67027         Fix a memory leak.
67028
67029         * lib/utimens.c (futimens): Use futimesat if available.
67030         Prefer it to futimes since it doesn't have the futimes bug.
67031
67032         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
67033         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
67034         Instead, declare a function that returns a pointer to an array,
67035         and use verify_type__ to declare the size of the array.
67036         Problem and germ of a solution reported by Bruno Haible.
67037         (verify_type__): Use 2, not 1, for bitfield size, to avoid
67038         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
67039
67040 2005-09-23  Jim Meyering  <jim@meyering.net>
67041
67042         Sync from coreutils.
67043         Correct build failure (socklen_t not defined) on at least
67044         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
67045         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
67046
67047 2005-09-23  Jim Meyering  <jim@meyering.net>
67048
67049         * modules/getaddrinfo (Depends-on): Add socklen.
67050
67051 2005-09-23  Bruno Haible  <bruno@clisp.org>
67052
67053         * tests/test-verify.c: New file.
67054
67055 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67056
67057         Sync from coreutils.
67058
67059         * modules/argmatch (Depends-on): Add verify.
67060         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
67061         unistd-safer.
67062         * modules/save-cwd (Depends-on): Likewise.
67063
67064         * modules/openat (Files): Add lib/openat-die.c.
67065         (Depends-on): Remove error, exitfail.
67066         Add dirname.
67067
67068         * modules/verify: New file.
67069         * MODULES.html.sh (Diagnostics <assert.h>): New section,
67070         with "verify" module.
67071
67072 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67073
67074         Sync from coreutils.
67075
67076         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
67077         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
67078         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
67079         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
67080         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
67081         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
67082         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
67083         Don't bother checking for string.h, stdlib.h, unistd.h.
67084         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
67085         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
67086         module's job.
67087         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67088         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67089
67090         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67091         (gl_GETDATE): Use it.
67092
67093         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67094
67095 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67096
67097         Sync from coreutils.
67098
67099         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67100         stat-time.h.
67101         * lib/argmatch.h: Include verify.h
67102         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67103         (ARGMATCH_ASSERT): Remove; unused.
67104         * lib/canonicalize.c: Assume STDC_HEADERS.
67105         * lib/exclude.c: Include "strcase.h".
67106         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67107         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67108         and stdio-safer.h.
67109         (getusershell): Call fopen, not fopen_safer.
67110         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67111         Do not include unistd-safer.h.
67112         (save_cwd): Don't call fd_safer; no longer needed
67113         now that we include fcntl--.h.
67114
67115         * lib/getdate.y (relative_time): New type.
67116         (RELATIVE_TIME_0): New constant.
67117         (parser_control): Use relative_time instead of doing it ourselves.
67118         (%union): Add new relative_time rel member.
67119         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67120         Now typeless.
67121         (relunit, relunit_snumber): Now of type rel.
67122         (zone, rel, relunit, get_date): Adjust to above changes.
67123
67124         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67125         Do not include unistd-safer.h.
67126         (getloadavg): Don't call fd_safer; no longer needed
67127         now that we include fcntl--.h.
67128
67129         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67130         (make_dir_parents): Treat ENOSYS like EEXIST.
67131
67132         Improve quality of diagnostics on restore_cwd failure.
67133         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67134         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67135         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67136         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67137         each time through the loop.  Do not diagnose restore_cwd failure;
67138         that is the caller's job (and perhaps the caller does not care).
67139
67140         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67141         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67142         If the file already exists but is not a directory, don't bother
67143         to try to make its parents.
67144         Close potential file descriptor leak if we can't chdir("/") (!).
67145         Don't always return true if chdir($PWD) fails; return true only
67146         if the requested action was done successfully (except for the
67147         chdir($PWD)).
67148         Don't log final directory unless we actually made it.
67149         Refactor to avoid duplicate code to fix up permissions.
67150         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67151
67152         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67153         to make it a bit faster and (I hope) clearer.
67154         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67155         Fix bug in formats like %2N.
67156
67157         * lib/verify.h: New file.
67158
67159 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67160
67161         Sync from coreutils.
67162         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67163
67164 2005-09-22  Jim Meyering  <jim@meyering.net>
67165
67166         Sync from coreutils.
67167
67168         * m4/lstat.m4 (gl_FUNC_LSTAT):
67169         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67170         Remove obsolete comment.
67171         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67172         * m4/xstrtod.m4: Likewise.
67173
67174         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67175
67176 2005-09-22  Jim Meyering  <jim@meyering.net>
67177
67178         Sync from coreutils.
67179
67180         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67181
67182         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67183         the .tm_year member, since otherwise gcc-4.0 would now warn about
67184         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67185
67186         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67187         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67188
67189         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67190         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67191         when run in a time zone for which daylight savings time is in effect
67192         for the starting date.
67193
67194         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67195         stop us from restricting permissions of just-created absolute-named
67196         directories.
67197         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67198         to restore initial working directory.
67199         * lib/mkdir-p.c (make_dir_parents): New parameter:
67200         different_working_dir, to tell caller if/when we change the working
67201         directory and are unable to return to the initial one.
67202         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67203         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67204         `return false'.  This fixes a bug introduced on 2004-07-30.
67205
67206         * lib/openat.c (fdopendir): Be sure to close the supplied
67207         file descriptor before returning.  This makes our replacement
67208         implementation a little closer to Solaris's, where fdopendir
67209         ties the file descriptor to the returned DIR* pointer.
67210         * lib/openat.c (unlinkat): New function.
67211         * lib/openat.h (unlinkat): Add prototype.
67212         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67213         (openat_restore_fail): Rename from openat_restore_die.
67214         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67215
67216         Provide an alternative to exiting immediately upon save_cwd or
67217         restore_cwd failure.  Now, an application can arrange e.g.,
67218         to perform a longjump in that case.
67219         * lib/openat.c: Include dirname.h.
67220         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67221         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67222         and openat_restore_die rather than calling error directly.
67223         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67224
67225         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67226         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67227         define.
67228
67229         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67230         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67231                             int utc, int nanoseconds);
67232         Background:
67233         date should not have to allocate a megabyte of virtual memory to
67234         handle a format argument like +%1048575T.  When implemented with
67235         strftime, it must allocate such a buffer, use strftime to fill it
67236         in, print it, then free it.
67237         With fprintftime, it simply prints everything and exits.
67238         With no need for memory allocation, that's one fewer way to fail.
67239         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67240         optional field width, not before, so we accept %9:z, not %:9z.
67241         (my_strftime): Be sure to use L_('x') for literals.
67242
67243         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67244         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67245         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67246         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67247         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67248         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67249         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67250         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67251         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67252         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67253         * lib/xgethostname.c, lib/xreadlink.c:
67254         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67255
67256         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67257         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67258         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67259         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67260         and don't include <sys/file.h>).
67261
67262 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67263
67264         Sync from coreutils.
67265
67266         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67267         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67268         [!LDAV_DONE]: Avoid unused variable warning.
67269
67270 2005-09-21  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/unicodeio.h (unicode_to_mb): New declaration.
67273
67274 2005-09-20  Derek Price  <derek@ximbiot.com>
67275
67276         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67277         getaddrinfo.h.
67278
67279 2005-09-20  Bruno Haible  <bruno@clisp.org>
67280
67281         * gnulib-tool: Remove trailing slashes from the values specified for
67282         --source-base, --m4-base, --tests-base, --aux-dir.
67283         Suggested by Simon Josefsson <jas@extundo.com>.
67284
67285 2005-09-20  Bruno Haible  <bruno@clisp.org>
67286
67287         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67288         func_modules_to_filelist, func_import, func_create_testdir): Make all
67289         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67290         change when gnulib-tool is invoked in a different locale.
67291
67292 2005-09-19  Simon Josefsson  <jas@extundo.com>
67293
67294         * m4/socklen.m4: Fix typo.
67295
67296 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67297
67298         Use a consistent style for including <config.h>.
67299         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67300         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67301         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67302         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67303         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67304         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67305         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67306         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67307         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67308         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67309         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67310         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67311         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67312         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67313         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67314         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67315         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67316         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67317         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67318         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67319         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67320         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67321         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67322         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67323         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67324         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67325         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67326         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67327         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67328         lib/xstrtoumax.c, lib/yesno.c:
67329         Standardize inclusion of config.h.
67330         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67331         lib/inttostr.h:  Removed inclusion of config.h from header files.
67332         * lib/inttostr.c:  Adjusted in-tree users.
67333         * lib/timespec.h: Remove superfluous warning to include config.h.
67334         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67335         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67336         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67337         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67338         config.h with HAVE_CONFIG_H.
67339
67340 2005-09-19  Jim Meyering  <jim@meyering.net>
67341
67342         * modules/pathmax (License): Change to LGPL.
67343
67344 2005-09-19  Derek Price  <derek@ximbiot.com>
67345
67346         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67347
67348 2005-09-19  Bruno Haible  <bruno@clisp.org>
67349
67350         * gnulib-tool (import): Provide default for --tests-base.
67351
67352 2005-09-19  Bruno Haible  <bruno@clisp.org>
67353
67354         * doc/quote.texi: New file, extracted from gnulib.texi.
67355         * doc/ctime.texi: New file, extracted from gnulib.texi.
67356         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67357         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67358         * doc/gnulib.texi: Include them.
67359
67360 2005-09-18  Bruno Haible  <bruno@clisp.org>
67361
67362         Portability fix.
67363         * gnulib-tool (func_readlink): New function.
67364         (func_ln_if_changed): Use it.
67365
67366 2005-09-18  Bruno Haible  <bruno@clisp.org>
67367
67368         * gnulib-tool: Support --with-tests also with --import.
67369         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67370         (func_import): Use variables $testsbase and $inctests. Emit a
67371         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67372         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67373         SUBDIRS += $testsdir.
67374         (func_create_testdir): Update.
67375
67376 2005-09-18  Bruno Haible  <bruno@clisp.org>
67377
67378         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67379         instead of $dry_run.
67380         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67381         (func_ln_if_changed): Don't handle dry-run here.
67382         (func_import): In dry-run mode, detect more precisely which actions
67383         would be performed, and don't use "...ing" verbs.
67384
67385 2005-09-18  Bruno Haible  <bruno@clisp.org>
67386
67387         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67388         (func_import): Use join on two temporary files instead of three nested
67389         loops, in order to determine which files are new or old.
67390
67391 2005-09-18  Bruno Haible  <bruno@clisp.org>
67392
67393         * gnulib-tool (func_import): Comment out code that spits out the
67394         new files with --dry-run.
67395
67396 2005-09-18  Bruno Haible  <bruno@clisp.org>
67397
67398         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67399
67400 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67401
67402         * lib/stat-time.h: New file.
67403         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67404         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67405         in a different way.
67406         (timespec_cmp): New function.
67407         * lib/utimecmp.c: Include stat-time.h.
67408         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67409         members exist, not on the obsolescent ST_MTIM_NSEC.
67410         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67411
67412 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67413
67414         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67415
67416 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67417
67418         * MODULES.html.sh (File system functions): Add stat-time.
67419         * modules/stat-time: New file.
67420         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67421         is now done in a different way, by the stat-time module.
67422         * modules/utimecmp (Depends-on): Add stat-time.
67423
67424 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67425
67426         * m4/st_mtim.m4: Remove.  Superseded by...
67427         * m4/stat-time.m4: New file.
67428         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67429         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67430
67431 2005-09-15  Derek Price  <derek@ximbiot.com>
67432
67433         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67434
67435 2005-09-15  Derek Price  <derek@ximbiot.com>
67436
67437         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67438         * lib/regex_internal.c: Ditto, using this...
67439         (__GNUC_PREREQ): ...new macro.
67440         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67441         using...
67442         (__GNUC_PREREQ): ...this new macro.
67443
67444         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67445
67446 2005-09-15  Derek Price  <derek@ximbiot.com>
67447             Paul Eggert  <eggert@cs.ucla.edu>
67448
67449         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67450         changes, consolidating in...
67451         * lib/regex_internal.h: ...this file.
67452
67453 2005-09-13  Jim Meyering  <jim@meyering.net>
67454
67455         * lib/canon-host.c: Filter through gnu indent and reword comments
67456         slightly.
67457         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67458
67459 2005-09-13  Derek Price  <derek@ximbiot.com>
67460
67461         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67462         failure.
67463         Reported by Jim Meyering  <jim@meyering.net>.
67464
67465 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67466
67467         * lib/base64.c: Typo.
67468         (base64_encode): Put b64str in initialized data section.
67469
67470 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67471
67472         Merge glibc and coreutils changes into gnulib, plus a few
67473         extra fixes.
67474         * lib/md5.c: Use #error rather than a string.
67475         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67476         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67477         (__attribute__): Define to empty for non recent-GCC.
67478         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67479         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67480         Renamed from their non-__ counterparts, with new macros replacing
67481         them if not _LIBC.  Add __THROW attribute.
67482         (rol): Remove.
67483         (struct md5_ctx): Align buffer if using GCC.
67484         * lib/sha1.h (struct sha1_ctx): Likewise.
67485         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67486         The old name was backwards.
67487         (NOTSWAP): Remove; not used.
67488         (rol): New macro, moved here from md5.h.
67489         (sha1_process_block): Remove a FIXME that doesn't make sense.
67490
67491 2005-09-12  Derek Price  <derek@ximbiot.com>
67492
67493         Return usable errors from canon-host.
67494         * lib/canon-host.h: New file.
67495         * lib/canon-host.c (canon_host): Wrap...
67496         (canon_host_r): ...this new function, which now relies exclusively on
67497         getaddrinfo.
67498         (ch_strerror): New function.
67499         (last_cherror): New global.
67500         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67501         interface.
67502         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67503         void *.
67504         (freeaddrinfo): Free ai->ai_canonname when set.
67505
67506 2005-09-12  Derek Price  <derek@ximbiot.com>
67507
67508         Make canon-host require getaddrinfo.
67509         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67510         AC_LIBSOURCE canon-host.h.  Call...
67511         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67512         gl_GETADDRINFO.
67513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67514
67515 2005-09-12  Derek Price  <derek@ximbiot.com>
67516
67517         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67518         LGPL.
67519         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67520
67521 2005-09-12  Derek Price  <derek@ximbiot.com>
67522
67523         * lib/gai_strerror.c: Include config.h when available.  Include
67524         getaddrinfo.h before other headers to test interface.
67525         Reported by Larry Jones <lawrence.jones@ugs.com>.
67526
67527 2005-09-12  Derek Price  <derek@ximbiot.com>
67528             Paul Eggert  <eggert@cs.ucla.edu>
67529
67530         * modules/glob (Files): Add glob-libc.h.
67531
67532 2005-09-12  Derek Price  <derek@ximbiot.com>
67533             Paul Eggert  <eggert@cs.ucla.edu>
67534
67535         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67536         glob_.h, glob-libc.h.
67537         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67538
67539 2005-09-12  Derek Price  <derek@ximbiot.com>
67540             Paul Eggert  <eggert@cs.ucla.edu>
67541
67542         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67543         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67544         protecting things that should be done only in gnulib contexts.
67545         * lib/glob_.h: New file, containing only the glob things needed for
67546         gnulib.
67547         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67548         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67549         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67550         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67551         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67552         and to respect the namespace rules better.
67553
67554 2005-09-08  Simon Josefsson  <jas@extundo.com>
67555
67556         * modules/socklen: New file.
67557
67558 2005-09-08  Simon Josefsson  <jas@extundo.com>
67559
67560         * m4/socklen.m4: New file.
67561
67562 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67563
67564         * modules/utimens (Files): Add m4/utimbuf.m4, since
67565         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67566         Reported by Sergey Poznyakoff.
67567
67568 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67569
67570         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67571         definitions, since that's the preferred style in glibc.
67572         Fix a minor spacing issue, and update copyright notice to match
67573         glibc's.
67574
67575 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67576
67577         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67578
67579 2005-09-06  Simon Josefsson  <jas@extundo.com>
67580
67581         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67582         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67583
67584 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67585
67586         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67587         warning.
67588
67589 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67590
67591         * config/srclist.txt: Add glibc bug 1302.
67592
67593 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67594
67595         Change bitset word type from unsigned int to unsigned long int,
67596         as this has better performance on typical 64-bit hosts.
67597         Port bitset code to hosts with unusual word sizes.
67598         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67599         (build_collating_symbol):
67600         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67601         argument is a bitset.  This is merely a style issue, but it makes
67602         it clearer that an entire array is expected.
67603         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67604         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67605         Port to the case where bitset_word is not the same as unsigned int.
67606         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67607         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67608         Likewise.
67609         * lib/regexec.c (check_dst_limits_calc_pos_1,
67610         check_subexp_matching_top):
67611         (build_trtable, group_nodes_into_DFAstates):
67612         Likewise.
67613         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67614         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67615         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67616         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67617         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67618         * lib/regcomp.c (optimize_subexps, lower_subexp):
67619         Work even if bitset_word has holes in its bitwise representation.
67620         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67621         * lib/regexec.c (check_dst_limits_calc_pos_1,
67622         check_subexp_matching_top):
67623         Likewise.
67624         * lib/regex_internal.c (re_string_reconstruct):
67625         Don't assume UCHAR_MAX == 255.
67626         * lib/regex_internal.h (bitset_set_all): Likewise.
67627         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67628         All uses changed.
67629         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67630         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67631         All uses changed.
67632         (BITSET_WORD_MAX): New macro.
67633         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67634         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67635         (bitset_empty, bitset_copy):
67636         Prefer sizeof (bitset) to multiplying it out ourselves.
67637         (bitset_not_merge): Remove; unused.
67638         (bitset_contain): Return bool, not unsigned int with one bit on.
67639         All callers changed.
67640         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67641         alignment than re_node_set; do this by defining a new internal
67642         type struct dests_alloc and using it to allocate memory.
67643
67644 2005-09-05  Bruno Haible  <bruno@clisp.org>
67645
67646         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67647         links.
67648
67649 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67650
67651         * modules/size_max (Makefile.am): Add size_max.h
67652
67653 2005-09-04  Derek Price  <derek@ximbiot.com>
67654
67655         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67656
67657 2005-09-03  Simon Josefsson  <jas@extundo.com>
67658
67659         * gnulib-tool: Fix typo.
67660
67661 2005-09-03  Simon Josefsson  <jas@extundo.com>
67662
67663         * config/srclist.txt: Add glibc bug 1293.
67664
67665 2005-09-03  Derek Price  <derek@ximbiot.com>
67666
67667         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67668         From Larry Jones <lawrence.jones@ugs.com>.
67669
67670 2005-09-02  Simon Josefsson  <jas@extundo.com>
67671
67672         * modules/socklen: New file.
67673
67674 2005-09-02  Simon Josefsson  <jas@extundo.com>
67675
67676         * modules/havelib: New module.
67677
67678         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67679         Use havelib.
67680
67681 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67682
67683         Check for arithmetic overflow when calculating sizes, to prevent
67684         some buffer-overflow issues.  These patches are conservative, in the
67685         sense that when I couldn't determine whether an overflow was possible,
67686         I inserted a run-time check.
67687         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67688         macros.
67689         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67690         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67691         (re_xnrealloc, re_x2nrealloc): New inline functions.
67692         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67693         parse_bracket_exp):
67694         (build_equiv_class, build_charclass): Check for arithmetic overflow
67695         in size expression calculations.
67696         * lib/regex_internal.c (re_string_realloc_buffers):
67697         (build_wcs_upper_buffer, re_node_set_add_intersect):
67698         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67699         (re_dfa_add_node, register_state): Likewise.
67700         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67701         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67702         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67703         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67704
67705 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67706
67707         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67708         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67709
67710 2005-09-02  Bruno Haible  <bruno@clisp.org>
67711
67712         Support for lib vs. lib64 distinction on biarch platforms.
67713         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67714         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67715         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67716
67717 2005-09-02  Bruno Haible  <bruno@clisp.org>
67718
67719         * gnulib-tool (import): In the other first-use case, provide defaults
67720         as well.
67721
67722 2005-09-02  Bruno Haible  <bruno@clisp.org>
67723
67724         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67725         patches not yet found in the latest gettext release.
67726
67727 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67728
67729         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67730         to avoid a collision with bits/local_lim.h in glibc.
67731         All uses changed.  Problem reported by Dmitry V. Levin in
67732         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67733
67734         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67735         bugs in int versus size_t comparisons.
67736         (re_string_context_at): Fix bug where the code assumed that
67737         Idx is signed.
67738
67739         Use bool where appropriate.
67740         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67741         All callers changed.
67742         (calc_eclosure_iter): Likewise, for ROOT arg.
67743         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67744         (build_charclass_op): Likewise, for NON_MATCH arg.
67745         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67746         (re_string_construct_common): Likewise, for ICASE arg.
67747         * lib/regexec.c (re_search_2_stub, re_search_stub):
67748         Likewise, for RET_LEN arg.
67749         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67750         (set_regs): Likewise, for FL_BACKTRACK arg.
67751         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67752         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67753         (calc_eclosure_iter, parse_bracket_exp):
67754         Use bool for internal variables that are booleans.
67755         * lib/regexec.c (re_search_internal, check_matching,
67756         proceed_next_node):
67757         (set_regs, build_sifted_states, sift_states_bkref):
67758         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
67759         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67760         (find_collation_sequence_value):
67761         Likewise.
67762         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
67763         (re_node_set_compare):
67764         Return bool, not int. All callers changed.
67765         * lib/regexec.c (check_halt_node_context, check_dst_limits):
67766         (build_trtable, check_node_accept): Likewise.
67767         * lib/regex_internal.h: Include stdbool.h.
67768
67769         Fix bugs uncovered when converting to bool.
67770         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
67771         failure instead of charging ahead blindly.
67772         * lib/regex_internal.c (register_state): Likewise.
67773         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
67774         for freeing internal storage.
67775         (group_nodes_into_DFA_states): Use unsigned int, not int, for
67776         bitset pieces used as boolean, to avoid undefined behavior
67777         on hosts that do int overflow checking.
67778
67779 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67780
67781         * config/srclist.txt: Add glibc bugs 1285-1287.
67782
67783 2005-09-01  Jim Meyering  <jim@meyering.net>
67784
67785         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
67786         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
67787         Require gl_STAT_MACROS, too.
67788
67789 2005-09-01  Bruno Haible  <bruno@clisp.org>
67790
67791         * gnulib-tool (import): In the first-use case, provide defaults.
67792
67793 2005-09-01  Bruno Haible  <bruno@clisp.org>
67794
67795         * gnulib-tool (func_import): Remove the .tmp files.
67796
67797 2005-09-01  Bruno Haible  <bruno@clisp.org>
67798
67799         * gnulib-tool (func_import): Fix handling of symbolic links.
67800
67801 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67802
67803         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
67804         old glibc regex code mishandles strings longer than 2**31 bytes.
67805         This patch fixes this when the regex code is used in gnulib
67806         (i.e., outside glibc).
67807
67808         This patch should not affect the use of the regex code inside
67809         glibc.  No doubt this problem also needs to be handled for glibc
67810         as well, but the result will be an incompatible change to the
67811         glibc ABI, and the old ABI will have to be supported too.  That
67812         can be the the subject for another patch.
67813
67814         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
67815         governing whether the rest of this patch is active.  By default,
67816         the macro is disabled and the patch has no effect.
67817         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
67818         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
67819         (struct re_pattern_buffer, re_search, re_search_2, re_match):
67820         (re_match_2, re_set_registers): Use the new types.
67821         * lib/regex_internal.h (Idx, re_hashval_t): New types.
67822         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
67823         New macros.
67824         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
67825         (re_string_context_at, bin_tree_t, re_dfastate_t):
67826         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
67827         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
67828         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
67829         (re_string_char_size_at, re_string_wchar_at):
67830         (re_string_elem_size_at):
67831         Use the new types and macros to port to 64-bit hosts.
67832         Use unsigned types for internal values, so that the code
67833         mostly works even for arrays larger than SSIZE_MAX.
67834         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
67835         (search_duplicated_node, calc_eclosure_iter, fetch_number):
67836         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
67837         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
67838         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
67839         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
67840         (calc_inveclosure, parse_dup_op, build_range_exp):
67841         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
67842         (fetch_number, create_token_tree, mark_opt_subexp):
67843         Likewise.
67844         * lib/regex_internal.c (re_string_construct_common,
67845         create_ci_newstate):
67846         (create_cd_newstate, re_string_allocate, re_string_construct):
67847         (re_string_realloc_buffers, build_wcs_upper_buffer):
67848         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67849         (re_string_reconstruct, re_string_peek_byte_case):
67850         (re_string_fetch_byte_case, re_string_context_at):
67851         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67852         (re_node_set_init_copy, re_node_set_add_intersect):
67853         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67854         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67855         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67856         (re_acquire_state, re_acquire_state_context, register_state):
67857         Likewise.
67858         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
67859         search_cur_bkref_entry):
67860         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
67861         (re_search_internal, re_search_2_stub, re_search_stub)
67862         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
67863         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
67864         (update_cur_sifted_state, check_dst_limits):
67865         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67866         (check_subexp_limits, sift_states_bkref, merge_state_array):
67867         (check_subexp_matching_top, get_subexp, get_subexp_sub):
67868         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
67869         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67870         (expand_bkref_cache, check_node_accept_bytes):
67871         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
67872         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
67873         (acquire_init_state_context, check_halt_node_context):
67874         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
67875         (sift_states_backward, clean_state_log_if_needed):
67876         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
67877         (find_recover_state, transit_state_sb, transit_state_mb):
67878         (transit_state_bkref, build_trtable, match_ctx_clean):
67879         Likewise.
67880         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
67881         to work around an assumption that REG_MISSING is negative.
67882
67883         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
67884         (seek_collating_symbol_entry) [defined _LIBC]:
67885         (lookup_collation_sequence_value) [defined _LIBC]:
67886         (build_range_exp, build_collating_symbol) [defined _LIBC]:
67887         Use prototypes rather than old-style function definitions.
67888         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
67889         (transit_state_sb) [0]:
67890         (find_collation_sequence_value) [defined _LIBC]: Likewise.
67891
67892         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
67893         rm_eo.
67894
67895         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
67896         (optimize_subexps, lower_subexp):
67897         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
67898         since the signed shift might overflow.  Use 1u<<31 instead.
67899         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67900         Likewise.
67901         * lib/regexec.c (check_dst_limits_calc_pos_1,
67902         check_subexp_matching_top): Likewise.
67903
67904         * lib/regcomp.c (optimize_subexps, lower_subexp):
67905         Use CHAR_BIT rather than 8, for clarity.
67906         * lib/regexec.c (check_dst_limits_calc_pos_1):
67907         (check_subexp_matching_top): Likewise.
67908         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
67909         have to worry about portability issues when shifting it left.
67910         Remove no-longer-needed test for table_size > 0.
67911         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
67912         in a word, as the resulting behavior is undefined.
67913         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
67914         in one case, a <= should have been an <, and in another case the
67915         whole test was missing.
67916         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
67917         the standard name CHAR_BIT.
67918         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
67919         this is not true on one's complement and signed-magnitude hosts.
67920
67921         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
67922         next_last_offset.
67923         (struct re_dfa_t): Remove unused member states_alloc.
67924         * lib/regcomp.c (init_dfa): Don't initialize unused members.
67925
67926 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67927
67928         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
67929         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
67930         and large-file glibc and in 32-bit large-file Solaris.
67931
67932 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67933
67934         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
67935         lengths fit in regoff_t; this isn't true if regoff_t is the same
67936         width as size_t.
67937         * lib/regex.c (re_search_internal): 5th arg is LAST_START
67938         (= START + RANGE) instead of RANGE.  This avoids overflow
67939         problems when regoff_t is the same width as size_t.
67940         All callers changed.
67941         (re_search_2_stub): Check for overflow when adding the
67942         sizes of the two strings.
67943         (re_search_stub): Check for overflow when adding START
67944         to RANGE; if it occurs, substitute the extreme value.
67945
67946 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67947
67948         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
67949
67950 2005-08-31  Jim Meyering  <jim@meyering.net>
67951
67952         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
67953         a pointer-to-const.
67954         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67955         (register_state): Likewise.
67956         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67957         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67958         (group_nodes_into_DFAstates): Likewise.
67959
67960 2005-08-31  Jim Meyering  <jim@meyering.net>
67961
67962         * check-module: Add a FIXME comment.
67963
67964 2005-08-31  Eric Blake  <ebb9@byu.net>
67965
67966         * modules/unistd-safer (Files): Add unistd--.h.
67967         * modules/stdio-safer (Files): Add stdio--.h.
67968
67969 2005-08-31  Derek Price  <derek@ximbiot.com>
67970
67971         * lib/getdelim.c (getdelim): Return EOF on EOF.
67972         Reported by Larry Jones <lawrence.jones@ugs.com>.
67973
67974 2005-08-31  Bruno Haible  <bruno@clisp.org>
67975
67976         Avoid unnecessary diffs in the generated lib/Makefile.am.
67977         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67978         the generated files.
67979         (func_import): Don't set cmd.
67980
67981 2005-08-31  Bruno Haible  <bruno@clisp.org>
67982
67983         * lib/strstr.c: Include <stddef.h>, for NULL.
67984         * lib/strcasestr.c: Likewise.
67985         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67986
67987 2005-08-31  Bruno Haible  <bruno@clisp.org>
67988
67989         * gnulib-tool: New option --macro-prefix.
67990         (func_import): Use macro_prefix.
67991         (import): Handle option --macro-prefix.
67992
67993 2005-08-31  Bruno Haible  <bruno@clisp.org>
67994
67995         * gnulib-tool (import): Rename most ac_* variables to cached_*.
67996         Also use new variables cached_lgpl, cached_libtool.
67997
67998 2005-08-31  Bruno Haible  <bruno@clisp.org>
67999
68000         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
68001         always instantiating them.
68002
68003 2005-08-31  Bruno Haible  <bruno@clisp.org>
68004
68005         * gnulib-tool (func_import): Read the previous cached settings
68006         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
68007         earlier added by gnulib but are now dropped. Warn when a gnulib file
68008         overwrites a non-gnulib file.
68009
68010 2005-08-31  Bruno Haible  <bruno@clisp.org>
68011
68012         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
68013         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
68014         projects that don't keep autogenerated files in CVS. Put into
68015         actioncmd only the specified modules, not the transitive closure.
68016
68017 2005-08-31  Bruno Haible  <bruno@clisp.org>
68018
68019         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
68020         Create directories that shall be filled.
68021         (import): Don't look for gl_* macros in configure.ac. Recurse across
68022         all directories containing a gnulib-cache.m4 files, if meaningful.
68023
68024 2005-08-31  Bruno Haible  <bruno@clisp.org>
68025
68026         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
68027         (import): Set seen_libtool when we see gl_LIBTOOL.
68028
68029 2005-08-31  Bruno Haible  <bruno@clisp.org>
68030
68031         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
68032         declaration macro definitions from generated gnulib.m4.
68033
68034 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
68035
68036         * lib/iconvme.h: Add prototype for iconv_alloc.
68037
68038 2005-08-29  Simon Josefsson  <jas@extundo.com>
68039
68040         * lib/iconvme.c: Fix errno.
68041
68042 2005-08-29  Bruno Haible  <bruno@clisp.org>
68043
68044         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
68045         that it works when the directory contains spaces.
68046
68047 2005-08-29  Bruno Haible  <bruno@clisp.org>
68048
68049         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68050
68051 2005-08-29  Bruno Haible  <bruno@clisp.org>
68052
68053         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68054         Emit more advice.
68055
68056 2005-08-29  Bruno Haible  <bruno@clisp.org>
68057         and Stepan Kasal  <kasal@ucw.cz>
68058
68059         * check-module: If more parameters are given, check each of them
68060         separately; add more exceptions, as noted by Jim Meyering.
68061         (check_module): New procedure.
68062         (%exempt_header): Now contains all exceptions.
68063
68064 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
68065
68066         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
68067
68068 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68069
68070         * lib/iconvme.c: Split iconv_string into iconv_alloc.
68071
68072 2005-08-28  Bruno Haible  <bruno@clisp.org>
68073
68074         * m4/gnulib-tool.m4: New file.
68075
68076 2005-08-27  Jim Meyering  <jim@meyering.net>
68077
68078         * modules/unistd-safer (Files): Add pipe-safer.c.
68079         * modules/fcntl-safer (Files): Add creat-safer.c.
68080
68081 2005-08-27  Jim Meyering  <jim@meyering.net>
68082
68083         * m4/stdlib-safer.m4: New file.  From coreutils.
68084         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
68085         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
68086         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68087         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68088         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68089
68090 2005-08-27  Jim Meyering  <jim@meyering.net>
68091
68092         * lib/fopen-safer.c: Merge minor changes from coreutils.
68093         * lib/dup-safer.c: Likewise.
68094         * lib/fd-safer.c: Likewise.
68095
68096         Merge from coreutils.
68097         * lib/stdio--.h: New file.
68098         * lib/stdlib--.h: New file.
68099         * lib/mkstemp-safer.c: New file.
68100
68101         GNU tar needs these.
68102         * lib/pipe-safer.c: New file.
68103         * lib/creat-safer.c: New file.
68104         * lib/fcntl--.h (creat): Define to creat_safer.
68105         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68106         * lib/unistd--.h (pipe): Define to pipe_safer.
68107         * lib/unistd-safer.h: Declare pipe_safer.
68108
68109 2005-08-26  Simon Josefsson  <jas@extundo.com>
68110
68111         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68112         Haible <bruno@clisp.org>.
68113
68114 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68115
68116         * lib/regex_internal.h: Remove all references to
68117         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68118         or better.
68119         (bitset_not, bitset_merge, bitset_not_merge):
68120         (bitset_mask, re_string_allocate, re_string_construct):
68121         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68122         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68123         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68124         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68125         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68126         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68127         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68128         (re_acquire_state_context):
68129         Remove unnecessary forward decls.
68130         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68131         Put __attribute at function definition,
68132         now that the function decl has been removed.
68133         * lib/regex_internal.c (re_string_peek_byte_case):
68134         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68135         Likewise.
68136
68137 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68138
68139         * m4/regex.m4: Add AC_PREREQ(2.50).
68140         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68141
68142 2005-08-25  Simon Josefsson  <jas@extundo.com>
68143
68144         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68145         __fsetlocking.
68146
68147 2005-08-25  Simon Josefsson  <jas@extundo.com>
68148
68149         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68150         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68151         GLIBC specific code.
68152
68153 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68154
68155         Make regex safe for g++.  This fixes one real bug (an "err"
68156         that should have been "*err").  g++ problem reported by
68157         Sam Steingold.
68158         * lib/regex_internal.h (re_calloc): New macro, consistent with
68159         re_malloc etc.  All callers of calloc changed to use re_calloc.
68160         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68161         not int.  All callers changed.
68162         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68163         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68164         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68165         (find_recover_state): Change "err" to "*err"; this fixes what
68166         appears to be a real bug.
68167         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68168         versus int.
68169
68170 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68171
68172         * modules/regex (Depends-on): Add malloc, since the code
68173         assumes that !malloc(0) means failure.
68174
68175 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68176
68177         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68178
68179         alloca modernization/simplification for regex.
68180         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68181         needs to be at the start of the file, and can be moved into
68182         regex_internal.h and simplified.
68183         * lib/regex_internal.h: Include <alloca.h>.
68184         (__libc_use_alloca) [!defined _LIBC]: New macro.
68185         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68186         now works outside glibc.
68187
68188 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68189
68190         * config/srclist.txt: Add glibc bugs 1241, 1245.
68191
68192 2005-08-25  Jim Meyering  <jim@meyering.net>
68193
68194         * lib/open-safer.c: Include <config.h>.
68195         Otherwise, we'd lose LARGEFILE support in any file using
68196         e.g. "fcntl--.h"
68197
68198 2005-08-25  Bruno Haible  <bruno@clisp.org>
68199
68200         * m4/minmax.m4: Require autoconf 2.52.
68201         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68202         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68203         alternatives of translit over the alphabet.
68204         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68205
68206 2005-08-24  Simon Josefsson  <jas@extundo.com>
68207
68208         * tests/test-getpass.c: New file.
68209
68210 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68211
68212         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68213         for GNU regex features.
68214
68215 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68216
68217         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68218         * lib/regex.h (regerror): Likewise.
68219
68220         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68221         requires this.  (The code never needed it.)
68222
68223         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68224         All uses of recently-renamed identifiers changed to use the new,
68225         POSIX-compliant names.  The code will build and run just fine
68226         without these changes, but it's better to eat our own dog food
68227         and use the standard-conforming names.
68228
68229         * lib/regex.h: Fix a multitude of POSIX name space violations.
68230         These changes have an effect only for programs that define
68231         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68232         do not change anything for programs compiled in the normal way.
68233         Also, there is no effect on the ABI.
68234
68235         (_REGEX_SOURCE): New macro.
68236         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68237         defined and _GNU_SOURCE is not; this fixes a name space violation.
68238
68239         Rename the following macros to obey POSIX requirements.
68240         The old names are still visible as macros if _REGEX_SOURCE is defined.
68241         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68242         RE_BACKSLASH_ESCAPE_IN_LISTS.
68243         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68244         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68245         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68246         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68247         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68248         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68249         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68250         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68251         (REG_INTERVALS): renamed from RE_INTERVALS.
68252         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68253         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68254         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68255         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68256         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68257         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68258         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68259         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68260         RE_UNMATCHED_RIGHT_PAREN_ORD.
68261         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68262         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68263         (REG_DEBUG): renamed from RE_DEBUG.
68264         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68265         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68266         unusual, since we can't clash with the POSIX REG_ICASE.
68267         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68268         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68269         (REG_NO_SUB): renamed from RE_NO_SUB.
68270         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68271         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68272         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68273         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68274         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68275         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68276         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68277         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68278         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68279         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68280         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68281         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68282         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68283         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68284         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68285         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68286         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68287         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68288         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68289         (REG_FIXED): Renamed from REGS_FIXED.
68290         (REG_NREGS): Renamed from RE_NREGS.
68291
68292         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68293         of other REG_* macros, since POSIX says the user is allowed to
68294         #undef these macros selectively.
68295
68296         (reg_errcode_t): Update comment stating what other tables need
68297         to be consistent.
68298
68299         Rename the following enum values to obey POSIX requirements.
68300         The old names are still visible as macros.
68301         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68302         is not defined, since GNU is supposed to be a superset of POSIX as
68303         much as possible, and since we want reg_errcode_t to be a signed
68304         type for implementation consistency.
68305         (_REG_NOERROR): Renamed from REG_NOERROR.
68306         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68307         (_REG_BADPAT): Renamed from REG_BADPAT.
68308         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68309         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68310         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68311         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68312         (_REG_EBRACK): Renamed from REG_EBRACK.
68313         (_REG_EPAREN): Renamed from REG_EPAREN.
68314         (_REG_EBRACE): Renamed from REG_EBRACE.
68315         (_REG_BADBR): Renamed from REG_BADBR.
68316         (_REG_ERANGE): Renamed from REG_ERANGE.
68317         (_REG_ESPACE): Renamed from REG_ESPACE.
68318         (_REG_BADRPT): Renamed from REG_BADRPT.
68319         (_REG_EEND): Renamed from REG_EEND.
68320         (_REG_ESIZE): Renamed from REG_ESIZE.
68321         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68322         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68323         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68324         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68325         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68326
68327         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68328         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68329         changed.  But support the old name if the new one is not defined
68330         and if _REGEX_SOURCE.
68331
68332         Change the following member names in struct re_pattern_buffer.
68333         The old names are still supported if !_REGEX_SOURCE.
68334         The new names are always supported, regardless of _REGEX_SOURCE.
68335         (re_buffer): Renamed from buffer.
68336         (re_allocated): Renamed from allocated.
68337         (re_used): Renamed from used.
68338         (re_syntax): Renamed from syntax.
68339         (re_fastmap): Renamed from fastmap.
68340         (re_translate): Renamed from translate.
68341         (re_can_be_null): Renamed from can_be_null.
68342         (re_regs_allocated): Renamed from regs_allocated.
68343         (re_fastmap_accurate): Renamed from fastmap_accurate.
68344         (re_no_sub): Renamed from no_sub.
68345         (re_not_bol): Renamed from not_bol.
68346         (re_not_eol): Renamed from not_eol.
68347         (re_newline_anchor): Renamed from newline_anchor.
68348
68349         Change the following member names in struct re_registers.
68350         The old names are still supported if !_REGEX_SOURCE.
68351         The new names are always supported, regardless of _REGEX_SOURCE.
68352         (rm_num_regs): Renamed from num_regs.
68353         (rm_start): Renamed from start.
68354         (rm_end): Renamed from end.
68355
68356         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68357         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68358         Prepend __ to parameter names.
68359
68360         Undo yesterday's changes.
68361
68362 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68363
68364         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68365         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68366         lib/regex.c.
68367
68368 2005-08-24  Jim Meyering  <jim@meyering.net>
68369
68370         Sync from coreutils.
68371         * m4/fcntl-safer.m4: New file.
68372
68373         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68374         and object files for this module.
68375
68376 2005-08-24  Jim Meyering  <jim@meyering.net>
68377
68378         Sync from coreutils.
68379         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68380
68381 2005-08-24  Jim Meyering  <jim@meyering.net>
68382
68383         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68384         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68385
68386 2005-08-24  Jim Meyering  <jim@meyering.net>
68387
68388         * modules/fcntl-safer: New module.
68389         * modules/fts (Depends-on): Add fcntl-safer.
68390         * MODULES.html.sh (File descriptor based Input/Output):
68391         Add fcntl-safer.
68392
68393 2005-08-24  Bruno Haible  <bruno@clisp.org>
68394
68395         Support for unit test modules.
68396         * modules/README: Mention tests modules.
68397         * modules/TEMPLATE-TESTS: New file.
68398         * gnulib-tool: New options --extract-tests-module, --with-tests and
68399         --tests-base (unused for the moment).
68400         (testsbase, inctests): New variables.
68401         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68402         (func_verify_module): Exclude TEMPLATE-TESTS.
68403         (func_verify_nontests_module, func_verify_tests_module): New functions.
68404         (func_get_dependencies): Add implicit dependency for tests modules.
68405         (func_get_tests_module): New function.
68406         (func_modules_transitive_closure): When --with-tests was specified,
68407         include the unit tests as well, unless explicitly avoided.
68408         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68409         (func_emit_tests_Makefile_am): New function.
68410         (func_create_testdir): When --with-tests was specified, emit a
68411         tests/ directory.
68412         * MODULES.html.sh (Future developments): Update.
68413
68414 2005-08-24  Bruno Haible  <bruno@clisp.org>
68415
68416         * modules/tls-tests: New file.
68417         * tests/test-tls.c: New file, from GNU gettext.
68418
68419 2005-08-24  Bruno Haible  <bruno@clisp.org>
68420
68421         * modules/lock-tests: New file.
68422         * tests/test-lock.c: New file, from GNU gettext.
68423
68424 2005-08-24  Bruno Haible  <bruno@clisp.org>
68425
68426         * lib/lock.h: Add multiple inclusion guard.
68427         * lib/tls.h: Add multiple inclusion guard.
68428
68429 2005-08-24  Bruno Haible  <bruno@clisp.org>
68430
68431         * gnulib-tool: Add support for the --aux-dir option to
68432         --create-testdir, --create-megatestdir, --test, --megatest.
68433         (func_create_testdir, func_create_megatestdir): Optionally emit a
68434         AC_CONFIG_AUX_DIR directive.
68435         (create-testdir, create-megatestdir, test, megatest): Provide a
68436         default value for $auxdir.
68437
68438 2005-08-24  Bruno Haible  <bruno@clisp.org>
68439
68440         * gnulib-tool (import): Use compound statement instead of subshell
68441         where possible.
68442
68443 2005-08-24  Bruno Haible  <bruno@clisp.org>
68444
68445         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68446
68447 2005-08-24  Bruno Haible  <bruno@clisp.org>
68448
68449         * gnulib-tool (func_version): Update.
68450
68451 2005-08-24  Bruno Haible  <bruno@clisp.org>
68452
68453         * gnulib-tool (func_import, func_create_testdir,
68454         func_create_megatestdir): Quote all autoconf macro arguments.
68455
68456 2005-08-24  Bruno Haible  <bruno@clisp.org>
68457
68458         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68459         option --force, because --force causes the aclocal.m4 of each
68460         subdirectory to be newer than the corresponding config.h.in.
68461
68462 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68463
68464         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68465         All contents moved to gl_REGEX.
68466         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68467         assume that it does.
68468
68469 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68470
68471         * lib/regex.h (REG_NOSYS)
68472         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68473         Define, since POSIX requires it as of 2001.
68474         (_REG_ENOSYS)
68475         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68476         New private symbol, used to keep the enum signed in all cases.
68477         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68478         Youngman in
68479         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68480
68481         * lib/regex_internal.c (re_string_skip_chars, register_state):
68482         (calc_state_hash):
68483         Remove forward decls; no longer needed now that we use prototypes.
68484         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68485         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68486         (clean_state_log_if_needed): Likewise.
68487
68488 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68489
68490         * config/srclist.txt: Add glibc bugs 1231-1233.
68491
68492 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68493
68494         Fix problems reported by Sam Steingold in
68495         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68496         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68497         assumed that reg_errcode_t is a signed type, which is not
68498         necessarily true if _XOPEN_SOURCE is not defined.
68499         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68500         since some compilers warn about it otherwise.
68501
68502 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68503
68504         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68505         (init_word_char, create_initial_state, duplicate_node_closure):
68506         (fetch_token, peek_token_bracket, build_range_exp):
68507         (build_collating_symbol): Remove forward decls; no longer needed
68508         now that we use prototypes.
68509
68510         * lib/regcomp.c:
68511         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68512         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68513         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68514         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68515         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68516         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68517         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68518         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68519         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68520         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68521         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68522         (build_charclass, build_charclass_op, fetch_number, create_tree):
68523         (create_token_tree, mark_opt_subexp, duplicate_tree):
68524         Use prototypes rather than old-style definitions.
68525
68526         * lib/regex_internal.c:
68527         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68528         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68529         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68530         (re_string_reconstruct, re_string_peek_byte_case):
68531         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68532         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68533         (re_node_set_init_copy, re_node_set_add_intersect):
68534         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68535         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68536         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68537         (re_acquire_state, re_acquire_state_context, register_state):
68538         (create_ci_newstate, create_cd_newstate, free_state):
68539         Likewise.
68540         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68541         re_search_2):
68542         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68543         (re_search_internal, prune_impossible_nodes):
68544         (acquire_init_state_context, check_matching, static):
68545         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68546         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68547         (update_regs, sift_states_backward, build_sifted_states):
68548         (clean_state_log_if_needed, merge_state_array):
68549         (update_cur_sifted_state, add_epsilon_src_nodes):
68550         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68551         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68552         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68553         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68554         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68555         (check_arrival, check_arrival_add_next_nodes):
68556         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68557         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68558         (check_node_accept_bytes, check_node_accept, extend_buffers):
68559         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68560         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68561         (sift_ctx_init):
68562         Likewise.
68563
68564         * lib/regex_internal.h:
68565         (re_string_allocate, re_string_construct, re_string_reconstruct):
68566         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68567         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68568         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68569         (re_string_context_at, re_string_peek_byte_case):
68570         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68571         is defined, since we now use prototypes always.
68572
68573         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68574         C89 or better.  All uses removed.
68575
68576 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         * config/srclist.txt: Add glibc bugs 1220-1227.
68579
68580 2005-08-20  Jim Meyering  <jim@meyering.net>
68581
68582         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68583         of unused local, dfa.
68584
68585 2005-08-20  Bruno Haible  <bruno@clisp.org>
68586
68587         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68588
68589 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68590
68591         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68592         (re_node_set_insert_last, re_dfa_add_node):
68593         Rename local variables to avoid GCC shadowing warnings.
68594
68595 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68598         [defined lint]: Suppress bogus uninitialized-variable warnings.
68599
68600         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68601         and let the caller return REG_ESPACE if out of space.  This
68602         removes an uninitialied-variable warning with GCC 4.0.1, and also
68603         avoids taking the address of a local variable.  All callers
68604         changed.
68605
68606 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68607
68608         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68609         $LIBCSRC/posix/regexec.c.
68610         Add glibc bug 1217 for regcomp.c.
68611
68612 2005-08-19  Jim Meyering  <jim@meyering.net>
68613
68614         * lib/regexec.c (proceed_next_node): Redo local variables to
68615         avoid GCC shadowing warnings.
68616
68617 2005-08-18  Bruno Haible  <bruno@clisp.org>
68618
68619         * lib/strstr.c (strstr): Fix return value in multibyte case.
68620         * lib/strcasestr.c (strcasestr): Likewise.
68621
68622 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68623
68624         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68625
68626 2005-08-17  Jim Meyering  <jim@meyering.net>
68627
68628         Make the %s format (seconds since the epoch) work for a negative
68629         number and when used with a zero-padded field width, e.g. %015s.
68630
68631         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68632         label so that it precedes the code to set `digits'.  Otherwise,
68633         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68634         print `00-22'.  Now, it prints `-0022', as it should.
68635
68636 2005-08-17  Bruno Haible  <bruno@clisp.org>
68637
68638         * modules/strstr (Files): Add m4/mbrtowc.m4.
68639         (Depends-on): Add mbuiter.
68640
68641 2005-08-17  Bruno Haible  <bruno@clisp.org>
68642
68643         * modules/strcasestr: New file.
68644         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68645         strcasestr.
68646
68647 2005-08-17  Bruno Haible  <bruno@clisp.org>
68648
68649         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68650
68651 2005-08-17  Bruno Haible  <bruno@clisp.org>
68652
68653         * modules/mbuiter: New file.
68654         * MODULES.html.sh (Extended multibyte and wide character utilities):
68655         Add mbuiter.
68656
68657 2005-08-17  Bruno Haible  <bruno@clisp.org>
68658
68659         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68660         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68661
68662 2005-08-17  Bruno Haible  <bruno@clisp.org>
68663
68664         * m4/strcasestr.m4: New file.
68665
68666 2005-08-17  Bruno Haible  <bruno@clisp.org>
68667
68668         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68669         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68670
68671 2005-08-17  Bruno Haible  <bruno@clisp.org>
68672
68673         * lib/strcasestr.h: New file.
68674         * lib/strcasestr.c: New file.
68675
68676 2005-08-17  Bruno Haible  <bruno@clisp.org>
68677
68678         * lib/strcasecmp.c: Use mbuiter.h.
68679
68680 2005-08-17  Bruno Haible  <bruno@clisp.org>
68681
68682         * lib/mbuiter.h: New file.
68683
68684 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68685
68686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68687         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68688         and gl_GETOPT are both invoked via different paths (as happens
68689         with GNU tar CVS because it uses both argp and getopt), the former
68690         wins.
68691
68692 2005-08-16  Bruno Haible  <bruno@clisp.org>
68693
68694         * modules/tls: New file.
68695         * MODULES.html.sh (Multithreading): Add tls.
68696
68697 2005-08-16  Bruno Haible  <bruno@clisp.org>
68698
68699         * modules/strnlen1: New file.
68700         * MODULES.html.sh (String handling): Add strnlen1.
68701
68702 2005-08-16  Bruno Haible  <bruno@clisp.org>
68703
68704         * modules/strcase (Files): Add m4/mbrtowc.m4.
68705         (Depends-on): Add strnlen1, mbchar.
68706
68707 2005-08-16  Bruno Haible  <bruno@clisp.org>
68708
68709         * modules/mbiter: New file.
68710         * MODULES.html.sh (Extended multibyte and wide character utilities):
68711         Add mbiter.
68712
68713 2005-08-16  Bruno Haible  <bruno@clisp.org>
68714
68715         * modules/mbfile: New file.
68716         * MODULES.html.sh (Extended multibyte and wide character utilities):
68717         Add mbfile.
68718
68719 2005-08-16  Bruno Haible  <bruno@clisp.org>
68720
68721         * modules/mbchar: New file.
68722         * MODULES.html.sh (Extended multibyte and wide character utilities):
68723         New section.
68724
68725 2005-08-16  Bruno Haible  <bruno@clisp.org>
68726
68727         * m4/tls.m4: New file, from GNU gettext.
68728
68729 2005-08-16  Bruno Haible  <bruno@clisp.org>
68730
68731         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68732         always.
68733         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68734
68735 2005-08-16  Bruno Haible  <bruno@clisp.org>
68736
68737         * m4/mbiter.m4: New file.
68738
68739 2005-08-16  Bruno Haible  <bruno@clisp.org>
68740
68741         * m4/mbfile.m4: New file.
68742
68743 2005-08-16  Bruno Haible  <bruno@clisp.org>
68744
68745         * m4/mbchar.m4: New file.
68746
68747 2005-08-16  Bruno Haible  <bruno@clisp.org>
68748
68749         * lib/tls.h: New file, from GNU gettext.
68750         * lib/tls.c: New file, from GNU gettext.
68751
68752 2005-08-16  Bruno Haible  <bruno@clisp.org>
68753
68754         * lib/strnlen1.h: New file.
68755         * lib/strnlen1.c: New file.
68756
68757 2005-08-16  Bruno Haible  <bruno@clisp.org>
68758
68759         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
68760         (mbi_init): Update.
68761         (mbi_avail, mbi_advance): Let the iteration end before the terminating
68762         NUL byte, not after it.
68763
68764 2005-08-16  Bruno Haible  <bruno@clisp.org>
68765
68766         * lib/strcase.h (strcasecmp): Add note in comments.
68767         * lib/strncasecmp.c: Use code from strcasecmp.c.
68768         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
68769         (strcasecmp): Work correctly in multibyte locales.
68770
68771 2005-08-16  Bruno Haible  <bruno@clisp.org>
68772
68773         * lib/mbiter.h: New file.
68774
68775 2005-08-16  Bruno Haible  <bruno@clisp.org>
68776
68777         * lib/mbfile.h: New file.
68778
68779 2005-08-16  Bruno Haible  <bruno@clisp.org>
68780
68781         * lib/mbchar.h: New file.
68782         * lib/mbchar.c: New file.
68783
68784 2005-08-16  Bruno Haible  <bruno@clisp.org>
68785
68786         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
68787         the valid ones. Makes the comparison operations transitive:
68788         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
68789         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
68790
68791 2005-08-15  Simon Josefsson  <jas@extundo.com>
68792
68793         * modules/ssize_t (License): Change to 'unlimited'.
68794
68795         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
68796
68797 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68798
68799         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
68800         Add comments for each pending glibc patch.
68801
68802 2005-08-15  Bruno Haible  <bruno@clisp.org>
68803
68804         * lib/regex.h (__restrict_arr): Don't define to __restrict if
68805         __cplusplus is defined.
68806
68807 2005-08-14  Jim Meyering  <jim@meyering.net>
68808
68809         Sync from coreutils.
68810
68811         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
68812         Use the hash-table-based cycle-detection code not just when
68813         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
68814         Reported by James Youngman in
68815         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
68816         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
68817         FTS_TIGHT_CYCLE_CHECK.
68818         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
68819         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
68820         once again.
68821         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
68822         * lib/fts.c (fd_safer): Remove decl.
68823         Include fcntl--.h rather than unistd-safer.h
68824         (fts_safe_changedir): Don't call fd_safer; no longer needed
68825         now that we include fcntl--.h.
68826
68827 2005-08-12  Simon Josefsson  <jas@extundo.com>
68828
68829         * modules/getndelim2: Use ssize_t module.
68830         * modules/getnline: Likewise.
68831         * modules/safe-read: Likewise.
68832         * modules/xreadlink: Likewise.
68833
68834         * modules/ssize_t: New file.
68835
68836 2005-08-12  Simon Josefsson  <jas@extundo.com>
68837
68838         * m4/readline.m4: Look for termcap, curses or ncurses if required.
68839
68840 2005-08-12  Simon Josefsson  <jas@extundo.com>
68841
68842         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68843         ssize_t.
68844
68845 2005-08-12  Simon Josefsson  <jas@extundo.com>
68846
68847         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
68848         readline, getdelim and check_version.
68849         (Support for systems lacking ISO C 99: Sizes of integer types):
68850         Add size_max.
68851
68852 2005-08-12  Bruno Haible  <bruno@clisp.org>
68853
68854         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
68855
68856 2005-08-11  Simon Josefsson  <jas@extundo.com>
68857
68858         * modules/readline: New file.
68859
68860         * modules/strnlen (Files): Add strnlen.h.
68861
68862 2005-08-11  Simon Josefsson  <jas@extundo.com>
68863
68864         * m4/readline.m4: New file.
68865
68866 2005-08-11  Simon Josefsson  <jas@extundo.com>
68867
68868         * lib/readline.h, readline.c: New file.
68869
68870 2005-08-11  Simon Josefsson  <jas@extundo.com>
68871
68872         * doc/gnulib.texi (Initial import, Finishing touches): Mention
68873         gl_AVOID.
68874
68875 2005-08-11  Bruno Haible  <bruno@clisp.org>
68876
68877         * lib/strnlen.h (strnlen): Change parameter name to match comment.
68878
68879 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
68880
68881         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
68882
68883 2005-08-10  Simon Josefsson  <jas@extundo.com>
68884
68885         * tests/test-iconvme.c: New file.
68886
68887 2005-08-10  Simon Josefsson  <jas@extundo.com>
68888
68889         * m4/strnlen.m4: New file.
68890
68891         * m4/strndup.m4: Don't check for strnlen declaration, done in
68892         strnlen.m4.
68893
68894 2005-08-10  Simon Josefsson  <jas@extundo.com>
68895
68896         * lib/strndup.c: Use strnlen.h.
68897
68898         * lib/strnlen.h: New file.
68899
68900 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68901
68902         * README: Typos.
68903
68904 2005-08-02  Simon Josefsson  <jas@extundo.com>
68905
68906         * modules/readline: New file.
68907
68908 2005-08-02  Simon Josefsson  <jas@extundo.com>
68909
68910         * modules/getdelim: New file.
68911
68912         * modules/getline: Rewrite, don't use getndelim2.
68913
68914 2005-08-02  Simon Josefsson  <jas@extundo.com>
68915
68916         * m4/getline.m4: Separate out getdelim stuff into separate module.
68917
68918         * m4/getdelim.m4: New file.
68919
68920 2005-08-02  Simon Josefsson  <jas@extundo.com>
68921
68922         * lib/getline.h, getline.c: Rewrite.
68923
68924         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
68925
68926 2005-07-31  Bruno Haible  <bruno@clisp.org>
68927
68928         * lib/lock.h (gl_lock_initializer): New macro.
68929         (gl_lock_define_initialized): Use it.
68930         (gl_rwlock_initializer): New macro.
68931         (gl_rwlock_define_initialized): Use it.
68932         (gl_recursive_lock_initializer): New macro.
68933         (gl_recursive_lock_define_initialized): Use it.
68934
68935 2005-07-30  Karl Berry  <karl@gnu.org>
68936
68937         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
68938         Report from Ben Pfaff, regarding getopt.
68939
68940 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
68941
68942         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
68943         normal way.
68944         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
68945         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
68946         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
68947         (gl_GETOPT): Use the new macros.  Most of the implementation
68948         is moved to the new macros.  This is for programs like Emacs
68949         that don't want all the functionality of gl_GETOPT.
68950
68951 2005-07-26  Bruno Haible  <bruno@clisp.org>
68952
68953         * m4/lock.m4: Update from GNU gettext.
68954
68955 2005-07-26  Bruno Haible  <bruno@clisp.org>
68956
68957         * lib/lock.h: Update from GNU gettext.
68958         * lib/lock.c: Update from GNU gettext.
68959
68960 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68961
68962         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68963         obsolescent AC_TRY_RUN.  Include the default includes files, for
68964         'exit'.
68965
68966 2005-07-24  Bruno Haible  <bruno@clisp.org>
68967
68968         * modules/visibility: New file.
68969         * MODULES.html.sh (Misc): Add visibility.
68970
68971 2005-07-24  Bruno Haible  <bruno@clisp.org>
68972
68973         * m4/visibility.m4: New file.
68974
68975 2005-07-24  Bruno Haible  <bruno@clisp.org>
68976
68977         * doc/visibility.texi: New file.
68978
68979 2005-07-22  Bruno Haible  <bruno@clisp.org>
68980
68981         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68982         $(ALLOCA_H), redundant through BUILT_SOURCES.
68983         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68984         redundant through BUILT_SOURCES.
68985         * modules/byteswap (Makefile.am): Remove explicit dependency on
68986         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68987         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68988         $(FNMATCH_H), redundant through BUILT_SOURCES.
68989         * modules/getopt (Makefile.am): Remove explicit dependency on
68990         $(GETOPT_H), redundant through BUILT_SOURCES.
68991         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68992         redundant through BUILT_SOURCES.
68993         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
68994         redundant through BUILT_SOURCES.
68995         * modules/stdbool (Makefile.am): Remove explicit dependency on
68996         $(STDBOOL_H), redundant through BUILT_SOURCES.
68997         * modules/stdint (Makefile.am): Remove explicit dependency on
68998         $(STDINT_H), redundant through BUILT_SOURCES.
68999         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
69000         Remove explicit dependency on $(SYSEXITS_H).
69001         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
69002
69003 2005-07-18  Simon Josefsson  <jas@extundo.com>
69004
69005         * lib/check-version.c (check_version): Accept identical versions too.
69006
69007 2005-07-18  Bruno Haible  <bruno@clisp.org>
69008
69009         * modules/lock: New file.
69010         * MODULES.html.sh (Multithreading): New section.
69011
69012 2005-07-18  Bruno Haible  <bruno@clisp.org>
69013
69014         * m4/lock.m4: New file, from GNU gettext.
69015
69016 2005-07-18  Bruno Haible  <bruno@clisp.org>
69017
69018         * lib/lock.h: New file, from GNU gettext.
69019         * lib/lock.c: New file, from GNU gettext.
69020
69021 2005-07-18  Bruno Haible  <bruno@clisp.org>
69022
69023         * lib/lock.h (gl_once_t): New type.
69024         (gl_once_define, gl_once): New macros.
69025         * lib/lock.c (fresh_once): New variable.
69026         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
69027         functions.
69028
69029 2005-07-16  Simon Josefsson  <jas@extundo.com>
69030
69031         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
69032         workaround, suggested by Bruno.
69033
69034 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69035
69036         * modules/xalloc (Depends-on): Add xalloc-die.
69037         * modules/xvasprintf (Depends-on): Add xalloc-die.
69038
69039 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69040
69041         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
69042         with a minor change.
69043
69044 2005-07-15  Bruno Haible  <bruno@clisp.org>
69045
69046         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
69047         When using lib/poll.c, define poll as rpl_poll.
69048
69049 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69050
69051         * modules/argp (Depends-on): Remove unlocked-io.
69052
69053 2005-07-14  Derek Price  <derek@ximbiot.com>
69054
69055         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69056         for glob symlink bug.
69057
69058 2005-07-14  Bruno Haible  <bruno@clisp.org>
69059
69060         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
69061         Instead, test for *_unlocked function declarations directly.
69062
69063 2005-07-11  Simon Josefsson  <jas@extundo.com>
69064
69065         * modules/size_max: New file.
69066
69067         * modules/xsize: Depend on size_max module for size_max.m4.
69068
69069 2005-07-11  Simon Josefsson  <jas@extundo.com>
69070
69071         * lib/size_max.h: New file.
69072
69073 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
69074
69075         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
69076         copyright symbol and the year.
69077         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
69078         (version_etc_va): Use parameterized copyright notice.
69079         Reword to conform to the current GNU coding standards.
69080
69081 2005-07-11  Karl Berry  <karl@gnu.org>
69082
69083         * doc/gnulib.texi (Quoting): new node.
69084         (Initial import): more info, from Patrice.
69085
69086 2005-07-11  Bruno Haible  <bruno@clisp.org>
69087
69088         * gnulib-tool (func_usage): Document option --avoid.
69089         (Command line options): Handle --avoid.
69090         (func_acceptable): New function.
69091         (func_modules_transitive_closure): Use it.
69092
69093 2005-07-11  Bruno Haible  <bruno@clisp.org>
69094
69095         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69096         Reported by Jim Meyering.
69097
69098 2005-07-10  Bruno Haible  <bruno@clisp.org>
69099
69100         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69101         Needed when size_t is smaller than 'unsigned int'.
69102         Reported by Paul Eggert.
69103
69104 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69105
69106         * modules/argp (Depends-on): Add unlocked-io
69107
69108 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69109
69110         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69111         block of defines.
69112
69113 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69116         fix now.
69117
69118 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69119         and Paul Eggert  <eggert@cs.ucla.edu>
69120
69121         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69122         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69123
69124 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69125
69126         * modules/regex (Files): Add lib/regex_internal.c,
69127         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69128         (Depends-on): Add extensions.
69129         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69130
69131 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69132
69133         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69134         pathconf.
69135         * m4/same.m4 (gl_SAME): Likewise.
69136         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69137
69138         * m4/regex.m4: Adjust to new libc regex implementation.
69139         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69140         all the .c and .h parts of (the new) regex.
69141         Quote the m4 stuff better.
69142         Check for RE_ICASE bug of old gnulib.
69143         Check for REG_STARTEND of recent libc.
69144         Rename local variables from jm_* to gl_*.
69145         Quote operand of "test -f".
69146         Say "recent enough" version of libc, not "version 2".
69147         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69148         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69149         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69150         Remove check for btowc, isascii.
69151         Require AM_LANGINFO_CODESET.
69152
69153 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * lib/regex.c, regex.h: Sync from libc.
69156         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69157         * lib/regexec.c:
69158         New files, synced from libc, except that regex_internal.h
69159         currently has a small porting fix.
69160
69161 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69162
69163         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69164         regex_internal.c, regexec.c.
69165         Add regex_internal.h too, but as a comment, since the libc version
69166         is currently broken in gnulib mode.
69167
69168 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69169
69170         Support programs like Emacs that use gnulib but not gettext.
69171         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69172         * modules/gettext-h: New file.
69173         * modules/gettext (Files): Remove lib/gettext.h.
69174         (Depends-on): Add gettext-h.
69175         (Makefile.am): Remove lib_SOURCES.
69176         * modules/argmatch, modules/c-stack, modules/closeout:
69177         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69178         * modules/execute, modules/file-type, modules/getaddrinfo:
69179         * modules/getopt, modules/human, modules/javacomp:
69180         * modules/javaexec, modules/mkdir-p, modules/obstack:
69181         * modules/openat, modules/pagealign_alloc, modules/pipe:
69182         * modules/quotearg, modules/regex, modules/rpmatch:
69183         * modules/unicodeio, modules/userspec, modules/version-etc:
69184         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69185         * modules/xsetenv:
69186         Depend on gettext-h, not gettext.
69187
69188 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69189
69190         * gnulib-tool (func_import): Add support for 'public domain' license.
69191         * modules/alloca, modules/atexit, modules/memmove:
69192         Now public domain, not GPL.
69193         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69194         * modules/realloc, modules/strerror, modules/strtod:
69195         Now LGPL, not GPL.
69196
69197 2005-07-05  Bruno Haible  <bruno@clisp.org>
69198
69199         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69200         autoconf CVS. Needed for mingw.
69201
69202 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69203
69204         Remove the dependency of the strftime module on the tzset module.
69205         * modules/strftime (Depends-on): Remove dependency on tzset.
69206
69207 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69208
69209         Remove the dependency of the strftime module on the tzset module.
69210         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69211         gl_FUNC_TZSET_CLOBBER.
69212
69213 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69214
69215         Remove the dependency of the strftime module on the tzset module.
69216         * lib/strftime.c (my_strftime)
69217         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69218         Copy the input structure, to work around some of the bug with
69219         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69220         Solaris releases, you should also use the tzset module, but we won't
69221         require it as a dependency any more since we don't want LGPLed code
69222         to depend on GPLed code.
69223
69224 2005-07-02  Jim Meyering  <jim@meyering.net>
69225
69226         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69227         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69228         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69229         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69230
69231 2005-07-02  Jim Meyering  <jim@meyering.net>
69232
69233         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69234
69235 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69236
69237         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69238         declares only 'struct timespec;' (!).
69239
69240 2005-07-01  Jim Meyering  <jim@meyering.net>
69241
69242         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69243         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69244         * lib/save-cwd.c, tempname.c:
69245         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69246         and don't include <sys/file.h>).
69247
69248 2005-06-29  Jim Meyering  <jim@meyering.net>
69249
69250         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69251         type name.  Use the variable name instead.
69252         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69253         Likewise.
69254
69255 2005-06-28  Simon Josefsson  <jas@extundo.com>
69256
69257         * modules/check-version (Files): Add check-version.m4.
69258
69259 2005-06-28  Simon Josefsson  <jas@extundo.com>
69260
69261         * m4/check-version.m4: New file, suggested by Jim Meyering
69262         <jim@meyering.net>.
69263
69264 2005-06-28  Simon Josefsson  <jas@extundo.com>
69265
69266         * lib/check-version.h, lib/check-version.c: New files.
69267
69268 2005-06-28  Simon Josefsson  <jas@extundo.com>
69269
69270         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69271         collision with global variable.  Better indentation.  Don't
69272         increment buffer pointer beyond buffer end.  Based on comments
69273         from Paul Eggert <eggert@cs.ucla.edu>.
69274
69275         * lib/base64.h: Indent.
69276
69277 2005-06-28  Simon Josefsson  <jas@extundo.com>
69278
69279         * doc/gnulib.texi (Library version handling): New section.
69280
69281 2005-06-28  Jim Meyering  <jim@meyering.net>
69282
69283         * check-module (find_included_lib_files): Hard-code another
69284         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69285         but modules/fts-lgpl (correctly) does not list those files.
69286
69287         * modules/canonicalize (Files): Add lib/pathmax.h.
69288
69289 2005-06-25  Simon Josefsson  <jas@extundo.com>
69290
69291         * modules/check-version: New file.
69292
69293 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69294
69295         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69296         initializer of struct addrinfo, as an indication that we don't
69297         care how many members the structure has.
69298
69299 2005-06-24  Derek Price  <derek@ximbiot.com>
69300         and Bruno Haible  <bruno@clisp.org>
69301
69302         Remove stat module & update lstat.
69303         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69304         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69305         * m4/stat.m4: Remove this file.
69306
69307 2005-06-24  Derek Price  <derek@ximbiot.com>
69308         and Bruno Haible  <bruno@clisp.org>
69309
69310         Remove stat module & update lstat.
69311         * lib/stat.c: Remove this file...
69312         (slash_aware_lstat): ...moving this content and its support...
69313         * lib/lstat.c (rpl_lstat): ...into here.
69314         * lib/lstat.h: New file.
69315
69316 2005-06-24  Derek Price  <derek@ximbiot.com>
69317         and Bruno Haible  <bruno@clisp.org>
69318
69319         Remove stat module & update lstat.
69320         * config/srclist.txt (libc sources): Remove stat.
69321
69322 2005-06-24  Derek Price  <derek@ximbiot.com>
69323         and Bruno Haible  <bruno@clisp.org>
69324
69325         Remove stat module & update lstat.
69326         * MODULES.html.sh (stat): Remove.
69327         * MODULES.html: Regenerated.
69328         * modules/lstat (Description): Correct function name.
69329         (Files): Add "lstat.h".
69330         (Depends-on): Remove stat, add xalloc, stat-macros.
69331         * modules/stat: Remove this file.
69332         (Include): Add "lstat.h", remove <sys/stat.h>.
69333
69334 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69335
69336         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69337         (ranged_convert): Don't save conversion in a temporary struct.
69338         This causes a warning with GCC 4.0.0, and anyway in the typical
69339         case it's not worth the extra 100 bytes or so of code.
69340         (ranged_convert, __mktime_internal): When calling a function via a
69341         pointer P, use P () rather than (*P) (), as we now assume C89 or
69342         better.
69343
69344 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69345
69346         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69347         "who -r" failed to give output.  Problem reported by Tim Waugh.
69348
69349         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69350         (xcalloc): Use it to avoid needless tests.
69351         Problem reported by Jim Meyering.
69352
69353 2005-06-20  Derek Price  <derek@ximbiot.com>
69354
69355         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69356         unnecessary for Autoconfs > 2.59c.
69357
69358 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69359
69360         * lib/argp.h (__option_is_short): Check upper limit of
69361         __key. Isprint() requires its argument to have the value
69362         of an unsigned char or EOF.
69363
69364 2005-06-16  Jim Meyering  <jim@meyering.net>
69365
69366         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69367         when either N or S is zero.
69368
69369 2005-06-16  Derek Price  <derek@ximbiot.com>
69370
69371         * m4/bison.m4: Declare YACC & YFLAGS precious.
69372
69373 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69374
69375         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69376         multibyte string or pattern, fall back on unibyte matching.
69377         Problem reported by James Youngman.
69378
69379 2005-06-08  Bruno Haible  <bruno@clisp.org>
69380
69381         * modules/csharpcomp: New file.
69382         * MODULES.html.sh (C#): Add csharpcomp.
69383
69384 2005-06-08  Bruno Haible  <bruno@clisp.org>
69385
69386         * m4/csharpcomp.m4: New file, from GNU gettext.
69387
69388 2005-06-08  Bruno Haible  <bruno@clisp.org>
69389
69390         * lib/csharpcomp.h: New file, from GNU gettext.
69391         * lib/csharpcomp.c: New file, from GNU gettext.
69392         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69393
69394 2005-06-08  Bruno Haible  <bruno@clisp.org>
69395
69396         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69397         warning on mingw.
69398
69399 2005-06-07  Derek Price  <derek@ximbiot.com>
69400
69401         Sync from CVS.
69402         * lib/glob_.h: Indent nested #ifdef.
69403
69404 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         Sync from coreutils.
69407         Use "file name" when talking about file names, instead of "filename"
69408         or "path", as per the GNU coding standards.
69409         * lib/mkdir-p.c: Renamed from makepath.c.
69410         (make_dir_parents): Renamed from make_path.  All callers changed.
69411         * lib/mkdir-p.h: Likewise.  All includers changed.
69412         * lib/filenamecat.c: Renamed from path-concat.c.
69413         (file_name_concat): Renamed from path_concat.  All callers changed.
69414         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69415         * lib/filenamecat.h: Likewise.  All includers changed.
69416         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69417         in comments or local variable names.
69418         * lib/basename.c: Likewise.
69419         * lib/canonicalize.c, canonicalize.h: Likewise.
69420         * lib/dirname.c, dirname.h: Likewise.
69421         * lib/euidaccess.c: Likewise.
69422         * lib/exclude.c: Likewise
69423         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69424         * lib/fsusage.c, fsuage.h: Likewise.
69425         * lib/fts.c, fts_.h: Likewise.
69426         * lib/getcwd.c: Likewise.
69427         * lib/getloadavg.c: Likewise.
69428         * lib/mkstemp.c: Likewise.
69429         * lib/mountlist.c, mountlist.h: Likewise.
69430         * lib/openat.c, openat.h: Likewise.
69431         * lib/readlink-stub.c: Likewise.
69432         * lib/readutmp.c, readutmp.h: Likewise.
69433         * lib/rename.c: Likewise.
69434         * lib/rmdir.c: Likewise.
69435         * lib/same.c: Likewise.
69436         * lib/savedir.c: Likewise.
69437         * lib/stripslash.c: Likewise.
69438         * lib/tempname.c: Likewise.
69439         * lib/xreadlink.c: Likewise.
69440         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69441         All uses changed.
69442         * lib/exclude.h: Likewise.
69443
69444         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69445         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69446         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69447         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69448         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69449         files have been getting away with it for years (MORE/BSD 4.3
69450         is extinct now).
69451         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69452         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69453
69454         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69455         Define to 256, not 255, as per modern POSIX.
69456
69457 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69458
69459         Sync from coreutils.
69460         Use "file name" when talking about file names, instead of "filename"
69461         or "path", as per the GNU coding standards.
69462         * MODULES.html.sh: mkdir-p renamed from makepath.
69463         filenamecat renamed from path-concat.
69464         * modules/filenamecat: Renamed from modules/path-concat.
69465         (Files): filenamecat.h and filenamecat.c renamed from
69466         path-concat.h and path-concat.c.
69467         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69468         (Include): filenamecat.h, not path-concat.h.
69469         * modules/mkdir-p: Renamed from modules/makepath.
69470         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69471         makepath.c.
69472         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69473         (Include): mkdir-p.h, not makepath.h.
69474
69475 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69476
69477         Sync from coreutils.
69478         * m4/mkdir-p.m4: Renamed from makepath.m4.
69479         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69480         Rename files from makepath.c to mkdir-p.c, and from
69481         makepath.h to mkdir-p.h.
69482         * m4/filenamecat.m4: Renamed from path-concat.m4.
69483         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69484         Rename files from path-concat.c to filenamecat.c,
69485         and from path-concat.h to filenamecat.h.
69486         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69487         "file name" in local variables or comments.
69488         * m4/rename.m4: Likewise.
69489
69490 2005-06-01  Bruno Haible  <bruno@clisp.org>
69491
69492         * modules/csharpexec: New file.
69493         * MODULES.html.sh (C#): New section.
69494
69495 2005-06-01  Bruno Haible  <bruno@clisp.org>
69496
69497         * m4/csharp.m4: New file, from GNU gettext.
69498         * m4/csharpexec.m4: New file, from GNU gettext.
69499
69500 2005-06-01  Bruno Haible  <bruno@clisp.org>
69501
69502         * lib/csharpexec.h: New file, from GNU gettext.
69503         * lib/csharpexec.c: New file, from GNU gettext.
69504         * lib/csharpexec.sh.in: New file, from GNU gettext.
69505
69506 2005-05-31  Derek Price  <derek@ximbiot.com>
69507             Paul Eggert  <eggert@cs.ucla.edu>
69508
69509         Sync from cvs.
69510         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69511
69512 2005-05-31  Derek Price  <derek@ximbiot.com>
69513             Paul Eggert  <eggert@cs.ucla.edu>
69514
69515         Sync from cvs.
69516         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69517
69518 2005-05-29  Derek Price  <derek@ximbiot.com>
69519
69520         * config/srclist.txt (glob_.h, glob.c): Add these files.
69521
69522 2005-05-29  Derek Price  <derek@ximbiot.com>
69523
69524         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69525         * modules/glob: New file.
69526         * modules/getlogin_r: Add link to POSIX spec in description.
69527
69528 2005-05-29  Derek Price  <derek@ximbiot.com>
69529             Paul Eggert  <eggert@cs.ucla.edu>
69530
69531         * m4/glob.m4: New file.
69532
69533 2005-05-29  Derek Price  <derek@ximbiot.com>
69534             Paul Eggert  <eggert@cs.ucla.edu>
69535
69536         * lib/glob_.h, lib/glob.c: New files.
69537
69538 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69539
69540         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69541         * modules/fts-lgpl (Depends-on): Remove gettext.
69542
69543 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69544
69545         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69546         and don't require gt_INTTYPES_PRI.
69547
69548 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69549
69550         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69551
69552         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69553         the configuration hassle isn't worth it.
69554         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69555         (LONGEST_MODIFIER, PRIuMAX): Remove.
69556
69557 2005-05-27  Bruno Haible  <bruno@clisp.org>
69558
69559         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69560
69561 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69562
69563         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69564         _POSIX_PTHREAD_SEMANTICS for Solaris.
69565
69566 2005-05-25  Derek Price  <derek@ximbiot.com>
69567
69568         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69569
69570 2005-05-25  Derek Price  <derek@ximbiot.com>
69571             Paul Eggert  <eggert@cs.ucla.edu>
69572
69573         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69574         * lib/getlogin_r.c, getlogin_r.h: New files.
69575
69576 2005-05-25  Bruno Haible  <bruno@clisp.org>
69577             Derek Price  <derek@ximbiot.com>
69578
69579         * lib/getlogin_r.h: Simplify API documentation.
69580
69581 2005-05-23  Derek Price  <derek@ximbiot.com>
69582
69583         * modules/minmax (Files): Add m4/minmax.m4.
69584         (configure.ac): Add gl_MINMAX.
69585
69586 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69587
69588         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69589         so that unistd-safer.h (GPL'ed code) need not be included.
69590
69591 2005-05-22  Bruno Haible  <bruno@clisp.org>
69592
69593         * m4/minmax.m4: New file.
69594         Based on a patch by Derek Price <derek@ximbiot.com>.
69595
69596 2005-05-22  Bruno Haible  <bruno@clisp.org>
69597
69598         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69599         (INT64_MIN): Fix definition.
69600         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69601
69602         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69603         NEED_SIGNED_INT_TYPES.
69604
69605         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69606         HAVE_SYSTEM_INTTYPES.
69607
69608 2005-05-22  Bruno Haible  <bruno@clisp.org>
69609
69610         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69611         Also include <sys/param.h> if it defines MIN, MAX.
69612         Based on a patch by Derek Price <derek@ximbiot.com>.
69613
69614 2005-05-21  Jim Meyering  <jim@meyering.net>
69615
69616         * modules/fts (Files): Add m4/inttypes-pri.m4.
69617         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69618
69619 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69620
69621         New fts module.
69622         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69623         (setup_dir, free_dir): New functions.
69624         (enter_dir, leave_dir): Define trivial
69625         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69626         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69627         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69628         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69629         Move to fts-cycle.c.
69630         (fts_open): Use setup_dir.
69631         (fts_close): Use free_dir.
69632         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69633         This adds a label and some gotos, but the alternatives were messier.
69634         Check for memory allocation failure when entering a dir.
69635         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69636         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69637         (FTS): New member fts_cycle, that is a union that contains the
69638         old active_dir_ht and cycle_state.  All uses changed to mention
69639         fts_cycle.ht and fts_cycle.state.
69640         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69641         fts.c, with the following changes:
69642         (setup_dir, free_dir): New functions.
69643         (enter_dir): Now returns bool.  Return true if successful, false
69644         if memory exhausted.  All callers changed.
69645         Do not bother partly cleaning up on
69646         memory allocation failure; that is free_dir's job.
69647         However, free ad if hash_insert fails, to avoid memory leak.
69648         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69649         fts->fts_options to see which union member to use.
69650
69651 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69652
69653         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69654         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69655
69656 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69657
69658         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69659
69660 2005-05-20  Jim Meyering  <jim@meyering.net>
69661
69662         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69663         Now a macro, to pacify GCC.
69664
69665 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69666
69667         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69668         of -1.
69669
69670 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69671
69672         * lib/chown.c (rpl_chown): Return -1 on failure.
69673
69674 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69675
69676         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69677         Don't check for stddef.h.
69678         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69679         don't use its results.
69680         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69681         since we include them unconditionally.  Don't require
69682         AM_STDBOOL_H, since stdbool is a prerequisite.
69683         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69684         since we assume C89 or better.
69685         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69686         as we don't use their results.
69687         Don't check for fchdir, memmove, memset, strrchr, as we use
69688         them unconditionally.
69689         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69690         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69691
69692 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69693
69694         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69695         Include <stddef.h> unconditionally, since we assume C89 now.
69696         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69697         * lib/fts.c: Include fts_.h first, to check interface.
69698         Do not include intprops.h; no longer needed.
69699         Include cycle-check.h and hash.h, since fts_.h no longer does.
69700         Remove unnecessary casts of closedir to void.
69701         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69702         decide whether to decrement nlinks.
69703         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69704         (FTS): Use struct hash_table * instead of Hash_table, so that
69705         we no longer need to include hash.h here.
69706
69707 2005-05-18  Jim Meyering  <jim@meyering.net>
69708
69709         * modules/dirfd (License): Change to LGPL.  Most of the code
69710         is already in the public domain.
69711
69712 2005-05-18  Jim Meyering  <jim@meyering.net>
69713
69714         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69715         Reported by Yoann Vandoorselaere.
69716
69717 2005-05-17  Jim Meyering  <jim@meyering.net>
69718
69719         * m4/fts.m4: New file, from coreutils.
69720
69721 2005-05-17  Jim Meyering  <jim@meyering.net>
69722
69723         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69724
69725 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69726
69727         Sync from coreutils.
69728         * m4/unlinkdir.m4: New file.
69729
69730 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         Sync from coreutils.
69733         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69734         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69735         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69736         White space changes only.
69737         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69738         special.
69739         * lib/yesno.c: Include getline.h, not ctype.h.
69740         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69741         Use getline to remove arbitrary restriction on response length.
69742
69743 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69744
69745         * config/srclist-update: Spell out "Street" in FSF postal
69746         mail address; this is the style the FSF seems to prefer.
69747
69748         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69749         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69750         this updates FSF postal mail address.
69751
69752         Sync from coreutils.
69753         * modules/unlinkdir: New file.
69754         * modules/yesno (Depends-on): Add getline.
69755         * MODULES.html.sh (File system functions): Add unlinkdir.
69756
69757 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69758
69759         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
69760         lib/strsep.h:
69761         Change the initial comment to refer to GPL, not LGPL.
69762         gnulib-tool will change it to LGPL as needed.
69763
69764         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
69765         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
69766         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
69767         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
69768         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
69769         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
69770         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
69771         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
69772         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
69773         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
69774         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
69775         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
69776         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
69777         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
69778         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
69779         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
69780         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
69781         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
69782         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
69783         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
69784         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
69785         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
69786         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
69787         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
69788         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
69789         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
69790         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
69791         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
69792         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
69793         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
69794         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
69795         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
69796         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
69797         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
69798         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
69799         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
69800         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
69801         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
69802         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
69803         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
69804         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
69805         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
69806         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
69807         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
69808         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
69809         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
69810         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
69811         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
69812         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
69813         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
69814         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69815         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
69816         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
69817         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
69818         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
69819         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
69820         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
69821         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
69822         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
69823         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
69824         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
69825         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
69826         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
69827         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
69828         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
69829         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
69830         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
69831         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
69832         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
69833         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
69834         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
69835         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
69836         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
69837         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
69838         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
69839         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
69840         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
69841         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
69842         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
69843         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
69844         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
69845         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
69846         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
69847         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
69848         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
69849         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
69850         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
69851         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
69852         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
69853         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
69854         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
69855         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
69856         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
69857         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
69858         lib/yesno.c, lib/yesno.h:
69859         Update FSF postal mail address.
69860
69861 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69862
69863         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
69864         tests/test-memmem.c, tests/test-stpncpy.c:
69865         Update FSF postal mail address.
69866
69867 2005-05-13  Bruno Haible  <bruno@clisp.org>
69868
69869         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
69870         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
69871         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
69872         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
69873         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
69874         Add support for 64-bit integers in the MSVC compiler.
69875
69876 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69877
69878         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
69879
69880 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
69881
69882         * gnulib-tool (func_import): Sort and uniquify recommended includes.
69883
69884 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
69885
69886         * doc/getdate.texi (General date syntax): Don't say that date
69887         date --iso-8601=ns generates acceptable dates; it doesn't yet.
69888         Problem reported by Nic Ferrier.
69889
69890 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69891
69892         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
69893         specified in ai_socktype. Fix invalid ai_protocol
69894         check. ai_protocol is usually set to 0 or depending on
69895         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
69896         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
69897         ai_socktype / ai_protocol in the returned addrinfo structure.
69898
69899 2005-05-10  Simon Josefsson  <jas@extundo.com>
69900
69901         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
69902         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69903
69904 2005-05-10  Karl Berry  <karl@gnu.org>
69905
69906         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
69907         (from http://www.gnu.org/licenses).
69908         * doc/COPYING.LIB: also rename to COPYING.LESSER.
69909         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
69910         fdl.texi suffices.
69911
69912 2005-05-10  Karl Berry  <karl@gnu.org>
69913
69914         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
69915         (COPYING.DOC): remove.
69916
69917         * config/srclist-update: new FSF address.
69918
69919 2005-05-10  Derek Price  <derek@ximbiot.com>
69920
69921         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
69922         possible.
69923
69924 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69925             Bruno Haible  <bruno@clisp.org>
69926
69927         * modules/inet_ntop: New file.
69928         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69929         inet_ntop.
69930
69931 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69932             Bruno Haible  <bruno@clisp.org>
69933
69934         * m4/inet_ntop.m4: New file.
69935
69936 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69937             Bruno Haible  <bruno@clisp.org>
69938
69939         * lib/inet_ntop.h: New file.
69940         * lib/inet_ntop.c: New file, from glibc with modifications.
69941
69942 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
69943
69944         * modules/time_r (License): Change to LGPL.
69945         * modules/extensions (License): Change to LGPL.  Actually,
69946         the license is more permissive than that, but currently gnulib-tool
69947         doesn't know how to handle more-permissive licenses.
69948
69949         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
69950         Problem reported by Dave Love.
69951
69952 2005-05-08  Jim Meyering  <jim@meyering.net>
69953
69954         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69955         blank.
69956
69957 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69958
69959         * modules/argmatch (Depends-on): Add stdbool.
69960         * modules/backupfile (Depends-on): Likewise.
69961         * modules/chdir-long (Depends-on): Likewise.
69962         * modules/closeout (Depends-on): Likewise.
69963         * modules/cycle-check (Depends-on): Likewise.
69964         * modules/dirname (Depends-on): Likewise.
69965         * modules/fnmatch (Depends-on): Likewise.
69966         * modules/fsusage (Depends-on): Likewise.
69967         * modules/fwriteerror (Depends-on): Likewise.
69968         * modules/getcwd (Depends-on): Likewise.
69969         * modules/getloadavg (Depends-on): Likewise.
69970         * modules/hard-locale (Depends-on): Likewise.
69971         * modules/makepath (Depends-on): Likewise.
69972         * modules/mountlist (Depends-on): Likewise.
69973         * modules/nanosleep (Depends-on): Likewise.
69974         * modules/posixtm (Depends-on): Likewise.
69975         * modules/quotearg (Depends-on): Likewise.
69976         * modules/readtokens (Depends-on): Likewise.
69977         * modules/readtokens0 (Depends-on): Likewise.
69978         * modules/readutmp (Depends-on): Likewise.
69979         * modules/save-cwd (Depends-on): Likewise.
69980         * modules/strftime (Depends-on): Likewise.
69981         * modules/userspec (Depends-on): Likewise.
69982         * modules/utimecmp (Depends-on): Likewise.
69983         * modules/xgetcwd (Depends-on): Likewise.
69984         * modules/xnanosleep (Depends-on): Likewise.
69985         * modules/xstrtod (Depends-on): Likewise.
69986         * modules/yesno (Depends-on): Likewise.
69987
69988 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69989
69990         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69991         needless checks.
69992
69993 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
69994
69995         Merge from coreutils.  Among other things,
69996         add bulletproofing for cases where stdin, stdout, or stderr are closed.
69997         * lib/fd-safer.c: New file.
69998         * lib/fcntl-safer.h, open-safer.c: Remove.
69999         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
70000         * lib/dup-safer.c: Include unistd-safer.h first.
70001         Don't include errno.h.
70002         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
70003         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
70004         * lib/file-type.c: Rely on file-type.h change.
70005         * lib/getloadavg.c: Include unistd-safer.h.
70006         (getloadavg): Use safer open.
70007         * lib/getusershell.c: Include "stdio-safer.h".
70008         (getusershell): Use safer fopen.
70009         * lib/long-options.c (long_options): Use NULL rather than 0.
70010         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
70011         'free'.
70012         * lib/modechange.c: Likewise.
70013         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
70014         (MODE_DONE): New constant.
70015         (struct mode_change): Remove 'next' member.
70016         (make_node_op_equals): New function; like the old one of the
70017         same name, except it allocates an array.
70018         (mode_compile, mode_create_from_ref): Use it.
70019         (mode_compile): Allocate result as an array, not a linked list.
70020         Parse octal string ourself, so that we catch mistakes like "+0".
70021         (mode_adjust): Arg is an array, not a linked list.
70022         * lib/modechange.c: Include stat-macros.h, xalloc.h.
70023         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
70024         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
70025         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
70026         Remove.  This is now stat-macros.h's job.
70027         (talloc): Remove.  All callers replaced by xalloc, so that
70028         our invokers don't have to worry about reporting memory failures.
70029         (make_node_op_equals): Remove.
70030         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70031         New constants.
70032         (struct mode_change): Moved here from modechange.h.
70033         (mode_append_entry): Remove.
70034         (mode_compile): Remove MASKED_OPS arg, since it encouraged
70035         apps to have incorrect behavior.  Use simpler algorithm for head
70036         and tail.  Don't futz with umask; that's now the job of mode_adjust.
70037         Detect more invalid usages rather than having somewhat-random behavior.
70038         Don't insert an "a=" action, as that leads to incorrect behavior.
70039         (mode_compile, mode_create_from_ref): Return NULL on error instead
70040         of an enum, since now there's only one way to have an error.  All
70041         callers changed.
70042         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
70043         at the correct time.  Simplify calculation of "+u" and its ilk.
70044         Don't mishandle "+X".
70045         (mode_free): Remove "register" and localize decls.
70046         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70047         (struct mode_change): Move to modechange.c; callers don't
70048         need to see this stuff.
70049         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70050         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70051         (mode_change, mode_adjust): Reflect the new signatures noted above.
70052         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70053         that might redefine system include files.
70054         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70055         (my_usleep): Use NULL rather than (void *) 0.
70056         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70057         Use siginterrupt to specify that system calls should be interrupted.
70058         (rpl_nanosleep): Move initialization of suspended closer to call of
70059         my_usleep.
70060         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
70061         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
70062         (desirable_utmp_entry): New function.
70063         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
70064         using x2nrealloc, to simplify logic.
70065         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
70066         size calculation.  Do not assume utmp file is a regular file.
70067         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
70068         (READ_UTMP_CHECK_PIDS): New constant.
70069         * lib/save-cwd.c: Include unistd-safer.h.
70070         (save_cwd): Use fd_safer.
70071         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
70072         [!_LIBC] Include "stat-macros.h" instead.
70073         * lib/unistd-safer.h (fd_safer): New decl.
70074
70075 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70076
70077         * modules/getloadavg (Depends-on): Add unistd-safer.
70078         * modules/getusershell (Depends-on): Add stdio-safer.
70079         * modules/lstat (Depends-on): Remove xalloc.
70080         * modules/mkstemp (Depends-on): Add stat-macros.
70081         * modules/modechange (Depends-on): Remove xstrtol.
70082         Add stat-macros, xalloc.
70083         * modules/save-cwd (Depends-on): Add unistd-safer.
70084         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
70085         * modules/unistd-safer (Files): Add lib/fd-safer.c
70086         (Makefile.am): Remove lib_SOURCES.
70087
70088         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70089         Remove fcntl-safer; unistd-safer supersedes it.
70090
70091 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70092
70093         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70094         AC_HEADER_STAT.
70095         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70096         (gl_PREREQ_CHOWN): Remove.
70097         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70098         it.  Don't require AC_HEADER_STAT.
70099         (gl_PREREQ_LSTAT): Remove.
70100         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70101         Don't require AC_HEADER_STAT.
70102         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70103         (gl_PREREQ_RMDIR): Remove.
70104         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70105         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70106         the stat-macros module a prerequisite.
70107         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70108         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70109         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70110         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70111         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70112         variable names.
70113         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70114         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70115         variable prefixes.
70116         * m4/fcntl-safer.m4: Remove.
70117         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70118         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70119         Invoke gl_PREREQ_FD_SAFER.
70120         (gl_PREREQ_FD_SAFER): New macro.
70121         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70122         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70123         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70124         Remove duplicate call to AC_LIBOBJ(readutmp).
70125         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70126
70127         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70128         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70129
70130 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70131
70132         * MODULES.html.sh (Misc): Add byteswap.
70133
70134 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70135
70136         * modules/getcwd (Depends-on): Add extensions.
70137         * modules/openat (Depends-on): Likewise.
70138
70139 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70140
70141         * modules/byteswap: New file.
70142
70143 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70144
70145         * m4/byteswap.m4: New file.
70146
70147 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70148
70149         * lib/byteswap_.h: New file.
70150
70151 2005-04-25  Karl Berry  <karl@gnu.org>
70152
70153         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70154
70155 2005-04-25  Albert Chin  <china@thewrittenword.com>
70156
70157         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70158         Toolkit C bug.
70159
70160 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70161
70162         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70163         (func_ln_if_changed): Remove forcibly for no error message
70164         in case file does not exist.
70165
70166 2005-04-19  Simon Josefsson  <jas@extundo.com>
70167
70168         * gnulib-tool (Options): Make --symlink mean --symbolic.
70169
70170 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70171
70172         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70173
70174 2005-04-16  Simon Josefsson  <jas@extundo.com>
70175
70176         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70177
70178 2005-04-15  Simon Josefsson  <jas@extundo.com>
70179
70180         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70181
70182 2005-04-15  Simon Josefsson  <jas@extundo.com>
70183
70184         * gnulib-tool: Rename --symlink to --symbolic.
70185
70186 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70187
70188         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70189         symbolic links to files instead of copying/moving.  Add --aux-dir,
70190         specifying directory relative --dir where auxiliary build tools
70191         are placed.
70192
70193 2005-04-14  Bruno Haible  <bruno@clisp.org>
70194
70195         * modules/allocsa (License): Change to LGPL.
70196         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70197
70198 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70199
70200         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70201         that "UTC +1 second" continues to work.  Problem reported
70202         by Dmitry V. Levin.
70203         (relunit_snumber): New rule.
70204         (relunit): Use it.
70205
70206 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70207
70208         * lib/getdate.y (universal_time_zone_table): New constant.
70209         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70210         universal_time_zone_table.
70211         (lookup_zone): Prefer universal_time_zone_table to
70212         local_time_zone_table, so that "GMT" time stamps are allowed in
70213         London during the summer.  Problem reported by Ian Abbott.
70214
70215 2005-04-12  Jim Meyering  <jim@meyering.net>
70216
70217         * lib/human.c (humblock): Set *options even when returning due to
70218         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70219         warning from gcc-4.
70220
70221 2005-04-09  Jim Meyering  <jim@meyering.net>
70222
70223         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70224         -Wuninitialized: initialize tm0.tm_year.
70225
70226 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70229         count, since there's no maximum.  All uses changed.
70230         Add member dsts_seen.
70231         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70232         not being INT_MAX.
70233         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70234         Use pc_rels_seen to decide whther a date is absolute.
70235
70236         * lib/getdate.y (number): Don't overwrite year.
70237         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70238         check.
70239
70240 2005-04-02  Simon Josefsson  <jas@extundo.com>
70241
70242         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70243         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70244
70245 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70246
70247         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70248         where no absolute path name can be longer than PATH_MAX.
70249
70250 2005-03-27  Jim Meyering  <jim@meyering.net>
70251
70252         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70253
70254 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70255
70256         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70257         "one's complement" -> "ones' complement" in comment, as per Knuth.
70258         "value of type" -> "type or expression" in comment.
70259         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70260
70261 2005-03-26  Jim Meyering  <jim@meyering.net>
70262
70263         Comment nits.
70264         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70265         Correct typos: s/or/of/.
70266
70267 2005-03-26  Jim Meyering  <jim@meyering.net>
70268
70269         * modules/check-include-files: Move to ../ and rename to...
70270         * check-module: ...this.
70271
70272 2005-03-25  Jim Meyering  <jim@meyering.net>
70273
70274         * modules/xvasprintf (Files): Add xalloc.h.
70275
70276 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70277
70278         * modules/gettext (Files): config/config.rpath ->
70279         build-aux/config.rpath
70280         * modules/iconv (Files): Likewise.
70281         Problem reported by Oskar Liljeblad.
70282
70283 2005-03-23  Jim Meyering  <jim@meyering.net>
70284
70285         * modules/check-include-files: New script to check for
70286         missing dependencies, multiple includes, etc.
70287
70288         * modules/c-strtold (Depends-on): Add xalloc.
70289         * modules/c-strtod (Depends-on): Add xalloc.
70290         * modules/hash (Depends-on): Add xalloc.
70291         (Files): Remove lib/xalloc.h.
70292
70293         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70294         * modules/userspec (Files): Add lib/inttostr.h.
70295
70296 2005-03-23  Jim Meyering  <jim@meyering.net>
70297
70298         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70299
70300 2005-03-22  Jim Meyering  <jim@meyering.net>
70301
70302         * modules/stat-macros: New module.
70303         * modules/canonicalize, modules/euidaccess, modules/file-type,
70304         * modules/filemode, modules/lchown, modules/makepath,
70305         * modules/rmdir, modules/stat: Depend on new stat-macros module
70306         rather than listing lib/stat-macros.h manually.
70307         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70308
70309 2005-03-22  Jim Meyering  <jim@meyering.net>
70310
70311         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70312
70313 2005-03-22  Bruno Haible  <bruno@clisp.org>
70314
70315         * config/srclist.txt: Replace target directory 'config' with
70316         'build-aux'.
70317         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70318         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70319         ../build-aux/.
70320
70321 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         * modules/chdir-long (Depends-on): Add mempcpy.
70324
70325         * modules/acl, modules/backupfile, modules/c-strtod,
70326         modules/c-strtold, modules/canon-host, modules/canonicalize,
70327         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70328         modules/exclude, modules/exitfail, modules/file-type,
70329         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70330         modules/getdate, modules/getline, modules/getpagesize,
70331         modules/getpass, modules/getugroups, modules/group-member,
70332         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70333         modules/inttostr, modules/long-options, modules/makepath,
70334         modules/md5, modules/memcasecmp, modules/memcoll,
70335         modules/modechange, modules/mountlist, modules/path-concat,
70336         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70337         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70338         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70339         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70340         modules/strftime, modules/strndup, modules/strverscmp,
70341         modules/timespec, modules/unlocked-io, modules/userspec,
70342         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70343         modules/yesno:
70344         Remove lib_SOURCES line from Makefile.am section, as this is now
70345         done automatically by the corresponding Autoconf macro.
70346
70347 2005-03-21  Jim Meyering  <jim@meyering.net>
70348
70349         Changes imported from coreutils.
70350
70351         * lib/cycle-check.c: Don't include xalloc.h.
70352
70353         * lib/path-concat.c: Don't include assert.h.
70354         (path_concat): Remove assertion that would have triggered
70355         for ABASE starting with more than one slash.
70356         Reported by Andreas Schwab.
70357
70358         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70359         properly when ABASE is an absolute file name.
70360         Correct the description of this function.
70361         Include <assert.h>.
70362         Add an assertion and a test driver.
70363         This fixes a bug introduced on 2004-07-02.
70364         Andreas Schwab reported the resulting failure of cp --parents:
70365         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70366
70367 2005-03-21  Jim Meyering  <jim@meyering.net>
70368
70369         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70370         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70371
70372 2005-03-21  Jim Meyering  <jim@meyering.net>
70373         and  Paul Eggert  <eggert@cs.ucla.edu>
70374
70375         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70376         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70377         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70378         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70379         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70380         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70381         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70382         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70383         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70384         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70385         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70386         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70387         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70388         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70389         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70390         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70391         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70392         for these modules.
70393
70394 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70395
70396         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70397         (which shouldn't happen), generate nothing instead of returning 0
70398         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70399
70400 2005-03-16  Bruno Haible  <bruno@clisp.org>
70401
70402         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70403         HAVE_LONGLONG_64BIT.
70404
70405 2005-03-16  Bruno Haible  <bruno@clisp.org>
70406
70407         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70408         HAVE_LONGLONG_64BIT.
70409
70410 2005-03-16  Bruno Haible  <bruno@clisp.org>
70411
70412         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70413         HAVE_LONGLONG_64BIT.
70414
70415 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70416
70417         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70418         reliably distinguish strftime failure from empty output on POSIX
70419         hosts.
70420
70421 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70422
70423         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70424         (iconv_string): Don't guess a size-zero buffer, as that might cause
70425         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70426         result would be 'too large', where 'too large' is (heuristically)
70427         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70428         overflow concerns.  This will prevent some unwanted malloc failures
70429         when the inputs are very large.
70430
70431 2005-03-15  Karl Berry  <karl@gnu.org>
70432
70433         * config/srclist.txt (config.rpath): from gettext.
70434         * config/config.rpath: update.
70435
70436 2005-03-15  Bruno Haible  <bruno@clisp.org>
70437
70438         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70439         to 'negate'.
70440
70441         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70442         variable.
70443
70444         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70445         results.
70446
70447 2005-03-14  Simon Josefsson  <jas@extundo.com>
70448
70449         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70450         <fx@gnu.org>.
70451
70452 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70453
70454         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70455         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70456         intprops.h.
70457         * lib/strtol.c: Likewise.
70458
70459 2005-03-14  Jim Meyering  <jim@meyering.net>
70460
70461         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70462         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70463         to be nonzero so that we (and caller) can detect the difference
70464         between a valid zero-length expansion and an error return, even
70465         when the underlying strftime fails before writing anything into
70466         that location.
70467
70468 2005-03-14  Bruno Haible  <bruno@clisp.org>
70469
70470         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70471         Update from GNU gettext 0.14.3.
70472
70473 2005-03-10  Jim Meyering  <jim@meyering.net>
70474
70475         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70476
70477 2005-03-10  Jim Meyering  <jim@meyering.net>
70478
70479         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70480         so that this module works on systems without fchdir.
70481
70482 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70483
70484         Factor int-properties macros into a single file, except for
70485         glibc-related files.
70486         * lib/intprops.h: New file.
70487         * lib/getloadavg.c: Include it instead of limits.h.
70488         (INT_STRLEN_BOUND): Remove.
70489         * lib/human.c: Include intprops.h.
70490         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70491         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70492         302/1000.
70493         * lib/inttostr.h: Include intprops.h instead of limits.h.
70494         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70495         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70496         for consistency with intprops.h.
70497         (time_t_is_integer, twos_complement_arithmetic): Use them.
70498         * lib/sig2str.h: Include <signal.h>, intprops.h.
70499         (INT_STRLEN_BOUND): Remove.
70500         * lib/strftime.c (TYPE_SIGNED): Remove.
70501         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70502         * lib/strtol.c: Adjust comments to match intprops.h.
70503         * lib/userspec.c: Include intprops.h.
70504         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70505         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70506         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70507         instead of rolling our own expressions.
70508         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70509
70510         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70511         instead of int.
70512         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70513         the right thing even if adding 1900 would overflow.  Similarly
70514         for tm_mon + 1 and tm_yday + 1.
70515         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70516         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70517         (DO_SIGNED_NUMBER): New macro.
70518         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70519
70520 2005-03-07  Bruno Haible  <bruno@clisp.org>
70521
70522         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70523
70524 2005-03-07  Bruno Haible  <bruno@clisp.org>
70525
70526         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70527
70528 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70529
70530         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70531         (func_import): Only replace files via --import when they have actually
70532         changed.
70533
70534 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70535
70536         * m4/mmap-anon.m4: New file.
70537         * m4/pagealign_alloc.m4: New file.
70538
70539 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70540             Bruno Haible  <bruno@clisp.org>
70541
70542         * modules/pagealign_alloc: New file.
70543         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70544
70545 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70546             Bruno Haible  <bruno@clisp.org>
70547
70548         * lib/pagealign_alloc.h: New file.
70549         * lib/pagealign_alloc.c: New file.
70550
70551 2005-03-03  Bruno Haible  <bruno@clisp.org>
70552
70553         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70554         Use an all-permissive copyright notice, recommended by RMS.
70555
70556 2005-03-02  Bruno Haible  <bruno@clisp.org>
70557
70558         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70559         of AIX, the replacement has to be done only after <string.h> is
70560         included, therefore not in config.h. stpncpy.h does the replacement,
70561         and stpncpy.c uses it.
70562
70563 2005-03-02  Bruno Haible  <bruno@clisp.org>
70564
70565         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70566         stpncpy.c uses it.
70567
70568 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70569
70570         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70571         The workaround isn't strictly needed for POSIX conformance, and
70572         it's too much of a pain to configure and maintain.  We'll ask
70573         people to fix their kernels instead.
70574         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70575         (NANOSLEEP_BUG_WORKAROUND): Remove.
70576         (xnanosleep): Remove the workaround.
70577
70578 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70579
70580         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70581         Reported by Derek Price.
70582         (Include): Add "timespec.h".
70583
70584         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70585
70586 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70587
70588         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70589         to detect nanosleep bug.
70590
70591 2005-03-01  Bruno Haible  <bruno@clisp.org>
70592
70593         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70594
70595 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70596
70597         * modules/gethrxtime: New file.
70598         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70599         (Depends-on): Add gethrxtime.
70600         (configure.ac): Add gl_XNANOSLEEP.
70601         (Makefile.am): Remove lib_SOURCES line.
70602
70603 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70604
70605         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70606         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70607
70608 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70609
70610         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70611         * lib/timespec.h (gettime): Return void, since it always
70612         succeeds now.  All uses changed.
70613         * lib/gettime.c (gettime): Likewise.
70614         [HAVE_NANOTIME]: Prefer nanotime.
70615         Assume gettimeofday succeeds, as POSIX requires.
70616         Assime time () succeeds, since other code already does.
70617         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70618         (timespec_subtract): Remove.
70619         (NANOSLEEP_BUG_WORKAROUND): New constant.
70620         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70621         things considerably.  Use it only on GNU/Linux hosts, since the
70622         workaround shouldn't be needed elsewhere.
70623
70624 2005-02-24  Bruno Haible  <bruno@clisp.org>
70625
70626         * modules/gettext (Files): Add m4/glibc2.m4.
70627
70628 2005-02-24  Bruno Haible  <bruno@clisp.org>
70629
70630         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70631         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70632         * m4/progtest.m4:
70633         Update from GNU gettext 0.14.2.
70634         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70635
70636 2005-02-24  Bruno Haible  <bruno@clisp.org>
70637
70638         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70639         * lib/config.charset: Update from GNU gettext 0.14.2.
70640
70641 2005-02-24  Bruno Haible  <bruno@clisp.org>
70642
70643         * lib/gettext.h: Update from GNU gettext 0.14.2.
70644
70645 2005-02-23  Simon Josefsson  <jas@extundo.com>
70646
70647         * m4/iconvme.m4: New file.
70648
70649 2005-02-23  Jim Meyering  <jim@meyering.net>
70650
70651         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70652         change.
70653         Thanks to Bruno Haible for catching it.
70654
70655 2005-02-22  Simon Josefsson  <jas@extundo.com>
70656
70657         * modules/iconvme: New file.
70658
70659         * MODULES.html.sh: Add iconvme.
70660
70661 2005-02-22  Simon Josefsson  <jas@extundo.com>
70662
70663         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70664
70665 2005-02-22  Simon Josefsson  <jas@extundo.com>
70666
70667         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70668
70669 2005-02-22  Jim Meyering  <jim@meyering.net>
70670
70671         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70672         s/ifndef/ifdef/.
70673
70674 2005-02-20  Neil Conway  <neilc@samurai.com>
70675
70676         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70677         returned by OSX/Darwin if the specified buffer is not large
70678         enough for the hostname.
70679
70680 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70681
70682         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70683         pass it to _help, otherwise the latter coredumps trying to
70684         dereference state.root_argp.
70685
70686 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70687
70688         * modules/chdir-long (Depends-on): Add memrchr.
70689         * modules/memrchr (Files): Add lib/memrchr.h.
70690         (Include): "memrchr.h".
70691
70692 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70693
70694         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70695
70696 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70697
70698         * lib/memrchr.h: New file.
70699         * lib/chdir-long.c: Include it.
70700         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70701         Don't bother including stddef.h.
70702
70703 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70704
70705         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70706         inclusion.
70707         Include <sys/types.h>, for dev_t.
70708         (ME_DUMMY, ME_REMOTE): Move from here....
70709         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70710         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70711         Dmitry V. Levin.
70712         Include mountlist.h first, to test the interface.
70713
70714 2005-01-29  Bruno Haible  <bruno@clisp.org>
70715
70716         * lib/progname.c (program_name): Initialize.
70717         Needed when linking statically on MacOS X.
70718
70719 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         Sync from coreutils.
70722         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70723         (Depends-on): Add c-strtod.
70724         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70725
70726 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70727
70728         Sync from coreutils.
70729         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70730
70731         Remove files that are specific to coreutils.
70732         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70733
70734 2005-01-28  Bruno Haible  <bruno@clisp.org>
70735
70736         * modules/javacomp: New file.
70737         * MODULES.html.sh (Java): Add javacomp.
70738
70739 2005-01-28  Bruno Haible  <bruno@clisp.org>
70740
70741         * m4/javacomp.m4: New file, from GNU gettext.
70742
70743 2005-01-28  Bruno Haible  <bruno@clisp.org>
70744
70745         * lib/javacomp.sh.in: New file, from GNU gettext.
70746         * lib/javacomp.h: New file, from GNU gettext.
70747         * lib/javacomp.c: New file, from GNU gettext.
70748
70749 2005-01-26  Simon Josefsson  <jas@extundo.com>
70750
70751         * lib/gai_strerror.c: Use GPL in header.
70752
70753 2005-01-26  Bruno Haible  <bruno@clisp.org>
70754
70755         * modules/javaexec: New file.
70756         * MODULES.html.sh (Java): Add javaexec.
70757
70758 2005-01-26  Bruno Haible  <bruno@clisp.org>
70759
70760         * m4/javaexec.m4: New file, from GNU gettext.
70761
70762 2005-01-26  Bruno Haible  <bruno@clisp.org>
70763
70764         * lib/javaexec.sh.in: New file, from GNU gettext.
70765         * lib/javaexec.h: New file, from GNU gettext.
70766         * lib/javaexec.c: New file, from GNU gettext.
70767
70768 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70769
70770         * modules/lchown (Depends-on): Remove lchown.h
70771
70772 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70773
70774         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
70775         must be defined if the header file was not found, in order
70776         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
70777
70778 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70779
70780         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
70781         initializers for struct pentry_state.
70782         (__argp_error): Check return value of __asprintf
70783         (__argp_failure): Translate error message
70784
70785         * lib/argp-parse.c: Removed braces around the expansion of N_()
70786
70787 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70788
70789         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
70790         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
70791         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
70792         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
70793         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
70794         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
70795         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
70796         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
70797         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
70798         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
70799         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
70800         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
70801         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
70802         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
70803         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
70804         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
70805         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
70806         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
70807         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
70808         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
70809         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
70810         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
70811         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
70812         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
70813         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
70814         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
70815         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
70816         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
70817         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
70818         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
70819         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
70820         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
70821         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
70822         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
70823         xstrtol.m4, xstrtoumax.m4, yesno.m4:
70824         Use an all-permissive copyright notice, recommended by RMS.
70825
70826 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
70827
70828         * modules/chdir-long (Depends-on): Remove mempcpy.
70829
70830 2005-01-21  Jim Meyering  <jim@meyering.net>
70831
70832         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
70833         same value as for Solaris 9.
70834
70835         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
70836         component length.  This included changing the parameter to be
70837         of type `char *' rather than `char const *'.
70838         * lib/chdir-long.h (chdir_long): Update prototype.
70839
70840         * lib/openat.c (fdopendir, fstatat): New functions.
70841         * lib/openat.h: Include headers required for use of DIR and struct
70842         stat.
70843         [AT_SYMLINK_NOFOLLOW]: Define.
70844         (fdopendir, fstatat): Add prototypes.
70845
70846 2005-01-21  Bruno Haible  <bruno@clisp.org>
70847
70848         * modules/classpath: New file.
70849         * MODULES.html.sh (Java): Add classpath.
70850
70851 2005-01-21  Bruno Haible  <bruno@clisp.org>
70852
70853         * lib/classpath.h: New file, from GNU gettext.
70854         * lib/classpath.c: New file, from GNU gettext.
70855
70856 2005-01-20  Simon Josefsson  <jas@extundo.com>
70857
70858         * modules/version-etc-fsf: New file.
70859
70860 2005-01-20  Simon Josefsson  <jas@extundo.com>
70861
70862         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
70863         * lib/version-etc.c: Remove version_etc_copyright.
70864         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
70865         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
70866
70867 2005-01-20  Simon Josefsson  <jas@extundo.com>
70868
70869         * lib/base64.h (isbase64): Add.
70870
70871         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
70872         using a unsigned prototype, don't inline.
70873         (base64_decode): Use it.
70874
70875 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70876
70877         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
70878         it.
70879
70880 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70881
70882         * lib/save-cwd.c (save_cwd): Remove code to support the case
70883         where fchdir is missing or flaky.
70884
70885 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70886
70887         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
70888
70889 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70890
70891         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
70892         AC_LIBSOURCES now does this.
70893         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
70894         with new ullong_max module.
70895
70896 2005-01-19  Bruno Haible  <bruno@clisp.org>
70897
70898         * modules/sh-quote: New file.
70899         * MODULES.html.sh (Executing programs): Add sh-quote.
70900
70901 2005-01-19  Bruno Haible  <bruno@clisp.org>
70902
70903         * lib/sh-quote.h: New file, from GNU gettext.
70904         * lib/sh-quote.c: New file, from GNU gettext.
70905
70906 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70907
70908         Merge from coreutils.
70909         * m4/ullong_max.m4: New file.
70910         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
70911         (gl_MACROS): Assume localeconv exists.
70912
70913 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70914
70915         Merge changes from coreutils, as described below in several
70916         changelogs dated today.
70917
70918         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
70919         (O_DIRECTORY): Remove; not needed here, since "." must be
70920         a directory.  All uses removed.
70921         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
70922         universal on Suns, and we also need to test for IRIX.
70923         Revamp code to use 'if' rather than '#if'.
70924         Avoid unnecessary comparison of cwd->desc to 0.
70925
70926         * lib/utimens.c (futimens): Robustify the previous patch, by checking
70927         for known valid error numbers rather than observed invalid ones.
70928
70929 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70930
70931         * modules/ullong_max: New file.
70932
70933         * modules/chdir-long, modules/openat: New files.
70934         * modules/save-cwd (Depends-on): Depend on chdir-long.
70935         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
70936
70937 2005-01-18  Jim Meyering  <jim@meyering.net>
70938
70939         Merge from coreutils.
70940         * m4/chdir-long.m4, m4/openat.m4: New files.
70941         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
70942         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
70943         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
70944         is sane and DOES follow symlinks.  Besides, testing 20 different
70945         systems found no broken chown implementations.
70946         Prompted by a change in rsync's copy of this macro.
70947         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
70948
70949         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
70950
70951         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
70952         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
70953         NULL-means-set-to-current-time semantics.
70954         Remove temporary file immediately, rather than waiting
70955         for configure's at-exit trap code to do it.
70956
70957 2005-01-18  Jim Meyering  <jim@meyering.net>
70958
70959         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70960
70961         * lib/utimens.c (futimens): Account for the fact that futimes
70962         can also fail with errno == ENOSYS or errno == ENOENT.
70963         Patch from Dmitry V. Levin.
70964
70965         Change the name of the robust chdir function from chdir to chdir_long.
70966         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70967         (restore_cwd): Use chdir_long, not chdir.
70968         * lib/chdir-long.c: Renamed from chdir.c.
70969         * lib/chdir-long.h: Renamed from chdir.h.
70970         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70971         Hurd.
70972
70973 2005-01-18  Bruno Haible  <bruno@clisp.org>
70974
70975         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70976         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70977         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70978         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70979         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70980         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70981         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70982         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70983         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70984         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70985         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70986         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70987         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70988         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70989         Use an all-permissive copyright notice, recommended by RMS.
70990
70991 2005-01-18  Bob Proulx  <bob@proulx.com>
70992
70993         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
70994         simplify offsetof() macro construct to avoid compile failure with
70995         native HP-UX 11.0 ANSI C compiler.
70996
70997 2005-01-17  Bruno Haible  <bruno@clisp.org>
70998
70999         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
71000         redundant because stpncpy.m4 takes care of it.
71001
71002 2005-01-17  Bruno Haible  <bruno@clisp.org>
71003
71004         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
71005
71006 2005-01-17  Bruno Haible  <bruno@clisp.org>
71007
71008         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
71009         used.
71010
71011 2005-01-17  Bruno Haible  <bruno@clisp.org>
71012
71013         * lib/fwriteerror.h (fwriteerror): Change specification to include
71014         fclose.
71015         * lib/fwriteerror.c: Include <stdbool.h>.
71016         (fwriteerror): At the end, close the file stream. Record whether
71017         stdout was already closed.
71018
71019 2005-01-17  Bruno Haible  <bruno@clisp.org>
71020
71021         * lib/execute.c (environ): Declare if needed.
71022         * lib/pipe.c (environ): Likewise.
71023         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
71024
71025 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71026
71027         * modules/argp: Depend on vsnprintf
71028
71029 2005-01-10  Jim Meyering  <jim@meyering.net>
71030
71031         * modules/closeout (Depends-on): Add atexit.
71032
71033 2005-01-06  Bruno Haible  <bruno@clisp.org>
71034
71035         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
71036
71037 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71038
71039         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
71040         definitions to be after all include files, to avoid collisions.
71041         Problem reported by Bob Proulx.
71042
71043 2005-01-04  Jim Meyering  <jim@meyering.net>
71044
71045         Changes imported from coreutils.
71046         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
71047         as the mkstemp template, use a temporary directory and an
71048         8.3-friendly template to avoid trouble on systems like DJGPP.
71049         Reported by Juan M. Guerrero via Stepan Kasal.
71050         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71051         close. Remove the temporary directory right away, rather than waiting
71052         for configure's at-exit trap code to do it.
71053         Suggestion from Stepan Kasal.
71054
71055 2005-01-01  Simon Josefsson  <jas@extundo.com>
71056
71057         * gnulib-tool: Print #include directives when --import'ing.
71058
71059 2004-12-28  Simon Josefsson  <jas@extundo.com>
71060
71061         * tests/test-base64.c: Include required header files.  Remove
71062         unused variables.
71063
71064 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * modules/error (Depends-on): Remove gettext.
71067
71068 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71069
71070         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
71071         not needed.  This removes a dependency on the gettext module.
71072         [defined _LIBC]: Do not include <libintl.h>; not needed.
71073
71074 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
71077         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
71078
71079 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71080
71081         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
71082         HAVE_DECL_STRTOLD.
71083
71084 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * modules/getdate (Depends-on): Remove alloca-opt.
71087
71088 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71091
71092 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71093
71094         * lib/argp-parse.c: Include <stddef.h>.
71095         (alignof, alignto): New macros.
71096         (parser_init): Don't assume that void * is aligned sufficiently
71097         for struct option.
71098
71099         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71100         need to extend the stack.
71101         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71102         large.
71103
71104 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71105
71106         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71107
71108 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71109
71110         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71111         (2004-10-24) change.  Apparently this was a false alarm.
71112
71113         * modules/getdate: Depend on alloca-opt, not alloca.
71114
71115 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71116
71117         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71118         Remove now-obsolete comment about AIX.
71119         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71120         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71121         (YYMAXDEPTH): New macro.
71122
71123 2004-12-18  Simon Josefsson  <jas@extundo.com>
71124
71125         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71126
71127 2004-12-18  Bruno Haible  <bruno@clisp.org>
71128
71129         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71130
71131 2004-12-18  Bruno Haible  <bruno@clisp.org>
71132
71133         * lib/fatal-signal.c (fatal_signals): Make non-const.
71134         (init_fatal_signals): New function.
71135         (uninstall_handlers, install_handlers): Ignore signals that were set to
71136         SIG_IGN.
71137         (at_fatal_signal): Call init_fatal_signals.
71138         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71139         SIG_IGN.
71140         Reported by Paul Eggert.
71141
71142 2004-12-18  Bruno Haible  <bruno@clisp.org>
71143
71144         * doc/alloca.texi: New file.
71145         * doc/alloca-opt.texi: New file.
71146
71147 2004-12-17  Jim Meyering  <jim@meyering.net>
71148
71149         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71150         Otherwise, install-sh could exit with improper exit status when
71151         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71152
71153 2004-12-16  Simon Josefsson  <jas@extundo.com>
71154
71155         * tests/test-base64.c: Add license.
71156
71157 2004-12-15  Stepan Kasal  <address@hidden>
71158
71159         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71160
71161 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71162
71163         * modules/getcwd (Files): Add m4/d-ino.m4.
71164         Suggested by Mark D. Baushke.
71165
71166 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * lib/getdate.y (textint): New member "negative".
71169         (time_zone_hhmm): New function.
71170         Expect 14 shift-reduce conflicts, not 13.
71171         (o_colon_minutes): New rule.
71172         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71173         (yylex): Set the "negative" member of signed numbers.
71174
71175 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71176
71177         * doc/getdate.texi (Time of day items, Time zone items):
71178         Describe new formats +00:00, UTC+00:00.
71179
71180 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71181
71182         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71183         spurious "-l"s.  Problem reported by Stepan Kasal.
71184
71185 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71188         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71189
71190 2004-12-04  Simon Josefsson  <jas@extundo.com>
71191
71192         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71193         Vandoorselaere <yoann@prelude-ids.org>.
71194
71195 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         Changes imported from coreutils.
71198         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71199         exist.
71200         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71201
71202 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71203
71204         Changes imported from coreutils.
71205         * lib/hard-locale.c: Assume <locale.h> exists.
71206         Include "strdup.h".
71207         (GLIBC_VERSION): New macro.
71208         (hard_locale): Assume setlocale exists.
71209         Rewrite to avoid #ifdef.
71210         Use strdup rather than malloc + strcpy.
71211         * lib/human.c: Assume <locale.h> exists.
71212         (human_readable): Assume localeconv exists.
71213
71214 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71215
71216         * modules/hard-locale (Depends-on): Add strdup.
71217
71218 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71219
71220         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71221         convert T2, not T.  (Imported from libc.)
71222
71223 2004-11-30  Simon Josefsson  <jas@extundo.com>
71224
71225         * modules/restrict (License): Change to LGPL.
71226
71227 2004-11-30  Simon Josefsson  <jas@extundo.com>
71228
71229         * m4/restrict.m4: Add copyright and copying conditions.
71230
71231 2004-11-30  Simon Josefsson  <jas@extundo.com>
71232
71233         * m4/base64.m4: New file.
71234
71235 2004-11-30  Simon Josefsson  <jas@extundo.com>
71236
71237         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71238         base64.
71239
71240         * tests/test-base64.c: New file.
71241
71242         * modules/base64: New file.
71243
71244 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71245
71246         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71247         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71248
71249         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71250
71251 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71252
71253         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71254         (__getcwd.c): Don't restore errno; glibc doesn't.
71255         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71256         first, falling back to our code only if its results look suspicious.
71257         Ensure that the resulting buffer is only as large as necessary.
71258
71259         * lib/readutmp.c: Include readutmp.h first.
71260         Include <errno.h>, since readutmp.h no longer does that.
71261         * lib/readutmp.h: Don't include <errno.h>,
71262         <sys/param.h>, <time.h>; not needed to establish interface.
71263         (errno): Remove decl.
71264         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71265         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71266         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71267
71268 2004-11-28  Simon Josefsson  <jas@extundo.com>
71269
71270         * lib/base64.h, base64.c: New file.
71271
71272 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71273
71274         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71275
71276 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71277
71278         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71279         (Depends-on): Remove pathmax, same.  Add mempcpy.
71280         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71281         (Makefile.am): Append getcwd.h to lib_SOURCES.
71282         (Include): Add getcwd.h.
71283         (Maintainer): Change from Jim Meyering to "all, glibc",
71284         since getdate now uses intended-for-glibc code.
71285         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71286         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71287
71288 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71291         HP's ANSI C compiler.
71292         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71293         Declaring int functions causes warnings on some modern systems and
71294         shouldn't be needed to compile on ancient ones.
71295         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71296         defined.
71297
71298         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71299         with the following changes.
71300         (__set_errno): Parenthesize properly.
71301         Include <stdbool.h>.
71302         (MIN, MAX, MATCHING_INO): New macros.
71303         (__getcwd): Define with prototype, not K&R form.
71304         Use heuristics to allocate default buffer on stack if possible.
71305         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71306         behavior, and to avoid the PATH_MAX limit when computing
71307         ../../../../...
71308         Use MATCHING_INO to compare inode number to file.
71309         Check for arithmetic overflow in size calculations.
71310         Fix bug in reallocation of dot array that caused getcwd to fail
71311         on directories nested deeper than 75.
71312         Be more careful about saving errno on error.
71313         Do not use realloc; use only free+malloc, as this is a bit
71314         more flexible and avoids a needless copy operation.
71315         Do not inspect st_dev and st_ino for symbolic links; POSIX
71316         doesn't specify the latter.
71317         Check for closedir errors.
71318         Avoid needless casts.
71319         Use "#ifdef weak_alias" around weak_alias, to be like other
71320         glibc code.
71321         The following changes to getcwd.c have effect only when used in
71322         gnulib; they have no effect inside glibc proper.
71323         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71324         as alloca isn't used.
71325         (alloca, __alloca): Likewise.
71326         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71327         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71328         unconditionally, as gnulib assumes C89 or better.
71329         Do not include <sys/param.h>.
71330         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71331         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71332         better.
71333         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71334         Include <dirent.h> in a way that is compatible with modern Autoconf.
71335         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71336         New macros, if not already defined.
71337         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71338         Use "_LIBC", not "defined _LIBC", for consistency.
71339         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71340         a mempcpy module.
71341         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71342         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71343         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71344         credit only to Jim Meyering and adjust the copyright dates.
71345         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71346         <stdlib.h>, <unistd.h>, "pathmax.h".
71347         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71348         (INITIAL_BUFFER_SIZE): Remove.
71349         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71350
71351 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71352
71353         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71354         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71355         Use the _ONCE methods, for efficiency.
71356         Check for fcntl.h.  In test program, include <errno.h>
71357         and <fcntl.h> if available.  Remove old K&R cruft from
71358         test program.  Check for common errors in GNU/Linux,
71359         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71360         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71361         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71362         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71363         name accordingly.
71364         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71365         accommodate new getcwd.c.
71366         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71367         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71368         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71369         that's all we need now.
71370
71371 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71372
71373         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71374         argp-parse.c depends on getopt internals, that means we should
71375         always use our getopt, to be on the safe side.
71376         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71377         order not to spoil the result of an eventual previous invocation
71378         of gl_GETOPT_SUBSTITUTE.
71379
71380 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71381
71382         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71383         redefinition warnings. To avoid them, include the defines
71384         in `#if !defined __need_getopt ... #endif'. The only place
71385         where __getopt_argv_const is used is in definitions
71386         of getopt_long and getopt_long_only below, which are as well
71387         protected by `#ifndef __need_getopt'.
71388         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71389         __need_getopt after including <stdio.h> and <unistd.h> These
71390         headers might have defined it.
71391
71392 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71393
71394         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71395
71396 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71397
71398         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71399         (futimens): New function, which uses futimes if available.
71400         (futimens, utimens): Support timespec==NULL, with same semantics
71401         as utime and utimens.
71402         * lib/utimens.h (futimens): New decl.
71403
71404 2004-11-23  Jim Meyering  <jim@meyering.net>
71405
71406         * lib/getopt_.h: Remove trailing blanks.
71407
71408 2004-11-23  Jim Meyering  <jim@meyering.net>
71409
71410         * lib/__fpending.c: Add comment.
71411
71412 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71413
71414         * modules/canonicalize (Depends-on): Add xreadlink.
71415         Problem reported by James Youngman.
71416
71417 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71418
71419         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71420         New macros.
71421         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71422         optopt): Use them instead of invoking ## directly; otherwise, the
71423         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71424
71425 2004-11-19  Bruno Haible  <bruno@clisp.org>
71426
71427         * lib/strtok_r.c: Move comments from here...
71428         * lib/strtok_r.h: ... to here.
71429
71430 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71431
71432         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71433         implementations that mishandle size_t overflow.
71434
71435 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71436
71437         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71438         might fail.  Problem reported by Yoann Vandoorselaere.
71439         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71440         implementations that mishandle size_t overflow.
71441
71442 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71443
71444         * modules/canon-host (Depends-on): Add strdup.
71445
71446 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71447
71448         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71449
71450 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71451
71452         * lib/canon-host.c: Include "strdup.h".
71453         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71454         Use strdup instead of malloc/strcpy to duplicate strings.
71455
71456         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71457         (human_space_before_unit): New constant.
71458         * lib/human.c (human_readable): Support it.
71459
71460         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71461         (xgetcwd): Set errno correctly when failing.
71462         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71463         the failure is actually due to a PATH_MAX problem.
71464
71465         Further getopt changes to make it more likely that glibc will
71466         buy the changes back.
71467         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71468         (getopt): Use it, so to preserve glibc semantic
71469         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71470         when compiling for libc.
71471         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71472         (getopt_long, getopt_long_only): Use it.
71473
71474         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71475         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71476         (getopt): Argv is now char * const *, as per standard.
71477         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71478         not char *__getopt_argv_const *.
71479         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71480         _getopt_long_only_r): Likewise.
71481         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71482         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71483         _getopt_long_r, _getopt_long_only_r): Likewise.
71484         * lib/getopt_.h (__getopt_argv_const): Remove.
71485         (getopt): Argv is now char * const *, as per standard.
71486
71487         * lib/getdate.y (tORDINAL): New token.
71488         (day, relunit): Allow it for relative times.
71489         (relative_time_table): Use tORDINAL for ordinals.
71490
71491 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71492
71493         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71494         Document that "second" isn't allowed as an ordinal number.
71495
71496 2004-11-16  Jim Meyering  <jim@meyering.net>
71497
71498         * modules/closeout (Depends-on): Add fpending.
71499
71500 2004-11-15  Jim Meyering  <jim@meyering.net>
71501
71502         * lib/closeout.c: Include "__fpending.h" once again.
71503         Include <stdbool.h>.
71504         (close_stdout): Don't fail just because stdout was closed initially,
71505         since some programs don't write to stdout in the normal course of
71506         operation (other than --version and --help), and we don't want this
71507         function to make e.g. `touch file >&-' fail.
71508         But do fail if it was closed and someone has tried to write to it.
71509         E.g., `printf foo >&-' must fail.
71510
71511 2004-11-13  Jim Meyering  <jim@meyering.net>
71512
71513         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71514
71515 2004-11-12  Simon Josefsson  <jas@extundo.com>
71516
71517         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71518         small doc fix is still pending.
71519
71520 2004-11-11  Simon Josefsson  <jas@extundo.com>
71521
71522         * modules/strtok_r: New file.
71523
71524         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71525         strtok_r.
71526
71527 2004-11-11  Simon Josefsson  <jas@extundo.com>
71528
71529         * m4/strtok_r.m4: New file.
71530
71531         * m4/getopt.m4: Replace opterr.
71532
71533 2004-11-11  Simon Josefsson  <jas@extundo.com>
71534
71535         * lib/strtok_r.h, strtok_r.c: New file.
71536
71537 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71538
71539         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71540         of replacing opterr, getopt, etc.  This should handle the
71541         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71542
71543 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71544
71545         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71546         we can stop lying to compilers about the constness of argv when we
71547         are compiled outside glibc.
71548         (getopt, getopt_long, getopt_long_only): Use it.
71549         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71550         _getopt_internal, getopt): Likewise.
71551         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71552         _getopt_long_only_r): Likewise.
71553         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71554         _getopt_long_r, _getopt_long_only_r): Likewise.
71555
71556         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71557         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71558         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71559         the other external symbols.
71560         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71561         declaration, since the above renaming now works around collisions.
71562
71563 2004-11-11  Jim Meyering  <jim@meyering.net>
71564
71565         * lib/linebreak.c: Remove trailing blanks.
71566         * lib/alloca_.h: Likewise.
71567         * lib/acosl.c: Likewise.
71568         * lib/euidaccess.c: Likewise.
71569         * lib/allocsa.h: Likewise.
71570
71571 2004-11-10  Simon Josefsson  <jas@extundo.com>
71572
71573         * m4/getaddrinfo.m4: New file.
71574
71575 2004-11-10  Simon Josefsson  <jas@extundo.com>
71576
71577         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71578
71579 2004-11-10  Simon Josefsson  <jas@extundo.com>
71580
71581         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71582         getaddrinfo.
71583
71584         * modules/getaddrinfo: New file.
71585
71586 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71587
71588         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71589
71590 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         * lib/mktime.c (SHR): New macro, which is a portable
71593         substitute for >> that should work even on Crays.
71594         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71595         Problem reported by Mark D. Baushke in
71596         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71597         * lib/getdate.y (SHR): Likewise.
71598         (tm_diff): Use it.
71599         * lib/strftime.c (SHR): Likewise.
71600         (tm_diff): Use it.
71601         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71602         quote_these_too, so that right shifts are well defined.  All uses
71603         changed.
71604
71605 2004-11-10  Jim Meyering  <jim@meyering.net>
71606
71607         Ensure that no close failure goes unreported.
71608         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71609         return early when it seems there's nothing to flush.
71610         Don't include __fpending.h.
71611
71612 2004-11-10  Jim Meyering  <jim@meyering.net>
71613
71614         * modules/closeout (Depends-on): Remove fpending.
71615
71616 2004-11-10  Jim Meyering  <jim@meyering.net>
71617
71618         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71619
71620 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71621
71622         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71623         gl_FUNC_STRFTIME.
71624         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71625         and AC_REQUIRE when possible, to avoid duplicate checks.
71626         Check for <wchar.h>.
71627
71628 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71629
71630         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71631
71632 2004-11-09  Bruno Haible  <bruno@clisp.org>
71633
71634         * m4/sockpfaf.m4: New file.
71635
71636 2004-11-05  Bruno Haible  <bruno@clisp.org>
71637
71638         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71639         Reported by Mark D. Baushke <mdb@cvshome.org>.
71640
71641 2004-11-04  Bruno Haible  <bruno@clisp.org>
71642
71643         2004-09-11  Bruno Haible  <bruno@clisp.org>
71644                 * allocsa.valgrind: New file.
71645         2004-02-06  Bruno Haible  <bruno@clisp.org>
71646                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71647                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71648                 Reported by Christopher Seip <chris.seip@hp.com>.
71649
71650 2004-11-04  Bruno Haible  <bruno@clisp.org>
71651
71652         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71653         (Makefile.am): Distribute it.
71654
71655 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71656
71657         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71658         with errno == ERANGE if the buffer is too small.
71659         Problem reported by Mark D. Baushke.
71660
71661 2004-11-03  Albert Chin  <china@thewrittenword.com>
71662             Paul Eggert  <eggert@cs.ucla.edu>
71663
71664         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71665         equivalent, substitute $ac_type for equivalent type rather than
71666         blindly using uint32_t *always* which won't work if uint32_t is not
71667         available.  Define _UINT32_T to work around typedef of uint32_t if
71668         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71669         2.5.1.
71670
71671 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71672
71673         * m4/jm-macros.m4: Sync from coreutils.
71674         (gl_MACROS): Check for mbrlen, for pathchk.
71675         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71676
71677 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71678
71679         * lib/xreadlink.c (MAXSIZE): New macro.
71680         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71681         size does not exceed MAXSIZE.  Avoid cast.
71682         As suggested by Mark D. Baushke in
71683         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71684         if readlink fails with buffer size just under MAXSIZE, try again
71685         with MAXSIZE.
71686
71687 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71688
71689         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71690
71691 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71692         and  Paul Eggert  <eggert@cs.ucla.edu>
71693
71694         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71695         (get_date): Overparenthesize to avoid GCC warning.
71696
71697 2004-11-02  Bruno Haible  <bruno@clisp.org>
71698
71699         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71700         returns void.
71701
71702 2004-11-02  Bruno Haible  <bruno@clisp.org>
71703
71704         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71705         function returns void.
71706
71707 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71708
71709         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71710         fflush_unlocked, flockfile, funlockfile, funlockfile,
71711         fputs_unlocked, putc_unlocked.
71712
71713 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71714
71715         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71716         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71717         already declared.
71718
71719 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71720
71721         * modules/getdate (Files): Add doc/getdate.texi.
71722         (Depends-on): Add setenv, xalloc.
71723
71724 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71725
71726         * lib/getdate.y: Add support for TZ="foo" within a date string.
71727         Fix some bugs near time_t boundaries.  Reject dates with
71728         out-of-range components, e.g., "Sept 31".
71729         Include <stdlib.h>, "setenv.h", "xalloc.h".
71730         (ISDIGIT_LOCALE): Remove; unused.
71731         Note that the TZ and time functions used here are not reentrant.
71732         (mktime_ok, get_tz): New functions.
71733         (TZBUFSIZE): New constant.
71734         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71735         This requires that we sometimes generate our own TZ="XXX..." setting.
71736
71737 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71738
71739         * doc/getdate.texi: New file, from coreutils with modifications for
71740         the new TZ parsing.
71741
71742 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71743
71744         * lib/mktime.c (not_equal_tm): Remove redundant check.
71745
71746 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71747
71748         * modules/regex (lib_SOURCES): Add regex.c.
71749         Reported by James Youngman in
71750         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71751
71752 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         * lib/getdate.y: Use Bison 1.875 features, and some minor
71755         code cleanups.  This change does not affect semantics.
71756         Don't include <stdlib.h>; no longer needed.
71757         Don't include unlocked-io.h; only the "#if TEST" code uses
71758         stdio, and performance isn't crucial there.
71759         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
71760         Bison 1.875 features as described below.
71761         All uses of "PC." replaced by "pc->".
71762         (YYSTYPE): Add a forward declaration.
71763         (yylex, yyerror): Use full prototypes in forward decls.
71764         Use "%pure-parser" rather than obsolescent "%pure_parser".
71765         Use %parse-param and %lex-param instead of obsolescent
71766         YYPARSE_PARAM and YYLEX_PARAM.
71767         (meridian_table, month_and_day_table, time_units_table,
71768         relative_time_table, time_zone_table, military_table,
71769         lookup_zone, lookup_word, get_date):
71770         Use NULL instead of 0 where appropriate.
71771         (to_hour): Avoid abort (), to avoid a dependency on
71772         stdlib.h.
71773         (yyerror, yylex): Now accepts parser_control * arg.
71774         (main) [TEST]: Use '\0' rather than 0 for char.
71775
71776 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71777
71778         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
71779
71780 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
71783         It's now the caller's responsibility to handle the case where
71784         !HAVE_GETPAGESIZE && !defined getpagesize.
71785
71786         * lib/mktime.c (leapyear): Arg is long int, not int.
71787
71788 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
71789
71790         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
71791
71792 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71793
71794         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
71795         missing.  Problem reported by James Youngman.
71796
71797 2004-10-16  Simon Josefsson  <jas@extundo.com>
71798
71799         * gnulib-tool: Fix comments.  Fix parse problem.
71800         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
71801
71802 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
71803
71804         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
71805         implementation of getopt_long.  Problem reported by Alexander Taler in:
71806         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
71807
71808 2004-10-15  Bruno Haible  <bruno@clisp.org>
71809
71810         * gnulib-tool: Untabify. Initialize supplied_libname.
71811         (func_usage): More homogenous output.
71812         (func_modules_transitive_closure, func_modules_to_filelist,
71813         func_emit_lib_Makefile_am): New functions.
71814         (func_import): New function, extracted from big case statement. Use
71815         func_get_license, func_modules_transitive_closure,
71816         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
71817         opt_lgpl. Don't use test -a, as it's not portable.
71818         (func_create_testdir): Use func_modules_transitive_closure,
71819         func_modules_to_filelist, func_emit_lib_Makefile_am.
71820
71821 2004-10-15  Bruno Haible  <bruno@clisp.org>
71822
71823         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
71824
71825 2004-10-15  Bruno Haible  <bruno@clisp.org>
71826
71827         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
71828         the portions belonging to each module.
71829         Suggested by Derek Robert Price <derek@ximbiot.com>.
71830
71831 2004-10-12  Simon Josefsson  <jas@extundo.com>
71832
71833         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71834         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
71835         to real functions.
71836
71837 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71838
71839         * modules/vsnprintf: New file.
71840
71841 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71842
71843         * m4/vsnprintf.m4: New file.
71844
71845 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71846
71847         * lib/vsnprintf.h: New file.
71848         * lib/vsnprintf.c: New file.
71849
71850 2004-10-11  Bruno Haible  <bruno@clisp.org>
71851
71852         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
71853         vsnprintf.
71854
71855 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71856
71857         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
71858
71859 2004-10-07  Bruno Haible  <bruno@clisp.org>
71860
71861         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
71862         fits into the provided buffer.
71863
71864 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71865
71866         * lib/diacrit.c, diacrit.h: Add GPL notice.
71867
71868         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
71869         notice.
71870         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
71871         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
71872         This avoids a potential constant-folding bug.
71873
71874 2004-10-05  Bruno Haible  <bruno@clisp.org>
71875
71876         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
71877         for the declaration of strsep.
71878
71879 2004-10-05  Bruno Haible  <bruno@clisp.org>
71880
71881         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
71882
71883 2004-10-04  Simon Josefsson  <jas@extundo.com>
71884
71885         * modules/memmem: New file.
71886         * tests/test-memmem.c: New file.
71887         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
71888
71889 2004-10-04  Simon Josefsson  <jas@extundo.com>
71890
71891         * m4/memmem.m4: New file.
71892
71893 2004-10-04  Simon Josefsson  <jas@extundo.com>
71894
71895         * lib/memmem.h: New file.
71896         * lib/memmem.c: New file, taken from glibc.
71897
71898 2004-10-04  Simon Josefsson  <jas@extundo.com>
71899
71900         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
71901         '#ifdef USE_UNLOCKED_IO'.
71902
71903 2004-10-04  Simon Josefsson  <jas@extundo.com>
71904
71905         * config/srclist.txt: Add memmem from glibc.
71906
71907 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
71910
71911         * modules/argmatch, modules/argp, modules/closeout, modules/error,
71912         modules/exclude, modules/getdate, modules/getline,
71913         modules/getndelim2, modules/getpass, modules/getpass-gnu,
71914         modules/getusershell, modules/linebuffer, modules/md5,
71915         modules/mountlist, modules/posixtm, modules/readtokens,
71916         modules/readutmp, modules/regex, modules/sha1,
71917         modules/version-etc, modules/yesno:
71918         Remove dependency on unlocked-io.
71919
71920 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71921
71922         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
71923
71924         * m4/unlocked-io.m4: Add copyright notice.
71925         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
71926
71927 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71928
71929         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
71930         * lib/xmalloc.c (xmemdup): Likewise.
71931         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
71932         XFREE): Remove these long-obsolescent macros.
71933         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
71934         * lib/xstrdup.c: Remove.
71935
71936         * lib/regex.c (re_comp): Cast gettext return value to char *,
71937         Problem reported by Martin Neitzel via Mark D. Baushke.
71938
71939 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71940
71941         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
71942         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
71943         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
71944         regex.c, sha1.c, version-etc.c, yesno.c:
71945         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
71946         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
71947         the includer's responsibility.
71948
71949         Sync from coreutils.
71950
71951         * lib/modechange.c (mode_compile): Don't decrement a pointer that
71952         points to the start of a string, as the C Standard says the
71953         resulting behavior is undefined.
71954
71955         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71956         simple -> simple_backups, numbered_existing ->
71957         numbered_existing_backups, numbered -> numbered_backups
71958         to avoid shadowing problems.  All uses changed.
71959         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71960         * lib/backupfile.c (check_extension, numbered_backup):
71961         Rename locals to avoid shadowing 'basename'.
71962         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71963         once.
71964
71965         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71966         * lib/.cvsignore: Add getopt.h.
71967
71968 2004-10-04  Bruno Haible  <bruno@clisp.org>
71969
71970         * modules/README: New file.
71971         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71972         not a module.
71973
71974 2004-10-02  Jim Meyering  <jim@meyering.net>
71975
71976         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71977
71978 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71979
71980         * modules/strsep: New file.
71981
71982 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71983
71984         * m4/strsep.m4: New file.
71985
71986 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71987
71988         * lib/strsep.h: New file.
71989         * lib/strsep.c: New file.
71990
71991 2004-10-01  Simon Josefsson  <jas@extundo.com>
71992
71993         * lib/snprintf.c (snprintf): Handle size==0.
71994
71995 2004-10-01  Simon Josefsson  <jas@extundo.com>
71996             Bruno Haible  <bruno@clisp.org>
71997
71998         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
71999         (snprintf): Declare 'args'.
72000
72001 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
72002
72003         * lib/snprintf.c: Remove comments as to why each header is needed.
72004
72005 2004-10-01  Bruno Haible  <bruno@clisp.org>
72006
72007         * MODULES.html.sh: Add strsep.
72008
72009 2004-09-30  Simon Josefsson  <jas@extundo.com>
72010
72011         * modules/snprintf: New file.
72012
72013 2004-09-30  Simon Josefsson  <jas@extundo.com>
72014
72015         * m4/snprintf.m4: New file.
72016
72017 2004-09-30  Simon Josefsson  <jas@extundo.com>
72018
72019         * lib/snprintf.h, lib/snprintf.c: New files.
72020
72021 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72022
72023         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
72024         (hol_entry_help): Never translate an empty string.
72025         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
72026         * lib/argp.h (OPTION_NO_TRANS): New option.
72027
72028 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72029
72030         * modules/argp (Maintainer): Replace Simon Josefsson
72031         by Sergey Poznyakoff.
72032
72033 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72034
72035         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
72036         changes merged back into glibc.
72037
72038 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72039
72040         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
72041
72042 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72043
72044         * lib/xvasprintf.c: Include xalloc.h.
72045         (xvasprintf): Use xalloc_die, not xmalloc_die.
72046
72047 2004-09-29  Bruno Haible  <bruno@clisp.org>
72048
72049         * modules/alloca-opt: New file, derived from modules/alloca.
72050         * modules/allocsa: Depend on alloca-opt instead of alloca.
72051         * modules/setenv: Likewise.
72052         * modules/vasnprintf: Likewise.
72053         * MODULES.html.sh: Add alloca-opt.
72054
72055 2004-09-28  Simon Josefsson  <jas@extundo.com>
72056
72057         * gnulib-tool: New parameter --lgpl, to asseert that modules are
72058         LGPL, and to replace license template from GPL to LGPL.
72059
72060 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72061
72062         * modules/dummy: Change license to LGPL.
72063
72064 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72065
72066         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
72067
72068 2004-09-24  Simon Josefsson  <jas@extundo.com>
72069
72070         * modules/minmax (License): Change from GPL to LGPL.
72071
72072 2004-09-23  Simon Josefsson  <jas@extundo.com>
72073
72074         * gnulib-tool (--import): Typo.
72075
72076 2004-09-23  Simon Josefsson  <jas@extundo.com>
72077
72078         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
72079
72080 2004-09-22  Bruno Haible  <bruno@clisp.org>
72081
72082         * modules/*: Add 'License' field.
72083         * gnulib-tool: Accept --extract-license option.
72084         (func_get_license): New function.
72085
72086 2004-09-21  Bruno Haible  <bruno@clisp.org>
72087
72088         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72089         Reported by Simon Josefsson.
72090
72091 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72092
72093         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72094         gl_AC_TYPE_LONG_LONG.
72095
72096 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72097
72098         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72099
72100 2004-09-18  Simon Josefsson  <jas@extundo.com>
72101         and  Paul Eggert  <eggert@cs.ucla.edu>
72102
72103         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72104         calls with autoreconf.  Define GL_LIB.
72105
72106 2004-09-14  Karl Berry  <karl@gnu.org>
72107
72108         * config/srclist.txt: unsync setenv.c, sigh.
72109
72110 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72111
72112         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72113         Problem reported by Bruno Haible in:
72114         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72115
72116 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72117
72118         * config/srclist.txt: Comment out argp-pvh.c.
72119
72120 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72121
72122         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72123         in case some system header has #define'd it.  Problem reported by
72124         Soeren D. Schulze in
72125         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72126
72127 2004-09-09  Karl Berry  <karl@gnu.org>
72128
72129         * regex.[ch]: delete from the root.  These were supposed to be
72130                 synced with emacs cvs, but this has not happened for about
72131                 a year, and anyway nothing else uses emacs regex.[ch].
72132                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72133                 lib/regex[.ch] is untouched.
72134
72135 2004-09-09  Bruno Haible  <bruno@clisp.org>
72136
72137         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72138
72139 2004-09-09  Bruno Haible  <bruno@clisp.org>
72140
72141         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72142         modifications.
72143         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72144
72145 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72146
72147         * modules/xvasprintf: New file.
72148         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72149
72150 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72151
72152         * lib/xvasprintf.h: New file.
72153         * lib/xvasprintf.c: New file.
72154         * lib/xasprintf.c: New file.
72155
72156 2004-09-08  Bruno Haible  <bruno@clisp.org>
72157
72158         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72159
72160 2004-09-08  Bruno Haible  <bruno@clisp.org>
72161
72162         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72163         length is > INT_MAX.
72164         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72165         more.
72166
72167 2004-09-08  Bruno Haible  <bruno@clisp.org>
72168
72169         * lib/stdint_.h: New file, taken from GNU clisp.
72170
72171 2004-09-08  Bruno Haible  <bruno@clisp.org>
72172             Oskar Liljeblad  <oskar@osk.mine.nu>
72173
72174         * modules/stdint: New file.
72175         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72176
72177 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72178
72179         Import from coreutils.
72180         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72181         strings on unbounded length.  alloca's performance benefits aren't
72182         that important here.
72183         (V_STRDUP): Remove.
72184         (parse_with_separator): New function, with most of the internals
72185         of the old parse_user_spec.  Allow user to omit both user and group,
72186         for compatibility with FreeBSD.
72187         Clone only the user name, not the entire spec.
72188         Do not set *uid, *gid unless entirely successful.
72189         Avoid memory leak in some failing cases.
72190         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72191         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72192         (parse_user_spec): Rewrite to use parse_with_separator.
72193
72194 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72195
72196         * modules/userspec: Don't depend on alloca.
72197
72198 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72199
72200         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72201
72202 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72203
72204         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72205         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72206         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72207
72208 2004-08-16  Simon Josefsson  <jas@extundo.com>
72209
72210         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72211         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72212         Add --dry-run for --import.
72213         Let user provided command line parameters override configure.ac
72214         settings.
72215
72216 2004-08-12  Simon Josefsson  <jas@extundo.com>
72217
72218         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72219         as discussed with Paul Eggert in threads rooted at
72220         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72221         and
72222         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72223         Before, the test was empty, and relied on ELIDE_CODE in source
72224         code.)
72225         (gl_PREREQ_GETOPT): New macro.
72226         (gl_GETOPT): Use them.
72227
72228 2004-08-12  Simon Josefsson  <jas@extundo.com>
72229
72230         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72231         * lib/getopt_.h: Renamed from getopt.h.
72232
72233 2004-08-12  Simon Josefsson  <jas@extundo.com>
72234
72235         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72236         Change default library name from libfoo to libgnu.
72237         Now, if you have a configure.ac that says:
72238                 gl_SOURCE_BASE(gl)
72239                 gl_M4_BASE(gl/m4)
72240                 gl_MODULES(error getopt etcetera)
72241                 gl_INIT
72242         you can import all you need by running:
72243                 ../gnulib/gnulib-tool --import
72244
72245         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72246         (Makefile.am): Rewrite, use logic from argz.
72247         (Include): Use <getopt.h> instead of "getopt.h".
72248
72249 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72250
72251         * modules/argp (Files): Add m4/unlocked-io.m4.
72252         (Depends-on): Add extensions.
72253
72254 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72255
72256         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72257         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72258         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72259         Check for program_invocation_name, program_invocation_short_name,
72260         flockfile, funlockfile, features.h, _getopt_long_only_r.
72261
72262 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72265         its complicated substitute.
72266         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72267         and program_invocation_name.
72268         (__argp_basename) [!_LIBC]: Remove; the only use was
72269         replaced by its body.
72270         (__argp_short_program_name): Change condition from
72271         !defined __argp_short_program_name to
72272         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72273         to match argp-namefrob.h.
72274         (__argp_failure): Don't assume strerror_r returns char *.
72275         * lib/argp-parse.c (N_): Define unconditionally.
72276         (argp_default_options): Fill out initializers with 0 to avoid
72277         gcc warnings.
72278
72279 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72280
72281         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72282         getopt1.c.
72283
72284 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72285
72286         Merge from coreutils.
72287
72288         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72289
72290         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72291         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72292
72293 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72294
72295         Merge from coreutils.
72296
72297         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72298         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72299         for Reliant Unix 5.43.
72300
72301         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72302         (union fooround): Use uintmax_t, not long int.
72303         The rest is a merge from libc:
72304         [defined _LIBC]: Include <shlib-compat.h>.
72305         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72306
72307         * lib/settime.c (settime): Recode to avoid warning with
72308         Sun Forte C 6U2.
72309
72310         * lib/strverscmp.c: Convert to UTF-8.
72311
72312 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72313
72314         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72315         m4/uintmax_t.m4.
72316
72317 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72318
72319         * modules/xalloc-die: New file.
72320         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72321
72322         * modules/md5 (Files): Add m4/uint32_t.m4.
72323         * modules/sha1: Renamed from modules/sha.
72324         (Files):
72325         Rename lib/sha.h to lib/sha1.h.
72326         Rename lib/sha.c to lib/sha1.c.
72327         Rename m4/sha.m4 to m4/sha1.m4.
72328         (lib_SOURCES): Likewise.
72329         (configure.ac): Rename gl_SHA to gl_SHA1.
72330         (Include): sha.h -> sha1.h.
72331
72332 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72335         * m4/sha1.m4: Renamed from sha.m4.
72336         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72337
72338 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72339
72340         * lib/obstack.h (obstack_empty_p):
72341         Don't assume that chunk->contents is suitably aligned.
72342         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72343         Likewise. Problem reported by Benno in
72344         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72345
72346         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72347         readable.  This could be improved further but it'd take some work.
72348
72349 2004-08-08  Simon Josefsson  <jas@extundo.com>
72350
72351         * modules/xgethostname (Depends-on): Remove exit and error (not
72352         used).
72353
72354         * modules/getpass-gnu: Add getpass.h.
72355         (Depends-on): Add stdbool.
72356         * modules/getpass: Add getpass.h.
72357
72358 2004-08-08  Simon Josefsson  <jas@extundo.com>
72359
72360         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72361         Check getpass declaration.
72362
72363 2004-08-08  Simon Josefsson  <jas@extundo.com>
72364
72365         * lib/xgethostname.c: Don't include error.h (not used).
72366
72367         * lib/getpass.h: Add.
72368         * lib/getpass.c: Include getpass.h first.
72369
72370 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72371
72372         * lib/xalloc-die.c: New file.
72373         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72374         All uses removed.
72375         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72376         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72377         xalloc-die.c.
72378         (_, N_, xalloc_die): Move to xalloc-die.c.
72379         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72380         so that we needn't mess with xalloc_msg_memory_exhausted.
72381
72382         * lib/sha1.h: Renamed from sha.h.
72383         (SHA1_H): Renamed from _SHA_H.
72384         (sha1_ctx): Renamed from sha_ctx.
72385         (sha1_init_ctx): Renamed from sha_init_ctx.
72386         (sha1_process_block): Renamed from sha_process_block.
72387         (sha1_process_bytes): Renamed from sha_process_bytes.
72388         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72389         (sha1_read_ctx): Renamed from sha_read_ctx.
72390         (sha1_stream): Renamed from sha_stream.
72391         (sha1_buffer): Renamed from sha_buffer.
72392         * lib/sha1.c: Likewise; renamed from sha.c.
72393         Do not include <sys/types.h>.
72394         Include <stddef.h> rather than <stdlib.h>.
72395
72396 2004-08-08  Bruno Haible  <bruno@clisp.org>
72397
72398         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72399         FILESYSTEM_PREFIX_LEN.
72400         * lib/progreloc.c: Likewise.
72401         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72402
72403 2004-08-06  Simon Josefsson  <jas@extundo.com>
72404
72405         * modules/progname (Depends-on): Don't depend on stdbool.
72406
72407 2004-08-06  Simon Josefsson  <jas@extundo.com>
72408
72409         * modules/getsubopt: New file.
72410         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72411         getsubopt.
72412
72413 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         More merge from coreutils.
72416
72417         * m4/utimens.m4, m4/utimecmp.m4: New files.
72418         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72419         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72420         prereq.m4, sha.m4: Import changes from coreutils.
72421
72422 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72423
72424         More merge from coreutils.
72425         * modules/raise, modules/readtokens0, modules/utimens:
72426         * modules/utimecmp, module/xnanosleep: New files.
72427         * modules/strftime: Add lib/strftime.h.
72428         Change include from <time.h> to "strftime.h".
72429         * modules/yesno: Add lib/yesno.h.
72430         * modules/backupfile: Remove lib/addext.c.
72431         * modules/euidaccess: Add stat-macros.h.
72432         * modules/canonicalize, modules/euidaccess,
72433         modules/filemode, modules/lchown, modules/makepath,
72434         modules/rmdir, modules/stat: Likewise.
72435
72436 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72437
72438         Merge from tar.
72439         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72440         SIZE_MAX is a valid preprocessor constant.
72441         (__argp_basename): Change from "#ifndef _LIBC"
72442         to "#ifndef __argp_short_program_name", so that
72443         we don't compile these functions for tar.
72444
72445         More merges from coreutils.
72446         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72447         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72448         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72449         * lib/addext.c: Remove; no longer needed.
72450         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72451         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72452         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72453         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72454         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72455         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72456         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72457         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72458         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72459         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72460         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72461         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72462         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72463         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72464         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72465         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72466         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72467         Import changes from coreutils.
72468
72469 2004-08-05  Simon Josefsson  <jas@extundo.com>
72470
72471         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72472
72473 2004-08-05  Simon Josefsson  <jas@extundo.com>
72474
72475         * m4/getsubopt.m4: New file.
72476
72477 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72478
72479         Merge from coreutils.
72480
72481         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72482         * m4/getcwd-path-max.m4: New files.
72483
72484         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72485         FILESYSTEM_PREFIX_LEN ->
72486         FILE_SYSTEM_PREFIX_LEN.
72487         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72488         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72489         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72490         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72491
72492         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72493         prerequisite modules now handle the DOS stuff.
72494         Don't check for unistd.h.
72495
72496 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72497
72498         Merge from coreutils.
72499
72500         * lib/.gdb-history: Remove; this doesn't belong here.
72501
72502         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72503         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72504         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72505         * lib/getcwd.c: New files.
72506
72507         * lib/dirname.h: Include <stdbool.h>.
72508         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72509         for consistency with POSIX terminology.  All uses changed.
72510         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72511         (strip_trailing_slashes): Use bool for booleans.
72512         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72513
72514         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72515         sometimes returns a positive errno value even when it succeeds.
72516         (print_errno_message) [!LIBC]: Fall back on strerror if
72517         __strerror_r fails.
72518
72519         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72520         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72521         (longest_relative_suffix): New function.
72522         (path_concat): Use it.  Assume first argument is not NULL.
72523         Port to DOS.  Omit redundant separators.
72524         Report an error instead of returning NULL.
72525         Use mempcpy instead of memcpy.
72526         (xpath_concat): Remove: not declared or used.
72527
72528         * lib/same.h: Include <stdbool.h>
72529         (same_name): Return bool, not int.
72530         * lib/same.c (same_name): Likewise.
72531         (errno): Don't declare; we assume C89 or better now.
72532
72533         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72534         if not already defined.
72535
72536         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72537         * lib/dup-safer.c (errno): Likewise.
72538
72539 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72540
72541         Merge from coreutils.
72542         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72543         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72544         * modules/path-concat: Don't depend on strdup.
72545
72546 2004-08-03  Simon Josefsson  <jas@extundo.com>
72547
72548         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72549         * lib/progname.h: Don't include stdbool.h.
72550
72551 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72552
72553         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72554         * MODULES.html.sh (func_all_modules): Remove fatal.
72555
72556 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72557
72558         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72559
72560 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72561
72562         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72563         working.
72564
72565 2004-08-02  Simon Josefsson  <jas@extundo.com>
72566
72567         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72568         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72569         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72570
72571 2004-08-01  Simon Josefsson  <jas@extundo.com>
72572
72573         * lib/xgetdomainname.c: Include stdlib.h, for free().
72574
72575 2004-07-19  Bruno Haible  <bruno@clisp.org>
72576
72577         * MODULES.html.sh (func_all_modules): Add dummy.
72578
72579 2004-07-16  Simon Josefsson  <jas@extundo.com>
72580
72581         * modules/dummy: New file.
72582
72583 2004-07-16  Simon Josefsson  <jas@extundo.com>
72584
72585         * lib/dummy.c: New file.
72586
72587 2004-07-16  Bruno Haible  <bruno@clisp.org>
72588
72589         * lib/backupfile.h: Add extern "C" for C++.
72590         * lib/closeout.h: Likewise.
72591         * lib/copy-file.h: Likewise.
72592         * lib/findprog.h: Likewise.
72593         * lib/full-write.h: Likewise.
72594         * lib/pathname.h: Likewise.
72595         * lib/progname.h: Likewise.
72596         * lib/stpcpy.h: Likewise.
72597         * lib/stpncpy.h: Likewise.
72598         * lib/strcase.h: Likewise.
72599         * lib/strstr.h: Likewise.
72600         * lib/xalloc.h: Likewise.
72601
72602         * lib/mbswidth.h: Add extern "C" for C++.
72603         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72604
72605 2004-07-13  Robert Millan  <robertmh@gnu.org>
72606
72607         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72608
72609 2004-07-09  Simon Josefsson  <jas@extundo.com>
72610
72611         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72612         failed without this.)
72613
72614 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72615
72616         * modules/chown (Files): Add lib/fchown-stub.c, since
72617         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72618
72619 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72620
72621         * lib/fchown-stub.c: New file.
72622
72623 2004-06-24  Jim Meyering  <jim@meyering.net>
72624
72625         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72626
72627 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72628
72629         * modules/argz: Omit "#include".
72630
72631         * MODULES.html.sh (func_all_modules): Add calloc, to match
72632         2004-06-01 addition of calloc module.
72633
72634 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72635
72636         * m4/argz.m4: New file, which is autoupdated from libtool.
72637
72638 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72641         libtool.
72642
72643 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72644
72645         * config/srclist-update: Don't insist on "USA." before the
72646         close-comment, as libtool omits the period and puts the */ on a
72647         separate line.
72648         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72649         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72650
72651 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72652
72653         * modules/argz: New file.
72654         * MODULES.html.sh (func_all_modules): Add argz.
72655
72656 2004-06-12  Jim Meyering  <jim@meyering.net>
72657         and  Paul Eggert  <eggert@cs.ucla.edu>
72658
72659         * modules/hash (Files): Add lib/xalloc.h.
72660         * modules/pipe (Depends-on): Add wait-process.
72661         * modules/stat (Depends-on): Add xalloc.
72662         * modules/userspec (Files): Add lib/userspec.h.
72663         * modules/xstrto
72664
72665         Upgrade from gettext-0.13.
72666         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72667         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72668         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72669
72670 2004-06-10  Jim Meyering  <jim@meyering.net>
72671
72672         * lib/calloc.c: New file.
72673
72674 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         * lib/getdate.y (yylex): Allow space between sign and number.
72677         Problem reported by Dan Jacobson.
72678
72679 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72680
72681         Merge from coreutils CVS.
72682
72683         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72684         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72685         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72686         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72687         xstrtol.m4: Fix copyright date and/or serial number.
72688
72689         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72690         See if we need an fchown replacement.
72691         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72692         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72693         and use the replacement function if we detect either defect.
72694
72695         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72696         gl_UTIMECMP.
72697
72698 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72699         and  Jim Meyering  <jim@meyering.net>
72700
72701         Merge from coreutils CVS.
72702
72703         * lib/stat-macros.h: New file, with contents from file-type.h
72704         and coreutils' system.h.
72705         * lib/file-type.c: Include "stat-macros.h".
72706         * lib/file-type.h (file_type): Move all macro definitions to new file,
72707         stat-macros.h.
72708
72709         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72710         Wrap old code with this conditional.
72711         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72712         function that does not dereference symlinks.
72713         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72714
72715         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72716         dependency problems.
72717         (xreadlink): Accept new arg SIZE, for efficiency.
72718         All decls and uses changed.
72719         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72720
72721         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72722         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72723
72724         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72725         sysexits.h.
72726
72727 2004-06-01  Jim Meyering  <jim@meyering.net>
72728
72729         * m4/calloc.m4: New file.
72730
72731 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72732
72733         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72734         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72735         Also, fix a typo in a diagnostic.
72736
72737 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72738
72739         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72740         or AC_FUNC_REALLOC.
72741
72742 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72743
72744         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72745         macros to be defined.
72746         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72747         the allocator returns NULL because the requested size is zero.
72748
72749 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72750
72751         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72752         var.  Add comment explaining why libc still defines it.  This
72753         merges the following patch from glibc:
72754         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72755
72756 2004-05-20  Andreas Schwab  <schwab@suse.de>
72757
72758         * m4/free.m4: Replace free if it not known to work, not the other
72759         way round.
72760
72761 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72762
72763         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
72764         present in glibc since revision 1.1 of this file.
72765         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
72766         obstack_alignment_mask, obstack_alloc, obstack_base,
72767         obstack_blank, obstack_blank_fast, obstack_chunk_size,
72768         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
72769         obstack_grow0, obstack_init, obstack_int_grow,
72770         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
72771         obstack_next_free, obstack_object_size, obstack_ptr_grow,
72772         obstack_ptr_grow_fast, obstack_room): Remove declarations of
72773         nonexistent functions.
72774
72775 2004-05-18  Karl Berry  <karl@gnu.org>
72776
72777         * config/srclist.txt: break link for vasnprintf.c.
72778
72779 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72780
72781         Port obstack to the AS/400, where pointers are 16 bytes wide and
72782         you cannot cast an integer to a valid pointer.  This patch is
72783         currently waiting to be integrated into glibc; see
72784         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
72785
72786         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
72787         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
72788         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
72789         (struct obstack): temp member is now a union of a pointer and
72790         an integer, instead of an integer.  All integer uses changed.
72791         This does not affect the physical layout of struct obstack,
72792         except on hosts (like the AS/400) where the size or alignment of
72793         void * is greater than that of ptrdiff_t.
72794         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
72795         __STDC__)]: Store temporary in pointer member of union, not
72796         integer member.
72797         * lib/obstack.c: Include <stddef.h>, for offsetof.
72798         (struct fooalign): Remove; it doesn't need a name.
72799         (union fooround): Change double to long double, and add void *.
72800         (DEFAULT_ALIGNMENT): Use offsetof to compute.
72801         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
72802         not a macro.  Hence the values are always int; so remove all
72803         casts-to-int in uses.
72804
72805 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72806
72807         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
72808         we can get this patch merged into glibc.
72809
72810 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72811             Paul Eggert  <eggert@cs.ucla.edu>
72812
72813         * m4/argp: Depend on alloca.
72814
72815 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72816             Paul Eggert  <eggert@cs.ucla.edu>
72817
72818         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
72819         freecoding.
72820
72821 2004-05-17  Bruno Haible  <bruno@clisp.org>
72822
72823         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
72824         precision that consists of a '.' followed by an empty digit string.
72825         Patch by Tor Lillqvist <tml@iki.fi>.
72826
72827 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72828
72829         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
72830         for backward compatibility with older code.  We need our own
72831         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
72832         it under some other name, and our alloca.h will define it.
72833
72834 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72835             Derek Price  <derek@ximbiot.com>
72836
72837         * lib/alloca.c: Include <alloca.h>, to get our interface.
72838         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
72839         include <alloca.h> first.  Use C89 prototype for alloca; this
72840         requires including <stddef.h> for size_t.  Use extern "C" if C++.
72841         Use #elif for simplicity, since we can assume C89 now.
72842         Don't try to source the system alloca.h since it will not be found
72843         and to prevent recursively including its replacement.
72844         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
72845         * lib/regex.c: Likewise.
72846
72847 2004-05-16  Derek Price  <derek@ximbiot.com>
72848             Paul Eggert  <eggert@cs.ucla.edu>
72849
72850         getline cleanup.  This changes the getndelim2 API: both order of
72851         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
72852         no delimiter).
72853
72854         * lib/getline.c: Don't include stddef.h or stdio.h, since our
72855         interface does that.
72856         (getline): Always use getdelim, so that we don't have two
72857         copies of this code.
72858         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
72859         if available.
72860         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
72861         (GETNDELIM2_MAXIMUM): New macro.
72862         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
72863         instead of the old practice of delim2==0.  All callers changed.
72864         Return -1 on overflow, instead of returning junk.
72865         Do not set *linesize unless allocation succeeds.
72866         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
72867         that we include sys/types.h.
72868         * lib/getnline.h: Likewise.
72869         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
72870         (getndelim2): Reorder arguments.
72871         * lib/getnline.c (getnline, getndelim):
72872         Don't discard the NMAX argument.
72873         (getnline): Invoke getndelim, to avoid code duplication.
72874         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
72875         of (size_t) -1 by callers of the getnline family.
72876
72877 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72878
72879         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
72880         Check for gettimeofday.
72881         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
72882         Check for settimeofday, stime.
72883
72884 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72885
72886         * lib/nanosleep.c (suspended): Change its type from int to
72887         sig_atomic_t volatile.
72888         (first_call): Make it private to rpl_nanosleep, and have it
72889         be zero initially as that's a bit faster.
72890         (my_usleep): Round up fractional times instead of truncating them,
72891         as this is the usual meaning for 'sleep'.
72892
72893         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
72894         doesn't work.
72895         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
72896         (ENOSYS): Define if not defined.
72897         (settime): Fall back on stime if it exists and settimeofday fails.
72898         But don't bother with fallbacks if a method fails with errno == EPERM.
72899
72900 2004-05-11  Jim Meyering  <jim@meyering.net>
72901
72902         Prior to this change, the save_cwd caller required read access to the
72903         current directory on most systems (ones with the fchdir function).
72904
72905         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
72906         fails, try write-only, and finally, resort to using xgetcwd.
72907
72908 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72909
72910         * lib/obstack.c, obstack.h: Import changes from libc.
72911
72912 2004-04-28  Bruno Haible  <bruno@clisp.org>
72913
72914         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
72915         also implicitly appends .exe to executables.
72916         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
72917         accepts Windows pathnames.
72918         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72919         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72920         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72921         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72922         Reported by Derek Robert Price <derek@ximbiot.com>.
72923
72924 2004-04-21  Karl Berry  <karl@gnu.org>
72925
72926         * config/srclist.txt (localcharset.c): break sync.
72927
72928 2004-04-20  Paul Eggert  <eggert@twinsun.com>
72929
72930         * m4/host-os.m4: Add a copyright notice.
72931
72932 2004-04-20  Jim Meyering  <jim@meyering.net>
72933
72934         Change UTILS_ to gl_ in AC_DEFINE'd names.
72935         Change utils_- and jm_-prefixed variables, too.
72936         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
72937         UTILS_FUNC_MKDIR_TRAILING_SLASH.
72938         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
72939
72940         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
72941         Don't emit trailing blanks.
72942         Also rename jm_-prefixed variables to have gl_ prefix.
72943
72944         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
72945         Also rename jm_-prefixed variables to have gl_ prefix.
72946
72947         * m4/jm-macros.m4: Reflect the renamings.
72948         * m4/prereq.m4: Likewise.
72949
72950 2004-04-20  Jim Meyering  <jim@meyering.net>
72951
72952         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
72953         memory.
72954
72955 2004-04-20  Jim Meyering  <jim@meyering.net>
72956             Bruno Haible  <bruno@clisp.org>
72957
72958         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72959         memory when realloc fails.
72960
72961 2004-04-19  Jim Meyering  <jim@meyering.net>
72962
72963         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72964         now that readutmp.c may call `free (0)'.
72965
72966 2004-04-19  Bruno Haible  <bruno@clisp.org>
72967
72968         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72969         * m4/inttypes_h.m4: Likewise.
72970         * m4/stdint_h.m4: Likewise.
72971         * m4/intmax_t.m4: Likewise.
72972         * m4/uintmax_t.m4: Likewise.
72973
72974 2004-04-18  Jim Meyering  <jim@meyering.net>
72975
72976         * m4/prereq.m4: Don't forbid jm_ prefix.
72977
72978         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72979         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72980         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72981         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72982         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72983         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72984         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72985         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72986         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72987         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72988         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72989         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72990         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72991         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72992         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72993         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
72994         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
72995         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
72996         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
72997
72998 2004-04-18  Jim Meyering  <jim@meyering.net>
72999
73000         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
73001         failure, don't leak memory and do call END_UTMP_ENT.
73002
73003 2004-04-16  Jim Meyering  <jim@meyering.net>
73004
73005         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
73006         coreutils' stat program.
73007         (gl_PREREQ): Don't require jm_PREREQ_STAT.
73008
73009 2004-04-11  Paul Eggert  <eggert@twinsun.com>
73010
73011         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
73012         C89.
73013         (CHAR_BIT): Remove, since we assume C89.
73014         Include <stdint.h> if available, as per current Autoconf CVS advice.
73015
73016 2004-03-31  Jim Meyering  <jim@meyering.net>
73017
73018         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
73019         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
73020         * m4/xalloc.m4: Likewise.
73021
73022 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73023
73024         Merge from coreutils.
73025
73026         * m4/inttostr.m4: New file.
73027         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
73028         Require AM_STDBOOL_H and gl_TIMESPEC instead.
73029         Require gl_CLOCK_TIME.
73030         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
73031
73032 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73033
73034         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
73035         not bool, to be more consistent with Unix conventions.
73036         Suggested by Bruno Haible.
73037
73038         Merge from coreutils.
73039
73040         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
73041         * lib/umaxtostr.c: New files.
73042
73043         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
73044         the usual <time.h> dance.
73045         (get_date): Change signature to support fractional time stamps.
73046         All callers changed.
73047         * lib/getdate.y: Include "getdate.h" first, as we can now
73048         assume C89 and don't need to worry about 'const'.
73049         Similarly, include "unlocked-io.h" near start, not in middle.
73050         Include <limits.h>.
73051         (textint.value): Use long int rather than int.
73052         (textint.digits): Use size_t rather than int.
73053         (BILLION, LOG10_BILLION): New constants.
73054         (parser_control): New member rel_ns.  Members day_ordinal,
73055         time_zone, month, day, hour, minutes, rel_year, rel_month,
73056         rel_day, rel_hour, rel_minutes, rel_seconds
73057         are now long int, not int.  Member seconds is now struct timespec,
73058         not int.  New member timespec_seen.  Members dates_seen, days_seen,
73059         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
73060         not int.
73061         (%union.intval): Now long int, not int.
73062         New member timespec.
73063         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
73064         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
73065         (spec): Now is a timespec or an item list.
73066         (timespec, items): New nonterminals.
73067         (time, rel, relunit, number, get_date):
73068         Add support for fractional seconds.
73069         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
73070         (gmtime, localtime, mktime): Remove decls; not needed with C89.
73071         (to_hour): First arg is now long int, not int.
73072         (to_year): Returns long int, not int.
73073         Don't treat year -70 like 70.
73074         (tm_diff): Returns long int, not int.
73075         (lookup_word): Use bool instead of int when appropriate.
73076         (yylex): Use size_t for count, not int.
73077         Detect overflow when parsing large integer constants.
73078         Add support for fractions.
73079         (get_date): Make pointers 'const' if possible.
73080         Use more-portable code to detect integer overflow.
73081         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
73082         Don't use ctime; it's not reliable if the year has >4 digits.
73083
73084         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
73085         This is for compatibility with BSD.
73086
73087         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73088         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73089         From coreutils' system.h.
73090
73091         * lib/userspec.c: Don't include "posixver.h".
73092         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73093         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73094         compatible extension.  Simplify code by removing a boolean int
73095         that was always nonzero if a string was nonnull.
73096
73097 2004-03-30  Jim Meyering  <jim@meyering.net>
73098
73099         Merge from coreutils.
73100
73101         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73102         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73103         on some systems one must include <grp.h> before it.
73104         Reported by Christian Krackowizer.
73105
73106 2004-03-30  Jim Meyering  <jim@meyering.net>
73107
73108         Merge from coreutils.
73109
73110         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73111
73112         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73113         an empty input stream.
73114
73115         * lib/readtokens.c: Include <stdbool.h>.
73116         (readtoken): Use `size_t' rather than int/long.
73117         All callers adjusted.
73118         Use `bool' rather than `int' where appropriate.
73119         Use memset rather than an explicit loop.
73120         Use x2nrealloc rather than xrealloc.
73121         Allow the use of `\0' as a delimiter.
73122         (readtokens): Likewise.
73123         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73124
73125 2004-03-30  Jim Meyering  <jim@meyering.net>
73126
73127         * m4/realloc.m4: Remove file, since now it does no more than
73128         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73129         the `configure.ac' section of module/realloc.
73130         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73131
73132 2004-03-30  Bruno Haible  <bruno@clisp.org>
73133
73134         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73135         nonnull.
73136
73137 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73138
73139         Merge changes to getloadavg.c from coreutils and Emacs.
73140
73141         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73142         Define to an expression, not to the empty string.
73143         Include cloexec.h and xalloc.h.
73144         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73145         Use set_cloexec_flag rather than rolling our own.
73146         * lib/cloexec.c, lib/cloexec.h: New files.
73147
73148 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73149
73150         * m4/cloexec.m4: New file.
73151
73152 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73153
73154         * lib/getopt.h: Sync with libc CVS.
73155
73156 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73157             Bruno Haible  <bruno@clisp.org>
73158
73159         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73160         mbswidth.
73161
73162 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73163             Bruno Haible  <bruno@clisp.org>
73164
73165         * lib/mbswidth.h: Include <wchar.h> only if
73166         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73167         <wchar.h>.
73168         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73169
73170 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73171
73172         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73173         Sync with libc CVS.
73174         * lib/getopt_int.h: New file, also synced from libc.
73175
73176 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73177
73178         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73179         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73180         Bring back getopt.c, getopt.h, getopt1.c.
73181
73182 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73183
73184         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73185         All uses changed.  Check for sa_sigaction member; this fixes
73186         a bug first reported by Jason Andrade in
73187         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73188
73189 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73190
73191         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73192         '#if' expressions.  Unlike the code it replaces, it does not
73193         depend on (defined _SC_PAGESIZE).  However, it does depend on
73194         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73195         first reported by Jason Andrade in
73196         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73197
73198 2004-02-25  Simon Josefsson  <jas@extundo.com>
73199
73200         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73201
73202 2004-02-25  Simon Josefsson  <jas@extundo.com>
73203
73204         * lib/strdup.h: New file.
73205         * lib/strdup.c: Include it.
73206         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73207         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73208
73209 2004-02-23  Karl Berry  <karl@gnu.org>
73210
73211         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73212         (from fencepost.gnu.org:/gd/gnuorg).
73213
73214 2004-02-23  Karl Berry  <karl@gnu.org>
73215
73216         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73217         * config/srclist.txt: add maintain/standards documents.
73218
73219 2004-02-18  Bruno Haible  <bruno@clisp.org>
73220
73221         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73222         Reported by Derek Robert Price <derek@ximbiot.com>.
73223
73224 2004-02-16  Karl Berry  <karl@gnu.org>
73225
73226         * config/mkinstalldirs, install-sh: update from automake.
73227
73228 2004-02-06  Karl Berry  <karl@gnu.org>
73229
73230         * m4/po.m4: update from gettext 0.14.1.
73231
73232 2004-02-06  Karl Berry  <karl@gnu.org>
73233
73234         * lib/config.charset: update from gettext 0.14.1.
73235
73236 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73237
73238         Add comments and code, prompted by suggestions from Bruno Haible
73239         for sh-quote.
73240         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73241         describing the enum quoting_style values.
73242         * lib/quotearg.c (quotearg_alloc): New function.
73243         (quotearg_buffer_restyled): Treat lone { and } as special.
73244         Treat = as special.  Work around bug with older shells
73245         that "see" a '\' that is really the 2nd byte of a multibyte char.
73246         Quote empty string with shell_quoting_style.
73247
73248 2004-02-03  Bruno Haible  <bruno@clisp.org>
73249
73250         * m4/pipe.m4: New file, from GNU gettext.
73251
73252 2004-02-03  Bruno Haible  <bruno@clisp.org>
73253
73254         * lib/pipe.h: New file, from GNU gettext.
73255         * lib/pipe.c: New file, from GNU gettext.
73256
73257 2004-01-27  Bruno Haible  <bruno@clisp.org>
73258
73259         * m4/execute.m4: New file, from GNU gettext.
73260
73261 2004-01-27  Bruno Haible  <bruno@clisp.org>
73262
73263         * lib/execute.h: New file, from GNU gettext.
73264         * lib/execute.c: New file, from GNU gettext.
73265         * lib/w32spawn.h: New file, from GNU gettext.
73266
73267 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73268
73269         Merge from diffutils.
73270
73271         * lib/file-type.c (file_type): Add typed memory objects.
73272         * lib/file-type.h (S_TYPEISTMO): New macro.
73273
73274         * lib/c-stack.h (c_stack_action): Remove argv argument.
73275         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73276         (die): Don't calculate message unless segv_action returns.
73277         (get_stack_location, min_address_from_argv, max_address_from_argv,
73278         volatile stack_base, volatile_stack_size): Remove.
73279         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73280         that every segmentation violation is a stack overflow.  (Ouch!)
73281         See Debian bug 136249 (still outstanding) for more info about why
73282         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73283
73284 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73285
73286         Exit-status fix from coreutils.
73287
73288         Use exit_failure consistently in place of EXIT_FAILURE,
73289         so that program exit statuses are consistent on failure.
73290
73291         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73292         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73293         * lib/argmatch.h: Comment fix to match the above.
73294         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73295         Now a macro referring to exit_failure, instead of a separate
73296         variable.  Include "exitfail.h" to get it.
73297         * lib/xstrtol.h: Include "exitfail.h".
73298         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73299
73300         * lib/long-options.c (parse_long_options): Use prototype
73301         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73302         for clarity.
73303
73304 2004-01-21  Jim Meyering  <jim@meyering.net>
73305
73306         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73307         so as not to conflict with a different-sized __mktime_internal
73308         function in GNU libc.
73309         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73310         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73311
73312 2004-01-20  Karl Berry  <karl@gnu.org>
73313
73314         * config/config.guess: update from config.
73315
73316         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73317
73318 2004-01-20  Bruno Haible  <bruno@clisp.org>
73319
73320         Safer stack allocation.
73321         * lib/setenv.c: Include allocsa.h.
73322         (alloca): Remove fallback definition.
73323         (freea): Remove macro.
73324         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73325         instead of freea.
73326
73327 2004-01-20  Bruno Haible  <bruno@clisp.org>
73328
73329         * m4/eealloc.m4: New file, from GNU gettext.
73330
73331 2004-01-20  Bruno Haible  <bruno@clisp.org>
73332
73333         * m4/allocsa.m4: New file, from GNU gettext.
73334
73335 2004-01-20  Bruno Haible  <bruno@clisp.org>
73336
73337         * lib/xallocsa.h: New file, from GNU gettext.
73338         * lib/xallocsa.c: New file, from GNU gettext.
73339
73340 2004-01-20  Bruno Haible  <bruno@clisp.org>
73341
73342         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73343
73344 2004-01-20  Bruno Haible  <bruno@clisp.org>
73345
73346         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73347         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73348         specially.
73349
73350 2004-01-20  Bruno Haible  <bruno@clisp.org>
73351
73352         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73353         patch.
73354
73355 2004-01-20  Bruno Haible  <bruno@clisp.org>
73356
73357         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73358
73359 2004-01-20  Bruno Haible  <bruno@clisp.org>
73360
73361         * lib/eealloc.h: New file.
73362
73363 2004-01-20  Bruno Haible  <bruno@clisp.org>
73364
73365         * lib/binary-io.h: Avoid warnings on Cygwin.
73366
73367 2004-01-20  Bruno Haible  <bruno@clisp.org>
73368
73369         * lib/allocsa.h: New file, from GNU gettext.
73370         * lib/allocsa.c: New file, from GNU gettext.
73371
73372 2004-01-18  Karl Berry  <karl@gnu.org>
73373
73374         * doc/gpl.texi, doc/lgpl.texi: new files.
73375
73376 2004-01-18  Karl Berry  <karl@gnu.org>
73377
73378         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73379         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73380
73381 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73382
73383         Merge from coreutils.
73384
73385         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73386         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73387         (gl_DEFAULT_POSIX2_VERSION): Move
73388         the documentation from 'configure' into 'config.hin',
73389         so that 'configure --help' isn't burdened by it and
73390         we don't have to worry about its formatting there.
73391         Reword the documentation so that it's more succinct
73392         and can be run together into a single paragraph.
73393         * m4/same.m4 (gl_SAME): Check for pathconf.
73394
73395 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73396
73397         Merge from coreutils.
73398
73399         * lib/posixver.c: Include posixver.h.
73400
73401         * lib/same.c: Include <stdbool.h>, <limits.h>.
73402         (_POSIX_NAME_MAX): Define if not defined.
73403         (MIN): New macro.
73404         (same_name): If file names are silently truncated, report
73405         that the file names are the same if they are the same after
73406         the silent truncation.
73407
73408         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73409         conversion function.
73410         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73411         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73412         longer needed.
73413
73414 2004-01-15  Jim Meyering  <jim@meyering.net>
73415
73416         Merge from coreutils.
73417
73418         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73419         if no library is required.
73420         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73421         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73422         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73423         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73424         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73425         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73426         value, $ac_cv_search_crypt, if it's "none required".
73427         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73428         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73429         not gl_FUNC_GETLOADAVG.
73430         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73431         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73432
73433 2004-01-15  Jim Meyering  <jim@meyering.net>
73434
73435         Merge from coreutils.
73436
73437         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73438         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73439         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73440
73441         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73442         optional configure-time default.
73443
73444         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73445
73446         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73447
73448 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73449
73450         Merge from coreutils.
73451
73452         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73453         value, $ac_cv_search_nanosleep, if it's "none required".
73454
73455 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73456
73457         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73458         with like-named macro in fnmatch.c.
73459         (EXT): Use an internal constant instead.
73460
73461         Merge fnmatch patches from glibc.
73462         * lib/fnmatch.c (mbsinit): Remove define.
73463         Add libc_hidden_ver (__fnmatch, fnmatch).
73464         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73465         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73466
73467 2004-01-14  Karl Berry  <karl@gnu.org>
73468
73469         * config/install-sh: update from automake.
73470
73471 2004-01-13  Karl Berry  <karl@gnu.org>
73472
73473         * config/install-sh: update from automake.
73474
73475 2004-01-09  Karl Berry  <karl@gnu.org>
73476
73477         * config/install-sh: update from automake.
73478
73479 2004-01-05  Karl Berry  <karl@gnu.org>
73480
73481         * config/config.{sub,guess}: update from config.
73482
73483 2003-12-31  Karl Berry  <karl@gnu.org>
73484
73485         * config/depcomp: update from automake.
73486
73487 2003-12-14  Karl Berry  <karl@gnu.org>
73488
73489         * lib/config.charset: update from gettext-runtime.
73490
73491 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73492
73493         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73494         Bug reported by Alfred M. Szmidt.
73495
73496 2003-12-03  Bruno Haible  <bruno@clisp.org>
73497
73498         * m4/gettext.m4: Upgrade from gettext-0.13.
73499         * m4/po.m4: Upgrade from gettext-0.13.
73500         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73501         * m4/intmax.m4: New file, from gettext-0.13.
73502         * m4/printf-posix.m4: New file, from gettext-0.13.
73503
73504 2003-11-29  Karl Berry  <karl@gnu.org>
73505
73506         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73507
73508 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73509             Bruno Haible  <bruno@clisp.org>
73510
73511         * lib/printf-parse.h: Don't include sys/types.h.
73512         (ARG_NONE): New macro.
73513         (char_directive): Change type of *arg_index fields to size_t.
73514         * lib/printf-parse.c: Don't include sys/types.h.
73515         (SSIZE_MAX): Remove macro.
73516         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73517         Remove unnecessary overflow check.
73518         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73519         fields.
73520
73521 2003-11-25  Bruno Haible  <bruno@clisp.org>
73522
73523         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73524
73525 2003-11-25  Bruno Haible  <bruno@clisp.org>
73526
73527         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73528         gt_TYPE_SSIZE_T.
73529
73530 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73531
73532         * modules/alloca: Remove dependency on xalloc.
73533
73534 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73535
73536         * lib/alloca.c: Remove dependency on xalloc module.
73537         (xalloc_die): Remove.
73538         (memory_full) [!defined emacs]: New macro.
73539         [!defined emacs]: Don't include xalloc.h.
73540         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73541         address arithmetic overflows.  Change datatypes a bit to avoid
73542         unnecessary casts.
73543
73544 2003-11-22  Jim Meyering  <jim@meyering.net>
73545
73546         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73547         s/size/size_t/.
73548
73549 2003-11-21  Karl Berry  <karl@gnu.org>
73550
73551         * config/config.{sub,guess}: update from config.
73552
73553 2003-11-18  Karl Berry  <karl@gnu.org>
73554
73555         * config/config.{sub,guess}: update from config.
73556
73557         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73558
73559 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73560
73561         * README: Mention that S+T cannot overflow if S is the size of
73562         an existing object and T is sufficiently small.
73563
73564 2003-11-17  Jim Meyering  <jim@meyering.net>
73565
73566         On systems without utime and without a utimes function capable of
73567         dealing with a NULL struct utimbuf* argument, this utime replacement
73568         could -- in unusual circumstances -- leak a file descriptor.
73569         * lib/utime.c: Include <unistd.h> and <errno.h>.
73570         (utime_null): Be sure to close `fd' and to preserve errno.
73571         Reported by Geoff Collyer via Arnold Robbins.
73572
73573 2003-11-17  Bruno Haible  <bruno@clisp.org>
73574
73575         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73576         (Depends-on): Add xsize.
73577
73578 2003-11-17  Bruno Haible  <bruno@clisp.org>
73579
73580         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73581
73582 2003-11-17  Bruno Haible  <bruno@clisp.org>
73583
73584         * lib/vasnprintf.c (alloca): Remove fallback definition.
73585         (freea): Remove definition.
73586         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73587         Reported by Paul Eggert.
73588
73589 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73590             Bruno Haible  <bruno@clisp.org>
73591
73592         Protect against address arithmetic overflow.
73593         * lib/printf-args.h: Include stddef.h.
73594         (arguments): Change type of field 'count' to size_t.
73595         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73596         'unsigned int' where appropriate.
73597         * lib/printf-parse.h: Include sys/types.h.
73598         (char_directive): Change type of *arg_index fields to ssize_t.
73599         (char_directives): Change type of fields 'count', max_*_length to
73600         size_t.
73601         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73602         (SSIZE_MAX): Define fallback value.
73603         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73604         instead of 'int' where appropriate. Check a_allocated, d_allocated
73605         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73606         * lib/vasnprintf.c: Include xsize.h.
73607         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73608         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73609         overflow. Avoid wraparound when converting a width or precision from
73610         decimal to binary.
73611
73612 2003-11-16  Bruno Haible  <bruno@clisp.org>
73613
73614         Update from GNU gettext.
73615         * lib/printf-parse.c: Generalize to it can be compiled for wide
73616         strings.
73617         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73618         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73619         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73620         SNPRINTF): New macros.
73621         Don't include <alloca.h> if the file is used inside libintl.
73622         (local_wcslen): New function, for Solaris 2.5.1.
73623         (VASNPRINTF): Use it instead of wcslen.
73624
73625 2003-11-16  Bruno Haible  <bruno@clisp.org>
73626
73627         * lib/xsize.h (xmax): New function.
73628         (xsum, xsum3, xsum4): Declare as "pure" functions.
73629
73630 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73631
73632         * modules/xalloc (Files): Undo latest change, since xalloc.h
73633         no longer needs SIZE_MAX or PTRDIFF_MAX.
73634
73635 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73636
73637         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73638         gl_PTRDIFF_MAX.
73639
73640 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73641
73642         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73643         "return", to pacify some unknown compiler.  Problem reported
73644         by Joerg Schilling.
73645
73646 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73647
73648         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73649         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73650         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73651         heuristic is just as accurate as far as we know, and it removes a
73652         dependency on size_max.m4 and ptrdiff_max.m4.
73653
73654 2003-11-11  Bruno Haible  <bruno@clisp.org>
73655
73656         * modules/xsize (Files): Add m4/size_max.m4.
73657         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73658
73659 2003-11-11  Bruno Haible  <bruno@clisp.org>
73660
73661         * m4/size_max.m4: New file.
73662         * m4/ptrdiff_max.m4: New file.
73663         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73664         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73665         (gl_XALLOC): Invoke it.
73666
73667 2003-11-11  Bruno Haible  <bruno@clisp.org>
73668
73669         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73670         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73671         defined.
73672
73673 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73674
73675         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73676         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73677         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73678         From Bruno Haible.
73679         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73680         not (size_t) -1, since it's defined here.
73681
73682 2003-11-09  Karl Berry  <karl@gnu.org>
73683
73684         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73685
73686 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73687
73688         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73689         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73690         Reject sizes of exactly SIZE_MAX bytes.
73691         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73692         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73693
73694 2003-11-05  Bruno Haible  <bruno@clisp.org>
73695
73696         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73697         SIZE_MAX defined in <limits.h> on Solaris.
73698
73699 2003-11-04  Jim Meyering  <jim@meyering.net>
73700
73701         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73702         variable names, rather than @VAR@.
73703         * modules/poll: Likewise.
73704
73705 2003-11-04  Bruno Haible  <bruno@clisp.org>
73706
73707         * modules/xsize: New file.
73708         * modules/linebreak: Depend on xsize.
73709         * MODULES.html.sh (func_all_modules): Add xsize.
73710
73711 2003-11-04  Bruno Haible  <bruno@clisp.org>
73712
73713         * m4/xsize.m4: New file.
73714
73715 2003-11-04  Bruno Haible  <bruno@clisp.org>
73716
73717         * lib/xsize.h: New file.
73718         * lib/linebreak.c: Include xsize.h.
73719         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73720         argument for overflow.
73721         Suggested by Paul Eggert.
73722
73723 2003-11-03  Karl Berry  <karl@gnu.org>
73724
73725         * config/config.{guess,sub}: update from config.
73726
73727 2003-11-03  Jim Meyering  <jim@meyering.net>
73728
73729         * modules/userspec (lib_SOURCES): Add userspec.h.
73730         (Include): Add "userspec.h".
73731         Improve description.
73732
73733 2003-11-03  Jim Meyering  <jim@meyering.net>
73734
73735         * lib/userspec.c: Include "userspec.h".
73736         * lib/userspec.h: New file.
73737
73738 2003-11-03  Bruno Haible  <bruno@clisp.org>
73739
73740         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73741
73742 2003-11-03  Bruno Haible  <bruno@clisp.org>
73743
73744         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73745         available, to avoid (extremely rare) race condition.
73746         Suggested by Paul Eggert.
73747
73748 2003-11-02  Karl Berry  <karl@gnu.org>
73749
73750         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73751
73752 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73753
73754         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73755         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73756         (read_filesystem_list): Set and use me_type_malloced.
73757         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73758         whatever the type happens to be), for brevity and consistency.
73759         Check for size calculation overflow on Alphas running OSF/1.
73760
73761 2003-10-31  Jim Meyering  <jim@meyering.net>
73762
73763         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
73764
73765         * lib/linebuffer.c: Include <string.h> for declaration of memset.
73766
73767 2003-10-30  Paul Eggert  <eggert@twinsun.com>
73768             Bruno Haible  <bruno@clisp.org>
73769
73770         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
73771         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
73772
73773 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73774
73775         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
73776         netbsd*-gnu*.  Suggested by Robert Millan.
73777
73778 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73779
73780         * modules/group-member: Depend on stdbool.
73781
73782 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73783
73784         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
73785
73786 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73787
73788         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
73789         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
73790         after the 'gnu' in these cases.  This fixes some bugs in the
73791         previous change, and is based on suggestions by Robert Millan.
73792
73793 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73794
73795         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
73796         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
73797         no longer needed.
73798         * lib/quotearg.c (quotearg_n_options): Use it.
73799         * lib/group-member.c: Include <stdbool.h>.
73800         (free_group_info): Arg is now const *; don't free arg.
73801         (get_group_info): Now returns bool and accepts struct group_info *,
73802         rather than returning a malloc'ed struct group_info *.
73803         All uses changed.  Check for overflow in internal size calculation.
73804
73805         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
73806         rather than xmalloc/xrealloc.
73807         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
73808         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
73809         conformance bug: the old code used a pointer after freeing the
73810         storage that it addressed.
73811         * lib/hash.c (hash_initialize): Simplify the code by using
73812         xalloc_oversized rather than doing it by hand.
73813         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
73814         the buffer preserved.  Use free and xmalloc instead.
73815         * lib/quotearg.c (quotearg_n_options): Likewise.
73816         Use a simpler test for size overflow.  Don't use xalloc_oversized
73817         because unsigned int might be wider than size_t (!); this suggests
73818         that we should switch from unsigned int to size_t for slot numbers.
73819
73820 2003-10-28  Paul Eggert  <eggert@twinsun.com>
73821
73822         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
73823         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
73824         NetBSD kernels.  Requested by Richard Stallman.
73825
73826 2003-10-27  Paul Eggert  <eggert@twinsun.com>
73827
73828         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
73829         to allocate the returned structure.  Do not allocate a subarray,
73830         as x2nrealloc will do that.
73831         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
73832         instead of xnrealloc.
73833         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
73834
73835 2003-10-27  Bruno Haible  <bruno@clisp.org>
73836
73837         * lib/stdbool_.h: Better support for BeOS.
73838
73839 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73840
73841         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
73842         now uses inline.
73843
73844 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73845
73846         * lib/xalloc.h (xalloc_oversized): New static inline function, for
73847         callers that want to do their own size-overflow checking.  Include
73848         <stdbool.h>, since xalloc_oversized returns bool.
73849         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
73850         to use xalloc_oversized.
73851
73852         Add two functions x2realloc, x2nrealloc, for programs that grow
73853         arrays dynamically by doubling their sizes.
73854         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
73855         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
73856         New functions.
73857
73858         Port to C99 semantics for 'inline' of external functions.
73859         Bug reported by Bruno Haible.
73860         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
73861         with the old contents of xnmalloc.
73862         (xnmalloc, xmalloc): Use it.
73863         (xnrealloc_inline): New static inline function,
73864         with the old contents of xnrealloc.
73865         (xnrealloc, xrealloc): Use it.
73866
73867         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
73868         that.
73869
73870 2003-10-26  Karl Berry  <karl@gnu.org>
73871
73872         * config/srclist.txt (COPYING.DOC): no longer available from
73873         /gd/gnuorg; don't know where the ultimate source is.
73874
73875 2003-10-25  Paul Eggert  <eggert@twinsun.com>
73876
73877         Fix several address-calculation bugs in the hash modules,
73878         plus some minor code cleanup.
73879
73880         * lib/hash.h: Include <stdbool.h>, for bool.
73881         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
73882         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
73883         hash_get_n_entries, hash_get_max_bucket_length,
73884         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
73885         hash_rehash): Use size_t rather than unsigned.
73886         * lib/hash.c (struct hash_table, hash_get_n_buckets,
73887         hash_get_n_buckets_used, hash_get_n_entries,
73888         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
73889         hash_get_entries, hash_do_for_each, hash_string, is_prime,
73890         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
73891         Likewise.
73892         (SIZE_MAX): Define if not defined.
73893         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
73894         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
73895         hash_print):
73896         Use const * when possible.
73897         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
73898         (check_tuning): Fix bug: if tuning parameters were very close to
73899         0 or 1, rounding errors could have caused subscript violations.
73900         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
73901         (hash_initialize): Add 'fail:' label
73902         to free table and return NULL, and use it to simplify code.
73903         Use calloc rather than clearing the storage ourself.
73904         (hash_initialize, hash_rehash): Check for arithmetic overflow in
73905         buffer size calculations.
73906         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
73907         Include <stddef.h>, for size_t.
73908         * lib/hash-pjw.c (hash_pjw): Likewise.
73909         Switch to method described by Bruno Haible.
73910         Include <limits.h>, for CHAR_BIT.
73911         (SIZE_BITS): New macro.
73912
73913 2003-10-23  Paul Eggert  <eggert@twinsun.com>
73914
73915         * m4/getline.m4 (AM_FUNC_GETLINE):
73916         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
73917         hosts.  Problem reported by Derek Robert Price in
73918         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
73919         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
73920         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
73921
73922 2003-10-21  Paul Eggert  <eggert@twinsun.com>
73923
73924         * lib/getndelim2.c (getndelim2): When size calculation overflows,
73925         ceiling the allocation at NMAX bytes rather than silently
73926         discarding input bytes before NMAX is reached.  This makes
73927         a difference only if NMAX exceeds SIZE_MAX / 2.
73928
73929         * lib/obstack.c: Merge from glibc.
73930         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
73931         Add libc_hidden_def (_obstack_newchunk).
73932         (_obstack_free) [! defined _LIBC]: Remove.
73933         [defined _LIBC]: Make a strong alias from obstack_free, rather than
73934         a clone of the function body.
73935         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
73936         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
73937
73938         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
73939         glibc.
73940         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
73941         arg to memcpy.
73942
73943         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
73944         (obstack_ptr_grow_fast, obstack_int_grow_fast):
73945         Don't use lvalue casts, as GCC plans to remove support for them
73946         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
73947         was also present in the non-GCC version, indicating that this
73948         code had always been buggy and had never been widely used.
73949         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
73950         Use the fast variant of each macro, rather than copying the
73951         definiens of the fast variant; that way, we'll be more likely to
73952         catch future bugs in the fast variants.
73953
73954 2003-10-20  Bruno Haible  <bruno@clisp.org>
73955
73956         * modules/wait-process: New file.
73957         * MODULES.html.sh (func_all_modules): Add wait-process.
73958
73959 2003-10-20  Bruno Haible  <bruno@clisp.org>
73960
73961         * m4/wait-process.m4: New file.
73962
73963 2003-10-20  Bruno Haible  <bruno@clisp.org>
73964
73965         * lib/wait-process.h: New file, from GNU gettext.
73966         * lib/wait-process.c: New file, from GNU gettext.
73967
73968 2003-10-19  Jim Meyering  <jim@meyering.net>
73969
73970         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73971         HPUX 10.20.
73972
73973 2003-10-18  Karl Berry  <karl@gnu.org>
73974
73975         * config/config.guess: update from config.
73976
73977 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73978
73979         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73980         (getgroups): First arg is int, not size_t.
73981         Don't let 'free' mangle errno.
73982
73983 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73984
73985         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73986
73987 2003-10-16  Karl Berry  <karl@gnu.org>
73988
73989         * config/config.{guess,sub}: update from config.
73990
73991 2003-10-16  Jim Meyering  <jim@meyering.net>
73992
73993         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
73994         memcpy.
73995
73996 2003-10-15  Paul Eggert  <eggert@twinsun.com>
73997
73998         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
73999         (SIZE_MAX): Remove.
74000         (new_exclude, add_exclude_file): Initial size no longer needs to
74001         be a power of 2.
74002         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
74003         our own address arithmetic overflow checking.
74004
74005         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
74006         (fnmatch): Do not alloca more than 2000 wide characters;
74007         instead, use malloc for large buffers.
74008         Check for address arithmetic overflow, and return -1
74009         with errno set to ENOMEM in that case.
74010         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
74011         (NEW_PATTERN): Do not alloca more than 8000 bytes;
74012         instead, return -1.  Check for address arithmetic overflow.
74013
74014 2003-10-14  Paul Eggert  <eggert@twinsun.com>
74015
74016         Handle invalid suffixes and overflow independently, so that
74017         callers can treat them independently as needed.  Fix some bugs in
74018         suffix handling, e.g., "100k@" was not diagnosed as an invalid
74019         suffix for a human-readable blocksize.  The major caller-visible
74020         change is the addition of a new
74021         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
74022         that both overflow and suffix chars were found.
74023
74024         * lib/human.c (humblock): Don't check separately for invalid suffix
74025         char; that is xstrtoumax's job (now that its bug is fixed).
74026         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
74027         INTMAX_MAX]: New macros.
74028         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
74029         TYPE_MAXIMUM): New macros.
74030         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
74031         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
74032         if overflow occurs, as it's what __strtol does and it's more useful
74033         in practice.
74034         (__xstrtol): If __strtol reports some error other than ERANGE,
74035         reflect it to the caller as LONGINT_INVALID.  If it reports
74036         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
74037         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
74038         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
74039         value.
74040         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
74041         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
74042         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
74043         [defined UINTMAX_MAX]: New macros.
74044
74045 2003-10-14  Bruno Haible  <bruno@clisp.org>
74046
74047         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
74048
74049 2003-10-14  Bruno Haible  <bruno@clisp.org>
74050
74051         * m4/sig_atomic_t: New file, from GNU gettext.
74052         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74053
74054 2003-10-14  Bruno Haible  <bruno@clisp.org>
74055
74056         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74057         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
74058         Also use volatile where needed.
74059
74060 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74061
74062         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
74063         Change maintainer from Bruno Haible to 'all'.
74064
74065 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74066
74067         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
74068
74069 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74070
74071         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
74072         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
74073         and define in terms of the other primitives.
74074         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
74075         (SIZE_MAX): Define if not already defined.
74076         (array_size_overflow): New function.
74077         (xalloc_die): Abort instead of exiting if 'error' returns.
74078         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
74079         (xmalloc, xrealloc): Use them.
74080         (xcalloc): Check for address arithmetic overflow.
74081         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
74082         a bit faster than strcpy.
74083
74084 2003-10-10  Simon Josefsson  <jas@extundo.com>
74085
74086         * modules/argp (Depends-on): Add restrict and strcase.
74087
74088 2003-10-10  Simon Josefsson  <jas@extundo.com>
74089
74090         * m4/argp.m4: Add AC_C_INLINE.
74091
74092 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74093
74094         Merge getpass from libc, plus a few fixes.
74095
74096         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74097         Include <stdbool.h>.
74098         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74099         __fsetlocking to empty.
74100         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74101         do include <bits/libc-lock.h>.
74102         Do not include <fcntl.h>; not needed.
74103         [_LIBC]: Include <wchar.h>.
74104         (NOTCANCEL_MODE): New macro.
74105         (flockfile, funlockfile) [_LIBC]: New macros.
74106         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74107         [!_LIBC]: New macros.
74108         (call_fclose): New function.
74109         (getpass): Use it.  Save tty stream separately; this simplifies the
74110         code and makes it more reliable if stdin happens to equal stdout.
74111         Invoke __fsetlocking on tty.
74112         Handle thread cancellation if needed.
74113         Namespace cleanup (use __tcgetattr, __getline).
74114         Use bool for Booleans.
74115         [USE_IN_LIBIO]: Handle wide streams.
74116         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74117         stream might go where.
74118
74119         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74120         doesn't have to include <stdio.h> before us.
74121         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74122         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74123         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74124         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74125         if not declared, so that we can use getpass.c code from libc without
74126         rewriting it.
74127         (flockfile, ftrylockfile, funlockfile): New macros.
74128
74129 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74130
74131         * modules/getpass: Depend on stdbool.
74132
74133 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74134
74135         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74136
74137 2003-10-07  Karl Berry  <karl@gnu.org>
74138
74139         * config/config.{guess,sub}: update from config.
74140
74141 2003-10-06  Jim Meyering  <jim@meyering.net>
74142             Bruno Haible  <bruno@clisp.org>
74143
74144         This lets translators provide better translations for the
74145         "Written by ..." part of --version output.
74146         * lib/version-etc.h: Include stdarg.h.
74147         (version_etc_copyright): Declare as readonly.
74148         (version_etc): Make this function variadic with a NULL-terminated list
74149         of author name strings.
74150         (version_etc_va): New declaration.
74151         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74152         (version_etc_copyright): Declare as readonly.
74153         (version_etc_va): New function. Provide a different translatable string
74154         for each possible number of authors < 10. Abbreviate when there are 10
74155         authors or more.
74156         (version_etc): Make this function variadic. Call version_etc_va.
74157         Suggestion from Gary V. Vaughan.
74158
74159         * lib/long-options.h (parse_long_options): Change prototype: the
74160         authors string is moved to the end and becomes variadic.
74161         * lib/long-options.c: Include stdarg.h.
74162         (parse_long_options): Make this function variadic, too.
74163         Call version_etc_va, not version_etc.
74164
74165 2003-10-06  Bruno Haible  <bruno@clisp.org>
74166
74167         * modules/version-etc-2: Remove file.
74168         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74169
74170 2003-10-06  Bruno Haible  <bruno@clisp.org>
74171
74172         * modules/fatal-signal: New file.
74173         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74174
74175 2003-10-06  Bruno Haible  <bruno@clisp.org>
74176
74177         * m4/fatal-signal.m4: New file.
74178         * m4/signalblocking.m4: New file, from GNU gettext.
74179
74180 2003-10-06  Bruno Haible  <bruno@clisp.org>
74181
74182         * lib/version-etc-2.h: Remove file.
74183         * lib/version-etc-2.c: Remove file.
74184
74185 2003-10-06  Bruno Haible  <bruno@clisp.org>
74186
74187         * lib/fatal-signal.h: New file, from GNU gettext.
74188         * lib/fatal-signal.c: New file, from GNU gettext.
74189
74190 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74191
74192         * README: Rework advice for preventing empty .o files.
74193         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74194         not <sys/types.h>.
74195
74196 2003-10-04  Karl Berry  <karl@gnu.org>
74197
74198         * lib/argp*: update from libc.
74199
74200 2003-10-04  Karl Berry  <karl@gnu.org>
74201
74202         * config/config.{guess,sub}: update from config.
74203
74204 2003-10-02  Bruno Haible  <bruno@clisp.org>
74205
74206         * modules/lchown (Include): Add lchown.h.
74207         * modules/time_r (Include): Use "..." syntax.
74208         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74209
74210 2003-10-01  Simon Josefsson  <jas@extundo.com>
74211
74212         * MODULES.html.sh (func_all_modules): Move gethostname from section
74213         'based on' to section 'lacking' POSIX:2001.
74214
74215 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74216
74217         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74218         to output mode on the same stream.
74219
74220 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74221
74222         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74223         Fix arg typo in previous patch.
74224
74225 2003-09-28  Jim Meyering  <jim@meyering.net>
74226
74227         * lib/error.c: Correct cpp indentation.
74228
74229 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74230
74231         * modules/free: New file.
74232
74233 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74234
74235         * m4/free.m4: New file.
74236
74237 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74238
74239         * lib/minmax.h (MIN, MAX)
74240         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74241         Omit the special code that used __typeof__, since we worry that
74242         it could be more trouble than it's worth.  See:
74243         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74244         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74245
74246         * lib/free.c: New file.
74247
74248 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74249
74250         Trivial fixes to Makefile.am parts of module listings.
74251         * modules/strstr: Append strstr.h to lib_SOURCES.
74252         * modules/strcase: Likewise, for strcase.h.
74253
74254 2003-09-27  Karl Berry  <karl@gnu.org>
74255
74256         * config/mkinstalldirs: update from automake.
74257
74258 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74259
74260         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74261         (error_tail): Do not loop, reallocating temporary buffer, since
74262         the output cannot contain more wide characters than the input
74263         contains bytes, the size must be big enough already.  This avoids
74264         one potential size overflow calculation.  Check for size overflow
74265         when calculating temporary buffer size.  Free temporary buffer
74266         when done, if it was allocated with malloc; this plugs a memory
74267         leak.  Remove casts from void * to pointers, that are no longer
74268         needed now that we're assuming C89 or better.
74269
74270         Merge error changes from glibc.
74271
74272         * lib/error.c, error.h: Update copyright notice header to match glibc.
74273         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74274         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74275         Disable cancellation while printing error.
74276         * lib/error.h: Prepend __ to parameter names.
74277
74278 2003-09-26  Jim Meyering  <jim@meyering.net>
74279
74280         * lib/error.c (error_tail): Move some declarations
74281         into inner scope where the local variables are used.
74282
74283 2003-09-26  Bruno Haible  <bruno@clisp.org>
74284
74285         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74286         stpncpy().
74287         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74288
74289 2003-09-26  Bruno Haible  <bruno@clisp.org>
74290
74291         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74292         (stpncpy): Define as alias for gnu_stpncpy.
74293         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74294
74295 2003-09-25  Simon Josefsson  <jas@extundo.com>
74296
74297         * lib/xgetdomainname.h: New file.
74298         * lib/xgetdomainname.c: New file.
74299
74300 2003-09-25  Simon Josefsson  <jas@extundo.com>
74301             Bruno Haible  <bruno@clisp.org>
74302
74303         * modules/getdomainname: New file.
74304         * modules/xgetdomainname: New file.
74305         * MODULES.html.sh (func_all_modules): Add getdomainname,
74306         xgetdomainname.
74307
74308 2003-09-25  Simon Josefsson  <jas@extundo.com>
74309             Bruno Haible  <bruno@clisp.org>
74310
74311         * m4/getdomainname.m4: New file.
74312
74313 2003-09-25  Simon Josefsson  <jas@extundo.com>
74314             Bruno Haible  <bruno@clisp.org>
74315
74316         * lib/getdomainname.h: New file.
74317         * lib/getdomainname.c: New file.
74318
74319 2003-09-25  Karl Berry  <karl@gnu.org>
74320
74321         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74322
74323 2003-09-25  Karl Berry  <karl@gnu.org>
74324
74325         * config/install-sh: update from automake.
74326
74327 2003-09-25  Bruno Haible  <bruno@clisp.org>
74328
74329         * modules/version-etc-2: New file, from modules/version-etc with
74330         modifications.
74331         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74332
74333 2003-09-25  Bruno Haible  <bruno@clisp.org>
74334
74335         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74336         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74337
74338 2003-09-24  Simon Josefsson  <jas@extundo.com>
74339
74340         * modules/xgethostname: Add xgethostname.h.
74341
74342 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74343
74344         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74345         the buffer associated with the argument.  Bug reported by
74346         Simon Josefsson.
74347
74348 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74349
74350         * README: Document assumptions that 'int' is at least 32 bits
74351         wide, that integer arithmetic is 2's complement without overflow,
74352         that there are no holes in integer values, that adding sizes of
74353         two nonoverlapping objects can't overflow, and that all-bits-zero
74354         yields scalar zero.  Fix spelling and capitalization typos.
74355
74356 2003-09-19  Karl Berry  <karl@gnu.org>
74357
74358         * lib/argp.h: update from libc.
74359
74360 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74361
74362         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74363         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74364         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74365
74366 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74367
74368         * gnulib-tool: Use "test -h", not "test -L", for portability
74369         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74370         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74371         (sed_extract_prog): Issue s commands one-by-one, rather than
74372         using \| in one s command.
74373
74374 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74375
74376         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74377         input error, instead of returning NULL the next time we are called
74378         (and therefore losing track of errno).
74379
74380 2003-09-16  Bruno Haible  <bruno@clisp.org>
74381
74382         * gnulib-tool (func_create_testdir): Warn about duplicated
74383         dependencies.
74384
74385 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74386
74387         * modules/argmatch, modules/fatal, modules/obstack,
74388         modules/xalloc, modules/xgethostname: Sort dependencies by
74389         importance, not alphabetically.
74390
74391 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74392
74393         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74394         fails, so that the caller gets the proper errno.
74395
74396         * lib/readutmp.c (read_utmp): Likewise.
74397         Check for fstat error.  Close stream and free storage
74398         when failing.
74399
74400 2003-09-14  Karl Berry  <karl@gnu.org>
74401
74402         * config/srclist.txt (strdup.c): disable for c89 changes.
74403
74404 2003-09-14  Jim Meyering  <jim@meyering.net>
74405
74406         * lib/getloadavg.c: Correct cpp indentation.
74407         * lib/strdup.c: Likewise.
74408         * lib/vasnprintf.c: Likewise.
74409
74410 2003-09-14  Bruno Haible  <bruno@clisp.org>
74411
74412         * modules/fwriteerror: New file.
74413         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74414
74415 2003-09-14  Bruno Haible  <bruno@clisp.org>
74416
74417         * lib/fwriteerror.h: New file.
74418         * lib/fwriteerror.c: New file.
74419
74420 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74421
74422         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74423         modules/xgethostname, modules/xalloc: Depend on exit.
74424
74425 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74426
74427         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74428
74429         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74430         and AC_MINIX, too, so that their extensions are available.
74431
74432         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74433         This macro has been superseded by gl_BACKUPFILE.
74434
74435         More patches to assume C89 or better.
74436
74437         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74438
74439         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74440         unconditionally.
74441         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74442         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74443         Include <string.h>, <stdlib.h> unconditionally.
74444         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74445         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74446         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74447         headers or for string.h.
74448         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74449         or strtoul.
74450
74451         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74452         headers.
74453         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74454         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74455         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74456         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74457         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74458         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74459         memcpy, memset.
74460         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74461         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74462         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74463         strtol.
74464         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74465         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74466         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74467         strtoul.
74468
74469 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74470
74471         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74472         * lib/obstack.c [!defined _LIBC]: Likewise.
74473         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74474         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74475         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74476
74477         More changes to assume C89 or better.
74478
74479         * lib/error.c (error_tail): Assume vprintf.
74480
74481         * lib/argmatch.c (getenv): Remove decl.
74482         * lib/progreloc.c (get_full_program_name): Define via prototype.
74483         * lib/setenv.c (clearenv): Likewise.
74484         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74485         needed.
74486         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74487         (malloc, memcpy): Remove decls.
74488         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74489         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74490         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74491         (memcpy): Remove macro.
74492         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74493         (__P): Remove.  All uses removed.
74494         (PTR): Remove.  All uses changed to void *.
74495         (CHAR_BIT, NULL): Remove.
74496         (spaces, zeros, memset_space, memset_zero)
74497         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74498         Remove.
74499         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74500         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74501         Define with prototype.
74502         Remove now-unnecessary prototype decl.
74503         (extra_args_spec): Assume ANSI C.  All uses changed.
74504         (extra_args_spec_iso): Remove.
74505         (my_strftime, emacs_strftimeu): Define via prototype.
74506         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74507         unconditionally.
74508         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74509         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74510         (strtoul, strtol): Remove decls.
74511         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74512         LONG_MAX): Remove.
74513         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74514         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74515         (LOCALE_PARAM_PROTO): New macro.
74516         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74517         (INTERNAL (strtol), strtol): Define with a prototype.
74518         (PARAMS): Remove.  All uses removed.
74519         * lib/tempname.c: Include <string.h> unconditionally.
74520         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74521         * lib/xgethostname.c (main): Define with a prototype.
74522         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74523         Include <stdlib.h> unconditionally.
74524         (calloc, malloc, realloc, free): Remove decls.
74525         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74526         Include <stdlib.h> unconditionally.  Sort include file names.
74527         (strtod): Remove.
74528         (xstrtod): Define with a prototype.
74529         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74530         (strtol, strtoul): Remove decls.
74531
74532 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74533
74534         More patches to assume C89 or better.
74535         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74536         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74537         string.h, memchr, STDC_HEADERS.
74538
74539 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74540
74541         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74542         Include <stdlib.h>, <string.h> unconditionally.
74543         Remove now-unnecessary cast to char *.
74544         * lib/strnlen.c: Include <string.h> unconditionally.
74545         * lib/yesno.c (yesno): Define with a prototype.
74546
74547 2003-09-11  Bruno Haible  <bruno@clisp.org>
74548
74549         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74550
74551 2003-09-10  Jim Meyering  <jim@meyering.net>
74552
74553         * lib/error.c: Correct indentation of cpp directives.
74554
74555 2003-09-10  Bruno Haible  <bruno@clisp.org>
74556
74557         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74558         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74559         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74560         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74561         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74562         <stdlib.h> and <string.h> checks.
74563         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74564         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74565
74566 2003-09-10  Bruno Haible  <bruno@clisp.org>
74567
74568         * lib/strcspn.c: Include <string.h> unconditionally.
74569         * lib/strpbrk.c: Include <string.h> unconditionally.
74570         * lib/strstr.c: Include <string.h> unconditionally.
74571         * lib/unicodeio.c: Include <string.h> unconditionally.
74572         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74573         * lib/unsetenv.c: Likewise.
74574         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74575         * lib/yesno.c: Include <stdlib.h> unconditionally.
74576         (rpmatch): Add prototype.
74577
74578 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74579
74580         More patches to assume C89 or better.
74581         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74582         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74583         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74584         or for string.h.
74585         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74586         stdlib.h.
74587         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74588         C headers.
74589         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74590         string.h.
74591         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74592         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74593         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74594         or for string.h.
74595         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74596         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74597         C headers.
74598         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74599         memcpy.
74600         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74601         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74602         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74603         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74604         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74605         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74606         string.h, free.
74607         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74608         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74609         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74610         C headers, or for string.h.
74611         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74612         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74613         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74614         headers, memory.h, stdlib.h, string.h, strings.h.
74615         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74616         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74617         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74618         strchr.
74619         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74620         headers, memory.h, string.h.
74621         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74622         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74623         free.
74624         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74625         headers.
74626         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74627         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74628         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74629         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74630         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74631
74632 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74633
74634         More K&R removal.
74635
74636         * lib/acosl.c (main): Use a prototype.
74637         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74638         tanl.c: Likewise.
74639
74640         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74641
74642         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74643         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74644         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74645         with a prototype.
74646         * lib/getopt.c (const): Remove macro.
74647         Include <string.h> unconditionally.
74648         (my_index): Remove; all uses changed to strchr.
74649         (strlen): Remove decl.
74650         (exchange): Remove forward decl; no longer needed.
74651         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74652         Define with prototype.
74653         * lib/getopt1.c (const): Remove macro.
74654         (getopt_long, getopt_long_only, main): Define with prototype.
74655
74656         * lib/getugroups.c: Include <string.h> unconditionally.
74657
74658         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74659         (getusershell, setusershell, endusershell, readname, main):
74660         Define with prototypes.
74661
74662         * lib/group-member.c: Include group-member.h first.
74663         Include <stdlib.h> unconditionally.
74664
74665         * lib/hard-locale.c: Include hard-locale.h first.
74666         Include <stdlib.h>, <string.h> unconditionally.
74667
74668         * lib/hash.c (free, malloc): Remove decls.
74669         Include <stdlib.h> unconditionally.
74670
74671         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74672         (getenv): Do not declare.
74673
74674         * lib/idcache.c: Include <string.h> unconditionally.
74675
74676         * lib/long-options.c: Include long-options.h first, to test interface.
74677         Include <stdlib.h> unconditionally.
74678
74679         * lib/makepath.c: Include makepath.h first, to test interface.
74680         Include <stdlib.h> and <string.h> unconditionally.
74681
74682         * lib/linebuffer.c: Include <stdlib.h>.
74683         (free): Remove decl.
74684
74685         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74686         stddef.h. rpl_malloc returns void *, not char *.
74687         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74688         prototype.
74689
74690         * lib/md5.h: Include <limits.h> unconditionally.
74691         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74692         (__P): Remove; all uses removed.
74693         * lib/md5.c: Include "md5.h" first.
74694         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74695         md5_buffer, md5_process_bytes, md5_process_block):
74696         Define with prototypes.
74697         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74698         * lib/sha.c: Include "sha.h" first.
74699         Include <stdlib.h>, <string.h> unconditionally.
74700
74701         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74702         * lib/memcmp.c (__ptr_t): Likewise.
74703         * lib/memrchr.c (__ptr_t): Likewise.
74704         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74705         Include <string.h> unconditionally.
74706         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74707         * lib/memchr.c: Include <stdlib.h> unconditionally.
74708         * lib/memchr.c (LONG_MAX): Remove.
74709         * lib/memrchr.c (LONG_MAX): Likewise.
74710         * lib/memchr.c (__memchr): Define via a prototype.
74711         * lib/memrchr.c (__memrchr): Likewise.
74712         * lib/memcmp.c (__P): Remove, and remove all uses.
74713         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74714         Remove forward decls; no longer needed.
74715         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74716         Use types required by C89 in prototype.
74717
74718         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74719         * lib/savedir.c: Likewise.
74720         * lib/mkdir.c (free): Remove decl.
74721         * lib/rmdir.c (rmdir): Define with a prototype.
74722         * lib/savedir.c: Include savedir.h first, to test interface.
74723
74724         * lib/mktime.c (STDC_HEADERS): Remove.
74725         Include <stdlib.h>, <string.h> unconditionally.
74726
74727         * lib/modechange.c: Include <stdlib.h> unconditionally.
74728         (malloc): Remove decl.
74729
74730         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74731         (free): Remove decl.
74732
74733         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74734         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74735         (This type really should be intptr_t, but that's a C99ism.)
74736         (_obstack_memcpy): Remove: all uses changed to memcpy.
74737         Include <string.h> unconditionally.
74738         (struct obstack): Assume __STDC__ for types of members
74739         chunkfun, freefun, extra_arg.
74740         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74741         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74742         obstack_begin, obstack_specify_allocation,
74743         obstack_specify_allocation_with_arg, obstack_chunkfun,
74744         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74745         Remove unprototyped decls and the macros that use them.
74746         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74747         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74748         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74749         (defined __STDC__ && __STDC__)]:
74750         Remove nonprototyped code.
74751         Include <stdlib.h> unconditionally.
74752         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74753         _obstack_allocated_p, _obstack_free, obstack_free,
74754         _obstack_memory_used, print_and_abort):
74755         Define using prototypes.
74756         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74757         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74758         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
74759         obstack_next_free, obstack_object_size, obstack_room) [0]:
74760         Remove unused, unprototyped code.
74761
74762         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
74763
74764         * lib/physmem.c (physmem_total, physmem_available, main): Define
74765         with prototypes.
74766
74767         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
74768         (main): Define with a prototype.
74769
74770         * lib/posixver.c (getenv): Remove decl.
74771
74772         * lib/putenv.c (malloc): Returns void *, not char *.
74773         Include <string.h> unconditionally.
74774         (strchr, memcpy, NULL): Do not define.
74775
74776         * lib/readtokens.c: Include readtokens.h first, to test interface.
74777         Include <stdlib.h>, <string.h> unconditionally.
74778         (init_tokenbuffer): Define with a prototype.
74779
74780         * lib/regex.c (PARAMS): Remove.  All uses removed.
74781         All uses of _RE_ARGS removed, too.
74782         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74783         unconditionally.
74784         (bzero): Assume memset exists.
74785         (memcmp, memcpy, NULL): Remove.
74786         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
74787         char, or assignments to local vars of type signed char.
74788         (init_syntax_once, PREFIX(extract_number_and_incr),
74789         PREFIX(print_partial_compiled_pattern),
74790         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
74791         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
74792         PREFIX(regex_grow_registers), PREFIX(regex_compile),
74793         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
74794         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
74795         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
74796         wcs_compile_range, byte_compile_range, truncate_wchar,
74797         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
74798         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
74799         count_mbs_length, wcs_re_match_2_internal,
74800         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
74801         PREFIX(alt_match_null_string_p),
74802         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
74803         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
74804         regfree, PREFIX(extract_number)): Define with prototype.  Remove
74805         now-unnecessary declaration, if any.
74806         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
74807         regcomp, regexec):
74808         Remove now-unnecessary casts among pointer types.
74809         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
74810
74811         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
74812         (free): Remove decl.
74813
74814         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
74815
74816         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
74817         (free): Remove decl.
74818
74819         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
74820         * lib/xgetcwd.c: Likewise.
74821
74822         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
74823         (free): Remove decl.
74824
74825         * lib/strchrnul.c (strchrnul): Define with a prototype.
74826         Fix bug: c_in was not converted to char before searching.
74827
74828         The following changes are not K&R related:
74829
74830         * lib/group-member.h: Include <sys/types.h>, so that this file is
74831         self-contained.
74832         * lib/makepath.h: Likewise.
74833
74834         * lib/getusershell.c (readname, default_index, line_size, readname):
74835         Use size_t, not int, for sizes.
74836         (readname): If the size overflows, report an error instead of
74837         looping forever.
74838
74839 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74840
74841         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
74842         libc.
74843
74844 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74845
74846         * README: New section: portability guidelines.
74847
74848 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74849
74850         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
74851         C89 spec.
74852
74853 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74854
74855         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
74856
74857 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74858
74859         Assume C89 or better; remove K&R cruft.
74860         A few of these changes were first proposed by Derek Robert Price
74861         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
74862
74863         * lib/addext.c: Include <string.h> unconditionally.
74864         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
74865         Don't declare getenv or malloc.
74866
74867         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
74868         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
74869         (NULL): Remove.
74870         (find_stack_direction, alloca): Use prototypes.
74871
74872         * lib/atexit.c (atexit): Define using a prototype.
74873
74874         * lib/basename.c, dirname.c, stripslash.c:
74875         Include <string.h> unconditionally.
74876
74877         * lib/bcopy.c: Include <stddef.h>.
74878         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
74879
74880         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
74881
74882         * lib/error.h (error, error_at_line, error_print_progname)
74883         [! (defined (__STDC__) && __STDC__)]: Remove decls.
74884         * lib/error.c: Include error.h first, to check interface.
74885         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74886         (VA_START): Remove; all uses changeed to va_start.
74887         (exit, strerror): Remove decls.
74888         (error_print_progname): Prototype uncondionally.
74889         Don't include <errno.h>; no longer needed.
74890         (private_strerror): Remove.
74891         (error_tail): Always define.
74892         (error, error_at_line): Assume C89 or better; always use prototypes.
74893         * lib/fatal.c: Include "fatal.h" first, to test interface.
74894         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74895         (VA_START): Remove; all uses changed to va_start.
74896         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
74897         this case.
74898         (exit): Remove decl.
74899         (fatal): Prototype unconditionally.  Assume va_start works.
74900         Abort at end, to pacify gcc.
74901
74902         * lib/euidaccess.c (main): Define with a prototype.
74903
74904         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
74905
74906         * lib/exitfail.c: Include <stdlib.h> unconditionally.
74907
74908         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
74909         prototypes.
74910         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
74911         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
74912         (getenv): Remove decl.
74913         (fnmatch): Define using a prototype.
74914         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
74915         (FCT): Define using a prototype.
74916
74917         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
74918
74919         * lib/gethostname.c: Include <stddef.h>.
74920         (gethostname): Define with prototype.  Length is size_t, not int.
74921
74922 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74923
74924         Assume C89 or better; remove K&R cruft.
74925         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
74926         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
74927         string.h, getenv, malloc.
74928         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
74929         headers.
74930         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
74931         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
74932         do not check for strerror.
74933         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
74934         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
74935         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
74936         do not check for doprnt or vprintf.
74937         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
74938         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
74939
74940 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74941
74942         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
74943         getversion.c should have been removed then, but was accidentally
74944         preserved.
74945
74946         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
74947         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
74948
74949 2003-09-08  Karl Berry  <karl@gnu.org>
74950
74951         * config/config.sub, config.guess, srclistvars.sh: update from savannah
74952                 config, forget about prep.
74953
74954         * config/depcomp, missing: update from automake.
74955
74956 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74957
74958         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74959         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74960
74961 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74962
74963         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74964         copy_tm_result.  Bug reported by Simon Josefsson in
74965         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74966
74967 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74968
74969         * m4/time_r.m4: New file.
74970         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74971         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74972         is. Check for timegm declaration.
74973         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74974         Do not check for gmtime_r.
74975         Replace mktime if __mktime_internal does not exist and if mktime
74976         hasn't been replaced already.
74977
74978 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74979
74980         * lib/time_r.c, lib/time_r.h: New files.
74981
74982         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74983         __localtime_r.
74984         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74985         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74986
74987         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74988         __gmtime_r.
74989         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74990         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74991         Include <time_r.h>.
74992
74993         * lib/timegm.c: Switch to glibc implementation, with the following
74994         changes:
74995         [defined HAVE_CONFIG_H]: Include <config.h>.
74996         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
74997         (__mktime_internal) [!defined _LIBC]: New decl.
74998         (__gmtime_r) [!defined _LIBC]: New macro and function.
74999         (timegm): Use a prototype, since gnulib assumes C89.
75000         Do not bother declaring tmp to be const, as it's not really usefu.
75001         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
75002         (timegm): Declare only if HAVE_DECL_TIMEGM.
75003
75004 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75005
75006         * MODULES.html.sh (func_all_modules): Add time_r.
75007         * modules/time_r: New file.
75008         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
75009         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
75010
75011 2003-09-03  Paul Eggert  <eggert@twinsun.com>
75012
75013         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
75014         Bug reported by Lute Kamstra in
75015         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
75016
75017         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
75018         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
75019         course with correspondingly smaller numbers for tomorrow and
75020         yesterday.  From Tadayoshi Funaba.  Originally installed into
75021         sh-utils on 1999-08-07, but the patch got lost (I guess during the
75022         coreutils merge?).
75023
75024 2003-08-31  Simon Josefsson  <jas@extundo.com>
75025
75026         * modules/timegm: New file.
75027         * MODULES.html.sh (func_all_modules): Add timegm.
75028
75029 2003-08-31  Simon Josefsson  <jas@extundo.com>
75030
75031         * m4/timegm.m4: New file.
75032
75033 2003-08-31  Simon Josefsson  <jas@extundo.com>
75034
75035         * lib/timegm.h: New file.
75036         * lib/timegm.c: New file.  Based on
75037         wget-1.8.2/src/http.c:mktime_from_utc.
75038
75039 2003-08-31  Karl Berry  <karl@gnu.org>
75040
75041         * lib/argp.h: update from libc.
75042
75043 2003-08-28  Bruno Haible  <bruno@clisp.org>
75044
75045         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
75046         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
75047         followed by '#define fnmatch fnmatch_posix' gives an error.
75048
75049 2003-08-28  Bruno Haible  <bruno@clisp.org>
75050
75051         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75052         warning on QNX, which defines O_BINARY to 000000.
75053
75054 2003-08-27  Jim Meyering  <jim@meyering.net>
75055
75056         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75057         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
75058         would fail after 32.  Reported by Danny Levinson.  Details here:
75059         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
75060
75061 2003-08-24  Bruno Haible  <bruno@clisp.org>
75062
75063         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
75064         MSVC7 <stdio.h> is included later.
75065
75066 2003-08-22  Simon Josefsson  <jas@extundo.com>
75067
75068         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
75069
75070 2003-08-20  Karl Berry  <karl@gnu.org>
75071
75072         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
75073
75074 2003-08-20  Bruno Haible  <bruno@clisp.org>
75075
75076         * modules/progname: New file.
75077         * MODULES.html.sh (func_all_modules): Add progname.
75078
75079 2003-08-20  Bruno Haible  <bruno@clisp.org>
75080
75081         * lib/progname.h: New file, from GNU gettext.
75082         * lib/progname.c: New file, from GNU gettext.
75083         * lib/progreloc.c: New file, from GNU gettext.
75084
75085 2003-08-19  Jim Meyering  <jim@meyering.net>
75086
75087         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75088         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75089
75090 2003-08-19  Bruno Haible  <bruno@clisp.org>
75091
75092         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75093         more.
75094
75095 2003-08-19  Bruno Haible  <bruno@clisp.org>
75096
75097         * lib/xstrdup.c: Assume <string.h> exists.
75098
75099 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75100
75101         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75102         in makefile rules.
75103
75104 2003-08-18  Jim Meyering  <jim@meyering.net>
75105
75106         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75107         * m4/lib-ld.m4: Likewise.
75108
75109 2003-08-18  Jim Meyering  <jim@meyering.net>
75110
75111         * lib/setenv.h: Indent nested cpp directive.
75112         * lib/vasnprintf.c: Remove trailing blanks.
75113
75114 2003-08-17  Simon Josefsson  <jas@extundo.com>
75115
75116         * modules/xstrndup: New file.
75117         * MODULES.html.sh (func_all_modules): Add xstrndup.
75118
75119 2003-08-17  Simon Josefsson  <jas@extundo.com>
75120
75121         * modules/argp: Fix autoconf macro name. Add more dependencies.
75122
75123 2003-08-17  Simon Josefsson  <jas@extundo.com>
75124
75125         * m4/xstrndup.m4: New file.
75126
75127 2003-08-17  Simon Josefsson  <jas@extundo.com>
75128
75129         * m4/argp.m4: New file.
75130
75131 2003-08-17  Simon Josefsson  <jas@extundo.com>
75132             Bruno Haible  <bruno@clisp.org>
75133
75134         * lib/xstrndup.h: New file.
75135         * lib/xstrndup.c: New file.
75136
75137 2003-08-17  Bruno Haible  <bruno@clisp.org>
75138
75139         * modules/strndup (Files, Include): Add lib/strndup.h.
75140
75141 2003-08-17  Bruno Haible  <bruno@clisp.org>
75142
75143         * modules/euidaccess (Files): Add lib/euidaccess.h.
75144
75145 2003-08-17  Bruno Haible  <bruno@clisp.org>
75146
75147         * lib/strndup.h: New file.
75148
75149 2003-08-17  Bruno Haible  <bruno@clisp.org>
75150
75151         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75152         like AC_GNU_SOURCE.
75153         * modules/extensions (configure.ac): Comment out the invocation of
75154         gl_USE_SYSTEM_EXTENSIONS.
75155
75156 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75157
75158         Merges from coreutils, etc.
75159         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75160         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75161         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75162         fixing a typo.
75163         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75164         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75165
75166 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75167
75168         Document merge from coreutils.
75169         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75170         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75171         * modules/utime: Add m4/utimes-null.m4.
75172
75173 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75174
75175         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75176         space, undoing this 2003-08-12 change:
75177         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75178
75179 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75180
75181         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75182         strtoul.c from libc, undoing this 2003-08-12 change:
75183         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75184
75185 2003-08-16  Jim Meyering  <jim@meyering.net>
75186
75187         Merges from coreutils.
75188         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75189         prefix.  Adjust cache variables similarly.  Create 500 rather than
75190         just 300 files, to exercise bug on Darwin6.5, too.
75191         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75192         $missing_dir.
75193         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75194         AM_SYS_POSIX_TERMIOS.
75195         Reported by mkc@mathdogs.com.
75196         Also change use of $am_cv_sys_posix_termios
75197         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75198         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75199         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75200         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75201         in /proc/mounts until it finds one with matching device number.  This
75202         is unnecessary when the FILE argument *is* a mount point.  No stat call
75203         is necessary in that case.  So, disable the statvfs-testing code on
75204         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75205         as RedHat bug# 84846.
75206         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75207         to 1MB, so as not to render systems with no stack size limit (e.g.,
75208         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75209         Include <unistd.h>.  On some systems,
75210         it is required for the definition of _SC_PAGESIZE.
75211
75212 2003-08-16  Jim Meyering  <jim@meyering.net>
75213
75214         Merge from coreutils.
75215         * lib/xstrtoimax.c: #else #if -> #elif.
75216         * lib/xstrtoumax.c: Likewise.
75217
75218 2003-08-16  Jim Meyering  <jim@meyering.net>
75219
75220         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75221         * m4/utimes.m4: Removed.
75222         * m4/utimes-null.m4: Renamed from utimes.m4.
75223
75224         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75225         to 1MB, so as not to render systems with no stack size limit (e.g.,
75226         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75227         Include <unistd.h>.  On some systems,
75228         it is required for the definition of _SC_PAGESIZE.
75229
75230 2003-08-16  Jim Meyering  <jim@meyering.net>
75231         and Paul Eggert  <eggert@cs.ucla.edu>
75232
75233         Merges from coreutils, etc.
75234
75235         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75236         using the latest version from cvs.  This avoids problems with #line
75237         directives using a vendor (Sun) compiler.
75238         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75239         Don't set GETGROUPS_LIB here; now it's
75240         done via getgroups.m4's wrapper function.
75241         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75242         rather than just in sh-util/configure.in, so that the
75243         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75244         same.
75245         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75246         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75247         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75248         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75249         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75250         Remove code that is now done by the newly-required macros.
75251         Append $(EXEEXT) to DF_PROG.
75252         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75253         Do not invoke or require the following here,
75254         since prereq.m4 or some gnulib .m4 now does this for us:
75255         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75256         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75257         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75258         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75259         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75260         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75261         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75262         AC_FUNC_OBSTACK.
75263         Do not replace the following functions, as this is now the job
75264         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75265         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75266         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75267         atexit getpass, strdup, getpagesize.
75268         Replace 'raise'.
75269         Do not check for the following functions, as this is now the job
75270         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75271         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75272         setregid.
75273         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75274         Check for sys/sysctl.h.
75275         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75276         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75277         of checking for ssize_t ourselves.
75278
75279         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75280         Require every macro that gnulib/modules/* suggests for us.
75281         (jm_PREREQ_ADDEXT): New macro.
75282         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75283         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75284
75285         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75286         (gl_PHYSMEM): Use it.
75287         Also check for `table' function.
75288         Check for new headers and functions.
75289         Add check for sys/sysmp.h.
75290         With suggestions from Kaveh Ghazi.
75291         Ignore headers that are present but cannot be compiled.  This
75292         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75293         C 5.4.
75294
75295 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75296
75297         Document merge from coreutils.
75298         * modules/userspec: Depend on posixver.
75299         * modules/strftime: Depend on tzset.
75300
75301 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75302
75303         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75304         rather than tab, after '#' in shell-script copyright notices.
75305         Suggested by Bruno Haible.
75306
75307 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75308
75309         * config/srclist-update: Use three spaces, rather than tab, after '#'
75310         in shell-script copyright notices.  Suggested by Bruno Haible.
75311         Remove unnecessary parenthesization in regular expression.
75312
75313 2003-08-15  Jim Meyering  <jim@meyering.net>
75314
75315         Merge from coreutils.
75316         * lib/xgethostname.c: Include <stdlib.h>.
75317         (xghostname): Don't exit for anything other than memory-related
75318         failure; just return NULL.
75319         * lib/userspec.c: Include "posixver.h".
75320         (parse_user_spec): Accept `.' as a separator only
75321         in pre-POSIX-200112 mode.
75322         * lib/strtoimax.c: Use #elif rather than #else #if.
75323         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75324         Remove function, now that we can rely on a working tzset function.
75325         [!_LIBC]: Ensure that the required autoconf test has been run.
75326         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75327         Use underlying_strftime for %r.
75328         * lib/sha.c: Merge in some clean-up and optimization changes from
75329         glibc.
75330         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75331         Ensure that it is a multiple of 64.
75332         Rearrange loop exit tests so as to avoid performing an
75333         additional fread after encountering an error or EOF.
75334         * lib/realloc.c: Update copyright date.
75335
75336 2003-08-15  Jim Meyering  <jim@meyering.net>
75337         and Paul Eggert  <eggert@twinsun.com>
75338
75339         Merge from coreutils.
75340         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75341         member but strut utmpx does not.  Needed for AIX 4.3.3.
75342         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75343
75344 2003-08-15  Jim Meyering  <jim@meyering.net>
75345         and Paul Eggert  <eggert@cs.ucla.edu>
75346
75347         Merges from coreutils, etc.
75348         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75349         Require gl_FUNC_TZSET_CLOBBER.
75350         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75351         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75352         members.
75353
75354 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75355
75356         Help the merge from coreutils.
75357         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75358         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75359         * m4/tzset.m4: Use it too.
75360
75361 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75362
75363         * modules/tzset: New file.
75364
75365 2003-08-14  Jim Meyering  <jim@meyering.net>
75366
75367         Merges from coreutils.
75368         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75369         variable names, rather than @FNMATCH_H@.
75370         * modules/alloca: Likewise for $(ALLOCA_H).
75371
75372         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75373         the three copies of the literal target, `fnmatch.h'.
75374         * modules/alloca (alloca.h): Likewise.
75375
75376 2003-08-14  Jim Meyering  <jim@meyering.net>
75377
75378         Merge from coreutils.
75379         * m4/tzset.m4: New file.
75380         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75381         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75382         otherwise, AIX 5.1 systems would end up using the latter.
75383         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75384         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75385         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75386         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75387
75388 2003-08-14  Jim Meyering  <jim@meyering.net>
75389
75390         Merge from coreutils.
75391         * lib/obstack.h: Whitespace changes.
75392         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75393         and xcalloc return values.
75394         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75395         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75396         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75397         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75398         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75399         error from mntctl.
75400         Use mntctl's return value to drive the entry-processing loop, since
75401         we can't rely on the value of the vmt_length member in the last
75402         entry.  On some systems doing so could result in exhausting
75403         virtual memory.  Based in part on a patch from Mike Jetzer.
75404
75405 2003-08-14  Jim Meyering  <jim@meyering.net>
75406         and Paul Eggert  <eggert@twinsun.com>
75407
75408         Merges from coreutils, plus other fixes.
75409         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75410         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75411         for credits and details.  Thanks to Kaveh Ghazi for helping
75412         to keep these files in sync.
75413         (ARRAY_SIZE): Define it.
75414         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75415         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75416         (memcasecmp): Don't assume size_t fits in unsigned int.
75417         Remove casts and duplicate code.
75418         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75419         (memcpy): Remove definition.
75420         Merge in some clean-up and optimization changes from glibc.
75421         [BLOCKSIZE]: Move definition to top of file.
75422         Ensure that it is a multiple of 64.
75423         Rearrange loop exit tests so as to avoid performing an
75424         additional fread after encountering an error or EOF.
75425         * lib/md5.h (md5_uintptr): Define.
75426         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75427         return to the initial working directory.  Preserve errno
75428         for caller.
75429         * lib/idcache.c: Include "xalloc.h".
75430         (xmalloc, xrealloc): Remove decls.
75431         (getuser): Remove casts no longer required in C89.
75432         * lib/human.c: Include stdio.h, for sprintf.
75433         * lib/group-member.c: Include "xalloc.h".
75434         (xmalloc, xrealloc): Remove decls.
75435         (get_group_info): Remove casts no longer required in C89.
75436         * lib/getusershell.c (readname): Remove casts no longer required in
75437         C89.
75438         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75439         * lib/getline.c: Whitespace fix, from coreutils.
75440
75441 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75442
75443         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75444         Check for isascii.
75445
75446         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75447         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75448         Undo previous (whitespace-only) change.
75449
75450 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75451
75452         * lib/exclude.c: Include <ctype.h>
75453         (IN_CTYPE_DOMAIN): New macro.
75454         (is_space): New fn.
75455         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75456         and empty lines.
75457
75458         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75459         Undo previous (whitespace-only) change.
75460
75461 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75462
75463         * config/srclist-update: Change update back to the old behavior,
75464         leaving whitespace alone.  Use one 'sed' command rather than a
75465         pipeline.
75466         (fixlicense): Now a variable, not a function.
75467         (remove_trailing_blanks): Remove.
75468         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75469         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75470         Undo previous (whitespace-only) change.
75471
75472 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75473
75474         Merge from coreutils.
75475         * modules/euidaccess: Add lib_SOURCES, include for new
75476         file euidaccess.h
75477
75478 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75479
75480         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75481         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75482         Normalize leading white space and remove trailing white space.
75483
75484         Merge from coreutils
75485         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75486
75487         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75488         0.12.1.  These files are now being upgraded automatically by
75489         ../config/srclist-update.
75490
75491 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75492
75493         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75494         Normalize leading white space and remove trailing white space.
75495         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75496         notice, as per ../config/srclist-update.
75497
75498         Merge from coreutils.
75499         * lib/euidaccess.h: New file.
75500         * lib/euidaccess.c: Include it.
75501         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75502         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75503         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75504
75505 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75506
75507         * config/srclist-update: Add copyright notice.
75508         (remove_id_lines, remove_trailing_blanks): New constants.
75509         (fixfile): Use them to normalize spacing a bit in copied files.
75510         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75511         Normalize leading white space and remove trailing white space.
75512
75513         * config/texinfo.tex: Sync with texinfo.
75514
75515         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75516         strtoul.c from libc, to merge coreutils whitespace changes.
75517
75518         * config/srclist.txt: Get the following m4 files from gettext:
75519         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75520         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75521         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75522         wint_t.m4.
75523
75524 2003-08-12  Karl Berry  <karl@gnu.org>
75525
75526         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75527         been made.
75528
75529 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75530
75531         * modules/gnu-source, m4/gnu-source.m4:
75532         Remove; we're assuming Autoconf 2.54 or later now.
75533         Suggested by Bruno Haible.
75534         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75535
75536 2003-08-11  Bruno Haible  <bruno@clisp.org>
75537
75538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75539
75540 2003-08-11  Bruno Haible  <bruno@clisp.org>
75541
75542         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75543         (vasnprintf): Use it instead of wcslen.
75544
75545 2003-08-11  Bruno Haible  <bruno@clisp.org>
75546
75547         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75548         value to ensure that _Bool promotes to int. Use #define for _Bool when
75549         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75550
75551 2003-08-10  Karl Berry  <karl@gnu.org>
75552
75553         * lib/regex.h: update from libc (whitespace fix).
75554
75555 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75556
75557         Merge some files from coreutils.  These changes were
75558         originally made by Jim Meyering.
75559         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75560         many older Unixes require this.
75561         * lib/alloca.c (alloca): Remove cast to argument of free;
75562         no longer needed in C89.
75563         * lib/alloca_.h, regex.h: Fix white space to match
75564         what GNU indent does.
75565
75566 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75567
75568         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75569         apparently Emacs's Unicode mode got confused before my 2003-08-05
75570         checkin.
75571
75572 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75573
75574         * m4/extensions.m4: New file.
75575         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75576         Require gl_USE_SYSTEM_EXTENSIONS.
75577         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75578         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75579
75580 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75581
75582         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75583         * modules/extensions, modules/gnu-source: New files.
75584         * modules/timespec, modules/unlocked-io: Depend on extensions.
75585
75586 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75587
75588         * modules/restrict: New file.
75589         * MODULES.html.sh (func_all_modules): Add restrict.
75590         * modules/regex: Depend on restrict.
75591
75592 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75593
75594         * m4/restrict.m4: New file.
75595         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75596
75597 2003-08-07  Bruno Haible  <bruno@clisp.org>
75598
75599         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75600         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75601
75602 2003-08-07  Bruno Haible  <bruno@clisp.org>
75603
75604         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75605         makes the module 'getndelim2' compatible with the module 'getline'.
75606
75607 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75608
75609         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75610         byte with "\201" to avoid glitches when editing that source file
75611         with multi-gnome-terminal.
75612
75613 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75614
75615         * lib/bumpalloc.h: Remove.
75616
75617 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75618
75619         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75620         * modules/bumpalloc: Remove.
75621
75622 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75623
75624         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75625         GNU coding style.
75626
75627         Merge from coreutils.
75628         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75629         1. From glibc.
75630         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75631         from Karl Berry, implemented by Jim Meyering.
75632         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75633         from Dmitry V. Levin.
75634         Remove anachronistic cast of xrealloc.
75635         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75636         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75637         type. Otherwise, it wouldn't compile with at least /bin/cc on
75638         ymp-cray-unicos9.0.2.X.
75639         Combine two mostly-identical uses of alloca into one.
75640         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75641
75642 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75643
75644         [From Emacs.]
75645
75646         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75647         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75648         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75649         obsolete NLIST_NAME_UNION.
75650         [__GNU__]: Undef BSD and FSCALE.
75651         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75652
75653 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75654
75655         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75656         an enum type, so that it's guaranteed to promote to int.  See:
75657         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75658
75659 2003-08-03  Karl Berry  <karl@gnu.org>
75660
75661         * config/depcomp: update from automake.
75662
75663 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75664
75665         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75666         (strerror): Don't assume that a printable int fits in 14 bytes.
75667
75668 2003-07-31  Bruno Haible  <bruno@clisp.org>
75669
75670         * modules/getpass-gnu: New file.
75671         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75672
75673 2003-07-31  Bruno Haible  <bruno@clisp.org>
75674
75675         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75676
75677 2003-07-24  Karl Berry  <karl@gnu.org>
75678
75679         * config/missing: update from automake.
75680
75681 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75682             Bruno Haible  <bruno@clisp.org>
75683
75684         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75685         * lib/getline.c (getline, getdelim): Likewise.
75686         Remove _GNU_SOURCE define; now it's defined in config.h through
75687         m4/getline.m4.
75688
75689 2003-07-23  Karl Berry  <karl@gnu.org>
75690
75691         * config/config.sub: update from prep.
75692
75693 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75694
75695         * modules/xalloc (Depends-on): Add exitfail.
75696         * modules/xmemcoll: Likewise.
75697
75698 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75699
75700         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75701         over-parenthesization in macros.
75702
75703         Sync with coreutils.
75704
75705         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75706         required by C99.
75707
75708         Use `exit_failure' for xalloc and xmemcoll instead of their own
75709         private exit-failure variables.
75710         * lib/xalloc.h (xalloc_exit_failure): Remove.
75711         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75712         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75713         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75714         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75715         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75716
75717 2003-07-20  Jim Meyering  <jim@meyering.net>
75718
75719         * modules/closeout (Depends-on): Add exitfail.
75720         Suggestion from Bruno Haible.
75721
75722 2003-07-19  Karl Berry  <karl@gnu.org>
75723
75724         * config/config.sub: update from prep.
75725
75726 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75727
75728         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75729         Remove.
75730         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75731         to test that it can stand by itself.  Include "exitfail.h".
75732         Clients should set exit_failure instead.
75733         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75734
75735 2003-07-18  Bruno Haible  <bruno@clisp.org>
75736
75737         * modules/getndelim2: New file.
75738         * modules/getline: Share files with module getndelim2.
75739         * modules/getnline: Depend on getndelim2 instead of sharing files with
75740         it. Add getnline.c to lib_SOURCES.
75741         * MODULES.html.sh (func_all_modules): Add getndelim2.
75742
75743 2003-07-18  Bruno Haible  <bruno@clisp.org>
75744
75745         * m4/getndelim2.m4: New file.
75746         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75747         invoke gl_PREREQ_GETNDELIM2.
75748         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75749         gl_PREREQ_GETNDELIM2.
75750         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75751         gl_GETNDELIM2.
75752
75753 2003-07-18  Bruno Haible  <bruno@clisp.org>
75754
75755         * lib/getndelim2.h: New file.
75756         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75757         getndelim2.h.
75758         (getndelim2): Make non-static. Change return type to ssize_t.
75759         * lib/getline.h: Change argument names.
75760         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
75761         * lib/getnline.c: Include getndelim2.h.
75762
75763 2003-07-18  Andreas Schwab  <schwab@suse.de>
75764
75765         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
75766
75767 2003-07-17  Karl Berry  <karl@gnu.org>
75768
75769         * config/config.sub: update from prep.
75770
75771 2003-07-17  Bruno Haible  <bruno@clisp.org>
75772
75773         * modules/getnline: New file.
75774         * modules/getline: Add lib/getndelim2.c to source file list.
75775         * MODULES.html.sh (func_all_modules): Add getnline.
75776
75777 2003-07-17  Bruno Haible  <bruno@clisp.org>
75778
75779         * m4/getnline.m4: New file.
75780
75781 2003-07-17  Bruno Haible  <bruno@clisp.org>
75782
75783         * m4/Makefile.am.in: Remove file.
75784         * m4/Makefile.am: Remove file.
75785         * m4/Makefile.in: Remove file.
75786
75787 2003-07-17  Bruno Haible  <bruno@clisp.org>
75788
75789         * lib/getnline.h: New file.
75790         * lib/getnline.c: New file.
75791         * lib/getndelim2.c: New file, extracted from getline.c.
75792         (getndelim2): Renamed from getdelim2, with added nmax argument.
75793         * lib/getline.c: Include getndelim2.c.
75794         (getdelim2): Moved out to getndelim2.c.
75795         (getline, getdelim): Update.
75796
75797 2003-07-17  Bruno Haible  <bruno@clisp.org>
75798
75799         * lib/Makefile.am: Remove file.
75800         * lib/Makefile.in: Remove file.
75801
75802 2003-07-17  Bruno Haible  <bruno@clisp.org>
75803
75804         * configure.in: Remove file.
75805         * Makefile.in: Remove file.
75806
75807 2003-07-17  Bruno Haible  <bruno@clisp.org>
75808
75809         * MODULES.html.sh: Put the </BODY> right before </HTML>.
75810
75811 2003-07-16  Karl Berry  <karl@gnu.org>
75812
75813         * config/srclist-update: was running fixlicense twice, which caused
75814                 texinfo.tex to be nullified for some reason.  Simplify,
75815                 $gplsrc is no longer needed as far as I can see?
75816
75817 2003-07-16  Jim Meyering  <jim@meyering.net>
75818
75819         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
75820
75821 2003-07-15  Paul Eggert  <eggert@twinsun.com>
75822
75823         * config/srclist.txt: Get the following files from gettext-runtime/intl
75824         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
75825         ref-del.sin.  From Bruno Haible.
75826         * config/srclist-update (fixfile): Change grep pattern again, since the
75827         previous fix didn't work (there was another trailing $).  Use
75828         '[$]' to escape the $s.
75829
75830 2003-07-15  Karl Berry  <karl@gnu.org>
75831
75832         * lib/vasnprintf.c: update from gettext.
75833
75834 2003-07-15  Karl Berry  <karl@gnu.org>
75835
75836         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
75837         gets expanded when surrounded by '$'.
75838
75839 2003-07-15  Jim Meyering  <jim@meyering.net>
75840
75841         * modules/save-cwd: Don't depend on error.  From Derek Price.
75842
75843 2003-07-15  Jim Meyering  <jim@meyering.net>
75844
75845         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
75846
75847 2003-07-14  Simon Josefsson  <jas@extundo.com>
75848
75849         * modules/mempcpy: New file.
75850         * MODULES.html.sh (func_all_modules): Add mempcpy.
75851
75852 2003-07-14  Simon Josefsson  <jas@extundo.com>
75853
75854         * m4/mempcpy.m4: New file.
75855
75856 2003-07-14  Simon Josefsson  <jas@extundo.com>
75857
75858         * lib/mempcpy.h: New file.
75859         * lib/mempcpy.c: New file.
75860
75861 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75862
75863         * modules/getdate, modules/posixtm: Depend on mktime.
75864
75865 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75866
75867         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
75868         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
75869         unicodeio.c, unicodeio.h, unlocked-io.h:
75870         Switch from LGPL to GPL.
75871
75872 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75873
75874         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
75875         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
75876         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
75877         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
75878         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
75879         updated automatically by ../config/srclist-update.  This changes
75880         their license from LPGL to GPL.
75881
75882 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75883
75884         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
75885         assumed to refer to the root of the most recent stable gettext version.
75886         * config/srclistvars.sh: Add defaults for eggert.
75887         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
75888         Match "This program" as well as "The program".  This is needed
75889         for gettext.
75890
75891 2003-07-14  Jim Meyering  <jim@meyering.net>
75892
75893         Don't emit diagnostics.  Let callers do that.
75894         * lib/save-cwd.c: Don't include "error.h".
75895         (save_cwd): Don't call error.  Ensure that errno is valid
75896         when returning nonzero.
75897
75898         * lib/save-cwd.h (restore_cwd): Update prototype.
75899         * lib/save-cwd.c (restore_cwd): Remove two parameters.
75900         Simplify.  Don't call error upon failure.  Let callers do that.
75901         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
75902         when auditing is enabled.  But don't bother updating the #if.
75903
75904 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
75905
75906         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
75907         it breaks C++ compilation.
75908         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
75909
75910 2003-07-10  Simon Josefsson  <jas@extundo.com>
75911
75912         * modules/strchrnul (Makefile.am): Add strchrnul.h.
75913
75914 2003-07-10  Jim Meyering  <jim@meyering.net>
75915
75916         * m4/clock_time.m4: Remove trailing blank.
75917         * m4/intmax_t.m4: Likewise.
75918
75919 2003-07-10  Jim Meyering  <jim@meyering.net>
75920
75921         * lib/vasnprintf.c: Remove trailing blanks.
75922         Make cpp indentation consistent.
75923
75924 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75925
75926         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
75927         posixver.c, strftime.c, strnlen.c, strverscmp.c:
75928         Switch from LGPL to GPL.
75929
75930 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75931
75932         * config/srclist.txt: Sort sublists.  Add
75933         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
75934         that differ from gnulib for one reason or another; we'd like this list
75935         to be smaller but for now let's document what we have.
75936
75937 2003-07-08  Paul Eggert  <eggert@twinsun.com>
75938
75939         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
75940         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
75941         and sweeter "eval x=$x".
75942         * config/srclist.txt: Get lib/argp* from glibc.
75943
75944 2003-07-07  Paul Eggert  <eggert@twinsun.com>
75945
75946         * lib/mktime.c: Fix some boundary cases and remove need for floating
75947         point.
75948
75949         Issue a compile-time diagnostic if time_t is floating point, or if
75950         two's complement arithmetic is not in effect, or if arithmetic
75951         right shift does not propagate the sign.  These assumptions were
75952         all in the original code but they weren't checked.
75953
75954         (TIME_T_MIDPOINT, verify): New macros.
75955         (__isleap): Remove; it has integer overflow problems.
75956         (leapyear): New function, without those problems.
75957         (ydhms_tm_diff): Remove; splitting into two parts.
75958         (ydhms_diff): New function, containing the arithmetic part of
75959         the old ydhms_tm_diff function.  Issue a compile-time
75960         diagnostic if we are not using C99 integer division.
75961         Avoid casts when possible.
75962         (guess_time_tm): New function, containing the checking part of
75963         the old ydhms_tm_diff function.  Return the new value, rather than
75964         the difference between it and the old.  Accept a new argument T
75965         so that *T specifies the old value.  Check for overflow in the result.
75966
75967         (__mktime_internal): Use a time_t offset, not a long int offset.
75968         This undoes the 2003-06-04 change, which is no longer needed now
75969         that we have better overflow checking.
75970         (localtime_offset): Likewise.
75971
75972         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75973         and long are 64-bit but int is only 32-bit.
75974         (ydhms_diff): Use long int to store year1 and yday1.
75975         Issue a compile-time diagnostic if long int is not wide enough.
75976
75977         (__mktime_internal): Use long int to store adjusted year and yday.
75978         Use plain C rather than preprocessor commands, if that doesn't
75979         affect efficiency.
75980         Check for overflow (and try to repair) after each probe
75981         rather than checking only at the very end.  This avoids some bugs
75982         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75983         does not equal GMT offset at maximum time).
75984         Use integer to check for overflow rather than floating point; this
75985         is more portable to non-IEEE hosts, and is a tad faster.
75986         When we detect that we are oscillating between two values,
75987         don't check whether tm_isdst has the requested value, since
75988         we already know the answer.  When tm_isdst has the wrong value,
75989         use a different heuristic to find the right one, based on the
75990         extreme values actually observed in practice in tz2003a,
75991         rather than the (overly optimistic) "previous 3 calendar quarters".
75992
75993         (not_equal_tm, print_tm, check_result): Use "const T" rather than
75994         "T const" to accommodate glibc style.
75995         (check_result): Use less-confusing report format.  "long" -> "long int.
75996         (main): Likewise.
75997         Don't loop if the iteration overflows time_t.
75998         Allow a negative step in the iteration.
75999
76000 2003-07-06  Karl Berry  <karl@gnu.org>
76001
76002         * config/depcomp: update from automake.
76003         * config/config.sub: update from prep.
76004
76005 2003-07-03  Karl Berry  <karl@gnu.org>
76006
76007         * config/config.guess: update from prep.
76008
76009 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76010
76011         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
76012         xreadlink.c now includes it unconditionally.
76013
76014 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76015
76016         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
76017         having it depend on HAVE_SYS_TYPES_H.
76018
76019 2003-07-01  Bruno Haible  <bruno@clisp.org>
76020
76021         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
76022         <sys/types.h> should be sufficient.
76023         Reported by Paul Eggert.
76024
76025 2003-06-26  Karl Berry  <karl@gnu.org>
76026
76027         * config/depcomp: update from automake.
76028
76029 2003-06-26  Bruno Haible  <bruno@clisp.org>
76030
76031         * modules/human: Depend on module stdbool.
76032
76033 2003-06-25  Bruno Haible  <bruno@clisp.org>
76034
76035         * modules/readlink: New file.
76036         * modules/xreadlink: Depend on it.
76037         * MODULES.html.sh (func_all_modules): Add readlink.
76038
76039 2003-06-25  Bruno Haible  <bruno@clisp.org>
76040
76041         * m4/readlink.m4: New file.
76042
76043 2003-06-25  Bruno Haible  <bruno@clisp.org>
76044
76045         * lib/readlink.c: New file.
76046
76047 2003-06-22  Karl Berry  <karl@gnu.org>
76048
76049         * config/srclist.txt: update mkinstalldirs from automake.
76050         * config/mkinstalldirs: update.
76051
76052 2003-06-22  Bruno Haible  <bruno@clisp.org>
76053
76054         Portability to mingw32.
76055         * m4/ssize_t.m4: New file, from GNU gettext.
76056         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76057         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
76058
76059 2003-06-22  Bruno Haible  <bruno@clisp.org>
76060
76061         * modules/safe-read: Add m4/ssize_t.m4.
76062         * modules/xreadlink: Add m4/ssize_t.m4.
76063
76064 2003-06-20  Bruno Haible  <bruno@clisp.org>
76065
76066         Assume C89, so PARAMS isn't needed.
76067         * lib/unicodeio.h (PARAMS): Remove.
76068         * lib/unicodeio.c: Don't use PARAMS.
76069
76070 2003-06-18  Karl Berry  <karl@gnu.org>
76071
76072         * config/config.{guess,sub}: update from prep.
76073
76074 2003-06-18  Jim Meyering  <jim@meyering.net>
76075
76076         Merge changes from coreutils.
76077         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
76078         Remove explicit declarations of xmalloc and realloc.
76079         Include xalloc.h.
76080         (read_utmp): Remove anachronistic cast of xmalloc.
76081
76082 2003-06-17  Paul Eggert  <eggert@twinsun.com>
76083
76084         Assume C89, so PARAMS isn't needed.
76085         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
76086         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76087         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76088         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76089         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76090         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76091         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76092         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76093         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76094         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76095         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76096         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76097         no longer needed. Anyway, config.h should always be included before any
76098         other file.
76099
76100 2003-06-11  Simon Josefsson  <jas@extundo.com>
76101
76102         * modules/sysexits: New file.
76103         * MODULES.html.sh (func_all_modules): Add sysexits.
76104
76105 2003-06-11  Simon Josefsson  <jas@extundo.com>
76106
76107         * lib/sysexit_.h: New file.
76108
76109 2003-06-11  Derek Price  <derek@ximbiot.com>
76110
76111         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76112         necessary.
76113
76114 2003-06-11  Bruno Haible  <bruno@clisp.org>
76115
76116         * m4/sysexits.m4: New file.
76117
76118 2003-06-10  Simon Josefsson  <jas@extundo.com>
76119
76120         * lib/argp.h: New file, from glibc.
76121         * lib/argp-ba.c: New file, from glibc.
76122         * lib/argp-eexst.c: New file, from glibc.
76123         * lib/argp-fmtstream.c: New file, from glibc.
76124         * lib/argp-fmtstream.h: New file, from glibc.
76125         * lib/argp-fs-xinl.c: New file, from glibc.
76126         * lib/argp-help.c: New file, from glibc.
76127         * lib/argp-namefrob.h: New file, from glibc.
76128         * lib/argp-parse.c: New file, from glibc.
76129         * lib/argp-pv.c: New file, from glibc.
76130         * lib/argp-pvh.c: New file, from glibc.
76131         * lib/argp-xinl.c: New file, from glibc.
76132
76133 2003-06-10  Simon Josefsson  <jas@extundo.com>
76134
76135         * modules/strchrnul: New file.
76136
76137 2003-06-10  Simon Josefsson  <jas@extundo.com>
76138
76139         * modules/argp: New file.
76140
76141 2003-06-10  Simon Josefsson  <jas@extundo.com>
76142
76143         * m4/strchrnul.m4: New file.
76144
76145 2003-06-10  Simon Josefsson  <jas@extundo.com>
76146
76147         * lib/strchrnul.h: New file.
76148         * lib/strchrnul.c: New file.
76149
76150 2003-06-10  Bruno Haible  <bruno@clisp.org>
76151
76152         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76153
76154 2003-06-07  Karl Berry  <karl@gnu.org>
76155
76156         * config/config.{guess,sub}: update from prep.
76157
76158 2003-06-07  Jim Meyering  <jim@meyering.net>
76159
76160         * modules/strtod: Use $(...) notation, not @...@ for
76161         AC_REPLACE'd variables.
76162         * modules/localcharset: Likewise.
76163
76164 2003-06-07  Jim Meyering  <jim@meyering.net>
76165
76166         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76167         in place of my name in the copyright comment.
76168         Remove definition and uses of __P.
76169
76170         From coreutils.
76171         * lib/stat.c: Don't declare xmalloc explicitly.
76172         Instead, include "xalloc.h".
76173         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76174         xrealloc, and xcalloc return values.
76175         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76176         Improve comment.
76177         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76178
76179 2003-06-07  Bruno Haible  <bruno@clisp.org>
76180
76181         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76182         avoid AC_CONFIG_LINKS.
76183         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76184         fnmatch.h, to avoid AC_CONFIG_LINKS.
76185         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76186
76187 2003-06-07  Bruno Haible  <bruno@clisp.org>
76188
76189         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76190         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76191         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76192         directory.
76193         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76194         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76195         directory.
76196
76197 2003-06-06  Jim Meyering  <jim@meyering.net>
76198
76199         Merge from coreutils.
76200         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76201         Consolidate declarations and initializations of *_base* locals.
76202
76203         Merge from coreutils.
76204         This avoids a core dump on systems without GNU putenv,
76205         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76206         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76207         (unsetenv): New static function, from GNU libc.
76208         (rpl_putenv): Use it.
76209
76210         * lib/modechange.c: Remove trailing blanks.
76211
76212         Merge from coreutils.
76213         * lib/fsusage.c: Remove declaration of statfs.
76214         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76215
76216         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76217
76218 2003-06-06  Jim Meyering  <jim@meyering.net>
76219
76220         * lib/stdbool_.h: Renamed from stdbool.h.in.
76221
76222 2003-06-06  Jim Meyering  <jim@meyering.net>
76223             Bruno Haible  <bruno@clisp.org>
76224
76225         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76226         Adjust Makefile.am snippet not to redirect directly to target.
76227         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76228
76229 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76230
76231         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76232         mismatch, look in future quarters as well as past.  This fixes a
76233         bug when processing fall-backwards gaps immediately after a long
76234         period of daylight-saving time.
76235
76236         * lib/mktime.c: Assume freestanding C89 or better.
76237         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76238         (__P): Remove; not used.
76239         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76240         (mktime, not_equal_tm, print_tm, check_result,
76241         main): Use prototypes.  Use const * where appropriate.
76242         (main): Fix typo in testing code that uncovered by above changes.
76243         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76244
76245 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76246
76247         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76248         locale.h, localeconv.  This merges changes from coreutils.
76249
76250         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76251         It can be removed after the next Autoconf is released.
76252         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76253         needed.
76254
76255 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76256
76257         * lib/mktime.c: Fix Debian bug 177940
76258         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76259         (localtime_offset): Now long int, not time_t, because we want it
76260         to be guaranteed to be signed.  All uses changed.
76261         (__mktime_internal): If overflow would occur when adding offset,
76262         don't add it.
76263
76264         Merge 'human' changes from coreutils.  Rewrite to support
76265         locale-specific notations like thousands separators.
76266         * lib/human.c: Simplify authorship notice.
76267         Include human.h immediately after config.h.
76268         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76269         <limits.h>: Do not include, since human.h does.
76270         (SIZE_MAX, UINTMAX_MAX): New macros.
76271         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76272         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76273         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76274         (power_letter): Renamed from suffixes.
76275         (generate_suffix_backwards): Remove.
76276         (adjust_value): Now takes int style (because of human.h changes)
76277         and long double value (for greater precision on some platforms).
76278         (group_number): New function.
76279         (human_readable): Use it.  Use integer options, not enum.
76280         Put the options before the sizes in the arg list.
76281         Support all the new options.
76282         The old human_readable function has been removed;
76283         use inttostr.h instead.
76284         (human_readable, default_block_size, humblock):
76285         Use uintmax_t, not int, for block sizes.
76286         (human_readable_inexact, block_size_types): Remove.
76287         (block_size_opts): New constant.
76288         (human_options): Renamed from human_block_size, with new signature
76289         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76290         * lib/human.h: Add copyright and authorship notice.
76291         Include <limits.h> and <stdbool.h> unconditionally.
76292         (PARAMS): Remove.  All uses removed.
76293         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76294         (enum human_inexact_style): Remove tag; now a nameless enum.
76295         (human_floor, human_ceiling, human_round_to_even): Now have
76296         values 2, 0, 1 rather than -1, 1, 0.
76297         (human_group_digits, human_suppress_point_zero, human_autoscale,
76298         human_base_1024, human_SI, human_B): New constants.
76299         (human_readable_inexact, human_block_size): Remove.
76300         (human_readable): Size args are now uintmax_t, not int.
76301         (human_options): New decl.
76302
76303         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76304         unnecessary now that we assume C89 or better.  This change
76305         imported from coreutils.
76306
76307         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76308         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76309         in the 2003-05-30 sync from glibc.
76310
76311         .h files should stand alone, but we shouldn't include <sys/types.h>
76312         if we can get away with just <stddef.h>.
76313
76314         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76315         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76316         rather than <sys/types.h>, as we merely need size_t.
76317         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76318         to get size_t.
76319         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76320         Include <stdio.h>, to get FILE.
76321         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76322         memcasecmp.h has included <stddef.h> and all we need is size_t.
76323         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76324         our interface, instead of including <sys/types.h>
76325
76326 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76327
76328         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76329         now, as glibc mktime is buggy on non-glibc systems.
76330
76331 2003-06-03  Karl Berry  <karl@gnu.org>
76332
76333         * config/config.sub: update from prep.
76334
76335 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76336
76337         [from coreutils]
76338         Fix some minor time-related bugs with POSIX time arguments.
76339         Some valid time stamps were being rejected (notably -1, and
76340         time stamps before 1900 on 64-bit hosts).  And some invalid
76341         time stamps were being accepted, e.g. September 31.
76342
76343         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76344         that we can return (time_t) -1 successfully.
76345         * lib/posixtm.c: Likewise.
76346         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76347         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76348         (t): Remove static var.
76349         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76350         of static var.  All uses changed.
76351         (year): Do not reject years before 1900; they can occur with
76352         64-bit time_t.
76353         (posix_time_parse): Do not check for out-of-range components;
76354         that is now the caller's responsibility, since our checks were
76355         only approximations.
76356         (posixtime): Use mktime to check for out-of-range components,
76357         since it knows them exactly.
76358         If mktime returns (time_t) -1, check whether an error actually occurred
76359         by invoking localtime on -1.
76360         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76361         posixtime failures better.
76362         Improve the test data (in comments only).
76363
76364 2003-06-02  Karl Berry  <karl@gnu.org>
76365
76366         * config/mkinstalldirs (version): new variable.
76367         (--version): new option.
76368         (usage): improve message.
76369
76370 2003-05-30  Karl Berry  <karl@gnu.org>
76371
76372         * lib/mktime.c: update from libc.
76373
76374 2003-05-30  Bruno Haible  <bruno@clisp.org>
76375
76376         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76377         * config/config.rpath: Upgrade to gettext-0.12.1.
76378
76379 2003-05-30  Bruno Haible  <bruno@clisp.org>
76380
76381         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76382         * m4/nls.m4: New file, from gettext-0.12.1.
76383         * m4/po.m4: New file, from gettext-0.12.1.
76384         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76385
76386 2003-05-30  Bruno Haible  <bruno@clisp.org>
76387
76388         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76389         * lib/localcharset.h: Likewise.
76390         * lib/localcharset.c: Likewise.
76391
76392 2003-05-29  Karl Berry  <karl@gnu.org>
76393
76394         * config/config.rpath: update from gettext.
76395
76396 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76397
76398         Assume the headers required for C89 freestanding compilers.
76399         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76400         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76401         * m4/human.m4 (gl_HUMAN): Likewise.
76402         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76403         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76404         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76405         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76406         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76407         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76408
76409 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76410
76411         Assume the headers required for C89 freestanding compilers.
76412         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76413         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76414         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76415         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76416         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76417         define, since <limits.h> is guaranteed to do that.
76418         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76419         * lib/exclude.c: Include <stdbool.h> unconditionally.
76420         * lib/tempname.c: Include <stddef.h> unconditionally.
76421         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76422         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76423         <stddef.h> does that.
76424         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76425         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76426         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76427         needed.
76428         * lib/xstrtol.c: Likewise.
76429         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76430         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76431
76432         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76433         warnings on some platforms.
76434
76435         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76436         arbitrarily.
76437
76438 2003-05-26  Jim Meyering  <jim@meyering.net>
76439
76440         Merge in a change from coreutils:
76441         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76442         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76443         that condition, rather than `-1' which is slightly misleading.
76444         Change the name of the cache variable to have the gl_ prefix.
76445         Prompted by a patch from Richard Dawe for DJGPP.
76446
76447 2003-05-24  Karl Berry  <karl@gnu.org>
76448
76449         * config/config.guess: update from prep.
76450
76451 2003-05-22  Karl Berry  <karl@gnu.org>
76452
76453         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76454
76455 2003-05-20  Karl Berry  <karl@gnu.org>
76456
76457         * config/config.guess: update from prep.
76458
76459 2003-05-18  Karl Berry  <karl@gnu.org>
76460
76461         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76462         might actually be set by the user.
76463
76464         * config/depcomp, install-sh, mdate-sh: update from automake.
76465
76466 2003-05-17  Bruno Haible  <bruno@clisp.org>
76467
76468         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76469         invalid expansion for AC_EGREP_CPP.
76470         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76471         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76472         Suggested by Akim Demaille <akim@epita.fr> in
76473         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76474
76475 2003-05-12  Jim Meyering  <jim@meyering.net>
76476
76477         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76478         the space-padded-by-default conversion specifiers, %e, %k, %l.
76479
76480 2003-05-12  Bruno Haible  <bruno@clisp.org>
76481
76482         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76483         the string is longer than 4 KB.
76484
76485 2003-05-11  Karl Berry  <karl@gnu.org>
76486
76487         * config/config.{guess,sub}: update from prep.
76488
76489 2003-05-09  Bruno Haible  <bruno@clisp.org>
76490
76491         * modules/error: Add m4/strerror_r.m4 to file list.
76492
76493 2003-05-03  Bruno Haible  <bruno@clisp.org>
76494
76495         Upgrade to Unicode-4.0.
76496         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76497         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76498         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76499         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76500         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76501         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76502         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76503         Change width of U+E0100..U+E01EF from 1 to 0.
76504
76505 2003-04-25  Jim Meyering  <jim@meyering.net>
76506
76507         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76508         of type size_t, not int.
76509
76510 2003-04-25  Bruno Haible  <bruno@clisp.org>
76511
76512         * lib/copy-file.c: Include <stddef.h>, for size_t.
76513
76514 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76515
76516         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76517         code which expansion is under static control.  Patch imported from
76518         Akim Demaille's patch to Bison; see
76519         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76520
76521 2003-04-14  Bruno Haible  <bruno@clisp.org>
76522
76523         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76524
76525 2003-04-11  Jim Meyering  <jim@meyering.net>
76526
76527         Merge changes from Coreutils.
76528
76529         2003-03-22  Jim Meyering  <jim@meyering.net>
76530
76531         * lib/strftime.c (widen): Cast alloca return value to proper type.
76532
76533         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76534
76535         From GNU libc.
76536         * lib/strftime.c (my_strftime): Handle very large width
76537         specifications for numeric values correctly.  Improve checks for
76538         overflow.
76539
76540         2003-01-19  Jim Meyering  <jim@meyering.net>
76541
76542         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76543         definitions.
76544         (nl_get_alt_digit) [! defined my_strftime]: Define.
76545         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76546         _nl_get_alt_digit and _nl_get_walt_digit.
76547
76548         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76549         libc. These changes have no effect outside of _LIBC.
76550
76551 2003-04-10  Bruno Haible  <bruno@clisp.org>
76552
76553         * modules/findprog: New file.
76554         * MODULES.html.sh (func_all_modules): Add it.
76555
76556 2003-04-10  Bruno Haible  <bruno@clisp.org>
76557
76558         * m4/findprog.m4: New file.
76559         * m4/eaccess.m4: New file.
76560
76561 2003-04-10  Bruno Haible  <bruno@clisp.org>
76562
76563         * lib/findprog.h: New file, from GNU gettext.
76564         * lib/findprog.c: New file, from GNU gettext.
76565
76566 2003-04-05  Jim Meyering  <jim@meyering.net>
76567
76568         Merge changes from Coreutils.
76569
76570         * lib/exclude.h (PARAMS): Remove definition and uses.
76571         * lib/exclude.c: Remove uses of `PARAMS'.
76572
76573         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76574         Add test-cases for DOS filenames. Declare program_name.
76575         (main): Set up program_name.  Patch by Rich Dawe.
76576
76577         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76578         error from mntctl.
76579         Use mntctl's return value to drive the entry-processing loop, since
76580         we can't rely on the value of the vmt_length member in the last
76581         entry.  On some systems doing so could result in exhausting
76582         virtual memory.  Based in part on a patch from Mike Jetzer.
76583
76584 2003-04-04  Bruno Haible  <bruno@clisp.org>
76585
76586         * modules/linebreak: New file.
76587         * MODULES.html.sh (func_all_modules): Add it.
76588
76589 2003-04-04  Bruno Haible  <bruno@clisp.org>
76590
76591         * m4/linebreak.m4: New file.
76592
76593 2003-04-04  Bruno Haible  <bruno@clisp.org>
76594
76595         * lib/linebreak.h: New file, from GNU gettext.
76596         * lib/linebreak.c: New file, from GNU gettext with slight
76597         modifications.
76598         * lib/lbrkprop.h: New file, from GNU gettext.
76599
76600 2003-04-03  Bruno Haible  <bruno@clisp.org>
76601
76602         * modules/utf8-ucs4: New file.
76603         * modules/utf16-ucs4: New file.
76604         * modules/ucs4-utf8: New file.
76605         * modules/ucs4-utf16: New file.
76606         * MODULES.html.sh (func_all_modules): Add them.
76607
76608 2003-04-03  Bruno Haible  <bruno@clisp.org>
76609
76610         * m4/utf-ucs4.m4: New file.
76611         * m4/ucs4-utf.m4: New file.
76612
76613 2003-04-03  Bruno Haible  <bruno@clisp.org>
76614
76615         * lib/utf8-ucs4.h: New file, from GNU gettext.
76616         * lib/utf16-ucs4.h: New file, from GNU gettext.
76617         * lib/ucs4-utf8.h: New file, from GNU gettext.
76618         * lib/ucs4-utf16.h: New file, from GNU gettext.
76619
76620 2003-04-02  Bruno Haible  <bruno@clisp.org>
76621
76622         * modules/binary-io: New file.
76623         * MODULES.html.sh (func_all_modules): Add it.
76624
76625 2003-04-02  Bruno Haible  <bruno@clisp.org>
76626
76627         * lib/binary-io.h: New file, from GNU gettext.
76628
76629 2003-04-01  Bruno Haible  <bruno@clisp.org>
76630
76631         * modules/pathname: New file.
76632         * MODULES.html.sh (func_all_modules): Add it.
76633
76634 2003-04-01  Bruno Haible  <bruno@clisp.org>
76635
76636         * lib/pathname.h: New file, from GNU gettext.
76637         * lib/concatpath.c: New file, from GNU gettext.
76638
76639 2003-03-30  Bruno Haible  <bruno@clisp.org>
76640
76641         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76642
76643 2003-03-30  Bruno Haible  <bruno@clisp.org>
76644
76645         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76646         function chown() doesn't exist.
76647
76648 2003-03-28  Bruno Haible  <bruno@clisp.org>
76649
76650         * modules/copy-file: New file.
76651         * MODULES.html.sh (func_all_modules): Add it.
76652
76653 2003-03-28  Bruno Haible  <bruno@clisp.org>
76654
76655         * m4/copy-file.m4: New file.
76656
76657 2003-03-28  Bruno Haible  <bruno@clisp.org>
76658
76659         * lib/copy-file.h: New file, from GNU gettext.
76660         * lib/copy-file.c: New file, from GNU gettext.
76661
76662 2003-03-18  Jim Meyering  <jim@meyering.net>
76663
76664         * lib/quote.c (quote_n): Fix typo in comment.
76665
76666 2003-03-18  Bruno Haible  <bruno@clisp.org>
76667
76668         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76669         checking.
76670         * m4/onceonly_2_57.m4: Likewise.
76671
76672 2003-03-17  Bruno Haible  <bruno@clisp.org>
76673
76674         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76675         (m4_quote): Remove macro.
76676         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76677
76678 2003-03-14  Jim Meyering  <jim@meyering.net>
76679
76680         Merge changes from Coreutils.
76681         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76682         to be const, in order to avoid warnings.
76683         (obstack_room): Likewise.
76684         (obstack_empty_p): Likewise.
76685
76686 2003-03-14  Bruno Haible  <bruno@clisp.org>
76687
76688         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76689         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76690
76691 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76692
76693         Merge changes from Bison.
76694         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76695         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76696         when compiling Bison 1.875's `bitset bset = obstack_alloc
76697         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76698         * lib/hash.c: Include <stdbool.h> unconditionally.
76699
76700 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76701
76702         * m4/onceonly.m4 (m4_quote): New macro.
76703         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76704         Quote AC_FOREACH variable-expansions properly.
76705
76706 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76707
76708         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76709
76710 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76711
76712         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76713         Reported by Bruce Becker; see:
76714         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76715
76716 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76717             Bruno Haible  <bruno@clisp.org>
76718
76719         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76720         Reported by John Hughes, see
76721         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76722
76723 2003-02-20  Bruno Haible  <bruno@clisp.org>
76724
76725         * MODULES.html.sh (func_all_modules): Add poll.
76726
76727 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76728
76729         * modules/poll: New file.
76730
76731 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76732
76733         * lib/poll_.h: New file.
76734         * lib/poll.c: New file.
76735
76736 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76737
76738         * m4/poll.m4: New file.
76739
76740 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76741
76742         * modules/mathl: New file.
76743
76744 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76745
76746         * lib/mathl.h: New file.
76747         * lib/acosl.c: New file.
76748         * lib/asinl.c: New file.
76749         * lib/atanl.c: New file.
76750         * lib/ceill.c: New file.
76751         * lib/cosl.c: New file.
76752         * lib/expl.c: New file.
76753         * lib/floorl.c: New file.
76754         * lib/frexpl.c: New file.
76755         * lib/ldexpl.c: New file.
76756         * lib/logl.c: New file.
76757         * lib/sincosl.c: New file.
76758         * lib/sinl.c: New file.
76759         * lib/sqrtl.c: New file.
76760         * lib/tanl.c: New file.
76761         * lib/trigl.c: New file.
76762         * lib/trigl.h: New file.
76763
76764 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76765
76766         * m4/mathl.m4: New file.
76767
76768 2003-02-18  Bruno Haible  <bruno@clisp.org>
76769
76770         * MODULES.html.sh (func_all_modules): Add mathl.
76771
76772 2003-02-17  Bruno Haible  <bruno@clisp.org>
76773
76774         * modules/mkdtemp: New module.
76775         * MODULES.html.sh (func_all_modules): Add it.
76776
76777 2003-02-17  Bruno Haible  <bruno@clisp.org>
76778
76779         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
76780
76781 2003-02-17  Bruno Haible  <bruno@clisp.org>
76782
76783         * lib/mkdtemp.h: New file, from GNU gettext.
76784         * lib/mkdtemp.c: New file, from GNU gettext.
76785
76786 2003-02-02  Jim Meyering  <jim@meyering.net>
76787
76788         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
76789         e.g. glibc-2.2.93.
76790
76791 2003-01-31  Bruno Haible  <bruno@clisp.org>
76792
76793         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
76794         'rpl_rename'.
76795         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
76796         'rpl_strnlen'.
76797         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
76798         'rpl_strtod'.
76799         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
76800         'rpl_utime'.
76801
76802 2003-01-31  Bruno Haible  <bruno@clisp.org>
76803
76804         * lib/rename.c: #undef rename before defining rpl_rename.
76805         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
76806
76807 2003-01-30  Bruno Haible  <bruno@clisp.org>
76808
76809         * modules/vasnprintf, modules/vasprintf: New modules.
76810         * MODULES.html.sh (func_all_modules): Add them.
76811
76812 2003-01-30  Bruno Haible  <bruno@clisp.org>
76813
76814         * m4/signed.m4: New file, from GNU gettext.
76815         * m4/longdouble.m4: New file, from GNU gettext.
76816         * m4/wchar_t.m4: New file, from GNU gettext.
76817         * m4/wint_t.m4: New file, from GNU gettext.
76818         * m4/vasnprintf.m4: New file.
76819         * m4/vasprintf.m4: New file.
76820
76821 2003-01-30  Bruno Haible  <bruno@clisp.org>
76822
76823         * lib/printf-args.h: New file, from GNU gettext.
76824         * lib/printf-args.c: New file, from GNU gettext.
76825         * lib/printf-parse.h: New file, from GNU gettext.
76826         * lib/printf-parse.c: New file, from GNU gettext.
76827         * lib/vasnprintf.h: New file, from GNU gettext.
76828         * lib/vasnprintf.c: New file, from GNU gettext.
76829         * lib/asnprintf.c: New file, from GNU gettext.
76830         * lib/vasprintf.h: New file, from GNU gettext with modifications.
76831         * lib/vasprintf.c: New file, from GNU gettext.
76832         * lib/asprintf.c: New file, from GNU gettext.
76833
76834 2003-01-29  Bruno Haible  <bruno@clisp.org>
76835
76836         * modules/stpncpy: New module.
76837         * MODULES.html.sh (func_all_modules): Add it.
76838
76839 2003-01-29  Bruno Haible  <bruno@clisp.org>
76840
76841         * m4/stpncpy.m4: New file.
76842
76843 2003-01-29  Bruno Haible  <bruno@clisp.org>
76844
76845         * lib/stpncpy.h: New file, from GNU gettext with modifications.
76846         * lib/stpncpy.c: New file, from GNU gettext with modifications.
76847
76848 2003-01-28  Bruno Haible  <bruno@clisp.org>
76849
76850         * modules/c-ctype: New module.
76851         * MODULES.html.sh (func_all_modules): Add it.
76852
76853 2003-01-28  Bruno Haible  <bruno@clisp.org>
76854
76855         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
76856         Paul Eggert.
76857         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
76858         Paul Eggert.
76859
76860 2003-01-27  Bruno Haible  <bruno@clisp.org>
76861
76862         * modules/xsetenv: New module.
76863         * MODULES.html.sh (func_all_modules): Add it.
76864
76865 2003-01-27  Bruno Haible  <bruno@clisp.org>
76866
76867         * lib/xsetenv.h: New file, from GNU gettext.
76868         * lib/xsetenv.c: New file, from GNU gettext.
76869
76870 2003-01-23  Jim Meyering  <jim@meyering.net>
76871
76872         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
76873         from working on systems without dirfd (at least Irix and OSF1/Tru64).
76874
76875 2003-01-23  Bruno Haible  <bruno@clisp.org>
76876
76877         * modules/minmax: New module.
76878         * MODULES.html.sh (func_all_modules): Add it.
76879
76880 2003-01-23  Bruno Haible  <bruno@clisp.org>
76881
76882         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
76883         Eggert.
76884
76885 2003-01-22  Bruno Haible  <bruno@clisp.org>
76886
76887         * modules/exit: New module.
76888         * MODULES.html.sh (func_all_modules): Add it.
76889
76890 2003-01-22  Bruno Haible  <bruno@clisp.org>
76891
76892         * lib/exit.h: New file, from GNU gettext.
76893
76894 2003-01-19  Bruno Haible  <bruno@clisp.org>
76895
76896         * gnulib-tool: Recognize option --extract-maintainer.
76897         (func_get_maintainer): New function.
76898         * modules/*: Add Maintainer entry.
76899
76900 2003-01-16  Jim Meyering  <jim@meyering.net>
76901
76902         * m4/regex.m4: The `regex' struct is both input and output.
76903         Initialize it before each use.  Patch by Tim Waugh.
76904
76905 2003-01-16  Bruno Haible  <bruno@clisp.org>
76906
76907         * MODULES.html.sh: Add a table of contents. Add the module name as
76908         leftmost column. Add hyperlinks.
76909
76910 2003-01-15  Bruno Haible  <bruno@clisp.org>
76911
76912         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
76913
76914 2003-01-15  Bruno Haible  <bruno@clisp.org>
76915
76916         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
76917         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
76918         suffix.
76919
76920 2003-01-15  Bruno Haible  <bruno@clisp.org>
76921
76922         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
76923
76924 2003-01-15  Bruno Haible  <bruno@clisp.org>
76925
76926         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
76927         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
76928
76929 2003-01-14  Jim Meyering  <jim@meyering.net>
76930
76931         * lib/same.c (same_name): Tweak a comment.
76932
76933 2003-01-14  Bruno Haible  <bruno@clisp.org>
76934
76935         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
76936         when a string comparison is sufficient.
76937
76938 2003-01-14  Bruno Haible  <bruno@clisp.org>
76939
76940         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
76941         'unsigned int'.
76942
76943 2003-01-14  Bruno Haible  <bruno@clisp.org>
76944
76945         * lib/hash-pjw.c: Add comment about low quality of this function.
76946
76947 2003-01-13  Bruno Haible  <bruno@clisp.org>
76948
76949         * modules/stpcpy: Distribute lib/stpcpy.h.
76950         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
76951
76952 2003-01-13  Bruno Haible  <bruno@clisp.org>
76953
76954         * modules/*: Add a description.
76955         * modules/strpbrk: Fix Makefile.am snippet.
76956         * modules/strtoimax: Fix dependencies.
76957         * modules/strtoumax: Likewise.
76958
76959 2003-01-13  Bruno Haible  <bruno@clisp.org>
76960
76961         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76962         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76963         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76964
76965 2003-01-13  Bruno Haible  <bruno@clisp.org>
76966
76967         * gnulib-tool (func_create_testdir): Store config/* files in the main
76968         directory.
76969         * config.rpath: Move to ...
76970         * config/config.rpath: ... here.
76971         * modules/gettext: Contains config/config.rpath, not config.rpath.
76972         * modules/iconv: Likewise.
76973
76974 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76975
76976         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76977         to avoid collisions with libcurses and libreadline.
76978
76979         * m4/getstr.m4: Remove.
76980         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
76981
76982 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76983
76984         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76985         to avoid collisions with libcurses and libreadline.
76986
76987         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76988         * lib/getstr.h, getstr.c: Remove.
76989         * lib/getline.c: Include "getline.h", to check interface.
76990         Move body of old getstr.c here: this defines MIN_CHUNK and
76991         declares getdelim2, which is renamed from getstr.
76992         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76993
76994         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
76995         All uses changed.
76996         * lib/linebuffer.h: Likewise.
76997         (readline): Remove backward-compatibility macro.
76998
76999 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77000
77001         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77002         to avoid collisions with libcurses and libreadline.
77003         * getstr: Remove.
77004         * MODULES.html.sh: Remove getstr.
77005         * modules/getline: Depend on unlocked-io, not getstr.
77006
77007 2003-01-12  Jim Meyering  <jim@meyering.net>
77008
77009         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
77010
77011 2003-01-10  Bruno Haible  <bruno@clisp.org>
77012
77013         * modules/alloca: Change Makefile.am requirements. Simplify Include
77014         requirements. Add lib/alloca_.h to file list.
77015
77016 2003-01-10  Bruno Haible  <bruno@clisp.org>
77017
77018         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
77019
77020 2003-01-10  Bruno Haible  <bruno@clisp.org>
77021
77022         * lib/alloca_.h: New file.
77023         * lib/getdate.y: Unconditionally include alloca.h.
77024         * lib/makepath.c: Likewise.
77025         * lib/setenv.c: Likewise.
77026         * lib/userspec.c: Likewise.
77027
77028 2003-01-09  Karl Berry  <karl@gnu.org>
77029
77030         * MODULES.html.sh: include `dirname $0` in PATH, to find
77031         gnulib-tool.
77032
77033 2003-01-09  Bruno Haible  <bruno@clisp.org>
77034
77035         * modules/stdbool: Change configure.ac, Makefile.am requirements.
77036         Simplify Include requirements. Add lib/stdbool.h.in to file list.
77037
77038 2003-01-09  Bruno Haible  <bruno@clisp.org>
77039
77040         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
77041
77042 2003-01-09  Bruno Haible  <bruno@clisp.org>
77043
77044         * lib/stdbool.h.in: New file.
77045
77046 2003-01-09  Bruno Haible  <bruno@clisp.org>
77047
77048         * gnulib-tool (func_all_modules): Ignore files ending in ~.
77049         * MODULES.html.sh: Likewise.
77050
77051 2003-01-08  Jim Meyering  <jim@meyering.net>
77052
77053         * lib/full-write.c: Undefine and define-away `const' after inclusion
77054         of errno.h, not before.  Suggestion from Bruno Haible.
77055
77056 2003-01-08  Bruno Haible  <bruno@clisp.org>
77057
77058         * modules/full-read: Depend on full-write.
77059
77060 2003-01-08  Bruno Haible  <bruno@clisp.org>
77061
77062         * lib/safe-read.c: Include specification header first, to ensure its
77063         selfcontainedness.
77064         * lib/full-write.c: Likewise.
77065
77066 2003-01-07  Jim Meyering  <jim@meyering.net>
77067
77068         * lib/full-write.c: Rework so that it may serve to define full_read,
77069         too.
77070         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
77071
77072 2003-01-07  Bruno Haible  <bruno@clisp.org>
77073
77074         * lib/strtoimax.c: Include <stdint.h> as an alternative to
77075         <inttypes.h>.
77076         * lib/xstrtol.h: Likewise.
77077         * lib/xstrtoimax.c: Likewise.
77078         * lib/xstrtoumax.c: Likewise.
77079         * lib/human.h: Likewise.
77080
77081         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
77082         on systems that have <inttypes.h> but not <stdint.h>.
77083
77084 2003-01-07  Bruno Haible  <bruno@clisp.org>
77085
77086         * MODULES.html.sh: Add copyright notice.
77087         (missed_files): Omit CVS directory entries.
77088         (func_module): Make it work with sed-3.02.
77089         * MODULES.txt: Remove file.
77090
77091 2003-01-06  Jim Meyering  <jim@meyering.net>
77092
77093         * lib/version-etc.c: Update year in translatable copyright string.
77094
77095 2003-01-03  Karl Berry  <karl@gnu.org>
77096
77097         * config/config.{guess,sub}: update from prep.
77098
77099 2003-01-02  Karl Berry  <karl@gnu.org>
77100
77101         * doc/COPYING.DOC: belatedly updated to 1.2.
77102
77103 2003-01-01  Karl Berry  <karl@gnu.org>
77104
77105         * gnulib-tool (func_verify_module): report module name $module in
77106         error message, not $1.
77107         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77108         be created, only if it doesn't exist.
77109         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77110
77111 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77112
77113         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77114
77115 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77116
77117         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77118         memcmp if strcoll doesn't work.
77119
77120 2002-12-31  Bruno Haible  <bruno@clisp.org>
77121
77122         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77123         nonempty.
77124
77125 2002-12-31  Bruno Haible  <bruno@clisp.org>
77126
77127         * lib/memcoll.c (STRCOLL): New macro.
77128         (memcoll): Use it.
77129
77130 2002-12-31  Bruno Haible  <bruno@clisp.org>
77131
77132         * lib/localcharset.h: New file.
77133         * lib/localcharset.c: Include it.
77134         * lib/unicodeio.c: Likewise.
77135
77136 2002-12-31  Bruno Haible  <bruno@clisp.org>
77137
77138         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77139         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77140
77141 2002-12-31  Bruno Haible  <bruno@clisp.org>
77142
77143         * lib/getline.h: Include <stddef.h>, for size_t.
77144
77145         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77146         * lib/unicodeio.c: Don't include <stddef.h>.
77147
77148 2002-12-31  Bruno Haible  <bruno@clisp.org>
77149
77150         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77151         HAVE_TM_ZONE.
77152
77153 2002-12-24  Karl Berry  <karl@gnu.org>
77154
77155         * config/config.guess: update from prep.
77156
77157 2002-12-24  Bruno Haible  <bruno@clisp.org>
77158
77159         General infrasructure.
77160         * m4/README: Rewritten.
77161         * m4/onceonly.m4: New file.
77162         * m4/onceonly_2_57.m4: New file.
77163
77164         Module atexit.
77165         * m4/atexit.m4: New file.
77166
77167         Module strtod.
77168         * m4/strtod.m4: New file.
77169
77170         Module strtol.
77171         * m4/strtol.m4: New file.
77172
77173         Module strtoul.
77174         * m4/strtoul.m4: New file.
77175
77176         Module memchr.
77177         * m4/memchr.m4: New file.
77178
77179         Module memcmp.
77180         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77181         (jm_FUNC_MEMCMP): Invoke it.
77182
77183         Module memcpy.
77184         * m4/memcpy.m4: New file.
77185
77186         Module memmove.
77187         * m4/memmove.m4: New file.
77188
77189         Module memset.
77190         * m4/memset.m4: New file.
77191
77192         Module strcspn.
77193         * m4/strcspn.m4: New file.
77194
77195         Module strpbrk.
77196         * m4/strpbrk.m4: New file.
77197
77198         Module strstr.
77199         * m4/strstr.m4: New file.
77200
77201         Module strerror.
77202         * m4/strerror.m4: New file.
77203
77204         Module mktime.
77205         * m4/mktime.m4: Renamed from jm-mktime.m4.
77206         (gl_PREREQ_MKTIME): New macro.
77207         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77208
77209         Module malloc.
77210         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77211         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77212         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77213
77214         Module realloc.
77215         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77216         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77217         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77218
77219         Module strftime.
77220         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77221         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77222         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77223         gl_TM_GMTOFF.
77224         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77225
77226         Module xalloc.
77227         * m4/xalloc.m4: New file.
77228
77229         Module alloca.
77230         * m4/alloca.m4: New file.
77231
77232         Module putenv.
77233         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77234         (jm_FUNC_PUTENV): Invoke it.
77235
77236         Module setenv.
77237         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77238         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77239         when invoked twice.
77240         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77241         gt_FUNC_SETENV.
77242
77243         Module memrchr.
77244         * m4/memrchr.m4: New file.
77245
77246         Module stpcpy.
77247         * m4/stpcpy.m4: New file.
77248
77249         Module strcase.
77250         * m4/strcase.m4: New file.
77251
77252         Module strdup.
77253         * m4/strdup.m4: New file.
77254
77255         Module strnlen.
77256         * m4/strnlen.m4: New file.
77257
77258         Module strndup.
77259         * m4/strndup.m4: New file.
77260
77261         Module xstrtod.
77262         * m4/xstrtod.m4: New file.
77263
77264         Module xstrtol.
77265         * m4/xstrtol.m4: New file.
77266
77267         Module getdate.
77268         * m4/getdate.m4: New file.
77269
77270         Module unlocked-io.
77271         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77272         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77273         * m4/jm-glibc-io.m4n: Remove file.
77274
77275         Module long-options.
77276         * m4/long-options.m4: New file.
77277
77278         Module md5.
77279         * m4/md5.m4: New file.
77280
77281         Module sha.
77282         * m4/sha.m4: New file.
77283
77284         Module getstr.
77285         * m4/getstr.m4: New file.
77286
77287         Module getline.
77288         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77289         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77290         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77291         simply getline. Infoke gl_PREREQ_GETLINE.
77292
77293         Module obstack.
77294         * m4/obstack.m4: New file.
77295
77296         Module hash.
77297         * m4/hash.m4: New file.
77298
77299         Module readtokens.
77300         * m4/readtokens.m4: New file.
77301
77302         Module strverscmp.
77303         * m4/strverscmp.m4: New file.
77304
77305         Module stdbool.
77306         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77307         OSF/1.
77308
77309         Module strtoll.
77310         * m4/strtoll.m4: New file.
77311
77312         Module strtoull.
77313         * m4/strtoull.m4: New file.
77314
77315         Module strtoimax.
77316         * m4/strtoimax.m4: New file.
77317
77318         Module strtoumax.
77319         * m4/strtoumax.m4: New file.
77320
77321         Module xstrtoimax.
77322         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77323         jm_AC_PREREQ_XSTRTOIMAX.
77324         Moved the strtol prerequisites to strtol.m4.
77325         Moved the strtoll prerequisites to strtoll.m4.
77326         Moved the strtoimax prerequisites to strtoimax.m4.
77327
77328         Module xstrtoumax.
77329         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77330         jm_AC_PREREQ_XSTRTOUMAX.
77331         Moved the strtoul prerequisites to strtoul.m4.
77332         Moved the strtoull prerequisites to strtoull.m4.
77333         Moved the strtoumax prerequisites to strtoumax.m4.
77334
77335         Module chown.
77336         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77337         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77338
77339         Module dup2.
77340         * m4/dup2.m4: New file.
77341
77342         Module ftruncate.
77343         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77344         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77345
77346         Module getgroups.
77347         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77348         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77349
77350         Module gettimeofday.
77351         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77352         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77353         gl_PREREQ_GETTIMEOFDAY.
77354
77355         Module mkdir.
77356         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77357         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77358
77359         Module mkstemp.
77360         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77361         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77362         jm_AC_TYPE_UINTMAX_T.
77363         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77364
77365         Module stat.
77366         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77367         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77368
77369         Module lstat.
77370         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77371         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77372
77373         Module timespec.
77374         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77375         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77376         * m4/st_mtim.m4: Indentation.
77377
77378         Module nanosleep.
77379         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77380         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77381         gl_PREREQ_NANOSLEEP.
77382
77383         Module regex.
77384         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77385         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77386         (gl_REGEX): New macro.
77387
77388         Module rename.
77389         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77390         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77391
77392         Module rmdir.
77393         * m4/rmdir.m4: New file.
77394
77395         Module utime.
77396         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77397         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77398         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77399
77400         Module dirname.
77401         * m4/dirname.m4: New file.
77402
77403         Module getopt.
77404         * m4/getopt.m4: New file.
77405
77406         Module unistd-safer.
77407         * m4/unistd-safer.m4: New file.
77408
77409         Module fnmatch.
77410         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77411         declaration.
77412         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77413         (gl_FUNC_FNMATCH_POSIX): New macro.
77414         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77415         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77416         simply fnmatch.
77417
77418         Module exclude.
77419         * m4/exclude.m4: New file.
77420
77421         Module human.
77422         * m4/human.m4: New file.
77423
77424         Module acl.
77425         * m4/acl.m4: Nop.
77426
77427         Module backupfile.
77428         * m4/backupfile.m4: New file.
77429         * m4/d-ino.m4: Indentation.
77430
77431         Module fsusage.
77432         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77433         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77434         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77435
77436         Module dirfd.
77437         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77438         requirements.
77439
77440         Module euidaccess.
77441         * m4/euidaccess.m4: New file.
77442
77443         Module file-type.
77444         * m4/file-type.m4: New file.
77445
77446         Module fileblocks.
77447         * m4/fileblocks.m4: New file.
77448
77449         Module filemode.
77450         * m4/filemode.m4: New file.
77451
77452         Module isdir.
77453         * m4/isdir.m4: New file.
77454
77455         Module lchown.
77456         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77457         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77458
77459         Module makepath.
77460         * m4/makepath.m4: New file.
77461
77462         Module modechange.
77463         * m4/modechange.m4: New file.
77464
77465         Module mountlist.
77466         * m4/mountlist.m4: New file.
77467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77468         Indentation.
77469
77470         Module path-concat.
77471         * m4/path-concat.m4: New file.
77472
77473         Module pathmax.
77474         * m4/pathmax.m4: New file.
77475
77476         Module same.
77477         * m4/same.m4: New file.
77478
77479         Module save-cwd.
77480         * m4/save-cwd.m4: New file.
77481
77482         Module savedir.
77483         * m4/savedir.m4: New file.
77484
77485         Module xgetcwd.
77486         * m4/xgetcwd.m4: New file.
77487         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77488
77489         Module xreadlink.
77490         * m4/xreadlink.m4: New file.
77491
77492         Module safe-read.
77493         * m4/safe-read.m4: New file.
77494
77495         Module safe-write.
77496         * m4/safe-write.m4: New file.
77497
77498         Module closeout.
77499         * m4/closeout.m4: New file.
77500
77501         Module stdio-safer.
77502         * m4/stdio-safer.m4: New file.
77503
77504         Module getpass.
77505         * m4/getpass.m4: New file.
77506
77507         Module getugroups.
77508         * m4/getugroups.m4: New file.
77509
77510         Module group-member.
77511         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77512         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77513
77514         Module idcache.
77515         * m4/idcache.m4: New file.
77516
77517         Module userspec.
77518         * m4/userspec.m4: New file.
77519
77520         Module gettime.
77521         * m4/clock_time.m4: New file.
77522         * m4/gettime.m4: New file.
77523
77524         Module settime.
77525         * m4/settime.m4: New file.
77526
77527         Module posixtm.
77528         * m4/posixtm.m4: New file.
77529
77530         Module gethostname.
77531         * m4/gethostname.m4: New file.
77532
77533         Module canon-host.
77534         * m4/canon-host.m4: New file.
77535
77536         Module gettext.
77537         * m4/codeset.m4: New file, from gettext-0.11.5.
77538         * m4/gettext.m4: New file, from gettext-0.11.5.
77539         * m4/glibc21.m4: New file, from gettext-0.11.5.
77540         * m4/iconv.m4: New file, from gettext-0.11.5.
77541         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77542         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77543         * m4/inttypes.m4: New file, from gettext-0.11.5.
77544         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77545         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77546         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77547         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77548         * m4/lib-link.m4: New file, from gettext-0.11.5.
77549         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77550         * m4/progtest.m4: New file, from gettext-0.11.5.
77551         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77552         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77553         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77554
77555         Module localcharset.
77556         * m4/localcharset.m4: New file.
77557
77558         Module hard-locale.
77559         * m4/hard-locale.m4: New file.
77560
77561         Module mbswidth.
77562         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77563         onceonly macros.
77564         * m4/mbrtowc.m4: Add comment.
77565
77566         Module memcasecmp.
77567         * m4/memcasecmp.m4: New file.
77568
77569         Module memcoll.
77570         * m4/memcoll.m4: New file.
77571
77572         Module unicodeio.
77573         * m4/unicodeio.m4: New file.
77574
77575         Module rpmatch.
77576         * m4/rpmatch.m4: New file.
77577
77578         Module yesno.
77579         * m4/yesno.m4: New file.
77580
77581         Module exitfail.
77582         * m4/exitfail.m4: New file.
77583
77584         Module c-stack.
77585         * m4/c-stack.m4 (gl_C_STACK): New macro.
77586         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77587
77588         Module error.
77589         * m4/error.m4 (gl_ERROR): New macro.
77590         (jm_PREREQ_ERROR): Use onceonly macros.
77591
77592         Module fatal.
77593         * m4/fatal.m4: New file.
77594
77595         Module getloadavg.
77596         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77597         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77598
77599         Module getpagesize.
77600         * m4/getpagesize.m4: New file.
77601
77602         Module getusershell.
77603         * m4/getusershell.m4: New file.
77604
77605         Module physmem.
77606         * m4/physmem.m4: New file.
77607
77608         Module posixver.
77609         * m4/posixver.m4: New file.
77610
77611         Module quotearg.
77612         * m4/quotearg.m4: New file.
77613
77614         Module quote.
77615         * m4/quote.m4: New file.
77616
77617         Module readutmp.
77618         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77619
77620         Module sig2str.
77621         * m4/sig2str.m4: New file.
77622
77623         Other.
77624         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77625         ulonglong.m4.
77626         * m4/intmax_t.m4: New file.
77627         * m4/d-type.m4: Indentation.
77628         * m4/jm-macros.m4: Update.
77629         * m4/prereq.m4 (jm_PREREQ): Update.
77630         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77631         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77632         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77633         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77634         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77635         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77636         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77637         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77638         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77639         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77640         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77641         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77642         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77643         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77644         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77645         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77646         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77647         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77648         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77649
77650 2002-12-24  Bruno Haible  <bruno@clisp.org>
77651
77652         * MODULES.txt: Update according to m4/ changes.
77653
77654         Module gettext.
77655         * config.rpath: New file, from gettext-0.11.5.
77656
77657         * modules/*: New module descriptions.
77658         * gnulib-tool: New file.
77659         * MODULES.html.sh: New file.
77660
77661 2002-12-21  Karl Berry  <karl@gnu.org>
77662
77663         * doc/fdl.texi: update to version 1.2.
77664
77665 2002-12-19  Karl Berry  <karl@gnu.org>
77666
77667         * config/config.guess: update from prep.
77668
77669 2002-12-18  Bruno Haible  <bruno@clisp.org>
77670
77671         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77672         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77673
77674 2002-12-17  Bruno Haible  <bruno@clisp.org>
77675
77676         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77677         stdlib.h, string.h.
77678
77679 2002-12-17  Bruno Haible  <bruno@clisp.org>
77680
77681         * lib/canon-host.c (strdup): Remove unused declaration.
77682
77683         * lib/fsusage.c: Include full_read.h.
77684         (get_fs_usage): Use full_read instead of safe_read.
77685
77686         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77687
77688 2002-12-12  Karl Berry  <karl@gnu.org>
77689
77690         * config/config.guess: update from prep.
77691
77692 2002-12-11  Bruno Haible  <bruno@clisp.org>
77693
77694         * m4/setenv.m4: New file, from gettext-0.11.5.
77695
77696 2002-12-11  Bruno Haible  <bruno@clisp.org>
77697
77698         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77699         not unsetenv().
77700         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77701         modifications:
77702
77703         2002-12-11  Bruno Haible  <bruno@clisp.org>
77704
77705                 * setenv.c (alloca): Fall back to malloc.
77706                 (freea): New macro.
77707                 (setenv): Use freea() to free memory allocated with alloca().
77708
77709         2002-11-13  Bruno Haible  <bruno@clisp.org>
77710
77711                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77712                 function declarations.
77713                 * unsetenv.c (unsetenv): Likewise.
77714
77715         2002-03-04  Bruno Haible  <bruno@clisp.org>
77716
77717                 Portability to AIX 4.3.3.
77718                 * unsetenv.c: New file, extracted from setenv.c.
77719                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77720
77721         2001-12-20  Bruno Haible  <bruno@clisp.org>
77722
77723                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77724                 use malloc instead. For SunOS 4.
77725
77726         2001-12-11  Bruno Haible  <bruno@clisp.org>
77727
77728                 * setenv.c: Declare alloca.
77729                 (compar_fn_t): New typedef.
77730                 (KNOWN_VALUE, STORE_VALUE): Use it.
77731
77732         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77733         setenv.h.
77734
77735 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77736
77737         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77738         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77739         Choose values that are less likely to collide with system fnmatch
77740         options.
77741         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77742         defined (e.g., a pure POSIX system).
77743         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77744         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77745
77746 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77747
77748         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77749         a pain in practice to deal with generated m4 files.  This change
77750         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77751
77752         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77753         and jm-glibc-io.m4, as they are no longer a special case.
77754         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77755         kludge and the auto-generation stuff.  Check only whether the
77756         functions are declared, not whether they exist, since older hosts
77757         that don't declare the functions can't use the optimization anyway.
77758
77759 2002-12-06  Jim Meyering  <jim@meyering.net>
77760
77761         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
77762
77763         Merge in changes from libc's misc/error.c, in preparation
77764         for the merge of gnulib's changes back into libc.
77765
77766         * lib/error.c (_): Define only if not already defined.
77767         Move definition to follow all #include directives.
77768         Include unlocked-io.h only if !_LIBC.
77769         [_LIBC]: Include <libio/libioP.h>.
77770         [USE_IN_LIBIO]: Include <libio/iolibio.h>
77771         (fflush): Tweak definition to use INTUSE.
77772         (putc): Define.
77773
77774 2002-12-05  Paul Eggert  <eggert@twinsun.com>
77775
77776         * lib/alloca.c [defined emacs]: Include "lisp.h".
77777         (xalloc_die) [defined emacs]: New macro.
77778         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
77779         [! defined emacs]: Include <xalloc.h>.
77780         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
77781         (pointer): Typedef to POINTER_TYPE *.
77782         (malloc): Remove decl; we now always use xmalloc.
77783         (alloca): Use old-style definition, since Emacs needs this.
77784         Check for arithmetic overflow when computing combined size.
77785
77786 2002-12-04  Paul Eggert  <eggert@twinsun.com>
77787
77788         Do not generate unlocked-io.h automatically, since it's easier to
77789         maintain it by hand.
77790
77791         * lib/unlocked-io.h: New file, from GNU diffutils,
77792         but with proper copyright notice and attribution.
77793         * lib/gen-uio: Remove.
77794         * lib/Makefile.am: Add copyright notice.
77795         (libfetish_a_SOURCES): Add unlocked-io.h.
77796         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
77797         (DISTCLEANFILES, io_functions): Remove macros.
77798         (EXTRA_DIST): Remove gen_uio.
77799         (unlocked-io.h): Remove rule.
77800
77801 2002-12-04  Jim Meyering  <jim@meyering.net>
77802
77803         Reflect the fact that stat.c and lstat.c are no longer generated.
77804         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
77805         (DISTCLEANFILES): Likewise.
77806         (EXTRA_DIST): Likewise.
77807         (all_local): Don't depend on stat.c or lstat.c.
77808         (stat.c, lstat.c): Remove rules.
77809         (EXTRA_DIST): Remove xstat.in.
77810
77811         * lib/xstat.in: Remove file.  Contents moved into stat.c.
77812         * lib/stat.c: New file.  Contents mostly from xstat.in.
77813         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
77814         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
77815
77816         * lib/safe-read.c: Rework so that it may serve to define safe_write,
77817         too.
77818         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
77819
77820 2002-12-03  Jim Meyering  <jim@meyering.net>
77821
77822         * lib/safe-read.c, safe-write.c: Change variable names and comments,
77823         but not semantics, to minimize the differences between these two files.
77824         (safe_read): Change comment to mention SAFE_READ_ERROR.
77825
77826         * lib/safe-read.c (IS_EINTR): Define.
77827         (safe_read): Use IS_EINTR in place of in-function cpp directives.
77828
77829 2002-12-02  Jim Meyering  <jim@meyering.net>
77830
77831         * lib/safe-read.c (EINTR): Define.
77832         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77833         (INT_MAX): Provide fallback.
77834         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
77835
77836         * lib/safe-read.h (SAFE_READ_ERROR): Define.
77837
77838 2002-12-02  Bruno Haible  <bruno@clisp.org>
77839
77840         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
77841         Define, taken from safe-read.c.
77842         (INT_MAX): Provide fallback.
77843         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
77844         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
77845
77846         * lib/safe-read.c (EINTR): Remove definition.
77847         (safe_read): Don't use EINTR if it is absent.
77848
77849 2002-12-01  Jim Meyering  <jim@meyering.net>
77850
77851         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
77852         zero.
77853         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
77854
77855 2002-11-27  Paul Eggert  <eggert@twinsun.com>
77856
77857         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
77858         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
77859         with `if (! (value < limit)) abort ();', for readability.
77860
77861 2002-11-26  Karl Berry  <karl@gnu.org>
77862
77863         * lib/strdup.c: copy from libc again, with jim's ok.
77864         * lib/.cppi-disable: re-add strdup.c
77865
77866 2002-11-25  Karl Berry  <karl@gnu.org>
77867
77868         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
77869         instead of "strtol.c".
77870
77871 2002-11-25  Karl Berry  <karl@gnu.org>
77872
77873         * config/install-sh: update from automake for variable quoting, $0 in
77874         error msgs, etc.
77875
77876         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
77877         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
77878         entry.
77879
77880 2002-11-25  Jim Meyering  <jim@meyering.net>
77881
77882         * lib/mktime.c: Sync from libc, now that it has the latest fix.
77883
77884 2002-11-24  Karl Berry  <karl@gnu.org>
77885
77886         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
77887         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
77888
77889 2002-11-24  Jim Meyering  <jim@meyering.net>
77890
77891         Update from coreutils:
77892
77893         * lib/mktime.c: Merge in changes from libc.
77894
77895         Avoid a link-time failure on some Linux systems.
77896         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
77897         (otherwise).
77898         (__mon_yday): Declare with the STATIC attribute.
77899         (__mktime_internal): Likewise.
77900         Based on a report from Greg Schafer.
77901
77902 2002-11-23  Jim Meyering  <jim@meyering.net>
77903
77904         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
77905         Use `unsigned', not `int', as type of index.
77906
77907         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
77908
77909         * lib/fsusage.c: Remove unneeded parentheses around operands of
77910         `defined'.
77911
77912 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77913
77914         * lib/quotearg.h: Allow multiple inclusion by surrounding with
77915         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
77916         so that we can be included first.
77917         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
77918         * lib/quotearg.c: Include quotearg.h immediately after config.h.
77919         No need to include stddef.h or sys/types.h any more.
77920         Surround local include files with "", not "<>".
77921         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
77922         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
77923         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
77924         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
77925         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
77926         (ISPRINT): Remove; no longer needed now that we assume C89.
77927
77928         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
77929         Preserve errno.
77930
77931         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
77932         quotearg_char): Use SIZE_MAX rather than
77933         (size_t) -1 when we are talking about "infinity".
77934
77935         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
77936
77937 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77938
77939         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
77940         hint that one should use `if (! x) abort ();' rather than `assert
77941         (x);', and anyway it's one less thing to worry about configuring.
77942         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
77943         hash_rehash, hash_insert): Use abort rather than assert.
77944
77945 2002-11-22  Bruno Haible  <bruno@clisp.org>
77946
77947         * lib/safe-read.h: Assume C89. Add comments.
77948         (safe_read): Change return type to size_t.
77949         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
77950         byte counts > SSIZE_MAX correctly.
77951         * lib/safe-write.h: New file.
77952         * lib/safe-write.c: New file.
77953         * lib/full-read.h: New file.
77954         * lib/full-read.c: New file.
77955         * lib/full-write.h: Assume C89. Add comments.
77956         * lib/full-write.c: Include safe-write.h.
77957         (full_write): Rewritten to use safe_write.
77958         Suggested by Jim Meyering and Paul Eggert.
77959
77960 2002-11-21  Jim Meyering  <jim@meyering.net>
77961
77962         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77963
77964         Merge in changes from the coreutils.
77965
77966         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77967         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77968         <stdint.h>.
77969         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77970         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77971         int.  Work more efficiently if X is the same width as uintmax_t.
77972         Do not compare X to -1, to avoid bogus compiler warning.
77973         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77974         Don't assume that f_frsize and f_bsize are the same type.
77975
77976         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77977         warning on FreeBSD.
77978
77979         * lib/makepath.c (make_path): Restore umask *before* creating the final
77980         component.
77981         (make_path): Minor reformatting.
77982
77983         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77984         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77985         HAVE_MALLOC/HAVE_REALLOC.
77986
77987         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77988         dummy ones.  At least on GNU/Linux systems, `auto' means something
77989         else.
77990         From Michael Stone.
77991
77992 2002-11-21  Bruno Haible  <bruno@clisp.org>
77993
77994         Remove case insensitive option matching.
77995         * lib/argmatch.h (argcasematch): Remove declaration.
77996         (ARGCASEMATCH): Remove macro.
77997         (__xargmatch_internal): Remove case_sensitive argument.
77998         (XARGMATCH): Update.
77999         (XARGCASEMATCH): Remove macro.
78000         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
78001         case_sensitive argument.
78002         (argcasematch): Remove function.
78003         (__xargmatch_internal): Remove case_sensitive argument.
78004         (main): Use XARGMATCH instead of XARGCASEMATCH.
78005
78006         * lib/xmalloc.c: Change compile-time error message. Add comment about
78007         required autoconf version.
78008
78009 2002-11-20  Paul Eggert  <eggert@twinsun.com>
78010
78011         Merge argmatch cleanups from Bison.  Assume C89.
78012
78013         * lib/argmatch.c: Include config.h here, not in argmatch.h.
78014         Include stdlib.h, for EXIT_FAILURE.
78015         Always include <string.h>, since we assume C89.
78016         (EXIT_FAILURE): Remove pre-C89 bug workaround.
78017         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
78018         Include <stddef.h> instead, since it's all we need for size_t.
78019         (PARAMS): Remove.  All uses removed.
78020         (ARRAY_CARDINALITY): Do not bother to #undef.
78021         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
78022         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78023         Remove unnecessary parentheses.
78024         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78025         Insert necessary parentheses.
78026         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
78027         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
78028
78029 2002-11-19  Bruno Haible  <bruno@clisp.org>
78030
78031         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
78032         * lib/mbswidth.h: Include <stddef.h>, for size_t.
78033
78034         * lib/mbswidth.h (PARAMS): Remove macro.
78035         (mbswidth, mbsnwidth): Use ANSI C function declarations.
78036         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
78037
78038         * lib/gcd.h (PARAMS): Remove macro.
78039         (gcd): Use ANSI C function declarations.
78040         * lib/gcd.c (gcd): Likewise.
78041
78042 2002-11-15  Bruno Haible  <bruno@clisp.org>
78043
78044         * lib/strcspn.c: Include <stddef.h>.
78045         (strcspn): Use ANSI C function declaration. Change return type to
78046         size_t. Use NULL.
78047         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
78048         (strpbrk): Use NULL.
78049         * lib/strpbrk.h (PARAMS): Remove macro.
78050         (strpbrk): Use ANSI C function declaration.
78051         * lib/strstr.c: Don't include <sys/types.h>.
78052         * lib/strstr.h (PARAMS): Remove macro.
78053         (strstr): Use ANSI C function declarations.
78054
78055 2002-11-14  Karl Berry  <karl@gnu.org>
78056
78057         * config/mkinstalldirs: `do' on separate line, instead of
78058         `for var; do'.
78059
78060 2002-11-06  Bruno Haible  <bruno@clisp.org>
78061
78062         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
78063         * lib/gcd.c (gcd): Likewise.
78064
78065 2002-11-05  Bruno Haible  <bruno@clisp.org>
78066
78067         * lib/gcd.h: New file, from gettext-0.11.5.
78068         * lib/gcd.c: New file, from gettext-0.11.5.
78069
78070 2002-11-05  Bruno Haible  <bruno@clisp.org>
78071
78072         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78073         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78074         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78075         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78076
78077         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
78078         <libintl.h>.
78079         * lib/makepath.c: Include gettext.h instead of <locale.h> and
78080         <libintl.h>.
78081
78082         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
78083         * lib/human.c: Include gettext.h instead of <libintl.h>.
78084         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
78085         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
78086         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78087         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78088         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78089         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78090         (textdomain): Remove definition.
78091         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78092
78093         * lib/long-options.c: Remove include of <libintl.h> and definition of
78094         _.
78095         * lib/same.c: Remove include of <libintl.h> and definition of _.
78096
78097 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78098
78099         * lib/config.charset: A few additions for Solaris.
78100
78101 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78102
78103         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78104         * lib/localcharset.c (locale_charset): Declare as extern "C".
78105
78106 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78107
78108         * lib/config.charset: msdos in uk_UA uses CP1125.
78109
78110 2002-11-04  Bruno Haible  <bruno@clisp.org>
78111
78112         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78113         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78114         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78115         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78116         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78117
78118 2002-11-04  Bruno Haible  <bruno@clisp.org>
78119
78120         * lib/localcharset.c (locale_charset): Don't return an empty string.
78121
78122 2002-11-04  Bruno Haible  <bruno@clisp.org>
78123
78124         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78125         aliases.
78126
78127 2002-11-04  Bruno Haible  <bruno@clisp.org>
78128
78129         * lib/config.charset: Update for newest glibc. Add canonical names
78130         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78131
78132 2002-11-04  Bruno Haible  <bruno@clisp.org>
78133
78134         * lib/config.charset: Add support for NetBSD.
78135
78136 2002-11-04  Bruno Haible  <bruno@clisp.org>
78137
78138         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78139
78140 2002-11-01  Bruno Haible  <bruno@clisp.org>
78141
78142         * configure.in: Add AC_CONFIG_AUX_DIR call.
78143         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78144         test/Makefile.
78145         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78146
78147 2002-09-28  Karl Berry  <karl@gnu.org>
78148
78149         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78150         installed automake until the next release, since changes have been
78151         made.
78152
78153 2002-09-25  Karl Berry  <karl@gnu.org>
78154
78155         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78156         * lib/getopt*: copy from libc/posix.
78157         * lib/gettext.h: copy from gettext.
78158         * lib/.cppi-disable: add strdup.c, gettext.h.
78159
78160 2002-09-25  Karl Berry  <karl@gnu.org>
78161
78162         * config/srclist.txt: enable gettext.h check.
78163         * config/config.{guess,sub}: update from prep.
78164         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78165                 from automake 1.6.3.
78166         See srclist*.
78167
78168 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78169
78170         * regex.c (PATFETCH): Remove the translating fetch.
78171         (PATFETCH_RAW): Rename to PATFETCH.
78172         (set_image_of_range): New fun.
78173         (SET_RANGE_TABLE_WORK_AREA): Use it.
78174         (regex_compile): Don't translate the pattern chars so eagerly.
78175         Only do it when inserting an `exactn' bytecode or when handling
78176         a char-range.
78177         (mutually_exclusive_p): Avoid empty statement.
78178
78179 2002-07-06  Jim Meyering  <meyering@lucent.com>
78180
78181         * m4/README: Don't mention Makefile.am.in.
78182         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78183
78184 2002-07-01  Jim Meyering  <meyering@lucent.com>
78185
78186         * lib/c-stack.c: Include sys/time.h.
78187         From Volker Borchert.
78188
78189 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78190
78191         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78192
78193 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78194
78195         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78196         New macro.  Use it uniformly instead of
78197         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78198         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78199         reported by Vin Shelton.
78200
78201 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78202
78203         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78204         Do not assume SA_SIGINFO behavior.
78205         Bug reported by Jim Meyering on NetBSD 1.5.2.
78206
78207 2002-06-22  Jim Meyering  <meyering@lucent.com>
78208
78209         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78210         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78211
78212         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78213         now that configure.ac uses AC_GNU_SOURCE.
78214         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78215         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78216
78217         Update to latest tools.  Suggestions from Paul Eggert.
78218         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78219         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78220         * m4/fnmatch.m4: Likewise.
78221         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78222         to AC_HEADER_STDBOOL
78223
78224 2002-06-22  Jim Meyering  <meyering@lucent.com>
78225
78226         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78227         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78228
78229 2002-06-22  Jim Meyering  <meyering@lucent.com>
78230
78231         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78232
78233         * lib/exitfail.c, exitfail.h: Likewise.
78234         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78235
78236         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78237         of fnmatch.h.
78238         (EXTRA_DIST): Add fnmatch_loop.c.
78239         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78240
78241         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78242         * lib/fnmatch.c: Update from diffutils-2.8.2.
78243         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78244         * lib/fnmatch.h: Remove file.
78245
78246 2002-06-21  Jim Meyering  <meyering@lucent.com>
78247
78248         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78249         * m4/mbrtowc.m4: Likewise.
78250
78251         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78252         * m4/mbswidth.m4: Reflect name change:
78253         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78254         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78255
78256         * m4/lib-link.m4: Update from gettext-0.11.2.
78257         * m4/gettext.m4: Likewise.
78258
78259         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78260         From Alfred M. Szmidt.
78261
78262 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78263
78264         * lib/file-type.h: Report an error if neither S_ISREG nor
78265         S_IFREG is defined, instead of using a test specific to glibc
78266         2.2.  This should be safe, since POSIX requires S_ISREG and
78267         Unix Version 7 had S_IFREG.  We don't need to check for
78268         <sys/types.h> since we don't use any symbols that it defines.
78269
78270 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78271
78272         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78273         $@-t, so that each temporary file name is unique and valid in the first
78274         8 characters, for operation under DOS.
78275
78276 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78277
78278         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78279
78280 2002-06-15  Jim Meyering  <meyering@lucent.com>
78281
78282         Work even with DJGPP 2.03, which lacks support for symlinks.
78283         From Richard Dawe.
78284         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78285         is defined.
78286         * lib/lchown.c (S_ISLNK): Likewise.
78287
78288 2002-06-15  Jim Meyering  <meyering@lucent.com>
78289
78290         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78291         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78292         have been included before this file.
78293
78294 2002-06-14  Jim Meyering  <meyering@lucent.com>
78295
78296         * lib/file-type.h: Use the version from diffutils-2.8.2.
78297         * lib/file-type.c: Likewise.
78298
78299 2002-06-07  Jim Meyering  <meyering@lucent.com>
78300
78301         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78302         They're needed at least for NetBSD 1.5.2.
78303         ($statxfs_includes): Include those same headers.
78304         ($statxfs_includes): Include sys/vfs.h if available.
78305         ($statxfs_includes): Likewise for sys/statvfs.h.
78306         Check for the following members in both structs statfs and statvfs:
78307         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78308
78309 2002-06-01  Jim Meyering  <meyering@lucent.com>
78310
78311         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78312         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78313
78314 2002-05-28  Jim Meyering  <meyering@lucent.com>
78315
78316         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78317         Reported by Volker Borchert.
78318
78319 2002-05-27  Jim Meyering  <meyering@lucent.com>
78320
78321         Fix a problem seen only on nonconforming systems whereby ls.c's
78322         use of localtime, and then of gettimeofday would cause trouble:
78323         the localtime call used to initialize rpl_gettimeofday's save
78324         mechanism would clobber ls's current local time information so
78325         that in any long listing the first file would always be listed
78326         with date 1970-01-01.  Analysis by Volker Borchert.
78327
78328         * lib/gettimeofday.c (localtime): Undefine.
78329         (rpl_localtime): New function.
78330
78331 2002-05-27  Jim Meyering  <meyering@lucent.com>
78332
78333         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78334         localtime.
78335
78336         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78337         use the replacement function; it wouldn't resolve at link time.
78338         Reported by Volker Borchert.
78339
78340 2002-05-22  Jim Meyering  <meyering@lucent.com>
78341
78342         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78343         file-type.h.
78344         * lib/file-type.h: New file.
78345         * lib/file-type.c (file_type): New file/function.  Extracted from
78346         diffutils.
78347
78348 2002-04-30  Jim Meyering  <meyering@lucent.com>
78349
78350         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78351
78352 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78353
78354         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78355
78356 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78357
78358         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78359         Do not check for alloca.h (no longer used) or stdbool.h (was never
78360         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78361
78362 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78363
78364         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78365
78366 2002-04-29  Jim Meyering  <meyering@lucent.com>
78367
78368         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78369         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78370         Use AC_FUNC_STRNLEN here instead.
78371
78372         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78373         With autoconf-2.53a, it's part of AC_PROG_CC.
78374
78375 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78376
78377         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78378         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78379
78380 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78381
78382         * lib/sig2str.h, lib/sig2str.c: New files.
78383         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78384
78385 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78386
78387         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78388         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78389         of 127, since 64 is the largest conceivable number for ancient
78390         nonstandard hosts.
78391         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78392
78393 2002-04-28  Jim Meyering  <meyering@lucent.com>
78394
78395         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78396
78397 2002-04-24  Jim Meyering  <meyering@lucent.com>
78398
78399         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78400         (jm_PREREQ): Use it.
78401
78402         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78403         mach/mach.h fcntl.h.
78404         Check for this function: setlocale.
78405
78406 2002-04-24  Jim Meyering  <meyering@lucent.com>
78407
78408         * lib/gettext.h: New file, from Gettext.
78409         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78410         (libfetish_a_SOURCES): Add gettext.h.
78411
78412 2002-04-16  Jim Meyering  <meyering@lucent.com>
78413
78414         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78415         ut_pid, ut_id, ut_exit.
78416
78417 2002-04-16  Jim Meyering  <meyering@lucent.com>
78418
78419         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78420         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78421         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78422
78423 2002-04-12  Jim Meyering  <meyering@lucent.com>
78424
78425         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78426         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78427         existence of the getmntinfo function.  Needed for Darwin 5.3.
78428
78429         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78430         This is necessary at least on Darwin 5.3.
78431
78432         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78433         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78434         strnlen.o in the library, and that makes some versions of ranlib
78435         object.
78436
78437 2002-04-12  Jim Meyering  <meyering@lucent.com>
78438
78439         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78440
78441 2002-04-09  Jim Meyering  <meyering@lucent.com>
78442
78443         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78444         to be more precise.  Rather than saying we're checking whether the
78445         function `works', say what we're testing.
78446         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78447         Reported by Bruno Haible.
78448
78449 2002-03-10  Jim Meyering  <meyering@lucent.com>
78450
78451         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78452         Suggestion from Santiago Vila.
78453
78454 2002-03-08  Jim Meyering  <meyering@lucent.com>
78455
78456         * lib/rename.c: Mention that this wrapper is needed also on
78457         mips-dec-ultrix4.4 systems.
78458
78459 2002-03-02  Jim Meyering  <meyering@lucent.com>
78460
78461         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78462         not HAVE_CLOCK_SETTIME.
78463
78464 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78465
78466         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78467         Check for clock_settime.
78468
78469 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78470
78471         * lib/nanosleep.h: Rename to....
78472         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78473
78474         * lib/gettime.c: New file.
78475         * lib/settime.c: New file.
78476         * lib/stime.c: Remove.
78477
78478         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78479         timespec.h.  Remove nanosleep.h.
78480
78481 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78482
78483         * m4/acl.m4: New file.
78484         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78485         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78486
78487 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78488
78489         * lib/acl.c, lib/acl.h: New files.
78490         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78491
78492 2002-02-24  Jim Meyering  <meyering@lucent.com>
78493
78494         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78495         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78496         cause trouble.  Reported by Nelson Beebe.
78497
78498 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78499
78500         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78501         compilers that don't know that xalloc_die never returns.
78502
78503 2002-02-20  Jim Meyering  <meyering@lucent.com>
78504
78505         * lib/getdate.c: Regenerate using bison-1.33.
78506
78507 2002-02-17  Jim Meyering  <meyering@lucent.com>
78508
78509         * config/config.guess (main): Don't use `head -1'; it's no longer
78510         portable. Use `sed 1q' instead.
78511
78512 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78513
78514         * m4/codeset.m4: Upgrade to gettext-0.11.
78515         * m4/gettext.m4: Upgrade to gettext-0.11.
78516         * m4/glibc21.m4: Upgrade to gettext-0.11.
78517         * m4/iconv.m4: Upgrade to gettext-0.11.
78518         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78519         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78520         * m4/lib-ld.m4: New file, from gettext-0.11.
78521         * m4/lib-link.m4: New file, from gettext-0.11.
78522         * m4/lib-prefix.m4: New file, from gettext-0.11.
78523         * m4/progtest.m4: Upgrade to gettext-0.11.
78524
78525 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78526
78527         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78528         (jm_PREREQ): Use it.
78529
78530 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78531
78532         * lib/posixver.c, lib/posixver.h: New files.
78533         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78534
78535 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78536             Bruno Haible  <bruno@clisp.org>
78537
78538         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78539         (fwrite_success_callback): New declaration.
78540         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78541         print_unicode_char. Call failure callback instead of error.
78542         (fwrite_success_callback): New function.
78543         (exit_failure_callback): New function.
78544         (fallback_failure_callback): New function.
78545         (print_unicode_char): Call unicode_to_mb.
78546
78547 2002-01-26  Jim Meyering  <meyering@lucent.com>
78548
78549         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78550         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78551
78552 2002-01-26  Jim Meyering  <meyering@lucent.com>
78553
78554         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78555
78556 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78557
78558         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78559
78560 2002-01-22  Jim Meyering  <meyering@lucent.com>
78561
78562         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78563         Otherwise, some versions of automake would omit the rule that makes
78564         Makefile from Makefile.in.
78565
78566 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78567
78568         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78569         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78570         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78571         (memcoll): Set errno to zero if there is no error.
78572
78573         * lib/quotearg.c (quotearg_buffer_restyled):
78574         Fix bug with quoting buffers containing NUL when backslashing escapes.
78575         This bug was exposed by the other changes in this patch.
78576         (quotearg_n_options): New arg ARGSIZE.
78577         All callers changed.
78578         (quoting_options_from_style): New function.
78579         (quotearg_n_style): Use it.
78580         (quotearg_n_style_mem): New function.
78581
78582         * lib/quotearg.h (quotearg_n_style_mem): New function.
78583
78584 2002-01-19  Jim Meyering  <meyering@lucent.com>
78585
78586         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78587         Remove useless quotes: DF_PROG="df".
78588         * m4/strnlen.m4: New file.
78589
78590 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78591
78592         * lib/backupfile.c (ISDIGIT): Comment fix.
78593         * lib/getdate.y (ISDIGIT): Likewise.
78594         * lib/posixtm.c (ISDIGIT, year): Likewise.
78595         * lib/strverscmp.c (ISDIGIT): Likewise.
78596         * lib/userspec.c (ISDIGIT): Likewise.
78597
78598 2002-01-16  Jim Meyering  <meyering@lucent.com>
78599
78600         * lib/getdate.y: Add three semicolons, each just before a closing
78601         brace. Bison (as of version 1.31) no longer papers over that mistake.
78602
78603 2002-01-05  Jim Meyering  <meyering@lucent.com>
78604
78605         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78606
78607 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78608
78609         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78610         not silently exit merely because the output buffer happens to
78611         have nothing pending.
78612
78613 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78614
78615         See the big note in ../ChangeLog.
78616         * lib/human.c (suffixes): Prefer K to k for 1024.
78617         (generate_suffix_backwards): New function.
78618         (human_readable_inexact): Use it.
78619         * lib/xstrtol.c (__xstrtol): If there is no number but there
78620         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78621         Accept 'K' as well as 'k'.
78622
78623 2001-12-15  Jim Meyering  <meyering@lucent.com>
78624
78625         * lib/regex.h (__restrict_arr): Update from libc.
78626
78627         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78628         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78629         (STREQ): Define.
78630
78631 2001-12-14  Jim Meyering  <meyering@lucent.com>
78632
78633         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78634         Suggestion from Bruno Haible.
78635
78636 2001-12-10  Jim Meyering  <meyering@lucent.com>
78637
78638         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78639         xrealloc, Instead, include "xalloc.h".
78640         (initbuffer): Don't cast xmalloc return value to char*.
78641         (readline): Reword comment.
78642         Don't cast xrealloc return value to char*
78643         Return NULL, not 0.
78644
78645 2001-12-09  Jim Meyering  <meyering@lucent.com>
78646
78647         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78648         about `signed and unsigned type in conditional expression'.
78649         * lib/posixtm.c (posix_time_parse): Likewise.
78650
78651         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78652
78653         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78654         to avoid a pedantic warning.
78655
78656         * lib/getstr.c: Don't include assert.h.
78657         (getstr): Remove warning-evoking assertions.
78658         Return -1 if offset parameter is out of bounds.
78659         Change the type of a local from int to size_t.
78660
78661         * lib/strftime.c (my_strftime_localtime_r): Include this function
78662         definition in the `#if ! HAVE_TM_GMTOFF' block.
78663
78664         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78665         Include xalloc.h instead.
78666
78667 2001-12-02  Jim Meyering  <meyering@lucent.com>
78668
78669         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78670         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78671         included.
78672
78673         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78674         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78675
78676 2001-11-30  Akim Demaille  <akim@epita.fr>
78677
78678         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78679         before being defined.
78680
78681 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78682
78683         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78684         First arg is int, not unsigned.
78685         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78686         (SIZE_MAX, UINT_MAX): New macros.
78687         (quotearg_n_options): Abort if N is negative.
78688         Avoid overflow check on hosts where size_t is 64 bits and int
78689         is 32 bits, as overflow is impossible there.
78690         Fix off-by-one typo that caused unnecessary reallocation.
78691
78692 2001-11-27  Jim Meyering  <meyering@lucent.com>
78693
78694         * lib/tempname.c: Merge with version from libc.
78695         * lib/regex.c: Likewise.
78696
78697         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78698         systems for which STDC_HEADERS is 0, it was not included, resulting in
78699         a warning about an integer-to-pointer conversion problem with getenv.
78700         Reported by Volker Borchert.
78701
78702 2001-11-26  Jim Meyering  <meyering@lucent.com>
78703
78704         * lib/gtod.h: Remove file.
78705         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78706         * lib/gettimeofday.c: Don't include gtod.h.
78707         (GTOD_init): Remove function.
78708         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78709         Suggestion from Volker Borchert.
78710
78711 2001-11-23  Jim Meyering  <meyering@lucent.com>
78712
78713         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78714         it.
78715         * lib/hash.c (struct hash_table): Define it here instead.
78716
78717 2001-11-22  Jim Meyering  <meyering@lucent.com>
78718
78719         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78720
78721 2001-11-20  Jim Meyering  <meyering@lucent.com>
78722
78723         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78724         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78725
78726 2001-11-19  Jim Meyering  <meyering@lucent.com>
78727
78728         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78729         directory.  Use "conftestXXXXXX" as the template.
78730         Suggestion from Paul Eggert.
78731
78732         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78733         immediately, so the test doesn't mistakenly hit the max-open-files
78734         limit.
78735
78736 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78737
78738         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78739         (TEMPORARIES): New macro.
78740         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78741         removes an artificial limitation (e.g. HP-UX 10.20, where
78742         TMP_MAX is 17576).
78743
78744 2001-11-18  Jim Meyering  <meyering@lucent.com>
78745
78746         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78747
78748 2001-11-18  Jim Meyering  <meyering@lucent.com>
78749
78750         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78751         on SunOS 4.
78752
78753         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78754         files will be created before anything else.
78755
78756 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78757
78758         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
78759         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
78760
78761 2001-11-17  Jim Meyering  <meyering@lucent.com>
78762
78763         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
78764         Prompted by a report from Bob Proulx.
78765
78766         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
78767         Instead, require UTILS_FUNC_MKSTEMP.
78768
78769 2001-11-17  Jim Meyering  <meyering@lucent.com>
78770
78771         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
78772         Now, that's done as part of AC_FUNC_STRTOD.
78773
78774 2001-11-17  Jim Meyering  <meyering@lucent.com>
78775
78776         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
78777         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
78778         rather than group writable.  Patch by Juan F. Codagnone.
78779
78780         * lib/readtokens.c: Remove explicit declarations of xmalloc and
78781         xrealloc, Instead, include "xalloc.h".
78782
78783         * lib/mountlist.c: Include unlocked-io.h after all system headers.
78784         Remove explicit declarations of xmalloc, xrealloc,
78785         and xstrdup.  Instead, include "xalloc.h".
78786
78787         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
78788         unlocked-io.h.
78789         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
78790         Likewise.
78791         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
78792
78793         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
78794         Reported by Padraig Brady.
78795
78796         * lib/mkstemp.c: #undef mkstemp.
78797         Include config.h.
78798         (rpl_mkstemp): Rename from mkstemp.
78799         Protoize.
78800
78801 2001-11-16  Jim Meyering  <meyering@lucent.com>
78802
78803         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
78804         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
78805         determine the amount of total physical memory, use pstat_getstatic.
78806         HPUX-11 doesn't define _SC_PHYS_PAGES.
78807         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
78808         If sysconf couldn't be used to determine the amount of available
78809         physical memory, use both pstat_getstatic and pstat_getdynamic.
78810         Based on a patch from Bob Proulx.
78811
78812 2001-11-10  Jim Meyering  <meyering@lucent.com>
78813
78814         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
78815         (jm_PREREQ): Use it.
78816
78817 2001-11-09  Jim Meyering  <meyering@lucent.com>
78818
78819         * m4/jm-macros.m4: Require autoconf-2.52f.
78820         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
78821         Use these AC_-prefixed names, not the AM_-prefixed ones.
78822
78823         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
78824
78825 2001-11-05  Jim Meyering  <meyering@lucent.com>
78826
78827         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
78828
78829 2001-11-04  Jim Meyering  <meyering@lucent.com>
78830
78831         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
78832         $DEFS.
78833
78834 2001-11-03  Jim Meyering  <meyering@lucent.com>
78835
78836         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
78837         of AC_DEFUN.
78838
78839         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
78840         know the name of the variable in the macro definition.
78841
78842 2001-11-03  Jim Meyering  <meyering@lucent.com>
78843
78844         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
78845         in argmatch_to_argument call.
78846
78847         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
78848         argument.
78849
78850         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
78851         e.g., a fault due to an attempt to free a NULL pointer.
78852
78853 2001-11-01  Jim Meyering  <meyering@lucent.com>
78854
78855         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
78856         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
78857
78858 2001-11-01  Jim Meyering  <meyering@lucent.com>
78859
78860         * lib/dirfd.c, lib/dirfd.h: New files.
78861         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
78862
78863         * lib/hash.c (hash_print) [TESTING]: Clean up.
78864
78865 2001-10-22  Paul Eggert  <eggert@twinsun.com>
78866
78867         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
78868         to avoid a warning if -Wall.
78869
78870 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
78871
78872         * README: New file
78873         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
78874         (per RMS's instructions, this is now the canonical source)
78875         * lgpl/, gpl/: New directories.
78876
78877 2001-10-21  Paul Eggert  <eggert@twinsun.com>
78878
78879         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
78880
78881 2001-10-21  Jim Meyering  <meyering@lucent.com>
78882
78883         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
78884         this code would end up calling gettext even in packages built
78885         with --disable-nls.
78886         * lib/getopt.c (_): Likewise.
78887         * lib/regex.c (_): Likewise.
78888
78889 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78890
78891         * m4/error.m4 (jm_PREREQ_ERROR):
78892         Do not invoke AC_CHECK_FUNCS with strerror_r, as
78893         AC_FUNC_STRERROR_R does that.
78894         Check for strerror declaration.
78895
78896         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
78897         are supposed to have them these days.
78898         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
78899         Merge changes from latest Autoconf CVS.
78900         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
78901         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
78902         POSIX decided to standardize on the int flavor of strerror_r.
78903
78904 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78905
78906         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
78907         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
78908         Use strerror_r that is only a macro, even if it is not a function.
78909         (strerror): Check for HAVE_DECL_STRERROR before declaring.
78910         (private_strerror): Use prototypes, not old-style function definition.
78911         (print_errno_message): New function.
78912         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
78913         char*-flavored one.
78914         (error_tail, error, error_at_line): Use it.
78915
78916 2001-10-11  Jim Meyering  <meyering@lucent.com>
78917
78918         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
78919         and quote_n (1, ... to avoid clobbering a buffer.
78920
78921 2001-10-05  Jim Meyering  <meyering@lucent.com>
78922
78923         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
78924         hash-pjw.h.
78925         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
78926         * lib/hash-pjw.h: New file.
78927
78928 2001-09-30  Jim Meyering  <meyering@lucent.com>
78929
78930         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
78931         `struct fsstat' has the `f_fstypename' member.
78932         Use that to define FS_TYPE, which is now used to make
78933         the getfsstat link test tighter.
78934
78935 2001-09-30  Jim Meyering  <meyering@lucent.com>
78936
78937         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
78938         Include <sys/ucred.h>, for Apple Darwin.
78939         Include sys/mount.h and sys/fs_types.h only if available.
78940         (FS_TYPE): Define.
78941         (read_filesystem_list): Use FS_TYPE.
78942
78943 2001-09-29  Paul Eggert  <eggert@twinsun.com>
78944
78945         * lib/exclude.c (excluded_filename): 0 -> false, since it's
78946         a boolean context.
78947
78948 2001-09-29  Jim Meyering  <meyering@lucent.com>
78949
78950         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78951         [one-argument getmntent function]): Include stdio.h before mntent.h.
78952         SunOS 4.1.x needs it for the declaration of `FILE'.
78953         Patch by Volker Borchert.
78954
78955         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78956         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78957         sys/fs_types.h, and make the link-test for getfsstat guard #include
78958         directives with appropriate #if HAVE_*_H tests so that we can
78959         detect getfsstat on Apple Darwin1.3.7 systems.
78960         Reported by Nelson Beebe.
78961         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78962
78963 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78964
78965         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78966         #defines strtoimax.  Also treat the other strto* functions
78967         like strtoimax.
78968
78969         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78970         Check for strtoul and strtoumax,
78971         as those declarations are made even in the signed case.
78972         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78973         Likewise, for strtol and strtoimax.
78974
78975 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78976
78977         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78978         #defines strtoimax.  Also treat the other strto* functions
78979         like strtoimax.
78980
78981         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78982         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78983         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78984
78985 2001-09-26  Jim Meyering  <meyering@lucent.com>
78986
78987         Most macros in unlocked-io.h had the wrong number of arguments.
78988         * lib/gen-uio: New script.
78989         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78990         * lib/unlocked-io.hin: Remove file.
78991         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78992         rather than trying to embed it here.
78993         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
78994         Reported by Padraig Brady.
78995
78996 2001-09-25  Volker Borchert  <bt@teknon.de>
78997
78998         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
78999         `result'.
79000
79001 2001-09-24  Jim Meyering  <meyering@lucent.com>
79002
79003         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
79004
79005 2001-09-23  Jim Meyering  <meyering@lucent.com>
79006
79007         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
79008         instead of the mere test for existence of mntent.h.  The latter
79009         would get a false-positive on AIX 3.4 systems.
79010         In the outer getmntent if-block, don't die if neither of the getmntent
79011         tests succeeds.  Instead, just fall through and continue with the
79012         remaining tests.
79013
79014 2001-09-23  Jim Meyering  <meyering@lucent.com>
79015
79016         * lib/mountlist.c: Remove useless parentheses in #if directives.
79017         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
79018         the deprecated MOUNTED symbol is no longer defined in mntent.h.
79019
79020 2001-09-22  Jim Meyering  <meyering@lucent.com>
79021
79022         * m4/gettext.m4: New file.  From gettext.
79023         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
79024         * m4/progtest.m4: Likewise
79025         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
79026         * m4/glibc21.m4: Likewise.
79027
79028         * m4/libintl.m4: Remove.  No longer used.
79029
79030 2001-09-22  Jim Meyering  <meyering@lucent.com>
79031
79032         * lib/localcharset.c: Update from latest gettext.
79033         * lib/config.charset: Likewise.
79034
79035 2001-09-20  Jim Meyering  <meyering@lucent.com>
79036
79037         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
79038         strtoimax.
79039         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
79040         strtoumax.
79041
79042 2001-09-20  Jim Meyering  <meyering@lucent.com>
79043
79044         * lib/xstrtol.c (strtoimax): Guard declaration with
79045         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
79046         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
79047         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
79048         (strtoumax): Likewise, for completeness (it wasn't necessary).
79049
79050 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79051
79052         * lib/strtoimax.c (HAVE_LONG_LONG):
79053         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79054         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79055         to work around bug in IBM C compiler.
79056
79057 2001-09-17  Jim Meyering  <meyering@lucent.com>
79058
79059         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
79060         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
79061         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
79062         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
79063         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
79064         whenever the right hand side need not be expanded by the shell.
79065
79066 2001-09-16  Paul Eggert  <eggert@twinsun.com>
79067
79068         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
79069         library.  It's not correct, as some older glibcs are buggy.
79070         fnmatch wasn't fixed until glibc 2.2.
79071
79072         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
79073         special shell magic here.
79074
79075 2001-09-16  Jim Meyering  <meyering@lucent.com>
79076
79077         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
79078         * m4/jm-macros.m4: Require it.
79079
79080 2001-09-16  Jim Meyering  <meyering@lucent.com>
79081
79082         * lib/mkdir.c: New file.
79083
79084 2001-09-15  Jim Meyering  <meyering@lucent.com>
79085
79086         * m4/jm-macros.m4: Check for help2man.
79087
79088 2001-09-11  Jim Meyering  <meyering@lucent.com>
79089
79090         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79091         The body, by Paul Eggert, was moved here from configure.in.
79092         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79093
79094 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79095
79096         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79097         (jm_PREREQ): Use it.
79098
79099 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79100
79101         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79102         Use ssize_t, not int, to store result of readlink.
79103         Check for ssize_t overflow as well as size_t overflow,
79104         as POSIX says the result of readlink is implementation-defined
79105         when ssize_t overflows.
79106         Remove unnecessary cast to char*.
79107         Use free+malloc instead of realloc, as the storage doesn't need
79108         to be preserved and it's clearer and can be more efficient that way.
79109         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79110         * lib/xreadlink.h (xreadlink): Update prototype.
79111
79112 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79113
79114         * lib/xgetcwd.c: Revert some of the previous change; intead,
79115         fix the HAVE_GETCWD_NULL code to behave more like the
79116         !HAVE_GETCWD_NULL code used to.
79117
79118         Include "xalloc.h".
79119         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79120         invoke xalloc_die.
79121
79122 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79123
79124         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79125         sys/param.h, as pathmax.h includes them.
79126
79127 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79128
79129         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79130         (jm_PREREQ_XGETCWD): New macro.
79131
79132         * m4/getcwd.m4: New file.
79133
79134 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79135
79136         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79137         like the HAVE_GETCWD_NULL code.
79138         Include pathmax.h if not HAVE_GETCWD.
79139         Do not include xalloc.h.
79140         (INITIAL_BUFFER_SIZE): New symbol.
79141         Do not use xmalloc / xrealloc, since the caller is responsible for
79142         handling errors.  Preserve errno around `free' during failure.
79143         Do not overrun buffer when using getwd.
79144
79145 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79146
79147         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79148         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79149         getcwd (NULL, 0).
79150
79151 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79152
79153         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79154         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79155         spotted by Jim Meyering.
79156
79157 2001-09-03  Jim Meyering  <meyering@lucent.com>
79158
79159         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79160         failure.
79161
79162 2001-09-02  Jim Meyering  <meyering@lucent.com>
79163
79164         * lib/error.c: Update from GNU libc.
79165
79166 2001-09-01  Jim Meyering  <meyering@lucent.com>
79167
79168         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79169         Used by df.
79170
79171 2001-09-01  Jim Meyering  <meyering@lucent.com>
79172
79173         * lib/xreadlink.c: New file.
79174         * lib/xreadlink.h: New file.
79175         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79176         xreadlink.h.
79177
79178         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79179         doesn't conflict with sparc Solaris 7's definition in
79180         /usr/include/sys/int_types.h.
79181
79182         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79183         files.
79184         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79185         and strncasecmp as r-values.  Unixware didn't have declarations.
79186
79187 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79188
79189         * lib/xstrtol.h: Add copyright notice.
79190         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79191         LONGINT_INVALID_SUFFIX_CHAR.
79192
79193 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79194
79195         * lib/xstrtol.c (strtoimax): New decl.
79196
79197 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79198
79199         * lib/xgetcwd.c: Don't include pathmax.h.
79200         Include stdlib.h and unistd.h if available.
79201         Include xalloc.h.
79202         (xmalloc, xstrdup, free): Remove decls.
79203         (xgetcwd): Don't assume sizes fit in unsigned.
79204         Check for overflow when computing sizes.
79205         Simplify reallocation code.
79206
79207 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79208
79209         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79210         a directory's st_size can have an arbitrary value, so the old
79211         usage could waste an arbitrary amount of memory.  All uses
79212         changed.
79213         * lib/savedir.h: Update prototype.
79214
79215 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79216
79217         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79218
79219         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79220         old strtoimax.c.
79221
79222         Also, make the following further changes to make this file's
79223         configuration more similar to that of strtol.c:
79224         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79225         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79226         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79227         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79228         changed to signed values.
79229
79230         And make the following changes as well:
79231         Fix copyright notice, as 1999 was missing.
79232         (verify): New macro.
79233         (strtoimax): Check sizes at compile-time, not run-time.
79234         Prefer strtol to strtoll if both work.
79235         (main): Remove; it was not that useful and was a pain to maintain.
79236
79237         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79238
79239 2001-08-31  Jim Meyering  <meyering@lucent.com>
79240
79241         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79242         Use an initial, malloc'd, buffer of length 128 rather than
79243         a statically allocated one of length 1024.
79244
79245 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79246
79247         Simplify code, partly by assuming autoconf 2.52 semantics.
79248
79249         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79250
79251         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79252         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79253         All uses removed.
79254         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79255         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79256         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79257         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79258         jm_AC_HEADER_INTTYPES_H.
79259         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79260
79261         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79262
79263         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79264         Quote first arg of AC_DEFUN.
79265         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79266         since they are needed to parse the include file even if we need
79267         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79268         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79269         but with opposite signedness.
79270
79271 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79272
79273         Merge 'exclude' changes from tar 1.13.22.
79274         This fixes one or two unlikely storage allocation overflow bugs,
79275         but doesn't change user-visible behavior otherwise.
79276
79277 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79278
79279         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79280         (jm_PREREQ_EXCLUDE): New macro.
79281
79282 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79283
79284         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79285         tm to be declared.
79286
79287 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79288
79289         * lib/hash.c: Remove '2001' from copyright notice.
79290
79291 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79292
79293         * lib/full-write.h: New file.
79294         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79295         * lib/full-write.c: Correct credits, as cccp.c no longer
79296         exists and anyway it was so heavily changed from the old cccp
79297         code as to be unrecognizable.  Include full-write.h.
79298         (full_write): Return size_t, with short writes meaning failure.
79299         All callers changed.  This fixes a bug with large buffers
79300         on 64-bit hosts.
79301         * lib/utime.c: Include full-write.h.
79302
79303 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79304
79305         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79306         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79307         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79308         Include if available.
79309         (<xalloc.h>): Include
79310         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79311         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79312         collide with FNM macros.
79313         (struct patopts): New struct.
79314         (struct exclude): Use it, as exclude patterns now come with options.
79315         (new_exclude): Support above changes.
79316         (new_exclude, add_exclude_file):
79317         Initial size must now be a power of two to simplify overflow checking.
79318         (free_exclude, fnmatch_no_wildcards): New function.
79319         (excluded_filename): No longer requires options arg, as the options
79320         are determined by add_exclude.  Now returns bool, not int.
79321         (excluded_filename, add_exclude):
79322         Add support for the fancy new exclusion options.
79323         (add_exclude, add_exclude_file): Now takes int options arg.
79324         Check for arithmetic overflow when computing sizes.
79325         (add_exclude_file): xrealloc might modify errno, so don't
79326         realloc until after errno might be used.
79327
79328         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79329         New macros.
79330         (free_exclude): New decl.
79331         (add_exclude, add_exclude_file): Now takes int options arg.
79332         (excluded_filename): No longer requires options arg, as the options
79333         are determined by add_exclude.  Now returns bool, not int.
79334
79335 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79336
79337         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79338
79339 2001-08-27  Jim Meyering  <meyering@lucent.com>
79340
79341         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79342
79343         * lib/version-etc.c (N_): Remove definition.
79344         Revert most of last change.
79345         Instead, simply don't mark the `Copyright...' string for translation.
79346         Based on advice from Paul Eggert.
79347
79348         * lib/strtoxmax.c: Tweak comment.
79349
79350 2001-08-26  Jim Meyering  <meyering@lucent.com>
79351
79352         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79353
79354         * m4/xstrtoimax.m4: New file.
79355         * m4/xstrtoumax.m4: Add comments explaining why we
79356         AC_REPLACE_FUNCS(strtol).
79357
79358 2001-08-26  Jim Meyering  <meyering@lucent.com>
79359
79360         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79361         of copyright with `%s' so translators don't get an untranslated
79362         message in 2002.
79363         (COPYRIGHT_YEAR): Define.
79364         (version_etc): Use fprintf rather than fputs.
79365         Suggestion from Ulrich Drepper.
79366
79367         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79368
79369         * lib/strtoll.c: New file, from GNU libc.
79370         * lib/xstrtoimax.c: New file.
79371
79372         * lib/xstrtol.h: Add xstrtoimax.
79373         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79374         * lib/strtoimax.c: New file.  Likewise, but first define
79375         STRTOUXMAX_SIGNED.
79376
79377         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79378         ...
79379         * lib/strtoxmax.c: ... then renamed to this.
79380
79381 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79382
79383         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79384         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79385         (jm_AC_TYPE_INTMAX_T): New macro.
79386         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79387
79388         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79389
79390         * m4/longlong.m4: Renamed from ulonglong.m4.
79391         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79392         * m4/uintmax_t.m4: Removed.
79393
79394 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79395
79396         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79397         Port to Solaris 8, where 'sed' requires a space after the 'r'
79398         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79399         Redirect output to $tmp just once.
79400
79401 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79402
79403         * lib/addext.c (<errno.h>): Include.
79404         (errno): Declare if not defined.
79405         (addext): Work correctly when pathconf returns -1 and leaves
79406         errno alone because there is no limit.  Also, work even if
79407         pathconf returns a value greater than SIZE_MAX.
79408
79409 2001-08-12  Jim Meyering  <meyering@lucent.com>
79410
79411         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79412         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79413         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79414         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79415         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79416         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79417         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79418         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79419         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79420         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79421         utime.m4, utimes.m4, xstrtoumax.m4:
79422         Quote the first argument in each use of AC_DEFUN.
79423
79424 2001-08-12  Jim Meyering  <meyering@lucent.com>
79425
79426         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79427         Simply `return getcwd (NULL, 0);'.
79428         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79429         Use 1300 as initial value for length, not PATH_MAX.
79430
79431         * lib/pathmax.h: Clean up cpp syntax.
79432
79433 2001-08-12  Jim Meyering  <meyering@lucent.com>
79434
79435         * lib/gettimeofday.c: New file.
79436         * lib/gtod.h: New file.
79437         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79438
79439 2001-08-05  Jim Meyering  <meyering@lucent.com>
79440
79441         * m4/jm-macros.m4: Require autoconf-2.52.
79442
79443 2001-08-04  Jim Meyering  <meyering@lucent.com>
79444
79445         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79446         stmt, to get in sync with glibc.
79447
79448 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79449
79450         The following changes are from gettext 0.10.39 as maintained by
79451         Bruno Haible.
79452
79453         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79454         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79455         with inverted sense.  All uses changed.
79456
79457         * lib/mbswidth.c: Don't include <limits.h>.
79458         Include <stdlib.h> and <string.h> unconditionally.
79459         (iswcntrl, mbsinit, ISCNTRL): New macros.
79460         (mbsnwidth): Use K&R style function declarations.
79461         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79462         can optimize it when MB_CUR_MAX == 1.
79463         The width of control characters is zero, not 1.
79464
79465 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79466
79467         The following changes are from gettext 0.10.39 as maintained by
79468         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79469
79470         * m4/codeset.m4: Upgrade to serial AM1.
79471         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79472         all uses changed.  Quote first arg of AC_DEFUN.
79473         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79474
79475         * m4/iconv.m4: Upgrade to serial AM2.
79476         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79477         Add --with-libconv-prefix.
79478         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79479         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79480         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79481         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79482         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79483
79484         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79485         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79486         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79487         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79488         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79489         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79490         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79491         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79492         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79493
79494         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79495         string.h any more.
79496
79497         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79498         not the default value.
79499
79500         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79501         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79502         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79503         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79504         Also check for iswcntrl, used for wcwidth fallback.
79505         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79506         to Autoconf 2.13.
79507
79508 2001-08-03  Jim Meyering  <meyering@lucent.com>
79509
79510         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79511         as it was in the original.  Reported by Paul Eggert.
79512
79513 2001-07-16  Jim Meyering  <meyering@lucent.com>
79514
79515         * m4/gettimeofday.m4: New file.
79516         Prompted by a report from Bernhard Baehr.
79517
79518 2001-07-15  Jim Meyering  <meyering@lucent.com>
79519
79520         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79521         stuff. Now it's in ../Makefile.cfg.
79522
79523 2001-07-15  Jim Meyering  <meyering@lucent.com>
79524
79525         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79526         (BUILT_SOURCES): Add unlocked-io.h.
79527         (io_functions): Define.
79528         (unlocked-io.h): New rule.
79529         (DISTCLEANFILES): Add unlocked-io.h.
79530         (all-local): Depend on unlocked-io.h, to ensure it is created.
79531
79532         * lib/unlocked-io.hin: New file
79533
79534         * lib/regex.c: Update from glibc.
79535
79536 2001-07-05  Jim Meyering  <meyering@lucent.com>
79537
79538         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79539         recommendation.
79540         (libfetish_a_SOURCES): Put all .h files here instead.
79541         Remove a thus-exposed (better checks in automake) duplicate and
79542         two unnecessary .h files.
79543
79544 2001-07-04  Jim Meyering  <meyering@lucent.com>
79545
79546         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79547         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79548         distcheck failure.
79549
79550 2001-07-02  Jim Meyering  <meyering@lucent.com>
79551
79552         The following changes were prompted by suggestions from Bruno Haible.
79553
79554         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79555         is now generated.
79556         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79557         definition of EXTRA_DIST.
79558         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79559         ensure that the generated file is created/updated whenever the list
79560         of $(unlocked_functions) is changed.
79561         (jm-glibc-io.m4): New rule.
79562         (unlocked-io.h): New rule -- currently unused.
79563
79564 2001-06-24  Jim Meyering  <meyering@lucent.com>
79565
79566         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79567         unmatched right bracket, rather than kludging it with an extra,
79568         falsely-matching quote in a comment.  Patch by Akim Demaille.
79569
79570 2001-06-11  Jim Meyering  <meyering@lucent.com>
79571
79572         * lib/regex.c: Update from GNU libc.
79573
79574 2001-05-27  Jim Meyering  <meyering@lucent.com>
79575
79576         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79577         Check for ut_type in struct utmp.
79578
79579 2001-05-27  Jim Meyering  <meyering@lucent.com>
79580
79581         * lib/readutmp.h (UT_TYPE): Define.
79582
79583 2001-05-24  Jim Meyering  <meyering@lucent.com>
79584
79585         * lib/argmatch.c: Include "quote.h".
79586         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79587         quote function.  Reported by Göran Uddeborg.
79588
79589 2001-05-22  Jim Meyering  <meyering@lucent.com>
79590
79591         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79592         now that we use the package-supplied version unconditionally.
79593         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79594
79595 2001-05-21  Jim Meyering  <meyering@lucent.com>
79596
79597         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79598         shell syntax errors.
79599
79600 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79601
79602         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79603
79604 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79605
79606         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79607         Don't bother to check library strftime, since
79608         we'll be using our own my_strftime function anyway.
79609         Define my_strftime instead of strftime.
79610
79611 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79612
79613         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79614         which is not yet declared.
79615
79616 2001-05-15  Jim Meyering  <meyering@lucent.com>
79617
79618         * m4/regex.m4: Use proper quoting so brackets appear in the test
79619         program.
79620         Reported by, and with help from, Bruno Haible.
79621
79622 2001-05-13  Jim Meyering  <meyering@lucent.com>
79623
79624         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79625         undefined.
79626
79627 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79628
79629         dirname code cleanup.  base_name now behaves more compatibly
79630         with POSIX basename when given file names that have trailing
79631         slashes, and similarly for dir_name.  Add new primitives
79632         base_len and dir_len.  Put the directory-name-related decls
79633         into dirname.h.
79634
79635         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79636         * lib/backupfile.c (base_name): Likewise.
79637         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79638         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79639         * lib/makepath.c (strip_trailing_slashes): Likewise.
79640         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79641         ISSLASH): Likewise.
79642         * lib/rename.c (strip_trailing_slashes): Likewise.
79643         * lib/same.c (base_name): Likewise.
79644         * lib/stripslash.c (ISSLASH): Likewise.
79645
79646         * lib/addext.c: Include <dirname.h> after size_t is defined.
79647         * lib/backupfile.c: Likewise.
79648
79649         * lib/addext.c (addext): Use base_len to trim redundant
79650         trailing slashes instead of doing it ourselves.
79651         But do not trim the last slash if it is not redundant.
79652
79653         * lib/backupfile.c (find_backup_file_name,
79654         max_backup_version): Use base_len instead of rolling it ourselves.
79655         Handle the case of "" and (on DOS) "C:" correctly.
79656
79657         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79658         needed. Include <string.h>, <dirname.h>.
79659         (base_name): Allow file names ending in slashes, other than names
79660         that are all slashes.  In this case, return the basename followed
79661         by the slashes.  This is more general, and can be used in places
79662         where the original base_name purposely had an assertion failure.
79663         (base_len): New function.
79664
79665         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79666         Do not include <assert.h>; no longer needed.
79667         Include xalloc.h.
79668         (memrchr): Remove decl.
79669         (dir_name_r): Remove.
79670         (dir_len): Renamed from dirlen.  All callers changed.
79671         Rewrite in terms of base_name, for simplicity and consistency.
79672         (dir_name): Never return NULL.  All callers changed.
79673         Do not include <stdlib.h> in test program; no longer needed.
79674         return 0; is fine for test program.
79675
79676         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79677         New macros.
79678         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79679
79680         * lib/path-concat.c (path_concat): Use base_len to compute
79681         base length, not strlen; this means we cannot rely on memcpy
79682         to null-terminate.
79683
79684         * lib/same.c (STREQ): Remove.
79685         (same_name): Handle the case where the basename ends in trailing '/'.
79686
79687         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79688         a slash was stripped.  Do not strip the last slash after a
79689         file system prefix.
79690
79691 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79692
79693         * lib/Makefile.am (libfetish_a_SOURCES):
79694         Add strftime.c, since we now compile it on all hosts.
79695
79696         * lib/strftime.c (my_strftime):
79697         Define to nstrftime if emacs, but only if my_strftime is not defined.
79698         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79699         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79700         Add one more extra argument: a nanoseconds value.
79701         All uses changed.
79702         (ns): New macro.
79703         (my_strftime function): Add %N format.
79704         (emacs_strftimeu): Renamed from emacs_strftime,
79705         with extra ut argument.
79706
79707 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79708
79709         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79710
79711 2001-04-21  Jim Meyering  <meyering@lucent.com>
79712
79713         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79714         doesn't interfere.
79715
79716 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79717
79718         * m4/ftruncate.m4: Check for chsize.
79719         Link with ftruncate.o unconditionally if ftruncate is missing.
79720         This was required when cross-compiling to i586-mingw32msvc.
79721
79722 2001-04-08  Jim Meyering  <meyering@lucent.com>
79723
79724         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79725         recomputed; that's necessary when the offset spans a DST transition.
79726         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79727
79728 2001-04-02  Jim Meyering  <meyering@lucent.com>
79729
79730         * lib/regex.h, regex.c: Update from GNU libc.
79731
79732 2001-03-24  Jim Meyering  <meyering@lucent.com>
79733
79734         * m4/jm-macros.m4: Require autoconf-2.49d.
79735
79736 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79737
79738         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79739
79740 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79741
79742         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79743
79744 2001-03-17  Jim Meyering  <meyering@lucent.com>
79745
79746         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79747         now that the version in autoconf is equivalent.
79748         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79749
79750         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79751         Suggestion from Akim Demaille.
79752
79753         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79754         (jm_PREREQ_TEMPNAME): New function.
79755
79756 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79757
79758         * lib/tempname.c (uint64_t): Define to uintmax_t if
79759         not defined, and if UINT64_MAX is not defined.
79760         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
79761         Reported by John David Anglin.
79762
79763 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
79764
79765         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
79766         resolve alias if codeset is empty.
79767         * lib/config.charset (BeOS): Use wildcard syntax.
79768
79769 2001-03-13  Jim Meyering  <meyering@lucent.com>
79770
79771         * lib/path-concat.c (path_concat)
79772         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
79773         concatenating e.g., `C:' and `foo'.
79774         From Bruno Haible.
79775
79776 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79777
79778         * lib/localcharset.c (locale_charset): Don't use
79779         setlocale(LC_CTYPE,NULL). Don't return NULL.
79780         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
79781
79782 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79783
79784         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
79785         support for DOS/DJGPP.
79786
79787 2001-03-01  Paul Eggert  <eggert@twinsun.com>
79788
79789         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
79790         lacks mkstemp.  Compile our own tempname.c if we compile our own
79791         mkstemp.c, as mkstemp relies on tempname.
79792
79793 2001-03-01  Jim Meyering  <meyering@lucent.com>
79794
79795         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
79796         AH_VERBATIM really does output its argument verbatim.
79797
79798 2001-02-28  Paul Eggert  <eggert@twinsun.com>
79799
79800         * lib/Makefile.am (libfetish_a_SOURCES):
79801         Add dup-safer.c, fopen-safer.c.
79802         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
79803
79804         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
79805         * lib/unistd-safer.h: New files.
79806
79807 2001-02-25  Paul Eggert  <eggert@twinsun.com>
79808
79809         The mkstemp replacement is taken from glibc 2.2.2, with some
79810         portability fixes for use outside glibc, as follows:
79811
79812         * lib/tempname.c (struct_stat64): New macro.
79813         (direxists, __gen_tempname): Use it.
79814         This avoids a portability problem with Solaris 8.
79815
79816         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
79817         (<stddef.h>, <stdint.h>, <string.h>):
79818         Include only if STDC_HEADERS || _LIBC.
79819         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
79820         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
79821         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
79822         (__set_errno): Define this macro if <errno.h> doesn't.
79823         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
79824         Define these macros if <stdio.h> doesn't.
79825         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
79826         Define these macros if <sys/stat.h>
79827         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
79828         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
79829         __xstat64): Define if not _LIBC.
79830         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
79831         (__gen_tempname): Invoke gettimeofday only if
79832         HAVE_GETTIMEOFDAY || _LIBC;
79833         otherwise, fall back on plain "time".
79834         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
79835
79836         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
79837
79838         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
79839
79840 2001-02-18  Paul Eggert  <eggert@twinsun.com>
79841
79842         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
79843
79844 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79845
79846         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
79847         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
79848         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
79849         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79850
79851 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79852
79853         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
79854         Remove workaround macros for hosts that have mbrtowc but not
79855         mbstate_t, as we now insist on proper declarations for both
79856         before using mbrtowc.
79857
79858 2001-02-17  Jim Meyering  <meyering@lucent.com>
79859
79860         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
79861         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
79862         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
79863         UnixWare 7.1.1.
79864
79865         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
79866         rather than AC_CACHE_VAL.
79867
79868 2001-02-17  Jim Meyering  <meyering@lucent.com>
79869
79870         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
79871         around included file name.
79872
79873         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
79874
79875         * lib/strftime.c: Update from GNU libc (the only changes were to
79876         comments).
79877
79878 2001-02-17  Jim Meyering  <meyering@lucent.com>
79879
79880         * lib/regex.c: Update from libc.
79881
79882 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
79883
79884         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
79885         clash.
79886
79887 2001-02-16  Paul Eggert  <eggert@twinsun.com>
79888
79889         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
79890         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
79891         Reported by Mark Hounschell via Paul Eggert.
79892
79893 2001-02-07  Jim Meyering  <meyering@lucent.com>
79894
79895         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
79896
79897 2001-02-05  Jim Meyering  <meyering@lucent.com>
79898
79899         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
79900         it includes the patch required for `large file' support with at least
79901         HP-UX's 10.20 /bin/cc.
79902
79903 2001-02-03  Jim Meyering  <meyering@lucent.com>
79904
79905         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
79906         AS_IF, now that it works once again (mysteriously).
79907         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79908
79909 2001-01-30  Jim Meyering  <meyering@lucent.com>
79910
79911         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
79912         * m4/chown.m4: Rename conftestchown to conftest.chown.
79913         * m4/rename.m4: s/conftestdir/conftest.d1/ and
79914         s/conftestdir2/conftest.d2/.
79915         * m4/utimes.m4: s/conftestdata/conftest.data/
79916         Inspired by Pavel Roskin's change in autoconf.
79917
79918 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
79919
79920         * lib/config.charset: Update for FreeBSD 4.2.
79921
79922 2001-01-27  Jim Meyering  <meyering@lucent.com>
79923
79924         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
79925         a use of AS_IF.
79926         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79927
79928 2001-01-26  Jim Meyering  <meyering@lucent.com>
79929
79930         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
79931         quotearg.c includes it.
79932
79933 2001-01-26  Jim Meyering  <meyering@lucent.com>
79934
79935         * lib/quotearg.c: Include stddef.h.
79936         * lib/quote.c: Include stddef.h.
79937         Reported by Axel Kittenberger.
79938
79939         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
79940         line in double quotes so that it evokes a better diagnostic.
79941         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
79942         Reported by Axel Kittenberger.
79943
79944 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
79945
79946         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
79947         as if it was a `charset'.
79948
79949 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79950
79951         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
79952         has const.
79953
79954 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79955
79956         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79957         to avoid a warning.  Add back 'const' to inptr.
79958
79959 2001-01-20  Jim Meyering  <meyering@lucent.com>
79960
79961         Be sure that headers are checked before used in code compiled
79962         for the type checks.
79963         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79964         In place of that, invoke jm_CHECK_ALL_TYPES.
79965         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79966         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79967         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79968         The check for ssize_t was mistakenly run before the test for unistd.h.
79969
79970         The configure-time check for stdbool.h was missing.
79971         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79972         (jm_PREREQ_HASH): New function.
79973
79974 2001-01-17  Jim Meyering  <meyering@lucent.com>
79975
79976         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79977         for autoconf-2.49c.
79978         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79979
79980 2001-01-16  Jim Meyering  <meyering@lucent.com>
79981
79982         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79983         From Bruno Haible.
79984
79985 2001-01-14  Jim Meyering  <meyering@lucent.com>
79986
79987         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79988         foo and bar.  Create conftestdir/ in the script, not in the C code.
79989         Remove directories in the script, not in the C code.
79990         Remove conftestdir{,2} before trying to create the directory.
79991         Make the entire configure script fail if the mkdir fails.
79992
79993 2001-01-14  Jim Meyering  <meyering@lucent.com>
79994
79995         * lib/rename.c: New file.  From Volker Borchert.
79996         Include stdlib.h, string.h or strings.h, and xalloc.h.
79997         Use strip_trailing_slashes rather than open-coding it.
79998
79999 2001-01-03  Paul Eggert  <eggert@twinsun.com>
80000
80001         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
80002
80003 2001-01-03  Jim Meyering  <meyering@lucent.com>
80004
80005         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
80006         of local `inptr' to avoid warning with some system declarations of
80007         iconv.
80008
80009 2001-01-02  Volker Borchert  <bt@teknon.de>
80010
80011         * m4/rename.m4: New file.
80012         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
80013
80014 2001-01-01  Jim Meyering  <meyering@lucent.com>
80015
80016         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
80017         even on systems with utmpx.h.  It's necessary for the declaration of
80018         utmp's ut_user member.  Reported by Andreas Jaeger.
80019
80020         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
80021         available. They are required for the declarations of getgrgid and
80022         getpwuid resp.
80023         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
80024         Reported by Andreas Jaeger.
80025
80026 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
80027
80028         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
80029         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
80030         so `make install' also works in VPATH builds.
80031
80032 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
80033
80034         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
80035         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
80036         can be used in subdirectories.
80037
80038 2000-12-29  Paul Eggert  <eggert@twinsun.com>
80039
80040         * lib/modechange.c: Do not assume that mode_t uses the
80041         traditional octal encoding.  E.g. "chmod 1 FOO" should set
80042         the other-execute bit of FOO even if S_IXOTH != 1.
80043
80044         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
80045         WOTH, XOTH, ALLM): New macros.
80046         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
80047          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
80048         Use them.
80049         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80050         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80051         (mode_compile):
80052         No need to use uintmax_t; unsigned long is long enough.
80053         Don't bother to get suffix since we don't use it.
80054
80055 2000-12-26  Jim Meyering  <meyering@lucent.com>
80056
80057         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
80058         better with autoheader.
80059
80060 2000-12-24  Jim Meyering  <meyering@lucent.com>
80061
80062         * lib/hash.c (is_prime): Return explicit boolean values.
80063         (hash_get_first): Return NULL to appease Irix5.6's 89.
80064         Reported by Nelson Beebe.
80065
80066 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
80067
80068         * lib/localcharset.c (locale_charset): Add support for Win32.
80069
80070 2000-12-18  Paul Eggert  <eggert@twinsun.com>
80071
80072         * lib/physmem.h, lib/physmem.c: New files.
80073
80074         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
80075         (noinst_HEADERS): Add physmem.h.
80076
80077         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
80078         't' for compatibility with Solaris 8 sort.
80079
80080 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
80081
80082         * lib/config.charset: Add support for BeOS.
80083
80084 2000-12-17  Jim Meyering  <meyering@lucent.com>
80085
80086         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80087         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80088
80089 2000-12-16  Jim Meyering  <meyering@lucent.com>
80090
80091         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80092         N and M) would have treated it like `chown N:N FILE'.
80093
80094         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80095
80096 2000-12-16  Jim Meyering  <meyering@lucent.com>
80097
80098         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80099         SHELLS_FILE to a file name that's useful on djgpp systems.
80100         Include stdlib.h.
80101         (ADDITIONAL_DEFAULT_SHELLS): Define.
80102         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80103         Based mostly on a patch from Prashant TR.
80104
80105 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80106
80107         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80108         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80109         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80110
80111 2000-12-08  Andreas Schwab  <schwab@suse.de>
80112
80113         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80114         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80115
80116 2000-12-07  Jim Meyering  <meyering@lucent.com>
80117
80118         * lib/stripslash.c (ISSLASH): Define.
80119         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80120         `/'.
80121         From Prashant TR.
80122
80123         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80124         (dir_name_r): Declare this function as static.
80125         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80126         manifest itself on a name containing a mix of slashes and
80127         backslashes.
80128         Make this function work with names starting with a DOS-style
80129         drive letter and colon prefix.
80130         (dir_name): Append `.' if necessary.
80131         Based mostly on patches from Prashant TR and Eli Zaretskii.
80132
80133         * lib/dirname.h (dir_name_r): Remove prototype.
80134
80135 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80136
80137         * m4/off_t-format.m4: Remove this file.
80138         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80139
80140 2000-12-06  Jim Meyering  <meyering@lucent.com>
80141
80142         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80143         replacement strtoull, we may well need the replacement strtoul, too.
80144         Check for declarations of strtoul and strtoull.
80145         Check for strtol.  Mainly as a cue to cause automake to include
80146         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80147         Check for limits.h -- strtol.c needs it.
80148
80149 2000-12-05  Jim Meyering  <meyering@lucent.com>
80150
80151         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80152
80153 2000-12-04  Jim Meyering  <meyering@lucent.com>
80154
80155         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80156         Also include memory.h, stdlib.h, unistd.h if appropriate.
80157         Reported by Andreas Jaeger (conflicting declaration of malloc).
80158
80159 2000-12-02  Jim Meyering  <meyering@lucent.com>
80160
80161         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80162         * m4/jm-macros.m4 (jm_MACROS): require it.
80163
80164 2000-12-02  Jim Meyering  <meyering@lucent.com>
80165
80166         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80167
80168 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80169
80170         * lib/memrchr.c: Include <config.h> before any system include file.
80171
80172 2000-11-30  Jim Meyering  <meyering@lucent.com>
80173
80174         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80175
80176 2000-11-30  Jim Meyering  <meyering@lucent.com>
80177
80178         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80179
80180 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80181
80182         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80183
80184 2000-11-26  Jim Meyering  <meyering@lucent.com>
80185
80186         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80187
80188 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80189
80190         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80191         size of (size_t) -1; it's not portable.
80192
80193 2000-11-17  Jim Meyering  <meyering@lucent.com>
80194
80195         * lib/strstr.c: Update from GNU libc.
80196
80197 2000-11-17  Akim Demaille  <akim@epita.fr>
80198
80199         * lib/obstack.h: Formatting changes.
80200         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80201         prevent type checking.
80202         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80203         cast the value to (void *): assigning a `foo *' to a `void *'
80204         variable is valid.
80205         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80206
80207 2000-11-16  Jim Meyering  <meyering@lucent.com>
80208
80209         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80210
80211 2000-11-11  Jim Meyering  <meyering@lucent.com>
80212
80213         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80214
80215 2000-11-10  Jim Meyering  <meyering@lucent.com>
80216
80217         * lib/obstack.h: Update from GNU libc.
80218         * lib/obstack.c: Likewise.
80219
80220 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80221
80222         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80223
80224 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80225
80226         * lib/getusershell.c (setusershell): Use rewind rather than
80227         fseek/fseeko, to avoid configuration hassles with fseeko.
80228         Don't bother opening SHELLS_FILE if shellstream is NULL;
80229         it's not necessary.
80230
80231 2000-11-05  Jim Meyering  <meyering@lucent.com>
80232
80233         * lib/makepath.h (make_dir): Declare.
80234         * lib/makepath.c (make_dir): Remove `static' attribute.
80235         Tweak a comment.
80236
80237 2000-11-04  Jim Meyering  <meyering@lucent.com>
80238
80239         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80240
80241 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80242
80243         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80244         last one in a bucket, advance to the next bucket.
80245
80246 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80247
80248         * lib/fnmatch.c: Do not comment out all the code if we are using
80249         the GNU C library, because in some cases we are replacing buggy
80250         code in the GNU C library itself.
80251
80252 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80253
80254         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80255         (regex_compile): Catch bogus \(\1\).
80256
80257 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80258
80259         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80260         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80261         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80262
80263 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80264
80265         * lib/error.h, getline.h, modechange.h:
80266         Remove "2000" from Copyright line, as the file hasn't been
80267         changed this year other than in the copyright notice.
80268
80269         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80270         was changed this year.
80271
80272 2000-10-29  Jim Meyering  <meyering@lucent.com>
80273
80274         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80275         renaming.
80276         * m4/ls-mntd-fs.m4: Likewise
80277
80278 2000-10-29  Jim Meyering  <meyering@lucent.com>
80279
80280         * lib/xstat.in: Fix grammar in comment.
80281
80282 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80283
80284         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80285         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80286         doesn't define __restrict_arr.
80287
80288 2000-10-28  Jim Meyering  <meyering@lucent.com>
80289
80290         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80291         (jm_PREREQ_MEMCHR): New function.
80292
80293 2000-10-28  Jim Meyering  <meyering@lucent.com>
80294
80295         * lib/memchr.c: Update from libc.
80296         Adjust for portability:
80297         [HAVE_STDLIB_H]: Include stdlib.h.
80298         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80299         Undef __memchr, too.
80300         [!weak_alias]: Define __memchr to memchr.
80301
80302         * lib/regex.c: Update from libc.
80303         * lib/regex.h: Likewise.
80304         * lib/getopt1.c: Likewise.
80305         * lib/memcmp.c: Likewise.
80306
80307         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80308         Avoid using fseek, when possible -- it's broken by design.
80309         Patch by Ulrich Drepper.
80310
80311 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80312
80313         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80314         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80315         Giving in to popular pressure to shut up the compiler with casts.
80316
80317 2000-10-26  Jim Meyering  <meyering@lucent.com>
80318
80319         * lib/strftime.c: Update from libc.
80320
80321 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80322
80323         * regex.c: More `unsigned char' -> `re_char' changes.
80324         Also change several `int' into `re_wchar_t'.
80325         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80326         (PUSH_FAILURE_POINTER): Don't cast any more.
80327         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80328         We want GCC to complain, since this piece of code makes
80329         re_match non-reentrant, which *should* be fixed.
80330         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80331         (EXTEND_BUFFER): Use RETALLOC.
80332         (SET_LIST_BIT): Don't cast.
80333         (re_wchar_t): New type.
80334         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80335         that those two functions will always properly return.
80336         (IMMEDIATE_QUIT_CHECK): Cast to void.
80337         (analyse_first): Use recursion rather than an explicit stack.
80338         (re_compile_fastmap): Can't fail anymore.
80339         (re_search_2): Don't check re_compile_fastmap for failure.
80340         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80341         Now also sets the new value (passed in a new argument).
80342         (re_match_2_internal): Use it.
80343         Also, use a new var `reg' of type size_t when looping through regs
80344         rather than reuse the inappropriate `mcnt'.
80345
80346 2000-10-25  Jim Meyering  <meyering@lucent.com>
80347
80348         * lib/obstack.c: Update from libc.
80349
80350 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80351
80352         * regex.c (regex_compile): Change the way of handling a range from
80353         a char less than 256 to a char not less than 256.
80354
80355 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80356
80357         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80358         NT-Emacs only.
80359         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80360         so that re_search functions only quit when callers expect them to.
80361
80362 2000-10-23  Jim Meyering  <meyering@lucent.com>
80363
80364         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80365         wrong.  That set_locale call must not have any side effects.
80366         From Paul Eggert.
80367
80368 2000-10-22  Jim Meyering  <meyering@lucent.com>
80369
80370         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80371         [CYCLIC]: Remove now-unused definition.
80372
80373         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80374         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80375         Suggestion from Ulrich Drepper.
80376
80377 2000-10-21  Jim Meyering  <meyering@lucent.com>
80378
80379         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80380         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80381         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80382
80383 2000-10-21  Jim Meyering  <meyering@lucent.com>
80384
80385         * lib/dirname.c (memrchr): Declare if necessary.
80386         (dir_name): Remove the restriction that there be no
80387         trailing slashes.  Now, this code skips past them, effectively
80388         ignoring them.
80389         [TEST_DIRNAME] (main): New unit tests.
80390
80391         * lib/memrchr.c: New file from GNU libc.
80392         Undef __memrchr, too.
80393         [!weak_alias]: Define __memrchr to memrchr.
80394         Guard weak_alias use with `#ifdef weak_alias'.
80395
80396 2000-10-21  Jim Meyering  <meyering@lucent.com>
80397
80398         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80399         (dir_name): Use dir_name_r.
80400         * lib/dirname.h (dir_name_r): Declare it.
80401
80402 2000-10-17  Jim Meyering  <meyering@lucent.com>
80403
80404         * lib/quote.h (PARAMS): Define and use.
80405         Reported by Akim Demaille.
80406
80407         * lib/getopt.c: Update from libc.
80408
80409 2000-10-16  Jim Meyering  <meyering@lucent.com>
80410
80411         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80412         setlocale.
80413         From Jan Fedak.
80414
80415 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80416
80417         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80418
80419 2000-09-25  Jim Meyering  <meyering@lucent.com>
80420
80421         * lib/md5.h (rol): Define (from GnuPG).
80422
80423         * lib/sha.c: Give credit (GnuPG) where due.
80424         (M): Use rol rather than open-coding it.
80425         Add a FIXME comment.
80426
80427 2000-09-21  Jim Meyering  <meyering@lucent.com>
80428
80429         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80430         Reported by Michael Stone.
80431
80432 2000-09-20  Jim Meyering  <meyering@lucent.com>
80433
80434         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80435         (noinst_HEADERS): Add sha.h.
80436         Based on code from Scott G. Miller and from GnuPG.
80437
80438 2000-09-18  Jim Meyering  <meyering@lucent.com>
80439
80440         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80441         LIBS. Otherwise, everyone ends up linking with -lelf for some
80442         configurations.
80443         Reported by Mike Stone.
80444
80445 2000-09-15  Jim Meyering  <meyering@lucent.com>
80446
80447         * lib/regex.c: Update from libc.
80448
80449 2000-09-10  Jim Meyering  <meyering@lucent.com>
80450
80451         * lib/getopt.c (_getopt_internal): Update from glibc.
80452
80453 2000-09-09  Jim Meyering  <meyering@lucent.com>
80454
80455         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80456         think it should be used as a general replacement for isascii.
80457         * lib/fnmatch.c: Likewise.
80458         * lib/mbswidth.c: Likewise
80459         * lib/regex.c: Likewise.
80460
80461         Don't use atoi.
80462         * lib/userspec.c: Include sys/param.h and limits.h.
80463         Include xstrtol.h.
80464         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80465         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80466         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80467         UID, GID.  Check range.
80468
80469 2000-09-06  Jim Meyering  <meyering@lucent.com>
80470
80471         * lib/getopt.c (_getopt_internal): Update from glibc.
80472
80473 2000-08-30  Jim Meyering  <meyering@lucent.com>
80474
80475         * lib/strftime.c: Merge in changes from GNU libc.
80476
80477 2000-08-26  Jim Meyering  <meyering@lucent.com>
80478
80479         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80480         * m4/fpending.m4: New file.
80481
80482 2000-08-26  Jim Meyering  <meyering@lucent.com>
80483
80484         * lib/closeout.c: Include "__fpending.h".
80485         (close_stdout_status): Return right away if there's nothing to flush.
80486
80487         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80488         * lib/__fpending.c: New file.
80489         * lib/__fpending.h: New file.
80490
80491 2000-08-20  Jim Meyering  <meyering@lucent.com>
80492
80493         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80494         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80495         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80496
80497 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80498
80499         Improve fileutils installation on systems where running
80500         programs (like install) can't be unlinked.
80501         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80502         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80503
80504 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80505
80506         Standardize on "memory exhausted" instead of "Memory exhausted"
80507         or "virtual memory exhausted".
80508         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80509         "virtual memory exhausted".
80510         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80511         our own message.
80512         * lib/userspec.c (parse_user_spec): Likewise.
80513         * lib/bumpalloc.h: comment fix
80514         * lib/same.c, userspec.c: Include xalloc.h.
80515
80516         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80517         not char *const and pointing to a constant array.
80518         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80519         (xrealloc): Comment fix.
80520
80521         * lib/userspec.c (parse_user_spec):
80522         Don't translate a message until just before returning,
80523         to avoid unnecessary translation.
80524
80525 2000-08-07  Jim Meyering  <meyering@lucent.com>
80526
80527         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80528         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80529         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80530         getgroups.c, gethostname.c, getopt.h, group-member.c,
80531         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80532         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80533         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80534         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80535         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80536         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80537         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80538         yesno.c: Back out Copyright date changes for each file with no change
80539         this year.  This eases coordination with other programs using the same
80540         source code modules.  From Paul Eggert.
80541
80542 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80543
80544         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80545         not char, for compatibility with glibc 2.1.3 strftime.c.
80546
80547 2000-08-03  Greg McGary  <greg@mcgary.org>
80548
80549         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80550         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80551         (EXTEND_BUFFER): Use them.
80552
80553 2000-08-01  Jim Meyering  <meyering@lucent.com>
80554
80555         * lib/dirname.c (ISSLASH): Define.
80556         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80557         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80558         both `\' and `/' may be use as path separators.
80559         Based on a patch from Prashant TR.
80560
80561 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80562
80563         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80564         slot vector a constant, since it might get modified.
80565
80566 2000-07-31  Jim Meyering  <meyering@lucent.com>
80567
80568         * lib/xmalloc.c: Use `virtual memory exhausted', not
80569         `Memory exhausted'.
80570         * lib/obstack.c (print_and_abort): Likewise.
80571
80572 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80573
80574         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80575         buffer, so that the caller can always quote one small
80576         component of a "memory exhausted" message in slot 0.
80577         From a suggestion by Jim Meyering.
80578
80579 2000-07-30  Jim Meyering  <meyering@lucent.com>
80580
80581         * lib/makepath.c (make_path): Quote the other instance, too.
80582
80583         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80584         (STATIC_BUF_SIZE): Define.
80585         (quotearg_n_options): Use only statically allocated storage when
80586         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80587         than STATIC_BUF_SIZE.
80588
80589 2000-07-29  Jim Meyering  <meyering@lucent.com>
80590
80591         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80592         * lib/dirname.c (dir_name): Likewise.
80593
80594         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80595         `/'.
80596
80597         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80598         (dir_name): Assert that there are no trailing slashes.
80599
80600 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80601
80602         * lib/mbswidth.h (mbswidth): Add a flags argument.
80603         (mbswidth): New declaration.
80604         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80605         * lib/mbswidth.c (mbswidth): Add a flags argument.
80606         (mbsnwidth): New function.
80607
80608 2000-07-24  Jim Meyering  <meyering@lucent.com>
80609
80610         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80611
80612 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80613
80614         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80615
80616 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80617
80618         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80619         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80620         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80621         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80622         invoke multibyte primitives.
80623
80624 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80625
80626         * lib/quotearg.c:
80627         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80628         so that mbstate_t is always defined.
80629
80630         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80631         be 1 in at least one GCC installation, and this configuration
80632         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80633         performance on hosts that have mbrtowc but have only unibyte
80634         locales, but I assume these hosts are rare.
80635
80636 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80637
80638         * lib/mbswidth.c (_XOPEN_SOURCE):
80639         Don't define; this causes problems on Solaris 7.
80640         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80641
80642 2000-07-23  Jim Meyering  <meyering@lucent.com>
80643
80644         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80645         too: getgrgid, getpwuid, getuid.
80646
80647 2000-07-23  Jim Meyering  <meyering@lucent.com>
80648
80649         * lib/basename.c (base_name): Add an assertion.
80650
80651 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80652
80653         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80654         shadow its mbsinit function.
80655
80656 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80657
80658         * lib/mbswidth.h: New file.
80659         * lib/mbswidth.c: New file.
80660         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80661         (noinst_HEADERS): Add mbswidth.h.
80662
80663 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80664
80665         * lib/config.charset: Add support for FreeBSD. Improve support for
80666         HP-UX and IRIX 6.
80667
80668 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80669
80670         * m4/mbswidth.m4: New file.
80671         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80672
80673 2000-07-15  Jim Meyering  <meyering@lucent.com>
80674
80675         * lib/makepath.c: Include quote.h.
80676         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80677         corresponding argument in a `quote (...)' call.
80678         Give better diagnostics.
80679
80680         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80681         (noinst_HEADERS): Add quote.h.
80682
80683         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80684         from tar's src/misc.c.
80685         * lib/quote.h: New file.  Prototypes for same.
80686
80687 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80688
80689         From a suggestion by Bruno Haible.
80690         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80691         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80692         to decide whether to define the BeOS workaround macro;
80693         this adjusts to the change to AC_MBSTATE_T.
80694
80695 2000-07-14  Jim Meyering  <meyering@lucent.com>
80696
80697         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80698         jm_AC_TYPE_UINTMAX_T.
80699
80700 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80701
80702         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80703
80704         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80705         quotearg_buffer_restyled): Add support for
80706         clocale_quoting_style.  Undo previous change to
80707         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80708         and "{RIGHT QUOTATION MARK}" msgids.
80709
80710 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80711
80712         From a suggestion by Bruno Haible.
80713         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80714         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80715         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80716         and mbstate_t, to a single-part test that simply defines mbstate_t.
80717         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80718         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80719
80720 2000-07-10  Jim Meyering  <meyering@lucent.com>
80721
80722         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80723
80724         * m4/gnu-source.m4: Output to confdefs.h directly.
80725         Suggestion from Akim Demaille.
80726
80727 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80728
80729         The old behavior of quoting `like this' doesn't look good with
80730         newer, ISO-style fonts.  See:
80731         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80732
80733         Instead, quote "like this" by default.  Let the translator
80734         tailor the locale-specific quoting behavior by providing
80735         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80736
80737         * lib/quotearg.c (N_): New macro.
80738         (gettext_default): New function.
80739         (quotearg_buffer_restyled): Use
80740         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80741         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80742
80743 2000-07-09  Jim Meyering  <meyering@lucent.com>
80744
80745         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80746         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80747
80748         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80749         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80750
80751 2000-07-09  Jim Meyering  <meyering@lucent.com>
80752
80753         * lib/Most files: Update copyright dates to include 2000.
80754
80755 2000-07-08  Jim Meyering  <meyering@lucent.com>
80756
80757         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80758         if not defined.
80759         (xgethostname): Remove now-unnecessary #ifdef.
80760         Move declaration of `err' into loop where it's used.
80761
80762 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80763         and Bruno Haible  <haible@clisp.cons.org>
80764
80765         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
80766         only if the test for an object-type mbstate_t fails.  This
80767         prevents us from mistakenly reporting that mbstate_t is a
80768         system object type after we "#define mbstate_t int" to work
80769         around its lack.
80770
80771 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80772         and Bruno Haible  <haible@clisp.cons.org>
80773
80774         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
80775
80776 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80777
80778         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
80779         to strerror_r.
80780         Include <ctype.h> for use of isalpha.
80781
80782 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80783
80784         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
80785         by allocating a larger buffer. Test the gethostname return value for
80786         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
80787         returns an error and ENAMETOOLONG isn't defined.
80788
80789 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80790
80791         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
80792         dimension.
80793
80794 2000-07-04  Jim Meyering  <meyering@lucent.com>
80795
80796         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
80797         of the deprecated AC_CHECKING.
80798
80799 2000-07-04  Jim Meyering  <meyering@lucent.com>
80800
80801         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
80802         Reported by Bruno Haible.
80803
80804 2000-07-04  Jim Meyering  <meyering@lucent.com>
80805
80806         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
80807         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
80808         lacks mbrtowc.
80809
80810 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80811
80812         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
80813         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
80814
80815 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80816         and Bruno Haible  <haible@clisp.cons.org>
80817
80818         * lib/quotearg.c (mbrtowc):
80819         Assign to *pwc, and return 1 only if result is nonzero.
80820         (iswprint): Use ISPRINT when substituting our own mbrtowc.
80821
80822 2000-07-03  Jim Meyering  <meyering@lucent.com>
80823
80824         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
80825
80826 2000-07-03  Jim Meyering  <meyering@lucent.com>
80827
80828         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
80829         This is necessary to get a definition of e.g., UTMP_FILE on
80830         HP-UX 10.20.
80831         From Bob Proulx.
80832
80833 2000-07-02  Jim Meyering  <meyering@lucent.com>
80834
80835         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
80836
80837         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
80838         AC_LIBOBJ(function_name).
80839         * m4/chown.m4: Likewise.
80840         * m4/fnmatch.m4: Likewise.
80841         * m4/ftruncate.m4: Likewise.
80842         * m4/getgroups.m4: Likewise.
80843         * m4/getline.m4: Likewise.
80844         * m4/group-member.m4: Likewise.
80845         * m4/jm-macros.m4: Likewise.
80846         * m4/lstat.m4: Likewise.
80847         * m4/malloc.m4: Likewise.
80848         * m4/memcmp.m4: Likewise.
80849         * m4/nanosleep.m4: Likewise.
80850         * m4/putenv.m4: Likewise.
80851         * m4/realloc.m4: Likewise.
80852         * m4/regex.m4: Likewise.
80853         * m4/stat.m4: Likewise.
80854         * m4/strftime.m4: Likewise.
80855
80856 2000-07-02  Jim Meyering  <meyering@lucent.com>
80857
80858         * lib/quotearg.c (mbstate_t): Don't define here.
80859
80860 2000-07-02  Jim Meyering  <meyering@lucent.com>
80861
80862         * lib/nanosleep.c (SIGCONT): Define if not already defined.
80863
80864 2000-07-01  Jim Meyering  <meyering@lucent.com>
80865
80866         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
80867
80868 2000-07-01  Jim Meyering  <meyering@lucent.com>
80869
80870         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
80871         problem.
80872
80873 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80874
80875         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
80876         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
80877
80878 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80879
80880         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
80881         per change in ../m4/ls-mntd-fs.m4.
80882         (read_filesystem_list): Ignore symbolic links.
80883
80884 2000-06-29  Jim Meyering  <meyering@lucent.com>
80885
80886         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
80887         for declaration of strcmp.
80888
80889         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
80890
80891         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
80892         Avoid warning by casting result to `char *' to remove `const'.
80893
80894 2000-06-28  Jim Meyering  <meyering@lucent.com>
80895
80896         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
80897         included by quotearg.c, for which we perform this test.  From
80898         Bruno Haible.
80899
80900 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80901
80902         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
80903         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
80904         <utmpx.h> exists, put readutmp.o into LIBOBJS.
80905
80906 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80907
80908         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
80909
80910 2000-06-26  Paul Eggert  <eggert@twinsun.com>
80911
80912         savedir now sets errno on failure and invokes xmalloc to get memory.
80913         Fix a couple of other minor bugs while we're at it.
80914
80915         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
80916         (NAMLEN): Remove macro.
80917         (malloc, realloc): Remove decls.
80918         (stpcpy): Likewise.
80919         ("xalloc.h"): Include.
80920         (NAME_SIZE_DEFAULT): New macro.
80921         (savedir): Use xmalloc / xrealloc to allocate memory.
80922         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
80923         Skip "" directory entries.
80924         Use strlen to calculate directory entry length, since the old method
80925         is rarely used these days and isn't worth supporting.
80926         Don't use a pointer after freeing it.
80927         Check for integer overflow when calculating allocation size.
80928         Use memcpy to copy entries, instead of stpcpy.
80929         Set errno properly when returning NULL.
80930         Check for readdir error.
80931
80932 2000-06-26  Jim Meyering  <meyering@lucent.com>
80933
80934         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
80935
80936 2000-06-25  Jim Meyering  <meyering@lucent.com>
80937
80938         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
80939         Linux header bug when _XOPEN_SOURCE is defined to 500.
80940
80941 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80942
80943         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
80944         deficiency.
80945
80946 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80947
80948         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
80949         Include xalloc.h.
80950         Don't include <stdlib.h>.  Don't declare malloc, realloc.
80951
80952 2000-06-24  Jim Meyering  <meyering@lucent.com>
80953
80954         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80955         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80956         for which strerror does return char*, but which lacks a conveniently
80957         accessible declaration of the function.  If the compile-test says
80958         strerror_r doesn't work, then resort to a `run'-test that works on
80959         BeOS and segfaults on DEC Unix.
80960
80961 2000-06-24  Jim Meyering  <meyering@lucent.com>
80962
80963         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80964
80965 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80966
80967         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80968         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80969
80970 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80971
80972         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80973         (mbrtowc, mbstate_t): Define substitutes if
80974         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80975         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80976         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80977
80978 2000-06-23  Jim Meyering  <meyering@lucent.com>
80979
80980         * m4/afs.m4: Add missing AC_MSG_RESULT.
80981         Reported by Bruno Haible.
80982
80983         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80984         Suggestion from Bruno Haible.
80985
80986 2000-06-23  Jim Meyering  <meyering@lucent.com>
80987
80988         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80989
80990 2000-06-21  Jim Meyering  <meyering@lucent.com>
80991
80992         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80993
80994 2000-06-21  Jim Meyering  <meyering@lucent.com>
80995
80996         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
80997         (noinst_HEADERS): Add getstr.h.
80998
80999         * lib/getline.c (getstr): Move into a separate file.
81000         * lib/getstr.c (getstr): New file, extracted from getline.c, with
81001         the following changes: new parameter, delim2; both delim[12]
81002         parameters have type `int', not `char'.  The latter would lose
81003         with 8-bit delimiters.
81004         * lib/getstr.h: New file.
81005
81006 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81007
81008         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
81009         than 1024, return a memory chunk of least possible size, instead
81010         of size PATH_MAX + 2. In the loop, increment the size proportionally.
81011         Use free/xmalloc instead of xrealloc to avoid copying for very long
81012         paths.
81013
81014 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81015
81016         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
81017         the empty string.
81018
81019 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81020
81021         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
81022         address, not strdup.  Include <stdlib.h> and don't declare free().
81023
81024 2000-06-19  Jim Meyering  <meyering@lucent.com>
81025
81026         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
81027
81028 2000-06-18  Jim Meyering  <meyering@lucent.com>
81029
81030         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
81031
81032         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
81033         `checking whether...' message to be consistent with that of the
81034         lstat test.
81035
81036 2000-06-18  Jim Meyering  <meyering@lucent.com>
81037
81038         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
81039         Besides, these days every porting target provides a mkdir function.
81040
81041         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
81042         needed. (this snippet comes from src/system.h).
81043
81044 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
81045
81046         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
81047
81048 2000-06-15  Paul Eggert  <eggert@twinsun.com>
81049
81050         * lib/human.c (adjust_value): New function.
81051         (human_readable_inexact): Apply rounding style even when
81052         printing approximate values.
81053
81054 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81055
81056         * lib/human.c (human_readable_inexact): Allow an input block
81057         size that is not a multiple of the output block size, and vice versa.
81058         Reported by Piergiorgio Sartor.
81059
81060 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81061
81062         * lib/getdate.y (get_date): Apply relative times after time
81063         zone indicator, not before.  Reported by Todd A. Jacobs.
81064
81065 2000-06-13  Jim Meyering  <meyering@lucent.com>
81066
81067         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
81068
81069         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
81070
81071 2000-06-12  Paul Eggert  <eggert@twinsun.com>
81072
81073         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
81074
81075 2000-06-12  Jim Meyering  <meyering@lucent.com>
81076
81077         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
81078         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
81079         optional argument.
81080         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
81081         the optional argument, `lib'.
81082
81083 2000-06-08  Jim Meyering  <meyering@lucent.com>
81084
81085         * m4/largefile.m4: Remove file (now that it's part of autoconf).
81086
81087 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81088
81089         Rewrite largefile configuration so that we don't need to run
81090         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81091         AC_CANONICAL_HOST in configure.in -- jmm]
81092
81093         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81094         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81095         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81096         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81097         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81098         All uses changed.
81099         Instead of inspecting the output of getconf, try to compile the
81100         test program without and with the macro definition.
81101         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81102         for getconf.  Instead, check for the needed flags by compiling
81103         test programs.
81104
81105 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81106
81107         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81108
81109 2000-06-04  Jim Meyering  <meyering@lucent.com>
81110
81111         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81112         SunOS 4.1.4 for which gid_t is an unsigned type.
81113
81114 2000-06-03  Jim Meyering  <meyering@lucent.com>
81115
81116         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81117         now that autoconf requires that.
81118
81119         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81120         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81121         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81122
81123 2000-06-03  Jim Meyering  <meyering@lucent.com>
81124
81125         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81126
81127 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81128
81129         * m4/glibc21.m4: New file.
81130         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81131
81132 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81133
81134         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81135         newer, don't install charset.alias.
81136         * lib/config.charset: Change the Linux/glibc rules so they become empty
81137         on glibc-2.1 or newer.
81138
81139 2000-06-02  Jim Meyering  <meyering@lucent.com>
81140
81141         * lib/mountlist.c: Back out last change.  Instead, do this...
81142         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81143         me_dummy member using the same `ignore'-testing code.
81144         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81145         fs_type strings.
81146         From Mark D. Roth.
81147
81148 2000-05-29  Jim Meyering  <meyering@lucent.com>
81149
81150         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81151         mounts with the `ignore' attribute.  Based on a patch from
81152         Mark D. Roth.
81153
81154 2000-05-28  Jim Meyering  <meyering@lucent.com>
81155
81156         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81157         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81158         * m4/stat.m4: Likewise.
81159         * m4/lstat.m4: Likewise.
81160         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81161
81162         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81163         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81164
81165 2000-05-26  Jim Meyering  <meyering@lucent.com>
81166
81167         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81168
81169 2000-05-24  Jim Meyering  <meyering@lucent.com>
81170
81171         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81172         autoconf requires that.
81173         * m4/lib-check.m4: Likewise.
81174         * m4/jm-macros.m4: Likewise.
81175         * m4/strftime.m4: Likewise.
81176
81177         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81178         AC_CHECK_DECLS, now that autoconf requires that.
81179
81180 2000-05-22  Jim Meyering  <meyering@lucent.com>
81181
81182         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81183         * m4/lstat.m4: Likewise.
81184
81185 2000-05-22  Jim Meyering  <meyering@lucent.com>
81186
81187         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81188
81189 2000-05-20  Jim Meyering  <meyering@lucent.com>
81190
81191         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81192         (jm_PREREQ): Use it.
81193
81194 2000-05-18  Jim Meyering  <meyering@lucent.com>
81195
81196         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81197         back, too, since it may have been modified by allocate_entry.
81198         (hash_delete): Rewrite to use neither the assignment operator
81199         nor the comma operator in an if-expression.
81200
81201 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81202
81203         * lib/closeout.c:
81204         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81205         Remove; no longer needed.
81206         "quotearg.h": Add include.
81207         (file_name): Do not bother to explicitly initialize to NULL; it's less
81208         efficient on some hosts.
81209         (close_stdout_status): Remove test as to whether stdout was already
81210         closed; it breaks for the case "echo x | sort >&-".
81211         Quote file name colons.
81212         Do not assume that _("write error") lacks format strings.
81213
81214 2000-05-15  Jim Meyering  <meyering@lucent.com>
81215
81216         * lib/version-etc.c (version_etc_copyright): Update the copyright
81217         string used in all --version output.
81218
81219 2000-05-14  Jim Meyering  <meyering@lucent.com>
81220
81221         * lib/closeout.c (close_stdout_set_file_name): New function.
81222         (close_stdout_status): Use new file-scoped global.
81223         Return right away if fstat says the stdout file descriptor is invalid.
81224         * lib/closeout.h (close_stdout_set_file_name): Declare.
81225
81226 2000-05-10  Jim Meyering  <meyering@lucent.com>
81227
81228         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81229         (close_stdout_set_status): New function.
81230         * lib/closeout.h (close_stdout_set_status): Declare.
81231
81232 2000-05-09  Jim Meyering  <meyering@lucent.com>
81233
81234         * m4/gettext.m4: Rename this...
81235         * m4/libintl.m4: ...to this.
81236
81237 2000-05-08  Jim Meyering  <meyering@lucent.com>
81238
81239         * lib/long-options.c: Don't include closeout.h.
81240         (parse_long_options): Don't call close_stdout for --version.
81241
81242 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81243
81244         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81245         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81246         2.1.3 bug.  This avoids a clash when files like regex.c define
81247         _GNU_SOURCE.
81248
81249 2000-05-06  Jim Meyering  <meyering@lucent.com>
81250
81251         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81252         (AC_REPLACE_FUNCS): Add strnlen.
81253
81254         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81255         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81256
81257         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81258         AC_SEARCH_LIBS call for nanosleep.
81259         (LIB_NANOSLEEP): Set and AC_SUBST.
81260
81261 2000-05-06  Jim Meyering  <meyering@lucent.com>
81262
81263         * lib/strnlen.c: Undefine __strnlen and strnlen.
81264         [!weak_alias]: Define __strnlen to strnlen.
81265
81266         * lib/atexit.c: New file, from libiberty.
81267
81268 2000-05-06  Jim Meyering  <meyering@lucent.com>
81269
81270         * lib/closeout.c (close_stdout_status): Also check for errors on the
81271         stderr stream.
81272
81273 2000-05-05  Jim Meyering  <meyering@lucent.com>
81274
81275         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81276         AC_SEARCH_LIBS call for clock_gettime.
81277         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81278
81279         * m4/search-libs.m4: Update from autoconf.
81280
81281         su doesn't work on Solaris 2.6.
81282         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81283         <shadow.h>.  Reported by Dragos Harabor.
81284
81285 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81286
81287         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81288         memcpy instead of xmalloc, xrealloc, path_concat.
81289         (locale_charset): Treat empty environment variables as absent.
81290         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81291
81292 2000-05-04  Jim Meyering  <meyering@lucent.com>
81293
81294         * lib/getopt.c: Update from glibc.
81295         * lib/obstack.c: Likewise.
81296         * lib/obstack.h: Likewise.
81297         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81298         file
81299
81300         * lib/regex.h: Likewise.
81301         * lib/strndup.c: Likewise.
81302         * lib/strnlen.c: New file, from glibc.
81303
81304 2000-05-03  Jim Meyering  <meyering@lucent.com>
81305
81306         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81307
81308 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81309
81310         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81311         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81312         compile-time test, rather than inspecting host and OS, to
81313         decide whether to define _LARGEFILE_SOURCE.
81314
81315 2000-05-01  Jim Meyering  <meyering@lucent.com>
81316
81317         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81318
81319         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81320         Based on a patch from Bruno Haible.
81321
81322 2000-05-01  Jim Meyering  <meyering@lucent.com>
81323
81324         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81325
81326 2000-04-29  Jim Meyering  <meyering@lucent.com>
81327
81328         * lib/path-concat.c: Declare strdup only if it's not defined.
81329         * lib/canon-host.c: Likewise.
81330
81331 2000-04-28  Jim Meyering  <meyering@lucent.com>
81332
81333         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81334         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81335         is included first, then limits.h is included by locale.h by libintl.h.
81336         From John David Anglin.
81337
81338 2000-04-25  Jim Meyering  <meyering@lucent.com>
81339
81340         * lib/makepath.c (S_IRWXUGO): Define.
81341         (make_path): Always perform explicit chmod if MODE specifies any
81342         of the `special' permission bits.  Prompted by a bug report against
81343         install from Mate Wierdl and Joost van Baal.
81344
81345 2000-04-18  Jim Meyering  <meyering@lucent.com>
81346
81347         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81348         (jm_PREREQ): Use it.
81349
81350 2000-04-18  Jim Meyering  <meyering@lucent.com>
81351
81352         * lib/README: New file.
81353
81354         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81355         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81356
81357 2000-04-17  Jim Meyering  <meyering@lucent.com>
81358
81359         Get it right :-)
81360         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81361         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81362         Suggestion from Akim Demaille.
81363
81364 2000-04-17  Jim Meyering  <meyering@lucent.com>
81365
81366         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81367         the definition of it to rpl_strftime also defined-away the system's
81368         declaration.
81369
81370 2000-04-15  Jim Meyering  <meyering@lucent.com>
81371
81372         Use `C' to denote so-called `contiguous' files, the same way
81373         that tar does.
81374         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81375         (ftypelet): Use S_ISCTG.
81376         From Michael Deutschmann.
81377
81378 2000-04-14  Jim Meyering  <meyering@lucent.com>
81379
81380         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81381         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81382         clobbered.
81383
81384 2000-04-14  Jim Meyering  <meyering@lucent.com>
81385
81386         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81387
81388 2000-04-13  Jim Meyering  <meyering@lucent.com>
81389
81390         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81391         AH_VERBATIM to insert required #ifndef into config.h.in.
81392         Suggestion from Akim Demaille.
81393
81394 2000-04-12  Jim Meyering  <meyering@lucent.com>
81395
81396         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81397         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81398         Christian Krackowizer.
81399
81400         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81401         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81402         (AC_SYS_LARGEFILE): Require.
81403         (AM_C_PROTOTYPES): Require.
81404
81405 2000-04-08  Jim Meyering  <meyering@lucent.com>
81406
81407         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81408         names don't conflict.  Reported by Eli Zaretskii.
81409
81410 2000-04-07  Jim Meyering  <meyering@lucent.com>
81411
81412         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81413         sys/types.h, to work around system header problems on AIX 3.2.5.
81414         From Bruno Haible.
81415
81416 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81417
81418         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81419         bug.  Deal with the different error behavior of Irix iconv.
81420
81421 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81422
81423         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81424         IRIX if the installer said otherwise.
81425
81426 2000-04-05  Jim Meyering  <meyering@lucent.com>
81427
81428         Portability tweaks required for ultrix4.3.
81429         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81430         (jm_CHECK_DECLS): Add getutent to the list of functions.
81431         (_jm_DECL_HEADERS): Add utmpx.h.
81432         From John David Anglin.
81433
81434         * m4/strftime.m4: Back out the 2000-04-02 change.
81435         Instead of that change, simply undefine putenv in the test program.
81436
81437 2000-04-05  Jim Meyering  <meyering@lucent.com>
81438
81439         Portability tweaks required for ultrix4.3.
81440         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81441         getutent.
81442         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81443         * lib/canon-host.c: Declare strdup.
81444         * lib/path-concat.c: Likewise.
81445         From John David Anglin.
81446
81447 2000-04-04  Jim Meyering  <meyering@lucent.com>
81448
81449         Be more DOS 8.3-friendly.
81450         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81451         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81452         * lib/Makefile.am: Reflect renaming.
81453         Reported by Eli Zaretskii.
81454
81455         Use a temporary file name that won't clash with `charset.alias'
81456         in the DOS 8.3 name space.
81457         * lib/Makefile.am (charset_tmp): Define.
81458         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81459         (uninstall-local): Likewise.
81460         Reported by Eli Zaretskii.
81461
81462 2000-04-03  Jim Meyering  <meyering@lucent.com>
81463
81464         * m4/gettext.m4: Fix typo in comment.
81465
81466         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81467         textutils/configure.in).  Suggestion from Paul Eggert.
81468         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81469
81470 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81471
81472         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81473         variable in the shell rather than using putenv, which isn't
81474         portable.  This avoids the configure-time inter-test dependency
81475         on the potentially-renamed putenv function.
81476
81477 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81478
81479         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81480         before checking struct stat.st_blksize, so that
81481         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81482
81483 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81484
81485         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81486         since strftime.c uses HAVE_STRFTIME to decide whether to use
81487         the underlying strftime.
81488
81489 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81490
81491         * lib/time/strftime.c (my_strftime): Make sure we call the system
81492         strftime, not ourselves, when invoking the underlying strftime.
81493
81494 2000-03-24  Jim Meyering  <meyering@lucent.com>
81495
81496         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81497         (charset_alias): Define.
81498         (install-exec-local): Factor out common code.
81499         (uninstall-local): Split lines longer than 80.
81500         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81501         (SUFFIXES): Define.
81502         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81503         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81504
81505 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81506
81507         * lib/config.charset: Output a line containing "Packages using this
81508         file".
81509         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81510         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81511         ref-del.sed): New rules.
81512
81513 2000-03-17  Jim Meyering  <meyering@lucent.com>
81514
81515         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81516         Otherwise, include <strings.h>
81517
81518 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81519
81520         * lib/unicodeio.c (utf8_wctomb): New function.
81521         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81522         format instead of in UCS-4 with platform dependent endianness.
81523
81524 2000-03-10  Jim Meyering  <meyering@lucent.com>
81525
81526         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81527         From Marco Franzen.
81528
81529 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81530
81531         * lib/savedir.c (savedir): Work even if directory size is
81532         negative; this can happen with some screwy NFS configurations.
81533
81534 2000-03-06  Jim Meyering  <meyering@lucent.com>
81535
81536         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81537         if it's NULL (because we ran out of memory).  From Bruno Haible.
81538
81539 2000-03-05  Jim Meyering  <meyering@lucent.com>
81540
81541         * lib/localcharset.c ("path-concat.h"): Include.
81542         (get_charset_aliases): Use path_concat instead of ANSI string
81543         concatenation.
81544
81545         * lib/unicodeio.h (PARAMS): Define.
81546         Use it to guard prototype.
81547
81548 2000-03-04  Jim Meyering  <meyering@lucent.com>
81549
81550         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81551         for lib/localcharset.c.
81552
81553 2000-03-04  Jim Meyering  <meyering@lucent.com>
81554
81555         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81556         installing into it.
81557         (uninstall-local): Uncomment this rule so `make distcheck' works
81558         once again.
81559
81560         * lib/unicodeio.c (<errno.h>): Include it.
81561         (errno): Declare if not defined.
81562
81563         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81564
81565         * lib/config.charset: New version, incorporating remarks from a linux
81566         i18n mailing list.  From Bruno Haible.
81567
81568 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81569
81570         * m4/codeset.m4: New file.
81571         * m4/iconv.m4: New file.
81572         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81573
81574 2000-03-03  Jim Meyering  <meyering@lucent.com>
81575
81576         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81577
81578 2000-03-02  Jim Meyering  <meyering@lucent.com>
81579
81580         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81581         the messages come out on separate lines.
81582
81583         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81584         rather than jm_CHECK_DECLARATIONS.
81585         * m4/decl.m4: Remove now-unused file.
81586
81587         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81588         geteuid.
81589
81590 2000-03-02  Jim Meyering  <meyering@lucent.com>
81591
81592         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81593
81594 2000-03-01  Jim Meyering  <meyering@lucent.com>
81595
81596         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81597         * lib/unicodeio.c: Likewise.
81598
81599 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81600
81601         * lib/config.charset: New file.
81602         * lib/localcharset.c: New file.
81603         * lib/unicodeio.h, lib/unicodeio.c: New files.
81604         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81605         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81606         (noinst_HEADERS): Add unicodeio.h.
81607         (all-local, install-exec-local, charset.alias): New targets.
81608
81609 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81610
81611         * lib/quotearg.c (ALERT_CHAR): New macro.
81612         (quotearg_buffer_restyled): Use it.
81613
81614 2000-02-27  Jim Meyering  <meyering@lucent.com>
81615
81616         * m4/check-decl.m4: Add getenv to the list.
81617
81618 2000-02-27  Jim Meyering  <meyering@lucent.com>
81619
81620         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81621         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81622
81623         * lib/backupfile.c: Guard inclusion of stdlib.h with
81624         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81625         Declare malloc if needed.
81626
81627         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81628         `#ifndef HAVE_DECL..'
81629         now that autoconf always defines the HAVE_DECL_ symbols.
81630         * lib/human.c: Likewise.
81631         * lib/same.c: Likewise.
81632         * lib/strtoumax.c: Likewise.
81633
81634         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81635         declaration check was not run.
81636         * lib/hash.c: Likewise.
81637         * lib/human.c: Likewise.
81638         * lib/same.c: Likewise.
81639         * lib/strtoumax.c: Likewise.
81640
81641         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81642         `.', then first look up the entire `.'-containing string as a login
81643         name.
81644
81645 2000-02-23  Jim Meyering  <meyering@lucent.com>
81646
81647         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81648         in place of my hack.
81649
81650 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81651
81652         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81653         (textint): New typedef.
81654         (parser_control): Member year changed from int to textint.
81655         All uses changed.
81656         (YYSTYPE): Removed; replaced by %union with int and textint members.
81657         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81658         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81659         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81660         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81661         (date, number, to_year): Use width of number in digits, not its value,
81662         to determine whether it's a 2-digit year, or a 2-digit time.
81663         (yylex): Store number of digits of numeric tokens.
81664         Reported by John Kendall.
81665
81666         (parser_control): Changed from struct parser_control to typedef (for
81667         consistency).  All uses changed.
81668
81669         (tID): Removed; not used.
81670         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81671
81672 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81673
81674         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81675         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81676
81677 2000-02-12  Jim Meyering  <meyering@lucent.com>
81678
81679         * lib/userspec.c (ISDIGIT): Define it.
81680         (isdigit): Remove definition.
81681         (is_number): Use ISDIGIT, not isdigit.
81682         <libintl.h>: Include.
81683         (_ and N_): Define.
81684         (parse_user_spec): Mark translatable strings.
81685
81686 2000-02-10  Jim Meyering  <meyering@lucent.com>
81687
81688         With these changes, nanosleep.[ch] are finally enough like the other
81689         lib/* replacement files to compile on a few more losing systems.
81690
81691         * lib/nanosleep.h: Don't include config.h.
81692         Remove prototype from declaration of nanosleep.
81693         (PARAMS): Remove now-unneeded definition.
81694         * lib/nanosleep.c: #undef nanosleep.
81695         (rpl_nanosleep): Rename from nanosleep.
81696
81697 2000-02-10  Jim Meyering  <meyering@lucent.com>
81698
81699         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81700         gnu_nanosleep to rpl_nanosleep.
81701
81702 2000-02-09  Jim Meyering  <meyering@lucent.com>
81703
81704         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81705         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81706
81707 2000-02-08  Akim Demaille  <akim@epita.fr>
81708
81709         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81710         `[' and `]' and remove uses of `changequote'.
81711         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81712         (AC_SYS_LARGEFILE): Likewise.
81713         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81714         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81715         of changequote.
81716         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81717         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81718         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81719         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81720
81721 2000-02-05  Jim Meyering  <meyering@lucent.com>
81722
81723         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81724         Remove explicit use of AC_HEADER_TIME.  It is required by
81725         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81726         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81727         in autoconf whereby the expansion of the latter ended up preceding
81728         the expansion of its prerequisite, AC_HEADER_TIME.
81729         Reported by Volker Borchert.
81730
81731 2000-02-03  Jim Meyering  <meyering@lucent.com>
81732
81733         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81734
81735 2000-02-03  Jim Meyering  <meyering@lucent.com>
81736
81737         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81738         rather than with `#if HAVE_UTMPNAME'.
81739
81740 2000-02-02  Jim Meyering  <meyering@lucent.com>
81741
81742         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81743         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81744         Reported by Eli Zaretskii.
81745
81746 2000-02-01  Jim Meyering  <meyering@lucent.com>
81747
81748         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81749
81750 2000-01-31  Jim Meyering  <meyering@lucent.com>
81751
81752         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81753         functions.  Add the time.h and sys/time.h headers along with the
81754         AC_REQUIRE'ment of AC_HEADER_TIME.
81755
81756 2000-01-31  Jim Meyering  <meyering@lucent.com>
81757
81758         * lib/nanosleep.h (nanosleep): Guard declaration with
81759         `#if ! HAVE_DECL_NANOSLEEP'.
81760         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
81761         the declaration in that vendor's sys/timers.h.
81762         Reported by Christian Krackowizer.
81763
81764         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
81765         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
81766         (ISPRINT): Likewise.
81767         Reported by Tom Tromey.
81768
81769 2000-01-30  Jim Meyering  <meyering@lucent.com>
81770
81771         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
81772
81773         * m4/prereq.m4 (utmp_includes): Define.
81774         Check for ut_user and ut_name members in both struct utmpx
81775         and struct utmp.
81776
81777 2000-01-30  Jim Meyering  <meyering@lucent.com>
81778
81779         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
81780         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
81781         header files where only utmpx.ut_user is declared.
81782
81783         * lib/readutmp.h (UT_USER): Define.
81784
81785 2000-01-29  Jim Meyering  <meyering@lucent.com>
81786
81787         * m4/lib-check.m4: New file containing library-related checks from
81788         fileutils and sh-utils (textutils had none).
81789
81790 2000-01-28  Jim Meyering  <meyering@lucent.com>
81791
81792         * m4/perl.m4: Change format of warning message to look more like that
81793         from the missing script.  Suggestion from François Pinard.
81794
81795 2000-01-25  Jim Meyering  <meyering@lucent.com>
81796
81797         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
81798         well as time.h in the compile check.
81799         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
81800         Fix typo in cross-compiling case: s/yes/no/.
81801
81802 2000-01-23  Jim Meyering  <meyering@lucent.com>
81803
81804         * m4/jm-macros.m4: Move df-related tests here from
81805         fileutils/configure.in
81806
81807         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
81808         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
81809
81810         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
81811         s/space/ac_fsusage_space/.
81812         (jm_FILE_SYSTEM_USAGE): Take two parameters.
81813
81814         * m4/ftruncate.m4: New file (derived from part of
81815         fileutils/configure.in).
81816         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
81817         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
81818
81819         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
81820         AC_SUBST these here, rather than just in sh-util/configure.in, so
81821         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
81822         all the same.
81823         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
81824         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
81825         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
81826         (AC_SUBST(POW_LIBM)): Likewise.
81827         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
81828
81829 2000-01-23  Jim Meyering  <meyering@lucent.com>
81830
81831         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
81832         obstack.c.
81833
81834 2000-01-22  Jim Meyering  <meyering@lucent.com>
81835
81836         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
81837
81838         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
81839
81840         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
81841         configure.in
81842         (AC_CHECK_HEADERS): Likewise for sh-utils.
81843         (AC_CHECK_HEADERS): Likewise for textutils.
81844         Merge the three lists of headers.
81845
81846         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
81847         from fileutils' configure.in.
81848
81849         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
81850         code. Moved tests into their own function (_jm_DECL_HEADERS) in
81851         check-decl.m4.
81852
81853         * m4/check-decl.m4: Use #if rather than #ifdef.
81854         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
81855         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
81856         (_jm_DECL_HEADERS): Define new function.
81857         (jm_CHECK_DECLARATIONS): Require it.
81858
81859 2000-01-22  Jim Meyering  <meyering@lucent.com>
81860
81861         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
81862         [! HAVE_DECL_STRTOULL]: Declare strtoull.
81863         Required for some AIX systems.  Reported by Christian Krackowizer.
81864         [TESTING] (main): New function.
81865
81866         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
81867         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
81868         letters.
81869
81870         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
81871         iswprint.
81872
81873         * lib/strverscmp.c (ISDIGIT): Define.
81874         (strverscmp): Use ISDIGIT, not isdigit.
81875
81876 2000-01-19  Jim Meyering  <meyering@lucent.com>
81877
81878         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
81879         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
81880         defines `struct timespec' in <sys/time.h>
81881
81882         * m4/c-bs-a.m4: Remove uses of changequote altogether.
81883         Thanks to Akim for explaining.
81884
81885 2000-01-17  Paul Eggert  <eggert@twinsun.com>
81886
81887         * lib/nanosleep.c (nanosleep):
81888         Don't use SA_INTERRUPT to decide whether to call sigaction, as
81889         POSIX.1 doesn't require SA_INTERRUPT and some systems
81890         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
81891         it's been part of POSIX.1 since day 1 (in 1988).
81892
81893 2000-01-17  Jim Meyering  <meyering@lucent.com>
81894
81895         * lib/interlock: Remove unused file.  Reported by François Pinard.
81896
81897 2000-01-16  Paul Eggert  <eggert@twinsun.com>
81898
81899         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
81900         alert, backslash, formfeed, and vertical tab unnecessarily in
81901         shell quoting style.
81902
81903 2000-01-16  Jim Meyering  <meyering@lucent.com>
81904
81905         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
81906         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
81907         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
81908         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
81909
81910 2000-01-16  Jim Meyering  <meyering@lucent.com>
81911
81912         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
81913         because the latter didn't work.
81914
81915 2000-01-15  Jim Meyering  <meyering@lucent.com>
81916
81917         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
81918         (AC_REPLACE_FUNCS): Add memcpy and memset.
81919         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
81920         Add strpbrk.
81921         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
81922
81923 2000-01-12  Jim Meyering  <meyering@lucent.com>
81924
81925         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
81926         (jm_PREREQ): Use it.
81927         (jm_PREREQ_READUTMP): New macro.
81928         (jm_PREREQ): Use it.
81929
81930 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81931
81932         Quote multibyte characters correctly.
81933         * m4/c-bs-a.m4: New file.
81934         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
81935         (jm_PREREQ): Use it.
81936
81937 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81938
81939         * m4/uintmax_t.m4: Port to autoconf 2.13.
81940
81941 2000-01-08  Jim Meyering  <meyering@ascend.com>
81942
81943         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
81944         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
81945
81946 2000-01-04  Jim Meyering  <meyering@ascend.com>
81947
81948         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
81949         jm_STRUCT_DIRENT_D_TYPE.
81950         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
81951         jm_STRUCT_DIRENT_D_INO.
81952         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
81953         jm_STRUCT_UTIMBUF.
81954         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81955         renamings.
81956         * m4/utime.m4: Likewise.
81957
81958         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81959         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81960
81961 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81962
81963         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81964         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81965
81966 2000-01-02  Jim Meyering  <meyering@ascend.com>
81967
81968         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81969         remember if this is necessary.
81970
81971 1999-12-26  Jim Meyering  <meyering@ascend.com>
81972
81973         * m4/jm-macros.m4: Use it here.
81974         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81975
81976 1999-12-23  Jim Meyering  <meyering@ascend.com>
81977
81978         * m4/jm-macros.m4: Check for clock_gettime (moved from
81979         fileutils/configure.in)
81980         Check for gettimeofday.
81981
81982 1999-12-20  Jim Meyering  <meyering@ascend.com>
81983
81984         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81985         autoconf-2.14a-1999-12-20.
81986
81987 1999-12-19  Jim Meyering  <meyering@ascend.com>
81988
81989         * m4/lstat-slash.m4: New file.
81990         * m4/jm-macros.m4: Use the new macro:
81991         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81992
81993 1999-12-07  Jim Meyering  <meyering@ascend.com>
81994
81995         * m4/perl.m4: Require that File::Compare be available, too.
81996         Too many systems seem to lack it.
81997
81998         * m4/strftime.m4: Add checks for most of the cpp macros tested in
81999         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
82000
82001 1999-11-18  Paul Eggert  <eggert@twinsun.com>
82002
82003         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
82004         problem with the QNX 4.25 shell, which doesn't propagate exit
82005         status of failed commands inside shell assignments.
82006
82007 1999-11-17  Jim Meyering  <meyering@ascend.com>
82008
82009         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
82010
82011 1999-11-07  Jim Meyering  <meyering@ascend.com>
82012
82013         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
82014
82015 1999-11-06  Jim Meyering  <meyering@ascend.com>
82016
82017         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
82018         * m4/jm-macros.m4 (jm_MACROS): Use it here.
82019
82020 1999-11-05  Jim Meyering  <meyering@ascend.com>
82021
82022         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
82023         configure.in of textutils, fileutils, and sh-utils into this one
82024         (shared between those packages) file.
82025         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
82026         AC_STRUCT_ST_BLKSIZE.
82027
82028 1999-11-03  Jim Meyering  <meyering@ascend.com>
82029
82030         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
82031         of AC_CHECK_TYPE checks includes unistd.h.
82032         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
82033         Suggestion from Akim Demaille.
82034
82035 1999-10-30  Jim Meyering  <meyering@ascend.com>
82036
82037         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
82038         m4-quoted string.
82039         * m4/ls-mntd-fs.m4: Likewise.
82040         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
82041         * m4/jm-winsz1.m4: Likewise.
82042
82043         * m4/const.m4: Remove file, since the fix made it into the experimental
82044         version of autoconf.
82045         * m4/mktime.m4: Likewise.
82046
82047         * m4/check-type.m4: Remove file, now that the latest version of
82048         AC_CHECK_TYPE takes a third arg to specify additional #includes.
82049
82050         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82051         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82052         AC_CHECK_TYPE.
82053
82054 1999-10-04  Jim Meyering  <meyering@ascend.com>
82055
82056         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82057
82058 1999-09-22  Paul Eggert  <eggert@twinsun.com>
82059
82060         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
82061         2.95.1 bug with HP-UX 10.20.
82062
82063 1999-09-17  Jim Meyering  <meyering@ascend.com>
82064
82065         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
82066         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
82067         due to missing strdup (against sh-utils-2.0).
82068
82069 1999-08-29  Jim Meyering  <meyering@ascend.com>
82070
82071         * m4/jm-macros.m4: Require jm_BISON.
82072         * m4/bison.m4: New file.
82073
82074 1999-08-17  Paul Eggert  <eggert@twinsun.com>
82075
82076         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
82077         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
82078
82079 1999-08-05  Jim Meyering  <meyering@ascend.com>
82080
82081         * m4/getline.m4: Rename test file from conftestdata to conftest.data
82082         to avoid conflicts with `conftest' on 8+3 filesystems.
82083         Suggestion from Eli Zaretskii.
82084
82085 1999-08-04  Jim Meyering  <meyering@ascend.com>
82086
82087         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82088         fileutils and sh-utils (textutils's getline test was inadequate).
82089         (AM_FUNC_GETLINE): Run this test.
82090         (AC_CHECK_FUNCS): Check for getdelim.
82091         Reported by Bob Proulx.
82092
82093 1999-08-02  Jim Meyering  <meyering@ascend.com>
82094
82095         * m4/jm-macros.m4: Add a comment.
82096
82097 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82098
82099         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82100         <inttypes.h> defines strtoumax as a macro (and not as a
82101         function).
82102
82103 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82104
82105         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82106         that we can shift, multiply and divide unsigned long long
82107         values; Ultrix cc can't do it.
82108
82109 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82110
82111         * m4/mktime.m4: New file, which is a preview of what should appear
82112         in the next public autoconf release.
82113
82114 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82115
82116         * m4/lfs.m4: Remove this file.
82117         * m4/largefile.m4: New file.  It contains the old contents of
82118         lfs.m4, except that all names with prefix AC_LFS have been
82119         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82120         compatible with future autoconf versions.  Also, some minor m4
82121         quoting problems have been fixed.
82122
82123 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82124
82125         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82126         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82127         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82128         and simplify the shell code.
82129
82130 1999-08-01  Jim Meyering  <meyering@ascend.com>
82131
82132         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82133         m4.
82134
82135 1999-07-20  Jim Meyering  <meyering@ascend.com>
82136
82137         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82138
82139 1999-07-15  Jim Meyering  <meyering@ascend.com>
82140
82141         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82142
82143 1999-05-22  Jim Meyering  <meyering@ascend.com>
82144
82145         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82146
82147 1999-05-20  Jim Meyering  <meyering@ascend.com>
82148
82149         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82150         Add a colon after each `then' in case $4 is empty.
82151
82152 1999-05-16  Jim Meyering  <meyering@ascend.com>
82153
82154         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82155
82156 1999-05-10  Jim Meyering  <meyering@ascend.com>
82157
82158         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82159
82160         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82161         AC_FUNC_MKTIME.
82162
82163 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82164
82165         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82166
82167 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82168
82169         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82170         not CPPFLAGS, so that linking works correctly in IRIX.
82171
82172 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82173
82174         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82175
82176 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82177
82178         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82179         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82180         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82181         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82182         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82183
82184         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82185
82186 1999-04-20  Jim Meyering  <meyering@ascend.com>
82187
82188         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82189         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82190         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82191
82192 1999-04-18  Jim Meyering  <meyering@ascend.com>
82193
82194         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82195         * m4/jm-macros.m4: Use it.
82196
82197 1999-04-06  Jim Meyering  <meyering@ascend.com>
82198
82199         * m4/strftime.m4: Remove test for %f.
82200
82201 1999-03-29  Jim Meyering  <meyering@ascend.com>
82202
82203         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82204         superset of the AC_TYPE_* checks in the textutils, fileutils,
82205         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82206         AC_TYPE_PID_T.
82207
82208 1999-03-28  Jim Meyering  <meyering@ascend.com>
82209
82210         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82211         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82212         replaced e.g., in the *.sh files of the sh-utils.
82213
82214 1999-03-20  Jim Meyering  <meyering@ascend.com>
82215
82216         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82217         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82218         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82219
82220 1999-03-19  Jim Meyering  <meyering@ascend.com>
82221
82222         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82223
82224 1999-03-12  Jim Meyering  <meyering@ascend.com>
82225
82226         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82227
82228 1999-03-07  Jim Meyering  <meyering@ascend.com>
82229
82230         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82231         declared.
82232
82233 1999-02-17  Jim Meyering  <meyering@ascend.com>
82234
82235         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82236         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82237
82238 1999-02-07  Jim Meyering  <meyering@ascend.com>
82239
82240         * m4/group-member.m4: New file -- extracted from sh-utils'
82241         configure.in.
82242
82243         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82244         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82245
82246 1999-02-06  Jim Meyering  <meyering@ascend.com>
82247
82248         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82249         * m4/fnmatch.m4: Likewise.
82250         * m4/getgroups.m4: Likewise.
82251         * m4/lstat.m4: Likewise.
82252         * m4/malloc.m4: Likewise.
82253         * m4/putenv.m4: Likewise.
82254         * m4/realloc.m4: Likewise.
82255         * m4/regex.m4: Likewise.
82256         * m4/stat.m4: Likewise.
82257         * m4/strftime.m4: Likewise.
82258         Suggestion from Alain Magloire.
82259
82260         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82261         * m4/fnmatch.m4: Likewise.
82262         * m4/getgroups.m4: Likewise.
82263         * m4/getline.m4: Likewise.
82264         * m4/lstat.m4: Likewise.
82265         * m4/malloc.m4: Likewise.
82266         * m4/memcmp.m4: Likewise.
82267         * m4/putenv.m4: Likewise.
82268         * m4/realloc.m4: Likewise.
82269         * m4/regex.m4: Likewise.
82270         * m4/stat.m4: Likewise.
82271         * m4/strftime.m4: Likewise.
82272         Suggestion from Alain Magloire.
82273
82274         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82275         an argument.
82276
82277         * m4/regex.m4: Add a run-time Test for proper operation of
82278         re_compile_pattern.
82279
82280 1999-01-31  Jim Meyering  <meyering@ascend.com>
82281
82282         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82283
82284 1999-01-30  Jim Meyering  <meyering@ascend.com>
82285
82286         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82287
82288         * m4/jm-mktime.m4: Make this a wrapper around the official
82289         AM_FUNC_MKTIME rather than my private copy, now that the official one
82290         is up to date.
82291         * m4/mktime.m4: Remove file.
82292
82293         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82294         * m4/uptime.m4: Likewise.
82295         * m4/uintmax_t.m4: Likewise.
82296
82297 1999-01-28  Jim Meyering  <meyering@ascend.com>
82298
82299         * m4/jm-macros.m4: Use jm_AFS.
82300         * m4/afs.m4: New file (from fileutils' configure.in).
82301
82302         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82303         * m4/chown.m4: Likewise.
82304         * m4/d-ino.m4: Likewise.
82305         * m4/d-type.m4: Likewise.
82306         * m4/fnmatch.m4: Likewise.
82307         * m4/getgroups.m4: Likewise.
82308         * m4/gettext.m4: Likewise.
82309         * m4/jm-mktime.m4: Likewise.
82310         * m4/jm-winsz2.m4: Likewise.
82311         * m4/lcmessage.m4: Likewise.
82312         * m4/ls-mntd-fs.m4: Likewise.
82313         * m4/malloc.m4: Likewise.
82314         * m4/memcmp.m4: Likewise.
82315         * m4/putenv.m4: Likewise.
82316         * m4/realloc.m4: Likewise.
82317         * m4/st_mtim.m4: Likewise.
82318         * m4/strftime.m4: Likewise.
82319
82320 1999-01-16  Jim Meyering  <meyering@ascend.com>
82321
82322         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82323         (ARGMATCH_DIE_DECL): Define.
82324
82325 1999-01-12  Jim Meyering  <meyering@ascend.com>
82326
82327         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82328         Reported by Lars Hecking.
82329
82330 1999-01-10  Jim Meyering  <meyering@ascend.com>
82331
82332         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82333         gross kludge.
82334         * m4/inttypes_h.m4: Likewise.
82335         * m4/lstat.m4: Likewise.
82336         * m4/malloc.m4: Likewise.
82337         * m4/readdir.m4: Likewise.
82338         * m4/realloc.m4: Likewise.
82339         * m4/st_dm_mode.m4: Likewise.
82340         * m4/stat.m4: Likewise.
82341         * m4/utimbuf.m4: Likewise.
82342         * m4/utimes.m4: Likewise.
82343
82344         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82345         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82346         comments in config.h.in are meaningful.
82347
82348         * m4/jm-macros.m4: Require autoconf-2.13 here.
82349
82350         * m4/regex.m4: By default, don't use the included regex.c on systems
82351         with glibc 2.  Suggestion from Uli Drepper.
82352
82353 1999-01-02  Jim Meyering  <meyering@ascend.com>
82354
82355         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82356
82357 1998-12-18  Jim Meyering  <meyering@ascend.com>
82358
82359         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82360         Based on a suggestion from Lars Hecking.
82361
82362 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82363
82364         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82365
82366 1998-11-16  Jim Meyering  <meyering@ascend.com>
82367
82368         * m4/lfs.m4: Double-quote the `uname...` expression.
82369
82370 1998-11-14  Jim Meyering  <meyering@ascend.com>
82371
82372         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82373         * m4/stat.m4: Likewise.
82374
82375 1998-11-03  Jim Meyering  <meyering@ascend.com>
82376
82377         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82378         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82379
82380 1998-10-18  Jim Meyering  <meyering@ascend.com>
82381
82382         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82383
82384 1998-10-17  Jim Meyering  <meyering@ascend.com>
82385
82386         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82387         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82388         calls for those previously hard-coded headers.  Instead, take a new
82389         parameter.
82390         (jm_CHECK_DECLARATIONS): Reflect interface change.
82391         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82392         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82393
82394         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82395
82396 1998-10-14  Jim Meyering  <meyering@ascend.com>
82397
82398         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82399         instead of "TZ=America/Vancouver".  From Paul Eggert.
82400
82401 1998-10-11  Jim Meyering  <meyering@ascend.com>
82402
82403         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82404         This adds a test for a recently added compatibility fix for mktime.c.
82405         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82406
82407 1998-09-27  Jim Meyering  <meyering@ascend.com>
82408
82409         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82410
82411         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82412         ../configure.in, including a change from Gordon Matzigkeit to allow
82413         cross-compiling for the Hurd.
82414
82415         * m4/glibc.m4: New file/macro to test for the GNU C Library
82416         versions 1 and 2.  From Gordon Matzigkeit.
82417         Indent.
82418
82419 1998-09-21  Jim Meyering  <meyering@ascend.com>
82420
82421         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82422
82423 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82424
82425         Port nanosecond-resolution times to UnixWare 2.1.2 and
82426         pedantic Solaris 2.6.
82427
82428         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82429         AC_STRUCT_ST_MTIM.
82430         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82431         Generate name of ns member, instead of just 1 or undef.
82432         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82433
82434 1998-08-15  Jim Meyering  <meyering@ascend.com>
82435
82436         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82437         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82438         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82439         instead of jm_TYPE_SSIZE_T.
82440
82441 1998-08-12  Jim Meyering  <meyering@ascend.com>
82442
82443         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82444
82445 1998-08-02  Jim Meyering  <meyering@ascend.com>
82446
82447         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82448         in acconfig.h manually.
82449
82450 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82451
82452         * m4/st_mtim.m4: New file.
82453
82454 1998-07-28  Jim Meyering  <meyering@ascend.com>
82455
82456         * m4/utimes.m4: Undef stat.
82457
82458 1998-07-25  Jim Meyering  <meyering@ascend.com>
82459
82460         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82461         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82462
82463 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82464
82465         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82466         uid and gid actually remain unchanged.
82467
82468 1998-07-07  Jim Meyering  <meyering@ascend.com>
82469
82470         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82471
82472 1998-07-04  Jim Meyering  <meyering@ascend.com>
82473
82474         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82475         to prove that this macro can be used in packages without regex.c.
82476
82477 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82478
82479         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82480         is to be used.
82481
82482 1998-07-03  Jim Meyering  <meyering@ascend.com>
82483
82484         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82485
82486         * m4/gettext.m4: New file -- from gettext-0.10.35.
82487         * m4/lcmessage.m4: Likewise.
82488         * m4/progtest.m4: Likewise.
82489
82490         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82491         * m4/jm-macros.m4: Require the new macro.
82492
82493 1998-06-29  Jim Meyering  <meyering@ascend.com>
82494
82495         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82496         for the definition of NGROUPS (used in a system header included
82497         by sys/mount.h).
82498
82499 1998-06-28  Jim Meyering  <meyering@ascend.com>
82500
82501         * m4/ls-mntd-fs.m4: New file.
82502         * m4/fstypename.m4: New file.
82503
82504         * m4/jm-macros.m4: Require the new macro.
82505         * m4/jm-glibc-io.m4: New file.
82506
82507 1998-05-19  Jim Meyering  <meyering@ascend.com>
82508
82509         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82510         * m4/lchown.m4: New file.
82511
82512         * m4/Makefile.am.in: New file.
82513         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82514
82515 1998-05-14  Jim Meyering  <meyering@ascend.com>
82516
82517         * m4/Makefile.am (EXTRA_DIST): Add them.
82518         * m4/jm-macros.m4: New file.
82519         * m4/utimbuf.m4: New file.
82520
82521 1998-05-12  Jim Meyering  <meyering@ascend.com>
82522
82523         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82524
82525 1998-05-11  Jim Meyering  <meyering@ascend.com>
82526
82527         * m4/isc-posix.m4: New file.
82528
82529 1998-05-10  Jim Meyering  <meyering@ascend.com>
82530
82531         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82532
82533 1998-05-09  Jim Meyering  <meyering@ascend.com>
82534
82535         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82536         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82537         with automake.
82538
82539         * m4/ssize_t.m4: New file.
82540         * m4/mktime.m4: Remove file -- the new automake has this now.
82541
82542 1998-04-26  Jim Meyering  <meyering@ascend.com>
82543
82544         * m4/assert.m4: New file.
82545         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82546
82547 1998-04-05  Jim Meyering  <meyering@ascend.com>
82548
82549         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82550         (jm_PREREQ): Use it here.
82551
82552 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82553
82554         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82555         in acconfig.h.
82556
82557 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82558
82559         * m4/prereq.m4: New file.
82560         * m4/error.m4: New file.
82561         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82562
82563 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82564
82565         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82566         cache-check for the same variable -- that defeated the purpose of
82567         the test; the test program was never run.  This was a problem only
82568         on systems with losing getline functions -- HP-UX 10.20 is one.
82569         Reported by Bjorn Helgaas.
82570
82571 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82572
82573         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82574
82575 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82576
82577         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82578
82579         * m4/const.m4: New file.  Use an initializer in this declaration
82580         typedef int charset[2]; const charset x;
82581         Reported by Bob Glickstein.
82582
82583 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82584
82585         * m4/chown.m4: Fix reversed types on -1 args to chown.
82586         From Kaveh Ghazi.
82587
82588 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82589
82590         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82591         Add lseek and memchr.
82592
82593         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82594         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82595         have a 20-character limit on names.
82596
82597 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82598
82599         * m4/inttypes_h.m4: New file.
82600         * m4/uintmax_t.m4: New file.
82601         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82602
82603
82604         -----
82605
82606         Local Variables:
82607         coding: utf-8
82608         End:
82609
82610         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82611
82612         Copying and distribution of this file, with or without
82613         modification, are permitted provided the copyright notice
82614         and this notice are preserved.