ed42c60a6684f50ba812f740b74a86c26aa48a5c
[gnulib.git] / ChangeLog
1 2011-05-22  Bruno Haible  <bruno@clisp.org>
2
3         write: Move AC_LIBOBJ invocations to module description.
4         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
5         * modules/write (configure.ac): ... to here.
6
7 2011-05-22  Bruno Haible  <bruno@clisp.org>
8
9         wmemset: Move AC_LIBOBJ invocations to module description.
10         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
11         here...
12         * modules/wmemset (configure.ac): ... to here.
13
14 2011-05-22  Bruno Haible  <bruno@clisp.org>
15
16         wmemmove: Move AC_LIBOBJ invocations to module description.
17         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18         here...
19         * modules/wmemmove (configure.ac): ... to here.
20
21 2011-05-22  Bruno Haible  <bruno@clisp.org>
22
23         wmemcpy: Move AC_LIBOBJ invocations to module description.
24         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
25         here...
26         * modules/wmemcpy (configure.ac): ... to here.
27
28 2011-05-22  Bruno Haible  <bruno@clisp.org>
29
30         wmemcmp: Move AC_LIBOBJ invocations to module description.
31         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
32         here...
33         * modules/wmemcmp (configure.ac): ... to here.
34
35 2011-05-22  Bruno Haible  <bruno@clisp.org>
36
37         wmemchr: Move AC_LIBOBJ invocations to module description.
38         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
39         here...
40         * modules/wmemchr (configure.ac): ... to here.
41
42 2011-05-22  Bruno Haible  <bruno@clisp.org>
43
44         wcswidth: Move AC_LIBOBJ invocations to module description.
45         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
46         here...
47         * modules/wcswidth (configure.ac): ... to here.
48
49 2011-05-22  Bruno Haible  <bruno@clisp.org>
50
51         wcwidth: Respect rules for use of AC_LIBOBJ.
52         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
53         invocation from here...
54         * modules/wcwidth (configure.ac): ... to here.
55         (Depends-on): Update conditions.
56
57 2011-05-22  Bruno Haible  <bruno@clisp.org>
58
59         wctype: Move AC_LIBOBJ invocations to module description.
60         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
61         invocation from here...
62         * modules/wctype (configure.ac): ... to here.
63         (Depends-on): Update conditions.
64
65 2011-05-22  Bruno Haible  <bruno@clisp.org>
66
67         wctrans: Move AC_LIBOBJ invocations to module description.
68         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
69         invocation from here...
70         * modules/wctrans (configure.ac): ... to here.
71
72 2011-05-22  Bruno Haible  <bruno@clisp.org>
73
74         wctomb: Move AC_LIBOBJ invocations to module description.
75         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
76         invocations from here...
77         * modules/wctomb (configure.ac): ... to here.
78
79 2011-05-22  Bruno Haible  <bruno@clisp.org>
80
81         wctob: Move AC_LIBOBJ invocations to module description.
82         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
83         gl_PREREQ_WCTOB invocations from here...
84         * modules/wctob (configure.ac): ... to here.
85         (Depends-on): Update conditions.
86
87 2011-05-22  Bruno Haible  <bruno@clisp.org>
88
89         wcsxfrm: Move AC_LIBOBJ invocations to module description.
90         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
91         here...
92         * modules/wcsxfrm (configure.ac): ... to here.
93
94 2011-05-22  Bruno Haible  <bruno@clisp.org>
95
96         wcstok: Move AC_LIBOBJ invocations to module description.
97         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
98         * modules/wcstok (configure.ac): ... to here.
99
100 2011-05-22  Bruno Haible  <bruno@clisp.org>
101
102         wcsstr: Move AC_LIBOBJ invocations to module description.
103         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
104         * modules/wcsstr (configure.ac): ... to here.
105
106 2011-05-22  Bruno Haible  <bruno@clisp.org>
107
108         wcsspn: Move AC_LIBOBJ invocations to module description.
109         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
110         * modules/wcsspn (configure.ac): ... to here.
111
112 2011-05-22  Bruno Haible  <bruno@clisp.org>
113
114         wcsrtombs: Move AC_LIBOBJ invocations to module description.
115         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
116         gl_PREREQ_WCSRTOMBS invocations from here...
117         * modules/wcsrtombs (configure.ac): ... to here.
118
119 2011-05-22  Bruno Haible  <bruno@clisp.org>
120
121         wcsrchr: Move AC_LIBOBJ invocations to module description.
122         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
123         here...
124         * modules/wcsrchr (configure.ac): ... to here.
125
126 2011-05-22  Bruno Haible  <bruno@clisp.org>
127
128         wcspbrk: Move AC_LIBOBJ invocations to module description.
129         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
130         here...
131         * modules/wcspbrk (configure.ac): ... to here.
132
133 2011-05-22  Bruno Haible  <bruno@clisp.org>
134
135         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
136         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
137         gl_PREREQ_WCSNRTOMBS invocations from here...
138         * modules/wcsnrtombs (configure.ac): ... to here.
139
140 2011-05-22  Bruno Haible  <bruno@clisp.org>
141
142         wcsnlen: Move AC_LIBOBJ invocations to module description.
143         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
144         here...
145         * modules/wcsnlen (configure.ac): ... to here.
146
147 2011-05-22  Bruno Haible  <bruno@clisp.org>
148
149         wcsncpy: Move AC_LIBOBJ invocations to module description.
150         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
151         here...
152         * modules/wcsncpy (configure.ac): ... to here.
153
154 2011-05-22  Bruno Haible  <bruno@clisp.org>
155
156         wcsncmp: Move AC_LIBOBJ invocations to module description.
157         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
158         here...
159         * modules/wcsncmp (configure.ac): ... to here.
160
161 2011-05-22  Bruno Haible  <bruno@clisp.org>
162
163         wcsncat: Move AC_LIBOBJ invocations to module description.
164         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
165         here...
166         * modules/wcsncat (configure.ac): ... to here.
167
168 2011-05-22  Bruno Haible  <bruno@clisp.org>
169
170         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
171         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
172         from here...
173         * modules/wcsncasecmp (configure.ac): ... to here.
174
175 2011-05-22  Bruno Haible  <bruno@clisp.org>
176
177         wcslen: Move AC_LIBOBJ invocations to module description.
178         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
179         * modules/wcslen (configure.ac): ... to here.
180
181 2011-05-22  Bruno Haible  <bruno@clisp.org>
182
183         wcsdup: Move AC_LIBOBJ invocations to module description.
184         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
185         * modules/wcsdup (configure.ac): ... to here.
186
187 2011-05-22  Bruno Haible  <bruno@clisp.org>
188
189         wcscspn: Move AC_LIBOBJ invocations to module description.
190         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
191         here...
192         * modules/wcscspn (configure.ac): ... to here.
193
194 2011-05-22  Bruno Haible  <bruno@clisp.org>
195
196         wcscpy: Move AC_LIBOBJ invocations to module description.
197         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
198         * modules/wcscpy (configure.ac): ... to here.
199
200 2011-05-22  Bruno Haible  <bruno@clisp.org>
201
202         wcscoll: Move AC_LIBOBJ invocations to module description.
203         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
204         here...
205         * modules/wcscoll (configure.ac): ... to here.
206
207 2011-05-22  Bruno Haible  <bruno@clisp.org>
208
209         wcscmp: Move AC_LIBOBJ invocations to module description.
210         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
211         * modules/wcscmp (configure.ac): ... to here.
212
213 2011-05-22  Bruno Haible  <bruno@clisp.org>
214
215         wcschr: Move AC_LIBOBJ invocations to module description.
216         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
217         * modules/wcschr (configure.ac): ... to here.
218
219 2011-05-22  Bruno Haible  <bruno@clisp.org>
220
221         wcscat: Move AC_LIBOBJ invocations to module description.
222         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
223         * modules/wcscat (configure.ac): ... to here.
224
225 2011-05-22  Bruno Haible  <bruno@clisp.org>
226
227         wcscasecmp: Move AC_LIBOBJ invocations to module description.
228         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
229         here...
230         * modules/wcscasecmp (configure.ac): ... to here.
231
232 2011-05-22  Bruno Haible  <bruno@clisp.org>
233
234         wcrtomb: Move AC_LIBOBJ invocations to module description.
235         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
236         invocations from here...
237         * modules/wcrtomb (configure.ac): ... to here.
238
239 2011-05-22  Bruno Haible  <bruno@clisp.org>
240
241         wcpncpy: Move AC_LIBOBJ invocations to module description.
242         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
243         here...
244         * modules/wcpncpy (configure.ac): ... to here.
245
246 2011-05-22  Bruno Haible  <bruno@clisp.org>
247
248         wcpcpy: Move AC_LIBOBJ invocations to module description.
249         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
250         * modules/wcpcpy (configure.ac): ... to here.
251
252 2011-05-22  Bruno Haible  <bruno@clisp.org>
253
254         waitpid: Move AC_LIBOBJ invocations to module description.
255         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
256         invocation from here...
257         * modules/waitpid (configure.ac): ... to here.
258
259 2011-05-22  Bruno Haible  <bruno@clisp.org>
260
261         utimensat: Move AC_LIBOBJ invocations to module description.
262         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
263         here...
264         * modules/utimensat (configure.ac): ... to here.
265
266 2011-05-22  Bruno Haible  <bruno@clisp.org>
267
268         usleep: Move AC_LIBOBJ invocations to module description.
269         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
270         here...
271         * modules/usleep (configure.ac): ... to here.
272
273 2011-05-22  Bruno Haible  <bruno@clisp.org>
274
275         unlockpt: Move AC_LIBOBJ invocations to module description.
276         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
277         gl_PREREQ_UNLOCKPT invocations from here...
278         * modules/unlockpt (configure.ac): ... to here.
279
280 2011-05-22  Bruno Haible  <bruno@clisp.org>
281
282         unlink: Respect rules for use of AC_LIBOBJ.
283         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
284         * modules/unlink (configure.ac): ... to here.
285
286 2011-05-22  Bruno Haible  <bruno@clisp.org>
287
288         uname: Move AC_LIBOBJ invocations to module description.
289         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
290         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
291         here...
292         * modules/uname (configure.ac): ... to here.
293
294 2011-05-22  Bruno Haible  <bruno@clisp.org>
295
296         ttyname_r: Move AC_LIBOBJ invocations to module description.
297         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
298         gl_PREREQ_TTYNAME_R invocations from here...
299         * modules/ttyname_r (configure.ac): ... to here.
300
301 2011-05-22  Bruno Haible  <bruno@clisp.org>
302
303         tsearch: Move AC_LIBOBJ invocations to module description.
304         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
305         invocations from here...
306         * modules/tsearch (configure.ac): ... to here.
307
308 2011-05-22  Bruno Haible  <bruno@clisp.org>
309
310         towctrans: Move AC_LIBOBJ invocations to module description.
311         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
312         AC_LIBOBJ invocation from here...
313         * modules/towctrans (configure.ac): ... to here.
314
315 2011-05-22  Bruno Haible  <bruno@clisp.org>
316
317         tmpfile: Move AC_LIBOBJ invocations to module description.
318         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
319         invocations from here...
320         * modules/tmpfile (configure.ac): ... to here.
321
322 2011-05-22  Bruno Haible  <bruno@clisp.org>
323
324         times: Move AC_LIBOBJ invocations to module description.
325         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
326         * modules/times (configure.ac): ... to here.
327
328 2011-05-22  Bruno Haible  <bruno@clisp.org>
329
330         time_r: Move AC_LIBOBJ invocations to module description.
331         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
332         invocations from here...
333         * modules/time_r (configure.ac): ... to here.
334
335 2011-05-22  Bruno Haible  <bruno@clisp.org>
336
337         timegm: Move AC_LIBOBJ invocations to module description.
338         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
339         invocations from here...
340         * modules/timegm (configure.ac): ... to here.
341
342 2011-05-22  Bruno Haible  <bruno@clisp.org>
343
344         tcgetsid: Move AC_LIBOBJ invocations to module description.
345         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
346         and gl_PREREQ_TCGETSID invocations from here...
347         * modules/tcgetsid (configure.ac): ... to here.
348         (Depends-on): Update conditions.
349
350 2011-05-22  Bruno Haible  <bruno@clisp.org>
351
352         symlinkat: Move AC_LIBOBJ invocations to module description.
353         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
354         here...
355         * modules/symlinkat (configure.ac): ... to here.
356
357 2011-05-22  Bruno Haible  <bruno@clisp.org>
358
359         symlink: Move AC_LIBOBJ invocations to module description.
360         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
361         here...
362         * modules/symlink (configure.ac): ... to here.
363
364 2011-05-22  Bruno Haible  <bruno@clisp.org>
365
366         strverscmp: Move AC_LIBOBJ invocations to module description.
367         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
368         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
369         from here...
370         * modules/strverscmp (configure.ac): ... to here.
371
372 2011-05-22  Bruno Haible  <bruno@clisp.org>
373
374         strtok_r: Move AC_LIBOBJ invocations to module description.
375         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
376         and gl_PREREQ_STRTOK_R invocations from here...
377         * modules/strtok_r (configure.ac): ... to here.
378         (Depends-on): Update conditions.
379
380 2011-05-22  Bruno Haible  <bruno@clisp.org>
381
382         strtoumax: Move AC_LIBOBJ invocations to module description.
383         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
384         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
385         from here...
386         * modules/strtoumax (configure.ac): ... to here.
387
388 2011-05-22  Bruno Haible  <bruno@clisp.org>
389
390         strtoimax: Move AC_LIBOBJ invocations to module description.
391         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
392         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
393         from here...
394         * modules/strtoimax (configure.ac): ... to here.
395
396 2011-05-22  Bruno Haible  <bruno@clisp.org>
397
398         strtoull: Move AC_LIBOBJ invocations to module description.
399         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
400         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
401         from here...
402         * modules/strtoull (configure.ac): ... to here.
403
404 2011-05-22  Bruno Haible  <bruno@clisp.org>
405
406         strtoll: Move AC_LIBOBJ invocations to module description.
407         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
408         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
409         here...
410         * modules/strtoll (configure.ac): ... to here.
411
412 2011-05-22  Bruno Haible  <bruno@clisp.org>
413
414         strtoul: Move AC_LIBOBJ invocations to module description.
415         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
416         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
417         * modules/strtoul (configure.ac): ... to here.
418
419 2011-05-22  Bruno Haible  <bruno@clisp.org>
420
421         strtol: Move AC_LIBOBJ invocations to module description.
422         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
423         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
424         * modules/strtol (configure.ac): ... to here.
425
426 2011-05-22  Bruno Haible  <bruno@clisp.org>
427
428         strtod: Move AC_LIBOBJ invocations to module description.
429         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
430         invocations from here...
431         * modules/strtod (configure.ac): ... to here.
432
433 2011-05-22  Bruno Haible  <bruno@clisp.org>
434
435         strstr*: Move AC_LIBOBJ invocations to module description.
436         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
437         invocations from here...
438         * modules/strstr-simple (configure.ac): ... to here.
439         * modules/strstr (configure.ac): ... and here.
440
441 2011-05-22  Bruno Haible  <bruno@clisp.org>
442
443         strsignal: Move AC_LIBOBJ invocations to module description.
444         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
445         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
446         * modules/strsignal (configure.ac): ... to here.
447         (Depends-on): Update conditions.
448
449 2011-05-22  Bruno Haible  <bruno@clisp.org>
450
451         strsep: Move AC_LIBOBJ invocations to module description.
452         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
453         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
454         here...
455         * modules/strsep (configure.ac): ... to here.
456
457 2011-05-22  Bruno Haible  <bruno@clisp.org>
458
459         strptime: Move AC_LIBOBJ invocations to module description.
460         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
461         gl_PREREQ_STRPTIME invocations from here...
462         * modules/strptime (configure.ac): ... to here.
463
464 2011-05-22  Bruno Haible  <bruno@clisp.org>
465
466         strpbrk: Move AC_LIBOBJ invocations to module description.
467         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
468         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
469         here...
470         * modules/strpbrk (configure.ac): ... to here.
471
472 2011-05-22  Bruno Haible  <bruno@clisp.org>
473
474         strnlen: Move AC_LIBOBJ invocations to module description.
475         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
476         invocations from here...
477         * modules/strnlen (configure.ac): ... to here.
478
479 2011-05-22  Bruno Haible  <bruno@clisp.org>
480
481         strndup: Move AC_LIBOBJ invocations to module description.
482         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
483         invocations from here...
484         * modules/strndup (configure.ac): ... to here.
485         (Depends-on): Update conditions.
486
487 2011-05-22  Bruno Haible  <bruno@clisp.org>
488
489         strncat: Move AC_LIBOBJ invocations to module description.
490         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
491         invocations from here...
492         * modules/strncat (configure.ac): ... to here.
493
494 2011-05-22  Bruno Haible  <bruno@clisp.org>
495
496         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
497         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
498         invocations from here...
499         * modules/strdup (configure.ac): ... to here.
500         * modules/strdup-posix (configure.ac): ... and here.
501
502 2011-05-22  Bruno Haible  <bruno@clisp.org>
503
504         strcspn: Move AC_LIBOBJ invocations to module description.
505         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
507         here...
508         * modules/strcspn (configure.ac): ... to here.
509
510 2011-05-22  Bruno Haible  <bruno@clisp.org>
511
512         strchrnul: Move AC_LIBOBJ invocations to module description.
513         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
514         gl_PREREQ_STRCHRNUL invocations from here...
515         * modules/strchrnul (configure.ac): ... to here.
516
517 2011-05-22  Bruno Haible  <bruno@clisp.org>
518
519         strcasestr*: Move AC_LIBOBJ invocations to module description.
520         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
521         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
522         * modules/strcasestr-simple (configure.ac): ... to here.
523         * modules/strcasestr (configure.ac): ... and here.
524
525 2011-05-22  Bruno Haible  <bruno@clisp.org>
526
527         strcase: Move AC_LIBOBJ invocations to module description.
528         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
529         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
530         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
531         gl_PREREQ_STRNCASECMP invocations from here...
532         * modules/strcase (configure.ac): ... to here.
533
534 2011-05-22  Bruno Haible  <bruno@clisp.org>
535
536         stpncpy: Move AC_LIBOBJ invocations to module description.
537         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
538         here...
539         * modules/stpncpy (configure.ac): ... to here.
540
541 2011-05-22  Bruno Haible  <bruno@clisp.org>
542
543         stpcpy: Move AC_LIBOBJ invocations to module description.
544         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
545         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
546         here...
547         * modules/stpcpy (configure.ac): ... to here.
548
549 2011-05-21  Bruno Haible  <bruno@clisp.org>
550
551         stat: Move AC_LIBOBJ invocations to module description.
552         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
553         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
554         here...
555         * modules/stat (configure.ac): ... to here.
556
557 2011-05-21  Bruno Haible  <bruno@clisp.org>
558
559         sleep: Move AC_LIBOBJ invocations to module description.
560         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
561         * modules/sleep (configure.ac): ... to here.
562
563 2011-05-21  Bruno Haible  <bruno@clisp.org>
564
565         signbit: Move AC_LIBOBJ invocations to module description.
566         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
567         * modules/signbit (configure.ac): ... to here.
568
569 2011-05-21  Bruno Haible  <bruno@clisp.org>
570
571         sigprocmask: Move AC_LIBOBJ invocations to module description.
572         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
573         gl_PREREQ_SIGPROMASK invocations from here...
574         * modules/sigprocmask (configure.ac): ... to here.
575
576 2011-05-21  Bruno Haible  <bruno@clisp.org>
577
578         sigaction: Move AC_LIBOBJ invocations to module description.
579         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
580         gl_PREREQ_SIGACTION invocations from here...
581         * modules/sigaction (configure.ac): ... to here.
582
583 2011-05-21  Bruno Haible  <bruno@clisp.org>
584
585         sig2str: Move AC_LIBOBJ invocations to module description.
586         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
587         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
588         here...
589         * modules/sig2str (configure.ac): ... to here.
590
591 2011-05-21  Bruno Haible  <bruno@clisp.org>
592
593         setlocale: Move AC_LIBOBJ invocations to module description.
594         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
595         gl_PREREQ_SETLOCALE invocations from here...
596         * modules/setlocale (configure.ac): ... to here.
597
598 2011-05-21  Bruno Haible  <bruno@clisp.org>
599
600         unsetenv: Move AC_LIBOBJ invocations to module description.
601         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
602         and gl_PREREQ_UNSETENV invocations from here...
603         * modules/unsetenv (configure.ac): ... to here.
604         (Depends-on): Update.
605
606 2011-05-21  Bruno Haible  <bruno@clisp.org>
607
608         setenv: Move AC_LIBOBJ invocations to module description.
609         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
610         here...
611         * modules/setenv (configure.ac): ... to here.
612
613 2011-05-21  Bruno Haible  <bruno@clisp.org>
614
615         selinux-h: Move AC_LIBOBJ invocations to module description.
616         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
617         AC_LIBOBJ invocation from here...
618         * modules/selinux-h (configure.ac): ... to here.
619
620 2011-05-21  Bruno Haible  <bruno@clisp.org>
621
622         select: Respect rules for use of AC_LIBOBJ.
623         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
624         here...
625         * modules/select (configure.ac): ... to here.
626
627 2011-05-21  Bruno Haible  <bruno@clisp.org>
628
629         scandir: Move AC_LIBOBJ invocations to module description.
630         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
631         invocations from here...
632         * modules/scandir (configure.ac): ... to here.
633
634 2011-05-21  Bruno Haible  <bruno@clisp.org>
635
636         rpmatch: Move AC_LIBOBJ invocations to module description.
637         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
638         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
639         here...
640         * modules/rpmatch (configure.ac): ... to here.
641
642 2011-05-21  Bruno Haible  <bruno@clisp.org>
643
644         rmdir: Respect rules for use of AC_LIBOBJ.
645         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
646         * modules/rmdir (configure.ac): ... to here.
647
648 2011-05-21  Bruno Haible  <bruno@clisp.org>
649
650         renameat: Move AC_LIBOBJ invocations to module description.
651         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
652         here...
653         * modules/renameat (configure.ac): ... to here.
654
655 2011-05-21  Bruno Haible  <bruno@clisp.org>
656
657         rename: Respect rules for use of AC_LIBOBJ.
658         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
659         here...
660         * modules/rename (configure.ac): ... to here.
661
662 2011-05-21  Bruno Haible  <bruno@clisp.org>
663
664         remove: Move AC_LIBOBJ invocations to module description.
665         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
666         here...
667         * modules/remove (configure.ac): ... to here.
668
669 2011-05-21  Bruno Haible  <bruno@clisp.org>
670
671         relocatable-lib: Move AC_LIBOBJ invocations to module description.
672         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
673         macro.
674         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
675         * modules/relocatable-lib (configure.ac): ... to here.
676         * modules/relocatable-prog-wrapper (configure.ac): Invoke
677         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
678
679 2011-05-21  Bruno Haible  <bruno@clisp.org>
680
681         relocatable-prog: Move AC_LIBOBJ invocations to module description.
682         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
683         here...
684         * modules/relocatable-prog (configure.ac): ... to here.
685
686 2011-05-21  Bruno Haible  <bruno@clisp.org>
687
688         regex: Move AC_LIBOBJ invocations to module description.
689         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
690         invocations from here...
691         * modules/regex (configure.ac): ... to here.
692
693 2011-05-21  Bruno Haible  <bruno@clisp.org>
694
695         realloc-*: Move AC_LIBOBJ invocations to module description.
696         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
697         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
698         AC_LIBOBJ invocations from here...
699         * modules/realloc-gnu (configure.ac): ... to here.
700         * modules/realloc-posix (configure.ac): ... and here.
701
702 2011-05-21  Bruno Haible  <bruno@clisp.org>
703
704         readutmp: Move AC_LIBOBJ invocations to module description.
705         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
706         * modules/readutmp (configure.ac): ... to here.
707
708 2011-05-21  Bruno Haible  <bruno@clisp.org>
709
710         readlinkat: Move AC_LIBOBJ invocations to module description.
711         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
712         here...
713         * modules/readlinkat (configure.ac): ... to here.
714
715 2011-05-21  Bruno Haible  <bruno@clisp.org>
716
717         readlink: Move AC_LIBOBJ invocations to module description.
718         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
719         gl_PREREQ_READLINK invocations from here...
720         * modules/readlink (configure.ac): ... to here.
721
722 2011-05-21  Bruno Haible  <bruno@clisp.org>
723
724         readline: Move AC_LIBOBJ invocations to module description.
725         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
726         gl_PREREQ_READLINE invocations from here...
727         * modules/readline (configure.ac): ... to here.
728
729 2011-05-21  Bruno Haible  <bruno@clisp.org>
730
731         read: Move AC_LIBOBJ invocations to module description.
732         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
733         * modules/read (configure.ac): ... to here.
734
735 2011-05-21  Bruno Haible  <bruno@clisp.org>
736
737         rawmemchr: Move AC_LIBOBJ invocations to module description.
738         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
739         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
740         from here...
741         * modules/rawmemchr (configure.ac): ... to here.
742
743 2011-05-21  Bruno Haible  <bruno@clisp.org>
744
745         random_r: Move AC_LIBOBJ invocations to module description.
746         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
747         gl_PREREQ_RANDOM_R invocations from here...
748         * modules/random_r (configure.ac): ... to here.
749
750 2011-05-21  Bruno Haible  <bruno@clisp.org>
751
752         pwrite: Move AC_LIBOBJ invocations to module description.
753         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
754         * modules/pwrite (configure.ac): ... to here.
755
756 2011-05-21  Bruno Haible  <bruno@clisp.org>
757
758         putenv: Move AC_LIBOBJ invocations to module description.
759         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
760         * modules/putenv (configure.ac): ... to here.
761
762 2011-05-21  Bruno Haible  <bruno@clisp.org>
763
764         login_tty: Move AC_LIBOBJ invocations to module description.
765         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
766         * modules/login_tty (configure.ac): ... to here.
767
768 2011-05-21  Bruno Haible  <bruno@clisp.org>
769
770         openpty: Move AC_LIBOBJ invocations to module description.
771         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
772         * modules/openpty (configure.ac): ... to here.
773
774 2011-05-21  Bruno Haible  <bruno@clisp.org>
775
776         forkpty: Move AC_LIBOBJ invocations to module description.
777         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
778         * modules/forkpty (configure.ac): ... to here.
779
780 2011-05-21  Bruno Haible  <bruno@clisp.org>
781
782         ptsname: Move AC_LIBOBJ invocations to module description.
783         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
784         invocations from here...
785         * modules/ptsname (configure.ac): ... to here.
786
787 2011-05-21  Bruno Haible  <bruno@clisp.org>
788
789         pread: Move AC_LIBOBJ invocations to module description.
790         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
791         * modules/pread (configure.ac): ... to here.
792
793 2011-05-21  Bruno Haible  <bruno@clisp.org>
794
795         posix_spawn*: Move AC_LIBOBJ invocations to module description.
796         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
797         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
798         * modules/posix_spawn (configure.ac): ... to here.
799         * modules/posix_spawnp (configure.ac): ... and here.
800
801 2011-05-21  Bruno Haible  <bruno@clisp.org>
802
803         popen: Move AC_LIBOBJ invocations to module description.
804         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
805         invocations from here...
806         * modules/popen (configure.ac): ... to here.
807
808 2011-05-21  Bruno Haible  <bruno@clisp.org>
809
810         poll: Move AC_LIBOBJ invocations to module description.
811         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
812         invocations from here...
813         * modules/poll (configure.ac): ... to here.
814
815 2011-05-21  Bruno Haible  <bruno@clisp.org>
816
817         pipe-posix: Move AC_LIBOBJ invocations to module description.
818         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
819         * modules/pipe-posix (configure.ac): ... to here.
820
821 2011-05-21  Bruno Haible  <bruno@clisp.org>
822
823         openat: Respect rules for use of AC_LIBOBJ.
824         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
825         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
826         * modules/openat (configure.ac): ... to here.
827
828 2011-05-21  Bruno Haible  <bruno@clisp.org>
829
830         obstack-printf*: Move AC_LIBOBJ invocations to module description.
831         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
832         invocation from here...
833         * modules/obstack-printf (configure.ac): ... to here.
834         * modules/obstack-printf-posix (configure.ac): ... and here.
835
836 2011-05-21  Bruno Haible  <bruno@clisp.org>
837
838         nl_langinfo: Move AC_LIBOBJ invocations to module description.
839         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
840         from here...
841         * modules/nl_langinfo (configure.ac): ... to here.
842
843 2011-05-21  Bruno Haible  <bruno@clisp.org>
844
845         nanosleep: Move AC_LIBOBJ invocations to module description.
846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
847         gl_PREREQ_NANOSLEEP invocations from here...
848         * modules/nanosleep (configure.ac): ... to here.
849
850 2011-05-21  Bruno Haible  <bruno@clisp.org>
851
852         mountlist: Move AC_LIBOBJ invocations to module description.
853         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
854         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
855         * modules/mountlist (configure.ac): ... to here.
856
857 2011-05-21  Bruno Haible  <bruno@clisp.org>
858
859         mktime: Respect rules for use of AC_LIBOBJ.
860         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
861         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
862         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
863         (gl_FUNC_MKTIME_INTERNAL): ... and here...
864         * modules/mktime (configure.ac): ... to here.
865         * modules/mktime-internal (configure.ac): ... and here.
866         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
867
868 2011-05-21  Bruno Haible  <bruno@clisp.org>
869
870         mkstemps: Move AC_LIBOBJ invocations to module description.
871         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
872         here...
873         * modules/mkstemps (configure.ac): ... to here.
874
875 2011-05-21  Bruno Haible  <bruno@clisp.org>
876
877         mkstemp: Move AC_LIBOBJ invocations to module description.
878         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
879         gl_PREREQ_MKSTEMP invocations from here...
880         * modules/mkstemp (configure.ac): ... to here.
881
882 2011-05-21  Bruno Haible  <bruno@clisp.org>
883
884         mkostemps: Move AC_LIBOBJ invocations to module description.
885         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
886         here...
887         * modules/mkostemps (configure.ac): ... to here.
888
889 2011-05-21  Bruno Haible  <bruno@clisp.org>
890
891         mkostemp: Move AC_LIBOBJ invocations to module description.
892         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
893         gl_PREREQ_MKOSTEMP invocations from here...
894         * modules/mkostemp (configure.ac): ... to here.
895
896 2011-05-21  Bruno Haible  <bruno@clisp.org>
897
898         mknod: Move AC_LIBOBJ invocations to module description.
899         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
900         * modules/mknod (configure.ac): ... to here.
901
902 2011-05-21  Bruno Haible  <bruno@clisp.org>
903
904         mkfifoat: Move AC_LIBOBJ invocations to module description.
905         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
906         here...
907         * modules/mkfifoat (configure.ac): ... to here.
908
909 2011-05-21  Bruno Haible  <bruno@clisp.org>
910
911         mkfifo: Respect rules for use of AC_LIBOBJ.
912         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
913         here...
914         * modules/mkfifo (configure.ac): ... to here.
915
916 2011-05-21  Bruno Haible  <bruno@clisp.org>
917
918         mkdtemp: Move AC_LIBOBJ invocations to module description.
919         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
920         invocations from here...
921         * modules/mkdtemp (configure.ac): ... to here.
922
923 2011-05-21  Bruno Haible  <bruno@clisp.org>
924
925         mkdir: Move AC_LIBOBJ invocations to module description.
926         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
927         * modules/mkdir (configure.ac): ... to here.
928
929 2011-05-21  Bruno Haible  <bruno@clisp.org>
930
931         memset: Move AC_LIBOBJ invocations to module description.
932         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
933         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
934         here...
935         * modules/memset (configure.ac): ... to here.
936
937 2011-05-21  Bruno Haible  <bruno@clisp.org>
938
939         memrchr: Move AC_LIBOBJ invocations to module description.
940         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
941         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
942         here...
943         * modules/memrchr (configure.ac): ... to here.
944
945 2011-05-21  Bruno Haible  <bruno@clisp.org>
946
947         mempcpy: Move AC_LIBOBJ invocations to module description.
948         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
949         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
950         here...
951         * modules/mempcpy (configure.ac): ... to here.
952
953 2011-05-21  Bruno Haible  <bruno@clisp.org>
954
955         memmove: Move AC_LIBOBJ invocations to module description.
956         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
957         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
958         here...
959         * modules/memmove (configure.ac): ... to here.
960
961 2011-05-21  Bruno Haible  <bruno@clisp.org>
962
963         memmem*: Move AC_LIBOBJ invocations to module description.
964         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
965         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
966         here...
967         (gl_FUNC_MEMMEM): ... and here...
968         * modules/memmem-simple (configure.ac): ... to here.
969         * modules/memmem (configure.ac): ... and here.
970
971 2011-05-21  Bruno Haible  <bruno@clisp.org>
972
973         memcpy: Move AC_LIBOBJ invocations to module description.
974         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
975         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
976         here...
977         * modules/memcpy (configure.ac): ... to here.
978
979 2011-05-21  Bruno Haible  <bruno@clisp.org>
980
981         memcmp: Simplify autoconf macro.
982         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
983         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
984         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
985
986 2011-05-21  Bruno Haible  <bruno@clisp.org>
987
988         memcmp: Move AC_LIBOBJ invocations to module description.
989         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
990         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
991         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
992         * modules/memcmp (configure.ac): ... to here.
993         (Depends-on): Update conditions.
994
995 2011-05-21  Bruno Haible  <bruno@clisp.org>
996
997         memchr: Respect rules for use of AC_LIBOBJ.
998         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
999         invocations from here...
1000         * modules/memchr (configure.ac): ... to here.
1001
1002 2011-05-21  Bruno Haible  <bruno@clisp.org>
1003
1004         mbtowc: Move AC_LIBOBJ invocations to module description.
1005         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
1006         invocations from here...
1007         * modules/mbtowc (configure.ac): ... to here.
1008
1009 2011-05-21  Bruno Haible  <bruno@clisp.org>
1010
1011         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
1012         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
1013         gl_PREREQ_MBSRTOWCS invocations from here...
1014         * modules/mbsrtowcs (configure.ac): ... to here.
1015
1016 2011-05-21  Bruno Haible  <bruno@clisp.org>
1017
1018         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
1019         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
1020         gl_PREREQ_MBSNRTOWCS invocations from here...
1021         * modules/mbsnrtowcs (configure.ac): ... to here.
1022
1023 2011-05-21  Bruno Haible  <bruno@clisp.org>
1024
1025         mbsinit: Move AC_LIBOBJ invocations to module description.
1026         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
1027         invocations from here...
1028         * modules/mbsinit (configure.ac): ... to here.
1029
1030 2011-05-21  Bruno Haible  <bruno@clisp.org>
1031
1032         mbrlen: Move AC_LIBOBJ invocations to module description.
1033         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
1034         invocations from here...
1035         * modules/mbrlen (configure.ac): ... to here.
1036
1037 2011-05-21  Bruno Haible  <bruno@clisp.org>
1038
1039         mbrtowc: Respect rules for use of AC_LIBOBJ.
1040         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
1041         invocations from here...
1042         * modules/mbrtowc (configure.ac): ... to here.
1043
1044 2011-05-21  Bruno Haible  <bruno@clisp.org>
1045
1046         malloc-*: Move AC_LIBOBJ invocations to module description.
1047         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
1048         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
1049         AC_LIBOBJ invocations from here...
1050         * modules/malloc-gnu (configure.ac): ... to here.
1051         * modules/malloc-posix (configure.ac): ... and here.
1052
1053 2011-05-21  Bruno Haible  <bruno@clisp.org>
1054
1055         lstat, openat: Respect rules for use of AC_LIBOBJ.
1056         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
1057         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
1058         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
1059         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
1060         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
1061         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
1062         here.
1063         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1064
1065 2011-05-21  Bruno Haible  <bruno@clisp.org>
1066
1067         lseek: Move AC_LIBOBJ invocations to module description.
1068         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
1069         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1070         * modules/lseek (configure.ac): ... to here.
1071
1072 2011-05-21  Bruno Haible  <bruno@clisp.org>
1073
1074         linkat: Move AC_LIBOBJ invocations to module description.
1075         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
1076         here...
1077         * modules/linkat (configure.ac): ... to here.
1078
1079 2011-05-21  Bruno Haible  <bruno@clisp.org>
1080
1081         link: Respect rules for use of AC_LIBOBJ.
1082         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
1083         * modules/link (configure.ac): ... to here.
1084
1085 2011-05-21  Bruno Haible  <bruno@clisp.org>
1086
1087         lchown: Move AC_LIBOBJ invocations to module description.
1088         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1089         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
1090         * modules/lchown (configure.ac): ... to here.
1091
1092 2011-05-21  Bruno Haible  <bruno@clisp.org>
1093
1094         iswctype: Move AC_LIBOBJ invocations to module description.
1095         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
1096         here...
1097         * modules/iswctype (configure.ac): ... to here.
1098
1099 2011-05-21  Bruno Haible  <bruno@clisp.org>
1100
1101         iswblank: Move AC_LIBOBJ invocations to module description.
1102         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
1103         here...
1104         * modules/iswblank (configure.ac): ... to here.
1105
1106 2011-05-21  Bruno Haible  <bruno@clisp.org>
1107
1108         atanl: Move AC_LIBOBJ invocations to module description.
1109         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
1110         * modules/atanl (configure.ac): ... to here.
1111
1112 2011-05-21  Bruno Haible  <bruno@clisp.org>
1113
1114         acosl: Move AC_LIBOBJ invocations to module description.
1115         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
1116         * modules/acosl (configure.ac): ... to here.
1117
1118 2011-05-21  Bruno Haible  <bruno@clisp.org>
1119
1120         asinl: Respect rules for use of AC_LIBOBJ.
1121         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
1122         * modules/asinl (configure.ac): ... to here.
1123
1124 2011-05-21  Bruno Haible  <bruno@clisp.org>
1125
1126         tanl: Move AC_LIBOBJ invocations to module description.
1127         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
1128         * modules/tanl (configure.ac): ... to here.
1129
1130 2011-05-21  Bruno Haible  <bruno@clisp.org>
1131
1132         cosl: Move AC_LIBOBJ invocations to module description.
1133         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
1134         * modules/cosl (configure.ac): ... to here.
1135
1136 2011-05-21  Bruno Haible  <bruno@clisp.org>
1137
1138         sinl: Move AC_LIBOBJ invocations to module description.
1139         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
1140         * modules/sinl (configure.ac): ... to here.
1141
1142 2011-05-21  Bruno Haible  <bruno@clisp.org>
1143
1144         logl: Move AC_LIBOBJ invocations to module description.
1145         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
1146         * modules/logl (configure.ac): ... to here.
1147
1148 2011-05-21  Bruno Haible  <bruno@clisp.org>
1149
1150         expl: Move AC_LIBOBJ invocations to module description.
1151         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
1152         * modules/expl (configure.ac): ... to here.
1153
1154 2011-05-21  Bruno Haible  <bruno@clisp.org>
1155
1156         roundl: Move AC_LIBOBJ invocations to module description.
1157         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
1158         * modules/roundl (configure.ac): ... to here.
1159
1160 2011-05-21  Bruno Haible  <bruno@clisp.org>
1161
1162         round: Move AC_LIBOBJ invocations to module description.
1163         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
1164         * modules/round (configure.ac): ... to here.
1165
1166 2011-05-21  Bruno Haible  <bruno@clisp.org>
1167
1168         roundf: Move AC_LIBOBJ invocations to module description.
1169         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
1170         * modules/roundf (configure.ac): ... to here.
1171
1172 2011-05-21  Bruno Haible  <bruno@clisp.org>
1173
1174         truncl: Move AC_LIBOBJ invocations to module description.
1175         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
1176         * modules/truncl (configure.ac): ... to here.
1177
1178 2011-05-21  Bruno Haible  <bruno@clisp.org>
1179
1180         trunc: Move AC_LIBOBJ invocations to module description.
1181         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
1182         * modules/trunc (configure.ac): ... to here.
1183
1184 2011-05-21  Bruno Haible  <bruno@clisp.org>
1185
1186         truncf: Move AC_LIBOBJ invocations to module description.
1187         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
1188         * modules/truncf (configure.ac): ... to here.
1189
1190 2011-05-21  Bruno Haible  <bruno@clisp.org>
1191
1192         ceill: Move AC_LIBOBJ invocations to module description.
1193         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
1194         * modules/ceill (configure.ac): ... to here.
1195
1196 2011-05-21  Bruno Haible  <bruno@clisp.org>
1197
1198         ceil: Move AC_LIBOBJ invocations to module description.
1199         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
1200         * modules/ceil (configure.ac): ... to here.
1201
1202 2011-05-21  Bruno Haible  <bruno@clisp.org>
1203
1204         ceilf: Move AC_LIBOBJ invocations to module description.
1205         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
1206         * modules/ceilf (configure.ac): ... to here.
1207
1208 2011-05-21  Bruno Haible  <bruno@clisp.org>
1209
1210         floorl: Respect rules for use of AC_LIBOBJ.
1211         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
1212         * modules/floorl (configure.ac): ... to here.
1213
1214 2011-05-21  Bruno Haible  <bruno@clisp.org>
1215
1216         floor: Respect rules for use of AC_LIBOBJ.
1217         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
1218         * modules/floor (configure.ac): ... to here.
1219
1220 2011-05-21  Bruno Haible  <bruno@clisp.org>
1221
1222         floorf: Move AC_LIBOBJ invocations to module description.
1223         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
1224         * modules/floorf (configure.ac): ... to here.
1225
1226 2011-05-20  Bruno Haible  <bruno@clisp.org>
1227
1228         sqrtl: Respect rules for use of AC_LIBOBJ.
1229         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
1230         * modules/sqrtl (configure.ac): ... to here.
1231
1232 2011-05-20  Bruno Haible  <bruno@clisp.org>
1233
1234         ldexpl: Respect rules for use of AC_LIBOBJ.
1235         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
1236         * modules/ldexpl (configure.ac): ... to here.
1237
1238 2011-05-20  Bruno Haible  <bruno@clisp.org>
1239
1240         frexpl*: Respect rules for use of AC_LIBOBJ.
1241         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
1242         invocation from here...
1243         * modules/frexpl (configure.ac): ... to here.
1244         * modules/frexpl-nolibm (configure.ac): ... and here.
1245
1246 2011-05-20  Bruno Haible  <bruno@clisp.org>
1247
1248         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
1249         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
1250         invocation from here...
1251         * modules/frexp (configure.ac): ... to here.
1252         * modules/frexp-nolibm (configure.ac): ... and here.
1253
1254 2011-05-20  Bruno Haible  <bruno@clisp.org>
1255
1256         isnan: Respect rules for use of AC_LIBOBJ.
1257         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
1258         invocations here.
1259         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
1260         REPLACE_ISNAN.
1261         * modules/isnand (configure.ac): Likewise.
1262         * modules/isnanl (configure.ac): Likewise.
1263
1264 2011-05-20  Bruno Haible  <bruno@clisp.org>
1265
1266         isnanl*: Respect rules for use of AC_LIBOBJ.
1267         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
1268         invocation from here...
1269         * modules/isnanl (configure.ac): ... to here.
1270         * modules/isnanl-nolibm (configure.ac): ... and here.
1271
1272 2011-05-20  Bruno Haible  <bruno@clisp.org>
1273
1274         isnand*: Move AC_LIBOBJ invocations to module description.
1275         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
1276         invocation from here...
1277         * modules/isnand (configure.ac): ... to here.
1278         * modules/isnand-nolibm (configure.ac): ... and here.
1279
1280 2011-05-20  Bruno Haible  <bruno@clisp.org>
1281
1282         isnanf*: Move AC_LIBOBJ invocations to module description.
1283         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
1284         invocation from here...
1285         * modules/isnanf (configure.ac): ... to here.
1286         * modules/isnanf-nolibm (configure.ac): ... and here.
1287
1288 2011-05-20  Bruno Haible  <bruno@clisp.org>
1289
1290         isnan*: Separate the AC_LIBOBJ invocations.
1291         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
1292         AC_LIBOBJ invocation.
1293         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
1294         here.
1295         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
1296         AC_LIBOBJ invocation.
1297         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
1298         here.
1299         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
1300         AC_LIBOBJ invocation.
1301         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
1302         here.
1303         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
1304
1305 2011-05-08  Bruno Haible  <bruno@clisp.org>
1306
1307         isinf: Move AC_LIBOBJ invocations to module description.
1308         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
1309         * modules/isinf (configure.ac): ... to here.
1310
1311 2011-05-08  Bruno Haible  <bruno@clisp.org>
1312
1313         isfinite: Move AC_LIBOBJ invocations to module description.
1314         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
1315         * modules/isfinite (configure.ac): ... to here.
1316
1317 2011-05-08  Bruno Haible  <bruno@clisp.org>
1318
1319         isblank: Move AC_LIBOBJ invocations to module description.
1320         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
1321         here...
1322         * modules/isblank (configure.ac): ... to here.
1323
1324 2011-05-08  Bruno Haible  <bruno@clisp.org>
1325
1326         isapipe: Move AC_LIBOBJ invocations to module description.
1327         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
1328         gl_PREREQ_ISAPIPE invocations from here...
1329         * modules/isapipe (configure.ac): ... to here.
1330         (Depends-on): Update condition.
1331
1332 2011-05-08  Bruno Haible  <bruno@clisp.org>
1333
1334         ioctl: Move AC_LIBOBJ invocations to module description.
1335         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
1336         invocations from here...
1337         * modules/ioctl (configure.ac): ... to here.
1338         (Depends-on): Update condition.
1339
1340 2011-05-08  Bruno Haible  <bruno@clisp.org>
1341
1342         imaxdiv: Move AC_LIBOBJ invocations to module description.
1343         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
1344         invocations from here...
1345         * modules/imaxdiv (configure.ac): ... to here.
1346
1347 2011-05-08  Bruno Haible  <bruno@clisp.org>
1348
1349         imaxabs: Move AC_LIBOBJ invocations to module description.
1350         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
1351         invocations from here...
1352         * modules/imaxabs (configure.ac): ... to here.
1353
1354 2011-05-08  Bruno Haible  <bruno@clisp.org>
1355
1356         getaddrinfo: Move AC_LIBOBJ invocations to module description.
1357         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
1358         AC_LIBOBJ invocations from here...
1359         * modules/getaddrinfo (configure.ac): ... to here.
1360         (Depends-on): Add conditions.
1361
1362 2011-05-08  Bruno Haible  <bruno@clisp.org>
1363
1364         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1365         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
1366         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1367         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
1368         (gl_PREREQ_INET_PTON): ... from here.
1369         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
1370         gl_PREREQ_INET_PTON here.
1371         (Depends-on): Update condition.
1372
1373 2011-05-08  Bruno Haible  <bruno@clisp.org>
1374
1375         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
1376         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
1377         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
1378         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
1379         (gl_PREREQ_INET_NTOP): ... from here.
1380         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
1381         gl_PREREQ_INET_NTOP here.
1382         (Depends-on): Update condition.
1383
1384 2011-05-08  Bruno Haible  <bruno@clisp.org>
1385
1386         iconv_open: Move AC_LIBOBJ invocations to module description.
1387         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
1388         AC_LIBOBJ invocations from here...
1389         * modules/iconv_open (configure.ac): ... to here.
1390
1391 2011-05-08  Bruno Haible  <bruno@clisp.org>
1392
1393         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
1394         If module 'iconv_open' is among the main modules and module
1395         'iconv_open-utf' is among the tests dependencies, then
1396         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
1397         return the special iconv_t values. Therefore iconv() and iconv_close()
1398         must support these special iconv_t values, already in lib, not only in
1399         tests.
1400         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
1401         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
1402         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
1403         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
1404         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
1405         (Depends-on): Add the dependencies of iconv_open-utf.
1406         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
1407         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
1408         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
1409
1410 2011-05-08  Bruno Haible  <bruno@clisp.org>
1411
1412         group-member: Move AC_LIBOBJ invocations to module description.
1413         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
1414         gl_PREREQ_GROUP_MEMBER invocations from here...
1415         * modules/group-member (configure.ac): ... to here.
1416
1417 2011-05-08  Bruno Haible  <bruno@clisp.org>
1418
1419         grantpt: Move AC_LIBOBJ invocations to module description.
1420         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
1421         invocations from here...
1422         * modules/grantpt (configure.ac): ... to here.
1423
1424 2011-05-08  Bruno Haible  <bruno@clisp.org>
1425
1426         glob: Move AC_LIBOBJ invocations to module description.
1427         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
1428         from here...
1429         * modules/glob (configure.ac): ... to here.
1430
1431 2011-05-08  Bruno Haible  <bruno@clisp.org>
1432
1433         getusershell: Move AC_LIBOBJ invocations to module description.
1434         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
1435         Move AC_LIBOBJ invocation from here...
1436         * modules/getusershell (configure.ac): ... to here.
1437         (Depends-on): Update condition.
1438
1439 2011-05-08  Bruno Haible  <bruno@clisp.org>
1440
1441         gettimeofday: Move AC_LIBOBJ invocations to module description.
1442         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1443         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
1444         gl_PREREQ_GETTIMEOFDAY invocations from here...
1445         * modules/gettimeofday (configure.ac): ... to here.
1446
1447 2011-05-08  Bruno Haible  <bruno@clisp.org>
1448
1449         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
1450         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
1451         just gl_FUNC_TZSET.
1452         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
1453         (gl_FUNC_TZSET_CLOBBER): Remove actions.
1454         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
1455         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
1456
1457 2011-05-08  Bruno Haible  <bruno@clisp.org>
1458
1459         getsubopt: Move AC_LIBOBJ invocations to module description.
1460         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
1461         gl_PREREQ_GETSUBOPT invocations from here...
1462         * modules/getsubopt (configure.ac): ... to here.
1463
1464 2011-05-08  Bruno Haible  <bruno@clisp.org>
1465
1466         getpass-gnu: Move AC_LIBOBJ invocations to module description.
1467         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
1468         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
1469         * modules/getpass-gnu (configure.ac): ... to here.
1470
1471 2011-05-08  Bruno Haible  <bruno@clisp.org>
1472
1473         getpass: Move AC_LIBOBJ invocations to module description.
1474         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
1475         gl_PREREQ_GETPASS invocations from here...
1476         * modules/getpass (configure.ac): ... to here.
1477
1478 2011-05-08  Bruno Haible  <bruno@clisp.org>
1479
1480         getpagesize: Move AC_LIBOBJ invocations to module description.
1481         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
1482         from here...
1483         * modules/getpagesize (configure.ac): ... to here.
1484
1485 2011-05-08  Bruno Haible  <bruno@clisp.org>
1486
1487         getopt: Move AC_LIBOBJ invocations to module description.
1488         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
1489         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
1490         invocations from here...
1491         * modules/getopt-gnu (configure.ac): ... to here.
1492         * modules/getopt-posix (configure.ac): ... and here.
1493         (Depends-on): Update condition.
1494
1495 2011-05-08  Bruno Haible  <bruno@clisp.org>
1496
1497         getopt, argp: Respect rules for use of AC_LIBOBJ.
1498         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
1499         (gl_REPLACE_GETOPT_ALWAYS): New macro.
1500         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
1501         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
1502
1503 2011-05-08  Bruno Haible  <bruno@clisp.org>
1504
1505         getlogin_r: Move AC_LIBOBJ invocations to module description.
1506         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
1507         gl_PREREQ_GETLOGIN_R invocations from here...
1508         * modules/getlogin_r (configure.ac): ... to here.
1509
1510 2011-05-08  Bruno Haible  <bruno@clisp.org>
1511
1512         getlogin: Move AC_LIBOBJ invocations to module description.
1513         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
1514         here...
1515         * modules/getlogin (configure.ac): ... to here.
1516
1517 2011-05-08  Bruno Haible  <bruno@clisp.org>
1518
1519         getloadavg: Move AC_LIBOBJ invocations to module description.
1520         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
1521         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
1522         * modules/getloadavg (configure.ac): ... to here.
1523
1524 2011-05-08  Bruno Haible  <bruno@clisp.org>
1525
1526         gethrxtime: Move AC_LIBOBJ invocations to module description.
1527         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
1528         LIB_GETHRXTIME from here...
1529         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
1530         invocations from here...
1531         * modules/gethrxtime (configure.ac): ... to here.
1532
1533 2011-05-08  Bruno Haible  <bruno@clisp.org>
1534
1535         gethostname: Move AC_LIBOBJ invocations to module description.
1536         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
1537         gl_PREREQ_GETHOSTNAME invocations from here...
1538         * modules/gethostname (configure.ac): ... to here.
1539
1540 2011-05-08  Bruno Haible  <bruno@clisp.org>
1541
1542         getgroups: Move AC_LIBOBJ invocations to module description.
1543         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
1544         here...
1545         * modules/getgroups (configure.ac): ... to here.
1546
1547 2011-05-08  Bruno Haible  <bruno@clisp.org>
1548
1549         getdtablesize: Move AC_LIBOBJ invocations to module description.
1550         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
1551         invocation from here...
1552         * modules/getdtablesize (configure.ac): ... to here.
1553
1554 2011-05-08  Bruno Haible  <bruno@clisp.org>
1555
1556         getdomainname: Move AC_LIBOBJ invocations to module description.
1557         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
1558         gl_PREREQ_GETDOMAINNAME invocations from here...
1559         * modules/getdomainname (configure.ac): ... to here.
1560
1561 2011-05-08  Bruno Haible  <bruno@clisp.org>
1562
1563         getline: Move AC_LIBOBJ invocations to module description.
1564         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
1565         invocations from here...
1566         * modules/getline (configure.ac): ... to here.
1567
1568 2011-05-08  Bruno Haible  <bruno@clisp.org>
1569
1570         getline: Simplify.
1571         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
1572         It's already handled through the module dependency.
1573
1574 2011-05-08  Bruno Haible  <bruno@clisp.org>
1575
1576         getdelim: Move AC_LIBOBJ invocations to module description.
1577         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
1578         and gl_PREREQ_GETDELIM invocations from here...
1579         * modules/getdelim (configure.ac): ... to here.
1580         (Depends-on): Fix condition.
1581
1582 2011-05-08  Bruno Haible  <bruno@clisp.org>
1583
1584         getcwd: Move AC_LIBOBJ invocations to module description.
1585         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
1586         invocations from here...
1587         * modules/getcwd (configure.ac): ... to here.
1588
1589 2011-05-08  Bruno Haible  <bruno@clisp.org>
1590
1591         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
1592         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
1593         here...
1594         * modules/getcwd-lgpl (configure.ac): ... to here.
1595
1596 2011-05-07  Bruno Haible  <bruno@clisp.org>
1597
1598         crypto/gc: Move AC_LIBOBJ invocations to module description.
1599         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
1600         * modules/crypto/gc (configure.ac): ... to here.
1601
1602 2011-05-07  Bruno Haible  <bruno@clisp.org>
1603
1604         fwriting: Move AC_LIBOBJ invocations to module description.
1605         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
1606         here...
1607         * modules/fwriting (configure.ac): ... to here.
1608
1609 2011-05-07  Bruno Haible  <bruno@clisp.org>
1610
1611         fwritable: Move AC_LIBOBJ invocations to module description.
1612         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
1613         here...
1614         * modules/fwritable (configure.ac): ... to here.
1615
1616 2011-05-07  Bruno Haible  <bruno@clisp.org>
1617
1618         futimens: Move AC_LIBOBJ invocations to module description.
1619         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
1620         here...
1621         * modules/futimens (configure.ac): ... to here.
1622
1623 2011-05-07  Bruno Haible  <bruno@clisp.org>
1624
1625         ftruncate: Move AC_LIBOBJ invocations to module description.
1626         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
1627         gl_PREREQ_FTRUNCATE invocations from here...
1628         * modules/ftruncate (configure.ac): ... to here.
1629
1630 2011-05-07  Bruno Haible  <bruno@clisp.org>
1631
1632         fsync: Move AC_LIBOBJ invocations to module description.
1633         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
1634         invocations from here...
1635         * modules/fsync (configure.ac): ... to here.
1636
1637 2011-05-07  Bruno Haible  <bruno@clisp.org>
1638
1639         fsusage: Move AC_LIBOBJ invocations to module description.
1640         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
1641         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
1642         * modules/fsusage (configure.ac): ... to here.
1643
1644 2011-05-07  Bruno Haible  <bruno@clisp.org>
1645
1646         freopen: Move AC_LIBOBJ invocations to module description.
1647         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
1648         invocations from here...
1649         * modules/freopen (configure.ac): ... to here.
1650
1651 2011-05-07  Bruno Haible  <bruno@clisp.org>
1652
1653         free: Move AC_LIBOBJ invocations to module description.
1654         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
1655         invocations from here...
1656         * modules/free (configure.ac): ... to here.
1657
1658 2011-05-07  Bruno Haible  <bruno@clisp.org>
1659
1660         freadable: Move AC_LIBOBJ invocations to module description.
1661         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
1662         here...
1663         * modules/freadable (configure.ac): ... to here.
1664
1665 2011-05-07  Bruno Haible  <bruno@clisp.org>
1666
1667         fpurge: Move AC_LIBOBJ invocations to module description.
1668         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
1669         invocations from here...
1670         * modules/fpurge (configure.ac): ... to here.
1671
1672 2011-05-07  Bruno Haible  <bruno@clisp.org>
1673
1674         fpending: Move AC_LIBOBJ invocations to module description.
1675         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
1676         gl_FUNC_FPENDING.
1677         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
1678         invocations from here...
1679         * modules/fpending (configure.ac): ... to here.
1680
1681 2011-05-07  Bruno Haible  <bruno@clisp.org>
1682
1683         fopen: Move AC_LIBOBJ invocations to module description.
1684         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
1685         invocations from here...
1686         * modules/fopen (configure.ac): ... to here.
1687
1688 2011-05-07  Bruno Haible  <bruno@clisp.org>
1689
1690         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
1691         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
1692         gl_FUNC_FNMATCH_POSIX.
1693         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
1694         invocations from here...
1695         * modules/fnmatch (configure.ac): ... to here.
1696         * modules/fnmatch-gnu (configure.ac): ... and here.
1697
1698 2011-05-07  Bruno Haible  <bruno@clisp.org>
1699
1700         flock: Move AC_LIBOBJ invocations to module description.
1701         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
1702         invocations from here...
1703         * modules/flock (configure.ac): ... to here.
1704
1705 2011-05-07  Bruno Haible  <bruno@clisp.org>
1706
1707         fileblocks: Move AC_LIBOBJ invocations to module description.
1708         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
1709         gl_PREREQ_FILEBLOCKS invocations from here...
1710         * modules/fileblocks (configure.ac): ... to here.
1711
1712 2011-05-06  Bruno Haible  <bruno@clisp.org>
1713
1714         fflush: Move AC_LIBOBJ invocations to module description.
1715         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
1716         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
1717         invocations from here...
1718         * modules/fflush (configure.ac): ... to here.
1719
1720 2011-05-06  Bruno Haible  <bruno@clisp.org>
1721
1722         fdopendir: Move AC_LIBOBJ invocations to module description.
1723         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
1724         here...
1725         * modules/fdopendir (configure.ac): ... to here.
1726         (Depends-on): Improve conditions.
1727
1728 2011-05-06  Bruno Haible  <bruno@clisp.org>
1729
1730         _Exit: Move AC_LIBOBJ invocations to module description.
1731         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
1732         invocations from here...
1733         * modules/_Exit (configure.ac): ... to here.
1734
1735 2011-05-21  Bruno Haible  <bruno@clisp.org>
1736
1737         euidaccess: Respect rules for use of AC_LIBOBJ.
1738         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
1739         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
1740         from here...
1741         * modules/euidaccess (configure.ac): ... to here.
1742
1743 2011-05-06  Bruno Haible  <bruno@clisp.org>
1744
1745         error: Move AC_LIBOBJ invocations to module description.
1746         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
1747         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
1748         invocations from here...
1749         * modules/error (configure.ac): ... to here.
1750
1751 2011-05-06  Bruno Haible  <bruno@clisp.org>
1752
1753         duplocale: Move AC_LIBOBJ invocations to module description.
1754         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
1755         gl_PREREQ_DUPLOCALE invocations from here...
1756         * modules/duplocale (configure.ac): ... to here.
1757
1758 2011-05-05  Bruno Haible  <bruno@clisp.org>
1759
1760         dirfd: Move AC_LIBOBJ invocations to module description.
1761         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
1762         gl_FUNC_DIRFD.
1763         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
1764         here...
1765         * modules/dirfd (configure.ac): ... to here.
1766         (Depends-on): Fix condition.
1767
1768 2011-05-05  Bruno Haible  <bruno@clisp.org>
1769
1770         chown: Respect rules for use of AC_LIBOBJ.
1771         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
1772         * modules/chown (configure.ac): ... to here.
1773
1774 2011-05-05  Bruno Haible  <bruno@clisp.org>
1775
1776         chdir-long: Move AC_LIBOBJ invocations to module description.
1777         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
1778         gl_PREREQ_CHDIR_LONG invocations from here...
1779         * modules/chdir-long (configure.ac): ... to here.
1780
1781 2011-05-05  Bruno Haible  <bruno@clisp.org>
1782
1783         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
1784         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
1785         from here...
1786         * modules/canonicalize-lgpl (configure.ac): ... to here.
1787
1788 2011-05-05  Bruno Haible  <bruno@clisp.org>
1789
1790         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
1791         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
1792         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
1793         REPLACE_CALLOC.
1794         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
1795         * modules/calloc-gnu (configure.ac): Likewise.
1796
1797 2011-05-05  Bruno Haible  <bruno@clisp.org>
1798
1799         btowc: Move AC_LIBOBJ invocations to module description.
1800         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
1801         invocations from here...
1802         * modules/btowc (configure.ac): ... to here.
1803
1804 2011-05-21  Bruno Haible  <bruno@clisp.org>
1805
1806         atexit: Move AC_LIBOBJ invocations to module description.
1807         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
1808         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
1809         here...
1810         * modules/atexit (configure.ac): ... to here.
1811
1812 2011-05-05  Bruno Haible  <bruno@clisp.org>
1813
1814         atoll: Move AC_LIBOBJ invocations to module description.
1815         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
1816         invocations from here...
1817         * modules/atoll (configure.ac): ... to here.
1818
1819 2011-05-05  Bruno Haible  <bruno@clisp.org>
1820
1821         argz: Move AC_LIBOBJ invocations to module description.
1822         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
1823         * modules/argz (configure.ac): ... to here.
1824
1825 2011-05-05  Bruno Haible  <bruno@clisp.org>
1826
1827         alphasort: Move AC_LIBOBJ invocations to module description.
1828         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
1829         gl_PREREQ_ALPHASORT invocations from here...
1830         * modules/alphasort (configure.ac): ... to here.
1831
1832 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1833
1834         verify: new macro verify_expr; verify_true deprecated
1835         * NEWS: Mention this.
1836         * doc/verify.texi (Compile-time Assertions): Document this.
1837         * lib/verify.h (verify_true): Deprecate.
1838         (verify_expr): New macro.
1839         * tests/test-verify.c (function): Test verify_expr.
1840
1841 2011-06-14  Jim Meyering  <meyering@redhat.com>
1842
1843         init.sh: give more portable redirection-related advice in a comment
1844         * tests/init.sh (stderr_fileno_): Update the advice in comments.
1845         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
1846         for lots of discussion.  Stefano Lattarini suggested the solution
1847         of putting "9>&2" after the command.  Reported by Bruno Haible.
1848
1849 2011-06-13  Bruno Haible  <bruno@clisp.org>
1850
1851         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
1852         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
1853         'none'.
1854
1855 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
1856
1857         ftoastr: use strtof only if HAVE_STRTOF
1858         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
1859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
1860         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
1861         * modules/ftoastr (configure.ac): Check for strtof.
1862
1863 2011-06-13  Bruno Haible  <bruno@clisp.org>
1864
1865         gnulib-tool: Addendum to 2011-06-08 commit.
1866         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
1867         and --witness-c-macro have been given, augment AM_CPPFLAGS.
1868
1869 2011-06-13  Bruno Haible  <bruno@clisp.org>
1870
1871         fseeko: Provide a non-inline replacement of fseek().
1872         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
1873         * modules/fseeko (Depends-on): Add fseek.
1874         * modules/fseek (License): Change to LGPLv2+.
1875
1876 2011-06-13  Bruno Haible  <bruno@clisp.org>
1877
1878         ftello: Provide a non-inline replacement of ftell().
1879         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
1880         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
1881         not have ftello() (such as on mingw).
1882         * modules/ftello (Depends-on): Add ftell.
1883         * modules/ftell (License): Change to LGPLv2+.
1884
1885 2011-05-07  Bruno Haible  <bruno@clisp.org>
1886
1887         ftell: Move AC_LIBOBJ invocations to module description.
1888         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
1889         * modules/ftell (configure.ac): ... to here.
1890
1891 2011-05-07  Bruno Haible  <bruno@clisp.org>
1892
1893         ftello: Respect rules for use of AC_LIBOBJ.
1894         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
1895         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
1896         here...
1897         * modules/ftello (configure.ac): ... to here.
1898
1899 2011-05-07  Bruno Haible  <bruno@clisp.org>
1900
1901         fseeko: Simplify.
1902         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
1903         (gl_FUNC_FSEEKO): Inline it here.
1904
1905 2011-05-07  Bruno Haible  <bruno@clisp.org>
1906
1907         fseek: Move AC_LIBOBJ invocations to module description.
1908         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
1909         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
1910         * modules/fseek (configure.ac): ... to here.
1911
1912 2011-05-07  Bruno Haible  <bruno@clisp.org>
1913
1914         fseek: Respect rules for use of AC_LIBOBJ.
1915         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
1916         here...
1917         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
1918
1919 2011-05-07  Bruno Haible  <bruno@clisp.org>
1920
1921         fseeko: Respect rules for use of AC_LIBOBJ.
1922         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
1923         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
1924         here...
1925         * modules/fseeko (configure.ac): ... to here.
1926
1927 2011-06-13  Bruno Haible  <bruno@clisp.org>
1928
1929         gnulib-tool: Allow comments in the 'Depends-on' section.
1930         * doc/gnulib.texi (Module description): Mention comment syntax in the
1931         Depends-on section.
1932         * gnulib-tool (func_get_dependencies): Filter out comment lines.
1933
1934 2011-06-13  Bruno Haible  <bruno@clisp.org>
1935
1936         file-set.h: guard __attibute__ use, now that it's not always defined
1937         * lib/file-set.h (record_file): Use __attribute__ only with compiler
1938         versions that support it.  This fixes a coreutils build failure with
1939         the vendor cc on HP-UX 11.31.
1940
1941 2011-06-12  Bruno Haible  <bruno@clisp.org>
1942
1943         acl: Add support for HP-UX >= 11.11 JFS ACLs.
1944         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
1945         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
1946         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
1947         (acl, aclsort): New declarations.
1948         (aclv_nontrivial): New declaration.
1949         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
1950         (file_has_acl): Read also the second kind of HP-UX ACLs.
1951         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
1952         kind of HP-UX ACLs if the first kind fails.
1953         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
1954         second kind of HP-UX ACLs.
1955         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
1956         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
1957         agree.
1958         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1959         hpuxjfs.
1960         Handle hpuxjfs.
1961         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
1962         hpuxjfs.
1963         Handle hpuxjfs.
1964         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1965         (func_test_same_acls): Use both lsacl and getacl.
1966         Handle hpuxjfs.
1967         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
1968         (func_test_same_acls): Use both lsacl and getacl.
1969         Handle hpuxjfs.
1970
1971 2011-06-12  Bruno Haible  <bruno@clisp.org>
1972
1973         acl: Complete the 2010-08-10 fix.
1974         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
1975         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
1976         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
1977         explicitly.
1978         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
1979         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
1980
1981 2011-06-12  Bruno Haible  <bruno@clisp.org>
1982
1983         spawn-pipe tests: Comments.
1984         * tests/test-spawn-pipe-child.c (main): Update comment.
1985         Reported by James Youngman <jay@gnu.org>.
1986
1987 2011-06-11  James Youngman  <jay@gnu.org>
1988
1989         New module 'stat-size'.
1990         * modules/stat-size: New module.  Provides macros for accessing
1991         file size information in instances of struct stat.  Depends on the
1992         fileblocks module because it calls st_blocks.
1993         * lib/stat-size.h: New file, adapted from coreutils' system.h.
1994         * doc/gnulib.texi: Include stat-size.texi.
1995         * doc/stat-size.texi: Documentation for this module.
1996         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
1997         * m4/fileblocks.m4: Mention that stat-size depends on the call to
1998         AC_STRUCT_ST_BLOCKS.
1999
2000 2011-06-09  Bruno Haible  <bruno@clisp.org>
2001
2002         thread: Support pthreads-win32.
2003         * lib/glthread/thread.h (gl_thread_self): Define differently on
2004         pthreads-win32.
2005         (gl_null_thread): New declaration.
2006         (gl_thread_self_pointer): New macro.
2007         * lib/glthread/thread.c (gl_null_thread): New constant.
2008         * tests/test-lock.c: Use gl_thread_self_pointer instead of
2009         gl_thread_self.
2010         * tests/test-tls.c: Likewise.
2011         Suggested by Paul Eggert. Reported by Eric Blake.
2012
2013 2011-06-09  Bruno Haible  <bruno@clisp.org>
2014
2015         thread: Fix confusion between NULL and 0.
2016         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
2017         Reported by Paul Eggert.
2018
2019 2011-06-09  Bruno Haible  <bruno@clisp.org>
2020
2021         spawn-pipe tests: Avoid test failure on HP-UX 11.
2022         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
2023         is closed.
2024
2025 2011-06-09  Bruno Haible  <bruno@clisp.org>
2026
2027         acl tests: Fix compilation error on HP-UX 11.
2028         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
2029
2030 2011-06-09  Bruno Haible  <bruno@clisp.org>
2031
2032         rmdir: Avoid test failure on HP-UX 10.20.
2033         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
2034         EEXIST.
2035
2036 2011-06-08  Eric Blake  <eblake@redhat.com>
2037
2038         perror: fix test on mingw
2039         * modules/perror-tests (Depends-on): Add dup2.
2040
2041         strerror_r-posix: fix on MacOS
2042         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
2043         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
2044         logic bug.
2045         * lib/strerror_r.c (strerror_r): Fix the bug.
2046         * lib/strerror.c (strerror): Likewise.
2047         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
2048         problem.
2049         * doc/posix-functions/strerror.texi (strerror): Likewise.
2050         * doc/posix-functions/perror.texi (perror): Likewise.
2051         * tests/test-strerror.c (main): Enhance test.
2052         * tests/test-strerror_r.c (main): Likewise.
2053
2054 2011-06-08  Bruno Haible  <bruno@clisp.org>
2055
2056         gnulib-tool: Better isolation between different gnulib-tool invocations.
2057         * gnulib-tool: New option --witness-c-macro.
2058         (witness_c_macro): New variable.
2059         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
2060         AM_CPPFLAGS define it as a C macro.
2061         (func_emit_tests_Makefile_am): Likewise.
2062         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
2063         read it from there.
2064         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
2065         m4_define, not AC_DEFUN.
2066         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
2067         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
2068         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
2069         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
2070         s|...|...|, to substitute the values of the GNULIB_* module indicator
2071         variables.
2072         * modules/dirent (Makefile.am): Likewise.
2073         * modules/fcntl-h (Makefile.am): Likewise.
2074         * modules/iconv-h (Makefile.am): Likewise.
2075         * modules/langinfo (Makefile.am): Likewise.
2076         * modules/locale (Makefile.am): Likewise.
2077         * modules/math (Makefile.am): Likewise.
2078         * modules/netdb (Makefile.am): Likewise.
2079         * modules/poll-h (Makefile.am): Likewise.
2080         * modules/pty (Makefile.am): Likewise.
2081         * modules/search (Makefile.am): Likewise.
2082         * modules/signal (Makefile.am): Likewise.
2083         * modules/spawn (Makefile.am): Likewise.
2084         * modules/stdio (Makefile.am): Likewise.
2085         * modules/stdlib (Makefile.am): Likewise.
2086         * modules/string (Makefile.am): Likewise.
2087         * modules/sys_ioctl (Makefile.am): Likewise.
2088         * modules/sys_select (Makefile.am): Likewise.
2089         * modules/sys_socket (Makefile.am): Likewise.
2090         * modules/sys_stat (Makefile.am): Likewise.
2091         * modules/sys_times (Makefile.am): Likewise.
2092         * modules/sys_utsname (Makefile.am): Likewise.
2093         * modules/sys_wait (Makefile.am): Likewise.
2094         * modules/termios (Makefile.am): Likewise.
2095         * modules/time (Makefile.am): Likewise.
2096         * modules/unistd (Makefile.am): Likewise.
2097         * modules/wchar (Makefile.am): Likewise.
2098
2099 2011-06-08  Eric Blake  <eblake@redhat.com>
2100
2101         strerror: simplify replacement
2102         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
2103         * modules/strerror (configure.ac): No prereqs needed here...
2104         * modules/strerror-override (configure.ac): ...but this needs it.
2105         (Files): Add file for needed prereq macro.
2106
2107 2011-06-08  Bruno Haible  <bruno@clisp.org>
2108
2109         strerror_r-posix: Tweaks.
2110         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
2111         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
2112         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
2113         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
2114         (gl_FUNC_STRERROR_R): ... to here.
2115         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
2116
2117 2011-06-07  Eric Blake  <eblake@redhat.com>
2118
2119         perror: document fixed bugs
2120         * doc/posix-functions/perror.texi (perror): Document recent
2121         patches.
2122
2123 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
2124
2125         stat-time: get_stat_birthtime failure is better-defined
2126         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
2127         return a timestamp whose tv_sec and tv_nsec values are both -1.
2128         Previously, the spec said only that the tv_nsec value was negative.
2129         This upward-compatible change simplifies GNU tar a bit.
2130
2131 2011-06-07  Eric Blake  <eblake@redhat.com>
2132
2133         strerror_r-posix: work around cygwin 1.7.9
2134         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
2135         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
2136         bug without replacing strerror_r.
2137         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
2138         strerror_r is buggy, but without requiring strerror_r compilation.
2139         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
2140
2141         test-perror: relax test to ignore cygwin bug
2142         * tests/test-perror2.c (main): Relax test on requiring detection
2143         of stream errors, and use unbuffered stream.
2144         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
2145         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
2146         * doc/posix-functions/fputc.texi (fputc): Likewise.
2147         * doc/posix-functions/fputs.texi (fputs): Likewise.
2148         * doc/posix-functions/fputws.texi (fputws): Likewise.
2149         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
2150         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
2151         * doc/posix-functions/getopt.texi (getopt): Likewise.
2152         * doc/posix-functions/perror.texi (perror): Likewise.
2153         * doc/posix-functions/printf.texi (printf): Likewise.
2154         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
2155         * doc/posix-functions/psignal.texi (psignal): Likewise.
2156         * doc/posix-functions/putc.texi (putc): Likewise.
2157         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
2158         Likewise.
2159         * doc/posix-functions/putchar.texi (putchar): Likewise.
2160         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
2161         Likewise.
2162         * doc/posix-functions/puts.texi (puts): Likewise.
2163         * doc/posix-functions/putwc.texi (putwc): Likewise.
2164         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
2165         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
2166         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2167         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
2168         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2169         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
2170         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2171         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
2172
2173 2011-05-22  Bruno Haible  <bruno@clisp.org>
2174
2175         strerror: Move AC_LIBOBJ invocations to module description.
2176         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
2177         gl_PREREQ_STRERROR invocations from here...
2178         * modules/strerror (configure.ac): ... to here.
2179
2180 2011-05-21  Bruno Haible  <bruno@clisp.org>
2181
2182         perror: Use common idiom.
2183         * modules/perror (configure.ac): Reorder statements.
2184
2185 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2186
2187         tests: fix usage message in 'mktempd_'
2188         * tests/init.sh (mktempd_): In the usage message, use literal
2189         'mktempd_', not '$ME' (which is even undefined), as the name of
2190         the subroutine.
2191
2192 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
2193
2194         tests init: new function 'fatal_', for hard errors
2195         Before this patch, the only way offered by tests/init.sh to
2196         properly signal a hard error was the `framework_failure_'
2197         function.  But the error message issued by that function,
2198         as its name would suggest, refers to a set-up failure in the
2199         testsuite, while hard errors can obviously also be due to
2200         other reasons.  The best way to fix this inconsistency is to
2201         introduce a new function with a more general error message.
2202         * tests/init.sh (fatal_): New function.
2203
2204 2011-06-06  Eric Blake  <eblake@redhat.com>
2205
2206         canonicalize-lgpl: use common idiom
2207         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
2208         over newer POSIX -Rf.
2209         Reported by Bruno Haible.
2210
2211         canonicalize-lgpl: work around AIX realpath bug
2212         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
2213         * doc/posix-functions/realpath.texi (realpath): Document it.
2214         Reported by Bruno Haible.
2215
2216         strerror: work around FreeBSD bug
2217         * lib/strerror.c (strerror): Special case 0.
2218         Reported by Bruno Haible.
2219
2220         strerror-override: avoid bloating errno module
2221         * modules/errno (Files, configure.ac): Move replacement strings...
2222         * modules/strerror-override: ...to new module.
2223         * modules/strerror (Depends-on): Add strerror-override.
2224         * modules/strerror_r-posix (Depends-on): Likewise.
2225         * MODULES.html.sh: Document new module.
2226         Reported by Bruno Haible.
2227
2228 2011-06-06  Bruno Haible  <bruno@clisp.org>
2229
2230         spawn-pipe tests: Rename program.
2231         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
2232         * tests/test-spawn-pipe-child.c: Update comment.
2233         * tests/test-spawn-pipe.sh: Update.
2234         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
2235
2236         spawn-pipe tests: Link the child program only against libc.
2237         * tests/test-spawn-pipe-child.c: New file, extracted from
2238         tests/test-spawn-pipe.c.
2239         (main): Expect only one argument.
2240         (is_open): New function, copied from tests/test-pipe.c.
2241         * tests/test-spawn-pipe.c: Don't include <errno.h>.
2242         (child_main): Remove function.
2243         (test_pipe): Pass only one argument to the child program.
2244         (main): Remove child process code. Expect the child program's name as
2245         first argument.
2246         * tests/test-spawn-pipe.sh: Pass the child program's name as first
2247         argument.
2248         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
2249         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
2250         test-spawn-pipe-child against no libraries.
2251
2252 2011-06-06  Bruno Haible  <bruno@clisp.org>
2253
2254         careadlinkat: Avoid mismatch between ssize_t and int.
2255         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
2256         * lib/careadlinkat.c (careadlinkatcwd): Define always.
2257
2258 2011-06-06  Jim Meyering  <meyering@redhat.com>
2259
2260         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
2261         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
2262         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
2263
2264 2011-06-05  Bruno Haible  <bruno@clisp.org>
2265
2266         ansi-c++-opt: Interoperability with libtool.
2267         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
2268         set the variable to "no", not to ":".
2269         * NEWS: Mention the change.
2270
2271 2011-06-05  Bruno Haible  <bruno@clisp.org>
2272
2273         acl: Fix test failure on AIX 7.
2274         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
2275         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
2276
2277 2011-06-05  Bruno Haible  <bruno@clisp.org>
2278
2279         pipe-filter-ii: Fix test failure on AIX and IRIX.
2280         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
2281         with EAGAIN, retry with a smaller buffer size.
2282
2283 2011-06-05  Bruno Haible  <bruno@clisp.org>
2284
2285         localename: Fix link dependencies.
2286         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
2287         * modules/localename-tests (Makefile.am): Link test-localename with
2288         $(LIBTHREAD).
2289
2290 2011-06-05  Bruno Haible  <bruno@clisp.org>
2291
2292         error: Avoid gcc warning.
2293         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
2294
2295 2011-06-05  Bruno Haible  <bruno@clisp.org>
2296
2297         unsetenv: Avoid gcc warning.
2298         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
2299
2300 2011-06-05  Bruno Haible  <bruno@clisp.org>
2301
2302         setenv: Avoid gcc warning.
2303         * lib/setenv.c (setenv): Provide declaration if system lacks it.
2304
2305 2011-06-05  Bruno Haible  <bruno@clisp.org>
2306
2307         sys_select: Ensure memset is declared also on AIX 7.
2308         * lib/sys_select.in.h: Include <string.h> also on AIX.
2309         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
2310         self-contained also on AIX 7.1.
2311
2312 2011-06-04  Jim Meyering  <meyering@redhat.com>
2313
2314         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
2315         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
2316         function name, "error".
2317         (_gl_translatable_diag_func_re): New configurable variable.
2318
2319 2011-06-04  Bruno Haible  <bruno@clisp.org>
2320
2321         getopt: Avoid gcc warning.
2322         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
2323
2324 2011-06-04  Bruno Haible  <bruno@clisp.org>
2325
2326         strerror_r: Fix comments.
2327         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
2328         commit.
2329
2330 2011-06-04  Bruno Haible  <bruno@clisp.org>
2331
2332         perror: Fix compilation error.
2333         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
2334         Undefine fprintf, not sprintf.
2335         * modules/perror (Depends-on): Remove intprops, verify.
2336
2337 2011-06-04  Bruno Haible  <bruno@clisp.org>
2338
2339         setlocale: Enable replacement on Cygwin 1.5.
2340         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
2341         Cygwin 1.5.x.
2342         * doc/posix-functions/setlocale.texi: Mention that the problem with the
2343         LC_CTYPE category also exists on Cygwin 1.5.x.
2344
2345 2011-06-04  Bruno Haible  <bruno@clisp.org>
2346
2347         strerror-override: Don't disable symbol renamings.
2348         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
2349         * lib/strerror-override.c: Include config.h.
2350         (strerror_override): Don't undefine.
2351
2352 2011-06-03  Bruno Haible  <bruno@clisp.org>
2353
2354         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
2355         * lib/localename.h: Update copyright header.
2356         * lib/localename.c: Likewise.
2357         * lib/relocatable.h: Likewise.
2358         * lib/relocatable.c: Likewise.
2359
2360 2011-06-02  Bruno Haible  <bruno@clisp.org>
2361
2362         doc: Fix a module name.
2363         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
2364
2365 2011-06-02  Bruno Haible  <bruno@clisp.org>
2366
2367         pipe2: Remove dependency on 'nonblocking' module.
2368         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
2369         O_NONBLOCK is defined by gnulib.
2370         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
2371         is zero.
2372         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
2373         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
2374         defined by gnulib.
2375         (get_nonblocking_flag): New function.
2376         (main): Test O_NONBLOCK flag only if it is nonzero.
2377         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
2378
2379 2011-06-03  Jim Meyering  <meyering@redhat.com>
2380
2381         maint: three new prohibit-header-without-use rules
2382         Prohibit use of cloexec.h, posixver.h, same.h without use.
2383         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
2384         (sc_prohibit_posixver_without_use): Likewise.
2385         (sc_prohibit_same_without_use): Likewise.
2386
2387 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
2388
2389         allocator: 'die' routine is now given requested size
2390         * lib/allocator.h (struct allocator.die): New size arg.
2391         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
2392         If the actual problem is an ssize_t limitation, not a size_t or
2393         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
2394
2395 2011-06-01  Eric Blake  <eblake@redhat.com>
2396
2397         strerror: drop strerror_r dependency
2398         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
2399         * lib/strerror-override.c (strerror_override): ...to new file.
2400         * lib/strerror-override.h: Add prototype.
2401         * lib/strerror-impl.h: Delete.
2402         * lib/strerror.c (strerror): New implementation.
2403         * modules/errno (Files): Add new files.
2404         (configure.ac): Compile new file as appropriate.
2405         * modules/strerror (Files): Drop unused file.
2406         (Depends-on): Drop strerror_r-posix.
2407         * MODULES.html.sh: Document strerror_r-posix.
2408         Requested by Sam Steingold.
2409
2410         perror: call strerror_r directly
2411         * modules/perror (Files): Drop strerror-impl.h.
2412         * lib/perror.c (perror): Use our own stack buffer, rather than
2413         calling a wrapper that uses static storage.
2414         * doc/posix-functions/perror.texi (perror): Document a limitation
2415         of our replacement.
2416
2417         strerror_r: fix includes for FreeBSD
2418         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
2419         since we use abort on some platforms.
2420         Reported by Matthias Bolte.
2421
2422 2011-05-31  Bruno Haible  <bruno@clisp.org>
2423
2424         Fix link errors in tests: openat-die uses gettext-h.
2425         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
2426         against $(LIBINTL).
2427         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
2428         against $(LIBINTL).
2429         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
2430         $(LIBINTL).
2431         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
2432         against $(LIBINTL).
2433         * modules/linkat-tests (Makefile.am): Link test-linkat against
2434         $(LIBINTL).
2435         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
2436         $(LIBINTL).
2437         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
2438         against $(LIBINTL).
2439         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
2440         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
2441         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
2442         $(LIBINTL).
2443         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
2444         $(LIBINTL).
2445         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
2446         $(LIBINTL).
2447         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2448
2449 2011-05-31  Bruno Haible  <bruno@clisp.org>
2450
2451         Fix link errors in tests: wait-process uses gettext-h.
2452         * modules/nonblocking-pipe-tests (Makefile.am): Set
2453         test_nonblocking_pipe_main_LDADD.
2454         * modules/nonblocking-socket-tests (Makefile.am): Link
2455         test-nonblocking-socket-main against $(LIBINTL).
2456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2457
2458 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2459
2460         assert-h: work around 'verify' incompatibility
2461         * lib/verify.h: Use @...@ directives, not ifdef.
2462         * modules/assert-h (assert.h): Implement the directives.
2463         (assert.h): Substitute the symbol-prefix more consistently.
2464
2465 2011-05-29  Jim Meyering  <meyering@redhat.com>
2466
2467         trim: remove three superfluous assignments
2468         * lib/trim.c (trim2): Remove three superfluous assignments
2469         and correct brace positioning.
2470
2471 2011-05-29  Bruno Haible  <bruno@clisp.org>
2472
2473         wctype-h: Avoid namespace pollution on Solaris 2.6.
2474         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
2475         identifiers.
2476         * doc/posix-headers/wctype.texi: Mention the problem.
2477         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2478
2479 2011-05-28  Jim Meyering  <meyering@redhat.com>
2480
2481         parse-datetime.y: accommodate -Wstrict-overflow
2482         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
2483         placate -Wstrict-overflow.
2484
2485         trim: avoid a warning from -O2 -Wstrict-overflow
2486         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
2487
2488 2011-05-29  Bruno Haible  <bruno@clisp.org>
2489
2490         gnulib-tool: Fix bug in yesterday's commit.
2491         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
2492         twice.
2493
2494 2011-05-29  Bruno Haible  <bruno@clisp.org>
2495
2496         Allow multiple gnulib generated include files to be combined.
2497         * gnulib-tool (func_compute_include_guard_prefix): New function.
2498         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
2499         ${gl_include_guard_prefix} references.
2500         (func_import, func_create_testdir): Invoke
2501         func_compute_include_guard_prefix.
2502         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
2503         * lib/ctype.in.h: Likewise.
2504         * lib/dirent.in.h: Likewise.
2505         * lib/errno.in.h: Likewise.
2506         * lib/fcntl.in.h: Likewise.
2507         * lib/float.in.h: Likewise.
2508         * lib/getopt.in.h: Likewise.
2509         * lib/iconv.in.h: Likewise.
2510         * lib/langinfo.in.h: Likewise.
2511         * lib/locale.in.h: Likewise.
2512         * lib/math.in.h: Likewise.
2513         * lib/netdb.in.h: Likewise.
2514         * lib/netinet_in.in.h: Likewise.
2515         * lib/poll.in.h: Likewise.
2516         * lib/pthread.in.h: Likewise.
2517         * lib/pty.in.h: Likewise.
2518         * lib/sched.in.h: Likewise.
2519         * lib/se-selinux.in.h: Likewise.
2520         * lib/search.in.h: Likewise.
2521         * lib/signal.in.h: Likewise.
2522         * lib/spawn.in.h: Likewise.
2523         * lib/stdarg.in.h: Likewise.
2524         * lib/stddef.in.h: Likewise.
2525         * lib/stdint.in.h: Likewise.
2526         * lib/stdio.in.h: Likewise.
2527         * lib/stdlib.in.h: Likewise.
2528         * lib/string.in.h: Likewise.
2529         * lib/strings.in.h: Likewise.
2530         * lib/sys_file.in.h: Likewise.
2531         * lib/sys_ioctl.in.h: Likewise.
2532         * lib/sys_select.in.h: Likewise.
2533         * lib/sys_socket.in.h: Likewise.
2534         * lib/sys_stat.in.h: Likewise.
2535         * lib/sys_time.in.h: Likewise.
2536         * lib/sys_times.in.h: Likewise.
2537         * lib/sys_uio.in.h: Likewise.
2538         * lib/sys_utsname.in.h: Likewise.
2539         * lib/sys_wait.in.h: Likewise.
2540         * lib/sysexits.in.h: Likewise.
2541         * lib/termios.in.h: Likewise.
2542         * lib/time.in.h: Likewise.
2543         * lib/unistd.in.h: Likewise.
2544         * lib/wchar.in.h: Likewise.
2545         * lib/wctype.in.h: Likewise.
2546         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
2547         * modules/ctype (Makefile.am): Likewise.
2548         * modules/dirent (Makefile.am): Likewise.
2549         * modules/errno (Makefile.am): Likewise.
2550         * modules/fcntl-h (Makefile.am): Likewise.
2551         * modules/float (Makefile.am): Likewise.
2552         * modules/getopt-posix (Makefile.am): Likewise.
2553         * modules/iconv-h (Makefile.am): Likewise.
2554         * modules/langinfo (Makefile.am): Likewise.
2555         * modules/locale (Makefile.am): Likewise.
2556         * modules/math (Makefile.am): Likewise.
2557         * modules/netdb (Makefile.am): Likewise.
2558         * modules/netinet_in (Makefile.am): Likewise.
2559         * modules/poll-h (Makefile.am): Likewise.
2560         * modules/pthread (Makefile.am): Likewise.
2561         * modules/pty (Makefile.am): Likewise.
2562         * modules/sched (Makefile.am): Likewise.
2563         * modules/search (Makefile.am): Likewise.
2564         * modules/selinux-h (Makefile.am): Likewise.
2565         * modules/signal (Makefile.am): Likewise.
2566         * modules/spawn (Makefile.am): Likewise.
2567         * modules/stdarg (Makefile.am): Likewise.
2568         * modules/stddef (Makefile.am): Likewise.
2569         * modules/stdint (Makefile.am): Likewise.
2570         * modules/stdio (Makefile.am): Likewise.
2571         * modules/stdlib (Makefile.am): Likewise.
2572         * modules/string (Makefile.am): Likewise.
2573         * modules/strings (Makefile.am): Likewise.
2574         * modules/sys_file (Makefile.am): Likewise.
2575         * modules/sys_ioctl (Makefile.am): Likewise.
2576         * modules/sys_select (Makefile.am): Likewise.
2577         * modules/sys_socket (Makefile.am): Likewise.
2578         * modules/sys_stat (Makefile.am): Likewise.
2579         * modules/sys_time (Makefile.am): Likewise.
2580         * modules/sys_times (Makefile.am): Likewise.
2581         * modules/sys_uio (Makefile.am): Likewise.
2582         * modules/sys_utsname (Makefile.am): Likewise.
2583         * modules/sys_wait (Makefile.am): Likewise.
2584         * modules/sysexits (Makefile.am): Likewise.
2585         * modules/termios (Makefile.am): Likewise.
2586         * modules/time (Makefile.am): Likewise.
2587         * modules/unistd (Makefile.am): Likewise.
2588         * modules/wchar (Makefile.am): Likewise.
2589         * modules/wctype-h (Makefile.am): Likewise.
2590         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
2591
2592 2011-05-29  Bruno Haible  <bruno@clisp.org>
2593
2594         assert-h: Allow multiple gnulib generated replacements to coexist.
2595         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
2596
2597 2011-05-29  Bruno Haible  <bruno@clisp.org>
2598
2599         argp: Allow coexistence with strerror_r-posix module.
2600         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
2601         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
2602         by gnulib's <string.h> replacement), assume it has the POSIX signature,
2603         not the glibc signature.
2604
2605 2011-05-28  Bruno Haible  <bruno@clisp.org>
2606
2607         gnulib-tool: Alternative structure of testdirs, similar to --import.
2608         * gnulib-tool: New option --single-configure.
2609         (func_usage): Document it.
2610         (single_configure): New variable.
2611         (func_modules_transitive_closure_separately,
2612         func_modules_transitive_closure_separately,
2613         func_determine_use_libtests, func_modules_add_dummy_separately,
2614         func_modules_to_filelist_separately): New functions, extracted from
2615         func_import.
2616         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
2617         (func_import): Use the new functions.
2618         (func_create_testdir): Set final_modules. Handle $single_configure =
2619         true case.
2620
2621 2011-05-28  Bruno Haible  <bruno@clisp.org>
2622
2623         getloadavg: Remove an unreliable safety check.
2624         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
2625         getloadavg.c is in place.
2626         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
2627         Reported by Sam Steingold <sds@gnu.org>.
2628
2629 2011-05-28  Bruno Haible  <bruno@clisp.org>
2630
2631         doc: Cleanup yet another file produced by texinfo.tex.
2632         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
2633
2634 2011-05-28  Bruno Haible  <bruno@clisp.org>
2635
2636         Finish the conditional dependencies mechanism.
2637         * gnulib-tool: New option --no-conditional-dependencies.
2638         (func_usage): Document it. Don't mark --conditional-dependencies as
2639         experimental.
2640         (cond_dependencies): The possible values can now be true, false, empty.
2641         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
2642         (func_import): Store setting in gnulib-cache.m4 and read it from there.
2643         * doc/gnulib-tool.texi (Conditional dependencies): New section.
2644
2645 2011-05-28  Bruno Haible  <bruno@clisp.org>
2646
2647         doc: Use a recent texinfo.tex.
2648         * doc/Makefile (tex_opts): New variable.
2649         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
2650
2651 2011-05-28  Jim Meyering  <meyering@redhat.com>
2652
2653         intprops.h: adjust comment to match code change
2654         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
2655         only once, it *may* have side effects.  Also fix an unrelated typo.
2656         (_GL_INT_SIGNED): Likewise.
2657
2658 2011-05-26  Simon Josefsson  <simon@josefsson.org>
2659
2660         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
2661
2662 2011-05-26  Bruno Haible  <bruno@clisp.org>
2663
2664         mbsrchr: Avoid collision with system function on Interix.
2665         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
2666         Reported by Markus Duft <mduft@gentoo.org>.
2667
2668 2011-05-15  James Youngman  <jay@gnu.org>
2669
2670         getopt: for ambiguous options, enumerate the possibilities.
2671         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
2672         the ambiguous options when an ambiguous prefix is given. This was
2673         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
2674         glibc change was
2675         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
2676
2677 2011-05-25  Eric Blake  <eblake@redhat.com>
2678
2679         getcwd: work around mingw bug
2680         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
2681         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2682         Reported by Matthias Bolte.
2683
2684 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
2685
2686         test-intprops: disable -Wtype-limits diagnostics
2687         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
2688         diagnostics.  Otherwise, the integer overflow macros generate many
2689         diagnostics.  Reported by Jim Meyering in
2690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2691
2692         intprops: shorten, to pacify gcc -Woverlength-strings
2693         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
2694         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
2695         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
2696         likely to run afoul of C compiler limits for string constant lengths.
2697         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
2698
2699 2011-05-24  Eric Blake  <eblake@redhat.com>
2700
2701         docs: document recently fixed glibc printf bug
2702         * doc/posix-functions/fprintf.texi (fprintf): Document it.
2703         * doc/posix-functions/printf.texi (printf): Likewise.
2704         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
2705         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
2706
2707         closein-tests: convert to init.sh
2708         * modules/closein-tests (Files): Add init.sh
2709         * tests/test-closein.sh Use it.
2710
2711         yesno-tests: convert to init.sh
2712         * modules/yesno-tests (Files): Add init.sh.
2713         * tests/test-yesno.sh: Use it.
2714
2715         atexit-tests: ensure reliable exit status
2716         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
2717         Reported by Bruno Haible.
2718
2719 2011-05-24  Bruno Haible  <bruno@clisp.org>
2720
2721         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
2722         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
2723         gl_PREREQ_STRERROR_R invocations from here...
2724         * modules/strerror_r-posix (configure.ac): ... to here.
2725
2726 2011-05-24  Eric Blake  <eblake@redhat.com>
2727
2728         strerror_r: fix missing header
2729         * lib/strerror_r.c: Avoid compiler warning about snprintf.
2730
2731         strerror_r: fix AIX test failures
2732         * lib/strerror_r.c (strerror_r): Convert silent truncation to
2733         ERANGE failure.
2734
2735         strerror_r: fix Solaris test failures
2736         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
2737         failures.
2738         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2739
2740         strerror_r: enforce POSIX recommendations
2741         * lib/strerror_r.c (safe_copy): New helper method.
2742         (strerror_r): Guarantee a non-empty string.
2743         * tests/test-strerror_r.c (main): Enhance tests to incorporate
2744         recent POSIX rulings and to match our strerror guarantees.
2745         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
2746
2747 2011-05-24  Jim Meyering  <meyering@redhat.com>
2748
2749         test-perror2.c: avoid warning about unused variable
2750         * tests/test-perror2.c (main): Remove declaration of unused "fp".
2751
2752 2011-05-24  Eric Blake  <eblake@redhat.com>
2753
2754         perror: avoid spurious test failure on HP-UX
2755         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
2756
2757         tests: fix logic bug in init.sh
2758         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
2759         shell.
2760
2761 2011-05-24  Jim Meyering  <meyering@redhat.com>
2762
2763         utimensat: do not reference an out-of-scope buffer
2764         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
2765         declared in an inner scope, yet "times" would be dereferenced outside
2766         the scope in which "ts" was valid.
2767         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
2768         of ts[2] "out/up", so that the use of aliased "times" (via
2769         "times = ts;") does not end up referencing an out-of-scope "ts"
2770
2771         opendir-safer.c: don't clobber errno; don't close negative FD
2772         * lib/opendir-safer.c (opendir_safer):
2773         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
2774         file descriptor, and more importantly, don't clobber the
2775         offending errno value with EINVAL.  Before, upon failure
2776         of dup_safer, we would pass the negative file descriptor to
2777         fdopendir, which would clobber errno.
2778
2779 2011-05-23  Bruno Haible  <bruno@clisp.org>
2780
2781         idcache: Fix module description.
2782         * modules/idcache (Include): Set to "idcache.h".
2783
2784 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2785
2786         gnulib-tool: fix portability problem with MacOS sed
2787         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
2788         before the "}".  Problem reported by Leo in
2789         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
2790         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
2791         sed_extract_condition1, sed_extract_condition2.
2792
2793 2011-05-23  Bruno Haible  <bruno@clisp.org>
2794
2795         hash: Simplify autoconf macro.
2796         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
2797
2798 2011-05-23  Bruno Haible  <bruno@clisp.org>
2799
2800         getugroups: Fix module description.
2801         * modules/getugroups (Include): Set to "getugroups.h".
2802
2803 2011-05-23  Bruno Haible  <bruno@clisp.org>
2804
2805         linkat: Simplify autoconf macro.
2806         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
2807
2808 2011-05-23  Bruno Haible  <bruno@clisp.org>
2809             Eric Blake  <eblake@redhat.com>
2810
2811         linkat, renameat: Update dependencies.
2812         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
2813         * modules/linkat (Depends-on): Likewise. Remove also readlink,
2814         symlinkat.
2815
2816 2011-05-23  Jim Meyering  <meyering@redhat.com>
2817
2818         maint.mk: more tight_scope improvements
2819         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
2820         (_gl_TS_headers): Define only in if-0'd block.
2821         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
2822         sometimes we must *not* use it.  Adjust uses accordingly.
2823         (sc_tight_scope): Use much simpler grep-based test to determine
2824         whether we skip this rule.
2825
2826         maint.mk: generalize/improve the tight-scope rule
2827         * top/maint.mk: Emit a warning when the test is skipped.
2828         (_gl_TS_dir): Add $(srcdir)/ prefix.
2829         (_gl_TS_function_match): Simplify, rather than trying
2830         to enumerate common types.  Otherwise, it would fail to match an
2831         "extern unsigned char const *" declaration in idutils.
2832         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
2833         a way to support use of that type of macro.
2834         (_gl_TS_var_match): Simplify regexp.
2835         (_gl_TS_obj_files): New configurable variable.
2836         (_gl_TS_headers): Likewise.
2837
2838 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
2839
2840         verify: fix bug when gnulib <assert.h> is also included
2841         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
2842         is defined, not if _GL_STATIC_ASSERT_H is not defined.
2843         Perhaps there's a better way, but this fixes the immediate problem.
2844         Problem reported by Bruno Haible in
2845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
2846
2847 2011-05-22  Bruno Haible  <bruno@clisp.org>
2848
2849         xgetcwd: Simplify autoconf macro.
2850         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
2851
2852 2011-05-22  Bruno Haible  <bruno@clisp.org>
2853
2854         New module 'mktime-internal'.
2855         * modules/mktime-internal: New file.
2856         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
2857         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
2858         mktime_internal as a C macro if libc has __mktime_internal.
2859         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
2860         conditions.
2861         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
2862
2863 2011-05-22  Bruno Haible  <bruno@clisp.org>
2864
2865         timegm: Correct mktime replacement statements.
2866         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
2867         defining mktime as a C macro. This completes a 2009-07-28 commit.
2868
2869 2011-05-22  Bruno Haible  <bruno@clisp.org>
2870
2871         timegm: Simplify autoconf macro.
2872         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
2873
2874 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
2875
2876         clock-time: change to LGPLv2+.
2877         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
2878         BSD-like but we have no mark for that; this is good enough for now.
2879
2880 2011-05-21  Bruno Haible  <bruno@clisp.org>
2881
2882         strerror_r: Fix comments.
2883         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
2884
2885 2011-05-21  Bruno Haible  <bruno@clisp.org>
2886
2887         relocatable-prog-wrapper: Fix possible link error.
2888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
2889         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
2890         (gl_FUNC_SETENV): ... to here.
2891         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
2892         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
2893
2894 2011-05-21  Bruno Haible  <bruno@clisp.org>
2895
2896         relocatable-prog-wrapper: Assume strerror() exists.
2897         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
2898         m4/strerror.m4.
2899         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
2900         * lib/relocwrapper.c: Remove mention of strerror module.
2901         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
2902         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
2903         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
2904         C macro.
2905
2906 2011-05-21  Bruno Haible  <bruno@clisp.org>
2907
2908         select: Simplify replacement idiom.
2909         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
2910         Win32 platforms.
2911         * lib/sys_select.in.h (select): Simplify accordingly.
2912         * modules/select (Depends-on): Likewise.
2913
2914 2011-05-21  Bruno Haible  <bruno@clisp.org>
2915
2916         mkdir-p: Simplify autoconf macro.
2917         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
2918         gl_FUNC_LCHOWN.
2919
2920 2011-05-21  Eric Blake  <eblake@redhat.com>
2921
2922         strerror_r: avoid clobbering strerror on cygwin
2923         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
2924         fall back instead to sys_errlist.
2925         * modules/strerror (configure.ac): Add witness.
2926         * tests/test-strerror_r.c (main): Enhance test.
2927         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2928         * tests/test-perror2.c (main): Free memory before exit.
2929
2930 2011-05-21  Bruno Haible  <bruno@clisp.org>
2931
2932         mkdtemp: Use gnulib naming conventions.
2933         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
2934         * modules/mkdtemp (configure.ac): Update.
2935
2936 2011-05-20  Eric Blake  <eblake@redhat.com>
2937
2938         strerror_r: avoid corrupting errno on Solaris
2939         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
2940         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2941
2942         strerror_r: avoid compiler warning
2943         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
2944
2945         strerror_r: simplify AIX code
2946         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
2947
2948         test-perror: avoid spurious failure on FreeBSD
2949         * modules/perror-tests (Depends-on): Add strerror, now that
2950         strerror_r no longer pulls it in.
2951
2952 2011-05-20  Bruno Haible  <bruno@clisp.org>
2953
2954         strerror_r-posix: Remove unused dependencies.
2955         * modules/strerror_r-posix (Depends-on): Remove strerror.
2956         Reported by Eric Blake.
2957
2958 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
2959
2960         intprops: remove assumption about A|B representation
2961         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
2962         is a valid integer if both A and B are.  Although this is true for
2963         all known practical hosts, the C standard doesn't guarantee it,
2964         and the code need not assume it.  Also, this change may work around
2965         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
2966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
2967
2968 2011-05-20  Eric Blake  <eblake@redhat.com>
2969
2970         perror: work around FreeBSD bug
2971         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
2972         is broken.  Move AC_LIBOBJ...
2973         * modules/perror (configure.ac): Here.
2974         * doc/posix-functions/perror.texi (perror): Document this.
2975         * tests/test-perror2.c (main): Enhance test.
2976
2977         test-perror: check for strerror interactions
2978         * tests/macros.h (STREQ): Add macro.
2979         * modules/perror-tests (Files): Add second test.
2980         * tests/test-perror2.c (main): New file.
2981         * doc/posix-functions/perror.texi (perror): Document glibc bug.
2982
2983         test-perror: rewrite to use init script
2984         * modules/perror-tests (Files): Add init.sh.
2985         * tests/test-perror.sh: Use temporary directory.
2986
2987 2011-05-20  Jim Meyering  <meyering@redhat.com>
2988
2989         maint: replace misused "a" with "an"
2990         * doc/intprops.texi: "a integer"
2991         * doc/regex.texi: "a explanation"
2992         * lib/alignof.h: "a object"
2993         * lib/argmatch.h: "a explanation"
2994         * lib/argp-help.c: "a option" and "a OPTION_DOC"
2995         * lib/stdint.in.h: "a integer"
2996         * lib/userspec.c: "a owner"
2997         * doc/gnulib.texi: Fix "a idea", and reword.
2998
2999 2011-05-19  Jim Meyering  <meyering@redhat.com>
3000
3001         maint: correct misuse of "a" and "an"
3002         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
3003         * lib/argp-help.c: "an docum...": s/an/a/
3004         * lib/argp-parse.c: "An vector": s/An/A/
3005         * lib/execute.c: "an native": s/an/a/
3006         * lib/spawn-pipe.c: Likewise.
3007         * lib/gc.h: "an Gc_rc": s/an/a/
3008         * lib/unigbrk.in.h: "an grapheme": s/an/a/
3009         * lib/fts.c: "an stat.st_dev": s/an/a/
3010
3011 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3012
3013         intprops-tests: work around HP-UX 11.23 cc bug with constants
3014         * tests/test-intprops.c (VERIFY): New macro.
3015         (main): Use it, instead of verify, to work around the compiler bug; see
3016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3017
3018         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
3019         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
3020         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
3021         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
3022         (_GL_REMAINDER_OVERFLOW): Use it.
3023
3024         intprops-tests: revert unsigned part of previous change
3025         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
3026         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
3027         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
3028         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
3029
3030 2011-05-19  Bruno Haible  <bruno@clisp.org>
3031
3032         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
3033         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
3034         strerror_r() returned without filling the buffer.
3035         Reported by Eric Blake.
3036
3037 2011-05-19  Eric Blake  <eblake@redhat.com>
3038
3039         strerror_r: guarantee unchanged errno
3040         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
3041         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
3042         failure.
3043         * tests/test-strerror_r.c (main): Enhance test.
3044
3045 2011-05-19  Bruno Haible  <bruno@clisp.org>
3046
3047         strerror_r: Reorder #if blocks.
3048         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
3049         for consistency with the previous commit.
3050
3051 2011-05-19  Bruno Haible  <bruno@clisp.org>
3052
3053         perror: Avoid clobbering the strerror buffer when possible.
3054         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
3055         * lib/strerror.c: Include it.
3056         * modules/strerror (Files): Add lib/strerror-impl.h.
3057         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
3058         (my_strerror): New function, defined through lib/strerror-impl.h.
3059         (perror): Use it instead of strerror.
3060         * modules/perror (Files): Add lib/strerror-impl.h.
3061         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
3062
3063 2011-05-19  Eric Blake  <eblake@redhat.com>
3064
3065         strerror_r: fix on newer cygwin
3066         * lib/strerror_r.c (strerror_r): Cygwin now has
3067         __xpg_strerror_r, use it.
3068
3069 2011-05-19  Bruno Haible  <bruno@clisp.org>
3070
3071         strerror_r: Avoid clobbering the strerror buffer when possible.
3072         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
3073         (sys_nerr, sys_errlist): New declarations.
3074         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
3075         HP-UX, native Win32, IRIX, and 32-bit Solaris.
3076         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
3077
3078 2011-05-19  Bruno Haible  <bruno@clisp.org>
3079
3080         strerror_r: Fix test failure on mingw.
3081         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
3082         EXTEND_STRERROR_R.
3083         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
3084         macros from errno.in.h instead.
3085
3086 2011-05-19  Eric Blake  <eblake@redhat.com>
3087
3088         strerror: relax test for Solaris
3089         * tests/test-strerror.c (main): Permit Solaris behavior.
3090         * tests/test-strerror_r.c (main): Likewise.
3091
3092         strerror: enforce POSIX ruling on strerror(0)
3093         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
3094         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
3095         * lib/strerror_r.c (rpl_strerror_r): Work around it.
3096         * doc/posix-functions/strerror.texi (strerror): Document it.
3097         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
3098         * tests/test-strerror.c (main): Strengthen test.
3099         * tests/test-strerror_r.c (main): Likewise.
3100
3101 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
3102
3103         intprop-tests: port to older and more-pedantic compilers
3104         * modules/intprops-tests (Files): Add tests/macros.h.
3105         * tests/test-intprops.c: Include macros.h.
3106         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
3107         it's no longer documented to expand to an integer constant expression.
3108         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
3109         argument is floating point, as it's no longer documented to expand
3110         to an integer constant expression in that case.
3111         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
3112         compiler bugs reported by Bruno Haible.  See
3113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3114         (U0, U1): New constants, to work around the same bugs.  Also,
3115         in tests, use e.g., "(unsigned int) 39" rather than "39u".
3116
3117         intprops: work around C compiler bugs
3118         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
3119         bug in Sun C 5.11 2010/08/13 and other compilers; see
3120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
3121
3122         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
3123         * doc/intprops.texi (Integer Type Determination): Fix
3124         documentation for TYPE_IS_INTEGER: it returns an constant
3125         expression, not an integer constant expression.  Fix doc for
3126         TYPE_SIGNED: it returns an integer constant expression only if its
3127         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
3128         hardly worth documented that way....)
3129
3130 2011-05-18  Bruno Haible  <bruno@clisp.org>
3131
3132         strerror_r: Avoid clobbering the strerror buffer when possible.
3133         * lib/strerror_r.c (strerror_r): Merge the three implementations.
3134         Handle gnulib defined errno values here. When strerror() returns NULL
3135         or an empty string, return EINVAL.
3136         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
3137         gnulib defined errno values here.
3138         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
3139
3140 2011-05-18  Eric Blake  <eblake@redhat.com>
3141
3142         fnmatch: avoid compiler warning
3143         * lib/fnmatch_loop.c (FCT): Use correct type.
3144         Reported by Matthias Bolte.
3145
3146 2011-05-13  Jim Meyering  <meyering@redhat.com>
3147
3148         maint.mk: three new prohibit_<HDR>_without_use rules
3149         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
3150         (sc_prohibit_stdio-safer_without_use): Likewise.
3151         (sc_prohibit_xfreopen_without_use): Likewise.
3152
3153 2011-05-17  Jim Meyering  <meyering@redhat.com>
3154
3155         announce-gen: fail if the NEWS delta is empty
3156         If there's nothing noteworthy in NEWS, then either you forgot
3157         or you shouldn't be releasing.
3158         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
3159
3160 2011-05-17  Pádraig Brady <P@draigBrady.com>
3161
3162         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
3163         reserved symbols starting with double underscore from the check.
3164
3165 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
3166
3167         intprops: add doc
3168         * doc/intprops.texi: New file, documenting intprops.
3169         * doc/gnulib.texi (Particular Modules): Include it.
3170
3171         verify: add doc to gnulib manual and fix example
3172         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
3173         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
3174         (Compile-time Assertions): Fix example so it can't overflow.
3175
3176 2011-05-17  Jim Meyering  <meyering@redhat.com>
3177
3178         warnings.m4: don't usurp save_CPPFLAGS variable name
3179         * m4/warnings.m4: Prefix local temporary variable name with gl_.
3180
3181         doc: fix typo
3182         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
3183
3184 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3185             Bruno Haible  <bruno@clisp.org>
3186
3187         doc: Tweak recent change.
3188         * README (Portability guidelines): Tweak new text.
3189         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
3190         Interix 6.1.
3191
3192 2011-05-16  Eric Blake  <eblake@redhat.com>
3193
3194         inttypes: avoid autoconf warning
3195         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
3196         * m4/stdint.m4 (gl_STDINT_H): Likewise.
3197
3198 2011-05-16  Sam Steingold <sds@gnu.org>
3199         and Eric Blake  <eblake@redhat.com>
3200
3201         vc-list-files: accept multiple directory operands
3202         * build-aux/vc-list-files: Iterate over all remaining operands.
3203
3204 2011-05-16  Bruno Haible  <bruno@clisp.org>
3205
3206         Fix confusion regarding deprecated modules.
3207         * modules/calloc (Status, Notice): Mark module as deprecated, not
3208         obsolete.
3209         * modules/fnmatch-posix (Status, Notice): Likewise.
3210         * modules/getdate (Status, Notice): Likewise.
3211         * modules/getopt (Status, Notice): Likewise.
3212         * modules/malloc (Status, Notice): Likewise.
3213         * modules/pipe (Status, Notice): Likewise.
3214         * modules/realloc (Status, Notice): Likewise.
3215         * modules/rename-dest-slash (Status, Notice): Likewise.
3216         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
3217         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
3218         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
3219         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
3220         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
3221
3222 2011-05-16  Bruno Haible  <bruno@clisp.org>
3223
3224         doc: List the target platforms.
3225         * doc/gnulib-intro.texi (Target Platforms): New section.
3226         * doc/gnulib.texi (Introduction): Update menu.
3227         * README (Portability guidelines): Refer to the new section. Update
3228         statement about oldest supported environment. Remove rationale why
3229         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
3230         unportable C89 function.
3231         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
3232         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
3233
3234 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3235
3236         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
3237
3238 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
3239
3240         intprops-tests: new module
3241         * modules/intprops-tests, tests/test-intprops.c: New files.
3242
3243         intprops: add safe, portable integer overflow checking
3244         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
3245         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
3246         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
3247         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
3248         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
3249         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
3250         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
3251         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
3252         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
3253         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
3254         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
3255
3256 2011-05-12  James Youngman  <jay@gnu.org>
3257
3258         Add a test for glibc's Bugzilla bug #12378.
3259         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
3260         doesn't allow the literal matching of a lone "[" (which is
3261         required by POSIX).
3262         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
3263
3264 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
3265
3266         Sync glibc change fixing Bugzilla bug #12378.
3267         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
3268         beginning and fall back to matching as normal character if the
3269         string ends before the matching ']' is found.  This is what POSIX
3270         requires.
3271
3272 2011-05-13  Eric Blake  <eblake@redhat.com>
3273
3274         getcwd-lgpl: relax test for FreeBSD
3275         * doc/posix-functions/getcwd.texi (getcwd): Document portability
3276         issue.
3277         * tests/test-getcwd-lgpl.c (main): Relax test.
3278         Reported by Matthias Bolte.
3279
3280 2011-05-11  Eric Blake  <eblake@redhat.com>
3281
3282         test-fflush: silence compiler warning
3283         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
3284
3285 2011-05-11  Bruno Haible  <bruno@clisp.org>
3286
3287         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
3288         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
3289         * modules/canonicalize (Depends-on): Add 'nocrash'.
3290         * modules/canonicalize-lgpl (Depends-on): Likewise.
3291         * doc/posix-functions/realpath.texi: Update platforms list.
3292         Reported by Ryan Schmidt <ryandesign@macports.org>.
3293
3294 2011-05-11  Bruno Haible  <bruno@clisp.org>
3295
3296         group-member: Declare function in <unistd.h>.
3297         * lib/unistd.in.h (group_member): New declaration.
3298         * lib/group-member.h: Remove file.
3299         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
3300         * tests/test-unistd-c++.cc: Check signature of group_member.
3301         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
3302         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
3303         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
3304         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
3305         HAVE_GROUP_MEMBER.
3306         * modules/group-member (Files): Remove lib/group-member.h.
3307         (Depends-on): Add unistd. Specify conditions.
3308         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3309         (Include): Change to <unistd.h>.
3310         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
3311         HAVE_GROUP_MEMBER.
3312         * NEWS: Mention the change.
3313         * lib/euidaccess.c: Don't include group-member.h.
3314
3315 2011-05-11  Bruno Haible  <bruno@clisp.org>
3316
3317         group-member: Document module.
3318         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
3319         module.
3320
3321 2011-05-11  Bruno Haible  <bruno@clisp.org>
3322
3323         fclose: Fix mistake earlier today.
3324         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
3325
3326 2011-05-11  Eric Blake  <eblake@redhat.com>
3327
3328         fclose: preserve fflush errors
3329         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
3330         Reported by Jim Meyering.
3331
3332         bootstrap: support a prereq of 'rpcgen -' on RHEL5
3333         * build-aux/bootstrap (check_versions): When no specific version
3334         is required, merely check that the app produces an exit status
3335         that indicates its existence.
3336
3337         maint.mk: drop redundant check
3338         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
3339         the same but better.
3340
3341 2011-05-11  Bruno Haible  <bruno@clisp.org>
3342
3343         fclose: Fix possible link error.
3344         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
3345         unregister_shadow_fd. Improve comments.
3346         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
3347         Eric Blake.
3348
3349 2011-05-11  Jim Meyering  <meyering@redhat.com>
3350
3351         maint.mk: improve "can not" detection and generalize rule name
3352         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
3353         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
3354         Use the same technique as in sc_prohibit_doubled_word, so that
3355         we recognize "can not" also when the words are separated by a newline.
3356         Suggested by Eric Blake.
3357         (perl_filename_lineno_text_): Define.  Factored out of...
3358         (prohibit_doubled_word_): ...here.  Use the new definition.
3359         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
3360         (prohibit_undesirable_word_seq_RE_): New overridable variable.
3361         (ignore_undesirable_word_sequence_RE_): New overridable variable.
3362
3363 2011-05-10  Eric Blake  <eblake@redhat.com>
3364
3365         fclose: avoid double close race when possible
3366         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
3367         all but WINDOWS_SOCKETS.
3368
3369 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
3370
3371         openat: correct new comment
3372         * lib/openat-proc.c (openat_proc_name): Correct the comment.
3373
3374 2011-05-10  Jim Meyering  <meyering@redhat.com>
3375
3376         openat: add comments
3377         * lib/openat-proc.c (openat_proc_name): Add comments,
3378         mostly from Eric Blake.
3379
3380 2011-05-09  Eric Blake  <eblake@redhat.com>
3381
3382         openat: reduce syscalls in first probe of /proc
3383         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
3384         be a directory.  Simplify the probe for .. bugs.
3385         * modules/openat (Depends-on): Drop same-inode.
3386         Reported by Bastien ROUCARIES.
3387
3388 2011-05-09  Jim Meyering  <meyering@redhat.com>
3389
3390         maint.mk: change semantics/name of tight_scope variables
3391         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
3392         Rename variables to align with semantics that make them more useful.
3393
3394         maint.mk: tweak new rule's name not to impinge
3395         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
3396         (sc_tight_scope): Use new rule name rather than $@-0.
3397
3398         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
3399         * top/maint.mk (sc_tight_scope): New rule.
3400         (sc_tight_scope-0): New rule, ifdef'd out.
3401         (_gl_TS_dir): Default.
3402         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
3403         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
3404
3405 2011-05-09  Simon Josefsson  <simon@josefsson.org>
3406
3407         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
3408         Haible <bruno@clisp.org>.
3409
3410 2011-05-08  Bruno Haible  <bruno@clisp.org>
3411
3412         Comments.
3413         * m4/isnanf.m4: Add comment.
3414         * m4/isnanl.m4: Likewise.
3415
3416 2011-05-08  Bruno Haible  <bruno@clisp.org>
3417
3418         glob: Remove obsolete macro.
3419         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
3420
3421 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
3422
3423         intprops: Sun C 5.11 supports __typeof__
3424         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
3425         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
3426         which is new.
3427         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
3428
3429         intprops: switch to usual gnulib indenting and naming
3430         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
3431         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
3432
3433         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
3434
3435 2011-05-08  Jim Meyering  <meyering@redhat.com>
3436
3437         maint.mk: suppress "Entering/Leaving directory" diag in announcement
3438         * top/maint.mk (release-prep): Use make's --no-print-directory
3439         option when generating the announcement.  This eliminates the
3440         pesky "make[2]: Entering/Leaving directory" diagnostics in the
3441         generated announcement template.
3442
3443 2011-05-08  Bruno Haible  <bruno@clisp.org>
3444
3445         tzset: Fix gettimeofday wrapper on Solaris 2.6.
3446         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
3447         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
3448
3449 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3450
3451         ignore-value, verify: Omit include files from lib_SOURCES.
3452         * modules/ignore-value, modules/verify (Makefile.am):
3453         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
3454         that leads Automake to duplicate use of am__objects_... variables
3455         in Makefile.in.  See
3456         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
3457
3458 2011-05-07  Bruno Haible  <bruno@clisp.org>
3459
3460         fclose: Simplify autoconf macro.
3461         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
3462         defined.
3463
3464 2011-05-07  Bruno Haible  <bruno@clisp.org>
3465
3466         canonicalize-lgpl: Fix autoconf macro ordering bug.
3467         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
3468         gl_STDLIB_H_DEFAULTS.
3469
3470 2011-05-06  Eric Blake  <eblake@redhat.com>
3471
3472         maintainer-makefile: make sc_po_check easier to tune
3473         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
3474         to probe for strings, such as an alternate location for gnulib.
3475
3476         fclose: guarantee behavior on seekable stdin
3477         * modules/fclose (Depends-on): Add fflush.
3478         * doc/posix-functions/fclose.texi (fclose): Document this.
3479         * tests/test-fclose.c (main): Make test for this unconditional.
3480
3481 2011-05-06  Bruno Haible  <bruno@clisp.org>
3482
3483         fflush, fpurge: Relicense under LGPLv2+.
3484         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
3485         * modules/fpurge (License): Likewise.
3486         With permission from Eric Blake and Jim Meyering.
3487         Suggested by Eric Blake.
3488
3489 2011-05-06  Karl Berry  <karl@gnu.org>
3490
3491         * MODULES.html.sh (func_all_modules): remove exit.
3492
3493 2011-05-06  Jim Meyering  <meyering@redhat.com>
3494
3495         maint.mk: use info-gnu@ as the default only for a stable release
3496         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
3497         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
3498         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
3499         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
3500
3501 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3502
3503         assert-h: new module, which supports C1X-style static_assert
3504         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
3505         * lib/verify.h: Revamp so that this can be copied into assert.h,
3506         while retaining the ability to use it standalone as before.
3507         Rename private identifiers so as not to encroach on the
3508         standard C namespace, since this is now used by assert.h.
3509         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
3510         the old verify_true.
3511         (_GL_VERIFY_TRUE): New macro, with much of the contents of
3512         the old verify_true.  Use _GL_VERIFY_TYPE.
3513         (_GL_VERIFY): New macro, with much of the contents of the old verify.
3514         (static_assert): New macro, if _GL_STATIC_ASSERT_H
3515         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
3516         defined when this file is copied into the replacement assert.h.
3517         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
3518         and _Static_assert is not built in.
3519         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
3520         defined, and use the new macros mentioned above.
3521         * doc/posix-headers/assert.texi: Document this.
3522
3523 2011-05-05  Bruno Haible  <bruno@clisp.org>
3524
3525         fclose, fflush: Respect rules for use of AC_LIBOBJ.
3526         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
3527         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
3528         gl_REPLACE_FCLOSE here.
3529         * modules/fflush (Depends-on): Remove fclose.
3530         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
3531         combination with module 'fclose'.
3532
3533 2011-05-05  Bruno Haible  <bruno@clisp.org>
3534
3535         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
3536         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
3537         gl_FUNC_FFLUSH.
3538         (gl_FUNC_FFLUSH): Use it.
3539         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
3540         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
3541         gl_REPLACE_FSEEKO here.
3542
3543 2011-05-05  Bruno Haible  <bruno@clisp.org>
3544
3545         tzset: Relicense under LGPL.
3546         * modules/tzset (License): Change to LGPL.
3547         No agreement needed; it's a no-op.
3548
3549         strtoimax, strtoumax: Relicense under LGPL.
3550         * modules/strtoimax (License): Change to LGPL.
3551         * modules/strtoumax (License): Likewise.
3552         With permission from Jim Meyering, Paul Eggert:
3553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
3554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
3555
3556         getgroups: Relicense under LGPL.
3557         * modules/getgroups (License): Change to LGPL.
3558         With permission from Jim Meyering, Paul Eggert, Eric Blake:
3559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3562
3563         nanosleep: Relicense under LGPL.
3564         * modules/nanosleep (License): Change to LGPL.
3565         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
3566         Haible:
3567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
3568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
3569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3571
3572         futimens: Relicense under LGPL.
3573         * modules/futimens (License): Change to LGPL.
3574         With permission from Eric Blake:
3575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3576
3577         fflush: Relicense under LGPL.
3578         * modules/fflush (License): Change to LGPL.
3579         With permission from Eric Blake, Bruno Haible, Jim Meyering:
3580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
3581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
3582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
3583
3584         tmpfile: Relicense under LGPL.
3585         * modules/tmpfile (License): Change to LGPL.
3586         With permission from Ben Pfaff:
3587         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3588
3589         isfinite: Relicense under LGPL.
3590         * modules/isfinite (License): Change to LGPL.
3591         With permission from Ben Pfaff, Bruno Haible:
3592         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
3593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
3594
3595         acosl..tanl: Relicense under LGPL.
3596         * modules/acosl (License): Change to LGPL.
3597         * modules/asinl (License): Likewise.
3598         * modules/atanl (License): Likewise.
3599         * modules/cosl (License): Likewise.
3600         * modules/expl (License): Likewise.
3601         * modules/logl (License): Likewise.
3602         * modules/sinl (License): Likewise.
3603         * modules/sqrtl (License): Likewise.
3604         * modules/tanl (License): Likewise.
3605         Source code originally from glibc and Paolo Bonzini. Agreements:
3606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
3607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
3608
3609 2011-05-05  Bruno Haible  <bruno@clisp.org>
3610
3611         signal: Define sighandler_t.
3612         * lib/signal.in.h (sighandler_t): New type.
3613         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
3614         whether sighandler_t is defined.
3615         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
3616         * modules/signal (Depends-on): Add extensions.
3617         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
3618         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
3619         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
3620
3621 2011-05-05  Eric Blake  <eblake@redhat.com>
3622
3623         maint: remove useless REPLACE_*_H macros
3624         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
3625         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
3626         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
3627         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
3628         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
3629         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
3630         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
3631         * m4/btowc.m4: Update callers.
3632         * m4/dirfd.m4: Likewise.
3633         * m4/duplocale.m4: Likewise.
3634         * m4/fchdir.m4: Likewise.
3635         * m4/fdopendir.m4: Likewise.
3636         * m4/inet_ntop.m4: Likewise.
3637         * m4/inet_pton.m4: Likewise.
3638         * m4/ioctl.m4: Likewise.
3639         * m4/mbrlen.m4: Likewise.
3640         * m4/mbrtowc.m4: Likewise.
3641         * m4/mbsinit.m4: Likewise.
3642         * m4/mbsnrtowcs.m4: Likewise.
3643         * m4/mbsrtowcs.m4: Likewise.
3644         * m4/poll.m4: Likewise.
3645         * m4/setlocale.m4: Likewise.
3646         * m4/wcrtomb.m4: Likewise.
3647         * m4/wcsnrtombs.m4: Likewise.
3648         * m4/wcsrtombs.m4: Likewise.
3649         * m4/wctob.m4: Likewise.
3650         * m4/wcwidth.m4: Likewise.
3651         * modules/posix_spawn: Likewise.
3652         * modules/posix_spawn_file_actions_addclose: Likewise.
3653         * modules/posix_spawn_file_actions_adddup2: Likewise.
3654         * modules/posix_spawn_file_actions_addopen: Likewise.
3655         * modules/posix_spawn_file_actions_destroy: Likewise.
3656         * modules/posix_spawn_file_actions_init: Likewise.
3657         * modules/posix_spawnattr_destroy: Likewise.
3658         * modules/posix_spawnattr_getflags: Likewise.
3659         * modules/posix_spawnattr_getpgroup: Likewise.
3660         * modules/posix_spawnattr_getschedparam: Likewise.
3661         * modules/posix_spawnattr_getschedpolicy: Likewise.
3662         * modules/posix_spawnattr_getsigdefault: Likewise.
3663         * modules/posix_spawnattr_getsigmask: Likewise.
3664         * modules/posix_spawnattr_init: Likewise.
3665         * modules/posix_spawnattr_setflags: Likewise.
3666         * modules/posix_spawnattr_setpgroup: Likewise.
3667         * modules/posix_spawnattr_setschedparam: Likewise.
3668         * modules/posix_spawnattr_setschedpolicy: Likewise.
3669         * modules/posix_spawnattr_setsigdefault: Likewise.
3670         * modules/posix_spawnattr_setsigmask: Likewise.
3671         * modules/posix_spawnp: Likewise.
3672
3673 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
3674
3675         Add option to do-release-commit-and-tag to specify branch.
3676         * build-aux/do-release-commit-and-tag: Add --branch.
3677
3678 2011-05-03  Bruno Haible  <bruno@clisp.org>
3679
3680         Avoid unnecessary compilation units, through conditional dependencies.
3681         * modules/accept (Depends-on): Add conditions to the dependencies.
3682         * modules/acosl (Depends-on): Likewise.
3683         * modules/argz (Depends-on): Likewise.
3684         * modules/asinl (Depends-on): Likewise.
3685         * modules/atanl (Depends-on): Likewise.
3686         * modules/atoll (Depends-on): Likewise.
3687         * modules/bind (Depends-on): Likewise.
3688         * modules/btowc (Depends-on): Likewise.
3689         * modules/canonicalize-lgpl (Depends-on): Likewise.
3690         * modules/ceil (Depends-on): Likewise.
3691         * modules/ceilf (Depends-on): Likewise.
3692         * modules/ceill (Depends-on): Likewise.
3693         * modules/chdir-long (Depends-on): Likewise.
3694         * modules/chown (Depends-on): Likewise.
3695         * modules/close (Depends-on): Likewise.
3696         * modules/connect (Depends-on): Likewise.
3697         * modules/cosl (Depends-on): Likewise.
3698         * modules/dirfd (Depends-on): Likewise.
3699         * modules/dprintf (Depends-on): Likewise.
3700         * modules/dprintf-posix (Depends-on): Likewise.
3701         * modules/error (Depends-on): Likewise.
3702         * modules/euidaccess (Depends-on): Likewise.
3703         * modules/expl (Depends-on): Likewise.
3704         * modules/faccessat (Depends-on): Likewise.
3705         * modules/fchdir (Depends-on): Likewise.
3706         * modules/fclose (Depends-on): Likewise.
3707         * modules/fcntl (Depends-on): Likewise.
3708         * modules/fdopendir (Depends-on): Likewise.
3709         * modules/fflush (Depends-on): Likewise.
3710         * modules/floor (Depends-on): Likewise.
3711         * modules/floorf (Depends-on): Likewise.
3712         * modules/floorl (Depends-on): Likewise.
3713         * modules/fnmatch (Depends-on): Likewise.
3714         * modules/fopen (Depends-on): Likewise.
3715         * modules/fprintf-posix (Depends-on): Likewise.
3716         * modules/frexp (Depends-on): Likewise.
3717         * modules/frexp-nolibm (Depends-on): Likewise.
3718         * modules/frexpl (Depends-on): Likewise.
3719         * modules/frexpl-nolibm (Depends-on): Likewise.
3720         * modules/fseek (Depends-on): Likewise.
3721         * modules/fsusage (Depends-on): Likewise.
3722         * modules/ftell (Depends-on): Likewise.
3723         * modules/ftello (Depends-on): Likewise.
3724         * modules/futimens (Depends-on): Likewise.
3725         * modules/getcwd (Depends-on): Likewise.
3726         * modules/getcwd-lgpl (Depends-on): Likewise.
3727         * modules/getdelim (Depends-on): Likewise.
3728         * modules/getdomainname (Depends-on): Likewise.
3729         * modules/getgroups (Depends-on): Likewise.
3730         * modules/gethostname (Depends-on): Likewise.
3731         * modules/getline (Depends-on): Likewise.
3732         * modules/getlogin_r (Depends-on): Likewise.
3733         * modules/getopt-posix (Depends-on): Likewise.
3734         * modules/getpeername (Depends-on): Likewise.
3735         * modules/getsockname (Depends-on): Likewise.
3736         * modules/getsockopt (Depends-on): Likewise.
3737         * modules/getsubopt (Depends-on): Likewise.
3738         * modules/getusershell (Depends-on): Likewise.
3739         * modules/glob (Depends-on): Likewise.
3740         * modules/grantpt (Depends-on): Likewise.
3741         * modules/iconv_open (Depends-on): Likewise.
3742         * modules/iconv_open-utf (Depends-on): Likewise.
3743         * modules/inet_ntop (Depends-on): Likewise.
3744         * modules/inet_pton (Depends-on): Likewise.
3745         * modules/ioctl (Depends-on): Likewise.
3746         * modules/isapipe (Depends-on): Likewise.
3747         * modules/isfinite (Depends-on): Likewise.
3748         * modules/isinf (Depends-on): Likewise.
3749         * modules/lchown (Depends-on): Likewise.
3750         * modules/ldexpl (Depends-on): Likewise.
3751         * modules/link (Depends-on): Likewise.
3752         * modules/linkat (Depends-on): Likewise.
3753         * modules/listen (Depends-on): Likewise.
3754         * modules/logl (Depends-on): Likewise.
3755         * modules/lstat (Depends-on): Likewise.
3756         * modules/mbrlen (Depends-on): Likewise.
3757         * modules/mbrtowc (Depends-on): Likewise.
3758         * modules/mbsinit (Depends-on): Likewise.
3759         * modules/mbsnrtowcs (Depends-on): Likewise.
3760         * modules/mbsrtowcs (Depends-on): Likewise.
3761         * modules/mbtowc (Depends-on): Likewise.
3762         * modules/memcmp (Depends-on): Likewise.
3763         * modules/mkdir (Depends-on): Likewise.
3764         * modules/mkdtemp (Depends-on): Likewise.
3765         * modules/mkfifo (Depends-on): Likewise.
3766         * modules/mkfifoat (Depends-on): Likewise.
3767         * modules/mknod (Depends-on): Likewise.
3768         * modules/mkostemp (Depends-on): Likewise.
3769         * modules/mkostemps (Depends-on): Likewise.
3770         * modules/mkstemp (Depends-on): Likewise.
3771         * modules/mkstemps (Depends-on): Likewise.
3772         * modules/mktime (Depends-on): Likewise.
3773         * modules/nanosleep (Depends-on): Likewise.
3774         * modules/open (Depends-on): Likewise.
3775         * modules/openat (Depends-on): Likewise.
3776         * modules/perror (Depends-on): Likewise.
3777         * modules/poll (Depends-on): Likewise.
3778         * modules/popen (Depends-on): Likewise.
3779         * modules/posix_spawn (Depends-on): Likewise.
3780         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
3781         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
3782         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
3783         * modules/posix_spawnp (Depends-on): Likewise.
3784         * modules/pread (Depends-on): Likewise.
3785         * modules/printf-posix (Depends-on): Likewise.
3786         * modules/ptsname (Depends-on): Likewise.
3787         * modules/putenv (Depends-on): Likewise.
3788         * modules/pwrite (Depends-on): Likewise.
3789         * modules/readline (Depends-on): Likewise.
3790         * modules/readlink (Depends-on): Likewise.
3791         * modules/readlinkat (Depends-on): Likewise.
3792         * modules/recv (Depends-on): Likewise.
3793         * modules/recvfrom (Depends-on): Likewise.
3794         * modules/regex (Depends-on): Likewise.
3795         * modules/remove (Depends-on): Likewise.
3796         * modules/rename (Depends-on): Likewise.
3797         * modules/renameat (Depends-on): Likewise.
3798         * modules/rmdir (Depends-on): Likewise.
3799         * modules/round (Depends-on): Likewise.
3800         * modules/roundf (Depends-on): Likewise.
3801         * modules/roundl (Depends-on): Likewise.
3802         * modules/rpmatch (Depends-on): Likewise.
3803         * modules/select (Depends-on): Likewise.
3804         * modules/send (Depends-on): Likewise.
3805         * modules/sendto (Depends-on): Likewise.
3806         * modules/setenv (Depends-on): Likewise.
3807         * modules/setlocale (Depends-on): Likewise.
3808         * modules/setsockopt (Depends-on): Likewise.
3809         * modules/shutdown (Depends-on): Likewise.
3810         * modules/sigaction (Depends-on): Likewise.
3811         * modules/signbit (Depends-on): Likewise.
3812         * modules/sigprocmask (Depends-on): Likewise.
3813         * modules/sinl (Depends-on): Likewise.
3814         * modules/sleep (Depends-on): Likewise.
3815         * modules/snprintf (Depends-on): Likewise.
3816         * modules/snprintf-posix (Depends-on): Likewise.
3817         * modules/socket (Depends-on): Likewise.
3818         * modules/sprintf-posix (Depends-on): Likewise.
3819         * modules/sqrtl (Depends-on): Likewise.
3820         * modules/stat (Depends-on): Likewise.
3821         * modules/strchrnul (Depends-on): Likewise.
3822         * modules/strdup-posix (Depends-on): Likewise.
3823         * modules/strerror (Depends-on): Likewise.
3824         * modules/strerror_r-posix (Depends-on): Likewise.
3825         * modules/strndup (Depends-on): Likewise.
3826         * modules/strnlen (Depends-on): Likewise.
3827         * modules/strptime (Depends-on): Likewise.
3828         * modules/strsep (Depends-on): Likewise.
3829         * modules/strsignal (Depends-on): Likewise.
3830         * modules/strstr-simple (Depends-on): Likewise.
3831         * modules/strtod (Depends-on): Likewise.
3832         * modules/strtoimax (Depends-on): Likewise.
3833         * modules/strtok_r (Depends-on): Likewise.
3834         * modules/strtoumax (Depends-on): Likewise.
3835         * modules/symlink (Depends-on): Likewise.
3836         * modules/symlinkat (Depends-on): Likewise.
3837         * modules/tanl (Depends-on): Likewise.
3838         * modules/tcgetsid (Depends-on): Likewise.
3839         * modules/tmpfile (Depends-on): Likewise.
3840         * modules/trunc (Depends-on): Likewise.
3841         * modules/truncf (Depends-on): Likewise.
3842         * modules/truncl (Depends-on): Likewise.
3843         * modules/uname (Depends-on): Likewise.
3844         * modules/unlink (Depends-on): Likewise.
3845         * modules/unlockpt (Depends-on): Likewise.
3846         * modules/unsetenv (Depends-on): Likewise.
3847         * modules/usleep (Depends-on): Likewise.
3848         * modules/utimensat (Depends-on): Likewise.
3849         * modules/vasprintf (Depends-on): Likewise.
3850         * modules/vdprintf (Depends-on): Likewise.
3851         * modules/vdprintf-posix (Depends-on): Likewise.
3852         * modules/vfprintf-posix (Depends-on): Likewise.
3853         * modules/vprintf-posix (Depends-on): Likewise.
3854         * modules/vsnprintf (Depends-on): Likewise.
3855         * modules/vsnprintf-posix (Depends-on): Likewise.
3856         * modules/vsprintf-posix (Depends-on): Likewise.
3857         * modules/wcrtomb (Depends-on): Likewise.
3858         * modules/wcscasecmp (Depends-on): Likewise.
3859         * modules/wcscspn (Depends-on): Likewise.
3860         * modules/wcsdup (Depends-on): Likewise.
3861         * modules/wcsncasecmp (Depends-on): Likewise.
3862         * modules/wcsnrtombs (Depends-on): Likewise.
3863         * modules/wcspbrk (Depends-on): Likewise.
3864         * modules/wcsrtombs (Depends-on): Likewise.
3865         * modules/wcsspn (Depends-on): Likewise.
3866         * modules/wcsstr (Depends-on): Likewise.
3867         * modules/wcstok (Depends-on): Likewise.
3868         * modules/wcswidth (Depends-on): Likewise.
3869         * modules/wctob (Depends-on): Likewise.
3870         * modules/wctomb (Depends-on): Likewise.
3871         * modules/wctype (Depends-on): Likewise.
3872         * modules/wcwidth (Depends-on): Likewise.
3873         * modules/write (Depends-on): Likewise.
3874
3875 2011-05-03  Bruno Haible  <bruno@clisp.org>
3876
3877         Support for conditional dependencies.
3878         * doc/gnulib.texi (Module description): Document the syntax of
3879         conditional dependencies.
3880         * gnulib-tool: New option --conditional-dependencies.
3881         (func_usage): Document it.
3882         (cond_dependencies): New variable.
3883         (func_get_automake_snippet_conditional,
3884         func_get_automake_snippet_unconditional): New functions, extracted from
3885         func_get_automake_snippet.
3886         (func_get_automake_snippet): Use them.
3887         (sed_first_32_chars): New variable.
3888         (func_module_shellfunc_name): New function.
3889         (func_module_shellvar_name): New function.
3890         (func_module_conditional_name): New function.
3891         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
3892         func_cond_module_condition): New functions.
3893         (func_modules_transitive_closure): Add support for conditional
3894         dependencies.
3895         (func_emit_lib_Makefile_am): For a conditional module, enclose the
3896         conditional automake snippet in an automake conditional.
3897         (func_emit_autoconf_snippets): Emit shell functions that contain the
3898         code for conditional modules.
3899         (func_import, func_create_testdir): Update specification.
3900
3901 2011-05-03  Eric Blake  <eblake@redhat.com>
3902
3903         test-getaddrinfo: report error information
3904         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
3905
3906 2011-05-03  Jim Meyering  <meyering@redhat.com>
3907
3908         bootstrap: avoid build failure when $GZIP is set
3909         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
3910         program name.  If defined at all, it is supposed to list gzip options.
3911         Reported by Alan Curry in http://debbugs.gnu.org/8609
3912
3913 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
3914
3915         readme-release: new module with release instructions
3916         * modules/readme-release: New module.
3917         * top/README-release: New file, from coreutils, grep, diffutils.
3918         * MODULES.html.sh (Support for maintaining and releasing): Add it.
3919
3920 2011-05-02  Eric Blake  <eblake@redhat.com>
3921
3922         fflush: also replace fclose when fixing fflush
3923         * modules/fflush (Depends-on): Add fclose.
3924         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
3925         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
3926         memstreams with no backing fd.
3927         * doc/posix-functions/fclose.texi (fclose): Document the use of
3928         fflush module to fix the bug.
3929         * tests/test-fclose.c (main): Relax test when fclose is used in
3930         isolation.
3931
3932         fclose: add some tests
3933         * modules/fclose-tests: New test module.
3934         * tests/test-fclose.c: New file.
3935         * doc/posix-functions/fclose.texi (fclose): Document the bug.
3936
3937         fclose: reduced dependencies
3938         * modules/fclose (Depends-on): Switch from fflush/fseeko to
3939         simpler lseek.
3940         * lib/fclose.c (rpl_fclose): Likewise.
3941         Reported by Simon Josefsson.
3942
3943         exit: drop remaining clients
3944         * modules/argmatch (Depends-on): Replace exit with stdlib.
3945         * modules/copy-file (Depends-on): Likewise.
3946         * modules/execute (Depends-on): Likewise.
3947         * modules/exitfail (Depends-on): Likewise.
3948         * modules/obstack (Depends-on): Likewise.
3949         * modules/pagealign_alloc (Depends-on): Likewise.
3950         * modules/pipe-filter-gi (Depends-on): Likewise.
3951         * modules/pipe-filter-ii (Depends-on): Likewise.
3952         * modules/savewd (Depends-on): Likewise.
3953         * modules/spawn-pipe (Depends-on): Likewise.
3954         * modules/wait-process (Depends-on): Likewise.
3955         * modules/xsetenv (Depends-on): Likewise.
3956         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
3957         * modules/git-merge-changelog (Depends-on): Likewise.
3958         * modules/long-options (Depends-on): Likewise.
3959         * modules/pt_chown (Depends-on): Likewise.
3960         * modules/sysexits (Depends-on): Likewise.
3961
3962         freading: relax license from LGPLv3+ to LGPLv2+
3963         * modules/freading (License): Relax LGPL version.
3964
3965 2011-05-02  Bruno Haible  <bruno@clisp.org>
3966
3967         fchdir: Remove unused dependencies.
3968         * modules/fchdir (Depends-on): Remove include_next.
3969
3970 2011-05-02  Bruno Haible  <bruno@clisp.org>
3971
3972         gnulib-tool: Refactor.
3973         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
3974         from func_emit_autoconf_snippets.
3975         (func_emit_autoconf_snippets): Use it.
3976
3977 2011-05-02  Simon Josefsson  <simon@josefsson.org>
3978
3979         * NEWS: Document removal of 'exit'.
3980         * modules/exit: Remove file.
3981
3982 2011-05-01  Bruno Haible  <bruno@clisp.org>
3983
3984         Update DEPENDENCIES.
3985         * DEPENDENCIES (gettext): Recommend the newest release.
3986         Reported by Simon Josefsson.
3987
3988 2011-05-01  Bruno Haible  <bruno@clisp.org>
3989
3990         gnulib-tool: Reduce code duplication.
3991         * gnulib-tool (func_emit_autoconf_snippets): New function.
3992         (func_import, func_create_testdir): Use it.
3993
3994 2011-04-30  Eric Blake  <eblake@redhat.com>
3995
3996         fclose: don't fail on non-seekable input stream
3997         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
3998         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
3999         since fflush is allowed to fail in that case.
4000
4001 2011-04-30  Bruno Haible  <bruno@clisp.org>
4002
4003         dup3: cleanup
4004         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
4005
4006 2011-04-30  Bruno Haible  <bruno@clisp.org>
4007
4008         netdb: Make it work in C++ mode.
4009         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
4010         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
4011         module.
4012         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
4013         gl_MODULE_INDICATOR_FOR_TESTS.
4014         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
4015         * modules/netdb-c++-tests: New file.
4016         * tests/test-netdb-c++.cc: New file.
4017
4018 2011-04-30  Bruno Haible  <bruno@clisp.org>
4019
4020         New modules 'vfscanf', 'vscanf'.
4021         * modules/vfscanf: New file.
4022         * modules/vscanf: New file.
4023         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
4024         here.
4025         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
4026         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
4027
4028 2011-04-30  Bruno Haible  <bruno@clisp.org>
4029
4030         passfd: Add comments.
4031         * lib/passfd.c: Add comments about platforms.
4032
4033 2011-04-30  Bruno Haible  <bruno@clisp.org>
4034
4035         sys_uio: Make <sys/uio.h> self-contained.
4036         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
4037         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
4038
4039 2011-04-30  Bruno Haible  <bruno@clisp.org>
4040
4041         sys_socket: Ensure 'struct iovec' definition.
4042         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
4043         <sys/socket.h>.
4044         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
4045
4046 2011-04-30  Bruno Haible  <bruno@clisp.org>
4047
4048         sys_uio: Protect definition of 'struct iovec'.
4049         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
4050         it as a C struct.
4051
4052 2011-04-30  Bruno Haible  <bruno@clisp.org>
4053
4054         manywarnings: fix indentation
4055         * m4/manywarnings.m4: Indent by 2 spaces consistently.
4056
4057 2011-04-30  Pádraig Brady <P@draigBrady.com>
4058
4059         manywarnings: add -Wno-missing-field-initializers if needed.
4060         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
4061         option if it's needed to allow initialization with { 0, }
4062
4063 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
4064
4065         announce-gen: cosmetic improvement
4066         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
4067
4068 2011-04-29  Jim Meyering  <meyering@redhat.com>
4069
4070         vc-list-files: indent with spaces, not TABs
4071         * build-aux/vc-list-files: Convert leading TABs to spaces,
4072         to match the style of most other files in gnulib.
4073
4074         announce-gen: indent with spaces, not TABs
4075         * build-aux/announce-gen: Convert all TABs to spaces, to match
4076         the style of most other files in gnulib.
4077
4078 2011-04-29  Eric Blake  <eblake@redhat.com>
4079
4080         quotearg: avoid uninitialized variable use
4081         * lib/quotearg.c (quoting_options_from_style): Initialize
4082         remaining fields, and ensure that custom styles are only used via
4083         quoting_options rather than quoting_style.
4084
4085 2011-04-29  Jim Meyering  <meyering@redhat.com>
4086
4087         maint.mk: remove unused VC-tag variable
4088         * top/maint.mk (VC-tag): Remove unused variable.
4089
4090 2011-04-29  Bruno Haible  <bruno@clisp.org>
4091
4092         netdb: fix gai_strerror replacements
4093         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
4094         * modules/netdb: Substitute it.
4095
4096 2011-04-29  Jim Meyering  <meyering@redhat.com>
4097
4098         test-getcwd.c: avoid new set-but-not-used warning
4099         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
4100         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
4101         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
4102         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
4103
4104         test-hash.c: avoid a new shadowing warning
4105         * tests/test-hash.c (main): Don't shadow "dup".
4106
4107 2011-04-28  Eric Blake  <eblake@redhat.com>
4108
4109         getaddrinfo: fix gai_strerror signature
4110         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
4111         and work around mingw with UNICODE defined.
4112         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
4113         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
4114         * modules/netdb (Makefile.am): Substitute it.
4115         * lib/netdb.in.h (gai_strerror): Declare replacement.
4116         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
4117         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
4118         the fix.
4119
4120         getsockopt: avoid compiler warning
4121         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
4122         Reported by Matthias Bolte.
4123
4124         tests: drop unused link dependency
4125         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
4126         * modules/dirent-safer-tests (Makefile.am): Likewise.
4127         * modules/fdopendir-tests (Makefile.am): Likewise.
4128         * modules/mkfifoat-tests (Makefile.am): Likewise.
4129         * modules/openat-safer-tests (Makefile.am): Likewise.
4130         * modules/openat-tests (Makefile.am): Likewise.
4131         * modules/readlinkat-tests (Makefile.am): Likewise.
4132         * modules/symlinkat-tests (Makefile.am): Likewise.
4133         * modules/linkat-tests (Makefile.am): Likewise.
4134         (Depends-on): Switch to filenamecat-lgpl.
4135         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
4136         LIBINTL.
4137         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
4138         * tests/test-linkat.c (main): Don't require xalloc.
4139
4140         hash, mgetgroups: drop xalloc dependency
4141         * lib/hash.c (includes): Adjust includes.
4142         * lib/mgetgroups.c (includes): Likewise.
4143         (xgetgroups): Move...
4144         * lib/xgetgroups.c: ...to new file.
4145         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
4146         * modules/xgetgroups: New file, split from...
4147         * modules/mgetgroups: ...here.
4148         (Depends-on): Add xalloc-oversized.
4149         * modules/hash (Depends-on): Likewise.
4150         * modules/hash-tests (Depends-on): Drop xalloc.
4151         (test_hash_LDADD): Drop unused library.
4152         * tests/test-hash.c (main): Break xalloc dependency.
4153         (includes): Drop unused include.
4154
4155         xalloc-oversized: new module
4156         * modules/xalloc-oversized: New module.
4157         * modules/xalloc (Depends-on): Add it.
4158         * lib/xalloc.h (xalloc_oversized): Move...
4159         * lib/xalloc-oversized.h: ...into new file.
4160
4161         utimecmp: drop dependency on xmalloc
4162         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
4163         due to memory pressure.
4164         * modules/utimecmp (Depends-on): Drop xalloc.
4165
4166 2011-04-27  Eric Blake  <eblake@redhat.com>
4167
4168         getcwd: fix mingw bugs
4169         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
4170         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
4171         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
4172
4173 2011-04-27  Bruno Haible  <bruno@clisp.org>
4174
4175         mkstemps: Ensure declaration on MacOS X 10.5.
4176         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
4177         * doc/glibc-functions/mkstemps.texi: Document header file problem on
4178         MacOS X.
4179
4180 2011-04-27  Bruno Haible  <bruno@clisp.org>
4181
4182         mkstemp: More documentation.
4183         * doc/posix-functions/mkstemp.texi: Document header file problem on
4184         MacOS X.
4185
4186 2011-04-27  Bruno Haible  <bruno@clisp.org>
4187
4188         mkstemp: Tweak configure message when cross-compiling.
4189         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
4190         result as a guess.
4191
4192 2011-04-27  Bruno Haible  <bruno@clisp.org>
4193
4194         clean-temp: Clarify what it does.
4195         * lib/clean-temp.h: Add more comments.
4196         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
4197         module.
4198         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
4199         * doc/glibc-functions/mkstemps.texi: Likewise.
4200         * doc/glibc-functions/mkostemps.texi: Likewise.
4201
4202 2011-04-27  Eric Blake  <eblake@redhat.com>
4203
4204         fchdir: avoid extra chdir and fix test
4205         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
4206         getcwd-lgpl.
4207         * lib/fchdir.c (get_name): Any absolute name will do; it does not
4208         have to be canonical.
4209         (canonicalize_file_name): Drop unused macro.
4210         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
4211
4212         filenamecat-lgpl: fix licence
4213         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
4214         when it was first created.
4215
4216         linkat, renameat: add missing dependency
4217         * modules/linkat (Depends-on): Require getcwd-lgpl.
4218         * modules/renameat (Depends-on): Likewise.
4219
4220         tests: reduce dependencies
4221         * tests/test-linkat.c (main): Use lighter-weight getcwd.
4222         * tests/test-renameat.c (main): Likewise.
4223         * modules/linkat-tests (Depends-on): Relax dependency.
4224         * modules/renameat-tests (Depends-on): Likewise.
4225         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
4226         dependency explicit.
4227
4228         save-cwd: reduce default dependency
4229         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
4230         * lib/save-cwd.c: Update comments.
4231         * NEWS: Document the semantic change.
4232
4233         getcwd: enhance tests
4234         * tests/test-getcwd-lgpl.c: New file, taken from...
4235         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
4236         repeat long path stress tests from m4 probe.
4237         * modules/getcwd-lgpl-tests: New module.
4238         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
4239         * m4/getcwd-abort-bug.m4: Update comment.
4240         * m4/getcwd-path-max.m4: Likewise.
4241
4242         getcwd-lgpl: new module
4243         * modules/getcwd-lgpl: New module.
4244         * lib/getcwd-lgpl.c: New file.
4245         * doc/posix-functions/getcwd.texi (getcwd): Document it.
4246         * MODULES.html.sh (lacking POSIX:2008): Likewise.
4247         * modules/getcwd (configure.ac): Set C witness.
4248         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
4249
4250         getcwd: tweak comments
4251         * m4/getcwd-abort-bug.m4: Fix comments.
4252         * m4/getcwd-path-max.m4: Likewise.
4253         * m4/getcwd.m4: Likewise.
4254
4255 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4256         and Eric Blake  <eblake@redhat.com>
4257
4258         mkstemp: replace if system version uses wrong permissions
4259         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
4260         read/write mode bits set in file created by mkstemp.
4261         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
4262
4263 2011-04-27  Eric Blake  <eblake@redhat.com>
4264
4265         passfd: avoid compiler warning
4266         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
4267         Reported by Laine Stump.
4268
4269 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
4270
4271         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
4272         required by the NetBSD (and perhaps other 4.4BSD derived) join.
4273
4274 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
4275         and Eric Blake  <eblake@redhat.com>
4276
4277         mkstemp: mention clean-temp module
4278         * lib/mkstemp.c: Add comment.
4279         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
4280
4281 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
4282
4283         inttypes: also provide default values for 32-bit tests
4284         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
4285         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
4286
4287 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4288
4289         strtoumax: remove dependency on strtoimax
4290         This is like the strtoull change of yesterday.
4291         * modules/strtoumax (Files): Add lib/strtoimax.c.
4292         (Depends-on): Remove strtoimax and add verify.
4293
4294         inttypes-incomplete: new module
4295         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
4296         all but the PRI* and SCN* parts of gl_INTTYPES_H.
4297         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
4298         of gl_INTTYPES_H.
4299         (gl_INTTYPES_H): Rewrite in terms of these new macros.
4300         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
4301         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
4302         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
4303         * modules/strtoumax, modules/xstrtol (Depends-on):
4304         Depend on inttypes-incomplete, not inttypes.
4305         * modules/inttypes-incomplete: New module, containing the contents
4306         of the old modules/inttypes module, except that the Files: section
4307         omits m4/inttypes-pri.m4, and the configure.ac section invokes
4308         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
4309         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
4310         (Depends-on): Depend only on inttypes-incomplete.
4311         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
4312
4313         inttypes: omit now-redundant strtoimax and strtoumax work
4314         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
4315         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
4316
4317         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
4318         This supports apps that need pointers to strtoimax and strtoumax,
4319         and ports to HP-UX 11.00 64.bit, which has macros that expand to
4320         nonexistent functions.  See
4321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
4322         et seq.
4323         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
4324         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
4325         a macro.
4326         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
4327
4328 2011-04-25  Simon Josefsson  <simon@josefsson.org>
4329
4330         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
4331
4332 2011-04-25  Bruno Haible  <bruno@clisp.org>
4333
4334         strtol, strtoul: Mark modules as obsolete.
4335         * modules/strtol (Status, Notice): New sections.
4336         * modules/strtoul (Status, Notice): New sections.
4337
4338 2011-04-25  Bruno Haible  <bruno@clisp.org>
4339
4340         strtod: Remove check for strtod, unless supporting old platforms.
4341         * modules/strtod-obsolete: New file.
4342         * m4/strtod-obsolete.m4: New file.
4343         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
4344         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
4345         * modules/strtod (Depends-on): Add strtod-obsolete.
4346         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
4347
4348 2011-04-25  Bruno Haible  <bruno@clisp.org>
4349
4350         strcase: Make module obsolete.
4351         * modules/strcase (Status, Notice): New sections.
4352
4353 2011-04-25  Bruno Haible  <bruno@clisp.org>
4354
4355         dup2: Remove check for dup2, unless supporting old obsolete platforms.
4356         * modules/dup2-obsolete: New file.
4357         * m4/dup2-obsolete.m4: New file.
4358         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
4359         gl_FUNC_DUP2_OBSOLETE is not also defined.
4360         * modules/dup2 (Depends-on): Add dup2-obsolete.
4361         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
4362
4363 2011-04-25  Bruno Haible  <bruno@clisp.org>
4364
4365         strnlen: Avoid memchr related link error on old obsolete platforms.
4366         * modules/memchr-obsolete: New file.
4367         * m4/memchr-obsolete.m4: New file.
4368         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
4369         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
4370         * modules/memchr (Depends-on): Add memchr-obsolete.
4371         * modules/strnlen (Depends-on): Likewise.
4372         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
4373
4374 2011-04-25  Jim Meyering  <meyering@redhat.com>
4375
4376         maint.mk: makefile_at_at_check extend and clean up
4377         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
4378         in addition to */Makefile.am.
4379         Exempt legitimate uses of @VAR@ notation, e.g.,
4380         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
4381         Remove obsolete coreutils-specific comment.
4382         Prompted by discussion here:
4383         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
4384
4385 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
4386
4387         strtoul: remove dependency on strtol
4388         This is so that 'configure' need not check for strtol merely because
4389         the application needs strtoul.
4390         * modules/strtoul (Files): Add lib/strtol.c.
4391         (Depends-on): Remove strtol.
4392
4393         strtoull: remove dependency on strtoul
4394         This is like the strtoll change.
4395         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
4396         (Depends-on): Remove strtoul.
4397
4398         strtoll: remove dependency on strtol
4399         This is so that 'configure' need not check for strtol merely because
4400         the application needs strtoll.
4401         * modules/strtoll (Files): Add lib/strtol.c.
4402         (Depends-on): Remove strtol.
4403
4404 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4405
4406         inttypes: Move some configure check to module 'imaxdiv'.
4407         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
4408         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
4409         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
4410
4411 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4412
4413         inttypes: Move some configure check to module 'imaxabs'.
4414         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
4415         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
4416         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
4417
4418 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4419
4420         inttypes: Remove configure tests that are not needed since 2009-12-31.
4421         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
4422         gl_cv_header_working_inttypes_h.
4423
4424 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
4425
4426         * modules/strnlen (Depends-on): Remove memchr.
4427         The strnlen implementation doesn't need the memchr module's fixes; see
4428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
4429
4430         strtol: remove dependency on wchar
4431         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
4432         * modules/strtol (Depends-on): Remove wchar.
4433
4434 2011-04-21  Eric Blake  <eblake@redhat.com>
4435
4436         passfd: fix test regression on Linux
4437         * modules/passfd-tests (configure.ac): Correct socketpair check.
4438
4439         passfd: speed up configure and drop unused code
4440         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
4441         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
4442         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
4443         Instead of probing at configure for unix_scm_rights_bsd44_way,
4444         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
4445         check to a struct member probe.
4446         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
4447         (sendfd, recvfd): Update preprocessor checks.
4448         * modules/passfd (Files): Reflect rename, and drop unused file.
4449         (Depends-on): Drop unused dependency.
4450
4451         passfd: allow compilation on mingw
4452         * modules/sys_socket (Depends-on): Add sys_uio.
4453         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
4454         iovec and a minimal struct msghdr.
4455         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
4456         * tests/test-sys_socket.c (main): Enhance test.
4457         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
4458         guaranteed to provide what we need.
4459         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
4460         * modules/passfd-tests (Depends-on): Add sys_wait.
4461         * tests/test-passfd.c (main): Skip test on mingw, for now.
4462         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
4463         partial 'struct msghdr' implementation.
4464
4465         sys_uio: new module
4466         * modules/sys_uio: New module.
4467         * modules/sys_uio-tests: Likewise.
4468         * lib/sys_uio.in.h: New file.
4469         * m4/sys_uio_h.m4: Likewise.
4470         * tests/test-sys_uio.c: Likewise.
4471         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
4472         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
4473
4474 2011-04-20  Jim Meyering  <meyering@redhat.com>
4475
4476         useless-if-before-free: avoid false-positive
4477         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
4478         disjunct so that it too requires a terminating ";".  Without that,
4479         this script would identify as useless one statement from gcc that
4480         was not:
4481           if (aligned_ptr)
4482             free (((void **) aligned_ptr) [-1]);
4483
4484 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
4485
4486         doc: update users.txt.
4487         * users.txt: Add barcode.
4488
4489 2011-04-19  Bruno Haible  <bruno@clisp.org>
4490
4491         ioctl: Remove link dependency on native Windows.
4492         * lib/fd-hook.h: Renamed from lib/close-hook.h.
4493         (gl_close_fn, gl_ioctl_fn): New types.
4494         (struct fd_hook): Renamed from struct close_hook. Change type of
4495         private_close_fn field. Add private_ioctl_fn field.
4496         (close_hook_fn): Add parameter for primary close method.
4497         (execute_close_hooks, execute_all_close_hooks): Likewise.
4498         (ioctl_hook_fn): New type.
4499         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
4500         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4501         argument.
4502         (unregister_fd_hook): Renamed from unregister_close_hook.
4503         * lib/fd-hook.c: Renamed from lib/close-hook.c.
4504         Don't include <unistd.h>.
4505         (close): Remove undef.
4506         (anchor): Update.
4507         (execute_close_hooks): Add argument for primary close method.
4508         (execute_all_close_hooks): Likewise.
4509         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
4510         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
4511         argument. Allow each argument to be NULL.
4512         (unregister_fd_hook): Renamed from unregister_close_hook.
4513         * lib/close.c (rpl_close): Pass 'close' function pointer to
4514         execute_all_close_hooks.
4515         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
4516         (primary_ioctl): New function.
4517         (ioctl): Don't call ioctlsocket here. Instead, call
4518         execute_all_ioctl_hooks.
4519         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
4520         close method.
4521         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
4522         (fd_sockets_hook): Renamed from close_sockets_hook.
4523         (gl_sockets_startup, gl_sockets_cleanup): Update.
4524         * modules/fd-hook: Renamed from modules/close-hook. Update.
4525         * modules/close (Depends-on): Add fd-hook, remove close-hook.
4526         * modules/sockets (Depends-on): Likewise.
4527         * modules/ioctl (Depends-on): Add fd-hook.
4528         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
4529         GNULIB_SOCKET.
4530
4531 2011-04-19  Bruno Haible  <bruno@clisp.org>
4532
4533         Move the support of O_NONBLOCK in open() to the 'open' module.
4534         * modules/nonblocking (Depends-on): Remove 'open'.
4535         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
4536         gl_cv_have_open_O_NONBLOCK.
4537         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
4538         O_NONBLOCK support.
4539         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
4540
4541 2011-04-17  Bruno Haible  <bruno@clisp.org>
4542
4543         pipe2: Simplify code.
4544         * lib/pipe2.c (pipe2): Reduce code duplication.
4545
4546 2011-04-17  Bruno Haible  <bruno@clisp.org>
4547
4548         nonblocking: Add comment.
4549         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
4550
4551 2011-04-17  Bruno Haible  <bruno@clisp.org>
4552
4553         nonblocking: Add tests for sockets.
4554         * tests/test-nonblocking-socket.sh: New file.
4555         * tests/test-nonblocking-socket-main.c: New file.
4556         * tests/test-nonblocking-socket-child.c: New file.
4557         * tests/test-nonblocking-socket.h: New file.
4558         * tests/socket-server.h: New file.
4559         * tests/socket-client.h: New file.
4560         * modules/nonblocking-socket-tests: New file.
4561         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
4562
4563 2011-04-17  Bruno Haible  <bruno@clisp.org>
4564
4565         nonblocking: Add tests for pipes.
4566         * tests/test-nonblocking-pipe.sh: New file.
4567         * tests/test-nonblocking-pipe-main.c: New file.
4568         * tests/test-nonblocking-pipe-child.c: New file.
4569         * tests/test-nonblocking-pipe.h: New file.
4570         * tests/test-nonblocking-writer.h: New file.
4571         * tests/test-nonblocking-reader.h: New file.
4572         * tests/test-nonblocking-misc.h: New file.
4573         * modules/nonblocking-pipe-tests: New file.
4574         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
4575
4576 2011-04-16  Bruno Haible  <bruno@clisp.org>
4577
4578         gettext: Clarify the needed programmer actions.
4579         * modules/gettext (Notice): New field.
4580         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4581
4582 2011-04-16  Bruno Haible  <bruno@clisp.org>
4583
4584         strchrnul: Tweak last commit.
4585         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
4586         bug.
4587         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
4588         as in _GL_FUNCDECL_SYS.
4589         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
4590         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
4591
4592 2011-04-15  Eric Blake  <eblake@redhat.com>
4593
4594         strchrnul: work around cygwin bug
4595         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
4596         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
4597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
4598         * modules/string (Makefile.am): Substitute it.
4599         * lib/string.in.h (strchrnul): Use it.
4600
4601 2011-04-15  Bruno Haible  <bruno@clisp.org>
4602
4603         Don't require lib/stdio-write.c when only module 'stdio' is used.
4604         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
4605         invocation.
4606         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
4607
4608 2011-04-14  Bruno Haible  <bruno@clisp.org>
4609
4610         Support non-blocking pipe I/O in read() on native Windows.
4611         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
4612         (read): New declaration.
4613         * lib/read.c: New file.
4614         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
4615         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
4616         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
4617         vscanf): New declarations.
4618         * lib/stdio-read.c: New file.
4619         * m4/read.m4: New file.
4620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
4621         REPLACE_READ.
4622         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
4623         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4624         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
4625         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
4626         (gl_STDIO_H_DEFAULTS): Initialize 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/read: New file.
4630         * modules/nonblocking (Files): Add lib/stdio-read.c.
4631         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
4632         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
4633         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
4634         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
4635         * modules/pread (Depends-on): Add read.
4636         * modules/safe-read (Depends-on): Likewise.
4637         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
4638         gets, scanf, vfscanf, vscanf): Verify signatures.
4639         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
4640         problem with non-blocking pipes.
4641         * doc/posix-functions/fgetc.texi: Likewise.
4642         * doc/posix-functions/fgets.texi: Likewise.
4643         * doc/posix-functions/fread.texi: Likewise.
4644         * doc/posix-functions/fscanf.texi: Likewise.
4645         * doc/posix-functions/getc.texi: Likewise.
4646         * doc/posix-functions/getchar.texi: Likewise.
4647         * doc/posix-functions/gets.texi: Likewise.
4648         * doc/posix-functions/scanf.texi: Likewise.
4649         * doc/posix-functions/vfscanf.texi: Likewise.
4650         * doc/posix-functions/vscanf.texi: Likewise.
4651
4652 2011-04-14  Bruno Haible  <bruno@clisp.org>
4653
4654         Support non-blocking pipe I/O in write() on native Windows.
4655         * lib/write.c (rpl_write): Split a write request that failed merely
4656         because the byte count was larger than the pipe buffer's size.
4657         * doc/posix-functions/write.texi: Mention the problem with large byte
4658         counts.
4659
4660 2011-04-14  Bruno Haible  <bruno@clisp.org>
4661
4662         wchar: Ensure that wchar_t gets defined on uClibc.
4663         * lib/wchar.in.h: On uClibc, include <stddef.h>.
4664         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
4665
4666 2011-04-13  Bruno Haible  <bruno@clisp.org>
4667
4668         safe-write, full-read: Avoid unnecessary compilation units.
4669         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
4670         (Depends-on): Remove safe-read. Add ssize_t.
4671         * modules/full-read (Files): Add lib/full-write.c.
4672         (Depends-on): Add full-write.
4673
4674 2011-04-13  Bruno Haible  <bruno@clisp.org>
4675
4676         Support non-blocking pipe I/O and SIGPIPE in pwrite().
4677         * modules/pwrite (Depends-on): Add 'write'.
4678
4679 2011-04-13  Bruno Haible  <bruno@clisp.org>
4680
4681         Support non-blocking pipe I/O in write() on native Windows.
4682         * lib/unistd.in.h (write): Enable replacement also if
4683         GNULIB_UNISTD_H_NONBLOCKING is 1.
4684         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
4685         (rpl_write): When failing to write on a non-blocking pipe, change
4686         errno from ENOSPC to EAGAIN.
4687         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
4688         putchar, puts, vfprintf, vprintf): Enable replacement also if
4689         GNULIB_STDIO_H_NONBLOCKING is 1.
4690         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
4691         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
4692         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
4693         CALL_WITH_SIGPIPE_EMULATION.
4694         (CALL_WITH_SIGPIPE_EMULATION): Use them.
4695         * m4/nonblocking.m4: New file.
4696         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
4697         for non-blocking I/O support.
4698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4699         GNULIB_UNISTD_H_NONBLOCKING.
4700         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
4701         required for non-blocking I/O support.
4702         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
4703         * modules/nonblocking (Files): Add m4/nonblocking.m4,
4704         lib/stdio-write.c, m4/asm-underscore.m4.
4705         (Depends-on): Add stdio, unistd.
4706         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
4707         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
4708         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
4709         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
4710         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
4711         problem with non-blocking pipes.
4712         * doc/posix-functions/fputc.texi: Likewise.
4713         * doc/posix-functions/fputs.texi: Likewise.
4714         * doc/posix-functions/fwrite.texi: Likewise.
4715         * doc/posix-functions/printf.texi: Likewise.
4716         * doc/posix-functions/putc.texi: Likewise.
4717         * doc/posix-functions/putchar.texi: Likewise.
4718         * doc/posix-functions/puts.texi: Likewise.
4719         * doc/posix-functions/vfprintf.texi: Likewise.
4720         * doc/posix-functions/vprintf.texi: Likewise.
4721         * doc/posix-functions/write.texi: Likewise.
4722
4723 2011-04-10  Jim Meyering  <meyering@redhat.com>
4724
4725         maint.mk: prohibit doubled words
4726         Detect them also when they're separated by a newline.
4727         There are 3 ways to customize it:
4728           - disable the test on a per file basis, as usual with rules using
4729             $(VC_LIST_EXCEPT)
4730           - replace the default doubled-word-selecting regexp (affects all files)
4731           - ignore a particular file-vs-doubled-word match
4732         I nearly used that last one to ignore the "is is" match in
4733         coreutils' NEWS file, since the text was "ls -is is ..."
4734         To do that, I would have added this line to cfg.mk:
4735           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
4736         but it would have ignored any "is is" match in NEWS.
4737         Low probability, but still...
4738         Instead, I changed the text, slightly:
4739           -  ls -is is now consistent with ls -lis in ignoring values returned
4740           +  "ls -is" is now consistent with ls -lis in ignoring values returned
4741         * top/maint.mk (prohibit_double_word_RE_): Provide default.
4742         (prohibit_doubled_word_): Define.
4743         (sc_prohibit_doubled_word): New rule.
4744         (sc_prohibit_the_the): Remove.  Subsumed by the above.
4745
4746 2011-04-10  Jim Meyering  <meyering@redhat.com>
4747
4748         maint: fix doubled-word typo in comment
4749         * m4/gethostname.m4: s/is is/it is/
4750         * m4/getdomainname.m4: Likewise.
4751
4752 2011-04-10  Jim Meyering  <meyering@redhat.com>
4753
4754         maint: remove doubled word: s/it it/it/
4755         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
4756
4757 2011-04-10  Jim Meyering  <meyering@redhat.com>
4758
4759         maint.mk: remove useless semicolon and backslash
4760         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
4761         semicolon and backslash.
4762
4763 2011-04-10  Bruno Haible  <bruno@clisp.org>
4764
4765         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
4766         * modules/stdint-tests (Depends-on): Add wchar.
4767
4768 2011-04-10  Jim Meyering  <meyering@redhat.com>
4769
4770         maint: remove doubled words in comments, e.g., s/a a/a/
4771         * lib/strptime.c (day_of_the_week): s/the the/the/
4772         * tests/test-chown.h (test_chown): s/a a/a/
4773
4774         test-chown.h: correct a cast
4775         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
4776         when the destination is a stat.st_gid.
4777
4778 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
4779
4780         getaddrinfo: Fix test for sa_len member.
4781         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
4782         include <sys/types.h> before <sys/socket.h>.
4783
4784 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
4785
4786         maint: change "can not" to "cannot"
4787         * doc/posix-functions/iconv.texi (iconv): This one crossed line
4788         boundaries.
4789
4790 2011-04-09  Jim Meyering  <meyering@redhat.com>
4791
4792         maint: change "a a" to "a"
4793         * tests/test-lchown.h (test_lchown): s/a a/a/
4794
4795         maint.mk: prohibit \<the the\>
4796         * top/maint.mk (sc_prohibit_the_the): New rule.
4797
4798         maint: fix "the the" in comment
4799         * lib/count-one-bits.h: s/the the/the/
4800
4801         maint: change "can not" to "cannot"
4802         But do not change the occurrences in maintain.texi or in
4803         build-aux/po/Makefile.in.in, which I presume comes from gettext.
4804         * doc/gnulib-tool.texi: s/can not/cannot/
4805         * doc/posix-functions/accept.texi (accept): Likewise.
4806         * doc/posix-functions/socket.texi (socket): Likewise.
4807         * lib/mbrtowc.c: Likewise.
4808
4809         maint.mk: prohibit use of "can not"
4810         * top/maint.mk (sc_prohibit_can_not): New rule.
4811         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
4812
4813 2011-04-09  Bruno Haible  <bruno@clisp.org>
4814
4815         careadlinkat: Guard against misuse of careadlinkatcwd.
4816         * lib/careadlinkat.c: Include <stdlib.h>.
4817         (careadlinkatcwd): Check that the fd argument is as expected.
4818
4819 2011-04-09  Bruno Haible  <bruno@clisp.org>
4820
4821         careadlinkat: Use common coding style.
4822         * lib/careadlinkat.c: Move gnulib includes after system includes.
4823
4824 2011-04-09  Bruno Haible  <bruno@clisp.org>
4825
4826         careadlinkat: Clarify specification.
4827         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
4828         (careadlinkatcwd): Add comment.
4829         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
4830
4831 2011-04-09  Bruno Haible  <bruno@clisp.org>
4832
4833         areadlinkat: Avoid link error on many platforms.
4834         * modules/areadlinkat (Depends-on): Add areadlink.
4835
4836 2011-04-09  Bruno Haible  <bruno@clisp.org>
4837
4838         allocator, careadlinkat: Fix double-inclusion guard.
4839         * lib/allocator.h: Fix double-inclusion guard.
4840         * lib/careadlinkat.h: Likewise.
4841
4842 2011-04-09  Bruno Haible  <bruno@clisp.org>
4843
4844         relocatable-prog-wrapper: Update after module 'areadlink' changed.
4845         * lib/relocwrapper.c: Update dependencies hierarchy.
4846         * build-aux/install-reloc: Update list of files to be compiled.
4847         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
4848         lib/allocator.[hc].
4849
4850 2011-04-08  Eric Blake  <eblake@redhat.com>
4851
4852         strftime: silence gnulib-tool warning
4853         * modules/strftime-tests (Depends-on): Drop automatic dependency.
4854
4855 2011-04-08  Bruno Haible  <bruno@clisp.org>
4856
4857         verify: Fix syntax error with GCC 4.6 in C++ mode.
4858         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
4859         (HAVE_STATIC_ASSERT): New macro.
4860         (verify_true, verify): Use 'static_assert' if it is supported and
4861         '_Static_assert' is not supported.
4862
4863 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
4864
4865         allocator: New module.
4866         * modules/allocator, lib/allocator.c: New files.
4867         * lib/allocator.h (stdlib_allocator): New decl.
4868         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
4869         Remove.  Do not include <stdlib.h>.
4870         (careadlinkat): Use stdlib_allocator instead of rolling our own.
4871         * modules/careadlinkat (Files): Remove lib/allocator.h.
4872         (Depends-on): Add allocator.
4873
4874         stdlib: let modules use system malloc, realloc
4875         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
4876         if !_GL_USE_STDLIB_ALLOC.
4877         (malloc, realloc): Limit this change to a smaller scope.
4878
4879         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
4880         (malloc, realloc): Don't #undef; no longer needed.
4881         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4882         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4883         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4884         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4885         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4886         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4887         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
4888         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
4889
4890         careadlinkat: rename members to avoid problem
4891         * lib/allocator.h (struct allocator): Rename members from
4892         malloc/realloc to allocate/reallocate, to avoid problems if malloc
4893         and realloc are #define'd.  Reported by Eric Blake in
4894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
4895         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
4896
4897 2011-04-08  Eric Blake  <eblake@redhat.com>
4898
4899         nonblocking: reduce dependency
4900         * tests/test-nonblocking.c: Only test sockets when in use.
4901         * modules/nonblocking-tests (Depends-on): Drop socket.
4902         (Makefile.am): Link even if sockets are not present.
4903         * modules/pipe2-tests (Makefile.am): Likewise.
4904         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
4905
4906         pipe2: fix O_NONBLOCK support on mingw
4907         * modules/pipe2 (Depends-on): Add nonblocking.
4908         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
4909         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
4910         * tests/test-nonblocking.c (main): Likewise.
4911         * modules/pipe2-tests (Makefile.am): Avoid link failure.
4912
4913         fcntl-h: fix O_ACCMODE on cygwin
4914         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
4915         * lib/fcntl.in.h (O_ACCMODE): Fix it.
4916
4917         pipe-filter: drop O_NONBLOCK workarounds
4918         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
4919         * modules/pipe-filter-ii (Depends-on): Likewise.
4920         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
4921
4922         nonblocking: provide O_NONBLOCK for mingw
4923         * modules/nonblocking (Depends-on): Add open.
4924         (configure.ac): Set new witness macro.
4925         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
4926         * modules/fcntl-h (Makefile.am): Substitute it.
4927         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
4928         nonblocking module is in use.
4929         * lib/nonblocking.c: Adjust portability test.
4930         * lib/open.c (open): Don't let native open see gnulib flag.
4931         * tests/test-fcntl-h.c (main): Enhance test.
4932         * tests/test-open.h (test_open): Likewise.
4933         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
4934
4935         careadlinkat: fix compilation error on mingw
4936         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
4937         within struct allocator.
4938
4939 2011-04-06  Eric Blake  <eblake@redhat.com>
4940
4941         binary-io: relicense under LGPLv2+
4942         * modules/binary-io (License): Relax to LGPLv2+.
4943         Requested for libvirt, and required by pipe2.
4944
4945 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
4946
4947         verify: use _Static_assert if available
4948         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
4949         (verify_true, verify): Use it if available.  This generates better
4950         diagnostics with GCC 4.6.0 and later.
4951
4952 2011-04-05  Bruno Haible  <bruno@clisp.org>
4953
4954         Remove leftover generated .h files after config.status changed.
4955
4956         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
4957         GL_GENERATE_ALLOCA_H.
4958         * modules/alloca-opt (Makefile.am): Remove alloca.h if
4959         GL_GENERATE_ALLOCA_H evaluates to false.
4960
4961         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
4962         GL_GENERATE_ARGZ_H.
4963         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
4964         evaluates to false.
4965
4966         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
4967         GL_GENERATE_BYTESWAP_H.
4968         * modules/byteswap (Makefile.am): Remove byteswap.h if
4969         GL_GENERATE_BYTESWAP_H evaluates to false.
4970
4971         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
4972         GL_GENERATE_ERRNO_H.
4973         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
4974         evaluates to false.
4975
4976         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
4977         GL_GENERATE_FLOAT_H.
4978         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
4979         evaluates to false.
4980
4981         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
4982         GL_GENERATE_FNMATCH_H.
4983         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
4984         GL_GENERATE_FNMATCH_H evaluates to false.
4985
4986         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
4987         GL_GENERATE_GLOB_H.
4988         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
4989         evaluates to false.
4990
4991         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
4992         automake conditional GL_GENERATE_ICONV_H.
4993         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
4994         evaluates to false.
4995
4996         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
4997         GL_GENERATE_NETINET_IN_H.
4998         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
4999         GL_GENERATE_NETINET_IN_H evaluates to false.
5000
5001         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
5002         conditional GL_GENERATE_PTHREAD_H.
5003         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
5004         * modules/pthread (Makefile.am): Remove pthread.h if
5005         GL_GENERATE_PTHREAD_H evaluates to false.
5006
5007         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
5008         GL_GENERATE_SCHED_H.
5009         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
5010         evaluates to false.
5011
5012         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
5013         conditional GL_GENERATE_SELINUX_CONTEXT_H.
5014         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
5015         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
5016
5017         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
5018         GL_GENERATE_STDARG_H.
5019         * modules/stdarg (Makefile.am): Remove stdarg.h if
5020         GL_GENERATE_STDARG_H evaluates to false.
5021
5022         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
5023         GL_GENERATE_STDBOOL_H.
5024         * modules/stdbool (Makefile.am): Remove stdbool.h if
5025         GL_GENERATE_STDBOOL_H evaluates to false.
5026
5027         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
5028         conditional GL_GENERATE_STDDEF_H.
5029         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
5030         * modules/stddef (Makefile.am): Remove stddef.h if
5031         GL_GENERATE_STDDEF_H evaluates to false.
5032
5033         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
5034         GL_GENERATE_STDINT_H.
5035         * modules/stdint (Makefile.am): Remove stdint.h if
5036         GL_GENERATE_STDINT_H evaluates to false.
5037
5038         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
5039         GL_GENERATE_SYSEXITS_H.
5040         * modules/sysexits (Makefile.am): Remove sysexits.h if
5041         GL_GENERATE_SYSEXITS_H evaluates to false.
5042
5043         Reported by Karl Berry and Ralf Wildenhues.
5044
5045 2011-04-05  Bruno Haible  <bruno@clisp.org>
5046
5047         Ensure to rebuild generated .h files when config.status has changed.
5048         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
5049         config.status.
5050         * modules/ctype (Makefile.am): Likewise.
5051         * modules/dirent (Makefile.am): Likewise.
5052         * modules/errno (Makefile.am): Likewise.
5053         * modules/fcntl-h (Makefile.am): Likewise.
5054         * modules/float (Makefile.am): Likewise.
5055         * modules/getopt-posix (Makefile.am): Likewise.
5056         * modules/glob (Makefile.am): Likewise.
5057         * modules/iconv-h (Makefile.am): Likewise.
5058         * modules/inttypes (Makefile.am): Likewise.
5059         * modules/langinfo (Makefile.am): Likewise.
5060         * modules/locale (Makefile.am): Likewise.
5061         * modules/math (Makefile.am): Likewise.
5062         * modules/netdb (Makefile.am): Likewise.
5063         * modules/netinet_in (Makefile.am): Likewise.
5064         * modules/poll-h (Makefile.am): Likewise.
5065         * modules/pthread (Makefile.am): Likewise.
5066         * modules/pty (Makefile.am): Likewise.
5067         * modules/sched (Makefile.am): Likewise.
5068         * modules/search (Makefile.am): Likewise.
5069         * modules/selinux-h (Makefile.am): Likewise.
5070         * modules/signal (Makefile.am): Likewise.
5071         * modules/spawn (Makefile.am): Likewise.
5072         * modules/stdarg (Makefile.am): Likewise.
5073         * modules/stdbool (Makefile.am): Likewise.
5074         * modules/stddef (Makefile.am): Likewise.
5075         * modules/stdint (Makefile.am): Likewise.
5076         * modules/stdio (Makefile.am): Likewise.
5077         * modules/stdlib (Makefile.am): Likewise.
5078         * modules/string (Makefile.am): Likewise.
5079         * modules/strings (Makefile.am): Likewise.
5080         * modules/sys_file (Makefile.am): Likewise.
5081         * modules/sys_ioctl (Makefile.am): Likewise.
5082         * modules/sys_select (Makefile.am): Likewise.
5083         * modules/sys_socket (Makefile.am): Likewise.
5084         * modules/sys_stat (Makefile.am): Likewise.
5085         * modules/sys_time (Makefile.am): Likewise.
5086         * modules/sys_times (Makefile.am): Likewise.
5087         * modules/sys_utsname (Makefile.am): Likewise.
5088         * modules/sys_wait (Makefile.am): Likewise.
5089         * modules/sysexits (Makefile.am): Likewise.
5090         * modules/termios (Makefile.am): Likewise.
5091         * modules/time (Makefile.am): Likewise.
5092         * modules/unistd (Makefile.am): Likewise.
5093         * modules/wchar (Makefile.am): Likewise.
5094         * modules/wctype-h (Makefile.am): Likewise.
5095         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
5096
5097 2011-04-05  Bruno Haible  <bruno@clisp.org>
5098
5099         pipe2: Relicense under LGPLv2+.
5100         * modules/pipe2 (License): Change to LGPLv2+.
5101         Requested by Eric Blake, for libvirt.
5102
5103 2011-04-05  Bruce Korb  <bkorb@gnu.org>
5104
5105         bootstrap: compute gnulib_extra_files after updating build_aux
5106         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
5107         change build_aux or also supply gnulib_extra_files.  Handle correctly.
5108
5109 2011-04-05  Eric Blake  <eblake@redhat.com>
5110
5111         bootstrap: preserve git whitelist item sorting
5112         * build-aux/bootstrap (sort_patterns): New function.
5113         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
5114
5115 2011-04-05  Simon Josefsson  <simon@josefsson.org>
5116
5117         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
5118         sc_space_tab check.
5119
5120 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
5121
5122         areadlink, areadlinkat: rewrite in terms of careadlinkat
5123         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
5124         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
5125         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
5126         (malloc, realloc): Remove #undefs.
5127         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
5128         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
5129         readlink, ssize_t, stdint, unistd.
5130         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
5131         areadlink, stdint.
5132
5133         careadlinkat: new module
5134         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
5135         * modules/careadlinkat: New files, written by me with
5136         a review and feedback from Ben Pfaff in
5137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
5138
5139 2011-04-01  Bruno Haible  <bruno@clisp.org>
5140
5141         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
5142         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
5143         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
5144         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
5145         Reported by Bruce Korb <bruce.korb@gmail.com>.
5146
5147 2011-04-01  Bruno Haible  <bruno@clisp.org>
5148
5149         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
5150         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
5151         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
5152         * modules/wcpcpy (Depends-on): Add extensions.
5153         * modules/wcpncpy (Depends-on): Likewise.
5154         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
5155         systems.
5156         * doc/posix-functions/wcpncpy.texi: Likewise.
5157         * doc/posix-functions/wcwidth.texi: Likewise.
5158
5159 2011-03-31  Eric Blake  <eblake@redhat.com>
5160
5161         nonblocking: fix mingw test failures
5162         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
5163         non-blocking flag on regular file.
5164         (get_nonblocking_flag): Set errno on invalid fd.
5165         * tests/test-nonblocking.c (main): Avoid test failure on
5166         directories if fchdir is not active.
5167         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
5168
5169 2011-03-31  Bruno Haible  <bruno@clisp.org>
5170
5171         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
5172         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
5173         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
5174         Reported by Simon Josefsson <simon@josefsson.org>.
5175
5176 2011-03-31  Bruno Haible  <bruno@clisp.org>
5177         and Eric Blake  <eblake@redhat.com>
5178
5179         nonblocking: new module
5180         * modules/nonblocking: New module.
5181         * modules/nonblocking-tests: Likewise.
5182         * lib/nonblocking.h: New file.
5183         * lib/nonblocking.c: Likewise.
5184         * tests/test-nonblocking.c: New test.
5185         * lib/ioctl.c (ioctl) [mingw]: Update comment.
5186
5187 2011-03-30  Bruno Haible  <bruno@clisp.org>
5188
5189         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
5190         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
5191         instead of 'printf' format for GCC >= 4.4.
5192         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
5193         (fprintf, printf, vfprintf, vprintf): Declare with
5194         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
5195         the system's vfprintf() function.
5196         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
5197
5198 2011-03-30  Eric Blake  <eblake@redhat.com>
5199
5200         passfd: fix scoping bug
5201         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
5202         before sendmsg/recvmsg.
5203
5204         passfd: standardize coding conventions
5205         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
5206         can be learned at compile time.
5207         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
5208         ifdefs.
5209         (sendfd, recvfd): Follow gnulib code conventions.
5210
5211         passfd: fix incorrect sendmsg arguments
5212         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
5213         incorrect msg_controllen value.
5214         * modules/passfd-tests (Depends-on): Check for alarm.
5215         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
5216         Reported by Bastien ROUCARIES.
5217
5218 2011-03-30  Bruno Haible  <bruno@clisp.org>
5219
5220         c-strcasestr: Relicense under LGPLv2+.
5221         * modules/c-strcasestr (License): Change to LGPLv2+.
5222         Requested by Eric Blake, for libvirt.
5223
5224 2011-03-30  Simon Josefsson  <simon@josefsson.org>
5225
5226         * users.txt: Add libidn2.  Fix libtasn1 link.
5227
5228 2011-03-30  Jim Meyering  <meyering@redhat.com>
5229
5230         tests: readlink* ("",... fails with EINVAL on newer kernels
5231         readlink and readlinkat have typically failed with ENOENT for
5232         the invalid, empty file name,  "".  However, with the advent
5233         of linux-2.6.39, they fail with EINVAL.
5234         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
5235         when operating on the empty file name.
5236         * tests/test-readlink.h (test_readlink): Likewise.
5237
5238 2011-03-29  Bruno Haible  <bruno@clisp.org>
5239
5240         Relicense some modules under LGPLv2+, for libidn2.
5241         * modules/array-mergesort (License): Change to LGPLv2+.
5242         * modules/c-strcaseeq (License): Likewise.
5243         * modules/striconveh (License): Likewise.
5244         * modules/striconveha (License): Likewise.
5245         * modules/uniconv/base (License): Likewise.
5246         * modules/uniconv/u8-conv-from-enc (License): Likewise.
5247         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
5248         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
5249         * modules/unictype/base (License): Likewise.
5250         * modules/unictype/bidiclass-of (License): Likewise.
5251         * modules/unictype/category-M (License): Likewise.
5252         * modules/unictype/category-none (License): Likewise.
5253         * modules/unictype/category-of (License): Likewise.
5254         * modules/unictype/category-test (License): Likewise.
5255         * modules/unictype/category-test-withtable (License): Likewise.
5256         * modules/unictype/combining-class (License): Likewise.
5257         * modules/unictype/joiningtype-of (License): Likewise.
5258         * modules/unictype/scripts (License): Likewise.
5259         * modules/uninorm/base (License): Likewise.
5260         * modules/uninorm/canonical-decomposition (License): Likewise.
5261         * modules/uninorm/composition (License): Likewise.
5262         * modules/uninorm/decompose-internal (License): Likewise.
5263         * modules/uninorm/decomposition-table (License): Likewise.
5264         * modules/uninorm/nfc (License): Likewise.
5265         * modules/uninorm/nfd (License): Likewise.
5266         * modules/uninorm/u32-normalize (License): Likewise.
5267         * modules/unistr/base (License): Likewise.
5268         * modules/unistr/u32-cpy (License): Likewise.
5269         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
5270         * modules/unistr/u32-to-u8 (License): Likewise.
5271         * modules/unistr/u32-uctomb (License): Likewise.
5272         * modules/unistr/u8-check (License): Likewise.
5273         * modules/unistr/u8-mblen (License): Likewise.
5274         * modules/unistr/u8-mbtouc (License): Likewise.
5275         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
5276         * modules/unistr/u8-mbtoucr (License): Likewise.
5277         * modules/unistr/u8-prev (License): Likewise.
5278         * modules/unistr/u8-strlen (License): Likewise.
5279         * modules/unistr/u8-to-u32 (License): Likewise.
5280         * modules/unistr/u8-uctomb (License): Likewise.
5281         * modules/unitypes (License): Likewise.
5282         Requested by Simon Josefsson.
5283
5284 2011-03-29  Simon Josefsson  <simon@josefsson.org>
5285
5286         lib-symbol-visibility: Add a notice.
5287         * modules/lib-symbol-visibility (Notice): New field.
5288
5289 2011-03-29  Bruno Haible  <bruno@clisp.org>
5290
5291         getaddrinfo: Doc fix.
5292         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
5293         section "fixed in Gnulib".
5294
5295 2011-03-28  Simon Josefsson  <simon@josefsson.org>
5296
5297         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
5298         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
5299
5300 2011-03-26  Bruno Haible  <bruno@clisp.org>
5301
5302         unictype/property-byname: Reduce the number of load-time relocations.
5303         * lib/unictype/pr_byname.c: Include <stdlib.h>.
5304         (UC_PROPERTY_INDEX_*): New enumeration values.
5305         (uc_property_byname): Convert an index from the lookup table to an
5306         uc_property_t.
5307         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
5308         values.
5309
5310 2011-03-26  Bruno Haible  <bruno@clisp.org>
5311
5312         unictype/property-byname: Allow omitted word separators and aliases.
5313         * lib/unictype/pr_byname.gperf: Add property names without word
5314         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
5315         for 'space'.
5316
5317 2011-03-26  Bruno Haible  <bruno@clisp.org>
5318
5319         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
5320         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
5321         also hyphens to space.
5322         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
5323         without spaces.
5324         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
5325
5326 2011-03-26  Bruno Haible  <bruno@clisp.org>
5327
5328         unictype/joiningtype-byname: Recognize long names as well.
5329         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
5330         a long name.
5331         * lib/unictype/joiningtype_byname.c: Include <string.h>,
5332         unictype/joiningtype_byname.h.
5333         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
5334         * lib/unictype/joiningtype_byname.gperf: New file.
5335         * modules/unictype/joiningtype-byname (Files): Add
5336         lib/unictype/joiningtype_byname.gperf.
5337         (Depends-on): Add gperf.
5338         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
5339         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
5340         long names.
5341
5342         Tests for module 'unictype/joiningtype-longname'.
5343         * modules/unictype/joiningtype-longname-tests: New file.
5344         * tests/unictype/test-joiningtype_longname.c: New file.
5345
5346         New module 'unictype/joiningtype-longname'.
5347         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
5348         * lib/unictype/joiningtype_longname.c: New file.
5349         * modules/unictype/joiningtype-longname: New file.
5350         * modules/unictype/joiningtype-all (Depends-on): Add
5351         unictype/joiningtype-longname.
5352
5353 2011-03-26  Bruno Haible  <bruno@clisp.org>
5354
5355         unictype/bidiclass-byname: Recognize long names as well.
5356         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
5357         name.
5358         * lib/unictype/bidi_byname.c: Include <string.h>,
5359         unictype/bidi_byname.h.
5360         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
5361         * lib/unictype/bidi_byname.gperf: New file.
5362         * modules/unictype/bidiclass-byname (Files): Add
5363         lib/unictype/bidi_byname.gperf.
5364         (Depends-on): Add gperf.
5365         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
5366         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
5367         long names.
5368
5369         Tests for module 'unictype/bidiclass-longname'.
5370         * modules/unictype/bidiclass-longname-tests: New file.
5371         * tests/unictype/test-bidi_longname.c: New file.
5372
5373         New module 'unictype/bidiclass-longname'.
5374         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
5375         * lib/unictype/bidi_longname.c: New file.
5376         * modules/unictype/bidiclass-longname: New file.
5377         * modules/unictype/bidiclass-all (Depends-on): Add
5378         unictype/bidiclass-longname.
5379
5380 2011-03-26  Bruno Haible  <bruno@clisp.org>
5381
5382         unictype/bidi*: Rename modules.
5383         * modules/unictype/bidiclass-all: Renamed from
5384         modules/unictype/bidicategory-all.
5385         * modules/unictype/bidiclass-name: Renamed from
5386         modules/unictype/bidiclass-name.
5387         (Description): Update.
5388         * modules/unictype/bidiclass-name-tests: Renamed from
5389         modules/unictype/bidicategory-name-tests.
5390         * modules/unictype/bidiclass-byname: Renamed from
5391         modules/unictype/bidicategory-byname.
5392         (Description): Update.
5393         * modules/unictype/bidiclass-byname-tests: Renamed from
5394         modules/unictype/bidicategory-byname-tests.
5395         * modules/unictype/bidiclass-of: Renamed from
5396         modules/unictype/bidicategory-of.
5397         (Description): Update.
5398         * modules/unictype/bidiclass-of-tests: Renamed from
5399         modules/unictype/bidicategory-of-tests.
5400         * modules/unictype/bidiclass-test: Renamed from
5401         modules/unictype/bidicategory-test.
5402         (Description): Update.
5403         * modules/unictype/bidiclass-test-tests: Renamed from
5404         modules/unictype/bidicategory-test-tests.
5405         * modules/unictype/bidicategory-all: New file, a simple redirection.
5406         * modules/unictype/bidicategory-name: Likewise.
5407         * modules/unictype/bidicategory-byname: Likewise.
5408         * modules/unictype/bidicategory-of: Likewise.
5409         * modules/unictype/bidicategory-test: Likewise.
5410         * modules/unictype/property-bidi-* (Dependencies): Update.
5411         * lib/unictype/bidi_*.c: Update comment.
5412
5413 2011-03-26  Bruno Haible  <bruno@clisp.org>
5414
5415         unictype/bidi*: Rename functions, part 2.
5416         * modules/unictype/bidicategory-name (configure.ac): Update required
5417         libunistring version.
5418         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
5419
5420 2011-03-25  Bruno Haible  <bruno@clisp.org>
5421
5422         New module 'unictype/combining-class-all'.
5423         * modules/unictype/combining-class-all: New file.
5424
5425         Tests for module 'unictype/combining-class-byname'.
5426         * modules/unictype/combining-class-byname-tests: New file.
5427         * tests/unictype/test-combiningclass_byname.c: New file.
5428
5429         New module 'unictype/combining-class-byname'.
5430         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
5431         * lib/unictype/combiningclass_byname.c: New file.
5432         * lib/unictype/combiningclass_byname.gperf: New file.
5433         * modules/unictype/combining-class-byname: New file.
5434
5435         Tests for module 'unictype/combining-class-longname'.
5436         * modules/unictype/combining-class-longname-tests: New file.
5437         * tests/unictype/test-combiningclass_longname.c: New file.
5438
5439         New module 'unictype/combining-class-longname'.
5440         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
5441         * lib/unictype/combiningclass_longname.c: New file.
5442         * modules/unictype/combining-class-longname: New file.
5443
5444         Tests for module 'unictype/combining-class-name'.
5445         * modules/unictype/combining-class-name-tests: New file.
5446         * tests/unictype/test-combiningclass_name.c: New file.
5447
5448         New module 'unictype/combining-class-name'.
5449         * lib/unictype.in.h (uc_combining_class_name): New declaration.
5450         * lib/unictype/combiningclass_name.c: New file.
5451         * modules/unictype/combining-class-name: New file.
5452
5453 2011-03-25  Bruno Haible  <bruno@clisp.org>
5454
5455         unictype/combining-class: Rename source files.
5456         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
5457         of unictype/combining.h.
5458         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
5459         Update.
5460         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
5461         * modules/unictype/combining-class (Description): Fix.
5462         (Files, Makefile.am): Update.
5463         * tests/unictype/test-combiningclass.c: Renamed from
5464         tests/unictype/test-combining.c.
5465         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
5466
5467 2011-03-25  Bruno Haible  <bruno@clisp.org>
5468
5469         unictype: Update list of canonical combining classes.
5470         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
5471
5472 2011-03-25  Bruno Haible  <bruno@clisp.org>
5473
5474         unictype/category-byname: Recognize long names as well.
5475         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
5476         a long name.
5477         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
5478         unictype/categ_byname.h.
5479         (UC_CATEGORY_INDEX_*): New enumeration values.
5480         (uc_general_category_byname): Use uc_general_category_lookup and
5481         convert from index to value.
5482         * lib/unictype/categ_byname.gperf: New file.
5483         * modules/unictype/category-byname (Files): Add
5484         lib/unictype/categ_byname.gperf.
5485         (Depends-on): Add gperf.
5486         (Makefile.am): Add rule for generating unictype/categ_byname.h.
5487         * tests/unictype/test-categ_byname.c (main): Test the recognition of
5488         long names.
5489
5490         Tests for module 'unictype/category-longname'.
5491         * modules/unictype/category-longname-tests: New file.
5492         * tests/unictype/test-categ_longname.c: New file.
5493
5494         New module 'unictype/category-longname'.
5495         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
5496         * lib/unictype/categ_longname.c: New file.
5497         * modules/unictype/category-longname: New file.
5498         * modules/unictype/category-all (Depends-on): Add it.
5499
5500 2011-03-25  Bruno Haible  <bruno@clisp.org>
5501
5502         Tests for module 'unictype/category-LC'.
5503         * modules/unictype/category-LC-tests: New file.
5504         * tests/unictype/test-categ_LC.c: New file, automatically generated.
5505
5506         New module 'unictype/category-LC'.
5507         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
5508         (UC_CATEGORY_LC): New declaration.
5509         (UC_CASED_LETTER): New macro.
5510         * lib/gen-uni-tables.c (is_category_LC): New function.
5511         (output_categories): Also handle category LC.
5512         (UC_CATEGORY_MASK_LC): New enumeration value.
5513         (general_category_byname): Also handle category LC.
5514         * lib/unictype/categ_LC.c: New file.
5515         * lib/unictype/categ_LC.h: New file, automatically generated.
5516         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
5517         category LC.
5518         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
5519         * modules/unictype/category-LC: New file.
5520         * modules/unictype/category-byname (Depends-on): Add
5521         unictype/category-LC.
5522         * modules/unictype/category-all (Depends-on): Likewise.
5523
5524 2011-03-25  Eric Blake  <eblake@redhat.com>
5525
5526         xmalloc: revert yesterday's regression
5527         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
5528         realloc's underlying behavior (allowing allocation of zero-size
5529         objects, especially if malloc-gnu is also in use).
5530
5531 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
5532
5533         maint.mk: add missing version to VC-tag
5534         * top/maint.mk: git tag was missing actual tag name; add it.
5535
5536         valgrind: do leak checking, and exit with code 1 on error (not 0)
5537         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
5538         to VALGRIND.
5539
5540 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
5541
5542         posix-modules: say what it does.
5543         * posix-modules: Add a line to the --help output saying what it does.
5544
5545 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
5546
5547         xmalloc: Do not leak if underlying realloc is C99 compatible.
5548         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
5549         This avoids a leak on C99-based systems.  See
5550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
5551
5552 2011-03-24  Eric Blake  <eblake@redhat.com>
5553
5554         realloc: document portability problem
5555         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
5556         passing 0 size to realloc.
5557
5558 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
5559
5560         doc: update users.txt
5561         * users.txt: Add cvsps, tmpwatch
5562
5563 2011-03-23  Matt Rice  <ratmice@gmail.com>
5564
5565         doc: update users.txt
5566         * users.txt: Add gdb.
5567
5568 2011-03-23  Jim Meyering  <meyering@redhat.com>
5569
5570         doc: update users.txt
5571         Looking through matches up to the following URL (there are still
5572         several more pages), I found several projects that use gnulib:
5573         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
5574         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
5575         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
5576
5577 2011-03-22  Bruno Haible  <bruno@clisp.org>
5578
5579         unictype/bidi*: Rename functions.
5580         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
5581         uc_bidi_class, uc_is_bidi_class): New declarations.
5582         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
5583         uc_bidi_category_byname.
5584         (uc_bidi_category_byname): New function.
5585         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
5586         u_bidi_category_name.
5587         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
5588         (uc_bidi_category_name): New function.
5589         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
5590         uc_bidi_category.
5591         (uc_bidi_category): New function.
5592         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
5593         uc_is_bidi_category. Invoke uc_bidi_class.
5594         (uc_is_bidi_category): New function.
5595         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
5596         instead of uc_bidi_category_byname.
5597         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
5598         instead of uc_bidi_category_name.
5599         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
5600         uc_bidi_category.
5601         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
5602         instead of uc_is_bidi_category.
5603
5604 2011-03-21  Bruno Haible  <bruno@clisp.org>
5605
5606         New module 'unictype/joininggroup-all'.
5607         * modules/unictype/joininggroup-all: New file.
5608
5609         Tests for module 'unictype/joininggroup-of'.
5610         * modules/unictype/joininggroup-of-tests: New file.
5611         * tests/unictype/test-joininggroup_of.c: New file.
5612         * tests/unictype/test-joininggroup_of.h: New file, automatically
5613         generated by gen-uni-tables.
5614
5615         New module 'unictype/joininggroup-of'.
5616         * modules/unictype/joininggroup-of: New file.
5617         * lib/unictype/joininggroup_of.c: New file.
5618         * lib/unictype/joininggroup_of.h: New file, automatically generated by
5619         gen-uni-tables.
5620
5621         Tests for module 'unictype/joininggroup-byname'.
5622         * modules/unictype/joininggroup-byname-tests: New file.
5623         * tests/unictype/test-joininggroup_byname.c: New file.
5624
5625         New module 'unictype/joininggroup-byname'.
5626         * modules/unictype/joininggroup-byname: New file.
5627         * lib/unictype/joininggroup_byname.c: New file.
5628         * lib/unictype/joininggroup_byname.gperf: New file.
5629
5630         Tests for module 'unictype/joininggroup-name'.
5631         * modules/unictype/joininggroup-name-tests: New file.
5632         * tests/unictype/test-joininggroup_name.c: New file.
5633
5634         New module 'unictype/joininggroup-name'.
5635         * modules/unictype/joininggroup-name: New file.
5636         * lib/unictype/joininggroup_name.c: New file.
5637         * lib/unictype/joininggroup_name.h: New file.
5638
5639         New module 'unictype/joiningtype-all'.
5640         * modules/unictype/joiningtype-all: New file.
5641
5642         Tests for module 'unictype/joiningtype-of'.
5643         * modules/unictype/joiningtype-of-tests: New file.
5644         * tests/unictype/test-joiningtype_of.c: New file.
5645         * tests/unictype/test-joiningtype_of.h: New file, automatically
5646         generated by gen-uni-tables.
5647
5648         New module 'unictype/joiningtype-of'.
5649         * modules/unictype/joiningtype-of: New file.
5650         * lib/unictype/joiningtype_of.c: New file.
5651         * lib/unictype/joiningtype_of.h: New file, automatically generated by
5652         gen-uni-tables.
5653
5654         Tests for module 'unictype/joiningtype-byname'.
5655         * modules/unictype/joiningtype-byname-tests: New file.
5656         * tests/unictype/test-joiningtype_byname.c: New file.
5657
5658         New module 'unictype/joiningtype-byname'.
5659         * modules/unictype/joiningtype-byname: New file.
5660         * lib/unictype/joiningtype_byname.c: New file.
5661
5662         Tests for module 'unictype/joiningtype-name'.
5663         * modules/unictype/joiningtype-name-tests: New file.
5664         * tests/unictype/test-joiningtype_name.c: New file.
5665
5666         New module 'unictype/joiningtype-name'.
5667         * modules/unictype/joiningtype-name: New file.
5668         * lib/unictype/joiningtype_name.c: New file.
5669
5670         unictype: Add support for Arabic shaping properties.
5671         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
5672         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
5673         declarations.
5674         (UC_JOINING_GROUP_*): New enumeration values.
5675         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
5676         declarations.
5677         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
5678         (unicode_joining_type): New variable.
5679         (UC_JOINING_GROUP_*): New enumeration values.
5680         (unicode_joining_group): New variable.
5681         (fill_arabicshaping, joining_type_as_c_identifier,
5682         output_joining_type_test, output_joining_type,
5683         joining_group_as_c_identifier, output_joining_group_test,
5684         output_joining_group): New functions.
5685         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
5686         fill_arabicshaping and output_joining_type_test, output_joining_type,
5687         output_joining_group_test, output_joining_group.
5688         Reported by Simon Josefsson.
5689
5690 2011-03-21  Jim Meyering  <meyering@redhat.com>
5691
5692         strftime: fix a bug in yesterday's change
5693         * lib/strftime.c (add): Accommodate width's initial value of -1.
5694         Otherwise, nstrftime would copy uninitialized data into
5695         the result buffer.
5696
5697 2011-03-21  Jim Meyering  <meyering@redhat.com>
5698
5699         tests: add strftime-tests module
5700         * tests/test-strftime.c: New file.
5701         * modules/strftime-tests: New module.
5702
5703 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5704
5705         strftime: don't assume a byte count fits in 'int'
5706         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
5707         found this problem by static analysis, using gcc -Wstrict-overflow
5708         (GCC 4.5.2, x86-64).  This reported an optimization that depended
5709         on an integer overflow having undefined behavior, but it turns out
5710         that the argument is a size, which might not fit in 'int' anyway,
5711
5712 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5713
5714         stdio: don't require ignore_value around fwrite
5715
5716         This patch works around libc bug 11959
5717         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
5718         Without this patch, applications must often write
5719         ignore_value (fwrite (...)) even though the ignore_value is
5720         not helpful here.  It's common to write many objects, using
5721         fwrite/printf/etc., and then use ferror to detect output error.
5722
5723         I considered making this patch optional, but decided against it,
5724         because libc is obviously being inconsistent here: there is no
5725         reason libc should insist that user code must inspect fwrite
5726         return's value without also insisting that it inspect printf's,
5727         putchar's, etc.  If user code wants to have a strict style where
5728         all these functions' values are checked (so that ferror need not
5729         be checked), we could add support for that style in a new gnulib
5730         module, but in the meantime it's better to be consistent and to
5731         support common usage.
5732
5733         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
5734         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
5735         that we are compiling in checking mode, and if not C++, and
5736         if not already wrapping fwrite for some other reason.
5737         (fwrite): #define to rpl_fwrite if the latter is defined.
5738
5739 2011-03-20  Bruno Haible  <bruno@clisp.org>
5740
5741         verror: Fix compilation error introduced on 2011-02-13.
5742         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
5743         instead of __attribute__.
5744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5745
5746 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
5747             Bruno Haible  <bruno@clisp.org>
5748
5749         socklen: do not depend on sys_socket
5750         While trying to modify Emacs to use gnulib's socklen module,
5751         I discovered a circular dependency: socklen depends on sys_socket
5752         and vice versa.  Emacs can use socklen, but it does not need
5753         sys_socket because it has its own substitute for sys/socket.h.
5754         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
5755         gl_TYPE_SOCKLEN_T.
5756         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
5757         gl_PREREQ_SYS_H_SOCKET.
5758         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
5759         gl_PREREQ_SYS_H_SOCKET.
5760         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
5761         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
5762         * modules/socklen (Depends-on): Do not depend on sys_socket.
5763         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
5764
5765 2011-03-20  Jim Meyering  <meyering@redhat.com>
5766
5767         maint.mk: sort file names *after* new transformation
5768         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
5769         prefix would have led to an unwarranted failure in GNU parted.
5770         Sort after that transformation.
5771
5772 2011-03-19  Jim Meyering  <meyering@redhat.com>
5773
5774         maint.mk: fix po-file syntax-check rule
5775         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
5776         Patch by Bruno Haible.
5777
5778 2011-03-19  Bruno Haible  <bruno@clisp.org>
5779
5780         socklen: Update comment.
5781         * m4/socklen.m4: Update comment about platforms.
5782
5783 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5784             Bruno Haible  <bruno@clisp.org>
5785
5786         inet_ntop, inet_pton: Simplify.
5787         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
5788         documented to provide socklen_t and we already depend on sys_socket.
5789         * modules/inet_pton (Depends-on): Likewise.
5790         * lib/arpa_inet.in.h: Adjust comment.
5791
5792 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
5793             Bruno Haible  <bruno@clisp.org>
5794
5795         netdb: Simplify.
5796         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
5797         documented to provide socklen_t and we already depend on sys_socket.
5798         * lib/netdb.in.h: Adjust comment.
5799
5800 2011-03-19  Bruno Haible  <bruno@clisp.org>
5801
5802         sys_socket, netdb: Document problem with socklen_t.
5803         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
5804         platforms.
5805         * doc/posix-headers/netdb.texi: Likewise.
5806
5807 2011-03-18  Eric Blake  <eblake@redhat.com>
5808
5809         maint.mk: let po check work in VPATH build
5810         * top/maint.mk (po_file): Allow cfg.mk override.
5811         (sc_po_check): Allow VPATH use.
5812         Reported by Jiri Denemark.
5813
5814 2011-03-16  Jim Meyering  <meyering@redhat.com>
5815
5816         maint.mk: allow fine-grained syntax-check exclusion via Make variables
5817         Before, you would have had to create one .x-sc_ file per rule in order
5818         to exempt offending files.  Now, you may instead use a Make variable --
5819         usually defined in cfg.mk -- whose name identifies the affected rule.
5820         * top/maint.mk (_sc_excl): Define.
5821         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
5822         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
5823
5824 2011-03-13  Bruno Haible  <bruno@clisp.org>
5825
5826         ignore-value tests: Avoid warnings.
5827         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
5828         empty for gcc < 3.4.
5829
5830 2011-03-13  Bruno Haible  <bruno@clisp.org>
5831
5832         passfd: Fix link error on Solaris.
5833         * modules/passfd (Description): Correct.
5834         (Depends-on): Add socketlib.
5835         (Link): New section.
5836         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
5837
5838 2011-03-13  Bruno Haible  <bruno@clisp.org>
5839
5840         passfd: Fix link error on AIX 5.2.
5841         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
5842
5843 2011-03-13  Bruno Haible  <bruno@clisp.org>
5844
5845         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
5846         * lib/sys_socket.in.h: Include <stddef.h>.
5847         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
5848         CMSG_FIRSTHDR. Remove unused variable.
5849
5850 2011-03-13  Bruno Haible  <bruno@clisp.org>
5851
5852         passfd: Fix compilation error on OpenBSD.
5853         * lib/passfd.c: Include <sys/uio.h>.
5854
5855 2011-03-13  Bruno Haible  <bruno@clisp.org>
5856
5857         passfd test: Fix warnings.
5858         * tests/test-passfd.c: Include <sys/wait.h>.
5859         (main): Fix typo.
5860
5861 2011-03-13  Bruno Haible  <bruno@clisp.org>
5862
5863         passfd module, part 4, tweaks.
5864         * tests/test-passfd.c: Reorder includes.
5865         (main): Fix perror and printf calls.
5866
5867 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5868
5869         passfd module, part 4.
5870         * modules/passfd-tests: New file.
5871         * tests/test-passfd.c: New file.
5872
5873 2011-03-13  Jim Meyering  <meyering@redhat.com>
5874
5875         Makefile: rely on GNU make; derive syntax-check rule names
5876         Rather than requiring that each sc_ rule be listed as a dependent
5877         of "check", use features of GNU make to derive the list.
5878         * Makefile (syntax-check-rules): Define.
5879         (check): Depend on the new variable, not the hard-coded list.
5880
5881 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
5882             Bruno Haible  <bruno@clisp.org>
5883
5884         passfd module, part 3.
5885         * lib/passfd.h (recvfd): Add a flags argument.
5886         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
5887         (recvfd): Add a flags argument.
5888         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
5889         exists.
5890         * modules/passfd (Depends-on): Add cloexec.
5891         Suggested by Eric Blake.
5892
5893 2011-03-13  Bruno Haible  <bruno@clisp.org>
5894
5895         passfd module, part 2, tweaks.
5896         * modules/passfd (Files): Reorder.
5897         (Depends-on): Remove errno.
5898         (Include): Remove <sys/socket.h>, <sys/un.h>.
5899         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
5900         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
5901         specification header. Include <sys/socket.h> always. Don't include
5902         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
5903         (sendfd): Clarify that it sets errno when it fails.
5904         (recvfd): Fix specification.
5905
5906 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5907
5908         passfd module, part 2.
5909         * modules/passfd: New file.
5910         * lib/passfd.h: New file.
5911         * lib/passfd.c: New file.
5912
5913 2011-03-12  Bruno Haible  <bruno@clisp.org>
5914
5915         wcswidth, mbswidth: Avoid integer overflow.
5916         * lib/wcswidth.c: Include <limits.h>.
5917         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
5918         * lib/mbswidth.c: Include <limits.h>.
5919         (mbsnwidth): Avoid 'int' overflow.
5920         Reported by Jim Meyering.
5921
5922 2011-03-12  Bruno Haible  <bruno@clisp.org>
5923
5924         futimens, utimensat: Avoid endless recursion on Solaris 10.
5925         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
5926         Solaris.
5927         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
5928         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
5929
5930 2011-03-11  Jim Meyering  <meyering@redhat.com>
5931
5932         maint.mk: relax a regexp to accommodate other formatting styles
5933         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
5934         between "ngettext" and the following "(".
5935
5936 2011-03-11  Pádraig Brady <P@draigBrady.com>
5937
5938         maint.mk: suppress a false positive warning
5939         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
5940         diagnostics are marked with ngettext.
5941
5942 2011-03-10  Eric Blake  <eblake@redhat.com>
5943
5944         wchar: add explicit dependencies, for Tru64
5945         * modules/mbmemcasecoll (Depends-on): Add wchar.
5946         * modules/mbtowc (Depends-on): Likewise.
5947         * modules/vasnprintf (Depends-on): Likewise.
5948         * modules/unistdio/u-printf-args (Depends-on): Likewise.
5949         * modules/wctomb (Depends-on): Likewise.
5950         Reported by Peter O'Gorman.
5951
5952 2011-03-08  Bruno Haible  <bruno@clisp.org>
5953
5954         passfd module, part 1, tweaks.
5955         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
5956         Improve indentation. Improve AC_MSG_CHECKING messages.
5957         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
5958         gl_SOCKET_FAMILIES.
5959
5960 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
5961
5962         passfd module, part 1.
5963         * m4/afunix.m4: New file.
5964         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
5965         sockets.
5966
5967 2011-03-08  Bruno Haible  <bruno@clisp.org>
5968
5969         regex-quote: New API.
5970         * lib/regex-quote.h: Include <stdbool.h>.
5971         (struct regex_quote_spec): New type.
5972         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5973         New declarations.
5974         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5975         'const struct regex_quote_spec *' argument.
5976         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
5977         (pcre_special): New constant.
5978         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
5979         New functions.
5980         (regex_quote_length, regex_quote_copy, regex_quote): Take a
5981         'const struct regex_quote_spec *' argument.
5982         * modules/regex-quote (Depends-on): Add stdbool.
5983         * tests/test-regex-quote.c (check): Update for new API. Add test for
5984         anchored results.
5985         * NEWS: Mention the API change.
5986         Reported by Reuben Thomas and Eric Blake.
5987
5988 2011-03-06  Bruno Haible  <bruno@clisp.org>
5989
5990         regex-quote: Fix creation of POSIX extended regular expressions.
5991         * lib/regex-quote.c (ere_special): Add grouping and alternation
5992         operators.
5993
5994 2011-03-05  Bruno Haible  <bruno@clisp.org>
5995
5996         doc: Improve doc regarding autopoint vs. gnulib.
5997         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
5998         disable autopoint while running autoreconf.
5999         Suggested by Ralf Wildenhues.
6000
6001 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6002
6003         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
6004         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
6005
6006 2011-03-03  Bruce Korb  <bkorb@gnu.org>
6007
6008         parse-duration: remove xalloc.h dependency
6009         * lib/parse-duration.c (parse_period): handle NULL return from
6010         strdup instead of calling xstrdup().
6011         * modules/parse-duration: remove "xalloc" dependency
6012
6013 2011-03-03  Matthew Booth  <mbooth@redhat.com>
6014
6015         bootstrap: honor m4_base when running aclocal
6016         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
6017
6018 2011-03-02  Jim Meyering  <meyering@redhat.com>
6019
6020         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
6021         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
6022         on request from Matt Booth.
6023
6024 2011-03-01  Eric Blake  <eblake@redhat.com>
6025
6026         test-link: work on Hurd
6027         * tests/test-link.h (test_link): Hurd rejects linking directories
6028         with EISDIR instead of the POSIX-mandated EPERM.
6029
6030 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
6031
6032         stdio: simplify by moving files to printf-posix, sigpipe
6033         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
6034         since this symbol is needed only if printf is replaced.
6035         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
6036         Require gl_ASM_SYMBOL_PREFIX.
6037         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
6038         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
6039         (Depends-on): Add 'raise'.
6040         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
6041         * modules/stdio (Files): Remove lib/stdio-write.c,
6042         m4/asm-underscore.m4.
6043         (Depends-on): Remove 'raise'.
6044
6045         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
6046         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
6047         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
6048         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
6049
6050 2011-02-28  Bruno Haible  <bruno@clisp.org>
6051
6052         localcharset: Assume ANSI C behaviour of free().
6053         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
6054         calling free().
6055         Suggested by Simon Josefsson <simon@josefsson.org>.
6056
6057 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
6058             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
6059             Bruno Haible  <bruno@clisp.org>  (tiny change)
6060
6061         On Cygwin, use /proc file system instead of win32 API.
6062         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
6063         Win32 file names.
6064         (DllMain): Simplify by removing Cygwin specific code.
6065         (find_shared_library_fullname): Use Linux specific implementation also
6066         for Cygwin.
6067         (get_shared_library_fullname): Update accordingly.
6068         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
6069         Win32 file names.
6070         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
6071         Cygwin specific code.
6072
6073 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
6074             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
6075
6076         Fix OpenMP flag detection for various Fortran compilers.
6077         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
6078         OpenMP-conditional compilation construct, to force compile
6079         failure with missing OpenMP flag.
6080         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
6081
6082 2011-02-25  Eric Blake  <eblake@redhat.com>
6083
6084         strstr: expand test coverage
6085         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
6086         compilation.
6087         * tests/test-memmem.c (main): Duplicate tests.
6088         * tests/test-strcasestr.c (main): Likewise.
6089         * tests/test-c-strcasestr.c (main): Likewise.
6090
6091 2011-02-25  Jim Meyering  <meyering@redhat.com>
6092
6093         maint.mk: detect missing-NL-at-EOF, too
6094         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
6095         it also detects when a file lacks a newline at EOF.
6096         (require_exactly_one_NL_at_EOF_): Renamed from
6097         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
6098         since people may well have .x-sc_... file names tied to the
6099         existing name.  Suggested by Eric Blake.
6100
6101 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
6102
6103         dirname: move m4/dos.m4 functionality into lib/dosname.h
6104
6105         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
6106         extracts symbols from it, puts them into config.h; but it's much
6107         easier to use the symbols directly.  filename.h already does this,
6108         but it disagrees with dos.m4 in some respects.  This patch
6109         introduces a different include file dosname.h that packages up
6110         dos.m4, and then later we can work on merging filename.h and
6111         dosname.h.  Applications that need only the easy-to-configure
6112         symbols should consider including dosname.h rather than dirname.h.
6113         * NEWS: Mention incompatible changes.
6114         * m4/dos.m4: Remove.
6115         * lib/dosname.h, modules/dosname: New files.
6116         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
6117         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
6118         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
6119         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
6120         Include dosname.h, not dirname.h.
6121         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
6122         Include dosname.h, for definitions of symbols like ISSLASH
6123         that used to be in config.h.
6124         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
6125         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6126         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6127         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6128         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
6129         * modules/rmdir (Files): Likewise.
6130         * modules/stat (Files): Likewise.
6131         * modules/unlink (Files): Likewise.
6132         * modules/dirname-lgpl (Depends-on): Add dosname.
6133         * modules/lstat (Depends-on): Likewise.
6134         * modules/openat (Depends-on): Likewise.
6135         * modules/rmdir (Depends-on): Likewise.
6136         * modules/savewd (Depends-on): Likewise.
6137         * modules/stat (Depends-on): Likewise.
6138         * modules/unlink (Depends-on): Likewise.
6139         * modules/openat (Depends-on): Remove dirname-lgpl.
6140         * modules/savewd (Depends-on): Likewise.
6141         * tests/test-dirname.c: Do not use removed symbols like
6142         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
6143         the remaining symbols, e.g., ISSLASH ('\\').
6144
6145 2011-02-25  Eric Blake  <eblake@redhat.com>
6146
6147         strstr: revert patches that introduced bug and pessimization
6148         * lib/str-two-way.h: Add another reference.
6149         (two_way_short_needle, two_way_long_needle): Revert changes from
6150         2011-02-24; they pessimize search speed.
6151         (critical_factorization): Partially revert changes from
6152         2010-06-22; they violate the requirement that the left half of the
6153         needle be smaller than the period of the needle.
6154
6155 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6156
6157         filenamecat: remove unnecessary dependency on dirname-lgpl
6158         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
6159         is no direct dependency, just an indirect one via filenamecat-lgpl.
6160
6161         remove: remove unnecessary use of m4/dos.m4
6162         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
6163         * modules/remove (FILES): Remove m4/dos.m4.
6164
6165         * lib/openat-proc.c: Don't include dirname.h; not needed.
6166
6167         backupfile: remove unnecessary use of m4/dos.m4
6168         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
6169         of its symbols are used by the backupfile code.  backupfile.c does
6170         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
6171         for the rare case of programs that want all their backup file
6172         names to live within 8+3 limits, and dos.m4 doesn't address that.
6173         * modules/backupfile (Files): Remove m4/dos.m4.
6174
6175 2011-02-24  Jim Meyering  <meyering@redhat.com>
6176
6177         strstr: fix a bug whereby strstr would mistakenly return NULL
6178         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
6179         in period calculation.
6180         (two_way_long_needle): Likewise.
6181         The original problem was reported by Mike Stump in
6182         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
6183         Ralf Wildenhues provided the short needle and haystack.
6184         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
6185         Add a more involved test to trigger the bug in two_way_long_needle.
6186
6187 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
6188
6189         gnulib-tool: remove use of bold display in help screen
6190         * gnulib-tool (func_usage): Do not use bold display anymore in the
6191         help screen.  That was just meant to be a temporary emphasis for a
6192         backward-incompatible change.
6193
6194 2011-02-23  Bruno Haible  <bruno@clisp.org>
6195
6196         Fix misindentation of preprocessor directives.
6197         * lib/argp-namefrob.h: Reindent preprocessor directives.
6198         * lib/getopt_int.h (struct _getopt_data): Likewise.
6199         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
6200         * lib/vasnprintf.c (decode_long_double): Likewise.
6201         * tests/test-argmatch.c: Insert blank lines, for clarity.
6202         * tests/test-exclude.c: Likewise.
6203
6204 2011-02-22  Bruno Haible  <bruno@clisp.org>
6205
6206         ioctl: Fix for MacOS X in 64-bit mode.
6207         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
6208         value.
6209         Suggested by Eric Blake.
6210         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
6211
6212 2011-02-22  Jim Meyering  <meyering@redhat.com>
6213
6214         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
6215         * Makefile (sc_cpp_indent_check): Don't limit the check to files
6216         in lib/.
6217
6218 2011-02-22  Eric Blake  <eblake@redhat.com>
6219
6220         maint: avoid any CDPATH issue
6221         * Makefile (sc_cpp_indent_check): Anchor cd argument.
6222
6223         maint: adjust cpp indentation for my modules, as well
6224         * Makefile (sc_cpp_indent_check): Add my name.
6225         * lib/fbufmode.c: Filter through cppi.
6226         * lib/fpurge.c: Likewise.
6227         * lib/freadable.c: Likewise.
6228         * lib/freading.c: Likewise.
6229         * lib/fwritable.c: Likewise.
6230         * lib/fwriting.c: Likewise.
6231         * lib/sigaction.c: Likewise.
6232
6233 2011-02-22  Jim Meyering  <meyering@redhat.com>
6234
6235         maint: adjust cpp indentation to reflect nesting depth
6236         I.e., in a block of code that begins with an unnested "#if",
6237         put one space between the "#" in column 1 and following token.
6238         For example,
6239         -#include <sys/vfs.h>
6240         +# include <sys/vfs.h>
6241         Do this only in .c files that are part of a module I maintain.
6242         * lib/linkat.c: Filter through cppi.
6243         * lib/nanosleep.c: Likewise.
6244         * lib/openat.c: Likewise.
6245         * lib/openat-die.c: Likewise.
6246         * lib/dup3.c: Likewise.
6247         * lib/fchownat.c: Likewise.
6248         * lib/flock.c: Likewise.
6249         * lib/fsync.c: Likewise.
6250         * lib/fts.c: Likewise.
6251         * lib/getpass.c: Likewise.
6252         * lib/gettimeofday.c: Likewise.
6253         * lib/userspec.c: Likewise.
6254         * Makefile (sc_cpp_indent_check): New rule, to check this.
6255
6256 2011-02-22  Bruno Haible  <bruno@clisp.org>
6257
6258         New module 'wctomb'.
6259         * lib/stdlib.in.h (wctomb): New declaration.
6260         * lib/wctomb.c: New file.
6261         * lib/wctomb-impl.h: New file.
6262         * m4/wctomb.m4: New file.
6263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
6264         REPLACE_WCTOMB.
6265         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
6266         REPLACE_WCTOMB.
6267         * modules/wctomb: New file.
6268         * tests/test-stdlib-c++.cc: Test signature of wctomb.
6269         * doc/posix-functions/wctomb.texi: Mention the new module.
6270         * modules/wctob (Depends-on): Add wctomb.
6271
6272 2011-02-22  Bruno Haible  <bruno@clisp.org>
6273
6274         New module 'mbtowc'.
6275         * lib/stdlib.in.h (mbtowc): New declaration.
6276         * lib/mbtowc.c: New file.
6277         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
6278         * m4/mbtowc.m4: New file.
6279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
6280         REPLACE_MBTOWC.
6281         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
6282         REPLACE_MBTOWC.
6283         * modules/mbtowc: New file.
6284         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
6285         * doc/posix-functions/mbtowc.texi: Mention the new module.
6286         * modules/btowc (Depends-on): Add mbtowc.
6287
6288 2011-02-22  Bruno Haible  <bruno@clisp.org>
6289
6290         wcrtomb: Add more tests for native Windows platforms.
6291         * tests/test-wcrtomb-w32-1.sh: New file.
6292         * tests/test-wcrtomb-w32-2.sh: New file.
6293         * tests/test-wcrtomb-w32-3.sh: New file.
6294         * tests/test-wcrtomb-w32-4.sh: New file.
6295         * tests/test-wcrtomb-w32-5.sh: New file.
6296         * tests/test-wcrtomb-w32.c: New file.
6297         * modules/wcrtomb-tests (Files): Add them.
6298         (Makefile.am): Arrange to run these tests.
6299         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
6300         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
6301
6302 2011-02-20  Bruno Haible  <bruno@clisp.org>
6303
6304         wcrtomb: Enhance test.
6305         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
6306
6307 2011-02-20  Bruno Haible  <bruno@clisp.org>
6308
6309         mbrtowc: Tiny optimization.
6310         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
6311
6312 2011-02-20  Jim Meyering  <meyering@redhat.com>
6313
6314         test-exclude.c: remove unmatched #endif
6315         * tests/test-exclude.c: Remove stray #endif, left over from
6316         the change of a week ago.
6317
6318 2011-02-19  Jim Meyering  <meyering@redhat.com>
6319
6320         git-version-gen: skip "-dirty" check when appropriate
6321         * build-aux/git-version-gen: Don't run any git commands when the
6322         version string comes from .tarball-version.  Prior to this, we
6323         would run git update-index --refresh even from a just-unpacked
6324         tarball directory, and that could affect a .git/ directory in a
6325         parent of the build directory.  Reported by Mike Frysinger.
6326
6327 2011-02-19  Bruno Haible  <bruno@clisp.org>
6328
6329         unictype/property-byname: Reduce the size of the 'data' segment.
6330         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
6331
6332 2011-02-19  Bruno Haible  <bruno@clisp.org>
6333
6334         unictype/scripts: Reduce the size of the 'data' segment.
6335         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
6336         '%pic'.
6337         * lib/unictype/scripts_byname.gperf: Regenerated.
6338
6339 2011-02-19  Bruno Haible  <bruno@clisp.org>
6340
6341         stdint: Update documentation.
6342         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
6343
6344 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
6345
6346         stdint: omit redundant check for wchar.h
6347         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
6348         always tests whether wchar.h exists, so remove the now-redundant test.
6349
6350 2011-02-18  Bruno Haible  <bruno@clisp.org>
6351
6352         stdint: Cut dependency to module 'wchar'.
6353         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
6354         include the necessary prerequisites.
6355         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
6356         * modules/stdint (Depends-on): Remove wchar.
6357         (Makefile.am): Substitute HAVE_WCHAR_H.
6358         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
6359
6360 2011-02-18  Eric Blake  <eblake@redhat.com>
6361
6362         longlong: skip, rather than fail, on cross-compilation
6363         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
6364         when cross-compiling; regression from 2011-02-16.
6365
6366 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6367
6368         * NEWS: Mention 2011-02-08 change to stdlib.
6369
6370 2011-02-17  Bruno Haible  <bruno@clisp.org>
6371
6372         getloadavg: Add comments about platforms.
6373         * m4/getloadavg.m4: Add comment.
6374         * lib/getloadavg.c: Likewise.
6375
6376 2011-02-17  Bruno Haible  <bruno@clisp.org>
6377
6378         getloadavg: Fix link error on Solaris 2.6.
6379         * modules/getloadavg (Link): New section.
6380         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
6381         linking test-getloadavg.
6382         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
6383         getloadavg.
6384
6385 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
6386
6387         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
6388         It was 'int', but this doesn't match the IRIX 6.5 manual.
6389         Suggested by Bruno Haible in
6390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
6391
6392 2011-02-17  Bruno Haible  <bruno@clisp.org>
6393
6394         havelib: Fix comments.
6395         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
6396         change.
6397
6398 2011-02-17  Bruno Haible  <bruno@clisp.org>
6399
6400         havelib: Update config.rpath.
6401         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
6402
6403 2011-02-17  Bruno Haible  <bruno@clisp.org>
6404
6405         getloadavg test: Add some plausibility checks.
6406         * tests/test-getloadavg.c (check_avg): Print a warning when the value
6407         is improbable.
6408
6409 2011-02-16  Eric Blake  <eblake@redhat.com>
6410
6411         maintainer-makefile: make syntax-check a no-op from tarballs
6412         * top/maint.mk (no-vc-detected): New rule.
6413         (local-checks-available): Use it to avoid hanging if someone tries
6414         'make syntax-check' from a tarball.  Also append to any non-syntax
6415         checks already defined in cfg.mk.
6416
6417 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
6418
6419         longlong: tune, particularly for common case of c99
6420
6421         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
6422         or running anything if c99, or if unsigned long long int does not
6423         work.  In either case, we know the answer without further tests.
6424         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
6425         it at most once, and use its results for both long long int and
6426         unsigned long long int.  This is more likely to be efficient in
6427         the common case where the program wants to check for both long
6428         long int and unsigned long long int.
6429         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
6430         since the answer is already known.
6431
6432 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
6433
6434         getloadavg: set errno
6435         * lib/getloadavg.c: Set errno when returning -1.  If no other
6436         error number looks appropriate, set it to ENOSYS if the getloadavg
6437         looks like it can't possibly ever work, ENOTSUP otherwise.
6438         Suggested by Bruno Haible in
6439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
6440
6441         getloadavg: trim unused parts and speed up 'configure'
6442         * NEWS: Document this.
6443         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
6444         always compiled if getloadavg is absent.
6445         Move test code to ...
6446         * tests/test-getloadavg.c: New file, containing previous
6447         contents of test from lib/getloadavg.c.  It also contains
6448         suggestions by Bruno Haible in
6449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
6450         * modules/getloadavg-tests: New file.
6451         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
6452         Do tests in the same order as they're needed for getloadavg.c.
6453         Omit setgid-related tests that generate symbols KMEM_GROUP,
6454         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
6455         Do only the tests that are needed to see whether the system has
6456         getloadavg, moving the other tests into ...
6457         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
6458         NLIST_NAME_UNION; nobody should be using it.  Do not define
6459         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
6460         relevant, as the user of this module shouldn't care how getloadavg
6461         is implemented.
6462
6463         getloadavg: omit unused var
6464         * lib/getloadavg.c (getloadavg): Omit unused local variable.
6465
6466 2011-02-15  Jim Meyering  <meyering@redhat.com>
6467
6468         doc: update users.txt
6469         * users.txt: Update iwhd's URL.
6470
6471 2011-02-13  Bruno Haible  <bruno@clisp.org>
6472
6473         Consistent macro naming for macros that use GCC __attribute__.
6474         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
6475         _ATTRIBUTE_NONNULL_.
6476         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
6477         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
6478         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
6479         ATTRIBUTE_DEPRECATED.
6480         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
6481         ATTRIBUTE_NORETURN.
6482         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6483         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6484         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6485         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
6486         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
6487         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
6488         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
6489         ATTRIBUTE_SENTINEL.
6490         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
6491         ATTRIBUTE_RETURN_CHECK.
6492         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
6493         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
6494         ATTRIBUTE_NORETURN.
6495         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
6496         Reported by Paul Eggert.
6497
6498 2011-02-13  Bruno Haible  <bruno@clisp.org>
6499
6500         Don't interfere with a program's definition of __attribute__.
6501         * lib/argp.h (__attribute__): Remove definition.
6502         (_GL_ATTRIBUTE_FORMAT): New macro.
6503         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
6504         * lib/argp-fmtstream.h (__attribute__): Remove definition.
6505         (_GL_ATTRIBUTE_FORMAT): New macro.
6506         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
6507         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
6508         GCC 3 or newer.
6509         * lib/error.h (__attribute__): Remove definition.
6510         (_GL_ATTRIBUTE_FORMAT): New macro.
6511         (error, error_at_line): Use it.
6512         * lib/hash.h (__attribute__): Remove definition.
6513         (ATTRIBUTE_WUR): Update definition. Define always.
6514         * lib/openat.h (__attribute__): Remove definition.
6515         (ATTRIBUTE_NORETURN): Update definition. Define always.
6516         * lib/sigpipe-die.h (__attribute__): Remove definition.
6517         (ATTRIBUTE_NORETURN): Update definition. Define always.
6518         * lib/vasnprintf.h (__attribute__): Remove definition.
6519         (_GL_ATTRIBUTE_FORMAT): New macro.
6520         (asnprintf, vasnprintf): Use it.
6521         * lib/xalloc.h (__attribute__): Remove definition.
6522         (ATTRIBUTE_NORETURN): Update definition. Define always.
6523         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
6524         * lib/xmemdup0.h (__attribute__): Remove definition.
6525         (ATTRIBUTE_NORETURN): Update definition. Define always.
6526         * lib/xprintf.h (__attribute__): Remove definition.
6527         (_GL_ATTRIBUTE_FORMAT): New macro.
6528         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
6529         * lib/xstrtol.h (__attribute__): Remove definition.
6530         (ATTRIBUTE_NORETURN): Update definition. Define always.
6531         * lib/xvasprintf.h (__attribute__): Remove definition.
6532         (_GL_ATTRIBUTE_FORMAT): New macro.
6533         (xasprintf, xvasprintf): Use it.
6534         * tests/test-argmatch.c (__attribute__): Remove definition.
6535         (ATTRIBUTE_NORETURN): Update definition. Define always.
6536         * tests/test-exclude.c (__attribute__): Remove definition.
6537         (ATTRIBUTE_NORETURN): Update definition. Define always.
6538         Reported by Paul Eggert.
6539
6540 2011-02-13  Bruno Haible  <bruno@clisp.org>
6541
6542         mbrtowc: Add more tests for native Windows platforms.
6543         * tests/test-mbrtowc-w32-1.sh: New file.
6544         * tests/test-mbrtowc-w32-2.sh: New file.
6545         * tests/test-mbrtowc-w32-3.sh: New file.
6546         * tests/test-mbrtowc-w32-4.sh: New file.
6547         * tests/test-mbrtowc-w32-5.sh: New file.
6548         * tests/test-mbrtowc-w32.c: New file.
6549         * modules/mbrtowc-tests (Files): Add them.
6550         (Makefile.am): Arrange to run these tests.
6551         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
6552         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
6553
6554 2011-02-13  Bruno Haible  <bruno@clisp.org>
6555
6556         mbrtowc: Work around native Windows bug.
6557         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
6558         guess when no suitable locale for testing was found.
6559         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
6560
6561 2011-02-13  Bruno Haible  <bruno@clisp.org>
6562
6563         mbsinit: Work around mingw bug.
6564         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
6565         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
6566         Windows.
6567         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
6568
6569 2011-02-13  Bruno Haible  <bruno@clisp.org>
6570
6571         mbsinit: Don't crash for a NULL argument.
6572         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
6573         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
6574
6575 2011-02-13  Bruno Haible  <bruno@clisp.org>
6576
6577         Don't interfere with a program's definition of __attribute__.
6578         * lib/stdio.in.h (__attribute__): Remove definition.
6579         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
6580         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
6581         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
6582         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
6583         * lib/string.in.h (__attribute__): Remove definition.
6584         Reported by Paul Eggert.
6585
6586 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6587
6588         stdlib: don't get in the way of non-GCC __attribute__
6589         See thread starting at
6590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
6591         Revert previous stdlib change, installing the following instead:
6592         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
6593         to get in the way of a non-GCC compiler that supports __attribute__.
6594         (_GL_ATTRIBUTE_RETURN): New macro.
6595         (_Exit): Use it instead of __attribute__.
6596
6597 2011-02-12  Bruno Haible  <bruno@clisp.org>
6598
6599         quotearg test: Avoid test failure on mingw.
6600         * tests/test-quotearg.sh: Convert the locale identifier from native
6601         Windows syntax to Unix syntax.
6602
6603 2011-02-12  Bruno Haible  <bruno@clisp.org>
6604
6605         setlocale: Prefer gnulib's override over libintl's override.
6606         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
6607         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
6608         GNULIB_defined_setlocale is set.
6609
6610 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
6611
6612         stdlib: support non-GCC __attribute__
6613
6614         Fix a serious and tricky problem encountered when attempting to
6615         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
6616         5.5, but it crashed due to memory corruption on Solaris 10 with
6617         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
6618         bits that are otherwise zero.  This tagging is optional inside
6619         Emacs but is preferred and is used when __attribute__ ((__aligned
6620         (8))) works, as it does with both recent-enough GCC and with Sun C
6621         5.11.  However, Sun C 5.11 is not GCC and does not #define
6622         __GNUC__ and __GNUC_MINOR__.
6623
6624         When I added the getloadavg module to Emacs, it brought in
6625         stdlib.in.h, which contained this fragment:
6626
6627            #ifndef __attribute__
6628            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
6629            #  define __attribute__(Spec)   /* empty */
6630            # endif
6631            #endif
6632
6633         When files that include <stdlib.h> were compiled with Sun C 5.11,
6634         the above code disabled __attribute__ ((__aligned (8))), which
6635         caused variables to not be properly aligned, which eventually led
6636         to the pointer corruption mentioned above.  (This was a bit hard
6637         to diagnose, unfortunately.)
6638
6639         Several "#define __attribute__(X) /* empty */" code snippets need
6640         to be eradicated from Gnulib to work with non-GCC compilers that
6641         support __attribute__.  The Autoconf way to do this is to test for
6642         each kind of attribute that we want support for, and selectively
6643         enable that in source code.
6644
6645         Fix this problem just for stdlib.h, by adding a test for the
6646         __noreturn__ attribute, and change stdlib.in.h to use that test
6647         when needed.  This technique can be easily generalized to the
6648         other *.in.h files and attributes, and a similar technique can be
6649         used for *.h and *.c files.  This patch is enough to solve the
6650         problem for Emacs + getloadavg, and I thought I'd publish it for
6651         feedback before undertaking further, similar fixes in other
6652         modules.
6653
6654         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
6655         because it's not needed for stdlib.h.  It merely substitutes the
6656         value directly into stdlib.h.  We may well need to #define it, or
6657         similar symbols, for other modules, but it's nice to also have an
6658         option to not #define it for applications like Emacs that do not
6659         need it.
6660
6661         * lib/stdlib.in.h (__attribute__): Do not #define.
6662         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
6663         be defined only if the _Exit module is also used.
6664         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
6665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
6666         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
6667         platforms.
6668         * modules/_Exit (Files): Add m4/attribute.m4.
6669         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
6670         * m4/attribute.m4: New file.
6671
6672 2011-02-12  Bruno Haible  <bruno@clisp.org>
6673
6674         wcsrtombs: Work around bug on native Windows.
6675         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
6676         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
6677         instead of len.
6678         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
6679
6680 2011-02-12  Bruno Haible  <bruno@clisp.org>
6681
6682         mbsrtowcs: Work around bug on native Windows.
6683         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
6684         against mingw bug.
6685         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
6686
6687 2011-02-12  Bruno Haible  <bruno@clisp.org>
6688
6689         Avoid setlocale bugs in tests.
6690         * modules/btowc (Dependencies): Add setlocale.
6691         * modules/c-strcase (Dependencies): Likewise.
6692         * modules/mbmemcasecmp (Dependencies): Likewise.
6693         * modules/mbmemcasecoll (Dependencies): Likewise.
6694         * modules/mbrtowc (Dependencies): Likewise.
6695         * modules/mbscasecmp (Dependencies): Likewise.
6696         * modules/mbscasestr (Dependencies): Likewise.
6697         * modules/mbschr (Dependencies): Likewise.
6698         * modules/mbscspn (Dependencies): Likewise.
6699         * modules/mbsinit (Dependencies): Likewise.
6700         * modules/mbsncasecmp (Dependencies): Likewise.
6701         * modules/mbsnrtowcs (Dependencies): Likewise.
6702         * modules/mbspbrk (Dependencies): Likewise.
6703         * modules/mbspcasecmp (Dependencies): Likewise.
6704         * modules/mbsrchr (Dependencies): Likewise.
6705         * modules/mbsrtowcs (Dependencies): Likewise.
6706         * modules/mbsspn (Dependencies): Likewise.
6707         * modules/mbsstr (Dependencies): Likewise.
6708         * modules/nl_langinfo (Dependencies): Likewise.
6709         * modules/quotearg (Dependencies): Likewise.
6710         * modules/unicase/locale-language (Dependencies): Likewise.
6711         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
6712         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
6713         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
6714         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
6715         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
6716         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
6717         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
6718         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
6719         * modules/vasnprintf-posix (Dependencies): Likewise.
6720         * modules/wcrtomb (Dependencies): Likewise.
6721         * modules/wcsnrtombs (Dependencies): Likewise.
6722         * modules/wcsrtombs (Dependencies): Likewise.
6723
6724 2011-02-12  Bruno Haible  <bruno@clisp.org>
6725
6726         setlocale: Workaround native Windows bug.
6727         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
6728         succeeds but sets LC_CTYPE to "C", report a failure.
6729         * tests/test-setlocale2.sh: New file.
6730         * tests/test-setlocale2.c: New file.
6731         * modules/setlocale-tests (Files): Add the new files.
6732         (Makefile.am): Enable test-setlocale2.sh test.
6733         * doc/posix-functions/setlocale.texi: Mention workaround.
6734
6735 2011-02-11  Bruno Haible  <bruno@clisp.org>
6736
6737         Tests for module 'setlocale'.
6738         * modules/setlocale-tests: New file.
6739         * tests/test-setlocale1.sh: New file.
6740         * tests/test-setlocale1.c: New file.
6741
6742         New module 'setlocale'.
6743         * lib/locale.in.h (setlocale): New declaration.
6744         * lib/setlocale.c: New file, based on
6745         gettext/gettext-runtime/intl/setlocale.c.
6746         * m4/setlocale.m4: New file.
6747         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
6748         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
6749         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
6750         REPLACE_SETLOCALE.
6751         * modules/setlocale: New file.
6752         * tests/test-locale-c++.cc: Test the declaration of setlocale.
6753         * doc/posix-functions/setlocale.texi: Mention the new module.
6754
6755 2011-02-11  Bruno Haible  <bruno@clisp.org>
6756
6757         Prepare for locale dependent tests on mingw.
6758         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
6759         because it has the wrong locale encoding.
6760         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
6761         French_France.1252 instead of "fr".
6762         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
6763         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
6764         because it has the wrong locale encoding.
6765         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
6766         native Windows, try Turkish_Turkey.65001.
6767         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
6768         Chinese_China.54936.
6769
6770         Prepare for locale dependent tests on mingw.
6771         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
6772         differently.
6773         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
6774         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
6775         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6776         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6777
6778 2011-02-11  Eric Blake  <eblake@redhat.com>
6779
6780         strptime: avoid compiler warnings
6781         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
6782         compiler warnings about dead code.
6783         Reported by Daniel P. Berrange.
6784
6785 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
6786
6787         doc: update users.txt
6788         * users.txt: Add rcs.
6789
6790 2011-02-10  John W. Eaton  <jwe@gnu.org>
6791
6792         doc: update users.txt
6793         * users.txt: Add octave.
6794
6795 2011-02-10  Jim Meyering  <meyering@redhat.com>
6796
6797         doc: update users.txt
6798         * users.txt: Add iwhd.
6799
6800 2011-02-09  Bruno Haible  <bruno@clisp.org>
6801
6802         gnulib-tool: Make copyright notice adjustment more robust.
6803         * gnulib-tool (func_import): In sed_transform_main_lib_file,
6804         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
6805         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
6806         License".
6807         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
6808
6809 2011-02-06  Bruno Haible  <bruno@clisp.org>
6810
6811         New module 'towctrans'.
6812         * modules/towctrans: New file.
6813         * lib/wctype.in.h (towctrans): New declaration.
6814         * lib/towctrans.c: New file.
6815         * lib/towctrans-impl.h: New file.
6816         * m4/towctrans.m4: New file.
6817         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
6818         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
6819         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
6820         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
6821         * doc/posix-functions/towctrans.texi: Mention the new module.
6822
6823 2011-02-06  Bruno Haible  <bruno@clisp.org>
6824
6825         New module 'wctrans'.
6826         * modules/wctrans: New file.
6827         * lib/wctype.in.h (wctrans): New declaration.
6828         * lib/wctrans.c: New file.
6829         * lib/wctrans-impl.h: New file.
6830         * m4/wctrans.m4: New file.
6831         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
6832         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
6833         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
6834         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
6835         * doc/posix-functions/wctrans.texi: Mention the new module.
6836
6837 2011-02-06  Bruno Haible  <bruno@clisp.org>
6838
6839         New module 'iswctype'.
6840         * modules/iswctype: New file.
6841         * lib/wctype.in.h (iswctype): New declaration.
6842         * lib/iswctype.c: New file.
6843         * lib/iswctype-impl.h: New file.
6844         * m4/iswctype.m4: New file.
6845         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
6846         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
6847         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
6848         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
6849         * doc/posix-functions/iswctype.texi: Mention the new module and the
6850         HP-UX 11.00 problem.
6851
6852 2011-02-06  Bruno Haible  <bruno@clisp.org>
6853
6854         New module 'wctype'.
6855         * modules/wctype: Change to represent the wctype() substitute.
6856         * lib/wctype.in.h (wctype): New declaration.
6857         * lib/wctype.c: New file.
6858         * lib/wctype-impl.h: New file.
6859         * m4/wctype.m4: New file.
6860         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
6861         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
6862         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
6863         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
6864         * doc/posix-functions/wctype.texi: Mention the new module and the
6865         HP-UX 11.00 problem.
6866
6867 2011-02-06  Bruno Haible  <bruno@clisp.org>
6868
6869         wctype-h: Ensure wctype_t and wctrans_t are defined.
6870         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
6871         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6872         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
6873         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
6874         HAVE_WCTRANS_T.
6875         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
6876
6877 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6878
6879         flock: fix license typo
6880
6881         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
6882         omitted.
6883
6884 2011-02-08  Bruno Haible  <bruno@clisp.org>
6885
6886         Split large sed scripts, for HP-UX sed.
6887         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
6888         to avoid HP-UX limit of 99 commands, in the near future.
6889         * modules/stdlib (Makefile.am): Likewise.
6890         * modules/unistd (Makefile.am): Likewise.
6891         * modules/wchar (Makefile.am): Likewise.
6892         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6893         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
6894         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
6895
6896 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6897             Bruno Haible  <bruno@clisp.org>
6898
6899         stdlib: improve random_r modularization
6900         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
6901         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
6902         you also need the random_r module to get this material right.
6903         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
6904         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
6905         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
6906
6907 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
6908
6909         stdlib: don't depend on stdint
6910         * lib/stdlib.in.h: Don't include <stdint.h> merely because
6911         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
6912         be independent of whether stdint.h is needed.
6913         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
6914         here, instead of ...
6915         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
6916         struct random_data should be using the random_r module, not just
6917         the stdlib module (which wouldn't make sense: what package needs
6918         just struct random_data without also needing random_r?).
6919         * modules/stdlib (Depends-on): Remove stdint.
6920
6921         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
6922         See the thread rooted at
6923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
6924         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
6925         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
6926         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
6927         __VMS)); previously it was always included (via fcntl--.h).
6928         (getloadavg): Do not use c_strtod.  Instead, approximate it by
6929         hand; this is good enough for load averages.  Also, do not use
6930         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
6931         flags directly if available and don't bother otherwise.  (Packages
6932         that need the extra reliability should use the modules that define
6933         these flags on older platforms that lack them.)
6934         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
6935         fcntl-safer.
6936
6937 2011-02-08  Jim Meyering  <meyering@redhat.com>
6938
6939         di-set.h, ino-map.h: add multiple-inclusion guard
6940         Technically, the guard is required only for ino-map.h, due to its
6941         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
6942         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
6943         * lib/ino-map.h: Likewise.
6944
6945 2011-02-06  Bruno Haible  <bruno@clisp.org>
6946
6947         iswblank: Ensure declaration on glibc systems.
6948         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
6949         * modules/iswblank (Dependencies): Add 'extensions'.
6950         * doc/posix-functions/iswblank.texi: Document the glibc problem.
6951
6952 2011-02-06  Bruno Haible  <bruno@clisp.org>
6953
6954         New module 'iswblank'.
6955         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
6956         * modules/iswblank: New file.
6957         * modules/wctype-h (Files): Remove lib/iswblank.c.
6958         (Makefile.am): Substitute GNULIB_ISWBLANK.
6959         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
6960         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
6961         (gl_WCTYPE_H_DEFAULTS): New macro.
6962         (gl_WCTYPE_H): Require it. Remove iswblank related code.
6963         * modules/iswblank-tests: New file.
6964         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
6965         * tests/test-wctype-h.c (main): Remove iswblank tests.
6966         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
6967         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
6968         of 'wctype-h'.
6969         * NEWS: Mention the change.
6970         * modules/mbchar (Depends-on): Add iswblank.
6971
6972 2011-02-08  Bruno Haible  <bruno@clisp.org>
6973
6974         di-set tests: Refactor.
6975         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
6976         unnecessary includes.
6977         (ASSERT): Remove macro.
6978         (main): Make C90 compliant by avoiding variable declaration after
6979         statement.
6980         * modules/di-set-tests (Files): Add tests/macros.h.
6981
6982 2011-02-08  Bruno Haible  <bruno@clisp.org>
6983
6984         ino-map tests: Refactor.
6985         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
6986         unnecessary includes.
6987         (ASSERT): Remove macro.
6988         (main): Make C90 compliant by avoiding variable declaration after
6989         statement.
6990         * modules/ino-map-tests (Files): Add tests/macros.h.
6991
6992 2011-02-08  Jim Meyering  <meyering@redhat.com>
6993
6994         di-set: add "const" to a cast
6995         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
6996         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
6997
6998 2011-02-06  Bruno Haible  <bruno@clisp.org>
6999
7000         Rename module 'wctype' to 'wctype-h'.
7001         * modules/wctype-h: Renamed from modules/wctype.
7002         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
7003         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
7004         (Files, Depends-on, Makefile.am): Update.
7005         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
7006         (Files, Makefile.am): Update.
7007         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
7008         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
7009         * doc/posix-headers/wctype.texi: Update.
7010         * doc/posix-functions/iswalnum.texi: Update.
7011         * doc/posix-functions/iswalpha.texi: Update.
7012         * doc/posix-functions/iswblank.texi: Update.
7013         * doc/posix-functions/iswcntrl.texi: Update.
7014         * doc/posix-functions/iswdigit.texi: Update.
7015         * doc/posix-functions/iswgraph.texi: Update.
7016         * doc/posix-functions/iswlower.texi: Update.
7017         * doc/posix-functions/iswprint.texi: Update.
7018         * doc/posix-functions/iswpunct.texi: Update.
7019         * doc/posix-functions/iswspace.texi: Update.
7020         * doc/posix-functions/iswupper.texi: Update.
7021         * doc/posix-functions/iswxdigit.texi: Update.
7022         * doc/posix-functions/towlower.texi: Update.
7023         * doc/posix-functions/towupper.texi: Update.
7024         * NEWS: Mention the change.
7025         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
7026         * modules/mbchar (Dependencies): Likewise.
7027         * modules/mbswidth (Dependencies): Likewise.
7028         * modules/quotearg (Dependencies): Likewise.
7029         * modules/regex (Dependencies): Likewise.
7030         * modules/wcscasecmp (Dependencies): Likewise.
7031         * modules/wcsncasecmp (Dependencies): Likewise.
7032         * modules/wcwidth (Dependencies): Likewise.
7033
7034 2011-02-06  Bruno Haible  <bruno@clisp.org>
7035
7036         New module 'wcswidth'.
7037         * modules/wcswidth: New file.
7038         * lib/wchar.in.h (wcswidth): New declaration.
7039         * lib/wcswidth.c: New file.
7040         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
7041         * m4/wcswidth.m4: New file.
7042         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
7043         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
7044         REPLACE_WCSWIDTH.
7045         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
7046         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
7047         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
7048         * doc/posix-functions/wcswidth.texi: Mention the new module.
7049
7050 2011-02-06  Bruno Haible  <bruno@clisp.org>
7051
7052         New module 'wcstok'.
7053         * modules/wcstok: New file.
7054         * lib/wchar.in.h (wcstok): New declaration.
7055         * lib/wcstok.c: New file.
7056         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
7057         * m4/wcstok.m4: New file.
7058         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
7059         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
7060         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
7061         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
7062         * doc/posix-functions/wcstok.texi: Mention the new module.
7063
7064 2011-02-06  Bruno Haible  <bruno@clisp.org>
7065
7066         New module 'wcsstr'.
7067         * modules/wcsstr: New file.
7068         * lib/wchar.in.h (wcsstr): New declaration.
7069         * lib/wcsstr.c: New file.
7070         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
7071         * m4/wcsstr.m4: New file.
7072         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
7073         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
7074         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
7075         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
7076         * doc/posix-functions/wcsstr.texi: Mention the new module.
7077
7078 2011-02-06  Bruno Haible  <bruno@clisp.org>
7079
7080         New module 'wcspbrk'.
7081         * modules/wcspbrk: New file.
7082         * lib/wchar.in.h (wcspbrk): New declaration.
7083         * lib/wcspbrk.c: New file.
7084         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
7085         * m4/wcspbrk.m4: New file.
7086         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
7087         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
7088         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
7089         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
7090         * doc/posix-functions/wcspbrk.texi: Mention the new module.
7091
7092 2011-02-06  Bruno Haible  <bruno@clisp.org>
7093
7094         New module 'wcsspn'.
7095         * modules/wcsspn: New file.
7096         * lib/wchar.in.h (wcsspn): New declaration.
7097         * lib/wcsspn.c: New file.
7098         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
7099         * m4/wcsspn.m4: New file.
7100         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
7101         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
7102         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
7103         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
7104         * doc/posix-functions/wcsspn.texi: Mention the new module.
7105
7106 2011-02-06  Bruno Haible  <bruno@clisp.org>
7107
7108         New module 'wcscspn'.
7109         * modules/wcscspn: New file.
7110         * lib/wchar.in.h (wcscspn): New declaration.
7111         * lib/wcscspn.c: New file.
7112         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
7113         * m4/wcscspn.m4: New file.
7114         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
7115         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
7116         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
7117         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
7118         * doc/posix-functions/wcscspn.texi: Mention the new module.
7119
7120 2011-02-06  Bruno Haible  <bruno@clisp.org>
7121
7122         New module 'wcsrchr'.
7123         * modules/wcsrchr: New file.
7124         * lib/wchar.in.h (wcsrchr): New declaration.
7125         * lib/wcsrchr.c: New file.
7126         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
7127         * m4/wcsrchr.m4: New file.
7128         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
7129         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
7130         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
7131         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
7132         * doc/posix-functions/wcsrchr.texi: Mention the new module.
7133
7134 2011-02-06  Bruno Haible  <bruno@clisp.org>
7135
7136         New module 'wcschr'.
7137         * modules/wcschr: New file.
7138         * lib/wchar.in.h (wcschr): New declaration.
7139         * lib/wcschr.c: New file.
7140         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
7141         * m4/wcschr.m4: New file.
7142         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
7143         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
7144         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
7145         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
7146         * doc/posix-functions/wcschr.texi: Mention the new module.
7147
7148 2011-02-06  Bruno Haible  <bruno@clisp.org>
7149
7150         New module 'wcsdup'.
7151         * modules/wcsdup: New file.
7152         * lib/wchar.in.h (wcsdup): New declaration.
7153         * lib/wcsdup.c: New file.
7154         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
7155         * m4/wcsdup.m4: New file.
7156         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
7157         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
7158         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
7159         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
7160         * doc/posix-functions/wcsdup.texi: Mention the new module.
7161
7162 2011-02-06  Bruno Haible  <bruno@clisp.org>
7163
7164         New module 'wcsxfrm'.
7165         * modules/wcsxfrm: New file.
7166         * lib/wchar.in.h (wcsxfrm): New declaration.
7167         * lib/wcsxfrm.c: New file.
7168         * lib/wcsxfrm-impl.h: New file.
7169         * m4/wcsxfrm.m4: New file.
7170         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
7171         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
7172         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
7173         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
7174         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
7175
7176 2011-02-06  Bruno Haible  <bruno@clisp.org>
7177
7178         New module 'wcscoll'.
7179         * modules/wcscoll: New file.
7180         * lib/wchar.in.h (wcscoll): New declaration.
7181         * lib/wcscoll.c: New file.
7182         * lib/wcscoll-impl.h: New file.
7183         * m4/wcscoll.m4: New file.
7184         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
7185         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
7186         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
7187         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
7188         * doc/posix-functions/wcscoll.texi: Mention the new module.
7189
7190 2011-02-06  Bruno Haible  <bruno@clisp.org>
7191
7192         New module 'wcsncasecmp'.
7193         * modules/wcsncasecmp: New file.
7194         * lib/wchar.in.h (wcsncasecmp): New declaration.
7195         * lib/wcsncasecmp.c: New file.
7196         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
7197         * m4/wcsncasecmp.m4: New file.
7198         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
7199         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
7200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
7201         HAVE_WCSNCASECMP.
7202         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
7203         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
7204
7205 2011-02-06  Bruno Haible  <bruno@clisp.org>
7206
7207         New module 'wcscasecmp'.
7208         * modules/wcscasecmp: New file.
7209         * lib/wchar.in.h (wcscasecmp): New declaration.
7210         * lib/wcscasecmp.c: New file.
7211         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
7212         * m4/wcscasecmp.m4: New file.
7213         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
7214         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
7215         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
7216         HAVE_WCSCASECMP.
7217         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
7218         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
7219
7220 2011-02-05  Bruno Haible  <bruno@clisp.org>
7221
7222         New module 'wcsncmp'.
7223         * modules/wcsncmp: New file.
7224         * lib/wchar.in.h (wcsncmp): New declaration.
7225         * lib/wcsncmp.c: New file.
7226         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
7227         * m4/wcsncmp.m4: New file.
7228         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
7229         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
7230         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
7231         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
7232         * doc/posix-functions/wcsncmp.texi: Mention the new module.
7233
7234 2011-02-05  Bruno Haible  <bruno@clisp.org>
7235
7236         New module 'wcscmp'.
7237         * modules/wcscmp: New file.
7238         * lib/wchar.in.h (wcscmp): New declaration.
7239         * lib/wcscmp.c: New file.
7240         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
7241         * m4/wcscmp.m4: New file.
7242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
7243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
7244         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
7245         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
7246         * doc/posix-functions/wcscmp.texi: Mention the new module.
7247
7248 2011-02-05  Bruno Haible  <bruno@clisp.org>
7249
7250         New module 'wcsncat'.
7251         * modules/wcsncat: New file.
7252         * lib/wchar.in.h (wcsncat): New declaration.
7253         * lib/wcsncat.c: New file.
7254         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
7255         * m4/wcsncat.m4: New file.
7256         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
7257         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
7258         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
7259         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
7260         * doc/posix-functions/wcsncat.texi: Mention the new module.
7261
7262 2011-02-05  Bruno Haible  <bruno@clisp.org>
7263
7264         New module 'wcscat'.
7265         * modules/wcscat: New file.
7266         * lib/wchar.in.h (wcscat): New declaration.
7267         * lib/wcscat.c: New file.
7268         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
7269         * m4/wcscat.m4: New file.
7270         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
7271         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
7272         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
7273         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
7274         * doc/posix-functions/wcscat.texi: Mention the new module.
7275
7276 2011-02-05  Bruno Haible  <bruno@clisp.org>
7277
7278         New module 'wcpncpy'.
7279         * modules/wcpncpy: New file.
7280         * lib/wchar.in.h (wcpncpy): New declaration.
7281         * lib/wcpncpy.c: New file.
7282         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
7283         * m4/wcpncpy.m4: New file.
7284         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
7285         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
7286         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
7287         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
7288         * doc/posix-functions/wcpncpy.texi: Mention the new module.
7289
7290 2011-02-05  Bruno Haible  <bruno@clisp.org>
7291
7292         New module 'wcsncpy'.
7293         * modules/wcsncpy: New file.
7294         * lib/wchar.in.h (wcsncpy): New declaration.
7295         * lib/wcsncpy.c: New file.
7296         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
7297         * m4/wcsncpy.m4: New file.
7298         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
7299         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
7300         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
7301         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
7302         * doc/posix-functions/wcsncpy.texi: Mention the new module.
7303
7304 2011-02-05  Bruno Haible  <bruno@clisp.org>
7305
7306         New module 'wcpcpy'.
7307         * modules/wcpcpy: New file.
7308         * lib/wchar.in.h (wcpcpy): New declaration.
7309         * lib/wcpcpy.c: New file.
7310         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
7311         * m4/wcpcpy.m4: New file.
7312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
7313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
7314         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
7315         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
7316         * doc/posix-functions/wcpcpy.texi: Mention the new module.
7317
7318 2011-02-05  Bruno Haible  <bruno@clisp.org>
7319
7320         New module 'wcscpy'.
7321         * modules/wcscpy: New file.
7322         * lib/wchar.in.h (wcscpy): New declaration.
7323         * lib/wcscpy.c: New file.
7324         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
7325         * m4/wcscpy.m4: New file.
7326         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
7327         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
7328         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
7329         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
7330         * doc/posix-functions/wcscpy.texi: Mention the new module.
7331
7332 2011-02-05  Bruno Haible  <bruno@clisp.org>
7333
7334         New module 'wcsnlen'.
7335         * modules/wcsnlen: New file.
7336         * lib/wchar.in.h (wcsnlen): New declaration.
7337         * lib/wcsnlen.c: New file.
7338         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
7339         * m4/wcsnlen.m4: New file.
7340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
7341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
7342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
7343         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
7344         * doc/posix-functions/wcsnlen.texi: Mention the new module.
7345
7346 2011-02-05  Bruno Haible  <bruno@clisp.org>
7347
7348         New module 'wcslen'.
7349         * modules/wcslen: New file.
7350         * lib/wchar.in.h (wcslen): New declaration.
7351         * lib/wcslen.c: New file.
7352         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
7353         * m4/wcslen.m4: New file.
7354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
7355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
7356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
7357         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
7358         * doc/posix-functions/wcslen.texi: Mention the new module.
7359
7360 2011-02-05  Bruno Haible  <bruno@clisp.org>
7361
7362         New module 'wmemset'.
7363         * modules/wmemset: New file.
7364         * lib/wchar.in.h (wmemset): New declaration.
7365         * lib/wmemset.c: New file.
7366         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
7367         * m4/wmemset.m4: New file.
7368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
7369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
7370         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
7371         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
7372         * doc/posix-functions/wmemset.texi: Mention the new module.
7373
7374 2011-02-05  Bruno Haible  <bruno@clisp.org>
7375
7376         New module 'wmemmove'.
7377         * modules/wmemmove: New file.
7378         * lib/wchar.in.h (wmemmove): New declaration.
7379         * lib/wmemmove.c: New file.
7380         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
7381         * m4/wmemmove.m4: New file.
7382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
7383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
7384         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
7385         HAVE_WMEMMOVE.
7386         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
7387         * doc/posix-functions/wmemmove.texi: Mention the new module.
7388
7389 2011-02-05  Bruno Haible  <bruno@clisp.org>
7390
7391         New module 'wmemcpy'.
7392         * modules/wmemcpy: New file.
7393         * lib/wchar.in.h (wmemcpy): New declaration.
7394         * lib/wmemcpy.c: New file.
7395         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
7396         * m4/wmemcpy.m4: New file.
7397         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
7398         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
7399         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
7400         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
7401         * doc/posix-functions/wmemcpy.texi: Mention the new module.
7402
7403 2011-02-05  Bruno Haible  <bruno@clisp.org>
7404
7405         New module 'wmemcmp'.
7406         * modules/wmemcmp: New file.
7407         * lib/wchar.in.h (wmemcmp): New declaration.
7408         * lib/wmemcmp.c: New file.
7409         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
7410         * m4/wmemcmp.m4: New file.
7411         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
7412         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
7413         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
7414         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
7415         * doc/posix-functions/wmemcmp.texi: Mention the new module.
7416
7417 2011-02-07  Jim Meyering  <meyering@redhat.com>
7418
7419         di-set, ino-map: new modules, from coreutils
7420         * lib/di-set.c: New file.
7421         * lib/di-set.h: Likewise.
7422         * lib/ino-map.c: Likewise.
7423         * lib/ino-map.h: Likewise.
7424         * modules/di-set: Likewise.
7425         * modules/di-set-tests: Likewise.
7426         * modules/ino-map: Likewise.
7427         * modules/ino-map-tests: Likewise.
7428         * tests/test-di-set.c: Likewise.
7429         * tests/test-ino-map.c: Likewise.
7430
7431 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
7432
7433         getloadavg: merge minor changes from Emacs
7434
7435         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
7436         (getloadavg): Use memset, not bzero.
7437
7438         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
7439         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7440         clash (bug#86).
7441
7442 2010-11-14  Bruno Haible  <bruno@clisp.org>
7443
7444         Allow multiple gnulib generated replacements to coexist.
7445         * lib/getopt.in.h (struct option): Avoid identical redefinition.
7446         * lib/inttypes.in.h (imaxdiv_t): Likewise.
7447         * lib/langinfo.in.h (nl_item): Likewise.
7448         * lib/math.in.h (_NaN, NAN): Likewise.
7449         * lib/netdb.in.h (struct addrinfo): Likewise.
7450         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
7451         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
7452         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
7453         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
7454         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
7455         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
7456         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
7457         pthread_mutexattr_init, pthread_mutexattr_settype,
7458         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
7459         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
7460         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
7461         pthread_spin_trylock, pthread_spin_unlock): Likewise.
7462         * lib/sched.in.h (struct sched_param): Likewise.
7463         * lib/se-selinux.in.h (security_class_t, security_context_t,
7464         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
7465         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
7466         lsetfilecon, fsetfilecon, security_check_context,
7467         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
7468         Likewise.
7469         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
7470         Likewise.
7471         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
7472         _gl_function_taking_int_returning_void_t, union sigval,
7473         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
7474         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
7475         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
7476         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
7477         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
7478         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
7479         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
7480         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
7481         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
7482         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
7483         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
7484         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
7485         socklen_t, rpl_fd_isset): Likewise.
7486         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
7487         * lib/sys_time.in.h (struct timeval): Likewise.
7488         * lib/sys_times.in.h (struct tms): Likewise.
7489         * lib/sys_utsname.in.h (struct utsname):
7490         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
7491         * lib/unistd.in.h (getpagesize): Likewise.
7492         * lib/wchar.in.h (mbstate_t): Likewise.
7493         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
7494         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
7495         towlower, towupper): Likewise.
7496         Reported by Sam Steingold <sds@gnu.org>.
7497
7498 2011-02-05  Eric Blake  <eblake@redhat.com>
7499
7500         unsetenv: work around Haiku issues
7501         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
7502         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
7503
7504 2010-12-30  Bruce Korb  <bkorb@gnu.org>
7505
7506         libposix: avoid calling error() within libposix
7507         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
7508         is defined.
7509
7510 2011-02-05  Eric Blake  <eblake@redhat.com>
7511
7512         strerror_r-posix: port to cygwin
7513         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
7514         implementation.
7515         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
7516         * tests/test-strerror_r.c (main): Fix test.
7517         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7518         issue.
7519
7520 2011-02-05  Bruno Haible  <bruno@clisp.org>
7521
7522         New module 'wmemchr'.
7523         * modules/wmemchr: New file.
7524         * lib/wchar.in.h (wmemchr): New declaration.
7525         * lib/wmemchr.c: New file.
7526         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
7527         * m4/wmemchr.m4: New file.
7528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
7529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
7530         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
7531         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
7532         * doc/posix-functions/wmemchr.texi: Mention the new module.
7533
7534 2011-02-04  Eric Blake  <eblake@redhat.com>
7535
7536         fdopendir: detect FreeBSD bug
7537         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
7538         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
7539
7540 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7541
7542         stdbool: do not define HAVE_STDBOOL_H
7543         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
7544         AC_HEADER_STDBOOL.  All uses changed.  Do not define
7545         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
7546         imported from the latest Autoconf git.  It was motivated by Emacs,
7547         which uses gnulib but does not need HAVE_STDBOOL_H.
7548
7549 2011-02-04  Bruno Haible  <bruno@clisp.org>
7550
7551         wcsnrtombs: Prepare for new module wwcsnrtombs.
7552         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
7553         * lib/wcsnrtombs.c: Include it.
7554         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
7555
7556         wcsrtombs: Prepare for new module wwcsrtombs.
7557         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
7558         * lib/wcsrtombs.c: Include it.
7559         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
7560
7561         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
7562         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
7563         * lib/mbsnrtowcs.c: Include it.
7564         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
7565
7566         mbsrtowcs: Prepare for new module mbsrtowwcs.
7567         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
7568         * lib/mbsrtowcs.c: Include it.
7569         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
7570
7571 2011-02-04  Bruno Haible  <bruno@clisp.org>
7572
7573         vasnprintf: Reduce use of malloc for small format strings.
7574         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
7575         (arguments): Add room for the first 7 arguments.
7576         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
7577         (char_directives, u8_directives, u16_directives, u32_directives): Add
7578         room for the first 7 directives.
7579         * lib/printf-parse.c: Include <string.h>.
7580         (PRINTF_PARSE): Change memory handling code so that it uses the first
7581         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
7582         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
7583         Reported by Pádraig Brady <P@draigbrady.com>.
7584
7585 2011-01-31  Eric Blake  <eblake@redhat.com>
7586
7587         dup2: work around Haiku bug
7588         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
7589         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
7590         * doc/posix-functions/dup2.texi (dup2): Document the bug.
7591         * tests/test-dup2.c (main): Enhance test.
7592
7593 2011-01-31  Simon Josefsson  <simon@josefsson.org>
7594
7595         doc: off_t is not available in eglibc 2.11.2 stdio.h.
7596         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
7597         declared by eglibc 2.11.2.
7598         * lib/stdio.in.h: Likewise.
7599
7600 2011-01-31  Eric Blake  <eblake@redhat.com>
7601
7602         ignore-value: add missing test dependency
7603         * tests/test-ignore-value.c: Revert previous change; stdio.h
7604         provides off_t.
7605         * modules/ignore-value-tests (Depends-on): Add missing dependency.
7606
7607 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7608
7609         mktime: clarify long_int width checking
7610         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
7611         the top level, to make it clearer that the assumption about
7612         long_int width is being checked.  See
7613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
7614
7615 2011-01-30  Simon Josefsson  <simon@josefsson.org>
7616
7617         ignore-value: Fix self-test.
7618         * tests/test-ignore-value.c: Include sys/types.h for off_t.
7619
7620 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7621
7622         TYPE_MAXIMUM: avoid theoretically undefined behavior
7623         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
7624         negative number, which the C Standard says has undefined behavior.
7625         In practice this is not a problem, but might as well do it by the book.
7626         Reported by Rich Felker and Eric Blake; see
7627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
7628         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
7629         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7631         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
7632         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7633         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
7634
7635         mktime: #undef mktime before #defining it
7636         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
7637
7638         mktime: systematically normalize tm_isdst comparisons
7639         * lib/mktime.c (isdst_differ): New function.
7640         (__mktime_internal): Use it systematically for all isdst comparisons.
7641         This completes the fix for libc BZ #6723, and removes the need for
7642         normalizing tm_isdst.  See
7643         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
7644         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
7645
7646         mktime: fix some integer overflow issues and sidestep the rest
7647
7648         This was prompted by a bug report by Benjamin Lindner for MinGW
7649         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
7650         His bug is due to signed integer overflow (0 - INT_MIN), and I
7651         I scanned through mktime.c looking for other integer overflow
7652         problems, fixing all the bugs I found.
7653
7654         Although the C Standard says the resulting code is still not safe
7655         in the presence of integer overflow, in practice it should be good
7656         enough for all real-world two's-complement implementations, except
7657         for debugging environments that deliberately trap on integer
7658         overflow (e.g., gcc -ftrapv).
7659
7660         * lib/mktime.c (WRAPV): New macro.
7661         (SHR): Also check that long_int and time_t shift right in the
7662         usual way, before using the fast-but-unportable method.
7663         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
7664         used.  The code already assumed two's complement, so there's
7665         no need to test for alternatives.  All uses removed.
7666         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
7667         the C standard.  Problem reported by Rich Felker in
7668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
7669         (twos_complement_arithmetic): Also check long_int and time_t.
7670         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
7671         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
7672         (__mktime_internal): Avoid integer overflow with unary subtraction
7673         in two instances where -1 - X is an adequate replacement for -X,
7674         since the calculations are approximate.
7675
7676 2011-01-29  Eric Blake  <eblake@redhat.com>
7677
7678         mktime: avoid infinite loop
7679         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
7680         type; behavior is still undefined but portable to all known targets.
7681         Reported by Rich Felker.
7682
7683 2011-01-29  Simon Josefsson  <simon@josefsson.org>
7684
7685         rename, unlink, same-inode: Relicense.
7686         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
7687         * modules/unlink (License): Likewise.
7688         * modules/same-inode (License): Likewise.
7689
7690 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7691
7692         mktime: avoid problems on NetBSD 5 / i386
7693         * lib/mktime.c (long_int): New type.  This works around a problem
7694         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
7695         but time_t is 64 bits, and where I expect the existing code is
7696         wrong in some cases.
7697         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
7698         (ydhms_diff): Bring back the compile-time check for wide-enough
7699         year and yday.
7700
7701         mktime: fix misspelling in comment
7702         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
7703         This merges all recent glibc changes of importance.
7704
7705 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7706
7707         move-if-change: cope with concurrent mv of identical file.
7708         * build-aux/move-if-change (CMPPROG): Accept environment
7709         variable as an override for `cmp'.
7710         (usage): Document CMPPROG.
7711         Adjust comparison to drop stdout.  Cope with failure of mv if
7712         the target file exists and is identical to the source, for
7713         parallel builds.
7714         Report from H.J. Lu against binutils in PR binutils/12283.
7715
7716 2011-01-28  Bruce Korb  <bkorb@gnu.org>
7717
7718         * users.txt: Mention sharutils.
7719
7720 2011-01-28  Simon Josefsson  <simon@josefsson.org>
7721
7722         * users.txt: Mention OATH Toolkit.
7723
7724 2011-01-27  Bruno Haible  <bruno@clisp.org>
7725
7726         Prepare for supporting FreeBSD 10.
7727         * build-aux/config.libpath: Remove handling of freebsd1*.
7728
7729 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
7730
7731         Prepare for supporting FreeBSD 10.
7732         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
7733         match FreeBSD 10.0.
7734
7735 2011-01-27  Bruno Haible  <bruno@clisp.org>
7736
7737         vma-iter, get-rusage-as: Add OpenBSD support.
7738         * modules/vma-iter (configure.ac): Test for mquery.
7739         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
7740         * lib/vma-iter.c: Include <sys/mman.h>.
7741         (vma_iterate): Add an implementation based on mquery().
7742         * lib/resource-ext.h (get_rusage_as): Update comments.
7743         * lib/get-rusage-as.c: Likewise.
7744         * lib/get-rusage-data.c: Likewise.
7745
7746 2011-01-26  Karl Berry  <karl@gnu.org>
7747
7748         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
7749         variables to make it easier to override the makeinfo program used.
7750
7751 2011-01-26  Eric Blake  <eblake@redhat.com>
7752
7753         fcntl: work around Haiku F_DUPFD bugs
7754         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
7755         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
7756         cloexec bit on duplication.
7757         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
7758
7759 2011-01-26  Bruno Haible  <bruno@clisp.org>
7760
7761         Enable memory leak tests on AIX.
7762         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
7763         * tests/test-fprintf-posix3.c (main): Likewise.
7764
7765 2011-01-26  Bruno Haible  <bruno@clisp.org>
7766
7767         Tests for module 'get-rusage-data'.
7768         * modules/get-rusage-data-tests: New file.
7769         * tests/test-get-rusage-data.c: New file.
7770
7771         New module 'get-rusage-data'.
7772         * lib/resource-ext.h (get_rusage_data): New declaration.
7773         * lib/get-rusage-data.c: New file.
7774         * modules/get-rusage-data: New file.
7775
7776 2011-01-25  Bruno Haible  <bruno@clisp.org>
7777
7778         get-rusage-as: Allow for easier testing.
7779         * lib/resource-ext.h (get_rusage_as): Add comment.
7780         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
7781         (main): New function for interactive testing.
7782
7783 2011-01-25  Bruno Haible  <bruno@clisp.org>
7784
7785         vma-iter: Treat Haiku like BeOS.
7786         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
7787         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
7788
7789 2011-01-25  Eric Blake  <eblake@redhat.com>
7790
7791         c-stack: fix regression on cygwin when libsigsegv is present
7792         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
7793
7794 2011-01-24  Bruno Haible  <bruno@clisp.org>
7795
7796         vma-iter: Avoid empty intervals.
7797         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
7798         on an empty interval.
7799
7800 2011-01-24  Jim Meyering  <meyering@redhat.com>
7801
7802         u64: remove unnecessary #include
7803         * lib/u64.h: Don't include <stddef.h>.  It was not used.
7804
7805 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7806
7807         Allow the user to avoid the HAVE_RAW_DECL_* macros.
7808         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
7809
7810 2011-01-23  Bruno Haible  <bruno@clisp.org>
7811
7812         New module 'vma-iter'.
7813         * lib/vma-iter.h: New file.
7814         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
7815         * modules/vma-iter: New file.
7816         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
7817         for get_rusage_as_via_iterator.
7818         (vma_iterate_callback): New function.
7819         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
7820         * modules/get-rusage-as (Depends-on): Add vma-iter.
7821
7822 2011-01-23  Bruno Haible  <bruno@clisp.org>
7823
7824         uninorm: Tweak includes.
7825         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
7826         Reported by Jim Meyering.
7827
7828 2011-01-23  Bruno Haible  <bruno@clisp.org>
7829
7830         get-rusage-as: Improve on NetBSD.
7831         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
7832         /proc, like on FreeBSD.
7833
7834 2011-01-23  Jim Meyering  <meyering@redhat.com>
7835
7836         xreadlink.h: remove unnecessary #include
7837         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
7838
7839         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
7840         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
7841
7842 2011-01-23  Bruno Haible  <bruno@clisp.org>
7843
7844         get-rusage-as: Fix bug.
7845         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
7846         original limit when aborting the first loop.
7847
7848 2011-01-23  Bruno Haible  <bruno@clisp.org>
7849
7850         wctype: Ensure valid C syntax.
7851         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
7852         unconditionally, instead of gl_NEXT_HEADERS conditionally.
7853
7854 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7855
7856         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
7857         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
7858         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
7859         as they are needed only for configure's test case.
7860         This removes two unnecessary symbols from config.h.
7861
7862         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
7863         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
7864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
7865         AC_CHECK_HEADERS_ONCE on a header that we also invoke
7866         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
7867         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
7868         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
7869         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
7870         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7871         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
7872         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
7873         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7874         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7875         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7876         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
7877         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7878         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7879         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7880
7881 2011-01-21  Eric Blake  <eblake@redhat.com>
7882
7883         maintainer-makefile: work with older git for submodule check
7884         * top/maint.mk (public-submodule-commit): Rewrite to avoid
7885         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
7886         Reported by Matthias Bolte.
7887
7888         bootstrap: minor portability fixes
7889         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
7890         (usage): Omit leading capital and trailing . on help phrases, per
7891         GNU Coding Standards.
7892         (check_versions, top level): Prefix messages with script name.
7893
7894 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
7895
7896         bootstrap: support --no-git option
7897         * build-aux/bootstrap: Add --no-git option, to be used when
7898         --gnulib-srcdir points to the exact desired checkout.
7899
7900 2011-01-21  Eric Blake  <eblake@redhat.com>
7901
7902         strerror_r-posix: work with glibc 2.13
7903         * lib/strerror_r.c (strerror_r): Fix return type.
7904
7905 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7906             Bruno Haible  <bruno@clisp.org>
7907
7908         uN_strstr: New unit tests.
7909         * modules/unistr/u8-strstr-tests: New file.
7910         * modules/unistr/u16-strstr-tests: New file.
7911         * modules/unistr/u32-strstr-tests: New file.
7912         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
7913         * tests/unistr/test-u8-strstr.c: New file.
7914         * tests/unistr/test-u16-strstr.c: New file.
7915         * tests/unistr/test-u32-strstr.c: New file.
7916
7917 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7918             Bruno Haible  <bruno@clisp.org>
7919
7920         Make uN_strstr functions O(n) worst-case.
7921         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
7922         16-bit and 32-bit unit cases, use the unibyte algorithm from
7923         lib/mbsstr.c.
7924         * lib/unistr/u8-strstr.c: Include <string.h>.
7925         (UNIT_IS_UINT8_T): New macro.
7926         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
7927         (U_STRLEN, U_STRNLEN): New macros.
7928         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
7929         (U_STRLEN, U_STRNLEN): New macros.
7930         * modules/unistr/u8-strstr (Depends-on): Add strstr.
7931         (configure.ac): Update required libunistring version.
7932         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
7933         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
7934         malloca.
7935         (configure.ac): Update required libunistring version.
7936         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
7937         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
7938         malloca.
7939         (configure.ac): Update required libunistring version.
7940
7941 2011-01-21  Pádraig Brady  <P@draigBrady.com>
7942             Bruno Haible  <bruno@clisp.org>
7943
7944         Prepare for faster uN_strstr functions.
7945         * lib/str-kmp.h: Support definable UNITs.
7946         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
7947         needle_len argument.
7948         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
7949         * lib/mbscasestr.c (mbscasestr): Likewise.
7950
7951 2011-01-21  Pádraig Brady <P@draigBrady.com>
7952
7953         malloca-tests: make faster by unsetting MALLOC_PERTURB_
7954         * tests/test-malloca.c (main): Unset the environment variable
7955         to greatly speed up the test.
7956         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
7957         * modules/malloca-tests: Depend on unsetenv.
7958
7959 2011-01-21  Pádraig Brady <P@draigBrady.com>
7960
7961         ignore-value: remove stdint dependency
7962         * lib/ignore-value.h: Remove <stdint.h>
7963         * modules/ignore-value: Remove stdint dependency.
7964
7965 2011-01-21  Jim Meyering  <meyering@redhat.com>
7966
7967         maint.mk: adjust variable name to be consistent with other gl_ vars
7968         * top/maint.mk (gl_public_submodule_commit): Rename the variable
7969         to be lower case.
7970
7971 2011-01-20  Jim Meyering  <meyering@redhat.com>
7972
7973         maint.mk: make "check" depend on public-submodule-commit by default
7974         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
7975
7976 2011-01-20  Bruno Haible  <bruno@clisp.org>
7977
7978         mbfile, mbiter: Complete change from 2008-12-21.
7979         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
7980         * m4/mbiter.m4 (gl_MBITER): Likewise.
7981
7982 2011-01-20  Jim Meyering  <meyering@redhat.com>
7983
7984         init.sh: insert space between each function name and "()"
7985         * tests/init.sh: Make it a little easier to see that a function's
7986         name is "warn_", and not "warn" when looking at the first part of
7987         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
7988
7989 2011-01-20  Jim Meyering  <meyering@redhat.com>
7990
7991         mountlist: clean up code formatting
7992         * lib/mountlist.c (read_file_system_list): Split a long line,
7993         correct bracing style, use NULL in place of "(struct statfs *)0",
7994         don't parenthesize return value, add spaces around "=" and after
7995         ";-in-for-stmt".
7996
7997 2011-01-14  Markus Duft <mduft@gentoo.org>
7998
7999         mountlist: add support for Interix
8000         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
8001         Apply statvfs to all entries of /dev/fs.
8002         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
8003         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
8004
8005 2011-01-20  Jim Meyering  <meyering@redhat.com>
8006
8007         maint.mk: improve the public-submodule-commit rule
8008         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
8009         to suppress printing of its commands... unless V=1.
8010         Add git submodule's --quiet option to suppress printing of e.g.,
8011         "Entering gnulib" output.
8012         "cd" into $(srcdir) before running git submodule.
8013
8014 2011-01-20  Bruno Haible  <bruno@clisp.org>
8015
8016         include_next: Fix bug introduced on 2011-01-18.
8017         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
8018         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
8019         ac_cv_header_... variable if the second argument is not 'check'.
8020         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
8021         gl_NEXT_HEADERS_INTERNAL.
8022
8023 2011-01-20  Bruno Haible  <bruno@clisp.org>
8024
8025         Allow the user to avoid the GNULIB_TEST_* macros.
8026         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
8027         Suggested by Paul Eggert.
8028
8029 2011-01-14  Jim Meyering  <meyering@redhat.com>
8030
8031         bootstrap: avoid failure when there is no .gitmodules file
8032         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
8033         has been assigned to, even when its value is the empty string.
8034         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
8035         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
8036         Reported by John W. Eaton <jwe@gnu.org>.
8037
8038 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
8039
8040         assume <ctype.h>, ..., <time.h> exist
8041         For years gnulib has been assuming the existence of the headers
8042         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
8043         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
8044         them, since they don't appear to be needed.
8045         * README (Portability guidelines): Document this.
8046         * lib/flock.c: Assume <fcntl.h> exists.
8047         * lib/regex_internal.h: Assume <locale.h> exists.
8048         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
8049         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
8050         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
8051         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
8052         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
8053         * m4/regex.m4 (gl_REGEX): Likewise.
8054         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
8055         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
8056         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
8057         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
8058         * tests/test-argp.c: Likewise.
8059         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
8060
8061         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
8062         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
8063         AA_APPLE_UNIVERSAL_BUILD.  See
8064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
8065         * NEWS: Document this.
8066
8067 2011-01-19  Eric Blake  <eblake@redhat.com>
8068
8069         c-stack: assume stack overflow if SA_SIGINFO unsupported
8070         * lib/c-stack.c (SIGACTION_WORKS): Rename...
8071         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
8072         sigaction will work.
8073         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
8074         behavior match Linux.
8075         * tests/test-c-stack.c (main): Prefer NULL for pointers.
8076
8077         stdbool-tests: accomodate Haiku
8078         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
8079
8080         binary-io: fix O_TEXT on Haiku
8081         * modules/binary-io (Depends-on): Add fcntl-h.
8082         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
8083         than blindly undefining O_TEXT.
8084         Reported by Scott McCreary.
8085
8086 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8087
8088         include_next: do not check for standard headers like stddef.h
8089
8090         I found this problem when modifying Emacs to use gnulib.
8091         I noticed that it added HAVE_STDDEF_H to config.h, even though
8092         gnulib always assumes <stddef.h> exists as per README and this
8093         symbol is unnecessary.
8094         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
8095         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
8096         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
8097         faster for headers like stddef.h that are known to exist.
8098         (gl_CHECK_NEXT_HEADERS): Use it.
8099         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
8100         rather than gl_CHECK_NEXT_HEADERS.
8101         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
8102         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
8103
8104 2011-01-18  Eric Blake  <eblake@redhat.com>
8105
8106         ansi-c++-opt: skip C++ dependency style if C++ is unused
8107         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
8108         tests when we know C++ compilation is not desired.
8109         Reported by Scott McCreary.
8110
8111 2011-01-18  Bruno Haible  <bruno@clisp.org>
8112
8113         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
8114         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
8115         (main): Perform test also when getrlimit and setrlimit don't exist or
8116         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
8117         limiting the address space size using setrlimit, compare the address
8118         space size before and after the the test.
8119         * tests/test-dprintf-posix2.c: Likewise.
8120         * tests/test-fprintf-posix3.sh: Update skip messages.
8121         * tests/test-dprintf-posix2.sh: Likewise.
8122         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
8123         * modules/dprintf-posix-tests (Depends-on): Likewise.
8124         Reported by Bruce Korb <bkorb@gnu.org> and
8125         Gary V. Vaughan <gary@gnu.org>.
8126
8127 2011-01-18  Bruno Haible  <bruno@clisp.org>
8128
8129         get-rusage-as: Improvement for Cygwin.
8130         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
8131         areas that are merely reserved.
8132
8133 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8134
8135         strftime: remove dependencies on multibyte modules
8136
8137         strftime depended on mbrlen, mbsinit, and wchar, but these modules
8138         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
8139         only if __osf__ is defined, and I suspect OSF doesn't need these
8140         other modules.  If my guess is wrong, we'll need to come up with a
8141         variant of strftime that doesn't need the multibyte modules.
8142
8143         I discovered this problem when attempting modify Emacs to use the
8144         strftime module.  With the previous gnulib, this caused Emacs to
8145         need 31 new files, ranging from lib/config.charset to
8146         m4/wint_t.m4.  This was overkill and I expect would be offputting
8147         to the Emacs maintainers.  After this change, only 6 new files are
8148         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
8149         stdbool.m4, and tm_gmtoff.m4.
8150
8151         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
8152         Suggested by Bruno Haible in
8153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
8154         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
8155         and do not check for wchar.h.
8156         * modules/strftime (Files): Remove m4/mbstate_t.m4.
8157         (Depends-on): Remove mbrlen, mbsinit, wchar.
8158
8159 2011-01-18  Bruno Haible  <bruno@clisp.org>
8160
8161         Tests for module 'get-rusage-as'.
8162         * modules/get-rusage-as-tests: New file.
8163         * tests/test-get-rusage-as.c: New file.
8164
8165         New module 'get-rusage-as'.
8166         * modules/get-rusage-as: New file.
8167         * lib/resource-ext.h: New file.
8168         * lib/get-rusage-as.c: New file.
8169
8170 2011-01-17  Eric Blake  <eblake@redhat.com>
8171
8172         sigaction: relax license from LGPLv3+ to LGPLv2+
8173         * modules/sigaction (License): Relax to LGPLv2+.
8174
8175 2011-01-14  Bruno Haible  <bruno@clisp.org>
8176
8177         filemode: Make function declarations usable in C++ mode.
8178         * lib/filemode.h: Enclose function declarations in extern "C" block.
8179         Reported by John W. Eaton <jwe@gnu.org>.
8180
8181 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
8182
8183         save-cwd: no longer include "xgetcwd.h"
8184         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
8185         This avoids a compilation failure in projects that use save-cwd
8186         without also using the xgetcwd module.
8187
8188 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8189
8190         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
8191         This is so that a program like Emacs, which needs only dtoastr,
8192         does not have to bother with distributing and compiling ftoastr
8193         and ldtoastr.
8194         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
8195         * modules/dtoastr, modules/ldtoastr: New files.
8196         * modules/ftoastr: Now works just for 'float'.
8197         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
8198         (Makefile.am): Remove ftoastr.h (not needed and no effect),
8199         dtoastr.c, ldtoastr.c.
8200
8201 2011-01-11  Jim Meyering  <meyering@redhat.com>
8202
8203         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
8204         There is no need to work around the lack of the fchdir function,
8205         since gnulib can now provide a replacement when required.
8206         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
8207         * modules/save-cwd (Depends-on): Add fchdir.
8208
8209 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
8210
8211         openat, save-cwd: avoid xmalloc
8212
8213         This removes a direct (but undocumented) dependency of openat on
8214         xalloc, along with an indirect dependency via save-cwd.  It also
8215         removes a dependency of save-cwd on xgetcwd, and thereby
8216         indirectly on xalloc.  This change causes the openat substitute
8217         to fall back on save_cwd when memory is tight, and for save_cwd to
8218         fail instead of dying when memory is tight, but that's good enough.
8219         Problem and initial idea for fix reported by Bastien Roucaries in
8220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
8221
8222         * lib/openat-proc.c: Include stdlib.h (for malloc), not
8223         xalloc.h (for xmalloc).
8224         (openat_proc_name): Use malloc, not xmalloc.
8225         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
8226         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
8227
8228         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
8229         This avoids heap allocation for file names whose lengths are in
8230         the range 512..1023, with the upper bound increasing to at most
8231         4031 depending on the platform's PATH_MAX.  (We do not want
8232         pathmax.h here as it might supply a non-constant PATH_MAX.)
8233         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
8234         Perhaps they should be moved to malloca.h?
8235         (OPENAT_BUFFER_SIZE): Use them.
8236
8237 2011-01-10  Bruno Haible  <bruno@clisp.org>
8238
8239         doc: Update users.txt.
8240         * users.txt: Add recutils.
8241
8242 2011-01-09  Karl Berry  <karl@gnu.org>
8243
8244         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
8245
8246         * doc/configmake.texi: New file.
8247         * doc/gnulib.texi: Include it.
8248         * modules/configmake: Move documentation from here.
8249
8250 2011-01-09  Bruno Haible  <bruno@clisp.org>
8251
8252         Update to Unicode 6.0.0.
8253         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
8254         (get_lbp): Update for Unicode 6.0.0.
8255         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
8256         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
8257         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
8258         U+11001, U+11038..U+11046. Remove U+06DE.
8259         (uc_width): Fix bounds of planes.
8260         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8261         lib/uniwidth/width.c.
8262         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
8263         trailing whitespace removed.
8264         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
8265         without comments, but with the original copyright notice.
8266         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
8267         * lib/unicase/ignorable.h: Likewise.
8268         * lib/unicase/tocasefold.h: Likewise.
8269         * lib/unicase/tolower.h: Likewise.
8270         * lib/unicase/totitle.h: Likewise.
8271         * lib/unicase/toupper.h: Likewise.
8272         * lib/unictype/bidi_of.h: Likewise.
8273         * lib/unictype/blocks.h: Likewise.
8274         * lib/unictype/categ_C.h: Likewise.
8275         * lib/unictype/categ_Cn.h: Likewise.
8276         * lib/unictype/categ_L.h: Likewise.
8277         * lib/unictype/categ_Ll.h: Likewise.
8278         * lib/unictype/categ_Lm.h: Likewise.
8279         * lib/unictype/categ_Lo.h: Likewise.
8280         * lib/unictype/categ_Lu.h: Likewise.
8281         * lib/unictype/categ_M.h: Likewise.
8282         * lib/unictype/categ_Mc.h: Likewise.
8283         * lib/unictype/categ_Me.h: Likewise.
8284         * lib/unictype/categ_Mn.h: Likewise.
8285         * lib/unictype/categ_N.h: Likewise.
8286         * lib/unictype/categ_Nd.h: Likewise.
8287         * lib/unictype/categ_No.h: Likewise.
8288         * lib/unictype/categ_P.h: Likewise.
8289         * lib/unictype/categ_Po.h: Likewise.
8290         * lib/unictype/categ_S.h: Likewise.
8291         * lib/unictype/categ_Sc.h: Likewise.
8292         * lib/unictype/categ_Sk.h: Likewise.
8293         * lib/unictype/categ_Sm.h: Likewise.
8294         * lib/unictype/categ_So.h: Likewise.
8295         * lib/unictype/categ_of.h: Likewise.
8296         * lib/unictype/combining.h: Likewise.
8297         * lib/unictype/ctype_alnum.h: Likewise.
8298         * lib/unictype/ctype_alpha.h: Likewise.
8299         * lib/unictype/ctype_graph.h: Likewise.
8300         * lib/unictype/ctype_lower.h: Likewise.
8301         * lib/unictype/ctype_print.h: Likewise.
8302         * lib/unictype/ctype_punct.h: Likewise.
8303         * lib/unictype/ctype_upper.h: Likewise.
8304         * lib/unictype/decdigit.h: Likewise.
8305         * lib/unictype/digit.h: Likewise.
8306         * lib/unictype/numeric.h: Likewise.
8307         * lib/unictype/pr_alphabetic.h: Likewise.
8308         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8309         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8310         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8311         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8312         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8313         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8314         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8315         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8316         * lib/unictype/pr_case_ignorable.h: Likewise.
8317         * lib/unictype/pr_cased.h: Likewise.
8318         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
8319         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
8320         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
8321         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
8322         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
8323         * lib/unictype/pr_combining.h: Likewise.
8324         * lib/unictype/pr_composite.h: Likewise.
8325         * lib/unictype/pr_currency_symbol.h: Likewise.
8326         * lib/unictype/pr_decimal_digit.h: Likewise.
8327         * lib/unictype/pr_deprecated.h: Likewise.
8328         * lib/unictype/pr_format_control.h: Likewise.
8329         * lib/unictype/pr_grapheme_base.h: Likewise.
8330         * lib/unictype/pr_grapheme_extend.h: Likewise.
8331         * lib/unictype/pr_grapheme_link.h: Likewise.
8332         * lib/unictype/pr_id_continue.h: Likewise.
8333         * lib/unictype/pr_id_start.h: Likewise.
8334         * lib/unictype/pr_ideographic.h: Likewise.
8335         * lib/unictype/pr_lowercase.h: Likewise.
8336         * lib/unictype/pr_math.h: Likewise.
8337         * lib/unictype/pr_numeric.h: Likewise.
8338         * lib/unictype/pr_other_alphabetic.h: Likewise.
8339         * lib/unictype/pr_other_id_continue.h: Likewise.
8340         * lib/unictype/pr_other_math.h: Likewise.
8341         * lib/unictype/pr_punctuation.h: Likewise.
8342         * lib/unictype/pr_sentence_terminal.h: Likewise.
8343         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8344         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8345         * lib/unictype/pr_unified_ideograph.h: Likewise.
8346         * lib/unictype/pr_uppercase.h: Likewise.
8347         * lib/unictype/pr_xid_continue.h: Likewise.
8348         * lib/unictype/pr_xid_start.h: Likewise.
8349         * lib/unictype/scripts.h: Likewise.
8350         * lib/unictype/scripts_byname.gperf: Likewise.
8351         * lib/unictype/sy_java_ident.h: Likewise.
8352         * lib/unigbrk/gbrkprop.h: Likewise.
8353         * lib/unilbrk/lbrkprop1.h: Likewise.
8354         * lib/unilbrk/lbrkprop2.h: Likewise.
8355         * lib/uninorm/decomposition-table2.h: Likewise.
8356         * lib/uniwbrk/wbrkprop.h: Likewise.
8357         * tests/unicase/test-cased.c: Likewise.
8358         * tests/unicase/test-ignorable.c: Likewise.
8359         * tests/unicase/test-uc_tolower.c: Likewise.
8360         * tests/unicase/test-uc_totitle.c: Likewise.
8361         * tests/unicase/test-uc_toupper.c: Likewise.
8362         * tests/unictype/test-categ_C.c: Likewise.
8363         * tests/unictype/test-categ_Cn.c: Likewise.
8364         * tests/unictype/test-categ_L.c: Likewise.
8365         * tests/unictype/test-categ_Ll.c: Likewise.
8366         * tests/unictype/test-categ_Lm.c: Likewise.
8367         * tests/unictype/test-categ_Lo.c: Likewise.
8368         * tests/unictype/test-categ_Lu.c: Likewise.
8369         * tests/unictype/test-categ_M.c: Likewise.
8370         * tests/unictype/test-categ_Mc.c: Likewise.
8371         * tests/unictype/test-categ_Me.c: Likewise.
8372         * tests/unictype/test-categ_Mn.c: Likewise.
8373         * tests/unictype/test-categ_N.c: Likewise.
8374         * tests/unictype/test-categ_Nd.c: Likewise.
8375         * tests/unictype/test-categ_No.c: Likewise.
8376         * tests/unictype/test-categ_P.c: Likewise.
8377         * tests/unictype/test-categ_Po.c: Likewise.
8378         * tests/unictype/test-categ_S.c: Likewise.
8379         * tests/unictype/test-categ_Sc.c: Likewise.
8380         * tests/unictype/test-categ_Sk.c: Likewise.
8381         * tests/unictype/test-categ_Sm.c: Likewise.
8382         * tests/unictype/test-categ_So.c: Likewise.
8383         * tests/unictype/test-ctype_alnum.c: Likewise.
8384         * tests/unictype/test-ctype_alpha.c: Likewise.
8385         * tests/unictype/test-ctype_graph.c: Likewise.
8386         * tests/unictype/test-ctype_lower.c: Likewise.
8387         * tests/unictype/test-ctype_print.c: Likewise.
8388         * tests/unictype/test-ctype_punct.c: Likewise.
8389         * tests/unictype/test-ctype_upper.c: Likewise.
8390         * tests/unictype/test-decdigit.h: Likewise.
8391         * tests/unictype/test-digit.h: Likewise.
8392         * tests/unictype/test-numeric.h: Likewise.
8393         * tests/unictype/test-pr_alphabetic.c: Likewise.
8394         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8395         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
8396         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
8397         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8398         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8399         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8400         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8401         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8402         * tests/unictype/test-pr_case_ignorable.c: Likewise.
8403         * tests/unictype/test-pr_cased.c: Likewise.
8404         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
8405         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
8406         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
8407         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
8408         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
8409         * tests/unictype/test-pr_combining.c: Likewise.
8410         * tests/unictype/test-pr_composite.c: Likewise.
8411         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8412         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8413         * tests/unictype/test-pr_deprecated.c: Likewise.
8414         * tests/unictype/test-pr_format_control.c: Likewise.
8415         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8416         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8417         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8418         * tests/unictype/test-pr_id_continue.c: Likewise.
8419         * tests/unictype/test-pr_id_start.c: Likewise.
8420         * tests/unictype/test-pr_ideographic.c: Likewise.
8421         * tests/unictype/test-pr_lowercase.c: Likewise.
8422         * tests/unictype/test-pr_math.c: Likewise.
8423         * tests/unictype/test-pr_numeric.c: Likewise.
8424         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8425         * tests/unictype/test-pr_other_id_continue.c: Likewise.
8426         * tests/unictype/test-pr_other_math.c: Likewise.
8427         * tests/unictype/test-pr_punctuation.c: Likewise.
8428         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8429         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8430         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8431         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8432         * tests/unictype/test-pr_uppercase.c: Likewise.
8433         * tests/unictype/test-pr_xid_continue.c: Likewise.
8434         * tests/unictype/test-pr_xid_start.c: Likewise.
8435         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8436         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8437         changes.
8438         * lib/unictype/categ_Cc.h: Likewise.
8439         * lib/unictype/categ_Cf.h: Likewise.
8440         * lib/unictype/categ_Co.h: Likewise.
8441         * lib/unictype/categ_Cs.h: Likewise.
8442         * lib/unictype/categ_Lt.h: Likewise.
8443         * lib/unictype/categ_Nl.h: Likewise.
8444         * lib/unictype/categ_Pc.h: Likewise.
8445         * lib/unictype/categ_Pd.h: Likewise.
8446         * lib/unictype/categ_Pe.h: Likewise.
8447         * lib/unictype/categ_Pf.h: Likewise.
8448         * lib/unictype/categ_Pi.h: Likewise.
8449         * lib/unictype/categ_Ps.h: Likewise.
8450         * lib/unictype/categ_Z.h: Likewise.
8451         * lib/unictype/categ_Zl.h: Likewise.
8452         * lib/unictype/categ_Zp.h: Likewise.
8453         * lib/unictype/categ_Zs.h: Likewise.
8454         * lib/unictype/ctype_blank.h: Likewise.
8455         * lib/unictype/ctype_cntrl.h: Likewise.
8456         * lib/unictype/ctype_digit.h: Likewise.
8457         * lib/unictype/ctype_space.h: Likewise.
8458         * lib/unictype/ctype_xdigit.h: Likewise.
8459         * lib/unictype/mirror.h: Likewise.
8460         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8461         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8462         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8463         * lib/unictype/pr_bidi_control.h: Likewise.
8464         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8465         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8466         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8467         * lib/unictype/pr_bidi_pdf.h: Likewise.
8468         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8469         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8470         * lib/unictype/pr_dash.h: Likewise.
8471         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8472         * lib/unictype/pr_diacritic.h: Likewise.
8473         * lib/unictype/pr_extender.h: Likewise.
8474         * lib/unictype/pr_hex_digit.h: Likewise.
8475         * lib/unictype/pr_hyphen.h: Likewise.
8476         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8477         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8478         * lib/unictype/pr_ignorable_control.h: Likewise.
8479         * lib/unictype/pr_iso_control.h: Likewise.
8480         * lib/unictype/pr_join_control.h: Likewise.
8481         * lib/unictype/pr_left_of_pair.h: Likewise.
8482         * lib/unictype/pr_line_separator.h: Likewise.
8483         * lib/unictype/pr_logical_order_exception.h: Likewise.
8484         * lib/unictype/pr_non_break.h: Likewise.
8485         * lib/unictype/pr_not_a_character.h: Likewise.
8486         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8487         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8488         * lib/unictype/pr_other_id_start.h: Likewise.
8489         * lib/unictype/pr_other_lowercase.h: Likewise.
8490         * lib/unictype/pr_other_uppercase.h: Likewise.
8491         * lib/unictype/pr_paired_punctuation.h: Likewise.
8492         * lib/unictype/pr_paragraph_separator.h: Likewise.
8493         * lib/unictype/pr_pattern_syntax.h: Likewise.
8494         * lib/unictype/pr_pattern_white_space.h: Likewise.
8495         * lib/unictype/pr_private_use.h: Likewise.
8496         * lib/unictype/pr_quotation_mark.h: Likewise.
8497         * lib/unictype/pr_radical.h: Likewise.
8498         * lib/unictype/pr_soft_dotted.h: Likewise.
8499         * lib/unictype/pr_space.h: Likewise.
8500         * lib/unictype/pr_titlecase.h: Likewise.
8501         * lib/unictype/pr_variation_selector.h: Likewise.
8502         * lib/unictype/pr_white_space.h: Likewise.
8503         * lib/unictype/pr_zero_width.h: Likewise.
8504         * lib/unictype/sy_c_ident.h: Likewise.
8505         * lib/unictype/sy_c_whitespace.h: Likewise.
8506         * lib/unictype/sy_java_whitespace.h: Likewise.
8507         * lib/uninorm/composition-table.gperf: Likewise.
8508         * lib/uninorm/decomposition-table1.h: Likewise.
8509         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
8510         LB8.
8511         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8512         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8513         * modules/unictype/*: Bump version number of expected libunistring
8514         version.
8515
8516 2011-01-09  Bruno Haible  <bruno@clisp.org>
8517
8518         Update to Unicode 5.2.0.
8519         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
8520         trailing whitespace removed.
8521
8522 2011-01-09  Bruno Haible  <bruno@clisp.org>
8523
8524         New Unicode character properties, from Unicode 5.2.0.
8525         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
8526         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
8527         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
8528         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
8529         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
8530         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
8531         uc_is_property_cased, uc_is_property_case_ignorable,
8532         uc_is_property_changes_when_lowercased,
8533         uc_is_property_changes_when_uppercased,
8534         uc_is_property_changes_when_titlecased,
8535         uc_is_property_changes_when_casefolded,
8536         uc_is_property_changes_when_casemapped): New declarations.
8537         * lib/unictype/pr_byname.gperf: Add the new properties.
8538         * modules/unictype/property-byname (Depends-on): Depend on the new
8539         properties modules.
8540         * modules/unictype/property-all (Depends-on): Likewise.
8541         * MODULES.html.sh (Unicode string functions): Add
8542         unictype/property-case-ignorable, unictype/property-cased,
8543         unictype/property-changes-when-casefolded,
8544         unictype/property-changes-when-casemapped,
8545         unictype/property-changes-when-lowercased,
8546         unictype/property-changes-when-titlecased,
8547         unictype/property-changes-when-uppercased.
8548
8549         New module 'unictype/property-changes-when-casemapped'.
8550         * modules/unictype/property-changes-when-casemapped: New file.
8551         * lib/unictype/pr_changes_when_casemapped.c: New file.
8552         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
8553         generated by gen-uni-tables.
8554         * modules/unictype/property-changes-when-casemapped-tests: New file.
8555         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
8556         automatically generated by gen-uni-tables.
8557
8558         New module 'unictype/property-changes-when-casefolded'.
8559         * modules/unictype/property-changes-when-casefolded: New file.
8560         * lib/unictype/pr_changes_when_casefolded.c: New file.
8561         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
8562         generated by gen-uni-tables.
8563         * modules/unictype/property-changes-when-casefolded-tests: New file.
8564         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
8565         automatically generated by gen-uni-tables.
8566
8567         New module 'unictype/property-changes-when-titlecased'.
8568         * modules/unictype/property-changes-when-titlecased: New file.
8569         * lib/unictype/pr_changes_when_titlecased.c: New file.
8570         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
8571         generated by gen-uni-tables.
8572         * modules/unictype/property-changes-when-titlecased-tests: New file.
8573         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
8574         automatically generated by gen-uni-tables.
8575
8576         New module 'unictype/property-changes-when-uppercased'.
8577         * modules/unictype/property-changes-when-uppercased: New file.
8578         * lib/unictype/pr_changes_when_uppercased.c: New file.
8579         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
8580         generated by gen-uni-tables.
8581         * modules/unictype/property-changes-when-uppercased-tests: New file.
8582         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
8583         automatically generated by gen-uni-tables.
8584
8585         New module 'unictype/property-changes-when-lowercased'.
8586         * modules/unictype/property-changes-when-lowercased: New file.
8587         * lib/unictype/pr_changes_when_lowercased.c: New file.
8588         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
8589         generated by gen-uni-tables.
8590         * modules/unictype/property-changes-when-lowercased-tests: New file.
8591         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
8592         automatically generated by gen-uni-tables.
8593
8594         New module 'unictype/property-case-ignorable'.
8595         * modules/unictype/property-case-ignorable: New file.
8596         * lib/unictype/pr_case_ignorable.c: New file.
8597         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
8598         by gen-uni-tables.
8599         * modules/unictype/property-case-ignorable-tests: New file.
8600         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
8601         generated by gen-uni-tables.
8602
8603         New module 'unictype/property-cased'.
8604         * modules/unictype/property-cased: New file.
8605         * lib/unictype/pr_cased.c: New file.
8606         * lib/unictype/pr_cased.h: New file, automatically generated by
8607         gen-uni-tables.
8608         * modules/unictype/property-cased-tests: New file.
8609         * tests/unictype/test-pr_cased.c: New file, automatically generated by
8610         gen-uni-tables.
8611
8612 2011-01-09  Bruno Haible  <bruno@clisp.org>
8613
8614         Update to Unicode 5.2.0.
8615         * lib/gen-uni-tables.c (output_predicate, output_category,
8616         output_combclass, output_bidi_category, output_decimal_digit_test,
8617         output_decimal_digit, output_digit_test, output_digit,
8618         output_numeric_test, output_numeric, output_mirror, output_scripts,
8619         output_scripts_byname, output_blocks, output_ident_category): Fix
8620         comment header.
8621         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
8622         get_wbp.
8623         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
8624         items.
8625         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
8626         Changes_When_Lowercased, Changes_When_Uppercased,
8627         Changes_When_Titlecased, Changes_When_Casefolded,
8628         Changes_When_Casemapped.
8629         (is_property_alphabetic, is_property_default_ignorable_code_point):
8630         Update for Unicode 5.2.0.
8631         (is_property_cased, is_property_case_ignorable,
8632         is_property_changes_when_lowercased,
8633         is_property_changes_when_uppercased,
8634         is_property_changes_when_titlecased,
8635         is_property_changes_when_casefolded,
8636         is_property_changes_when_casemapped): New functions.
8637         (output_properties): Output also the properties cased, case_ignorable,
8638         changes_when_lowercased, changes_when_uppercased,
8639         changes_when_titlecased, changes_when_casefolded,
8640         changes_when_casemapped.
8641         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
8642         Unicode TR#11 revision 17 -> 19.
8643         (LBP_CP): New enumeration value.
8644         (LBP_*): Adjust values accordingly.
8645         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8646         TR#14 revision 22 -> 24.
8647         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
8648         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
8649         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
8650         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
8651         is_WBP_MIDLETTER.
8652         (output_composition_tables): Allow for 24 bits instead of 16 bits in
8653         the code1 and code2 of each composition rule.
8654         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
8655         * lib/unicase/ignorable.h: Likewise.
8656         * lib/unicase/tocasefold.h: Likewise.
8657         * lib/unicase/tolower.h: Likewise.
8658         * lib/unicase/totitle.h: Likewise.
8659         * lib/unicase/toupper.h: Likewise.
8660         * lib/unictype/bidi_of.h: Likewise.
8661         * lib/unictype/blocks.h: Likewise.
8662         * lib/unictype/categ_C.h: Likewise.
8663         * lib/unictype/categ_Cf.h: Likewise.
8664         * lib/unictype/categ_Cn.h: Likewise.
8665         * lib/unictype/categ_L.h: Likewise.
8666         * lib/unictype/categ_Ll.h: Likewise.
8667         * lib/unictype/categ_Lm.h: Likewise.
8668         * lib/unictype/categ_Lo.h: Likewise.
8669         * lib/unictype/categ_Lu.h: Likewise.
8670         * lib/unictype/categ_M.h: Likewise.
8671         * lib/unictype/categ_Mc.h: Likewise.
8672         * lib/unictype/categ_Mn.h: Likewise.
8673         * lib/unictype/categ_N.h: Likewise.
8674         * lib/unictype/categ_Nd.h: Likewise.
8675         * lib/unictype/categ_Nl.h: Likewise.
8676         * lib/unictype/categ_No.h: Likewise.
8677         * lib/unictype/categ_P.h: Likewise.
8678         * lib/unictype/categ_Pd.h: Likewise.
8679         * lib/unictype/categ_Po.h: Likewise.
8680         * lib/unictype/categ_S.h: Likewise.
8681         * lib/unictype/categ_Sc.h: Likewise.
8682         * lib/unictype/categ_So.h: Likewise.
8683         * lib/unictype/categ_of.h: Likewise.
8684         * lib/unictype/combining.h: Likewise.
8685         * lib/unictype/ctype_alnum.h: Likewise.
8686         * lib/unictype/ctype_alpha.h: Likewise.
8687         * lib/unictype/ctype_graph.h: Likewise.
8688         * lib/unictype/ctype_lower.h: Likewise.
8689         * lib/unictype/ctype_print.h: Likewise.
8690         * lib/unictype/ctype_punct.h: Likewise.
8691         * lib/unictype/ctype_upper.h: Likewise.
8692         * lib/unictype/decdigit.h: Likewise.
8693         * lib/unictype/digit.h: Likewise.
8694         * lib/unictype/numeric.h: Likewise.
8695         * lib/unictype/pr_alphabetic.h: Likewise.
8696         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
8697         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
8698         * lib/unictype/pr_bidi_european_digit.h: Likewise.
8699         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
8700         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
8701         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
8702         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
8703         * lib/unictype/pr_combining.h: Likewise.
8704         * lib/unictype/pr_composite.h: Likewise.
8705         * lib/unictype/pr_currency_symbol.h: Likewise.
8706         * lib/unictype/pr_dash.h: Likewise.
8707         * lib/unictype/pr_decimal_digit.h: Likewise.
8708         * lib/unictype/pr_deprecated.h: Likewise.
8709         * lib/unictype/pr_diacritic.h: Likewise.
8710         * lib/unictype/pr_extender.h: Likewise.
8711         * lib/unictype/pr_grapheme_base.h: Likewise.
8712         * lib/unictype/pr_grapheme_extend.h: Likewise.
8713         * lib/unictype/pr_grapheme_link.h: Likewise.
8714         * lib/unictype/pr_id_continue.h: Likewise.
8715         * lib/unictype/pr_id_start.h: Likewise.
8716         * lib/unictype/pr_ideographic.h: Likewise.
8717         * lib/unictype/pr_ignorable_control.h: Likewise.
8718         * lib/unictype/pr_logical_order_exception.h: Likewise.
8719         * lib/unictype/pr_lowercase.h: Likewise.
8720         * lib/unictype/pr_numeric.h: Likewise.
8721         * lib/unictype/pr_other_alphabetic.h: Likewise.
8722         * lib/unictype/pr_punctuation.h: Likewise.
8723         * lib/unictype/pr_sentence_terminal.h: Likewise.
8724         * lib/unictype/pr_terminal_punctuation.h: Likewise.
8725         * lib/unictype/pr_unassigned_code_value.h: Likewise.
8726         * lib/unictype/pr_unified_ideograph.h: Likewise.
8727         * lib/unictype/pr_uppercase.h: Likewise.
8728         * lib/unictype/pr_xid_continue.h: Likewise.
8729         * lib/unictype/pr_xid_start.h: Likewise.
8730         * lib/unictype/pr_zero_width.h: Likewise.
8731         * lib/unictype/scripts.h: Likewise.
8732         * lib/unictype/scripts_byname.gperf: Likewise.
8733         * lib/unictype/sy_java_ident.h: Likewise.
8734         * lib/unigbrk/gbrkprop.h: Likewise.
8735         * lib/unilbrk/lbrkprop1.h: Likewise.
8736         * lib/unilbrk/lbrkprop2.h: Likewise.
8737         * lib/unilbrk/lbrktables.h: Likewise.
8738         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
8739         LBP_CP. Implement rule LB30.
8740         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
8741         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
8742         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
8743         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
8744         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
8745         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
8746         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
8747         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
8748         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
8749         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
8750         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
8751         bits instead of 16 bits in the code1 and code2 of each composition
8752         rule.
8753         (uc_composition): Update for Unicode 5.2.0.
8754         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
8755         * lib/uninorm/decomposition-table2.h: Likewise.
8756         * lib/uniwbrk/wbrkprop.h: Likewise.
8757         * tests/unicase/test-cased.c: Likewise.
8758         * tests/unicase/test-ignorable.c: Likewise.
8759         * tests/unicase/test-uc_tolower.c: Likewise.
8760         * tests/unicase/test-uc_totitle.c: Likewise.
8761         * tests/unicase/test-uc_toupper.c: Likewise.
8762         * tests/unictype/test-categ_C.c: Likewise.
8763         * tests/unictype/test-categ_Cf.c: Likewise.
8764         * tests/unictype/test-categ_Cn.c: Likewise.
8765         * tests/unictype/test-categ_L.c: Likewise.
8766         * tests/unictype/test-categ_Ll.c: Likewise.
8767         * tests/unictype/test-categ_Lm.c: Likewise.
8768         * tests/unictype/test-categ_Lo.c: Likewise.
8769         * tests/unictype/test-categ_Lu.c: Likewise.
8770         * tests/unictype/test-categ_M.c: Likewise.
8771         * tests/unictype/test-categ_Mc.c: Likewise.
8772         * tests/unictype/test-categ_Mn.c: Likewise.
8773         * tests/unictype/test-categ_N.c: Likewise.
8774         * tests/unictype/test-categ_Nd.c: Likewise.
8775         * tests/unictype/test-categ_Nl.c: Likewise.
8776         * tests/unictype/test-categ_No.c: Likewise.
8777         * tests/unictype/test-categ_P.c: Likewise.
8778         * tests/unictype/test-categ_Pd.c: Likewise.
8779         * tests/unictype/test-categ_Po.c: Likewise.
8780         * tests/unictype/test-categ_S.c: Likewise.
8781         * tests/unictype/test-categ_Sc.c: Likewise.
8782         * tests/unictype/test-categ_So.c: Likewise.
8783         * tests/unictype/test-ctype_alnum.c: Likewise.
8784         * tests/unictype/test-ctype_alpha.c: Likewise.
8785         * tests/unictype/test-ctype_graph.c: Likewise.
8786         * tests/unictype/test-ctype_lower.c: Likewise.
8787         * tests/unictype/test-ctype_print.c: Likewise.
8788         * tests/unictype/test-ctype_punct.c: Likewise.
8789         * tests/unictype/test-ctype_upper.c: Likewise.
8790         * tests/unictype/test-decdigit.h: Likewise.
8791         * tests/unictype/test-digit.h: Likewise.
8792         * tests/unictype/test-numeric.h: Likewise.
8793         * tests/unictype/test-pr_alphabetic.c: Likewise.
8794         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
8795         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
8796         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
8797         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
8798         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
8799         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
8800         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
8801         * tests/unictype/test-pr_combining.c: Likewise.
8802         * tests/unictype/test-pr_composite.c: Likewise.
8803         * tests/unictype/test-pr_currency_symbol.c: Likewise.
8804         * tests/unictype/test-pr_dash.c: Likewise.
8805         * tests/unictype/test-pr_decimal_digit.c: Likewise.
8806         * tests/unictype/test-pr_deprecated.c: Likewise.
8807         * tests/unictype/test-pr_diacritic.c: Likewise.
8808         * tests/unictype/test-pr_extender.c: Likewise.
8809         * tests/unictype/test-pr_grapheme_base.c: Likewise.
8810         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
8811         * tests/unictype/test-pr_grapheme_link.c: Likewise.
8812         * tests/unictype/test-pr_id_continue.c: Likewise.
8813         * tests/unictype/test-pr_id_start.c: Likewise.
8814         * tests/unictype/test-pr_ideographic.c: Likewise.
8815         * tests/unictype/test-pr_ignorable_control.c: Likewise.
8816         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
8817         * tests/unictype/test-pr_lowercase.c: Likewise.
8818         * tests/unictype/test-pr_numeric.c: Likewise.
8819         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
8820         * tests/unictype/test-pr_punctuation.c: Likewise.
8821         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
8822         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
8823         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
8824         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
8825         * tests/unictype/test-pr_uppercase.c: Likewise.
8826         * tests/unictype/test-pr_xid_continue.c: Likewise.
8827         * tests/unictype/test-pr_xid_start.c: Likewise.
8828         * tests/unictype/test-pr_zero_width.c: Likewise.
8829         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
8830         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
8831         changed behaviour: line breaking is now disallowed between a letter
8832         or '=' and '('.
8833         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
8834         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
8835         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
8836         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
8837         * tests/uniwidth/test-uc_width2.sh: Same updates as in
8838         lib/uniwidth/width.c.
8839         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
8840         without comments, but with the original copyright notice.
8841         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
8842         changes.
8843         * lib/unictype/categ_Cc.h: Likewise.
8844         * lib/unictype/categ_Co.h: Likewise.
8845         * lib/unictype/categ_Cs.h: Likewise.
8846         * lib/unictype/categ_Lt.h: Likewise.
8847         * lib/unictype/categ_Me.h: Likewise.
8848         * lib/unictype/categ_Pc.h: Likewise.
8849         * lib/unictype/categ_Pe.h: Likewise.
8850         * lib/unictype/categ_Pf.h: Likewise.
8851         * lib/unictype/categ_Pi.h: Likewise.
8852         * lib/unictype/categ_Ps.h: Likewise.
8853         * lib/unictype/categ_Sk.h: Likewise.
8854         * lib/unictype/categ_Sm.h: Likewise.
8855         * lib/unictype/categ_Z.h: Likewise.
8856         * lib/unictype/categ_Zl.h: Likewise.
8857         * lib/unictype/categ_Zp.h: Likewise.
8858         * lib/unictype/categ_Zs.h: Likewise.
8859         * lib/unictype/ctype_blank.h: Likewise.
8860         * lib/unictype/ctype_cntrl.h: Likewise.
8861         * lib/unictype/ctype_digit.h: Likewise.
8862         * lib/unictype/ctype_space.h: Likewise.
8863         * lib/unictype/ctype_xdigit.h: Likewise.
8864         * lib/unictype/mirror.h: Likewise.
8865         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
8866         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
8867         * lib/unictype/pr_bidi_block_separator.h: Likewise.
8868         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
8869         * lib/unictype/pr_bidi_common_separator.h: Likewise.
8870         * lib/unictype/pr_bidi_control.h: Likewise.
8871         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
8872         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
8873         * lib/unictype/pr_bidi_pdf.h: Likewise.
8874         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
8875         * lib/unictype/pr_bidi_whitespace.h: Likewise.
8876         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
8877         * lib/unictype/pr_format_control.h: Likewise.
8878         * lib/unictype/pr_hex_digit.h: Likewise.
8879         * lib/unictype/pr_hyphen.h: Likewise.
8880         * lib/unictype/pr_ids_binary_operator.h: Likewise.
8881         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
8882         * lib/unictype/pr_iso_control.h: Likewise.
8883         * lib/unictype/pr_join_control.h: Likewise.
8884         * lib/unictype/pr_left_of_pair.h: Likewise.
8885         * lib/unictype/pr_line_separator.h: Likewise.
8886         * lib/unictype/pr_math.h: Likewise.
8887         * lib/unictype/pr_non_break.h: Likewise.
8888         * lib/unictype/pr_not_a_character.h: Likewise.
8889         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
8890         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
8891         * lib/unictype/pr_other_id_continue.h: Likewise.
8892         * lib/unictype/pr_other_id_start.h: Likewise.
8893         * lib/unictype/pr_other_lowercase.h: Likewise.
8894         * lib/unictype/pr_other_math.h: Likewise.
8895         * lib/unictype/pr_other_uppercase.h: Likewise.
8896         * lib/unictype/pr_paired_punctuation.h: Likewise.
8897         * lib/unictype/pr_paragraph_separator.h: Likewise.
8898         * lib/unictype/pr_pattern_syntax.h: Likewise.
8899         * lib/unictype/pr_pattern_white_space.h: Likewise.
8900         * lib/unictype/pr_private_use.h: Likewise.
8901         * lib/unictype/pr_quotation_mark.h: Likewise.
8902         * lib/unictype/pr_radical.h: Likewise.
8903         * lib/unictype/pr_soft_dotted.h: Likewise.
8904         * lib/unictype/pr_space.h: Likewise.
8905         * lib/unictype/pr_titlecase.h: Likewise.
8906         * lib/unictype/pr_variation_selector.h: Likewise.
8907         * lib/unictype/pr_white_space.h: Likewise.
8908         * lib/unictype/sy_c_ident.h: Likewise.
8909         * lib/unictype/sy_c_whitespace.h: Likewise.
8910         * lib/unictype/sy_java_whitespace.h: Likewise.
8911         * modules/uni*/*: Bump version number of expected libunistring version.
8912         Reported by Simon Josefsson.
8913
8914 2011-01-09  Karl Heuer  <kwzh@gnu.org>
8915
8916         useless-if-before-free: fix typo in --help and make the internal,
8917         automatic version date update process work once again.
8918         --help output contained a NUL character instead of the
8919         backslash-zero that was intended.  Also, the "must lie within
8920         the first 8 lines" line is on line 9, and hence not getting
8921         automatically updated.
8922         * build-aux/useless-if-before-free: Fix the former by adding a
8923         backslash, and the latter by condensing the three lines of what-it-does
8924         to a single line, leaving one line of slack for the future.
8925
8926 2011-01-09  Bruno Haible  <bruno@clisp.org>
8927
8928         uniwidth/width: Fix width of U+1D173..U+1D17A.
8929         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
8930         symbolic_width, output_width_property_test): New functions.
8931         (main): Invoke output_nonspacing_property, output_width_property_test.
8932         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
8933         U+1D173..U+1D17A.
8934         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
8935         1.
8936         * modules/uniwidth/*: Bump version number of expected libunistring
8937         version.
8938         * modules/unilbrk/*: Likewise.
8939
8940 2011-01-08  Bruno Haible  <bruno@clisp.org>
8941
8942         uninorm tests: Preserve copyright of Unicode data file.
8943         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
8944         Mention modifications.
8945
8946 2011-01-08  Bruno Haible  <bruno@clisp.org>
8947
8948         gen-uni-tables: Prepare for Unicode 5.2.0.
8949         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
8950         (debug_output_lbp, output_lbp): Update.
8951
8952 2011-01-08  Bruno Haible  <bruno@clisp.org>
8953
8954         unilbrk: Clarify gen-uni-tables.c code.
8955         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
8956         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
8957         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
8958
8959 2011-01-07  Bruno Haible  <bruno@clisp.org>
8960
8961         strtod: Restore errno when successfully parsing Infinity or NaN.
8962         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
8963         restore the original errno.
8964
8965 2011-01-07  Bruno Haible  <bruno@clisp.org>
8966
8967         remove test: Avoid failure on HP-UX 11.
8968         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
8969
8970 2011-01-07  Bruno Haible  <bruno@clisp.org>
8971
8972         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
8973         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
8974         error code.
8975
8976 2011-01-07  Pádraig Brady <P@draigBrady.com>
8977
8978         ignore-value: fixup comments, and add Eric Blake
8979         as an author since he rewrote the macros.
8980         * lib/ignore-value.h (ignore_value):  State that
8981         we now support aggregates.  Also specify exactly
8982         when the GCC warn_unused_result feature was added.
8983
8984 2011-01-06  Eric Blake  <eblake@redhat.com>
8985
8986         ignore-value: support aggregate types
8987         * lib/ignore-value.h (ignore_value): Provide separate gcc
8988         definition.
8989         * modules/ignore-value-tests: New test module.
8990         * tests/test-ignore-value.c: New test.
8991
8992         maint.mk: improve sc_prohibit_strcmp regex
8993         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
8994         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
8995         definition of STRNEQ.
8996
8997         signal: work around Haiku issue with SIGBUS
8998         * lib/siglist.h: Add comment.
8999         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
9000         strsignal's favoring of SIGSEGV.
9001         * tests/test-signal.c (main): Avoid test failure.
9002         * doc/posix-headers/signal.texi (signal.h): Document the issue.
9003         Reported by Scott McCreary.
9004
9005         maint.mk: add pre-release check to ensure submodule commits are public
9006         * top/maint.mk (public-submodule-commit): New rule.
9007         (submodule-checks): New variable.
9008         (alpha beta stable): Depend on the variable.
9009
9010 2011-01-05  Pádraig Brady <P@draigBrady.com>
9011         and Jim Meyering  <meyering@redhat.com>
9012
9013         ignore-value: make ignore_value more generic; deprecate ignore_ptr
9014         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
9015         (ATTRIBUTE_DEPRECATED): Define.
9016         (_ignore_case): New function.
9017         (ignore_value): New macro, to replace the old function.
9018         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
9019         * modules/ignore-value (Depends-on): Add stdint.
9020
9021 2011-01-04  Eric Blake  <eblake@redhat.com>
9022
9023         doc: regenerate INSTALL
9024         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
9025         @firstparagraphindent support, now that autoconf dropped it.
9026         (INSTALL_PRELUDE): Reinstate old macro.
9027         * doc/install.texi: Resync from autoconf.
9028         * doc/INSTALL: Reflect recent autoconf update.
9029         * doc/INSTALL.ISO: Likewise.
9030         * doc/INSTALL.UTF-8: Likewise.
9031         Reported by Karl Berry.
9032
9033 2011-01-04  Bruce Korb  <address@hidden>
9034
9035         git-version-gen: avoid a sub-shell
9036         * build-aux/git-version-gen: Redirect stderr in `...` via
9037         "exec 2>...", rather than via an added sub-shell.
9038
9039 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
9040
9041         git-version-gen: use (...) rather than sh -c '...'
9042         * build-aux/git-version-gen: Rather than hard-coding a shell's name
9043         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
9044
9045 2011-01-03  Jim Meyering  <meyering@redhat.com>
9046
9047         git-version-gen: convert leading TABs to spaces
9048         * build-aux/git-version-gen: Expand leading TABs.
9049
9050         git-version-gen: handle failed "git rev-list"
9051         * build-aux/git-version-gen: Rather than leaking a "fatal" error
9052         from git and proceeding as if it had succeeded but printed no SHA1
9053         checksums, suppress the diagnostic and handle the failure.
9054         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
9055
9056         git-version-gen: include command name in one more diagnostic
9057         * build-aux/git-version-gen: When the required .tarball-version file
9058         was missing or unreadable, you might see the diagnostic from "cat",
9059         but no trace of the name of the invoking script.  Now, you still see
9060         the diagnostic from cat, but also get one from "git-version-gen: ".
9061         Inspired by a patch from Bruce Korb.
9062
9063         update-copyright: adjust test to match changed code
9064         * tests/test-update-copyright.sh: Change test's expected output
9065         to match new actual output.
9066
9067 2011-01-02  Bruno Haible  <bruno@clisp.org>
9068
9069         getlogin_r: Avoid test failure on HP-UX 11.
9070         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
9071         ERANGE when the second argument is zero.
9072         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
9073         portability problem.
9074
9075 2011-01-02  Bruce Korb  <bkorb@gnu.org>
9076
9077         * build-aux/update-copyright: doc Simon's changes
9078
9079 2011-01-02  Simon Josefsson  <simon@josefsson.org>
9080
9081         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
9082         environment variable.
9083
9084 2011-01-02  Bruno Haible  <bruno@clisp.org>
9085
9086         unigbrk: Avoid gcc warnings.
9087         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
9088         unused variable.
9089         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
9090         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
9091         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
9092         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
9093         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
9094         Change type of first argument to 'const char *'.
9095         (main): Remove unused variable.
9096         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
9097         type of first argument to 'const char *'.
9098         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
9099         Likewise.
9100         (main): Change type of variable 's'.
9101         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
9102         to 'int'.
9103
9104 2011-01-02  Bruno Haible  <bruno@clisp.org>
9105
9106         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
9107         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
9108         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
9109         bug.
9110         * lib/pwrite.c: Undo 2010-12-31 patch.
9111         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
9112
9113 2011-01-02  Bruno Haible  <bruno@clisp.org>
9114
9115         pread: Fix test whether it works.
9116         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
9117
9118 2011-01-02  Bruno Haible  <bruno@clisp.org>
9119
9120         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
9121         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
9122         ends in "6". Don't require a specific month name. Try also the locale
9123         names found on HP-UX 11 and Solaris 7.
9124
9125 2011-01-02  Bruno Haible  <bruno@clisp.org>
9126
9127         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
9128         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
9129         C linkage.
9130         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
9131
9132 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9133
9134         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
9135         for consistency, since the "cluster" term is not used elsewhere.
9136         * lib/unigbrk.in.h: Update name.
9137         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
9138         * lib/unigbrk/u16-grapheme-next.c: Update name.
9139         * lib/unigbrk/u16-grapheme-prev.c: Update name.
9140         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
9141         * lib/unigbrk/u32-grapheme-next.c: Update name.
9142         * lib/unigbrk/u32-grapheme-prev.c: Update name.
9143         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
9144         * lib/unigbrk/u8-grapheme-next.c: Update name.
9145         * lib/unigbrk/u8-grapheme-prev.c: Update name.
9146         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
9147         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
9148         Suggested by Bruno Haible.
9149
9150 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9151
9152         Remove module 'u8-grapheme-len' as too redundant with
9153         'u8-grapheme-next'.
9154         * modules/unigbrk/u8-grapheme-len: Delete file.
9155         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
9156         * lib/unigbrk.in.h: Remove prototype for deleted function.
9157         * lib/unigbrk/u8-grapheme-len.c: Delete file.
9158         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
9159
9160         Remove module 'u16-grapheme-len' as too redundant with
9161         'u16-grapheme-next'.
9162         * modules/unigbrk/u16-grapheme-len: Delete file.
9163         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
9164         * lib/unigbrk.in.h: Remove prototype for deleted function.
9165         * lib/unigbrk/u16-grapheme-len.c: Delete file.
9166         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
9167
9168         Remove module 'u32-grapheme-len' as too redundant with
9169         'u32-grapheme-next'.
9170         * modules/unigbrk/u32-grapheme-len: Delete file.
9171         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
9172         * lib/unigbrk.in.h: Remove prototype for deleted function.
9173         * lib/unigbrk/u32-grapheme-len.c: Delete file.
9174         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
9175
9176         Suggested by Bruno Haible.
9177
9178 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
9179
9180         * unigbrk.in.h: Fix typo: "ben" => "been".
9181         Reported by Bruno Haible.
9182
9183 2011-01-01  Jim Meyering  <meyering@redhat.com>
9184
9185         maint: update almost all copyright ranges to include 2011
9186         Run the new "make update-copyright" rule.
9187
9188 2011-01-01  Jim Meyering  <meyering@redhat.com>
9189
9190         maint: update-copyright: exempt doc/INSTALL*
9191         * Makefile (update-copyright): Also exclude doc/INSTALL*,
9192         since they are generated.  Suggested by Bruno Haible.
9193
9194 2011-01-01  Jim Meyering  <meyering@redhat.com>
9195
9196         maint: refine the update-copyright rule
9197         * Makefile (update-copyright): Also exclude any file that includes
9198         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
9199         code that merely generates the comment.
9200
9201 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9202
9203         New module 'u8-grapheme-len'.
9204         * modules/unigbrk/u8-grapheme-len: New file.
9205         * modules/unigbrk/u8-grapheme-len-tests: New file.
9206         * lib/unigbrk.in.h: Add prototype for new function.
9207         * lib/unigbrk/u8-grapheme-len.c: New file.
9208         * tests/unigbrk/test-u8-grapheme-len.c: New file.
9209
9210         New module 'u16-grapheme-len'.
9211         * modules/unigbrk/u16-grapheme-len: New file.
9212         * modules/unigbrk/u16-grapheme-len-tests: New file.
9213         * lib/unigbrk.in.h: Add prototype for new function.
9214         * lib/unigbrk/u16-grapheme-len.c: New file.
9215         * tests/unigbrk/test-u16-grapheme-len.c: New file.
9216
9217         New module 'u32-grapheme-len'.
9218         * modules/unigbrk/u32-grapheme-len: New file.
9219         * modules/unigbrk/u32-grapheme-len-tests: New file.
9220         * lib/unigbrk.in.h: Add prototype for new function.
9221         * lib/unigbrk/u32-grapheme-len.c: New file.
9222         * tests/unigbrk/test-u32-grapheme-len.c: New file.
9223
9224         New module 'u8-grapheme-next'.
9225         * modules/unigbrk/u8-grapheme-next: New file.
9226         * modules/unigbrk/u8-grapheme-next-tests: New file.
9227         * lib/unigbrk.in.h: Add prototype for new function.
9228         * lib/unigbrk/u8-grapheme-next.c: New file.
9229         * tests/unigbrk/test-u8-grapheme-next.c: New file.
9230
9231         New module 'u16-grapheme-next'.
9232         * modules/unigbrk/u16-grapheme-next: New file.
9233         * modules/unigbrk/u16-grapheme-next-tests: New file.
9234         * lib/unigbrk.in.h: Add prototype for new function.
9235         * lib/unigbrk/u16-grapheme-next.c: New file.
9236         * tests/unigbrk/test-u16-grapheme-next.c: New file.
9237
9238         New module 'u32-grapheme-next'.
9239         * modules/unigbrk/u32-grapheme-next: New file.
9240         * modules/unigbrk/u32-grapheme-next-tests: New file.
9241         * lib/unigbrk.in.h: Add prototype for new function.
9242         * lib/unigbrk/u32-grapheme-next.c: New file.
9243         * tests/unigbrk/test-u32-grapheme-next.c: New file.
9244
9245         New module 'u8-grapheme-prev'.
9246         * modules/unigbrk/u8-grapheme-prev: New file.
9247         * modules/unigbrk/u8-grapheme-prev-tests: New file.
9248         * lib/unigbrk.in.h: Add prototype for new function.
9249         * lib/unigbrk/u8-grapheme-prev.c: New file.
9250         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
9251
9252         New module 'u16-grapheme-prev'.
9253         * modules/unigbrk/u16-grapheme-prev: New file.
9254         * modules/unigbrk/u16-grapheme-prev-tests: New file.
9255         * lib/unigbrk.in.h: Add prototype for new function.
9256         * lib/unigbrk/u16-grapheme-prev.c: New file.
9257         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
9258
9259         New module 'u32-grapheme-prev'.
9260         * modules/unigbrk/u32-grapheme-prev: New file.
9261         * modules/unigbrk/u32-grapheme-prev-tests: New file.
9262         * lib/unigbrk.in.h: Add prototype for new function.
9263         * lib/unigbrk/u32-grapheme-prev.c: New file.
9264         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
9265
9266         New module 'u8-grapheme-breaks'.
9267         * modules/unigbrk/u8-grapheme-breaks: New file.
9268         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
9269         * lib/unigbrk.in.h: Add prototype for new function.
9270         * lib/unigbrk/u8-grapheme-breaks.c: New file.
9271         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
9272
9273         New module 'u16-grapheme-breaks'.
9274         * modules/unigbrk/u16-grapheme-breaks: New file.
9275         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
9276         * lib/unigbrk.in.h: Add prototype for new function.
9277         * lib/unigbrk/u16-grapheme-breaks.c: New file.
9278         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
9279
9280         New module 'u32-grapheme-breaks'.
9281         * modules/unigbrk/u32-grapheme-breaks: New file.
9282         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
9283         * lib/unigbrk.in.h: Add prototype for new function.
9284         * lib/unigbrk/u32-grapheme-breaks.c: New file.
9285         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
9286
9287         New module 'ulc-grapheme-breaks'.
9288         * modules/unigbrk/ulc-grapheme-breaks: New file.
9289         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
9290         * m4/locale-ar.m4: New file.
9291         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
9292         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
9293         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
9294
9295 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
9296
9297         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
9298         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
9299         modified how this file was generated before I initially submitted
9300         the module, but failed to regenerate it.  This meant that several
9301         of the level2 entries were wrong.
9302         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
9303         Remove the division-by-2 that is folded into the table now that
9304         gbrkprop.h has been regenerated properly.  Now -1 entries are
9305         handled correctly.
9306
9307         New module 'unigbrk/uc-gbrk-prop-tests'.
9308         * modules/unigbrk/uc-gbrk-prop-tests: New file.
9309         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
9310         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
9311         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
9312
9313 2011-01-01  Bruno Haible  <bruno@clisp.org>
9314
9315         Avoid use of hexadecimal escapes.
9316         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
9317         instead of hexadecimal escapes.
9318
9319 2011-01-01  Jim Meyering  <meyering@redhat.com>
9320
9321         maint: new rule to update copyright year ranges
9322         * Makefile (update-copyright): New rule.
9323
9324         maint: indent with TABs in Makefile
9325         * Makefile: Expand leading sequences of spaces to TABs
9326
9327         version-etc: update the copyright year it reports
9328         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
9329
9330 2010-12-31  Bruno Haible  <bruno@clisp.org>
9331
9332         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
9333         * lib/isfinite.c (zerof, zerod, zerol): New variables.
9334         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
9335         zero.
9336
9337 2010-12-31  Bruno Haible  <bruno@clisp.org>
9338
9339         pwrite: Work around HP-UX 11.11 bug.
9340         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
9341         works and set REPLACE_PWRITE if not.
9342         * lib/pwrite.c (pwrite): Add an implementation that uses the system
9343         function.
9344         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
9345
9346 2010-12-31  Bruno Haible  <bruno@clisp.org>
9347
9348         pread: Work around HP-UX 11 bugs.
9349         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
9350         and set REPLACE_PREAD if not.
9351         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
9352
9353 2010-12-31  Eric Blake  <eblake@redhat.com>
9354
9355         nl_langinfo: fix YESEXPR on Irix 6.5
9356         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
9357         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
9358         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
9359         it.
9360
9361 2010-12-31  Bruno Haible  <bruno@clisp.org>
9362
9363         iconv: Document HP-UX 11 bug.
9364         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
9365
9366 2010-12-31  Bruno Haible  <bruno@clisp.org>
9367
9368         ldexpl: Fix link error on HP-UX 11.
9369         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
9370         LDEXPL_LIBM, using $ISNANL_LIBM.
9371
9372 2010-12-31  Eric Blake  <eblake@redhat.com>
9373
9374         ftello: avoid compilation failure with SunStudio c89
9375         * lib/ftello.c (ftello): Use lseek, not llseek.
9376
9377         tests: avoid failing coreutils tests on cygwin
9378         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
9379         (create_exe_shims_): Return 0 when skipping.
9380
9381 2010-12-31  Bruno Haible  <bruno@clisp.org>
9382
9383         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
9384         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
9385
9386 2010-12-31  Bruno Haible  <bruno@clisp.org>
9387
9388         waitpid: Fix link error in C++ mode.
9389         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
9390
9391 2010-12-31  Bruno Haible  <bruno@clisp.org>
9392
9393         isnan: Use GCC built-ins when possible.
9394         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
9395         __builtin_isnan.
9396         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
9397         (isnan): Define using GCC built-ins for GCC >= 4.0.
9398
9399 2010-12-31  Bruno Haible  <bruno@clisp.org>
9400
9401         isnand: Fix mistake.
9402         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
9403         __builtin_isnand.
9404
9405 2010-12-31  Bruno Haible  <bruno@clisp.org>
9406
9407         open: Avoid C++ error on HP-UX 11.
9408         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
9409
9410 2010-12-31  Bruno Haible  <bruno@clisp.org>
9411
9412         time_r: Add missing declarations on HP-UX 11.
9413         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
9414         instead of HAVE_LOCALTIME_R.
9415         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
9416         HAVE_LOCALTIME_R always.
9417         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
9418         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
9419         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
9420         HAVE_LOCALTIME_R.
9421         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
9422         * doc/posix-functions/localtime_r.texi: Likewise.
9423
9424 2010-12-29  Eric Blake  <eblake@redhat.com>
9425
9426         mountlist: tweak previous commit
9427         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
9428         Reported by Paul Eggert.
9429
9430         mountlist: fix local drive detection on cygwin
9431         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
9432         that works for cygwin.
9433
9434 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
9435
9436         ftoastr, snprintf: ftoastr + snprintf module
9437         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
9438         since the snprintf module now should be good enough here.
9439         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
9440         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
9441         and gl_MODULE_INDICATOR([snprintf]), but the former enables
9442         GNULIB_SNPRINTF only for the test directory, and the latter
9443         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
9444         seems to suffice by itself.
9445
9446 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
9447
9448         alloca: one step towards thread-safety
9449         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
9450         need for a static variable.  All callers changed.  This does not
9451         make the alloca replacement thread-safe, but it's one step.
9452
9453         tests: minor indenting change
9454         * tests/init.sh: Sync from coreutils housekeeping patch
9455         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
9456         to keep lines within 80 columns.
9457
9458 2010-12-28  Jim Meyering  <meyering@redhat.com>
9459
9460         regex: don't infloop on persistent failing calloc
9461         * lib/regexec.c (build_trtable): Return failure indication upon
9462         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
9463         In glibc, this was fixed for version 2.13:
9464         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
9465
9466 2010-12-28  Bruno Haible  <bruno@clisp.org>
9467             Paul Eggert <eggert@cs.ucla.edu>
9468
9469         linkat: Make implementation robust against system behaviour variations.
9470         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
9471         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
9472         way, and to -2 if it needs a generic runtime test.
9473         * lib/linkat.c (solaris_optimized_link_immediate,
9474         solaris_optimized_link_follow): New functions.
9475         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
9476         (check_same_link): Use it.
9477
9478 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
9479
9480         New module 'unigbrk/base'.
9481         * modules/unigbrk/base: New file.
9482         * lib/unigbrk.in.h: New file.
9483
9484         New module 'unigbrk/uc-gbrk-prop'.
9485         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
9486         * modules/unigbrk/uc-gbrk-prop: New file.
9487         * lib/unigbrk/gbrkprop.h: New file.
9488         * lib/unigbrk/uc-gbrk-prop.c: New file.
9489
9490         New module 'unigbrk/uc-is-grapheme-break'.
9491         * modules/unigbrk/uc-is-grapheme-break: New file.
9492         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
9493         * lib/unigbrk/uc-is-grapheme-break.c: New file.
9494         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
9495         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
9496         * tests/unigbrk/GraphemeBreakTest.txt: New file.
9497
9498         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
9499
9500 2010-12-27  Bruno Haible  <bruno@clisp.org>
9501
9502         linkat test: Avoid failure on Solaris 11 2010-11.
9503         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
9504
9505 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9506
9507         utimens: work around glibc rounding bug on more platforms
9508         * lib/utimens.c (fdutimens): Work around rounding bug even if
9509         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
9510         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
9511
9512 2010-12-27  Bruno Haible  <bruno@clisp.org>
9513
9514         select tests: Improve comments.
9515         * tests/test-select.c (do_select): Add comments.
9516
9517 2010-12-27  Bruno Haible  <bruno@clisp.org>
9518
9519         select tests: Safer way of handling timeout.
9520         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
9521         at every invocation.
9522
9523 2010-12-27  Bruno Haible  <bruno@clisp.org>
9524
9525         select tests: Use 'bool' where appropriate.
9526         * tests/test-select.c (connect_to_socket): Change argument type to
9527         'bool'.
9528
9529 2010-12-27  Bruno Haible  <bruno@clisp.org>
9530
9531         select tests: Use existing modules.
9532         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
9533         (configure.ac): Don't test for unistd.h.
9534         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
9535         declared in <unistd.h>.
9536
9537 2010-12-27  Bruno Haible  <bruno@clisp.org>
9538
9539         mbrtowc: Work around a Solaris 7 bug.
9540         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
9541         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
9542         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
9543         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
9544         MBRTOWC_NULL_ARG1_BUG.
9545         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
9546         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
9547         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
9548         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
9549
9550 2010-12-27  Jim Meyering  <meyering@redhat.com>
9551
9552         read-file.c: tweak syntax
9553         * lib/read-file.c (fread_file): Remove space after "*" in function
9554         definitions.
9555
9556 2010-12-27  Bruno Haible  <bruno@clisp.org>
9557
9558         times test: Avoid gcc warnings on OSF/1.
9559         * tests/test-times.c (main): Cast printf arguments from clock_t to
9560         'long int'.
9561
9562 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
9563
9564         utimens: work around glibc rounding bug on older Linux kernels
9565         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
9566         on Linux with a glibc whose utimes might not work, then work
9567         around a longstanding glibc bug involving rounding rather than
9568         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
9569         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9570
9571 2010-12-26  Bruno Haible  <bruno@clisp.org>
9572
9573         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
9574         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
9575         _GL_CXXALIAS_SYS.
9576         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9577
9578 2010-12-26  Bruno Haible  <bruno@clisp.org>
9579
9580         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
9581         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
9582         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9583         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
9584         looking for the declaration.
9585         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
9586         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
9587         problem.
9588         * doc/posix-functions/inet_pton.texi: Likewise.
9589
9590 2010-12-26  Bruno Haible  <bruno@clisp.org>
9591
9592         arpa_inet: Use the common idioms with C++ support.
9593         * lib/arpa_inet.in.h: Include c++defs.h.
9594         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
9595         support.
9596         * modules/arpa_inet (Depends-on): Add c++defs.
9597         (Makefile.am): Substitute the contents of c++defs.h.
9598         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
9599         * modules/arpa_inet-c++-tests: New file.
9600         * tests/test-arpa_inet-c++.cc: New file.
9601
9602 2010-12-25  Bruno Haible  <bruno@clisp.org>
9603
9604         Fix more C++ link errors on Solaris 8.
9605         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
9606         $(LIB_EACCESS).
9607         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
9608         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
9609         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
9610         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
9611         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
9612
9613 2010-12-25  Bruno Haible  <bruno@clisp.org>
9614
9615         printf-posix: Fix link error when a non-GCC compiler is used.
9616         * lib/stdio.in.h (printf): When not using GCC, override printf
9617         correctly.
9618         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9619
9620 2010-12-25  Bruno Haible  <bruno@clisp.org>
9621
9622         strerror_r-posix: Update doc.
9623         * doc/posix-functions/strerror_r.texi: Update doc about the return
9624         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
9625
9626 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9627
9628         utimens: simplify the logic of the previous change
9629         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
9630         This should not affect whether the test succeeds or fails.
9631
9632         utimens: configure better on hosts with NFS clock skew
9633         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
9634         uses the clock of the local host.  It might use the clock of the
9635         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
9636         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
9637
9638 2010-12-25  Bruno Haible  <bruno@clisp.org>
9639
9640         ptsname test: Avoid failure on Solaris.
9641         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
9642         open a pseudo-terminal; don't use BSD-style ptys.
9643         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
9644
9645 2010-12-25  Bruno Haible  <bruno@clisp.org>
9646
9647         ptsname: Avoid ERANGE failure on some systems.
9648         * lib/ptsname.c (buffer): Increase size.
9649
9650 2010-12-25  Bruno Haible  <bruno@clisp.org>
9651
9652         rename, renameat: Avoid test failures at NFS mounted locations.
9653         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
9654         so that subsequent mkdir calls succeed.
9655
9656 2010-12-25  Bruno Haible  <bruno@clisp.org>
9657
9658         iswblank: Fix C++ link error on Solaris 8.
9659         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
9660         _GL_FUNCDECL_SYS.
9661
9662 2010-12-25  Bruno Haible  <bruno@clisp.org>
9663
9664         unistd: Fix C++ link error on Solaris 8.
9665         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
9666
9667 2010-12-25  Bruno Haible  <bruno@clisp.org>
9668
9669         readlink doc: Mention an old glibc bug.
9670         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
9671
9672 2010-12-25  Bruno Haible  <bruno@clisp.org>
9673
9674         fcntl-h: Fix for use of C++ on glibc systems.
9675         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9676         also on glibc systems in C++ mode.
9677         Reported by Gary V. Vaughan <gary@gnu.org>.
9678
9679 2010-12-25  Bruno Haible  <bruno@clisp.org>
9680
9681         roundl-ieee: Make it work on OSF/1 5.1 with cc.
9682         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
9683
9684 2010-12-25  Bruno Haible  <bruno@clisp.org>
9685
9686         truncl-ieee: Make it work on OSF/1 5.1 with cc.
9687         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
9688         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
9689         test whether truncl works according to ISO C 99 with IEC 60559.
9690         * m4/truncl-ieee.m4: New file.
9691         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
9692         m4/signbit.m4.
9693         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
9694
9695 2010-12-25  Bruno Haible  <bruno@clisp.org>
9696
9697         ceill-ieee: Make it work on OSF/1 5.1 with cc.
9698         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
9699         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
9700         test whether ceill works according to ISO C 99 with IEC 60559.
9701         * m4/ceill-ieee.m4: New file.
9702         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
9703         m4/signbit.m4.
9704         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
9705
9706 2010-12-25  Bruno Haible  <bruno@clisp.org>
9707
9708         Ensure all prerequisites of <wchar.h> are included.
9709         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
9710         before <wchar.h>.
9711         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
9712         gl_MBRLEN_NUL_RETVAL): Likewise.
9713         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9714         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
9715         AC_FUNC_MBRTOWC): Likewise.
9716         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9717         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
9718         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9719         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9720         Likewise.
9721         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9722         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
9723         (gl_WCHAR_H): Improve comments.
9724         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
9725
9726 2010-12-25  Bruno Haible  <bruno@clisp.org>
9727
9728         strtok_r: Fix C syntax error in autoconf macro.
9729         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
9730         characters in test program.
9731
9732 2010-12-24  Bruno Haible  <bruno@clisp.org>
9733
9734         ceil, trunc, round: Fix gcc warnings.
9735         * lib/ceil.c (MIN): Undefine before redefining.
9736         * lib/trunc.c (MIN): Likewise.
9737         * lib/round.c (MIN): Likewise.
9738         Include <math.h> first.
9739
9740 2010-12-24  Bruno Haible  <bruno@clisp.org>
9741
9742         select tests: Avoid failures on OSF/1 5.1.
9743         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
9744         failure of closing the last socket; it may fail with ECONNRESET.
9745
9746 2010-12-24  Eric Blake  <eblake@redhat.com>
9747
9748         stdint: avoid HP-UX 10.20 preprocessor bug
9749         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
9750         than #if.
9751         * tests/test-floor2.c (main): Likewise.
9752         Reported by Peter O'Gorman.
9753
9754         pipe: make obsoletion transition easier
9755         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
9756         * modules/pipe (Files): Include revived file.
9757         (Include): Drop reference, to mirror getdate's behavior.
9758
9759 2010-12-24  Bruno Haible  <bruno@clisp.org>
9760
9761         sys_socket: Hide mismatch of declarations on NonStop Kernel.
9762         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
9763         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9764         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9765
9766 2010-12-24  Bruno Haible  <bruno@clisp.org>
9767
9768         gethostname: Ensure declaration on NonStop Kernel.
9769         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
9770         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9771
9772 2010-12-24  Bruno Haible  <bruno@clisp.org>
9773
9774         sys_select: Ensure all necessary types on NonStop Kernel.
9775         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
9776         include <sys/time.h>.
9777         * doc/posix-headers/sys_select.texi: Mention that it's missing on
9778         NonStop Kernel.
9779         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9780
9781 2010-12-24  Bruno Haible  <bruno@clisp.org>
9782
9783         sys_select: Remove unneeded include.
9784         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
9785         have <sys/select.h>.
9786
9787 2010-12-24  Bruno Haible  <bruno@clisp.org>
9788
9789         gethostname: Provide a fallback for HOST_NAME_MAX.
9790         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
9791         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
9792         instead.
9793         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9794
9795 2010-12-24  Bruno Haible  <bruno@clisp.org>
9796
9797         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
9798         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
9799         (SA_RESTART): Likewise.
9800         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9801
9802 2010-12-24  Bruno Haible  <bruno@clisp.org>
9803
9804         signal: Define NSIG.
9805         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
9806         * tests/test-signal.c (nsig): New variable.
9807         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9808
9809 2010-12-24  Bruno Haible  <bruno@clisp.org>
9810
9811         rename, renameat: Avoid test failures on OSF/1 5.1.
9812         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
9813         alternative error codes.
9814         * tests/test-renameat.c (main): Likewise.
9815
9816 2010-12-24  Bruno Haible  <bruno@clisp.org>
9817
9818         *printf: Detect large precisions bug on Solaris 10/SPARC.
9819         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
9820         by Paul Eggert.
9821         * tests/test-snprintf-posix.h (test_function): Add this test code here
9822         too.
9823         * tests/test-sprintf-posix.h (test_function): Likewise.
9824         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9825         * tests/test-vasprintf-posix.c (test_function): Likewise.
9826         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
9827         around by gnulib.
9828         * doc/posix-functions/printf.texi: Likewise.
9829         * doc/posix-functions/snprintf.texi: Likewise.
9830         * doc/posix-functions/sprintf.texi: Likewise.
9831         * doc/posix-functions/vfprintf.texi: Likewise.
9832         * doc/posix-functions/vprintf.texi: Likewise.
9833         * doc/posix-functions/vsnprintf.texi: Likewise.
9834         * doc/posix-functions/vsprintf.texi: Likewise.
9835         * doc/posix-functions/dprintf.texi: Undo last commit.
9836         * doc/posix-functions/vdprintf.texi: Likewise.
9837
9838 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
9839
9840         tests: port test-fdutimensat.c to Solaris 8
9841         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
9842         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
9843         On Solaris 8, it fails with errno == ENOSYS, because there is no
9844         futimens (so it can't use the fd), and there is no lutimens (so it
9845         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
9846
9847         vsnprintf: make more consistent with snprintf; doc fixes
9848
9849         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
9850         the byte count return problem was promoted from the snprintf-posix
9851         to the snprintf module.
9852         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
9853         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
9854         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
9855         * tests/test-snprintf.c (main): Check the byte count returned.
9856         * tests/test-vsnprintf.c (main): Likewise.
9857
9858 2010-12-23  Eric Blake  <eblake@redhat.com>
9859
9860         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
9861         * modules/sigpipe (License): Relax license.
9862
9863 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9864
9865         doc: document Solaris printf bug with large float precisions
9866         * doc/posix-functions/dprintf.texi (dprintf):
9867         * doc/posix-functions/fprintf.texi (fprintf):
9868         * doc/posix-functions/printf.texi (printf):
9869         * doc/posix-functions/snprintf.texi (snprintf):
9870         * doc/posix-functions/sprintf.texi (sprintf):
9871         * doc/posix-functions/vdprintf.texi (vdprintf):
9872         * doc/posix-functions/vfprintf.texi (vfprintf):
9873         * doc/posix-functions/vprintf.texi (vprintf):
9874         * doc/posix-functions/vsnprintf.texi (vsnprintf):
9875         * doc/posix-functions/vsprintf.texi (vsprintf):
9876         Mention that these functions mishandle large floating point
9877         precisions on Solaris 10.  The same bug is also present in Solaris
9878         8, and I assume earlier.  This causes "cd gnulib-tests; make
9879         check" to fail on Solaris 8 (and I assume, later) when building
9880         the latest coreutils, in test-vasprintf-posix's call to
9881         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
9882         the wide flavors (e.g., wprintf) so this patch just updates the
9883         documentation for the narrow ones.
9884
9885         test-posixtm.c: add two tests
9886         * tests/test-posixtm.c: Add two tests, to highlight the
9887         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
9888         around this bug; this is merely to document it.
9889
9890 2010-12-22  Bruno Haible  <bruno@clisp.org>
9891
9892         getlogin_r: Work around portability problem on OSF/1.
9893         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
9894         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
9895         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
9896         test for a truncated result.
9897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
9898         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
9899         * modules/getlogin_r (Depends-on): Add memchr.
9900         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
9901
9902 2010-12-22  Bruno Haible  <bruno@clisp.org>
9903
9904         ptsname: Avoid test failure on OSF/1 5.1.
9905         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
9906         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
9907         (same_slave): New function.
9908         (main): Use it to compare ptsname's result with the expected file name.
9909
9910 2010-12-22  Bruno Haible  <bruno@clisp.org>
9911
9912         Port extended stdio modules to HP NonStop Kernel.
9913         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
9914         macros.
9915         * lib/fbufmode.c: Update comments.
9916         * lib/fflush.c: Likewise.
9917         * lib/fpurge.c: Likewise.
9918         * lib/freadable.c: Likewise.
9919         * lib/freadahead.c: Likewise.
9920         * lib/freading.c: Likewise.
9921         * lib/freadptr.c: Likewise.
9922         * lib/freadseek.c: Likewise.
9923         * lib/fseeko.c: Likewise.
9924         * lib/fseterr.c: Likewise.
9925         * lib/fwritable.c: Likewise.
9926         * lib/fwriting.c: Likewise.
9927         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
9928
9929 2010-12-22  Bruno Haible  <bruno@clisp.org>
9930
9931         ttyname_r: Work around bug on OSF/1 5.1.
9932         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
9933         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
9934         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
9935         present.
9936         * lib/ttyname_r.c (ttyname_r): Update comments.
9937
9938 2010-12-22  Bruno Haible  <bruno@clisp.org>
9939
9940         round: Implement result sign according to IEEE 754.
9941         * lib/round.c (MIN, MINUS_ZERO): New macros.
9942         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
9943         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
9944         * tests/test-round-ieee.c (main): Likewise.
9945         * tests/test-roundl-ieee.c (main): Likewise.
9946
9947         trunc: Implement result sign according to IEEE 754.
9948         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
9949         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
9950         * tests/test-trunc2.c: Include minus-zero.h.
9951         (MINUS_ZERO): New macro.
9952         (trunc_reference): Keep in sync with lib/trunc.c.
9953         * tests/test-truncf2.c: Include minus-zero.h.
9954         (MINUS_ZERO): New macro.
9955         (truncf_reference): Keep in sync with lib/trunc.c.
9956         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
9957         * tests/test-trunc-ieee.c (main): Likewise.
9958         * tests/test-truncl-ieee.c (main): Likewise.
9959
9960         ceil: Implement result sign according to IEEE 754.
9961         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
9962         (FUNC): Return -0.0 for -1 < x < 0.
9963         * tests/test-ceil2.c: Include minus-zero.h.
9964         (MINUS_ZERO): New macro.
9965         (ceil_reference): Keep in sync with lib/ceil.c.
9966         * tests/test-ceilf2.c: Include minus-zero.h.
9967         (MINUS_ZERO): New macro.
9968         (ceilf_reference): Keep in sync with lib/ceil.c.
9969         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
9970         * tests/test-ceil-ieee.c (main): Likewise.
9971         * tests/test-ceill-ieee.c (main): Likewise.
9972
9973         floor: Implement result sign according to IEEE 754.
9974         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
9975         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
9976         * tests/test-floorf2.c (floorf_reference): Likewise.
9977         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
9978         * tests/test-floor-ieee.c (main): Likewise.
9979         * tests/test-floorl-ieee.c (main): Likewise.
9980
9981 2010-12-22  Bruno Haible  <bruno@clisp.org>
9982
9983         getaddrinfo: Update doc.
9984         * doc/posix-functions/gai_strerror.texi: Return type is also different
9985         on AIX and HP-UX.
9986
9987 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
9988
9989         getaddrinfo, inet_ntop: Update doc for Solaris.
9990         * doc/posix-functions/gai_strerror.texi: Return type is also an
9991         issue on Solaris 9 and earlier.
9992         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
9993         on Solaris 10 and earlier.
9994
9995 2010-12-21  Bruno Haible  <bruno@clisp.org>
9996
9997         New module 'roundl-ieee'.
9998         * modules/roundl-ieee: New file.
9999         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
10000         test whether roundl works according to ISO C 99 with IEC 60559.
10001         * m4/roundl-ieee.m4: New file.
10002         * modules/roundl-ieee-tests: New file.
10003         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
10004         * tests/test-roundl.c (main): Remove signbit tests.
10005         * modules/roundl-tests (Depends-on): Remove signbit.
10006         * doc/posix-functions/roundl.texi: Mention the new module.
10007
10008 2010-12-21  Bruno Haible  <bruno@clisp.org>
10009
10010         New module 'truncl-ieee'.
10011         * modules/truncl-ieee: New file.
10012         * modules/truncl-ieee-tests: New file.
10013         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
10014         * tests/test-truncl.c (main): Remove signbit tests.
10015         * modules/truncl-tests (Depends-on): Remove signbit.
10016         * doc/posix-functions/truncl.texi: Mention the new module.
10017
10018 2010-12-21  Bruno Haible  <bruno@clisp.org>
10019
10020         New module 'ceill-ieee'.
10021         * modules/ceill-ieee: New file.
10022         * modules/ceill-ieee-tests: New file.
10023         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
10024         * tests/test-ceill.c (main): Remove signbit tests.
10025         * modules/ceill-tests (Depends-on): Remove signbit.
10026         * doc/posix-functions/ceill.texi: Mention the new module.
10027
10028 2010-12-21  Bruno Haible  <bruno@clisp.org>
10029
10030         New module 'floorl-ieee'.
10031         * modules/floorl-ieee: New file.
10032         * modules/floorl-ieee-tests: New file.
10033         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
10034         * tests/test-floorl.c (main): Remove signbit tests.
10035         * modules/floorl-tests (Depends-on): Remove signbit.
10036         * doc/posix-functions/floorl.texi: Mention the new module.
10037
10038 2010-12-21  Bruno Haible  <bruno@clisp.org>
10039
10040         New module 'round-ieee'.
10041         * modules/round-ieee: New file.
10042         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
10043         whether round works according to ISO C 99 with IEC 60559.
10044         * m4/round-ieee.m4: New file.
10045         * modules/round-ieee-tests: New file.
10046         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
10047         * tests/test-round1.c (main): Remove signbit tests.
10048         * modules/round-tests (Depends-on): Remove 'signbit'.
10049         * doc/posix-functions/round.texi: Mention the new module.
10050
10051 2010-12-21  Bruno Haible  <bruno@clisp.org>
10052
10053         New module 'trunc-ieee'.
10054         * modules/trunc-ieee: New file.
10055         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
10056         whether trunc works according to ISO C 99 with IEC 60559.
10057         * m4/trunc-ieee.m4: New file.
10058         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
10059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
10060         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
10061         * modules/trunc-ieee-tests: New file.
10062         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
10063         * tests/test-trunc1.c (main): Remove signbit tests.
10064         * modules/trunc-tests (Depends-on): Remove 'signbit'.
10065         * doc/posix-functions/trunc.texi: Mention the new module.
10066
10067 2010-12-21  Bruno Haible  <bruno@clisp.org>
10068
10069         New module 'ceil-ieee'.
10070         * modules/ceil-ieee: New file.
10071         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
10072         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
10073         ISO C 99 with IEC 60559.
10074         * m4/ceil-ieee.m4: New file.
10075         * modules/ceil (Files): Add lib/ceil.c.
10076         (Depends-on): Add 'float'.
10077         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10078         * lib/math.in.h (ceil): New declaration.
10079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
10080         REPLACE_CEIL.
10081         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
10082         * modules/ceil-ieee-tests: New file.
10083         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
10084         * tests/test-math-c++.cc: Check the signature of 'ceil'.
10085         * doc/posix-functions/ceil.texi: Mention the new module.
10086
10087 2010-12-21  Bruno Haible  <bruno@clisp.org>
10088
10089         New module 'floor-ieee'.
10090         * modules/floor-ieee: New file.
10091         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
10092         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
10093         ISO C 99 with IEC 60559.
10094         * m4/floor-ieee.m4: New file.
10095         * modules/floor (Files): Add lib/floor.c.
10096         (Depends-on): Add 'float'.
10097         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10098         * lib/math.in.h (floor): New declaration.
10099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
10100         REPLACE_FLOOR.
10101         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
10102         * modules/floor-ieee-tests: New file.
10103         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
10104         * tests/test-math-c++.cc: Check the signature of 'floor'.
10105         * doc/posix-functions/floor.texi: Mention the new module.
10106
10107 2010-12-21  Bruno Haible  <bruno@clisp.org>
10108
10109         New module 'roundf-ieee'.
10110         * modules/roundf-ieee: New file.
10111         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
10112         test whether roundf works according to ISO C 99 with IEC 60559.
10113         * m4/roundf-ieee.m4: New file.
10114         * modules/roundf-ieee-tests: New file.
10115         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
10116         * tests/test-roundf1.c (main): Remove signbit tests.
10117         * modules/roundf-tests (Depends-on): Remove 'signbit'.
10118         * doc/posix-functions/roundf.texi: Mention the new module.
10119
10120 2010-12-21  Bruno Haible  <bruno@clisp.org>
10121
10122         New module 'truncf-ieee'.
10123         * modules/truncf-ieee: New file.
10124         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
10125         test whether truncf works according to ISO C 99 with IEC 60559.
10126         * m4/truncf-ieee.m4: New file.
10127         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
10128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
10129         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
10130         * modules/truncf-ieee-tests: New file.
10131         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
10132         * tests/test-truncf1.c (main): Remove signbit tests.
10133         * modules/truncf-tests (Depends-on): Remove 'signbit'.
10134         * doc/posix-functions/truncf.texi: Mention the new module.
10135
10136 2010-12-21  Bruno Haible  <bruno@clisp.org>
10137
10138         New module 'ceilf-ieee'.
10139         * modules/ceilf-ieee: New file.
10140         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
10141         test whether ceilf works according to ISO C 99 with IEC 60559.
10142         * m4/ceilf-ieee.m4: New file.
10143         * modules/ceilf-ieee-tests: New file.
10144         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
10145         * tests/test-ceilf1.c (main): Remove signbit tests.
10146         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
10147         * doc/posix-functions/ceilf.texi: Mention the new module.
10148
10149 2010-12-21  Bruno Haible  <bruno@clisp.org>
10150
10151         New module 'floorf-ieee'.
10152         * modules/floorf-ieee: New file.
10153         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
10154         test whether floorf works according to ISO C 99 with IEC 60559.
10155         * m4/floorf-ieee.m4: New file.
10156         * modules/floorf-ieee-tests: New file.
10157         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
10158         * tests/test-floorf1.c (main): Remove signbit tests.
10159         * modules/floorf-tests (Depends-on): Remove 'signbit'.
10160         * doc/posix-functions/floorf.texi: Mention the new module.
10161
10162 2010-12-21  Bruno Haible  <bruno@clisp.org>
10163
10164         Support for minus zero in autoconf macros.
10165         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
10166         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
10167         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
10168         * tests/minus-zero.h: Update comments.
10169
10170 2010-12-21  Bruno Haible  <bruno@clisp.org>
10171
10172         Tests for module 'ceil'.
10173         * modules/ceil-tests: New file.
10174         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
10175         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
10176
10177 2010-12-21  Bruno Haible  <bruno@clisp.org>
10178
10179         Tests for module 'floor'.
10180         * modules/floor-tests: New file.
10181         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
10182         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
10183
10184 2010-12-21  Bruno Haible  <bruno@clisp.org>
10185
10186         math: Fix indentation.
10187         * lib/math.in.h (floorf): Fix indentation.
10188
10189 2010-12-21  Bruno Haible  <bruno@clisp.org>
10190
10191         Fix cross-compilation guesses on Solaris.
10192         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
10193         not match "solaris2.10".
10194         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10195         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
10196         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
10197
10198 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
10199
10200         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
10201         This fixes a problem observed with the latest coreutils snapshot
10202         that caused a test to fail on Solaris 8.  src/csplit.c's call
10203         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
10204         earlier, instead of returning the number of bytes that would have
10205         been generated; this causes csplit to incorrectly report memory
10206         exhaustion.
10207         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
10208         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
10209         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
10210         comments to match.
10211         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
10212         Fix typo in matching older versions of Solaris: "solaris2.10"
10213         is matched by the shell pattern "solaris2.[0-9]*".  This matters
10214         only for guessing while cross-compiling.
10215         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
10216
10217 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10218
10219         ftoastr: fix comment again
10220         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10221         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
10222         Also, simplify example a bit by using flags = 0.
10223
10224 2010-12-20  Bruno Haible  <bruno@clisp.org>
10225
10226         round*, trunc*: Update documentation regarding glibc.
10227         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
10228         * doc/posix-functions/round.texi: Likewise.
10229         * doc/posix-functions/roundl.texi: Likewise.
10230         * doc/posix-functions/truncf.texi: Likewise.
10231         * doc/posix-functions/trunc.texi: Likewise.
10232         * doc/posix-functions/truncl.texi: Likewise.
10233
10234 2010-12-20  Bruno Haible  <bruno@clisp.org>
10235
10236         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
10237         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
10238         * doc/posix-functions/round.texi: Likewise.
10239         * doc/posix-functions/roundl.texi: Likewise.
10240
10241 2010-12-20  Bruno Haible  <bruno@clisp.org>
10242
10243         ttyname_r: Add missing declaration on HP-UX 11.
10244         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
10245         HAVE_TTYNAME_R.
10246         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
10247         declared. Set HAVE_TTYNAME_R always.
10248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10249         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
10250         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
10251         HAVE_TTYNAME_R.
10252         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
10253
10254 2010-12-20  Bruno Haible  <bruno@clisp.org>
10255
10256         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
10257         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
10258         * doc/posix-functions/getlogin_r.texi: Likewise.
10259         * tests/test-getlogin.c: Include <errno.h>.
10260         (main): Avoid test failure on HP-UX 11.11.
10261         * tests/test-getlogin_r.c (main): Likewise.
10262
10263 2010-12-20  Bruno Haible  <bruno@clisp.org>
10264
10265         getlogin_r: Add missing declaration on HP-UX 11.
10266         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
10267         declared also when it exists as a function.
10268         * doc/posix-functions/getlogin_r.texi: Document this workaround.
10269
10270 2010-12-20  Bruno Haible  <bruno@clisp.org>
10271
10272         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
10273         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
10274         through wcrtomb.
10275
10276 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10277
10278         ftoastr: fix comment
10279         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
10280         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
10281
10282 2010-12-19  Bruno Haible  <bruno@clisp.org>
10283
10284         isnan: Ensure it is a macro.
10285         * lib/math.in.h (isnan): Define as a macro if not already a macro.
10286         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
10287         Solaris.
10288
10289 2010-12-19  Bruno Haible  <bruno@clisp.org>
10290
10291         ldexpl test: Fix link error on OSF/1 5.1.
10292         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
10293
10294 2010-12-19  Bruno Haible  <bruno@clisp.org>
10295
10296         wctype: Make it work in C++ mode on OSF/1 5.1.
10297         * lib/wctype.in.h (iswblank): Declare but not define here.
10298         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
10299         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
10300         * modules/wctype (Files): Add lib/iswblank.c.
10301
10302 2010-12-19  Bruno Haible  <bruno@clisp.org>
10303
10304         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
10305         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
10306         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
10307
10308 2010-12-19  Bruno Haible  <bruno@clisp.org>
10309
10310         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
10311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
10312         _POSIX_PII_SOCKET.
10313         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
10314         * doc/posix-functions/recvfrom.texi: Likewise.
10315         * doc/posix-functions/send.texi: Likewise.
10316         * doc/posix-functions/sendto.texi: Likewise.
10317
10318 2010-12-19  Bruno Haible  <bruno@clisp.org>
10319
10320         tcgetsid: Add missing declaration on OSF/1 5.1.
10321         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
10322         HAVE_TCGETSID.
10323         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
10324         Don't set HAVE_TCGETSID.
10325         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
10326         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
10327         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
10328         HAVE_TCGETSID.
10329         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
10330
10331 2010-12-19  Bruno Haible  <bruno@clisp.org>
10332
10333         stdio: Fix problem with popen() declaration on OSF/1 5.1.
10334         * lib/stdio.in.h: During the include_next statement, let recursive
10335         includes of this file include only the system header file.
10336
10337 2010-12-19  Bruno Haible  <bruno@clisp.org>
10338
10339         iconv_open: Fix regression from 2010-12-04.
10340         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
10341         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
10342
10343 2010-12-19  Bruno Haible  <bruno@clisp.org>
10344
10345         stdbool test: Avoid a gcc warning.
10346         * tests/test-stdbool.c (main): Fail if e1 is false.
10347         Reported by Jim Meyering.
10348
10349 2010-12-19  Jim Meyering  <meyering@redhat.com>
10350
10351         setenv: restore to working order
10352         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
10353         mistakenly removed.
10354         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
10355         HAVE_SETENV.
10356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
10357         HAVE_SETENV.
10358
10359 2010-12-19  Bruno Haible  <bruno@clisp.org>
10360
10361         Document some different function declarations on OSF/1 5.1.
10362         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
10363         * doc/posix-functions/inet_ntop.texi: Likewise.
10364         * doc/posix-functions/gethostname.texi: Likewise.
10365         * lib/unistd.in.h (gethostname): Update comment.
10366
10367 2010-12-19  Bruno Haible  <bruno@clisp.org>
10368
10369         doc: Mention vasprintf-posix module.
10370         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
10371         the 'vasprintf-posix' module.
10372         * doc/glibc-functions/vasprintf.texi: Likewise.
10373
10374 2010-12-19  Bruno Haible  <bruno@clisp.org>
10375
10376         unsetenv: Add missing declaration on OSF/1 5.1.
10377         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
10378         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
10379         Don't set HAVE_UNSETENV. In the test program, set _BSD.
10380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
10381         not HAVE_UNSETENV.
10382         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
10383         HAVE_UNSETENV.
10384         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
10385
10386 2010-12-19  Bruno Haible  <bruno@clisp.org>
10387
10388         setenv: Add missing declaration on OSF/1 5.1.
10389         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
10390         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
10391         declared. Don't set HAVE_SETENV.
10392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
10393         not HAVE_SETENV.
10394         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
10395         HAVE_SETENV.
10396         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
10397
10398 2010-12-19  Bruno Haible  <bruno@clisp.org>
10399
10400         nl_langinfo tests: Avoid gcc warning.
10401         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
10402
10403 2010-12-19  Bruno Haible  <bruno@clisp.org>
10404
10405         mknod: Avoid error in C++ mode on OSF/1 with GCC.
10406         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
10407         _GL_CXXALIAS_SYS.
10408
10409 2010-12-19  Bruno Haible  <bruno@clisp.org>
10410
10411         stdbool: Relax test.
10412         * tests/test-stdbool.c (e): Don't require that casts from a variable's
10413         address to 'bool' work in static initializer, for compilers other than
10414         GCC.
10415
10416 2010-12-19  Bruno Haible  <bruno@clisp.org>
10417
10418         ftello: Add missing declaration on OSF/1 5.1.
10419         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
10420         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
10421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
10422         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
10423         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
10424
10425 2010-12-19  Bruno Haible  <bruno@clisp.org>
10426
10427         fseeko: Add missing declaration on OSF/1 5.1.
10428         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
10429         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
10430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
10431         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
10432         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
10433
10434 2010-12-19  Bruno Haible  <bruno@clisp.org>
10435
10436         fchdir: Add missing declaration on OSF/1 5.1.
10437         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
10438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
10439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
10440         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
10441         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
10442
10443 2010-12-19  Bruno Haible  <bruno@clisp.org>
10444
10445         relocatable-prog-wrapper: Separate from relocatable-prog.
10446         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
10447         uninstall-relocwrapper rule here.
10448         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
10449         Reported by Ian Beckwith <ianb@erislabs.net>.
10450
10451 2010-12-19  Bruno Haible  <bruno@clisp.org>
10452
10453         unistr/u8-mbsnlen: Add missing dependency.
10454         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
10455         Reported by Ian Beckwith <ianb@erislabs.net>.
10456
10457 2010-12-19  Bruno Haible  <bruno@clisp.org>
10458
10459         iconv: Make it possible again to use this module without 'iconv-h'.
10460         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
10461         if it is not defined.
10462         Reported by Ian Beckwith <ianb@erislabs.net>.
10463
10464 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10465
10466         acl: port to Solaris 8 when copying from tmpfs to ufs
10467         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
10468         error number.  Problem observed on Solaris 8 with latest
10469         coreutils, with "mv A B", where A is on a tmpfs file system and B
10470         is on a ufs file system.  This caused coreutils' mv/part-symlink
10471         test to fail.
10472
10473         tests: set fail=0 at start
10474         * tests/init.sh (setup_): Move fail=0 initialization here ...
10475         (mktempd_): ... from here, so that tests can rely on fail being
10476         set to 0 initially.  This fixes a problem in coreutils; see:
10477         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
10478
10479 2010-12-18  Bruno Haible  <bruno@clisp.org>
10480
10481         memmem-simple: Stylistic changes.
10482         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
10483         Fix preprocessor directive indentation.
10484
10485 2010-12-15  Pádraig Brady <P@draigBrady.com>
10486
10487         memmem, memmem-simple: reorganize and expand empty needle check
10488         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
10489         functional checks to memmem-simple so that one has a fully functional
10490         memmem by using just this module.
10491         Restrict the performance only check to the memmem module.
10492         Also expand the empty needle check to ensure the correct
10493         pointer is returned, not just a non NULL pointer.
10494         * doc/glibc-functions/memmem.texi: Rearrange the portability
10495         documentation to correlate with the rearranged checks.
10496         Clarify exactly how the memmem and memmem-simple modules
10497         relate to each other.
10498
10499 2010-12-15  Pádraig Brady <P@draigBrady.com>
10500             Bruno Haible  <bruno@clisp.org>
10501
10502         Improve cross-compilation guesses for uClibc.
10503         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
10504         that uClibc does not have the glibc bug.
10505         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
10506         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
10507
10508 2010-12-14  Eric Blake  <eblake@redhat.com>
10509
10510         configmake: provide fallbacks for oldest supported autotools
10511         * m4/configmake.m4: New file.
10512         * modules/configmake (Files): Ship it.
10513         (configure.ac): Use it to guarantee fallbacks.
10514
10515 2010-12-13  Pádraig Brady <P@draigBrady.com>
10516
10517         read-file: Improve handling of large files
10518         * lib/read-file.c (fread_file): Minimize realloc()s
10519         for regular files, and better manage sizes around SIZE_MAX.
10520
10521 2010-12-13  Eric Blake  <eblake@redhat.com>
10522
10523         cloexec, fcntl: relax license
10524         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
10525         consent from all contributors.
10526         * modules/fcntl (License): Likewise.
10527
10528 2010-12-10  Bruno Haible  <bruno@clisp.org>
10529
10530         Tests for module 'pipe-posix'.
10531         * modules/pipe-posix-tests: New file.
10532         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
10533
10534 2010-12-10  Bruno Haible  <bruno@clisp.org>
10535
10536         pipe-posix: Make it work in C++ mode.
10537         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
10538         (pipe): Use common idiom, not a macro definition.
10539         * lib/pipe.c: New file.
10540         * m4/pipe.m4: New file.
10541         * modules/pipe-posix (Description): Enhance.
10542         (Files): Add lib/pipe.c, m4/pipe.m4.
10543         (configure.ac): Invoke gl_FUNC_PIPE.
10544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
10545         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
10546         * tests/test-unistd-c++.cc: Check the signature of pipe.
10547
10548 2010-12-10  Bruno Haible  <bruno@clisp.org>
10549
10550         Rename module 'pipe' to 'spawn-pipe'.
10551         * modules/spawn-pipe: New file, renamed from modules/pipe.
10552         (Files, configure.ac, Makefile.am): Update.
10553         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
10554         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
10555         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
10556         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
10557         "spawn-pipe.h" instead of "pipe.h".
10558         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
10559         to gl_SPAWN_PIPE.
10560         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
10561         (Files, Makefile.am): Update.
10562         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
10563         Update.
10564         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
10565         Include "spawn-pipe.h" instead of "pipe.h".
10566         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
10567         * lib/javacomp.c: Likewise.
10568         * lib/javaversion.c: Likewise.
10569         * lib/pipe-filter-gi.c: Likewise.
10570         * lib/pipe-filter-ii.c: Likewise.
10571         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
10572         * modules/javacomp (Depends-on): Likewise.
10573         * modules/javaversion (Depends-on): Likewise.
10574         * modules/pipe-filter-gi (Depends-on): Likewise.
10575         * modules/pipe-filter-ii (Depends-on): Likewise.
10576         * MODULES.html.sh (Executing programs): Update.
10577         * NEWS: Mention the change.
10578
10579 2010-12-10  Eric Blake  <eblake@redhat.com>
10580
10581         pipe-posix: new module
10582         * modules/pipe-posix: New file.
10583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
10584         (gl_UNISTD_H): Check for declaration.
10585         * modules/unistd (Makefile.am): Substitute it.
10586         * lib/unistd.in.h (pipe): Provide it for mingw.
10587         * doc/posix-functions/pipe.texi (pipe): Update documentation.
10588         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
10589
10590 2010-12-07  Bruno Haible  <bruno@clisp.org>
10591
10592         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
10593         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
10594         u8_strcmp_gnu.
10595         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
10596
10597 2010-12-06  Bruno Haible  <bruno@clisp.org>
10598
10599         Update internal documentation.
10600         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
10601
10602 2010-12-04  Bruno Haible  <bruno@clisp.org>
10603
10604         Put more information about failed tests into the test return codes.
10605         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
10606         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
10607         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
10608         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10609         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
10610         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10611         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10612         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10613         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
10614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10615         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
10616         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
10617         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10618         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10619         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
10620         returns a bit mask.
10621         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
10622         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
10623         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
10624         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
10625         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10626         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10627         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10628         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
10629         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10630         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10631         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10632         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10633         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10634         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10635         * m4/link.m4 (gl_FUNC_LINK): Likewise.
10636         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10637         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
10638         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
10639         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10640         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
10641         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10642         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
10643         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
10644         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10645         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10646         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
10647         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
10648         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10649         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10650         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
10651         gl_PRINTF_PRECISION): Likewise.
10652         * m4/regex.m4 (gl_REGEX): Likewise.
10653         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
10654         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10655         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
10656         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10657         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10659         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10660         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
10661         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
10662         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10663         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10664         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
10665         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10666         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
10667         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10668         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10669         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
10670         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10672         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
10673         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
10674         enumerated value.
10675         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
10676
10677 2010-12-04  Bruno Haible  <bruno@clisp.org>
10678
10679         Update for Solaris 11 2010-11.
10680         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
10681         Express, released in November 2010.
10682
10683 2010-12-04  Bruno Haible  <bruno@clisp.org>
10684
10685         nproc: Relax license.
10686         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
10687         and Paul Eggert.
10688         Requested by Ludovic Courtès <ludo@gnu.org>.
10689
10690 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10691
10692         utimecmp: fine-grained src to nearby coarse-grained dest
10693
10694         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
10695         and the source is on a file system with higher-resolution time
10696         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
10697         not work, and the time stamps are close together, the algorithm to
10698         determine the exact resolution from the read-back mtime was buggy:
10699         it had a "!=" where it should have had an "==".  This bug has been
10700         in the code ever since it was introduced to gnulib.
10701         Problem reported by Dan Jacobson in
10702         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
10703
10704 2010-11-30  Bruno Haible  <bruno@clisp.org>
10705
10706         strerror_r-posix: Fix autoconf test.
10707         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
10708
10709 2010-11-28  Bruno Haible  <bruno@clisp.org>
10710             Paul Eggert  <eggert@cs.ucla.edu>
10711
10712         Tests for module 'getdomainname'.
10713         * modules/getdomainname-tests: New file.
10714         * tests/test-getdomainname.c: New file, based on
10715         tests/test-gethostname.c.
10716
10717 2010-11-28  Bruno Haible  <bruno@clisp.org>
10718             Paul Eggert  <eggert@cs.ucla.edu>
10719
10720         getdomainname: Use the system function when possible.
10721         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
10722         (getdomainname): Replace if needed. Provide the declaration if it is
10723         missing. Don't use _GL_CXXALIAS_SYS_CAST.
10724         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
10725         (getdomainname): When the system has getdomainname, call the system
10726         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
10727         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10728         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
10729         found in libnsl. Look for the declaration also in <netdb.h>. Replace
10730         the function if its second argument is of type 'int' or if it is found
10731         in libnsl.
10732         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
10733         <sys/systeminfo.h> and sysinfo().
10734         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
10735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10736         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
10737         HAVE_GETDOMAINNAME.
10738         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
10739         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
10740         * doc/glibc-functions/getdomainname.texi: Document the problems with
10741         the getdomainname declaration.
10742
10743 2010-11-28  Bruno Haible  <bruno@clisp.org>
10744
10745         sys_socket: Ensure ss_family field on AIX.
10746         * lib/sys_socket.in.h (ss_family): New macro definition.
10747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
10748         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
10749         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10750         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10751         * modules/sys_socket (Makefile.am): Substitute
10752         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
10753         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
10754
10755 2010-11-27  Bruno Haible  <bruno@clisp.org>
10756
10757         readline: Improve configure output.
10758         * m4/readline.m4 (gl_FUNC_READLINE): Make the
10759         "checking for readline..." result understandable.
10760
10761 2010-11-27  Bruno Haible  <bruno@clisp.org>
10762
10763         *printf-posix: Detect a bug on Solaris 10/x86.
10764         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
10765         for floating-point output.
10766         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
10767         directive.
10768         * tests/test-snprintf-posix.h (test_function): Likewise.
10769         * tests/test-sprintf-posix.h (test_function): Likewise.
10770         * tests/test-vasprintf-posix.c (test_function): Likewise.
10771         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
10772         * doc/posix-functions/printf.texi: Likewise.
10773         * doc/posix-functions/snprintf.texi: Likewise.
10774         * doc/posix-functions/sprintf.texi: Likewise.
10775         * doc/posix-functions/vfprintf.texi: Likewise.
10776         * doc/posix-functions/vprintf.texi: Likewise.
10777         * doc/posix-functions/vsnprintf.texi: Likewise.
10778         * doc/posix-functions/vsprintf.texi: Likewise.
10779         * doc/glibc-functions/obstack_printf.texi: Likewise.
10780         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10781
10782 2010-11-27  Bruno Haible  <bruno@clisp.org>
10783
10784         Fix link error when module libunistring-optional is in use.
10785         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
10786         * modules/striconveha-tests (Makefile.am): Likewise.
10787
10788 2010-11-27  Bruno Haible  <bruno@clisp.org>
10789
10790         regex: Mention link dependencies.
10791         * modules/regex (Link): New section.
10792         * modules/rpmatch (Link): Likewise.
10793         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
10794
10795 2010-11-27  Bruno Haible  <bruno@clisp.org>
10796
10797         ftoastr: Fix compilation error on Solaris.
10798         * lib/ftoastr.c: Include <config.h>.
10799
10800 2010-11-27  Bruno Haible  <bruno@clisp.org>
10801
10802         getloadavg: Update documentation.
10803         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
10804
10805 2010-11-27  Bruno Haible  <bruno@clisp.org>
10806
10807         sys_socket: Fix test whether the functions are declared.
10808         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
10809         not <sys/select.h>.
10810
10811 2010-11-27  Bruno Haible  <bruno@clisp.org>
10812
10813         getpass: Make sure to get system declaration on some platforms.
10814         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
10815         gl_USE_SYSTEM_EXTENSIONS.
10816         * modules/getpass (Depends-on): Add extensions.
10817
10818 2010-11-26  Bruno Haible  <bruno@clisp.org>
10819
10820         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
10821         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
10822         'iconv' module is present.
10823         (ICONV_CONST): New macro.
10824         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
10825         ICONV_CONST.
10826         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
10827         set ICONV_CONST.
10828         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
10829         here.
10830         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
10831         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
10832         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
10833         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
10834         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
10835         present.
10836
10837 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10838
10839         ftoastr: comment fix
10840         * lib/ftoastr.c: "little" -> "little or no" in comment
10841
10842 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10843
10844         stdint: port to GCC 4.3 + OSX + Octave
10845         On this platform, stdint.h is buggy and defines int64_t to long
10846         long int.  The replacement defined it to long int, causing
10847         problems with C++ style name mangling.  Instead, trust the system
10848         definition if INT64_MAX is defined, and likewise for the unsigned
10849         variant.   Problem reported by Jarno Rajahalme in
10850         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
10851         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
10852         and don't mess with int64_t and INT64_MAX in this case.
10853         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
10854
10855 2010-11-24  Bruno Haible  <bruno@clisp.org>
10856
10857         doc: Corrections regarding MacOS X 10.4 and 10.5.
10858         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
10859         MacOS X.
10860         Reported by Simon Josefsson.
10861
10862 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
10863
10864         Uninstall ".bin" files installed by relocwrapper.
10865         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
10866         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
10867         unless it is already there.
10868
10869 2010-11-21  Bruno Haible  <bruno@clisp.org>
10870
10871         Update for NetBSD 5.0.
10872         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10873         NetBSD; the test fails on NetBSD 5.0.
10874         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10875         about NetBSD.
10876
10877 2010-11-21  Bruno Haible  <bruno@clisp.org>
10878
10879         Update for HP-UX 11.23 and HP-UX 11.31.
10880         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
10881         HP-UX.
10882
10883 2010-11-21  Bruno Haible  <bruno@clisp.org>
10884
10885         Update for MacOS X 10.5.
10886         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
10887         MacOS X; the test fails on MacOS X 10.5.8.
10888         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
10889         about MacOS X.
10890
10891 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
10892
10893         bootstrap: add bootstrap_sync option.
10894         See discussion at
10895         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
10896         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
10897         * build-aux/bootstrap: Accept --bootstrap-sync to update
10898         bootstrap if it is not identical to the local gnulib's
10899         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
10900         enable this by default.  Accept --no-bootstrap-sync to disable
10901         it.
10902
10903 2010-11-20  Bruno Haible  <bruno@clisp.org>
10904
10905         Ensure that <features.h> is included before __GLIBC__ is tested.
10906         * lib/printf-parse.h: Include <features.h>.
10907         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
10908         Reported by Mike Frysinger <vapier@gentoo.org>.
10909
10910         Ensure that <features.h> is included before __GLIBC__ is tested.
10911         * lib/wchar.in.h: Include <features.h>.
10912         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
10913         * modules/wchar (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         * lib/arpa_inet.in.h: Include <features.h>.
10918         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
10919         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
10920         Reported by Mike Frysinger <vapier@gentoo.org>.
10921
10922         Ensure that <features.h> is included before __GLIBC__ is tested.
10923         * build-aux/link-warning.h: Include <features.h>.
10924         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
10925         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
10926         Reported by Mike Frysinger <vapier@gentoo.org>.
10927
10928         Ensure that <features.h> is included before __GLIBC__ is tested.
10929         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
10930         Reported by Mike Frysinger <vapier@gentoo.org>.
10931
10932 2010-11-20  Bruno Haible  <bruno@clisp.org>
10933
10934         memmem: Fix autoconf test.
10935         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
10936
10937 2010-11-20  Bruno Haible  <bruno@clisp.org>
10938
10939         Port to uClibc.
10940         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
10941         * lib/fcntl.in.h: Likewise.
10942         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
10943         * lib/mbrtowc.c (mbrtowc): Likewise.
10944         * lib/relocatable.c (find_shared_library_fullname): Likewise.
10945         * lib/strerror_r.c: Likewise.
10946         * lib/unistr/u8-strnlen.c: Likewise.
10947         * lib/vasnprintf.c (decimal_point_char): Likewise.
10948         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
10949         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10950         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
10951         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
10952         * tests/test-sigaction.c (handler, main): Likewise.
10953         * lib/freading.h: Treat uClibc like a non-glibc platform.
10954         * lib/freading.c: Likewise.
10955         * lib/gettext.h: Likewise.
10956         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
10957         Likewise.
10958         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
10959         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10960         * lib/propername.c (proper_name_utf8): Likewise.
10961         * lib/spawn.in.h: Likewise.
10962         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
10963         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
10964         mem_cd_iconveh_internal): Likewise.
10965         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
10966         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
10967         strstr, strcasestr): Likewise.
10968         * lib/unicodeio.c (unicode_to_mb): Likewise.
10969         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
10970         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
10971         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
10972         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
10973         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
10974         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
10975         * lib/unistr/u8-stpncpy.c: Likewise.
10976         * lib/vasnprintf.c (VASNPRINTF): Likewise.
10977         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
10978         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
10979         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
10980         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
10981         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
10982         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
10983         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
10984         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10985         Likewise.
10986         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10987         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
10988         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10989         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10990         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10991         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10992         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10993         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
10994         * tests/test-getopt.h (OPTIND_MIN): Likewise.
10995         * tests/test-striconveha.c (main): Likewise.
10996         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10997         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
10998         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
10999         * doc/posix-functions/getline.texi: Likewise.
11000         Reported by Mike Frysinger <vapier@gentoo.org>.
11001
11002 2010-11-20  Bruno Haible  <bruno@clisp.org>
11003
11004         nproc: Fix condition.
11005         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
11006         HAVE_PTHREAD_AFFINITY_NP.
11007
11008 2010-11-20  Bruno Haible  <bruno@clisp.org>
11009
11010         Fix a comment.
11011         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
11012
11013 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11014
11015         ftoastr: don't assume snprintf
11016         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
11017         Implement a subset of snprintf here, by using sprintf safely.
11018         * modules/ftoastr (Depends-on): Remove snprintf.
11019
11020 2010-11-19  Jim Meyering  <meyering@redhat.com>
11021
11022         test-rename.h: fix compilation failure
11023         * tests/test-rename.h (test_rename): Add omitted "}".
11024
11025 2010-11-17  Jim Meyering  <meyering@redhat.com>
11026
11027         maint.mk: add a URL discussing the no-@acronym policy
11028         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
11029
11030 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11031
11032         ftoastr: depend on snprintf, improve comments
11033         * lib/ftoastr.c: Also mention Loitsch's draft.
11034         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
11035         needed in the current implementation, but it might simplify
11036         speeding up the code later.
11037         * modules/ftoastr: Depend on snprintf; this improves portability.
11038         Suggested by Bruno Haible in the same email.
11039
11040         ftoastr: port to hosts lacking strtof and strtold
11041         Problem reported by Bruno Haible in
11042         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
11043         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
11044         environment and strtold (and presumably strtof) are not available.
11045         * modules/ftoastr (Files): Add m4/c-strtod.m4.
11046         (configure.ac): Require gl_C99_STRTOLD.
11047
11048 2010-11-18  Bruno Haible  <bruno@clisp.org>
11049
11050         c-strtold: Avoid link error on AIX 7.
11051         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
11052         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
11053         (gl_C_STRTOLD): Test whether strtold_l exists.
11054         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11055
11056 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11057
11058         intprops: new macro INT_BITS_STRLEN_BOUND
11059         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
11060         ftoastr.h.  This exposes an internal of intprops.h that was formerly
11061         not exposed.  Also, it uses a slightly tighter bound than before;
11062         though this makes no practical difference, we might as well be as
11063         tight as we easily can.
11064
11065         ftoastr: new module, for lossless conversion of floats to short strings
11066         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
11067         * modules/ftoastr: New files.
11068
11069 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
11070
11071         bootstrap: port to Solaris sed
11072         * build-aux/bootstrap (get_version): Port to Solaris sed.
11073         See Ralf Wildenhues's note in
11074         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
11075
11076 2010-11-14  Jim Meyering  <meyering@redhat.com>
11077
11078         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
11079         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
11080         and move definition closer to sole use.
11081
11082 2010-11-13  Jim Meyering  <meyering@redhat.com>
11083
11084         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
11085         Now we require at least autoconf-2.59, which means the work-around
11086         is no longer needed.
11087         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
11088         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11089         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
11090         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
11091         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11092
11093 2010-11-13  Bruno Haible  <bruno@clisp.org>
11094
11095         rename, renameat: Avoid test failures at NFS mounted locations.
11096         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
11097         functions.
11098         (test_rename): Use assert_nonexistent.
11099         * tests/test-rename.c: Include <dirent.h>.
11100         * tests/test-renameat.c: Likewise.
11101         Reported by Gary V. Vaughan <gary@gnu.org>.
11102
11103         rename, renameat: Document Linux bug with NFS
11104         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
11105         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
11106         * doc/posix-functions/renameat.texi: Likewise.
11107         Suggested by Eric Blake.
11108
11109 2010-11-13  Bruno Haible  <bruno@clisp.org>
11110
11111         rename test: Add comments.
11112         * tests/test-rename.h (test_rename): Add structure and comments.
11113
11114 2010-11-13  Eric Blake  <eblake@redhat.com>
11115
11116         maintainer-makefile: cover a few more files
11117         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
11118         scripts generated within C files, for libvirt.
11119
11120 2010-11-13  Bruno Haible  <bruno@clisp.org>
11121
11122         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
11123         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
11124         character, return the number of bytes that belong together, not always
11125         1.
11126         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11127         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11128         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11129         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
11130         number of bytes of an invalid character.
11131         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
11132         (main): Invoke it.
11133         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
11134         results.
11135         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
11136         malformed byte sequences.
11137         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
11138         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
11139         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
11140         Reported by Ben Pfaff and Paolo Bonzini.
11141
11142 2010-11-13  Bruno Haible  <bruno@clisp.org>
11143
11144         openat: Work around glibc bug with fchownat() and empty file names.
11145         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
11146         (gl_FUNC_FCHOWNAT): Invoke it.
11147         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
11148         * doc/posix-functions/fchownat.texi: Document the glibc bug.
11149         Reported by Gary V. Vaughan <gary@gnu.org>.
11150
11151 2010-11-13  Bruno Haible  <bruno@clisp.org>
11152
11153         openat: Ensure autoconf macro ordering.
11154         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
11155         gl_USE_SYSTEM_EXTENSIONS.
11156         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
11157
11158 2010-11-13  Bruno Haible  <bruno@clisp.org>
11159
11160         Update comments.
11161         * lib/unistr/u8-check.c: Update file name in comments.
11162         * lib/unistr/u8-mblen.c: Likewise.
11163         * lib/unistr/u8-prev.c: Likewise.
11164         * lib/unistr/u8-strmblen.c: Likewise.
11165         * lib/unistr/u8-strmbtouc.c: Likewise.
11166
11167 2010-11-13  Jim Meyering  <meyering@redhat.com>
11168
11169         tests: avoid test failure on Solaris 10 due to lack of PATH export
11170         * tests/test-update-copyright.sh: Don't forget to export PATH.
11171
11172         init.sh: ensure that IFS is defined, just in case...
11173         * tests/init.sh (setup_): Ensure that IFS is defined,
11174         so that saving and restoring it works as expected.  This
11175         appears to be useful at least for an old version of dash
11176         from a long time ago (RH 6).  See here for details:
11177         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
11178
11179         maint.mk: tighten "test a == b" check
11180         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
11181         test to files that contain something like #!/bin/sh.
11182         Without this, coreutils would get two false positives in
11183         the comments of C source files.
11184
11185 2010-11-12  Eric Blake  <eblake@redhat.com>
11186
11187         bootstrap: fix typo in previous attempt
11188         * build-aux/bootstrap (buildreq): Correct the grouping.
11189         Reported by Paul Eggert.
11190
11191         maintainer-makefile: prohibit test x == x
11192         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
11193         Based on a report by Matthias Bolte.
11194
11195         bootstrap: allow FreeBSD gzip
11196         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
11197         which has no '.' and goes to stderr.
11198         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
11199         Reported by Matthias Bolte.
11200
11201         maintainer-makefile: check for i18n setup
11202         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
11203         will likely work.
11204
11205 2010-11-12  Bruno Haible  <bruno@clisp.org>
11206
11207         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
11208         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
11209         * lib/nanosleep.c (nanosleep): Likewise.
11210
11211 2010-11-11  Bruno Haible  <bruno@clisp.org>
11212
11213         fcntl-h: Fix for use of C++ on glibc systems.
11214         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
11215         also on glibc systems in C++ mode.
11216         Reported by Gary V. Vaughan <gary@gnu.org>.
11217
11218 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11219
11220         mknod: avoid false failure with dash
11221         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
11222
11223 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
11224
11225         unlink: Fix "is it should" typo in diagnostic.
11226         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
11227         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
11228
11229 2010-11-11  Bruno Haible  <bruno@clisp.org>
11230
11231         Tests for module 'strerror_r-posix'.
11232         * modules/strerror_r-posix-tests: New file.
11233         * tests/test-strerror_r.c: New file.
11234         * tests/test-string-c++.cc: Check the signature of strerror_r.
11235
11236         New module 'strerror_r-posix'.
11237         * lib/string.in.h (strerror_r): New declaration.
11238         * lib/strerror_r.c: New file.
11239         * m4/strerror_r.m4: New file.
11240         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
11241         of strerror_r.
11242         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
11243         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11244         * modules/strerror_r-posix: New file.
11245         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
11246         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
11247         * doc/posix-functions/strerror_r.texi: Mention the new module and the
11248         portability problems.
11249
11250 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
11251
11252         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
11253         line is also considered for output. Quoted function name in shell
11254         command, so temporary files for functions like MyClass::operator()
11255         are removed correctly without errors.
11256
11257 2010-11-09  Bruno Haible  <bruno@clisp.org>
11258
11259         * doc/posix-functions/strerror.texi: List more failing platforms.
11260
11261         * doc/posix-functions/strerror.texi: Add a comment.
11262
11263 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
11264
11265         fdopendir: fix bug on MacOS X when low on file descriptors
11266
11267         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
11268         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
11269         All callers changed.
11270         (fdopendir): Invoke save_cwd at the top level, not after using
11271         multiple dup() calls to use up file descriptors.  Then retry
11272         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
11273         less than the maximum number of open file descriptors, because
11274         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
11275         on Mac OS X 10.6.4 for tar 1.24
11276         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
11277         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
11278         and for tar 1.25
11279         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
11280
11281 2010-11-07  Bruno Haible  <bruno@clisp.org>
11282
11283         vasnprintf: Support I flag on glibc systems.
11284         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
11285         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
11286         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
11287         snprintf function.
11288         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
11289         glibc systems.
11290         * tests/test-vasnprintf-posix3.c: New file.
11291         * modules/vasnprintf-posix-tests (Files): Add it.
11292         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
11293
11294 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11295
11296         [html] Fix copy/paste bug: Use unique name for compiler warnings.
11297         * MODULES.html.sh: For compiler warnings, use name
11298         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
11299
11300 2010-11-05  Eric Blake  <eblake@redhat.com>
11301
11302         ceil, floor: avoid spurious failure with icc
11303         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
11304         [denormals-as-zero] when optimizing without -mieee-fp option.
11305         * tests/test-floorf2.c (floorf_reference): Likewise.
11306         * tests/test-ceilf1.c (dummy): New function.
11307         (main): Use it to outsmart icc's optimization.
11308         * tests/test-floorf1.c (dummy, main): Likewise.
11309
11310         tests: require working signbit
11311         * modules/ceilf-tests (Depends-on): Add signbit.
11312         * modules/ceill-tests (Depends-on): Likewise.
11313         * modules/floorf-tests (Depends-on): Likewise.
11314         * modules/floorl-tests (Depends-on): Likewise.
11315         * modules/round-tests (Depends-on): Likewise.
11316         * modules/roundf-tests (Depends-on): Likewise.
11317         * modules/roundl-tests (Depends-on): Likewise.
11318         * modules/trunc-tests (Depends-on): Likewise.
11319         * modules/truncf-tests (Depends-on): Likewise.
11320         * modules/truncl-tests (Depends-on): Likewise.
11321
11322         strtod: work around icc bug
11323         * lib/strtod.c (minus_zero): Define to working value.
11324         (strtod): Use it to avoid icc bug.
11325
11326         copysign: enhance tests
11327         * modules/copysign-tests (Files): Add minus-zero.h.
11328         * tests/test-copysign.c (main): Also test zeros.
11329
11330 2010-11-04  Eric Blake  <eblake@redhat.com>
11331
11332         ceil, floor, round, trunc: enhance tests of -0
11333         * tests/test-ceilf1.c (main): Ensure correct sign of result.
11334         * tests/test-ceill.c (main): Likewise.
11335         * tests/test-floorf1.c (main): Likewise.
11336         * tests/test-floorl.c (main): Likewise.
11337         * tests/test-round1.c (main): Likewise.
11338         * tests/test-roundf1.c (main): Likewise.
11339         * tests/test-roundl.c (main): Likewise.
11340         * tests/test-trunc1.c (main): Likewise.
11341         * tests/test-truncf1.c (main): Likewise.
11342         * tests/test-truncl.c (main): Likewise.
11343
11344 2010-11-04  Eric Blake  <eblake@redhat.com>
11345
11346         frexp, tests: work around ICC bug with -zero
11347         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
11348         works with more compilers.
11349         * tests/minus-zero.h: New file.
11350         * modules/ceilf-tests (Files): Include it.
11351         * modules/ceill-tests (Files): Likewise.
11352         * modules/floorf-tests (Files): Likewise.
11353         * modules/floorl-tests (Files): Likewise.
11354         * modules/frexp-nolibm-tests (Files): Likewise.
11355         * modules/frexp-tests (Files): Likewise.
11356         * modules/frexpl-nolibm-tests (Files): Likewise.
11357         * modules/frexpl-tests (Files): Likewise.
11358         * modules/isnan-tests (Files): Likewise.
11359         * modules/isnand-nolibm-tests (Files): Likewise.
11360         * modules/isnand-tests (Files): Likewise.
11361         * modules/isnanf-nolibm-tests (Files): Likewise.
11362         * modules/isnanf-tests (Files): Likewise.
11363         * modules/isnanl-nolibm-tests (Files): Likewise.
11364         * modules/isnanl-tests (Files): Likewise.
11365         * modules/round-tests (Files): Likewise.
11366         * modules/roundf-tests (Files): Likewise.
11367         * modules/roundl-tests (Files): Likewise.
11368         * modules/ldexpl-tests (Files): Likewise.
11369         * modules/signbit-tests (Files): Likewise.
11370         * modules/snprintf-posix-tests (Files): Likewise.
11371         * modules/sprintf-posix-tests (Files): Likewise.
11372         * modules/strtod-tests (Files): Likewise.
11373         * modules/trunc-tests (Files): Likewise.
11374         * modules/truncf-tests (Files): Likewise.
11375         * modules/truncl-tests (Files): Likewise.
11376         * modules/vsnprintf-posix-tests (Files): Likewise.
11377         * modules/vsprintf-posix-tests (Files): Likewise.
11378         * modules/vasnprintf-posix-tests (Files): Likewise.
11379         * modules/vasprintf-posix-tests (Files): Likewise.
11380         * tests/test-ceilf1.c (main): Use it.
11381         * tests/test-ceill.c (main): Likewise.
11382         * tests/test-floorf1.c (main): Likewise.
11383         * tests/test-floorl.c (main): Likewise.
11384         * tests/test-frexp.c (main): Likewise.
11385         * tests/test-frexpl.c (main): Likewise.
11386         * tests/test-isnan.c (main): Likewise.
11387         * tests/test-isnand.h (main): Likewise.
11388         * tests/test-isnanf.h (main): Likewise.
11389         * tests/test-isnanl.h (main): Likewise.
11390         * tests/test-ldexpl.c (main): Likewise.
11391         * tests/test-round.c (main): Likewise.
11392         * tests/test-roundf.c (main): Likewise.
11393         * tests/test-roundl.c (main): Likewise.
11394         * tests/test-signbit.c (test_signbitf, test_signbitd)
11395         (test_signbitl): Likewise.
11396         * tests/test-snprintf-posix.h (test_function): Likewise.
11397         * tests/test-sprintf-posix.h (test_function): Likewise.
11398         * tests/test-strtod.c (main): Likewise.
11399         * tests/test-trunc1.c (main): Likewise.
11400         * tests/test-truncf1.c (main): Likewise.
11401         * tests/test-truncl.c (main): Likewise.
11402
11403         isnanl: work around icc bug
11404         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
11405
11406 2010-11-03  Eric Blake  <eblake@redhat.com>
11407
11408         tests: fix compiler warnings
11409         * tests/test-getopt.h (test_getopt): Fix condition.
11410         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11411         * tests/test-pipe2.c (main): Likewise.
11412         * tests/test-quotearg-simple.c (main): Avoid icc warning.
11413
11414         utimens: fix broken m4 test
11415         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
11416
11417 2010-10-28  Bruno Haible  <bruno@clisp.org>
11418
11419         posix_spawn*, getdtablesize: Relax license.
11420         * modules/posix_spawn (License): Change to LGPLv2+.
11421         * modules/posix_spawnp (License): Likewise.
11422         * modules/posix_spawn-internal (License): Likewise.
11423         * modules/posix_spawnattr_init (License): Likewise.
11424         * modules/posix_spawnattr_getflags (License): Likewise.
11425         * modules/posix_spawnattr_setflags (License): Likewise.
11426         * modules/posix_spawnattr_getpgroup (License): Likewise.
11427         * modules/posix_spawnattr_setpgroup (License): Likewise.
11428         * modules/posix_spawnattr_getschedparam (License): Likewise.
11429         * modules/posix_spawnattr_setschedparam (License): Likewise.
11430         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
11431         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
11432         * modules/posix_spawnattr_getsigdefault (License): Likewise.
11433         * modules/posix_spawnattr_setsigdefault (License): Likewise.
11434         * modules/posix_spawnattr_getsigmask (License): Likewise.
11435         * modules/posix_spawnattr_setsigmask (License): Likewise.
11436         * modules/posix_spawnattr_destroy (License): Likewise.
11437         * modules/posix_spawn_file_actions_init (License): Likewise.
11438         * modules/posix_spawn_file_actions_addclose (License): Likewise.
11439         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
11440         * modules/posix_spawn_file_actions_addopen (License): Likewise.
11441         * modules/posix_spawn_file_actions_destroy (License): Likewise.
11442         * modules/getdtablesize (License): Likewise.
11443         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
11444
11445 2010-10-26  Bruno Haible  <bruno@clisp.org>
11446
11447         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
11448         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
11449         Cygwin and mingw.
11450         Suggested by Eric Blake.
11451
11452 2010-10-26  Bruno Haible  <bruno@clisp.org>
11453
11454         stdio: Work around compilation error due to renameat() on Solaris 10.
11455         * lib/stdio.in.h: Include <unistd.h> on Solaris.
11456         * lib/renameat.c: Don't include <unistd.h> here.
11457         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
11458         Reported by Paul Eggert and Eric Blake.
11459
11460 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11461
11462         renameat: port to Solaris 10, which declares renameat in unistd.h
11463
11464         * lib/renameat.c: Include unistd.h before stdio.h, because
11465         Solaris 10 declares renameat in unistd.h.  Problem encountered
11466         when building GNU tar 1.24 on Solaris 10.
11467
11468 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11469
11470         fdopendir: fix C89 compilation
11471         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
11472         compilers.
11473
11474 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11475
11476         inttostr: simplify by removing unnecessary redundancy
11477         * lib/anytostr.c: Don't include verify.h.
11478         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
11479         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
11480         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
11481         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
11482         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
11483         Likewise.
11484         * modules/inttostr (Depends-on): Remove 'verify'.
11485
11486 2010-10-23  Bruno Haible  <bruno@clisp.org>
11487
11488         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
11489         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
11490         Reported by Eric Blake.
11491
11492 2010-10-23  Bruno Haible  <bruno@clisp.org>
11493
11494         Tests: Fix LOCALE_JA on MirBSD 10.
11495         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
11496         to an UTF-8 locale.
11497         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
11498         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
11499         Reported by Eric Blake.
11500
11501 2010-10-21  Bruno Haible  <bruno@clisp.org>
11502
11503         nl_langinfo test: Avoid test failure on NetBSD 5.
11504         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
11505         Reported by Eric Blake.
11506
11507 2010-10-21  Eric Blake  <eblake@redhat.com>
11508
11509         c-stack: work around libsigsegv 2.8 bug
11510         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
11511         overflow on at least PowerPC64.
11512
11513 2010-10-17  Bruno Haible  <bruno@clisp.org>
11514
11515         userspec: Drop redundant file.
11516         * modules/userspec (Files): Remove lib/inttostr.h.
11517
11518 2010-10-17  Bruno Haible  <bruno@clisp.org>
11519
11520         nl_langinfo tests: Silence some warnings.
11521         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
11522         Reported by Jim Meyering.
11523
11524 2010-10-17  Bruno Haible  <bruno@clisp.org>
11525
11526         Make use of GCC's attribute __alloc_size__.
11527         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
11528         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
11529         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
11530         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
11531         __alloc_size__.
11532         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
11533         Suggested by Jim Meyering.
11534
11535 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
11536
11537         bootstrap: anchor .gitignore entries.
11538         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
11539         with...
11540         (insert_vc_ignore): ... this new function, which prepends `/' to
11541         all .gitignore entries before passing them to
11542         insert_sorted_if_absent.
11543
11544 2010-10-16  Bruno Haible  <bruno@clisp.org>
11545
11546         nextafter: Fix configure check.
11547         * modules/nextafter (configure.ac): Correct expected prototype.
11548
11549 2010-10-16  Bruno Haible  <bruno@clisp.org>
11550
11551         termios: Update documentation.
11552         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
11553
11554 2010-10-16  Bruno Haible  <bruno@clisp.org>
11555
11556         tests: Make them compile with TinyCC.
11557         * tests/test-strstr.c (main): Remove parentheses around array
11558         initializer.
11559
11560 2010-10-15  Eric Blake  <eblake@redhat.com>
11561
11562         ignore-value: make header idempotent
11563         * lib/ignore-value.h: Add double-inclusion guards.
11564         Reported by Stefan Berger.
11565
11566 2010-10-15  Jim Meyering  <meyering@redhat.com>
11567
11568         GNUmakefile: handle "stable" target, not "major"
11569         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
11570         lists in maint.mk and announce-gen.  Without this, "make stable"
11571         would fail to ensure that $(VERSION) is up to date.
11572
11573 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
11574
11575         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
11576         & co.
11577
11578 2010-10-14  Bruno Haible  <bruno@clisp.org>
11579
11580         vasnprintf: Don't set errno to 0.
11581         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
11582         block that sets it to 0.
11583         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
11584
11585 2010-10-14  Bruno Haible  <bruno@clisp.org>
11586
11587         socketlib: Fix.
11588         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
11589         gl_PREREQ_SYS_H_WINSOCK2.
11590         Reported by Ian Beckwith <ianb@erislabs.net>.
11591
11592 2010-10-13  Jim Meyering  <meyering@redhat.com>
11593
11594         test-select-stdin.c: avoid warn_unused_result warnings
11595         * tests/test-select-stdin.c: Include "macros.h".
11596         ASSERT that read and fflush succeed.
11597
11598 2010-10-13  Jim Meyering  <meyering@redhat.com>
11599
11600         git-version-gen: do require git-VC'd files in cwd
11601         * build-aux/git-version-gen: Reject a git version string
11602         if there are no commits associated with the current directory.
11603         This avoids an unlikely false-positive (unrelated dir whose parent
11604         repository also contains a tag matching v*), as pointed out
11605         by Giuseppe Scrivano in
11606         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
11607
11608 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11609
11610         argv-iter: omit nonconforming declaration
11611         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
11612         enum arg_iter_err declaration, which doesn't conform to C99.
11613         Solaris 10 cc warns about this.
11614
11615 2010-10-13  Eric Blake  <eblake@redhat.com>
11616
11617         termios: fix compilation on mingw
11618         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
11619         (gl_TERMIOS_H): Adjust it on mingw.
11620         * modules/termios (Makefile.am): Substitute new key.
11621         * lib/termios.in.h (includes): Make include_next conditional.
11622         * doc/posix-headers/termios.texi (termios.h): Update
11623         documentation.
11624         Reported by Daniel P. Berrange.
11625
11626 2010-10-13  Jim Meyering  <meyering@redhat.com>
11627
11628         git-version-gen: don't require that .git/ be in the current dir
11629         * build-aux/git-version-gen: Adjust this script so that it works
11630         when run from any working directory beneath the top-level .git/-
11631         containing directory.  Inspired by a patch from Giuseppe Scrivano,
11632         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
11633
11634         test-select: avoid warn_unused_result warnings
11635         * tests/test-select.c: Include "macros.h".
11636         ASSERT that each call to read, write, and pipe succeeds.
11637         While not technically required, also check each "close".
11638         * modules/select-tests (Files): Add tests/macros.h.
11639
11640         test-symlinkat: remove declaration of unused local
11641         * tests/test-symlinkat.c (main): Remove unused local, "buf".
11642
11643         test-inttostr: avoid shadowing warnings
11644         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
11645         and use malloc rather than the stack for the same reason as
11646         mentioned in the comment justifying the other allocation.
11647
11648 2010-10-11  Bruno Haible  <bruno@clisp.org>
11649
11650         stdlib: Allow multiple gnulib generated replacements to coexist.
11651         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
11652         Reported by Sam Steingold <sds@gnu.org>.
11653
11654 2010-10-11  Jim Meyering  <meyering@redhat.com>
11655
11656         fix a documentation typo
11657         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
11658
11659 2010-10-11  Eric Blake  <eblake@redhat.com>
11660
11661         futimens: work around Solaris 11 bug
11662         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
11663         * tests/test-futimens.h (test_futimens): Enhance, rather than
11664         weaken test.
11665         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11666
11667 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11668
11669         Indentation.
11670         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
11671         higher-level operators more to the left.
11672
11673 2010-10-11  Jim Meyering  <meyering@redhat.com>
11674
11675         test-futimens: avoid unwarranted test failure on Solaris 5.11
11676         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
11677         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
11678         because it tries to dereference the NULL name argument.
11679
11680 2010-10-11  Bruno Haible  <bruno@clisp.org>
11681
11682         Indentation.
11683         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
11684         indentation.
11685
11686 2010-10-11  Jim Meyering  <meyering@redhat.com>
11687
11688         spawn.in.h: make indentation consistent with parentheses
11689         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
11690         Make indentation consistent with parentheses.
11691
11692 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
11693
11694         Fix mismatched parens in previous commit
11695         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
11696         parens.
11697
11698 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
11699
11700         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
11701
11702         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
11703         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
11704         * lib/malloca.c: Include "verify.h".
11705         (verify1): Remove, replacing with a verify call.
11706         * lib/relocwrapper.c (verify1): Likewise.
11707         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
11708         Likewise.
11709         * modules/malloca (Depends-on): Add 'verify'.
11710         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
11711         * modules/vasnprintf (Depends-on): Add 'verify'.
11712         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11713         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11714         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11715         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11716         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11717         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11718         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11719
11720         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
11721
11722         Formerly the style was sometimes 2*X - 1, because the C standard
11723         was wrongly thought to disallow ?: in integral constant expressions.
11724         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
11725         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
11726         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11727         * lib/stdint.in.h (_verify_intmax_size): Likewise.
11728         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
11729         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
11730         verify that time_t cannot be floating.
11731
11732 2010-10-08  Eric Blake  <eblake@redhat.com>
11733
11734         time: enforce recent POSIX ruling that time_t is integral
11735         * lib/time.in.h (__time_t_must_be_integral): Detect any
11736         problematic systems, allowing the rest of gnulib to assume POSIX.
11737
11738 2010-10-08  Jim Meyering  <meyering@redhat.com>
11739
11740         fdopendir: fix a bug on systems lacking openat and /proc support
11741         OpenBSD 4.7 is one such system.  The most noticeable effect was
11742         failure of any application making nontrivial use of fts: rm, du,
11743         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
11744           ./rm: traversal failed: `a': Bad file descriptor
11745         Debugging that, you see that even though FD 6 was closed just
11746         prior to the opendir call in fd_clone_opendir, its resulting
11747         dir->dd_fd was 8, rather than the expected value of 6:
11748
11749         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
11750         93                close (fd);
11751         (gdb) n
11752         94                dir = fd_clone_opendir (dupfd);
11753         (gdb) n
11754         95                saved_errno = errno;
11755         (gdb) p dir->dd_fd
11756         $11 = 8
11757
11758         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
11759         The problem is that on OpenBSD, fd_clone_opendir has to resort
11760         to using the old-style save/restore CWD mechanism, due to its
11761         lack of openat/proc support, and *that* would steal the FD (6)
11762         that opendir was supposed to use.
11763
11764         The fix is to squirrel away the desired FD so that save_cwd uses a
11765         different one, and then free the dest FD right before calling opendir.
11766         That guarantees opendir will use the required file descriptor.
11767
11768         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
11769
11770 2010-10-08  Bruno Haible  <bruno@clisp.org>
11771
11772         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
11773         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
11774
11775 2010-10-08  Bruno Haible  <bruno@clisp.org>
11776
11777         nanosleep: Make replacement POSIX compliant.
11778         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
11779         is out of range.
11780         Reported by Jim Meyering.
11781
11782 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11783
11784         bootstrap: add hook for altering gnulib.mk, for Bison
11785         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
11786         the Bison bootstrapping process can rewrite file names and variables
11787         in this file before later parts of 'bootstrap' use the file.
11788         Bison wants to include lib/gnulib.mk from the top-level makefile,
11789         so it needs the file names in this file to be relative to the top
11790         level, not relative to lib; plus it needs variable names to be
11791         rewritten.
11792         (slurp): Use the new function.
11793
11794         bootstrap: reformat for readability
11795         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
11796
11797 2010-10-08  Eric Blake  <eblake@redhat.com>
11798
11799         docs: update cygwin progress
11800         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
11801         1.7.7.
11802         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
11803         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
11804         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
11805         * doc/posix-functions/carg.texi (carg): Likewise.
11806         * doc/posix-functions/cargf.texi (cargf): Likewise.
11807         * doc/posix-functions/casin.texi (casin): Likewise.
11808         * doc/posix-functions/casinf.texi (casinf): Likewise.
11809         * doc/posix-functions/casinh.texi (casinh): Likewise.
11810         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
11811         * doc/posix-functions/catan.texi (catan): Likewise.
11812         * doc/posix-functions/catanf.texi (catanf): Likewise.
11813         * doc/posix-functions/catanh.texi (catanh): Likewise.
11814         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
11815         * doc/posix-functions/ccos.texi (ccos): Likewise.
11816         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
11817         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
11818         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
11819         * doc/posix-functions/cexp.texi (cexp): Likewise.
11820         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
11821         * doc/posix-functions/cimag.texi (cimag): Likewise.
11822         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
11823         * doc/posix-functions/clog.texi (clog): Likewise.
11824         * doc/posix-functions/clogf.texi (clogf): Likewise.
11825         * doc/posix-functions/conj.texi (conj): Likewise.
11826         * doc/posix-functions/conjf.texi (conjf): Likewise.
11827         * doc/posix-functions/cpow.texi (cpow): Likewise.
11828         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
11829         * doc/posix-functions/cproj.texi (cproj): Likewise.
11830         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
11831         * doc/posix-functions/creal.texi (creal): Likewise.
11832         * doc/posix-functions/crealf.texi (crealf): Likewise.
11833         * doc/posix-functions/csin.texi (csin): Likewise.
11834         * doc/posix-functions/csinf.texi (csinf): Likewise.
11835         * doc/posix-functions/csinh.texi (csinh): Likewise.
11836         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
11837         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
11838         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
11839         * doc/posix-functions/ctan.texi (ctan): Likewise.
11840         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
11841         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
11842         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
11843         * doc/posix-headers/complex.texi (complex.h): Likewise.
11844
11845 2010-10-07  Jim Meyering  <meyering@redhat.com>
11846
11847         parse-datetime: avoid compilation failure on OpenBSD 4.7
11848         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
11849         This works around a compilation failure on OpenBSD 4.7:
11850         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
11851
11852 2010-10-07  Eric Blake  <eblake@redhat.com>
11853
11854         docs: update cygwin progress
11855         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
11856         1.7.6.
11857         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
11858         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
11859         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
11860         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
11861         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
11862         Likewise.
11863         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
11864         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
11865         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
11866         Likewise.
11867         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
11868         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
11869         Likewise.
11870         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
11871         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
11872         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
11873         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
11874         Likewise.
11875         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
11876         Likewise.
11877         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
11878
11879         docs: update parse-datetime history
11880         * doc/parse-datetime.texi (Authors of parse_datetime): Better
11881         documentation of this function's history and alternatives.
11882
11883         cygwin: use more robust version check
11884         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
11885         exclude an eventual cygwin 1.9.1.
11886         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11888         (gl_FUNC_STRCASESTR): Likewise.
11889         Reported by Bruno Haible.
11890
11891 2010-10-06  Bruno Haible  <bruno@clisp.org>
11892
11893         string, sys_select: Avoid #including large headers unless necessary.
11894         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
11895         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
11896         OSF/1, BeOS, Haiku.
11897         Reported by Jim Meyering.
11898
11899 2010-10-05  Eric Blake  <eblake@redhat.com>
11900
11901         memmem, strstr, strcasestr: fix bug with long periodic needle
11902         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
11903         periodic needle having false positive.
11904         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
11905         and cygwin 1.7.7.
11906         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
11907         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
11908         (gl_FUNC_STRCASESTR): Likewise.
11909         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
11910         * tests/test-memmem.c (main): Expose the bug.
11911         * tests/test-strcasestr.c (main): Likewise.
11912         * tests/test-strstr.c (main): Likewise.
11913         * tests/test-c-strcasestr.c (main): Likewise.
11914         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
11915         * doc/posix-functions/strstr.texi (strstr): Likewise.
11916         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11917         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
11918
11919 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11920
11921         parse-datetime: do some more renaming
11922         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
11923         parse_datetime, not get_date.  Mention the renaming.
11924         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
11925         in comments.
11926         * m4/bison.m4: Likewise.
11927
11928 2010-10-05  Eric Blake  <eblake@redhat.com>
11929
11930         parse-datetime: better name than get_date
11931         * NEWS: Reword the deprecation notice.
11932         * modules/get_date: Rename to modules/parse-datetime.
11933         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
11934         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
11935         * lib/get_date.y: Rename to lib/parse-datetime.y.
11936         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
11937         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
11938         * doc/getdate.texi: Provide fallback wrapper.
11939         * lib/getdate.h: Move guts, and wrap...
11940         * lib/parse-datetime.h: ...new file.
11941         * lib/parse-datetime.y (get_date): Rename...
11942         (parse_datetime): ...to this.
11943         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
11944         (gl_PARSE_DATETIME): ...to this.
11945         * doc/posix-functions/getdate.texi (get_date): Provide fallback
11946         documentation.
11947         * modules/getdate (Files): Provide fallback docs and header.
11948         (Notice, Depends-on): Update references.
11949         * tests/test-parse-datetime.c: Likewise.
11950         * DEPENDENCIES: Likewise.
11951         * MODULES.html.sh (Date and time <time.h>): Likewise.
11952         * doc/parse-datetime.texi (Date input formats)
11953         (Authors of parse_datetime): Likewise.
11954         * modules/parse-datetime (Files, configure.ac, Makefile.am)
11955         (Include): Likewise.
11956         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
11957         * gnulib-tool: Likewise.
11958         * m4/bison.m4 (gl_BISON): Likewise.
11959         Suggested by Bruno Haible.
11960
11961 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
11962
11963         more ports to Solaris tr, which needs [] around ranges
11964         * gnulib-tool: Solaris tr needs [] around ranges.
11965         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11966         * tests/test-pipe-filter-gi1.c (main): Likewise.
11967         * tests/test-pipe-filter-ii1.c (main): Likewise.
11968
11969 2010-10-05  Eric Blake  <eblake@redhat.com>
11970
11971         bootstrap: fix Solaris regression
11972         * build-aux/bootstrap (check_versions): Solaris tr still needs []
11973         around ranges.
11974         Reported by Pádraig Brady.
11975
11976         bootstrap: work with pkg-config
11977         * build-aux/bootstrap (check_versions): Also transliterate - in
11978         prerequisite name.
11979         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
11980         prerequisites that were already found, to avoid confusion.
11981         Reported by Justin Clift.
11982
11983         faccessat: remove unused wrappers
11984         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
11985         presence of these wrappers dragged in -lgen on Solaris.
11986         Reported by Clemens Brogi; fix suggested by Paul Eggert.
11987
11988 2010-10-05  Jim Meyering  <meyering@redhat.com>
11989
11990         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
11991         * Makefile (sc_pragma_columns): New syntax-check rule.
11992
11993 2010-10-04  Bruno Haible  <bruno@clisp.org>
11994
11995         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
11996         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
11997         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
11998         Reported by Bruce Korb and Eric Blake.
11999
12000 2010-10-04  Bruno Haible  <bruno@clisp.org>
12001
12002         threadlib: Make option --with-libpth-prefix work.
12003         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
12004         use $LIBPTH, not just -lpth.
12005
12006 2010-10-04  Bruno Haible  <bruno@clisp.org>
12007
12008         Avoid line length limitation from HP NonStop system header files.
12009         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
12010         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
12011         * lib/ctype.in.h: Likewise.
12012         * lib/dirent.in.h: Likewise.
12013         * lib/errno.in.h: Likewise.
12014         * lib/fcntl.in.h: Likewise.
12015         * lib/float.in.h: Likewise.
12016         * lib/getopt.in.h: Likewise.
12017         * lib/iconv.in.h: Likewise.
12018         * lib/inttypes.in.h: Likewise.
12019         * lib/langinfo.in.h: Likewise.
12020         * lib/locale.in.h: Likewise.
12021         * lib/math.in.h: Likewise.
12022         * lib/netdb.in.h: Likewise.
12023         * lib/netinet_in.in.h: Likewise.
12024         * lib/poll.in.h: Likewise.
12025         * lib/pthread.in.h: Likewise.
12026         * lib/pty.in.h: Likewise.
12027         * lib/sched.in.h: Likewise.
12028         * lib/se-selinux.in.h: Likewise.
12029         * lib/search.in.h: Likewise.
12030         * lib/signal.in.h: Likewise.
12031         * lib/spawn.in.h: Likewise.
12032         * lib/stdarg.in.h: Likewise.
12033         * lib/stddef.in.h: Likewise.
12034         * lib/stdint.in.h: Likewise.
12035         * lib/stdio.in.h: Likewise.
12036         * lib/stdlib.in.h: Likewise.
12037         * lib/string.in.h: Likewise.
12038         * lib/strings.in.h: Likewise.
12039         * lib/sys_file.in.h: Likewise.
12040         * lib/sys_ioctl.in.h: Likewise.
12041         * lib/sys_select.in.h: Likewise.
12042         * lib/sys_socket.in.h: Likewise.
12043         * lib/sys_stat.in.h: Likewise.
12044         * lib/sys_time.in.h: Likewise.
12045         * lib/sys_times.in.h: Likewise.
12046         * lib/sys_utsname.in.h: Likewise.
12047         * lib/sys_wait.in.h: Likewise.
12048         * lib/sysexits.in.h: Likewise.
12049         * lib/termios.in.h: Likewise.
12050         * lib/time.in.h: Likewise.
12051         * lib/unistd.in.h: Likewise.
12052         * lib/wchar.in.h: Likewise.
12053         * lib/wctype.in.h: Likewise.
12054         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
12055         * modules/ctype (Makefile.am): Likewise.
12056         * modules/dirent (Makefile.am): Likewise.
12057         * modules/errno (Makefile.am): Likewise.
12058         * modules/fcntl-h (Makefile.am): Likewise.
12059         * modules/float (Makefile.am): Likewise.
12060         * modules/getopt-posix (Makefile.am): Likewise.
12061         * modules/iconv-h (Makefile.am): Likewise.
12062         * modules/inttypes (Makefile.am): Likewise.
12063         * modules/langinfo (Makefile.am): Likewise.
12064         * modules/locale (Makefile.am): Likewise.
12065         * modules/math (Makefile.am): Likewise.
12066         * modules/netdb (Makefile.am): Likewise.
12067         * modules/netinet_in (Makefile.am): Likewise.
12068         * modules/poll-h (Makefile.am): Likewise.
12069         * modules/pthread (Makefile.am): Likewise.
12070         * modules/pty (Makefile.am): Likewise.
12071         * modules/sched (Makefile.am): Likewise.
12072         * modules/search (Makefile.am): Likewise.
12073         * modules/selinux-h (Makefile.am): Likewise.
12074         * modules/signal (Makefile.am): Likewise.
12075         * modules/spawn (Makefile.am): Likewise.
12076         * modules/stdarg (Makefile.am): Likewise.
12077         * modules/stddef (Makefile.am): Likewise.
12078         * modules/stdint (Makefile.am): Likewise.
12079         * modules/stdio (Makefile.am): Likewise.
12080         * modules/stdlib (Makefile.am): Likewise.
12081         * modules/string (Makefile.am): Likewise.
12082         * modules/strings (Makefile.am): Likewise.
12083         * modules/sys_file (Makefile.am): Likewise.
12084         * modules/sys_ioctl (Makefile.am): Likewise.
12085         * modules/sys_select (Makefile.am): Likewise.
12086         * modules/sys_socket (Makefile.am): Likewise.
12087         * modules/sys_stat (Makefile.am): Likewise.
12088         * modules/sys_time (Makefile.am): Likewise.
12089         * modules/sys_times (Makefile.am): Likewise.
12090         * modules/sys_utsname (Makefile.am): Likewise.
12091         * modules/sys_wait (Makefile.am): Likewise.
12092         * modules/sysexits (Makefile.am): Likewise.
12093         * modules/termios (Makefile.am): Likewise.
12094         * modules/time (Makefile.am): Likewise.
12095         * modules/unistd (Makefile.am): Likewise.
12096         * modules/wchar (Makefile.am): Likewise.
12097         * modules/wctype (Makefile.am): Likewise.
12098
12099 2010-10-04  Bruno Haible  <bruno@clisp.org>
12100
12101         read-file tests: Avoid a test failure on NonStop Kernel.
12102         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
12103         a regular file.
12104         Reported by Joachim Schmitz <schmitz@hp.com>.
12105
12106 2010-10-03  Bruno Haible  <bruno@clisp.org>
12107
12108         gnulib-tool: Fixes for --create-testdir with --libtool.
12109         * gnulib-tool (func_get_automake_snippet): Don't augment
12110         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
12111         an executable.
12112         (func_create_testdir): Handle module 'alloca' like func_import.
12113         Reported by Bruce Korb <bruce.korb@gmail.com>.
12114
12115 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
12116
12117         Avoid some lines longer than 80 characters.
12118         * lib/stdint.in.h: Break long comment lines.
12119         * lib/math.in.h: Likewise.
12120         (_GL_NUM_UINT_WORDS): New macro, for readability.
12121         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
12122         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
12123         * lib/stdlib.in.h: Likewise.
12124         * lib/spawn.in.h: Likewise.
12125         * lib/sys_socket.in.h: Update an URL.
12126         * lib/sys_stat.in.h: Break long line.
12127
12128 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
12129
12130         Improve pmccabe2html.
12131         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
12132         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
12133         when the sources change. Remove the line in the HTML about "Used
12134         ranges" (which implied that there might be other unused ranges),
12135         rename "Resume" to "Summary" (easier to understand for more users).
12136         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
12137         styles, and some unnecessary blank lines.
12138
12139 2010-10-03  Bruno Haible  <bruno@clisp.org>
12140             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12141
12142         acl: Add support for ACLs on NonStop Kernel.
12143         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
12144         Check whether the function aclsort() exists.
12145         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
12146         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
12147         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12148         (acl_nontrivial [HAVE_ACLSORT]: New function.
12149         (file_has_acl): Implement for NonStop Kernel.
12150         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12151         (qset_acl): Implement for NonStop Kernel.
12152         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
12153         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
12154         (main): Implement for NonStop Kernel.
12155         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
12156         Kernel. Handle this flavor.
12157         * tests/test-set-mode-acl.sh: Likewise.
12158         * tests/test-copy-acl.sh: Likewise.
12159         * tests/test-copy-file.sh: Likewise.
12160
12161 2010-10-03  Bruno Haible  <bruno@clisp.org>
12162
12163         Info about ACLs on NonStop Kernel.
12164         * doc/acl-resources.txt: Add info about NonStop Kernel.
12165         References by Joachim Schmitz <schmitz@hp.com>.
12166
12167 2010-10-02  Bruno Haible  <bruno@clisp.org>
12168
12169         Define missing EDQUOT on NonStop Kernel.
12170         * lib/errno.in.h (EDQUOT): Assign a value if missing.
12171         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
12172         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
12173         missing.
12174         * doc/posix-headers/errno.texi: Mention the NSK bug.
12175         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
12176         Reported by Joachim Schmitz <schmitz@hp.com>.
12177
12178 2010-10-02  Bruno Haible  <bruno@clisp.org>
12179
12180         Update doc for POSIX:2008.
12181         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
12182         Update URL of POSIX specification.
12183
12184 2010-10-02  Bruno Haible  <bruno@clisp.org>
12185
12186         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
12187         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
12188         from gnulib, not from Automake.
12189
12190 2010-10-02  Bruno Haible  <bruno@clisp.org>
12191
12192         New module 'system-posix'.
12193         * modules/system-posix: New file.
12194         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
12195         module is present.
12196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12197         GNULIB_SYSTEM_POSIX.
12198         * modules/stdlib (Depends-on): Remove sys_wait.
12199         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
12200         * doc/posix-functions/system.texi: Mention the new module.
12201         * doc/posix-headers/stdlib.texi: Likewise.
12202         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
12203         define test_sys_wait_macros to a no-op.
12204         Reported by Sam Steingold <sds@gnu.org>.
12205
12206 2010-09-30  Bruno Haible  <bruno@clisp.org>
12207
12208         More renaming from 'getdate' to 'get_date'.
12209         * doc/get_date.texi: Renamed from doc/getdate.texi.
12210         * modules/get_date (Files): Update.
12211         * MODULES.html.sh (Date and time <time.h>): Update.
12212         * DEPENDENCIES: Update.
12213         * gnulib-tool: Update comment.
12214         * m4/bison.m4 (gl_BISON): Likewise.
12215         * m4/get_date.m4 (gl_GET_DATE): Likewise.
12216
12217 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
12218
12219         bootstrap: support ACLOCAL_FLAGS during aclocal
12220         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
12221         can add additional -I dir for third-party .m4 files.
12222
12223 2010-09-30  Eric Blake  <eblake@redhat.com>
12224
12225         bootstrap: use glibtoolize on MacOS
12226         * build-aux/bootstrap (check_versions): Convert libtool into
12227         libtoolize.
12228         (tool search): Move libtool check earlier, and look for
12229         glibtoolize for MacOS.
12230         (gnulib_tool_options): Auto-add --libtool when appropriate.
12231         Reported by Justin Clift.
12232
12233         poll: fix typo that broke test on MacOS
12234         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
12235         Reported by Justin Clift.
12236
12237         getdate: rename to get_date
12238         Note: getdate.h is not renamed, to minimize client impact.
12239         * modules/getdate: Mark obsolete.  Move old contents...
12240         * modules/get_date: ...to new module name.
12241         * modules/getdate-tests: Move...
12242         * modules/get_date-tests: ...here.
12243         * m4/getdate.m4: Move...
12244         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
12245         * lib/getdate.y: Move...
12246         * lib/get_date.y: ...here.
12247         * tests/test-getdate.c: Move...
12248         * tests/test-get_date.c: ...here.
12249         * doc/posix-functions/getdate.texi (getdate): Update name.
12250         * NEWS: Mention the change.
12251
12252 2010-09-29  Bruno Haible  <bruno@clisp.org>
12253
12254         Separate the module 'waitpid' from the module 'sys_wait'.
12255         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
12256         present.
12257         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
12258         gl_MODULE_INDICATOR_FOR_TESTS.
12259         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
12260         * modules/sys_wait (Depends-on): Remove waitpid.
12261         (Makefile.am): Substitute GNULIB_WAITPID.
12262         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
12263         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
12264         signature only if the 'waitpid' module is present.
12265         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
12266         * NEWS: Mention the change.
12267         * modules/grantpt (Depends-on): Add waitpid.
12268         * modules/wait-process (Depends-on): Likewise.
12269
12270 2010-09-29  Bruno Haible  <bruno@clisp.org>
12271
12272         More tests for module 'sys_wait'.
12273         * modules/sys_wait-c++-tests: New file.
12274         * tests/test-sys_wait-c++.cc: New file.
12275         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
12276         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12277
12278 2010-09-29  Bruno Haible  <bruno@clisp.org>
12279
12280         New module 'waitpid'.
12281         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
12282         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
12283         Don't include <process.h>.
12284         (waitpid): Declare only, using modern idiom.
12285         * m4/waitpid.m4: New file.
12286         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
12287         * modules/waitpid: New file.
12288         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
12289         (Makefile.am): Update.
12290         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12291
12292 2010-09-28  Bruno Haible  <bruno@clisp.org>
12293
12294         poll: Assume ANSI C.
12295         * lib/poll.c (poll): Use an ANSI C declaration.
12296
12297 2010-09-28  Bruno Haible  <bruno@clisp.org>
12298
12299         poll-h: Create poll.h on all platforms.
12300         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
12301         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
12302         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
12303         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
12304         (gl_REPLACE_POLL_H): Don't set POLL_H.
12305         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
12306         * modules/poll-h (Depends-on): Add include_next.
12307         (Makefile.am): Create poll.h unconditionally. Substitute also
12308         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
12309
12310 2010-09-28  Bruno Haible  <bruno@clisp.org>
12311
12312         Tests for module 'poll-h'.
12313         * modules/poll-h-c++-tests: New file.
12314         * tests/test-poll-h-c++.cc: New file.
12315
12316         Tests for module 'poll-h'.
12317         * modules/poll-h-tests: New file.
12318         * tests/test-poll-h.c: New file.
12319
12320 2010-09-28  Bruno Haible  <bruno@clisp.org>
12321
12322         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
12323         * modules/poll-h (Depends-on): Add 'extensions'.
12324
12325 2010-09-28  Bruno Haible  <bruno@clisp.org>
12326
12327         New module 'poll-h'.
12328         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
12329         (poll): Use modern idiom.
12330         * modules/poll-h: New file.
12331         * modules/poll (Files): Remove lib/poll.in.h.
12332         (Depends-on): Add poll-h.
12333         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
12334         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
12335         * m4/poll_h.m4: New file.
12336         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
12337         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
12338         and invoke gl_REPLACE_POLL_H.
12339         * lib/poll.c: Use common idiom.
12340         * tests/test-poll.c: Likewise.
12341         * doc/posix-headers/poll.texi: Mention the poll-h module.
12342         Suggested by Eric Blake.
12343
12344 2010-09-26  Bruno Haible  <bruno@clisp.org>
12345
12346         sys_wait: Implement WSTOPSIG.
12347         * lib/sys_wait.in.h (WSTOPSIG): New macro.
12348         Reported by Simon Josefsson.
12349
12350 2010-09-26  Simon Josefsson  <simon@josefsson.org>
12351
12352         stdlib, sys_wait: Avoid compilation error on mingw.
12353         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
12354
12355 2010-09-26  Bruno Haible  <bruno@clisp.org>
12356
12357         stdlib tests: Avoid code duplication.
12358         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
12359         * modules/sys_wait-tests (Files): Likewise.
12360         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
12361         * tests/test-stdlib.c: Include test-sys_wait.h.
12362         (main): Invoke test_sys_wait_macros.
12363         * tests/test-sys_wait.c: Include test-sys_wait.h.
12364         (main): Invoke test_sys_wait_macros.
12365
12366 2010-09-25  Simon Josefsson  <simon@josefsson.org>
12367
12368         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
12369         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
12370         sure Windows sockets are working before calling getaddrinfo.
12371         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
12372         * doc/gnulib.texi (Windows sockets): Fix typo.
12373
12374 2010-09-25  Bruno Haible  <bruno@clisp.org>
12375
12376         Tests for module 'regex-quote'.
12377         * modules/regex-quote-tests: New file.
12378         * tests/test-regex-quote.c: New file.
12379
12380         New module 'regex-quote'.
12381         * lib/regex-quote.h: New file.
12382         * lib/regex-quote.c: New file.
12383         * modules/regex-quote: New file.
12384         Suggested by Reuben Thomas <rrt@sc3d.org>.
12385
12386 2010-09-24  Bruno Haible  <bruno@clisp.org>
12387
12388         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
12389         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
12390
12391 2010-09-23  Bruno Haible  <bruno@clisp.org>
12392
12393         setenv: Relax license.
12394         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
12395         Blake.
12396         Requested by Eric Blake.
12397
12398 2010-09-22  Bruno Haible  <bruno@clisp.org>
12399
12400         termios: Relax license.
12401         * modules/termios (License): Change to LGPLv2+.
12402         Requested by Eric Blake.
12403
12404 2010-09-22  Bruno Haible  <bruno@clisp.org>
12405
12406         threadlib: Allow the package to change the default to 'no'.
12407         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
12408         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
12409         Reported by Paul Eggert.
12410
12411 2010-09-22  Pádraig Brady  <P@draigbrady.com>
12412             Bruno Haible  <bruno@clisp.org>
12413
12414         Fix endless loop in mbmemcasecoll.
12415         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
12416         byte.
12417         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
12418
12419 2010-09-22  Bruno Haible  <bruno@clisp.org>
12420
12421         Tests for module 'memcoll'.
12422         * modules/memcoll-tests: New file.
12423         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
12424
12425         memcoll, xmemcoll: Clarify size vs. length.
12426         * modules/memcoll.c (memcoll0): Clarify specification.
12427         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
12428         passed to collate_error.
12429
12430 2010-09-22  Bruno Haible  <bruno@clisp.org>
12431
12432         Tests for module 'memcasecmp'.
12433         * modules/memcasecmp-tests: New file.
12434         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
12435
12436 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
12437
12438         * lib/pthread.in.h: Add split double-inclusion guard, and include
12439         system <pthread.h> if there is one.  Use @@-style as in other
12440         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
12441         pthread.h doesn't.
12442         (pthread_mutexattr_destroy, pthread_mutexattr_init):
12443         (pthread_mutexattr_settype, pthread_mutex_trylock):
12444         New static inline functions, if there's no system <pthread.h>.
12445         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
12446         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
12447         Approximate with mutexes if the system lacks spinlocks, as in
12448         MacOS.
12449         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
12450         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
12451         @@-style.  Check for spinlocks separately.
12452         (gl_PTHREAD_DEFAULTS): New macro.
12453         * modules/pthread: Redo to use a more typical style for in.h files.
12454
12455 2010-09-21  Eric Blake  <eblake@redhat.com>
12456
12457         net_if: enhance tests
12458         * tests/test-net_if.c (main): Move signature checks earlier.
12459         Print failures to stderr.
12460         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
12461         Document the bug that we do not yet fix.
12462
12463 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12464
12465         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
12466         about gnulib, not GSS.
12467
12468 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
12469
12470         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
12471         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
12472         for Emacs.
12473         * build-aux/pmccabe2html: Make Makefile.am example code more
12474         cut-and-paste friendly.
12475
12476 2010-09-21  Simon Josefsson  <simon@josefsson.org>
12477
12478         * tests/test-net_if.c: New file.
12479         * modules/net_if-tests: New file.
12480
12481 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
12482
12483         pthread: add pthread_spin_destroy
12484         * lib/pthread.in.h (pthread_spin_destroy): New function.
12485
12486 2010-09-19  Bruno Haible  <bruno@clisp.org>
12487
12488         gnulib-tool: Fix --help output.
12489         * gnulib-tool (func_usage): Fix help message.
12490         Reported by Reuben Thomas <rrt@sc3d.org>.
12491
12492 2010-09-18  Jim Meyering  <meyering@redhat.com>
12493
12494         maint.mk: avoid unexpanded \n in two diagnostics
12495         * top/maint.mk (sc_prohibit_always_true_header_tests):
12496         Don't use a literal \n in a halt=... assignment.  It would not be
12497         expanded, and the two \n bytes would appear in the diagnostic output
12498         rather than the desired newline.  Use halt=$$(printf ... instead.
12499         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
12500
12501 2010-09-18  Bruno Haible  <bruno@clisp.org>
12502
12503         netinet_in: Doc tweak.
12504         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
12505         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12506
12507 2010-09-18  Jim Meyering  <meyering@redhat.com>
12508
12509         init.sh: correct an outdated comment
12510         * tests/init.sh (create_exe_shims_):  s/function/alias/
12511
12512         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
12513         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
12514         a file named "*.exe" is removed between the glob expansion and the
12515         processing of that oddly named file.
12516
12517 2010-09-17  Eric Blake  <eblake@redhat.com>
12518
12519         mirbsd: add some more support
12520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
12521         in BSD family.
12522         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
12523         devices as OpenBSD.
12524         * m4/host-os.m4 (mirbsd): Add MirBSD.
12525
12526         tests: fix unportable assumption on sys/wait.h
12527         * tests/test-sys_wait.c (main): Relax test.
12528         * tests/test-stdlib.c (main): Likewise.
12529
12530         init.sh: accomodate directory with no .exes
12531         * tests/init.sh: Accomodate directory containing only scripts.
12532
12533         tests: avoid compiler warning
12534         * tests/test-stdlib.c (main): Use the variable.
12535
12536         fdutimens, fdutimensat: update signature, again
12537         * lib/utimens.h (gl_futimens): Delete, and move signature...
12538         (fdutimens): ...here.
12539         (fdutimensat): Rearrange signature.
12540         (lutimensat): Rename variable for clarity.
12541         * lib/fdutimensat.c (fdutimensat): Update signature.
12542         * lib/utimens.c (fdutimens): Likewise.
12543         (gl_futimens): Delete.
12544         (utimens, lutimens): Update callers.
12545         * lib/futimens.c (futimens): Likewise.
12546         * tests/test-fdutimensat.c: Likewise.
12547         * tests/test-utimens.c: Likewise.
12548         * tests/test-futimens.h: Update comment.
12549         * NEWS: Mention this.
12550         Suggested by Paul Eggert.
12551
12552 2010-09-17  Bruno Haible  <bruno@clisp.org>
12553
12554         Take over the maintenance of some older macros from Autoconf.
12555         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
12556         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
12557         GNU Autoconf.
12558         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
12559         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
12560
12561 2010-09-17  Eric Blake  <eblake@redhat.com>
12562
12563         fdutimensat: drop atflag validation
12564         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
12565         with valid fd, to close a race scenario where futimens is
12566         unsupported and FILE was replaced by a symlink.
12567         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
12568         accordingly.
12569         Suggested by Paul Eggert.
12570
12571 2010-09-16  Bruno Haible  <bruno@clisp.org>
12572
12573         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
12574         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
12575
12576 2010-09-16  Bruno Haible  <bruno@clisp.org>
12577
12578         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
12579         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
12580         login_tty exists.
12581         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12582
12583 2010-09-16  Bruno Haible  <bruno@clisp.org>
12584
12585         login_tty: Make the replacement code work on BSD systems.
12586         * lib/login_tty.c: Include <sys/ioctl.h>.
12587         (login_tty): Use ioctl TIOCSCTTY when available.
12588         * modules/login_tty (Depends-on): Add sys_ioctl.
12589         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12590
12591 2010-09-16  Bruno Haible  <bruno@clisp.org>
12592
12593         login_tty: Stricter unit test.
12594         * modules/login_tty-tests (Depends-on): Add tcgetsid.
12595         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
12596         and tcgetsid() after login_tty.
12597         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12598
12599 2010-09-16  Bruno Haible  <bruno@clisp.org>
12600
12601         New module 'tcgetsid'.
12602         * lib/tcgetsid.c: New file.
12603         * m4/tcgetsid.m4: New file.
12604         * modules/tcgetsid: New file.
12605         * modules/termios (Depends-on): Add c++defs, warn-on-use.
12606         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
12607         GNULIB_TCGETSID, HAVE_TCGETSID.
12608         * lib/termios.in.h: Include <sys/types.h>.
12609         (tcgetsid): New declaration.
12610         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
12611         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
12612         * doc/posix-functions/tcgetsid.texi: Mention the new module.
12613         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
12614
12615 2010-09-16  Bruno Haible  <bruno@clisp.org>
12616
12617         Tests for module 'termios'.
12618         * modules/termios-c++-tests: New file.
12619         * modules/termios-tests: New file.
12620         * tests/test-termios-c++.cc: New file.
12621         * tests/test-termios.c: New file.
12622
12623         New module 'termios'.
12624         * modules/termios: New file.
12625         * lib/termios.in.h: New file.
12626         * m4/termios_h.m4: New file.
12627         * doc/posix-headers/termios.texi: Mention the new module.
12628
12629 2010-09-16  Eric Blake  <eblake@redhat.com>
12630
12631         fdutimensat: add an atflag parameter
12632         * lib/fdutimensat.c (fdutimensat): Add new parameter.
12633         * lib/utimens.h (fdutimensat): Update prototype.
12634         * tests/test-fdutimensat.c: Adjust test to match.
12635         * NEWS: Document the change.
12636         Suggested by Paul Eggert.
12637
12638 2010-09-16  Bruno Haible  <bruno@clisp.org>
12639
12640         Fix typos in comments.
12641         * lib/striconveh.h: Fix typo in comment.
12642         * lib/login_tty.c (login_tty): Likewise.
12643
12644 2010-09-15  Bruno Haible  <bruno@clisp.org>
12645
12646         stdlib: clarify MirBSD WEXITSTATUS bug
12647         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
12648         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12649
12650 2010-09-15  Eric Blake  <eblake@redhat.com>
12651
12652         stdlib: work around MirBSD WEXITSTATUS bug
12653         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
12654         * modules/stdlib (Depends-on): Add sys_wait.
12655         * tests/test-sys_wait.c (main): Enhance test.
12656         * tests/test-stdlib.c (main): Likewise.
12657         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
12658
12659         docs: mention MacOS issue with WEXITSTATUS(constant)
12660         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
12661         issue.
12662         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12663
12664         strnlen: add tests
12665         * modules/strnlen-tests: New file.
12666         * tests/test-strnlen.c: Likewise.
12667
12668 2010-09-14  Bruno Haible  <bruno@clisp.org>
12669
12670         unistr/base: Avoid link errors when module 'libunistring' is also used.
12671         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
12672         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
12673         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
12674         Declare also when HAVE_LIBUNISTRING is set.
12675         Reported by Pádraig Brady <P@draigbrady.com>.
12676
12677 2010-09-14  Eric Blake  <eblake@redhat.com>
12678
12679         test-rawmemchr: make more robust
12680         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
12681         (Depends-on, configure.ac): Add needed prerequisites to use it.
12682         * modules/memchr-tests (Files, Depends-on, configure.ac):
12683         Likewise, to avoid implicit reliance on memchr module prereqs.
12684         * tests/test-memchr.c (main): Ensure proper masking.
12685         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
12686         reads.
12687
12688         memchr: detect glibc Alpha bug
12689         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
12690         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
12691         Alpha.
12692         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
12693         * tests/test-memchr.c (main): Enhance test.
12694         Reported by Nelson H. F. Beebe.
12695
12696 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12697
12698         fts, getcwd, glob: audit for dirfd returning -1
12699         * lib/fts.c (opendir): Remove #define; no longer used.
12700         (opendirat): New arg PDIR_FD.  All callers changed.
12701         (fts_build, _opendir2): Use new opendirat to avoid the need for
12702         dirfd, or for checking whether dirfd returns a negative value.
12703         Don't use opendir; always use openat followed by fdopendir.
12704         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
12705         it.
12706         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
12707         returns -1 here.
12708         * modules/fts (Depends-on): Remove dirfd.
12709         * modules/getcwd (Depends-on): Likewise.
12710
12711 2010-09-13  Eric Blake  <eblake@redhat.com>
12712
12713         float: fix broken MirBSD header
12714         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
12715         * doc/posix-headers/float.texi (float.h): Document it.
12716
12717 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
12718
12719         fts: use O_NOFOLLOW to avoid race condition when opening a directory
12720         * lib/fts.c (opendirat): New arg extra_flags.
12721         (__opendir2): Use it to avoid following symlinks when opening
12722         a directory, if symlinks are not supposed to be followed.  See
12723         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
12724
12725         fdopendir: preserve argument fd before returning
12726         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
12727         (fdopendir_with_dup, fd_clone_opendir): New static functions.
12728         (fdopendir): Use them, arranging for FD to be open to the same
12729         directory that it was when it started.  (It might be temporarily
12730         closed while fdopendir is running, so this not thread- or
12731         signal-safe.)  Be careful to do the right thing even when file
12732         descriptors are scarce and dup fails with errno == EMFILE.  See
12733         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
12734
12735 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
12736
12737         regex: Pass the system regex if its only problem is 32-bit regoff_t.
12738         * NEWS: Document change.
12739         * m4/regex.m4: Disable test for regoff_t size.
12740
12741 2010-09-13  Jim Meyering  <meyering@redhat.com>
12742
12743         fts: don't operate on an invalid file descriptor after failed dup
12744         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
12745         negative file descriptor.
12746
12747 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
12748
12749         savedir: add streamsavedir, deprecate fdsavedir
12750         * NEWS: Mention deprecation of fdsavedir.
12751         * lib/savedir.c (streamsavedir): New extern function, whose name
12752         ends in "savedir" to be consistent with the others.  This differs
12753         from savedirstream in that it doesn't close its argument.  The
12754         next version of GNU tar will use this instead of fdsavedir, to
12755         avoid some race conditions and conserve file descriptors.
12756         (savedirstream): Reimplement as a wrapper around streamsavedir.
12757         (fdsavedir): Add a comment deprecating this function.  As far as
12758         I know, only GNU tar used it, and GNU tar doesn't need it any more.
12759         * lib/savedir.h (streamsavedir): New decl.
12760         (fdsavedir): Add a comment deprecating this.
12761
12762 2010-09-10  Bruno Haible  <bruno@clisp.org>
12763
12764         langinfo: Fix last commit.
12765         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
12766         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
12767         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12768
12769 2010-09-10  Bruno Haible  <bruno@clisp.org>
12770
12771         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
12772         * lib/progreloc.c (O_EXEC): Define fallback.
12773
12774 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
12775
12776         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
12777         * NEWS: Document recent changes to fcntl-h.
12778         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
12779         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
12780         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
12781         Similarly for O_SEARCH; this last was already true, but not documented.
12782         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
12783         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
12784         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
12785         Likewise.
12786         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
12787         is zero, not whether it is defined.
12788         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
12789         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
12790         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
12791
12792 2010-09-10  Bruno Haible  <bruno@clisp.org>
12793
12794         langinfo, nl_langinfo: Fix for IRIX 5.3.
12795         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
12796         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
12797         HAVE_LANGINFO_YESEXPR.
12798         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
12799         HAVE_LANGINFO_YESEXPR.
12800         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
12801         HAVE_LANGINFO_T_FMT_AMPM is 0.
12802         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
12803         HAVE_LANGINFO_YESEXPR is 0.
12804         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
12805         NOEXPR.
12806         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
12807         * doc/posix-functions/nl_langinfo.texi: Likewise.
12808         Reported by Eric Blake.
12809
12810 2010-09-10  Bruno Haible  <bruno@clisp.org>
12811
12812         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
12813         * doc/glibc-functions/login_tty.texi: Mention the include file problem
12814         on FreeBSD 8.0 and OpenBSD 4.6.
12815         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
12816         * m4/pty_h.m4 (gl_PTY_H): Likewise.
12817         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
12818         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
12819         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
12820         ac_includes_default.
12821         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
12822
12823 2010-09-09  Eric Blake  <eblake@redhat.com>
12824
12825         strsignal: work around NetBSD bug
12826         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
12827         * lib/string.in.h (includes): Likewise.
12828         * doc/posix-functions/strsignal.texi (strsignal): Document the
12829         bug.
12830         Reported by Nelson H. F. Beebe.
12831
12832         gnulib-tool: work with NetBSD /bin/sh
12833         * gnulib-tool (func_cache_var, func_cache_lookup_module)
12834         (func_get_description, func_get_comment, func_get_status)
12835         (func_get_notice, func_get_applicability, func_get_filelist)
12836         (func_get_dependencies, func_get_autoconf_early_snippet)
12837         (func_get_autoconf_snippet, func_get_automake_snippet)
12838         (func_get_include_directive, func_get_link_directive)
12839         (func_get_license, func_get_maintainer, func_import): Avoid
12840         shell syntax errors from parsing syntax extensions.
12841
12842 2010-09-09  Bruno Haible  <bruno@clisp.org>
12843
12844         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12845         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
12846         a reliable way to determine whether the 'alias' command works.
12847
12848 2010-09-08  Jim Meyering  <meyering@redhat.com>
12849
12850         init.sh: penalize a set-x-impaired shell; don't disqualify it
12851         * tests/init.sh: Too many shells corrupt application stderr when
12852         you set -x, so we can't afford to disqualify them, since at least
12853         on Irix-6.5, that would disqualify all bourne shells.
12854         Instead, use a two-pass approach.
12855         On the first pass, try to find a shell that meets the stricter
12856         condition that set -x does not corrupt stderr.
12857         If no shell meets the stricter condition, retest each candidate
12858         shell, but without that extra condition.  Finally, when
12859         VERBOSE=yes is requested and set -x might cause trouble, simply
12860         issue a warning and refrain from enabling debug output.
12861
12862 2010-09-08  Eric Blake  <eblake@redhat.com>
12863
12864         unsetenv: fix OpenBSD bug
12865         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
12866         * doc/posix-functions/unsetenv.texi (unsetenv): Update
12867         documentation.
12868         Reported by Jim Meyering.
12869
12870         strtod: work around IRIX 6.5 bug
12871         * lib/strtod.c (strtod): Reparse number on shorter string if
12872         exponent parse was invalid.
12873         * tests/test-strtod.c (main): Add check for "0x1p 2".
12874         Reported by Tom G. Christensen.
12875
12876         getopt: optimize previous patch
12877         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
12878         empty variable.  Speed up awk script.
12879         Reported by Paolo Bonzini.
12880
12881 2010-09-08  Jim Meyering  <meyering@redhat.com>
12882
12883         test.sh: disqualify shells for which set -x corrupts stderr
12884         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
12885         and OpenBSD 4.7.  They make it so with "set -x", environment settings
12886         appear in stderr output.  For example, this command:
12887             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
12888         prints "P=1" on those two systems:
12889
12890 2010-09-08  Bruno Haible  <bruno@clisp.org>
12891
12892         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
12893         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
12894         commands, because some shells ignore redirections when there is an
12895         error in the command lookup.
12896         Reported by Eric Blake.
12897
12898 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
12899
12900         * lib/regex.h: Fix a mention of `regex_compile' (should be
12901         `re_compile_pattern').
12902         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
12903         (re_set_registers): Correct name of parameter in comment.
12904
12905         * doc/regex.texi: Add documentation for missing syntax flags.
12906         Remove commented-out documentation of defunct syntax option
12907         RE_NO_EMPTY_ALTS.
12908         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
12909         Add documentation of re_set_registers.
12910         Document trick to re-use a pattern buffer by setting fastmap manually.
12911         Update documentation of struct re_pattern_buffer per public members.
12912         Uncomment documentation of equivalence class operators and
12913         collating symbol operators, since they are now implemented,
12914         Explain leftmost-longest matching in relation to alternatives.
12915         Tidy documentation of substring matching.
12916         Remove POSIX documentation, which is done better in
12917         glibc, and refer the reader there. Keep BSD API documentation, as
12918         that is not readily available elsewhere.
12919
12920 2010-09-07  Eric Blake  <eblake@redhat.com>
12921
12922         getopt: handle POSIXLY_CORRECT set but not exported
12923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
12924         export state of POSIXLY_CORRECT, due to bash set -o posix.
12925         Reported by Dustin J. Mitchell.
12926
12927 2010-09-05  Bruno Haible  <bruno@clisp.org>
12928
12929         gnulib-tool: Highlight the changed options.
12930         * gnulib-tool (func_usage): Display the --import, --add-import,
12931         --remove-import explanations in bold font.
12932
12933 2010-09-06  Karl Berry  <karl@gnu.org>
12934
12935         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
12936
12937 2010-09-05  Bruno Haible  <bruno@clisp.org>
12938
12939         uniwidth/width: Update comment.
12940         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
12941         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
12942
12943 2010-09-05  Bruno Haible  <bruno@clisp.org>
12944
12945         isinf, isnan: Relax license.
12946         * modules/isinf (License): Change from GPL to LGPL, with consent from
12947         Ben Pfaff.
12948         * modules/isnan (License): Likewise.
12949         Requested by Ludovic Courtès.
12950
12951 2010-09-04  Bruno Haible  <bruno@clisp.org>
12952
12953         gnulib-tool: Help migration from --import to --add-import or --update.
12954         * gnulib-tool: Emit a verbose error message when --import is used
12955         without any module name.
12956
12957 2010-09-04  Bruno Haible  <bruno@clisp.org>
12958
12959         Update doc about gnulib-tool.
12960         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
12961         'gnulib-tool --update' in more detail.
12962         Reported by Eric Blake.
12963
12964 2010-09-04  Bruno Haible  <bruno@clisp.org>
12965
12966         gnulib-tool: Change --import. New options --add/remove-import.
12967         * gnulib-tool: New options --add-import, --remove-import.
12968         (func_usage): Document them.
12969         (have_associative): Define always.
12970         (func_import): In import mode, don't merge the specified settings with
12971         the cached settings. Implement remove-import mode.
12972         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
12973         Explain when to use them versus --import.
12974         (Simple update): Use --add-import instead of --import.
12975         * NEWS: Mention the change.
12976
12977 2010-09-04  Bruno Haible  <bruno@clisp.org>
12978
12979         * doc/gnulib-tool.texi (Initial import): Update paragraph about
12980         separate gnulib.mk.
12981
12982 2010-09-04  Bruno Haible  <bruno@clisp.org>
12983
12984         gnulib-tool: Don't talk about CVS any more.
12985         * gnulib-tool (func_usage, func_import): Write "version control"
12986         instead of CVS.
12987
12988 2010-09-04  Jim Meyering  <meyering@redhat.com>
12989
12990         maint.mk: avoid obscure sc_copyright_check failure in coreutils
12991         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
12992         false positives (whose names may be ill-chosen) when searching
12993         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
12994         would cause a false-positive.
12995
12996         avoid coreutils "make distcheck" failure
12997         Coreutils tests with an absolute build directory name that contains
12998         a space.  Not quoting this directory name caused a failure.
12999         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
13000         * tests/test-vc-list-files-cvs.sh: Likewise.
13001
13002 2010-09-04  Bruno Haible  <bruno@clisp.org>
13003
13004         gnulib-tool: Avoid error when run in a package without Makefile.am.
13005         * gnulib-tool: When collecting the m4dirs in a package that does not
13006         have a Makefile.am, eliminate those directories that contain no
13007         gnulib-cache.m4. Fix expression that counts these directories.
13008
13009 2010-09-04  Bruno Haible  <bruno@clisp.org>
13010
13011         update-copyright test: Improve output when perl is missing or too old.
13012         * tests/test-update-copyright.sh: Move test of Perl version down after
13013         the test whether Perl exists. Provide an explanation relating Perl's
13014         error message to Automake's SKIP: message.
13015
13016 2010-09-04  Bruno Haible  <bruno@clisp.org>
13017
13018         Don't augment PATH in TESTS_ENVIRONMENT.
13019         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
13020         set abs_aux_dir instead of augmenting PATH.
13021         * modules/vc-list-files-tests (Makefile.am): Likewise.
13022         * tests/test-update-copyright.sh: Augment PATH here.
13023         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
13024         path_prepend_.
13025         * tests/test-vc-list-files-git.sh: Likewise.
13026
13027 2010-09-04  Jim Meyering  <meyering@redhat.com>
13028
13029         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
13030         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
13031
13032 2010-09-04  Bruno Haible  <bruno@clisp.org>
13033
13034         strdup: Fix compilation error in C++ mode.
13035         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
13036         the macro.
13037
13038 2010-09-04  Bruno Haible  <bruno@clisp.org>
13039
13040         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
13041         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
13042         macro into a function.
13043         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13044
13045 2010-09-04  Bruno Haible  <bruno@clisp.org>
13046
13047         Set PATH_SEPARATOR the same way autoconf does.
13048         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
13049         the value of PATH_SEPARATOR the same way autoconf-generated configure
13050         scripts do.
13051         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
13052         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13053
13054 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13055
13056         Set PATH_SEPARATOR the same way autoconf does.
13057         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
13058         the same way autoconf-generated configure scripts do.
13059         * posix-modules: Likewise.
13060
13061 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
13062
13063         hash: fix safe_hasher const typo
13064         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
13065         const; otherwise, there is a type error later.
13066
13067 2010-09-02  Jim Meyering  <meyering@redhat.com>
13068
13069         test-update-copyright.sh: require perl 5.8.0
13070         * tests/test-update-copyright.sh: Require 5.8.0,
13071         which Tom G. Christensen has confirmed is adequate,
13072         while 5.6.1 is not.
13073
13074 2010-09-02  Eric Blake  <eblake@redhat.com>
13075
13076         tests: init.sh improvements for re-exec'ing with zsh
13077         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
13078         -vx through shell re-exec.
13079         Reported by Tom G. Christensen.
13080
13081         wctype: fix typo in previous commit
13082         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
13083         Reported by Ludovic Courtès.
13084
13085 2010-09-02  Jim Meyering  <meyering@redhat.com>
13086
13087         test-update-copyright.sh: skip test if Perl is too old
13088         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
13089         Reported by Tom G. Christensen.
13090
13091 2010-09-02  Bruno Haible  <bruno@clisp.org>
13092
13093         wctype: Avoid compilation error on IRIX 6.5.30.
13094         * lib/wctype.in.h (iswblank): Declare with a replacement if
13095         REPLACE_ISWBLANK is set.
13096         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
13097         declared. Set REPLACE_ISWBLANK.
13098         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
13099         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
13100         * doc/posix-headers/wctype.texi: Likewise.
13101         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13102
13103 2010-09-01  Bruno Haible  <bruno@clisp.org>
13104
13105         New module 'socketlib'.
13106         * modules/socketlib: New file.
13107         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
13108         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
13109         * modules/sockets (Depends-on): Add socketlib.
13110         Suggested by Sam Steingold <sds@gnu.org>.
13111
13112 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13113
13114         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
13115
13116         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
13117         when one needs search access to a directory but not read access.
13118         On systems where it is available, it works in some cases where
13119         O_RDONLY does not, namely on directories that are searchable but
13120         not readable, and which need only to be searchable.  If O_SEARCH
13121         is not available, fall back to the traditional method of using
13122         O_RDONLY.
13123
13124         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
13125         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
13126         when opening a directory that needs only to be searchable.
13127         * lib/chdir-safer.c (chdir_no_follow): Likewise.
13128         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
13129         * lib/openat-proc.c (openat_proc_name): Likewise.
13130         * lib/openat.c (openat_needs_fchdir): Likewise.
13131         * lib/save-cwd.c (save_cwd): Likewise.
13132         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
13133
13134 2010-08-28  Bruno Haible  <bruno@clisp.org>
13135
13136         New module 'host-cpu-c-abi'.
13137         * modules/host-cpu-c-abi: New file.
13138         * m4/host-cpu-c-abi.m4: New file, based on part of
13139         clisp/src/m4/general.m4.
13140         Requested by Sam Steingold <sds@gnu.org>.
13141
13142 2010-08-31  Eric Blake  <eblake@redhat.com>
13143         and Jim Meyering  <meyering@redhat.com>
13144
13145         hash: factor, and guard against misbehaving hasher function
13146         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
13147         of table->hasher's return value.  Also protect against a hash value
13148         so large that adding it to table->bucket results in a NULL pointer.
13149         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
13150         Use it in place of open-coded check-and-abort.
13151
13152 2010-08-30  Bruno Haible  <bruno@clisp.org>
13153
13154         hash: silence spurious clang warning
13155         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
13156         Reported by Eric Blake.
13157
13158 2010-08-30  Eric Blake  <eblake@redhat.com>
13159
13160         strstr, memmem, strcasestr: avoid leaked shell message
13161         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
13162         FreeBSD.
13163         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13164         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13165
13166         tests: silence clang warning
13167         * tests/test-malloca.c (do_allocation): Avoid dead store.
13168
13169 2010-08-29  Bruno Haible  <bruno@clisp.org>
13170
13171         gettext: Fix recent mistake.
13172         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
13173
13174 2010-08-29  Bruno Haible  <bruno@clisp.org>
13175
13176         selinux-h: Offer a --without-selinux option.
13177         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
13178         --without-selinux was specified, skip all tests and define
13179         HAVE_SELINUX_SELINUX_H to 0.
13180         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
13181         set LIB_SELINUX to empty.
13182         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
13183         gl_LIBSELINUX. If --without-selinux was specified, replace
13184         selinux/context.h.
13185         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
13186
13187 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13188             Bruno Haible  <bruno@clisp.org>
13189
13190         Make the module 'realloc-gnu' work again on AIX and OSF/1.
13191         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
13192         of HAVE_REALLOC.
13193         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
13194         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
13195         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
13196         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13197
13198 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13199             Bruno Haible  <bruno@clisp.org>
13200
13201         Make the module 'calloc-gnu' work again on AIX and OSF/1.
13202         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
13203         HAVE_CALLOC.
13204         * lib/xmalloc.c: Update accordingly.
13205         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
13206         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
13207         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
13208
13209 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13210             Bruno Haible  <bruno@clisp.org>
13211
13212         Make the module 'malloc-gnu' work again on AIX and OSF/1.
13213         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
13214         HAVE_MALLOC.
13215         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
13216         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
13217         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
13218
13219 2010-08-29  Bruno Haible  <bruno@clisp.org>
13220
13221         Update modules list.
13222         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
13223         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
13224         (String handling <string.h>): Add astrxfrm.
13225         (File system functions): Add readlinkat.
13226
13227 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13228
13229         Tests for module 'realloc-gnu'.
13230         * modules/realloc-gnu-tests: New file.
13231         * tests/test-realloc-gnu.c: New file.
13232
13233         Tests for module 'calloc-gnu'.
13234         * modules/calloc-gnu-tests: New file.
13235         * tests/test-calloc-gnu.c: New file.
13236
13237         Tests for module 'malloc-gnu'.
13238         * modules/malloc-gnu-tests: New file.
13239         * tests/test-malloc-gnu.c: New file.
13240
13241 2010-08-28  Bruno Haible  <bruno@clisp.org>
13242
13243         Rename module 'realloc' -> 'realloc-gnu'.
13244         * modules/realloc-gnu: New file, copied from modules/realloc.
13245         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
13246         obsolete.
13247         * modules/mgetgroups (Depends-on): Update.
13248         * doc/posix-functions/realloc.texi: Update.
13249         * NEWS: Mention the change.
13250
13251         Rename module 'calloc' -> 'calloc-gnu'.
13252         * modules/calloc-gnu: New file, copied from modules/calloc.
13253         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
13254         obsolete.
13255         * doc/posix-functions/calloc.texi: Update.
13256         * NEWS: Mention the change.
13257
13258         Rename module 'malloc' -> 'malloc-gnu'.
13259         * modules/malloc-gnu: New file, copied from modules/malloc.
13260         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
13261         obsolete.
13262         * modules/argp (Depends-on): Update.
13263         * modules/regex (Depends-on): Update.
13264         * doc/posix-functions/malloc.texi: Update.
13265         * NEWS: Mention the change.
13266
13267 2010-08-28  Eric Blake  <eblake@redhat.com>
13268
13269         pread, pwrite: add missing dependency
13270         * modules/pread (Depends-on): Add extensions.
13271         * modules/pwrite (Depends-on): Likewise.
13272
13273 2010-08-28  Bruno Haible  <bruno@clisp.org>
13274
13275         unistr/u*-strchr: Fix tests dependencies.
13276         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
13277         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
13278         Reported by Ian Beckwith <ianb@erislabs.net>.
13279
13280 2010-08-28  Bruno Haible  <bruno@clisp.org>
13281
13282         read-file: Don't occupy too much unused memory.
13283         * lib/read-file.c (fread_file): Shrink the buffer at the end.
13284
13285 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
13286             Eric Blake  <eblake@redhat.com>
13287             Bruno Haible  <bruno@clisp.org>
13288
13289         read-file: Avoid memory reallocations with regular files.
13290         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
13291         (fread_file): With regular files, use the remaining length as the
13292         initial buffer size.  Check against overflow.
13293         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
13294         sys_stat.
13295
13296 2010-08-28  Bruno Haible  <bruno@clisp.org>
13297
13298         ftello: Relax license.
13299         * modules/ftello (License): Relax to LGPLv2+.
13300         Reported by Eric Blake.
13301
13302 2010-08-28  Bruno Haible  <bruno@clisp.org>
13303
13304         Avoid relocwrapper link errors due to gnulib replacement functions.
13305         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
13306         function.
13307         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13308
13309 2010-08-28  Bruno Haible  <bruno@clisp.org>
13310
13311         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
13312         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
13313         defined.
13314         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
13315         Suggested by Eric Blake.
13316
13317 2010-08-28  Bruno Haible  <bruno@clisp.org>
13318
13319         sys_socket, netdb: Ensure socklen_t gets defined.
13320         * modules/sys_socket (Depends-on): Add socklen.
13321         * modules/netdb (Depends-on): Likewise.
13322         * modules/getaddrinfo (Depends-on): Remove socklen.
13323         * modules/getsockopt (Depends-on): Likewise.
13324         * modules/setsockopt (Depends-on): Likewise.
13325         * tests/test-sys_socket.c: Check that socklen_t is defined.
13326         * tests/test-netdb.c: Likewise.
13327         * m4/socklen.m4: Update comments.
13328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13329
13330 2010-08-27  Eric Blake  <eblake@redhat.com>
13331
13332         login_tty: add missing dependency
13333         * modules/login_tty (Depends-on): Add pty.
13334
13335 2010-08-26  Eric Blake  <eblake@redhat.com>
13336
13337         lib-symbol-versions: fix m4 quoting
13338         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
13339         format for AC_LINK_IFELSE.
13340
13341         glob: fix compile test
13342         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
13343
13344         btowc: fix missing file
13345         * modules/btowc (Files): Also ship locale-fr.m4.
13346
13347         lseek: fix link test
13348         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
13349         AC_LINK_IFELSE.
13350
13351         include_next: silence autoconf 2.68 warning
13352         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
13353         AC_COMPILE_IFELSE as special.
13354         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
13355         autoconf < 2.68.
13356
13357         acl: fix compilation test
13358         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
13359         AC_COMPILE_IFELSE.
13360
13361 2010-08-26  Bruno Haible  <bruno@clisp.org>
13362
13363         Modernize AC_TRY_RUN invocations.
13364         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
13365         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
13366         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
13367         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
13368         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
13369         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
13370         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13371         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13372         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13373         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13374         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13375         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13376         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13377         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13378         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13379         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13380         gl_MBRLEN_NUL_RETVAL): Likewise.
13381         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13382         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
13383         Likewise.
13384         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13385         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13386         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13387         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13388         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
13389         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
13390         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
13391         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13392         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
13393         Likewise.
13394         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13395         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13396         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13397         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13398         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13399         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13400         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13401         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
13402         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13403         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13404
13405 2010-08-26  Bruno Haible  <bruno@clisp.org>
13406
13407         Modernize AC_TRY_LINK invocations.
13408         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
13409         AC_TRY_LINK.
13410         * m4/argp.m4 (gl_ARGP): Likewise.
13411         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13412         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13413         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
13414         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
13415         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
13416         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
13417         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13418         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13419         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
13420         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
13421         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
13422         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
13423         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
13424         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13425         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13426         * m4/hostent.m4 (gl_HOSTENT): Likewise.
13427         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13428         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
13429         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13430         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
13431         Likewise.
13432         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
13433         Likewise.
13434         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
13435         Likewise.
13436         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13437         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
13438         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
13439         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13440         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13441         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
13442         * m4/servent.m4 (gl_SERVENT): Likewise.
13443         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13444         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13445         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13446         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13447         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13448         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13449         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13450         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13451         * modules/tsearch-tests (configure.ac): Likewise.
13452
13453 2010-08-26  Bruno Haible  <bruno@clisp.org>
13454
13455         Modernize AC_TRY_COMPILE invocations.
13456         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
13457         AC_TRY_COMPILE.
13458         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
13459         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
13460         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13461         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
13462         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13463         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13464         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
13465         * m4/lock.m4 (gl_LOCK): Likewise.
13466         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
13467         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13468         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
13469         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
13470         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13471         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
13472         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
13473         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
13474         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13475         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13476         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13477         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13478         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
13479         extraneous semicolon.
13480
13481 2010-08-26  Jim Meyering  <meyering@redhat.com>
13482
13483         stat-time: relax license LGPL
13484         * modules/stat-time (License): Change from GPL to LGPL,
13485         with consent from all contributors, for use in libguile.
13486         Requested by Ludovic Courtès.
13487
13488 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
13489
13490         poll: return immediately on POLLHUP.
13491         * lib/poll.c (poll): Always set timeout before wait_timeout is
13492         computed.
13493
13494 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13495
13496         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
13497         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
13498         rmdir ("dir/.//"), unlinkat.
13499
13500 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
13501
13502         stdbool: avoid spurious failure with modern xlc
13503         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13504
13505 2010-08-24  Bruno Haible  <bruno@clisp.org>
13506
13507         getloadavg: simplify code
13508         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
13509         gl_have_func. Update comments.
13510
13511 2010-08-24  Eric Blake  <eblake@redhat.com>
13512
13513         getloadavg: don't define SVR4 on cygwin
13514         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
13515         only define SVR4 when -lkvm is required.
13516         Reported by Yaakov Selkowitz.
13517
13518 2010-08-24  Bruno Haible  <bruno@clisp.org>
13519
13520         priv-set: fix comment
13521         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
13522
13523 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13524
13525         priv-set: fix comments
13526         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
13527         to match code, as suggested by David Bartley in:
13528         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
13529
13530 2010-08-23  Eric Blake  <eblake@redhat.com>
13531
13532         stdbool: avoid rejecting clang
13533         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
13534         * tests/test-stdbool.c: Enable more tests if using the system
13535         <stdbool.h> instead of the gnulib replacement.
13536         (main): Move xlc bug test to a runtime test for all compilers.
13537         Reported by Anders Kaseorg.
13538
13539         argz: fix shell quoting issue
13540         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
13541         Reported by Charles Wilson.
13542
13543 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
13544             Erik Faye-Lund <kusmabite@gmail.com>
13545
13546         poll, select: handle ERROR_BROKEN_PIPE.
13547         * lib/poll.c (win32_compute_revents): Return POLLHUP when
13548         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13549         * lib/select.c (win32_compute_revents): Do not mark a pipe
13550         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
13551
13552 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
13553
13554         fts: allow compilation with C++
13555         * lib/fts_.h: Specify extern "C" linkage with C++.
13556
13557 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13558
13559         Fix gnulib-tool sed script de-commentation for AIX sed.
13560         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
13561         sed.
13562
13563 2010-08-17  Eric Blake  <eblake@redhat.com>
13564
13565         test-stddef: test for (some) offsetof bugs
13566         * tests/test-stddef.c: Enhance test to ensure correct type of
13567         offsetof.
13568         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
13569         that we are not fixing at this time.
13570
13571 2010-08-15  Bruno Haible  <bruno@clisp.org>
13572
13573         stpncpy: Allow stpncpy to be defined as a macro.
13574         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
13575         if it's already correctly declared.
13576         * lib/string.in.h (stpncpy): Undefine before redefining.
13577         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
13578
13579 2010-08-14  Bruno Haible  <bruno@clisp.org>
13580
13581         Rename module 'memxfrm' to 'amemxfrm'.
13582         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
13583         (amemxfrm): Renamed from memxfrm.
13584         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
13585         (amemxfrm): Renamed from memxfrm.
13586         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
13587         * NEWS: Mention the change.
13588         * MODULES.html.sh (String handling <string.h>): Update.
13589         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
13590         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
13591         * lib/unicase/u16-casexfrm.c: Likewise.
13592         * lib/unicase/u32-casexfrm.c: Likewise.
13593         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
13594         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
13595         * lib/uninorm/u16-normxfrm.c: Likewise.
13596         * lib/uninorm/u32-normxfrm.c: Likewise.
13597         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
13598         memxfrm.
13599         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
13600         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
13601         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
13602         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
13603         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
13604         Suggested by Paul Eggert.
13605
13606 2010-08-14  Bruno Haible  <bruno@clisp.org>
13607
13608         Tests for module 'astrxfrm'.
13609         * modules/astrxfrm-tests: New file.
13610         * tests/test-astrxfrm.c: New file.
13611
13612         New module 'astrxfrm'.
13613         * lib/astrxfrm.h: New file.
13614         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
13615         * modules/astrxfrm: New file.
13616
13617 2010-08-14  Reuben Thomas <rrt@sc3d.org>
13618
13619         regex: Tweak doc.
13620         * doc/regex.texi (Overview): Don't mention regex.c.
13621         (GNU Regular Expression Compiling): Likewise.
13622         (Match-end-of-line Operator): Mention 'not_eol'.
13623
13624 2010-08-14  Brian Gough  <bjg@gnu.org>
13625             Bruno Haible  <bruno@clisp.org>
13626
13627         git-merge-changelog: add doc relating to use with bzr and hg.
13628         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
13629
13630 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
13631
13632         pthread: fix pthread.h creation for srcdir != builddir
13633         * modules/pthread (Makefile.am): Fix the rule to work also in a
13634         non-srcdir build.
13635
13636 2010-08-13  Karl Berry  <karl@gnu.org>
13637
13638         * doc/regex.texi (Predefined Syntaxes): @smallexample.
13639         * doc/posix-*/*: force line break before @url of POSIX
13640         specifications.
13641         Suggested by Werner Lemberg.
13642
13643 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13644
13645         strtod: fix const diagnostic
13646         * lib/strtod.c (strtod): Don't assign const char * to char *,
13647         as this elicits a warning from GCC when warnings are enabled.
13648
13649 2010-08-10  Pádraig Brady <P@draigbrady.com>
13650         and Eric Blake  <eblake@redhat.com>
13651
13652         copy-acl: ignore ENOTSUP on HP-UX
13653         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
13654         so that it is available for HP-UX.
13655         * lib/copy-acl.c (qcopy_acl): Use it.
13656         Reported by Patrick M. Callahan.
13657
13658 2010-08-10  Eric Blake  <eblake@redhat.com>
13659
13660         open, chown: relax license
13661         * modules/open (License): Change to LGPLv2+, with consent by all
13662         authors, for use in augeas.
13663         * modules/chown (License): Likewise.
13664         * modules/lchown (Likewise): Likewise.
13665         Requested by Adam Stokes.
13666
13667 2010-08-09  Karl Berry  <karl@gnu.org>
13668
13669         * build-aux/ar-lib: new file, import from Automake.
13670         * config/srclist.txt: autocheck for updates.
13671
13672 2010-08-09  Eric Blake  <eblake@redhat.com>
13673
13674         readlinkat: adjust client modules
13675         * modules/areadlinkat (Depends-on): Use readlinkat, not
13676         symlinkat.
13677         * modules/areadlinkat-with-size (Depends-on): Likewise.
13678
13679         mknod: be more vocal about danger of running tests as root
13680         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
13681         root, since that is just asking for problems.
13682         Suggested by Bruno Haible, based on a report by Rainer Tammer.
13683
13684         readlinkat: split into its own module
13685         * modules/symlinkat: Split readlinkat...
13686         * modules/readlinkat: ...into separate module.
13687         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
13688         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
13689         * lib/symlinkat.c (readlinkat): Move...
13690         * lib/readlinkat.c: ...into new file.
13691         * modules/symlinkat-tests: Split readlinkat test...
13692         * modules/readlinkat-tests: ...into separate module.
13693         * tests/test-symlinkat.c: Split...
13694         * tests/test-readlinkat.c: ...into new file.
13695         * NEWS: Document the split.
13696         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13697         * lib/unistd.in.h (readlinkat): Likewise.
13698         Suggested by Bruno Haible.
13699
13700 2010-08-08  Bruno Haible  <bruno@clisp.org>
13701
13702         memxfrm: Speed up.
13703         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
13704         that usually only one call to strxfrm is necessary for each string
13705         part.
13706         Reported by Paul Eggert <eggert@cs.ucla.edu>.
13707
13708 2010-08-07  Karl Berry  <karl@gnu.org>
13709
13710         * doc/posix-headers/limits.texi,
13711         * doc/posix-functions/malloc.texi,
13712         * doc/posix-functions/strsignal.texi: missing @item.
13713         * doc/ld-version-script.texi: spurious leading i.
13714         * doc/regex.texi (Interval Operators): no commas inside @var.
13715
13716 2010-08-01  Bruno Haible  <bruno@clisp.org>
13717
13718         Integrate the regex documentation.
13719         * doc/gnulib.texi: Define 'cn' index.
13720         (Regular expressions): New a chapter that includes regex.texi and
13721         regexprops-generic.texi.
13722         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
13723         syntax.
13724
13725         Whitespace cleanup.
13726         * doc/regex.texi: Remove trailing spaces.
13727
13728         Add regex documentation.
13729         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
13730         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
13731         Written by Kathy A. Hargreaves and Karl Berry.
13732
13733 2010-08-01  Bruno Haible  <bruno@clisp.org>
13734
13735         link: Update documentation.
13736         * doc/posix-functions/link.texi: Update regarding Solaris.
13737
13738 2010-07-31  Bruno Haible  <bruno@clisp.org>
13739
13740         Update modules list.
13741         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
13742         (String handling <string.h>): Add memcmp2, memxfrm.
13743         (Container data structures): Add xlist, xsublist, xoset.
13744         (Core language properties): Add alignof, unused-parameter.
13745         (Process control, Numeric conversion functions <stdlib.h>): Renamed
13746         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
13747         (Unibyte characters <ctype.h>): New section.
13748         (String handling <string.h>): New section.
13749         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
13750         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
13751         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
13752         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
13753         tan, tanh, tanl, y0, y1, yn.
13754         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
13755         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
13756         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
13757         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
13758         unlockpt, vdprintf, vdprintf-posix.
13759         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
13760         (File system functions): Add concat-filename, sys_file, sys_ioctl,
13761         xconcat-filename.
13762         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
13763         getdtablesize, pipe2, pipe2-safer.
13764         (Security): New section.
13765         (Networking functions): Add accept4.
13766         (Signal handling): Add sigpipe.
13767         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
13768         mbmemcasecoll.
13769         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
13770         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
13771         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
13772         pipe-filter-ii.
13773         (Misc): Add argp-version-etc, login_tty, parse-duration.
13774
13775 2010-07-31  Bruno Haible  <bruno@clisp.org>
13776
13777         Improve doc in MODULES.html.
13778         * modules/linkat (Description): Add the word "function".
13779         * modules/mkfifo (Description): Likewise.
13780         * modules/mknod (Description): Likewise.
13781         * modules/remove (Description): Likewise.
13782         * modules/renameat (Description): Likewise.
13783         * modules/stat (Description): Likewise.
13784         * modules/symlink (Description): Likewise.
13785         * modules/unlink (Description): Likewise.
13786
13787 2010-07-31  Bruno Haible  <bruno@clisp.org>
13788
13789         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
13790         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
13791         option --enable/disable-c++ instead of --enable/disable-cxx.
13792         * NEWS: Mention the change.
13793
13794 2010-07-31  Bruno Haible  <bruno@clisp.org>
13795
13796         readlink, areadlink: Relax test a bit.
13797         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
13798         alternative to ENOTDIR.
13799         * tests/test-areadlink.h (test_areadlink): Likewise.
13800         Reported by Rainer Tammer.
13801
13802 2010-07-31  Bruno Haible  <bruno@clisp.org>
13803
13804         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
13805         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
13806         character, perform the search using U_STRCHR.
13807         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
13808         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
13809         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
13810         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
13811         Suggested by Paolo Bonzini.
13812
13813 2010-07-31  Bruno Haible  <bruno@clisp.org>
13814
13815         unistr/u*-strstr: Fix dependencies.
13816         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
13817         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
13818         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
13819
13820 2010-07-31  Bruno Haible  <bruno@clisp.org>
13821
13822         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
13823         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
13824         the beginning of the loop.
13825         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
13826         cases in 'switch' statement.
13827
13828         unistr/u8-strchr: Fix several bugs.
13829         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
13830         the string. When not found, return NULL, not a pointer near the end.
13831
13832         More tests for unistr/u8-strchr.
13833         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
13834         that the function does not read past the first occurrence of the byte
13835         being searched.
13836         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
13837         * tests/unistr/test-u16-strchr.c (main): New function.
13838         * tests/unistr/test-u32-strchr.c (main): New function.
13839
13840 2010-07-31  Bruno Haible  <bruno@clisp.org>
13841
13842         posix-modules: Ignore backup files of documentation files.
13843         * posix-modules: grep only through files named *.texi.
13844
13845 2010-07-31  Bruno Haible  <bruno@clisp.org>
13846
13847         symlinkat: Fix documentation.
13848         * doc/posix-functions/readlinkat.texi: Fix module name.
13849
13850 2010-07-31  Bruno Haible  <bruno@clisp.org>
13851
13852         fchownat: Replace also when chown has the trailing slash bug.
13853         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
13854         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
13855         introduced on 2010-04-10.
13856         Reported by Rainer Tammer.
13857
13858 2010-07-31  Bruno Haible  <bruno@clisp.org>
13859
13860         linkat: Work around AIX 7.1 bug.
13861         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
13862         whether linkat handles trailing slash correctly. If not, replace linkat
13863         and define LINKAT_TRAILING_SLASH_BUG.
13864         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
13865         check whether (fd1,file1) points to a directory if file1 or file2 ends
13866         in a slash. Code taken from lib/link.c.
13867         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
13868         Reported by Rainer Tammer.
13869
13870 2010-07-31  Bruno Haible  <bruno@clisp.org>
13871
13872         Correctly determine whether pow is available in libc on AIX 7 with xlc.
13873         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
13874         This disables an xlc optimization that was causing wrong test results.
13875         Reported by Rainer Tammer.
13876
13877 2010-07-31  Bruno Haible  <bruno@clisp.org>
13878
13879         iconv: Work around AIX 6.1..7.1 bug.
13880         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
13881         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
13882         cross-compiling, guess no on all versions of AIX.
13883         Reported by Rainer Tammer.
13884
13885 2010-07-31  Bruno Haible  <bruno@clisp.org>
13886
13887         readlink: Relax test a bit.
13888         * tests/test-readlink.h (test_readlink): Allow different errno value
13889         when readlink is called with a file name that ends in / and refers to
13890         a file.
13891         Suggested by Eric Blake.
13892         Reported by Rainer Tammer.
13893
13894 2010-07-31  Bruno Haible  <bruno@clisp.org>
13895
13896         copysign: Does not require -lm on glibc systems.
13897         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
13898         gl_COMMON_DOUBLE_MATHFUNC.
13899         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
13900
13901 2010-07-31  Bruno Haible  <bruno@clisp.org>
13902
13903         duplocale: Work around AIX 7.1 bug.
13904         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
13905         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
13906         * lib/duplocale.c (rpl_duplocale): Update comment.
13907         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
13908         Reported by Rainer Tammer.
13909
13910 2010-07-30  Bruno Haible  <bruno@clisp.org>
13911
13912         dirfd: Avoid link error on AIX 7.1.
13913         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
13914         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
13915         exist, set REPLACE_DIRFD.
13916         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
13917         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
13918         * doc/posix-functions/dirfd.texi: Update.
13919         Reported by Rainer Tammer.
13920
13921 2010-07-30  Eric Blake  <eblake@redhat.com>
13922
13923         strtod: next round of AIX fixes
13924         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
13925         exponent.
13926         * tests/test-strtod.c (main): Enhance tests.
13927         * doc/posix-functions/strtod.texi (strtod): Document next bug.
13928         Reported by Rainer Tammer.
13929
13930         futimens: fix configure check
13931         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
13932         Reported by Bruno Haible.
13933
13934 2010-07-30  Bruno Haible  <bruno@clisp.org>
13935
13936         getline: Update regarding AIX.
13937         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
13938         Reported by Rainer Tammer.
13939
13940 2010-07-30  Bruno Haible  <bruno@clisp.org>
13941
13942         wcwidth: Drop replacement on AIX 7.
13943         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
13944         AIX 7.
13945         Reported by Rainer Tammer.
13946
13947 2010-07-30  Bruno Haible  <bruno@clisp.org>
13948
13949         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
13950         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
13951         a 'char *'.
13952         Reported by Rainer Tammer.
13953
13954 2010-07-30  Bruno Haible  <bruno@clisp.org>
13955
13956         unlink: Update regarding AIX.
13957         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
13958         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
13959         Reported by Rainer Tammer.
13960
13961 2010-07-30  Bruno Haible  <bruno@clisp.org>
13962
13963         symlink: Update regarding AIX.
13964         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
13965         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
13966         Reported by Rainer Tammer.
13967
13968 2010-07-30  Bruno Haible  <bruno@clisp.org>
13969
13970         strndup: Update regarding AIX.
13971         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
13972         AIX 7.
13973         Reported by Rainer Tammer.
13974
13975 2010-07-30  Bruno Haible  <bruno@clisp.org>
13976
13977         stat: Update regarding AIX.
13978         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
13979         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
13980         Reported by Rainer Tammer.
13981
13982 2010-07-30  Bruno Haible  <bruno@clisp.org>
13983
13984         truncl: Fix autoconf test.
13985         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
13986         whether truncl works.
13987         Reported by Rainer Tammer.
13988
13989 2010-07-30  Bruno Haible  <bruno@clisp.org>
13990
13991         round: Update regarding AIX.
13992         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
13993         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
13994         Reported by Rainer Tammer.
13995
13996 2010-07-30  Bruno Haible  <bruno@clisp.org>
13997
13998         rename: Update regarding AIX.
13999         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
14000         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
14001         Reported by Rainer Tammer.
14002
14003 2010-07-30  Bruno Haible  <bruno@clisp.org>
14004
14005         printf.m4: Update regarding AIX.
14006         * m4/printf.m4: Update comments regarding AIX.
14007         Reported by Rainer Tammer.
14008
14009 2010-07-30  Bruno Haible  <bruno@clisp.org>
14010
14011         iconv: Update regarding AIX.
14012         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
14013         AIX 7.
14014         Reported by Rainer Tammer.
14015
14016 2010-07-30  Bruno Haible  <bruno@clisp.org>
14017
14018         getopt: Update regarding AIX.
14019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
14020         no on AIX.
14021         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
14022         Reported by Rainer Tammer.
14023
14024 2010-07-30  Bruno Haible  <bruno@clisp.org>
14025
14026         ldexpl; Update regarding AIX.
14027         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
14028         on AIX 7.
14029         Reported by Rainer Tammer.
14030
14031 2010-07-30  Bruno Haible  <bruno@clisp.org>
14032
14033         frexpl: Update regarding AIX.
14034         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
14035         on AIX 7.
14036         Reported by Rainer Tammer.
14037
14038 2010-07-30  Bruno Haible  <bruno@clisp.org>
14039
14040         open, fopen: Update regarding AIX.
14041         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
14042         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
14043         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
14044         * doc/posix-functions/fopen.texi: Likewise.
14045         Reported by Rainer Tammer.
14046
14047 2010-07-30  Bruno Haible  <bruno@clisp.org>
14048
14049         chown: Update doc regarding AIX.
14050         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
14051         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
14052         Reported by Rainer Tammer.
14053
14054 2010-07-30  Eric Blake  <eblake@redhat.com>
14055
14056         strtod: fix bug in replacement function on AIX
14057         * lib/strtod.c (strtod): Special case broken "0x" parse in
14058         underlying strtod.
14059         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
14060         * doc/posix-functions/strtod.texi (strtod): Likewise.
14061         Reported by Rainer Tammer.
14062
14063 2010-07-30  Bruno Haible  <bruno@clisp.org>
14064
14065         mbrlen: Fix cross-compilation guess for AIX.
14066         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
14067         guess. Leftover from 2008-12-22.
14068
14069 2010-07-30  Bruno Haible  <bruno@clisp.org>
14070
14071         mbrtowc: Fix cross-compilation guess for AIX.
14072         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
14073         guess. Leftover from 2008-12-21.
14074
14075 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
14076
14077         init.sh: work around trap limitation of some shells
14078         * tests/init.sh (setup_): Move exit trap outside of shell function.
14079
14080 2010-07-29  Eric Blake  <eblake@redhat.com>
14081
14082         strtod: aid debugging
14083         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
14084         understanding why strtod is rejected.
14085
14086 2010-07-28  Bruno Haible  <bruno@clisp.org>
14087
14088         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
14089         * lib/unistr/u8-chr.c: Include <string.h>.
14090         * tests/unistr/test-u8-chr.c: Likewise.
14091         * tests/unistr/test-u16-chr.c: Likewise.
14092         * tests/unistr/test-u32-chr.c: Likewise.
14093         * tests/unistr/test-u8-strchr.c: Likewise.
14094         * tests/unistr/test-u16-strchr.c: Likewise.
14095         * tests/unistr/test-u32-strchr.c: Likewise.
14096         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
14097         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
14098         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
14099         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
14100
14101 2010-07-28  Bruno Haible  <bruno@clisp.org>
14102
14103         Use spaces for indentation, not tabs.
14104         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14105
14106 2010-07-27  Bruno Haible  <bruno@clisp.org>
14107
14108         mbspcasecmp: Fix function specification.
14109         * lib/string.in.h (mbspcasecmp): Fix specification comment.
14110         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
14111         Reported by Eric Blake <eblake@redhat.com>.
14112
14113 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
14114
14115         timespec: use cast and not conditional, as truncation isn't possible
14116         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
14117         instead of a conditional.  Comment about the situation in more detail.
14118         This undoes most of the 2009-10-29 patch.
14119
14120 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
14121
14122         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
14123         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
14124         * lib/unistr/u8-strchr.c: Likewise.
14125         * modules/unistr/u8-chr: Depend on memchr.
14126
14127         unistr/u*-strchr: add tests
14128         * modules/unistr/u8-strchr-tests: New file.
14129         * modules/unistr/u16-strchr-tests: New file.
14130         * modules/unistr/u32-strchr-tests: New file.
14131         * tests/unistr/test-strchr.h: New file.
14132         * tests/unistr/test-u8-strchr.c: New file.
14133         * tests/unistr/test-u16-strchr.c: New file.
14134         * tests/unistr/test-u32-strchr.c: New file.
14135
14136         unistr/u*-chr: test multibyte sequences more
14137         * tests/unistr/test-chr.h: Do complete testing of the characters in the
14138         test vector.
14139         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
14140         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
14141         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
14142
14143         unistr/u*-chr: test multibyte sequences
14144         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
14145
14146         unistr/u*-chr: prepare for multibyte tests
14147         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
14148         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
14149         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
14150         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
14151         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
14152         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
14153
14154 2010-07-18  Bruno Haible  <bruno@clisp.org>
14155
14156         unistr/u8-strchr: Optimize non-ASCII argument case.
14157         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
14158         because the first byte often matches anyway.
14159         Reported by Pádraig Brady <P@draigbrady.com>.
14160
14161 2010-07-15  Karl Berry  <karl@gnu.org>
14162
14163         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
14164
14165 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
14166
14167         getcwd: on Solaris, work better if ancestors are inaccessible
14168         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
14169         buffer and size, try again with a large buffer.  This works better
14170         on Solaris, since its getcwd succeeds even if the path to the root
14171         is inaccessible, and this is helpful in common cases such as .zfs
14172         hidden directories.  Problem reported by J Chapman Flack in
14173         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
14174         Use system getcwd if it's declared, not merely if it's partly
14175         working; use the partly-working test only to avoid needless effort
14176         if the system getcwd fails.
14177         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
14178         comment that was already obsolete and is now even more obsolete.
14179         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
14180         now might call strdup.
14181
14182 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
14183
14184         pthread: Add enough so that coreutils/src/sort.c compiles.
14185         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
14186         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
14187         gnulib. Include <sched.h> and <time.h>, as per POSIX.
14188         Include <sys/types.h>, in case it defines pthread_t.
14189         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
14190         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
14191         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
14192         (pthread_rwlockattr_t, pthread_spinlock_t):
14193         New typedefs, if HAVE_PTHREAD_T is not defined.
14194         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
14195         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
14196         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
14197         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
14198         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
14199         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
14200         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
14201         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
14202         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
14203         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
14204         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
14205         New macros.
14206         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
14207         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
14208         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
14209         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
14210         (pthread_spin_unlock): New dummy functions.
14211         (pthread_create): Return EAGAIN; don't set errno.
14212         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
14213         require AC_C_INLINE.
14214         * modules/pthread (Depends-on): Add sched, time.
14215         (pthread.h): Use AM_V_GEN.
14216
14217 2010-07-13  Bruno Haible  <bruno@clisp.org>
14218
14219         striconveh: Don't malloc memory if the result buffer is sufficient.
14220         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
14221         buffer if its size is sufficient.
14222         Reported by Ludovic Courtès <ludo@gnu.org>.
14223
14224 2010-07-13  Bruno Haible  <bruno@clisp.org>
14225
14226         strtod: Add safety check.
14227         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
14228
14229 2010-07-12  Bruno Haible  <bruno@clisp.org>
14230
14231         Unify tests that set gl_cv_func_ldexpl_no_libm.
14232         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
14233         gl_FUNC_LDEXPL.
14234         (gl_FUNC_LDEXPL): Invoke it.
14235         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14236
14237 2010-07-12  Bruno Haible  <bruno@clisp.org>
14238
14239         Unify tests that set gl_cv_func_ldexp_no_libm.
14240         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
14241         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
14242         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
14243         (configure.ac): Simply invoke gl_FUNC_LDEXP.
14244         * modules/strtod (Files): Add m4/ldexp.m4.
14245
14246 2010-07-12  Bruno Haible  <bruno@clisp.org>
14247
14248         Unify tests that set gl_cv_func_frexpl_no_libm.
14249         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
14250         gl_FUNC_FREXPL_NO_LIBM.
14251         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
14252         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14253
14254 2010-07-12  Bruno Haible  <bruno@clisp.org>
14255
14256         Unify tests that set gl_cv_func_frexp_no_libm.
14257         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
14258         gl_FUNC_FREXP_NO_LIBM.
14259         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
14260         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
14261
14262 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14263
14264         memcoll: clarify sizes versus lengths, document better, and tweak perf
14265         * lib/memcoll.c (strcoll_loop, memcoll0):
14266         Improve quality of descriptive comments.  Name variables
14267         consistently as to whether they are lengths (which do not include
14268         terminating null) versus sizes (which do).
14269         * lib/xmemcoll.c (xmemcoll0): Likewise.
14270         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
14271         returned when s1size == 0; this is easier to compile and saves
14272         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
14273
14274 2010-07-12  Bruno Haible  <bruno@clisp.org>
14275
14276         Tests for module '_Exit'.
14277         * modules/_Exit-tests: New file.
14278         * tests/test-_Exit.sh: New file.
14279         * tests/test-_Exit.c: New file.
14280
14281         New module '_Exit'.
14282         * lib/stdlib.in.h (__attribute__): New macro.
14283         (_Exit): New declaration.
14284         * lib/_Exit.c: New file.
14285         * m4/_Exit.m4: New file.
14286         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
14287         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
14288         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
14289         * modules/_Exit: New file.
14290         * tests/test-stdlib-c++.cc (_Exit): Check signature.
14291         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
14292
14293 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
14294
14295         strtod: make it more-accurate typically, and don't require libm
14296         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
14297         Include limits.h.  Don't include string.h.
14298         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
14299         (locale_isspace): New function, so that no casts are needed to
14300         check whether *s is a space.
14301         (ldexp): Provide an unused dummy if not available.
14302         (scale_radix_exp, parse_number, underlying_strtod): New functions.
14303         (strtod): Use them.  This implementation prefers to use the
14304         underlying strtod if available, falling back on our own code
14305         only to fix known bugs.  This is more likely to produce an
14306         accurate result.  Also, it avoids the use of libm functions.
14307         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
14308         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
14309         was absent, but it caused a test failure with coreutils.
14310         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
14311         with libm.
14312         * modules/strtod (Makefile.am, Link): libm is no longer needed.
14313         * modules/strtod-tests (Makefile.am): Likewise.
14314
14315 2010-07-11  Pádraig Brady  <P@draigBrady.com>
14316             Bruno Haible  <bruno@clisp.org>
14317
14318         unistr/u8-strchr: Optimize ASCII argument case.
14319         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
14320
14321 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14322
14323         (x)memcoll: minor tweaks
14324         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
14325         is after the type that it qualifies.
14326         (memcoll0): Likewise.
14327         * lib/memcoll.h (memcoll0): Likewise.
14328         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
14329         * lib/xmemcoll.h (xmemcoll0): Likewise.
14330         * lib/memcoll.c (memcoll0): Correct the comment.  This function
14331         differs from memcoll in that the NUL byte is part of the argument.
14332         Omit the abort-checks, as performance is a real issue here.  Plus,
14333         the checks were wrong anyway (an off-by-one error).  Omit local
14334         variable 'diff', as it's a bit clearer that way.
14335         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
14336         no longer needed.
14337
14338 2010-07-08  Chen Guo <chenguo4@yahoo.com>
14339
14340         (x)memcoll: speedup when input is known to be NUL delimited
14341         * lib/memcoll.c: Include stdlib.
14342         (memcoll0): New function.
14343         (strcoll_loop): New function, refactored for use in both memcoll
14344         and memcoll0.
14345         * lib/memcoll.h (memcoll0): Add prototype.
14346         * lib/xmemcoll.c (xmemcoll0): New function.
14347         (collate_error): New function, refactored for use in both xmemcoll
14348         and xmemcoll0.
14349         * lib/xmemcoll.h (xmemcoll0): Add prototype.
14350         * m4/memcoll.m4: add inline invocation.
14351
14352 2010-07-06  Pádraig Brady  <P@draigBrady.com>
14353
14354         * build-aux/bootstrap: Remove any local translations
14355         from the translation project synchronization directory,
14356         so that local only translations are not distributed.
14357
14358 2010-07-04  Bruno Haible  <bruno@clisp.org>
14359
14360         fsusage: Clarify which code applies to which platforms.
14361         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
14362         platform.
14363         * lib/fsusage.c (get_fs_usage): Likewise.
14364
14365 2010-07-04  Bruno Haible  <bruno@clisp.org>
14366
14367         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
14368         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
14369         Reported by Martin Lambers <marlam@marlam.de>.
14370
14371 2010-07-04  Jim Meyering  <meyering@redhat.com>
14372
14373         hash: once again explicitly disallow insertion of NULL
14374         * lib/hash.c (hash_insert0): Reinstate just-removed test:
14375         inserting a NULL pointer cannot work with these functions.
14376         Add a comment with details.
14377         This reverts part of the 2010-07-01 commit, 5bef1a35
14378         "hash: extend module to deal with non-pointer keys".
14379
14380 2010-07-01  Bruno Haible  <bruno@clisp.org>
14381
14382         stdbool: Update doc.
14383         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
14384         Info from Christian Weisgerber <naddy@mips.inka.de>.
14385
14386 2010-07-01  Jim Meyering  <meyering@redhat.com>
14387
14388         hash: extend module to deal with non-pointer keys
14389         * lib/hash.c (hash_insert0): New interface, much like hash_insert
14390         but that allows insertion of non-pointer entries.
14391         Do not disallow an ENTRY value of NULL.
14392         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
14393         * lib/hash.h (hash_insert0): Declare.
14394
14395 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14396
14397         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
14398         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
14399         not present (i.e. with autoconf 2.59 and when using gettextize, not
14400         gnulib), require AC_GNU_SOURCE instead.
14401
14402 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
14403
14404         idpriv-drop: Fix tests.
14405         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
14406         not to the test-idpriv-droptemp program.
14407
14408 2010-06-29  Bruno Haible  <bruno@clisp.org>
14409
14410         string: Fix syntax error with g++ 2.96.
14411         * lib/string.in.h (__pure__): Remove definition.
14412         (_GL_ATTRIBUTE_PURE): New macro.
14413         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
14414         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
14415         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14416
14417 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
14418
14419         unitypes: Fix bug introduced on 2010-05-18.
14420         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
14421
14422 2010-06-22  Eric Blake  <eblake@redhat.com>
14423
14424         memmem: slight optimization
14425         * lib/str-two-way.h (critical_factorization): Update comments.
14426         Reduce work during factorization phase.
14427         Reported by Carlos Bueno <carlos@bueno.org>.
14428
14429 2010-06-21  Bruno Haible  <bruno@clisp.org>
14430
14431         Fix HAVE_CALLOC_POSIX misnomer.
14432         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
14433         !HAVE_CALLOC_POSIX.
14434         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
14435         HAVE_CALLOC_POSIX.
14436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
14437         instead of HAVE_CALLOC_POSIX.
14438         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
14439         HAVE_CALLOC_POSIX.
14440
14441         Use modern idiom for calloc() replacement.
14442         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
14443         AC_FUNC_CALLOC.
14444         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
14445         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
14446         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14447         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
14448         (gl_REPLACE_CALLOC): New macro.
14449
14450 2010-06-21  Bruno Haible  <bruno@clisp.org>
14451
14452         Fix HAVE_REALLOC_POSIX misnomer.
14453         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
14454         !HAVE_REALLOC_POSIX.
14455         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
14456         HAVE_REALLOC_POSIX.
14457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
14458         instead of HAVE_REALLOC_POSIX.
14459         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
14460         HAVE_REALLOC_POSIX.
14461
14462         Use modern idiom for realloc() replacement.
14463         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
14464         AC_FUNC_REALLOC.
14465         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
14466         Autoconf's AC_FUNC_REALLOC.
14467         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14468         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
14469         (gl_REPLACE_REALLOC): New macro.
14470         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14471
14472 2010-06-21  Bruno Haible  <bruno@clisp.org>
14473
14474         Fix HAVE_MALLOC_POSIX misnomer.
14475         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
14476         !HAVE_MALLOC_POSIX.
14477         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
14478         HAVE_MALLOC_POSIX.
14479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
14480         instead of HAVE_MALLOC_POSIX.
14481         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
14482         HAVE_MALLOC_POSIX.
14483
14484         Use modern idiom for malloc() replacement.
14485         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
14486         AC_FUNC_MALLOC.
14487         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
14488         Autoconf's AC_FUNC_MALLOC.
14489         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
14490         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
14491         (gl_REPLACE_MALLOC): New macro.
14492         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
14493
14494 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
14495
14496         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
14497         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
14498         This macro takes 3 arguments, not 4.
14499
14500 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
14501
14502         ipv6: fix detection under mingw
14503         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
14504         in6_addr.
14505
14506 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
14507
14508         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
14509         that strtod() works when cross-compiling to a glibc version known
14510         to work.
14511
14512 2010-06-15  Bruno Haible  <bruno@clisp.org>
14513
14514         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
14515
14516 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
14517
14518         select: Correct timeout.
14519         * lib/select.c (rpl_select): Compute wait_timeout correctly.
14520
14521 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14522
14523         git-version-gen: init shell var to avoid env var influence
14524         * build-aux/git-version-gen (v): Init shell var to empty.
14525
14526 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
14527
14528         priv-set: Don't assume that priv.h exists merely because getppriv does.
14529         See Jan Andersen's bug report about AIX 5L in
14530         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
14531         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
14532         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
14533         * lib/priv-set.h: Likewise.
14534         * tests/test-priv-set.c: Likewise.
14535
14536 2010-06-13  Bruno Haible  <bruno@clisp.org>
14537
14538         relocatable: Make it easier to test whether to install wrappers.
14539         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
14540         RELOCATABLE_VIA_WRAPPER.
14541
14542 2010-06-13  Bruno Haible  <bruno@clisp.org>
14543
14544         gnulib-tool: Display specified modules and dependencies differently.
14545         * gnulib-tool (func_show_module_list): New function.
14546         (func_import, func_create_testdir): Invoke it.
14547         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14548
14549 2010-06-13  Bruno Haible  <bruno@clisp.org>
14550
14551         gnulib-tool: Align code of func_import and func_create_testdir.
14552         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
14553         specified_modules.
14554
14555 2010-06-12  Jim Meyering  <meyering@redhat.com>
14556
14557         test-inttostr: avoid spurious failure on Solaris 9
14558         * tests/test-inttostr.c (main): Skip the test when snprintf fails
14559         to accept "%ju".  Reported by Bruno Haible.
14560
14561 2010-06-11  Jim Meyering  <meyering@redhat.com>
14562
14563         test-sys_socket: mark variables as used more readably
14564         * tests/test-sys_socket.c (main): Mark otherwise unused variables
14565         as "used" explicitly via (void) statement casts.  This is more
14566         readable than using them in an artificial return expression.
14567         Suggestion from Bruno Haible.
14568
14569 2010-06-11  Bruno Haible  <bruno@clisp.org>
14570
14571         Avoid some more warnings from "gcc -Wwrite-strings".
14572         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
14573         to 'const char *'.
14574         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
14575         * tests/test-c-strcasestr.c (main): Likewise.
14576         * tests/test-mbscasestr1.c (main): Likewise.
14577         * tests/test-mbscasestr2.c (main): Likewise.
14578         * tests/test-memmem.c (main): Likewise.
14579         * tests/test-strstr.c (main): Likewise.
14580         * tests/test-strcasestr.c (main): Likewise.
14581
14582 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14583
14584         init.sh: change framework_failure_ to fail with status 99, not 1
14585         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
14586         automake's parallel-tests rule that this is an unexpected failure,
14587         even if the test is listed in XFAIL_TESTS.
14588
14589 2010-06-11  Jim Meyering  <meyering@redhat.com>
14590
14591         test-inttostr: avoid warnings about 4-6KB literal strings
14592         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
14593         Include "macros.h", for its definition of ASSERT.
14594         (CK): s/assert/ASSERT/
14595         * modules/inttostr-tests (Files): Add macros.h.
14596
14597         init.sh: don't use $ME_ or skip_ before they are defined
14598         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
14599         their first uses.  Also hoist their companions: warn_, fail_,
14600         framework_failure_, $stderr_fileno.  Prompted by a patch from
14601         Stefano Lattarini.
14602
14603         test-sys_socket: avoid set-but-not-used warnings from gcc
14604         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
14605         avoid warning about set-but-not-used variables.
14606
14607         test-xvasprintf: avoid 'const' discard warnings
14608         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
14609         "const" when assigning from literal strings.
14610         (test_xasprintf): Add "void" in function argument list to placate
14611         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
14612
14613         tests: avoid compilation warnings in argmatch and exclude tests...
14614         in packages that define ARGMATCH_DIE_DECL, like coreutils.
14615         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
14616         Since it always exits, declare with the "noreturn" attribute.
14617         * tests/test-argmatch.c: Likewise.
14618
14619         tests: avoid 'const' discard warnings in mbsstr tests
14620         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
14621         * tests/test-mbsstr2.c (main): Likewise.
14622
14623         test-verify: avoid warning from gcc's -Wmissing-declarations
14624         * tests/test-verify.c (function): Declare to be static.
14625
14626         test-inttostr.c: include <string.h> for use of strcmp
14627         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
14628
14629         test-linkat: avoid failed assertion on "other" architectures
14630         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
14631         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
14632         sparc: https://bugs.launchpad.net/bugs/591968
14633
14634 2010-06-11  Jim Meyering  <meyering@redhat.com>
14635
14636         printf.m4: avoid autoconf's "Expanded Before Required" warning
14637         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
14638         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
14639         autoconf warning.
14640
14641 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
14642
14643         Replacement header templates are now named with ".in", not "_".
14644         * doc/gnulib-intro.texi: Correct.
14645
14646 2010-06-10  Jim Meyering  <meyering@redhat.com>
14647
14648         inttostr-tests: depend on snprintf, not snprintf-posix
14649         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
14650         snprintf-posix, to avoid this aclocal failure:
14651           missing file gnulib-tests/vasnprintf.c
14652           configure.ac:45: error: expected source file, required through \
14653           AC_LIBSOURCES, not found
14654
14655 2010-06-10  Jim Meyering  <meyering@redhat.com>
14656
14657         inttostr: add a new function, inttostr, and tests
14658         The namesake function was not available.  The existence of the
14659         template file, inttostr.c makes its addition nontrivial.
14660         * lib/anytostr.c: Rename from inttostr.c.
14661         (anytostr): Rename from inttostr.
14662         * lib/inttostr.c: New file.
14663         * modules/inttostr (Files): Add anytostr.c.
14664         (Makefile.am): Set lib_SOURCES instead of ...
14665         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
14666         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
14667         * lib/offtostr.c: Likewise.
14668         * lib/uinttostr.c: Likewise.
14669         * lib/umaxtostr.c: Likewise.
14670         * modules/inttostr-tests: New file.
14671         * tests/test-inttostr.c: New file.  Test these functions.
14672
14673 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
14674             Bruno Haible  <bruno@clisp.org>
14675
14676         Add "Extending Gnulib" chapter to manual.
14677         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
14678         chapter.
14679         (Extending Gnulib): New chapter.
14680         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
14681         chapter.
14682
14683 2010-06-09  Bruno Haible  <bruno@clisp.org>
14684
14685         Avoid relocwrapper link errors due to gnulib replacement functions.
14686         * lib/areadlink.c: Use the system's malloc, realloc functions.
14687         (areadlink): Set errno to ENOMEM explicitly.
14688         * modules/areadlink (Depends-on): Remove malloc-posix.
14689         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14690
14691 2010-06-09  Bruno Haible  <bruno@clisp.org>
14692
14693         Avoid relocwrapper link errors due to gnulib replacement functions.
14694         * lib/canonicalize-lgpl.c: Use the system's malloc function.
14695         * lib/malloca.c: Likewise.
14696         * lib/relocatable.c: Likewise.
14697         * lib/progreloc.c: Use the system's malloc, sprintf functions.
14698         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
14699         * lib/setenv.c: Use the system's malloc, realloc functions.
14700         * lib/strerror.c: Use the system's sprintf function.
14701         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14702
14703 2010-06-04  Bruno Haible  <bruno@clisp.org>
14704
14705         Prefer documented low-level autoconf macro names.
14706         * m4/lib-link.m4: Use m4_translit instead of translit.
14707         * m4/environ.m4: Likewise.
14708         * m4/mathfunc.m4: Likewise.
14709         * m4/onceonly.m4: Likewise.
14710         * m4/stdint.m4: Likewise.
14711         Suggested by Eric Blake.
14712
14713 2010-06-04  Martin Lambers  <marlam@marlam.de>
14714             Bruno Haible  <bruno@clisp.org>
14715
14716         havelib: Allow library names with '+' characters.
14717         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
14718         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
14719
14720 2010-06-09  Bruno Haible  <bruno@clisp.org>
14721
14722         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
14723         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
14724         realloc failed.
14725
14726 2010-06-08  Peter Simons  <simons@cryp.to>
14727
14728         maint.mk: make the news-check rule more configurable
14729         * top/maint.mk (news-check-lines-spec): New variable.
14730         (news-check): Use "sed -n 1,10p" in place of "head".
14731
14732 2010-06-07  Jim Meyering  <meyering@redhat.com>
14733
14734         do-release-commit-and-tag: fix typo in --help
14735         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
14736
14737         regex: avoid new dead-code warning with gcc-4.6.0
14738         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
14739         if-block containing a while-loop.  It's been unused for at least
14740         5 years.
14741
14742 2010-06-05  Bruno Haible  <bruno@clisp.org>
14743
14744         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
14745         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
14746
14747 2010-06-04  Bruno Haible  <bruno@clisp.org>
14748
14749         Update to GNU gettext 0.18.1.
14750         * modules/gettext (configure.ac): Require gettext infrastructure from
14751         version 0.18.1.
14752
14753 2010-06-03  Bruno Haible  <bruno@clisp.org>
14754
14755         Don't use AC_LIBOBJ with file names in subdirectories.
14756         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
14757         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
14758         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
14759         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
14760         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
14761         gl_LIBUNISTRING_LIBSOURCE.
14762         (Makefile.am): Augment lib_SOURCES here, conditionally.
14763         * NEWS: Drop requirement for Automake option 'subdir-objects'.
14764
14765 2010-06-03  Bruno Haible  <bruno@clisp.org>
14766
14767         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
14768         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
14769         expansion does not end with a newline.
14770         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
14771         unnecessary newline.
14772
14773 2010-06-03  Bruno Haible  <bruno@clisp.org>
14774
14775         Reduce dependencies.
14776         * tests/test-quotearg.h: New file, extracted from
14777         tests/test-quotearg.c.
14778         * tests/test-quotearg-simple.c: New file, extracted from
14779         tests/test-quotearg.c.
14780         * tests/test-quotearg.c: Don't include <ctype.h>.
14781         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
14782         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
14783         use_quote_double_quotes, use_quotearg_colon): Moved to
14784         tests/test-quotearg.h.
14785         (results_g, flag_results, custom_quotes, custom_results): Moved
14786         to tests/test-quotearg-simple.c.
14787         (main): Moved the part that does not depend on gettext to
14788         tests/test-quotearg-simple.c. Return 77 if the test cannot be
14789         performed.
14790         * modules/quotearg-simple: New file.
14791         * modules/quotearg-simple-tests: New file.
14792         * modules/quotearg (Depends-on): Add quotearg-simple.
14793         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
14794         (Files): Add tests/test-quotearg.h.
14795         Reported by Paolo Bonzini.
14796
14797 2010-06-03  Bruno Haible  <bruno@clisp.org>
14798
14799         Reduce dependencies.
14800         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
14801
14802 2010-06-03  Bruno Haible  <bruno@clisp.org>
14803
14804         time: Undefine more broken macros.
14805         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
14806         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
14807         Reported by Eric Blake.
14808
14809 2010-06-03  Bruno Haible  <bruno@clisp.org>
14810
14811         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
14812         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
14813         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
14814         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
14815         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
14816         Reported by Ludovic Courtès <ludo@gnu.org>.
14817
14818 2010-06-02  Eric Blake  <eblake@redhat.com>
14819
14820         time: work with mingw + pthreads-win32 library
14821         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
14822         if timespec is defined only in pthread.h.
14823         * modules/time (Makefile.am): Substitute it.
14824         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
14825         <pthread.h>, when needed.
14826         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
14827         from the library.
14828
14829 2010-05-31  Bruno Haible  <bruno@clisp.org>
14830
14831         Avoid expanding two macros in the wrong order.
14832         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
14833         gl_LIBUNISTRING if it is defined.
14834         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
14835         autoconf >= 2.64.
14836         Reported by Ludovic Courtès <ludo@gnu.org>.
14837
14838 2010-05-27  Jim Meyering  <meyering@redhat.com>
14839
14840         maint.mk: also prohibit "#undef" of always-defined symbols
14841         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
14842         Allow more than one space before the symbol name.
14843         (sc_prohibit_always-defined_macros): Use grep's -E, now that
14844         the regexp uses alternation.
14845
14846 2010-05-26  Eric Blake  <eblake@redhat.com>
14847
14848         maint.mk: avoid echo -e
14849         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
14850         Convert all uses of echo -* to printf.
14851         Reported by Matthias Bolte.
14852
14853 2010-05-25  Bruno Haible  <bruno@clisp.org>
14854
14855         Update to GNU gettext 0.18, part 2.
14856         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
14857         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
14858
14859 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14860
14861         Add missing include in test-pwrite.c.
14862         * tests/test-pwrite.c: Include string.h, for strcmp.
14863
14864 2010-05-24  Bruno Haible  <bruno@clisp.org>
14865
14866         * NEWS: Mention requirement for Automake option 'subdir-objects'.
14867
14868 2010-05-24  Bruno Haible  <bruno@clisp.org>
14869
14870         Don't use conversion with transliteration in u{8,16,32}_strcoll.
14871         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
14872         iconveh_error argument.
14873         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
14874         U_STRCONV_TO_LOCALE.
14875         * lib/unistr/u16-strcoll.c: Likewise.
14876         * lib/unistr/u32-strcoll.c: Likewise.
14877         * modules/unistr/u8-strcoll (Depends-on): Add
14878         uniconv/u8-strconv-to-enc, localcharset. Remove
14879         uniconv/u8-strconv-to-locale.
14880         (configure.ac): Bump version number.
14881         * modules/unistr/u16-strcoll (Depends-on): Add
14882         uniconv/u16-strconv-to-enc, localcharset. Remove
14883         uniconv/u16-strconv-to-locale.
14884         (configure.ac): Bump version number.
14885         * modules/unistr/u32-strcoll (Depends-on): Add
14886         uniconv/u32-strconv-to-enc, localcharset. Remove
14887         uniconv/u32-strconv-to-locale.
14888         (configure.ac): Bump version number.
14889
14890 2010-05-24  Bruno Haible  <bruno@clisp.org>
14891
14892         Avoid a test failure on NetBSD 5.0.
14893         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
14894         an iconv() bug.
14895
14896 2010-05-24  Bruno Haible  <bruno@clisp.org>
14897
14898         Adjust #include directive style.
14899         * modules/regex (Includes): Recommend to write <regex.h>.
14900
14901 2010-05-24  Bruno Haible  <bruno@clisp.org>
14902
14903         regex: Don't require alloca.
14904         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
14905         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
14906         only inside if (0).
14907
14908 2010-05-23  Jim Meyering  <meyering@redhat.com>
14909
14910         test-renameat.c: include <sys/stat.h>
14911         * tests/test-renameat.c: Include <sys/stat.h>; required for
14912         definition of S_IS* macros.
14913
14914 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
14915
14916         Update maintainer documentation for 'relocatable-prog' module.
14917         * doc/relocatable-maint.texi: Update.
14918         Comments by Bruno Haible.
14919
14920 2010-05-23  Bruno Haible  <bruno@clisp.org>
14921
14922         git-merge-changelog: Enable --split-merged-entry by default.
14923         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
14924         (usage): Don't mention this option any more.
14925         Reported by Ralf Wildenhues.
14926
14927 2010-05-23  Jim Meyering  <meyering@redhat.com>
14928
14929         test-pwrite: do not leave behind a test file named "out"
14930         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
14931         The trivial-looking use of init.sh is really necessary.
14932         It ensures that the temporary file, "out", is created in
14933         a temporary directory, and removed upon termination.
14934         * tests/test-pwrite.sh: Re-add file.
14935         * modules/pwrite-tests: Reference it.
14936
14937 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14938
14939         Fix output redirection buglet in init.sh.
14940         * tests/init.sh: Fix redirection of stderr.
14941
14942 2010-05-20  Simon Josefsson  <simon@josefsson.org>
14943
14944         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
14945
14946 2010-05-17  Simon Josefsson  <simon@josefsson.org>
14947
14948         * modules/valgrind-tests: New file.
14949         * m4/valgrind-tests.m4: New file.
14950         * doc/valgrind-tests.texi: New file.
14951         * doc/gnulib.texi (Running self-tests under valgrind): New
14952         section.
14953
14954 2010-05-19  Bruno Haible  <bruno@clisp.org>
14955
14956         Clean up dead code in recent commit.
14957         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
14958         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
14959         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
14960         Suggested by Paolo Bonzini.
14961
14962 2010-05-19  Bruno Haible  <bruno@clisp.org>
14963
14964         Avoid valgrind error reports from libunistring.
14965         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
14966         * modules/libunistring (Files): Add it.
14967         * modules/libunistring-optional (Files): Likewise.
14968
14969 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
14970             Bruno Haible  <bruno@clisp.org>
14971
14972         New module 'libunistring-optional'.
14973         * modules/libunistring-optional: New file.
14974         * m4/libunistring-base.m4: New file.
14975         * m4/libunistring-optional.m4: New file.
14976         * lib/unicase.in.h: Renamed from lib/unicase.h.
14977         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
14978         * lib/unictype.in.h: Renamed from lib/unictype.h.
14979         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
14980         * lib/uniname.in.h: Renamed from lib/uniname.h.
14981         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
14982         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
14983         * lib/unistr.in.h: Renamed from lib/unistr.h.
14984         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
14985         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
14986         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
14987         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
14988         gl_LIBUNISTRING. If the library was found, determine the installed
14989         version and set LIBUNISTRING_VERSION.
14990         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
14991         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
14992         handle a configuration option --with-included-libunistring.
14993         * modules/libunistring (Files): Add m4/absolute-header.m4.
14994         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
14995         Add m4/libunistring-base.m4.
14996         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
14997         (Makefile.am): Build unicase.h from unicase.in.h.
14998         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
14999         Add m4/libunistring-base.m4.
15000         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15001         (Makefile.am): Build uniconv.h from uniconv.in.h.
15002         * modules/unictype/base (Files): Use unictype.in.h instead of
15003         unictype.h. Add m4/libunistring-base.m4.
15004         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15005         (Makefile.am): Build unictype.h from unictype.in.h.
15006         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
15007         Add m4/libunistring-base.m4.
15008         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15009         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
15010         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
15011         Add m4/libunistring-base.m4.
15012         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15013         (Makefile.am): Build uniname.h from uniname.in.h.
15014         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
15015         Add m4/libunistring-base.m4.
15016         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15017         (Makefile.am): Build uninorm.h from uninorm.in.h.
15018         * modules/unistdio/base (Files): Use unistdio.in.h instead of
15019         unistdio.h. Add m4/libunistring-base.m4.
15020         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15021         (Makefile.am): Build unistdio.h from unistdio.in.h.
15022         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
15023         Add m4/libunistring-base.m4.
15024         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15025         (Makefile.am): Build unistr.h from unistr.in.h.
15026         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
15027         Add m4/libunistring-base.m4.
15028         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15029         (Makefile.am): Build unitypes.h from unitypes.in.h.
15030         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
15031         Add m4/libunistring-base.m4.
15032         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15033         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
15034         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
15035         uniwidth.h. Add m4/libunistring-base.m4.
15036         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
15037         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
15038         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
15039         instead of augmenting lib_SOURCES.
15040         * modules/unicase/empty-suffix-context: Likewise.
15041         * modules/unicase/locale-language: Likewise.
15042         * modules/unicase/tolower: Likewise.
15043         * modules/unicase/totitle: Likewise.
15044         * modules/unicase/toupper: Likewise.
15045         * modules/unicase/u8-casecmp: Likewise.
15046         * modules/unicase/u8-casecoll: Likewise.
15047         * modules/unicase/u8-casefold: Likewise.
15048         * modules/unicase/u8-casexfrm: Likewise.
15049         * modules/unicase/u8-ct-casefold: Likewise.
15050         * modules/unicase/u8-ct-tolower: Likewise.
15051         * modules/unicase/u8-ct-totitle: Likewise.
15052         * modules/unicase/u8-ct-toupper: Likewise.
15053         * modules/unicase/u8-is-cased: Likewise.
15054         * modules/unicase/u8-is-casefolded: Likewise.
15055         * modules/unicase/u8-is-lowercase: Likewise.
15056         * modules/unicase/u8-is-titlecase: Likewise.
15057         * modules/unicase/u8-is-uppercase: Likewise.
15058         * modules/unicase/u8-prefix-context: Likewise.
15059         * modules/unicase/u8-suffix-context: Likewise.
15060         * modules/unicase/u8-tolower: Likewise.
15061         * modules/unicase/u8-totitle: Likewise.
15062         * modules/unicase/u8-toupper: Likewise.
15063         * modules/unicase/u16-casecmp: Likewise.
15064         * modules/unicase/u16-casecoll: Likewise.
15065         * modules/unicase/u16-casefold: Likewise.
15066         * modules/unicase/u16-casexfrm: Likewise.
15067         * modules/unicase/u16-ct-casefold: Likewise.
15068         * modules/unicase/u16-ct-tolower: Likewise.
15069         * modules/unicase/u16-ct-totitle: Likewise.
15070         * modules/unicase/u16-ct-toupper: Likewise.
15071         * modules/unicase/u16-is-cased: Likewise.
15072         * modules/unicase/u16-is-casefolded: Likewise.
15073         * modules/unicase/u16-is-lowercase: Likewise.
15074         * modules/unicase/u16-is-titlecase: Likewise.
15075         * modules/unicase/u16-is-uppercase: Likewise.
15076         * modules/unicase/u16-prefix-context: Likewise.
15077         * modules/unicase/u16-suffix-context: Likewise.
15078         * modules/unicase/u16-tolower: Likewise.
15079         * modules/unicase/u16-totitle: Likewise.
15080         * modules/unicase/u16-toupper: Likewise.
15081         * modules/unicase/u32-casecmp: Likewise.
15082         * modules/unicase/u32-casecoll: Likewise.
15083         * modules/unicase/u32-casefold: Likewise.
15084         * modules/unicase/u32-casexfrm: Likewise.
15085         * modules/unicase/u32-ct-casefold: Likewise.
15086         * modules/unicase/u32-ct-tolower: Likewise.
15087         * modules/unicase/u32-ct-totitle: Likewise.
15088         * modules/unicase/u32-ct-toupper: Likewise.
15089         * modules/unicase/u32-is-cased: Likewise.
15090         * modules/unicase/u32-is-casefolded: Likewise.
15091         * modules/unicase/u32-is-lowercase: Likewise.
15092         * modules/unicase/u32-is-titlecase: Likewise.
15093         * modules/unicase/u32-is-uppercase: Likewise.
15094         * modules/unicase/u32-prefix-context: Likewise.
15095         * modules/unicase/u32-suffix-context: Likewise.
15096         * modules/unicase/u32-tolower: Likewise.
15097         * modules/unicase/u32-totitle: Likewise.
15098         * modules/unicase/u32-toupper: Likewise.
15099         * modules/unicase/ulc-casecmp: Likewise.
15100         * modules/unicase/ulc-casecoll: Likewise.
15101         * modules/unicase/ulc-casexfrm: Likewise.
15102         * modules/uniconv/u8-conv-from-enc: Likewise.
15103         * modules/uniconv/u8-conv-to-enc: Likewise.
15104         * modules/uniconv/u8-strconv-from-enc: Likewise.
15105         * modules/uniconv/u8-strconv-from-locale: Likewise.
15106         * modules/uniconv/u8-strconv-to-enc: Likewise.
15107         * modules/uniconv/u8-strconv-to-locale: Likewise.
15108         * modules/uniconv/u16-conv-from-enc: Likewise.
15109         * modules/uniconv/u16-conv-to-enc: Likewise.
15110         * modules/uniconv/u16-strconv-from-enc: Likewise.
15111         * modules/uniconv/u16-strconv-from-locale: Likewise.
15112         * modules/uniconv/u16-strconv-to-enc: Likewise.
15113         * modules/uniconv/u16-strconv-to-locale: Likewise.
15114         * modules/uniconv/u32-conv-from-enc: Likewise.
15115         * modules/uniconv/u32-conv-to-enc: Likewise.
15116         * modules/uniconv/u32-strconv-from-enc: Likewise.
15117         * modules/uniconv/u32-strconv-from-locale: Likewise.
15118         * modules/uniconv/u32-strconv-to-enc: Likewise.
15119         * modules/uniconv/u32-strconv-to-locale: Likewise.
15120         * modules/unictype/bidicategory-byname: Likewise.
15121         * modules/unictype/bidicategory-name: Likewise.
15122         * modules/unictype/bidicategory-of: Likewise.
15123         * modules/unictype/bidicategory-test: Likewise.
15124         * modules/unictype/block-list: Likewise.
15125         * modules/unictype/block-test: Likewise.
15126         * modules/unictype/category-C: Likewise.
15127         * modules/unictype/category-Cc: Likewise.
15128         * modules/unictype/category-Cf: Likewise.
15129         * modules/unictype/category-Cn: Likewise.
15130         * modules/unictype/category-Co: Likewise.
15131         * modules/unictype/category-Cs: Likewise.
15132         * modules/unictype/category-L: Likewise.
15133         * modules/unictype/category-Ll: Likewise.
15134         * modules/unictype/category-Lm: Likewise.
15135         * modules/unictype/category-Lo: Likewise.
15136         * modules/unictype/category-Lt: Likewise.
15137         * modules/unictype/category-Lu: Likewise.
15138         * modules/unictype/category-M: Likewise.
15139         * modules/unictype/category-Mc: Likewise.
15140         * modules/unictype/category-Me: Likewise.
15141         * modules/unictype/category-Mn: Likewise.
15142         * modules/unictype/category-N: Likewise.
15143         * modules/unictype/category-Nd: Likewise.
15144         * modules/unictype/category-Nl: Likewise.
15145         * modules/unictype/category-No: Likewise.
15146         * modules/unictype/category-P: Likewise.
15147         * modules/unictype/category-Pc: Likewise.
15148         * modules/unictype/category-Pd: Likewise.
15149         * modules/unictype/category-Pe: Likewise.
15150         * modules/unictype/category-Pf: Likewise.
15151         * modules/unictype/category-Pi: Likewise.
15152         * modules/unictype/category-Po: Likewise.
15153         * modules/unictype/category-Ps: Likewise.
15154         * modules/unictype/category-S: Likewise.
15155         * modules/unictype/category-Sc: Likewise.
15156         * modules/unictype/category-Sk: Likewise.
15157         * modules/unictype/category-Sm: Likewise.
15158         * modules/unictype/category-So: Likewise.
15159         * modules/unictype/category-Z: Likewise.
15160         * modules/unictype/category-Zl: Likewise.
15161         * modules/unictype/category-Zp: Likewise.
15162         * modules/unictype/category-Zs: Likewise.
15163         * modules/unictype/category-and: Likewise.
15164         * modules/unictype/category-and-not: Likewise.
15165         * modules/unictype/category-byname: Likewise.
15166         * modules/unictype/category-name: Likewise.
15167         * modules/unictype/category-none: Likewise.
15168         * modules/unictype/category-of: Likewise.
15169         * modules/unictype/category-or: Likewise.
15170         * modules/unictype/category-test: Likewise.
15171         * modules/unictype/combining-class: Likewise.
15172         * modules/unictype/ctype-alnum: Likewise.
15173         * modules/unictype/ctype-alpha: Likewise.
15174         * modules/unictype/ctype-blank: Likewise.
15175         * modules/unictype/ctype-cntrl: Likewise.
15176         * modules/unictype/ctype-digit: Likewise.
15177         * modules/unictype/ctype-graph: Likewise.
15178         * modules/unictype/ctype-lower: Likewise.
15179         * modules/unictype/ctype-print: Likewise.
15180         * modules/unictype/ctype-punct: Likewise.
15181         * modules/unictype/ctype-space: Likewise.
15182         * modules/unictype/ctype-upper: Likewise.
15183         * modules/unictype/ctype-xdigit: Likewise.
15184         * modules/unictype/decimal-digit: Likewise.
15185         * modules/unictype/digit: Likewise.
15186         * modules/unictype/mirror: Likewise.
15187         * modules/unictype/numeric: Likewise.
15188         * modules/unictype/property-alphabetic: Likewise.
15189         * modules/unictype/property-ascii-hex-digit: Likewise.
15190         * modules/unictype/property-bidi-arabic-digit: Likewise.
15191         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
15192         * modules/unictype/property-bidi-block-separator: Likewise.
15193         * modules/unictype/property-bidi-boundary-neutral: Likewise.
15194         * modules/unictype/property-bidi-common-separator: Likewise.
15195         * modules/unictype/property-bidi-control: Likewise.
15196         * modules/unictype/property-bidi-embedding-or-override: Likewise.
15197         * modules/unictype/property-bidi-eur-num-separator: Likewise.
15198         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
15199         * modules/unictype/property-bidi-european-digit: Likewise.
15200         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
15201         * modules/unictype/property-bidi-left-to-right: Likewise.
15202         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
15203         * modules/unictype/property-bidi-other-neutral: Likewise.
15204         * modules/unictype/property-bidi-pdf: Likewise.
15205         * modules/unictype/property-bidi-segment-separator: Likewise.
15206         * modules/unictype/property-bidi-whitespace: Likewise.
15207         * modules/unictype/property-byname: Likewise.
15208         * modules/unictype/property-combining: Likewise.
15209         * modules/unictype/property-composite: Likewise.
15210         * modules/unictype/property-currency-symbol: Likewise.
15211         * modules/unictype/property-dash: Likewise.
15212         * modules/unictype/property-decimal-digit: Likewise.
15213         * modules/unictype/property-default-ignorable-code-point: Likewise.
15214         * modules/unictype/property-deprecated: Likewise.
15215         * modules/unictype/property-diacritic: Likewise.
15216         * modules/unictype/property-extender: Likewise.
15217         * modules/unictype/property-format-control: Likewise.
15218         * modules/unictype/property-grapheme-base: Likewise.
15219         * modules/unictype/property-grapheme-extend: Likewise.
15220         * modules/unictype/property-grapheme-link: Likewise.
15221         * modules/unictype/property-hex-digit: Likewise.
15222         * modules/unictype/property-hyphen: Likewise.
15223         * modules/unictype/property-id-continue: Likewise.
15224         * modules/unictype/property-id-start: Likewise.
15225         * modules/unictype/property-ideographic: Likewise.
15226         * modules/unictype/property-ids-binary-operator: Likewise.
15227         * modules/unictype/property-ids-trinary-operator: Likewise.
15228         * modules/unictype/property-ignorable-control: Likewise.
15229         * modules/unictype/property-iso-control: Likewise.
15230         * modules/unictype/property-join-control: Likewise.
15231         * modules/unictype/property-left-of-pair: Likewise.
15232         * modules/unictype/property-line-separator: Likewise.
15233         * modules/unictype/property-logical-order-exception: Likewise.
15234         * modules/unictype/property-lowercase: Likewise.
15235         * modules/unictype/property-math: Likewise.
15236         * modules/unictype/property-non-break: Likewise.
15237         * modules/unictype/property-not-a-character: Likewise.
15238         * modules/unictype/property-numeric: Likewise.
15239         * modules/unictype/property-other-alphabetic: Likewise.
15240         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
15241         * modules/unictype/property-other-grapheme-extend: Likewise.
15242         * modules/unictype/property-other-id-continue: Likewise.
15243         * modules/unictype/property-other-id-start: Likewise.
15244         * modules/unictype/property-other-lowercase: Likewise.
15245         * modules/unictype/property-other-math: Likewise.
15246         * modules/unictype/property-other-uppercase: Likewise.
15247         * modules/unictype/property-paired-punctuation: Likewise.
15248         * modules/unictype/property-paragraph-separator: Likewise.
15249         * modules/unictype/property-pattern-syntax: Likewise.
15250         * modules/unictype/property-pattern-white-space: Likewise.
15251         * modules/unictype/property-private-use: Likewise.
15252         * modules/unictype/property-punctuation: Likewise.
15253         * modules/unictype/property-quotation-mark: Likewise.
15254         * modules/unictype/property-radical: Likewise.
15255         * modules/unictype/property-sentence-terminal: Likewise.
15256         * modules/unictype/property-soft-dotted: Likewise.
15257         * modules/unictype/property-space: Likewise.
15258         * modules/unictype/property-terminal-punctuation: Likewise.
15259         * modules/unictype/property-test: Likewise.
15260         * modules/unictype/property-titlecase: Likewise.
15261         * modules/unictype/property-unassigned-code-value: Likewise.
15262         * modules/unictype/property-unified-ideograph: Likewise.
15263         * modules/unictype/property-uppercase: Likewise.
15264         * modules/unictype/property-variation-selector: Likewise.
15265         * modules/unictype/property-white-space: Likewise.
15266         * modules/unictype/property-xid-continue: Likewise.
15267         * modules/unictype/property-xid-start: Likewise.
15268         * modules/unictype/property-zero-width: Likewise.
15269         * modules/unictype/scripts: Likewise.
15270         * modules/unictype/syntax-c-ident: Likewise.
15271         * modules/unictype/syntax-c-whitespace: Likewise.
15272         * modules/unictype/syntax-java-ident: Likewise.
15273         * modules/unictype/syntax-java-whitespace: Likewise.
15274         * modules/unilbrk/u8-possible-linebreaks: Likewise.
15275         * modules/unilbrk/u8-width-linebreaks: Likewise.
15276         * modules/unilbrk/u16-possible-linebreaks: Likewise.
15277         * modules/unilbrk/u16-width-linebreaks: Likewise.
15278         * modules/unilbrk/u32-possible-linebreaks: Likewise.
15279         * modules/unilbrk/u32-width-linebreaks: Likewise.
15280         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
15281         * modules/unilbrk/ulc-width-linebreaks: Likewise.
15282         * modules/uniname/uniname: Likewise.
15283         * modules/uninorm/canonical-decomposition: Likewise.
15284         * modules/uninorm/composition: Likewise.
15285         * modules/uninorm/decomposing-form: Likewise.
15286         * modules/uninorm/decomposition: Likewise.
15287         * modules/uninorm/filter: Likewise.
15288         * modules/uninorm/nfc: Likewise.
15289         * modules/uninorm/nfd: Likewise.
15290         * modules/uninorm/nfkc: Likewise.
15291         * modules/uninorm/nfkd: Likewise.
15292         * modules/uninorm/u8-normalize: Likewise.
15293         * modules/uninorm/u8-normcmp: Likewise.
15294         * modules/uninorm/u8-normcoll: Likewise.
15295         * modules/uninorm/u8-normxfrm: Likewise.
15296         * modules/uninorm/u16-normalize: Likewise.
15297         * modules/uninorm/u16-normcmp: Likewise.
15298         * modules/uninorm/u16-normcoll: Likewise.
15299         * modules/uninorm/u16-normxfrm: Likewise.
15300         * modules/uninorm/u32-normalize: Likewise.
15301         * modules/uninorm/u32-normcmp: Likewise.
15302         * modules/uninorm/u32-normcoll: Likewise.
15303         * modules/uninorm/u32-normxfrm: Likewise.
15304         * modules/unistdio/u8-asnprintf: Likewise.
15305         * modules/unistdio/u8-asprintf: Likewise.
15306         * modules/unistdio/u8-snprintf: Likewise.
15307         * modules/unistdio/u8-sprintf: Likewise.
15308         * modules/unistdio/u8-u8-asnprintf: Likewise.
15309         * modules/unistdio/u8-u8-asprintf: Likewise.
15310         * modules/unistdio/u8-u8-snprintf: Likewise.
15311         * modules/unistdio/u8-u8-sprintf: Likewise.
15312         * modules/unistdio/u8-u8-vasnprintf: Likewise.
15313         * modules/unistdio/u8-u8-vasprintf: Likewise.
15314         * modules/unistdio/u8-u8-vsnprintf: Likewise.
15315         * modules/unistdio/u8-u8-vsprintf: Likewise.
15316         * modules/unistdio/u8-vasnprintf: Likewise.
15317         * modules/unistdio/u8-vasprintf: Likewise.
15318         * modules/unistdio/u8-vsnprintf: Likewise.
15319         * modules/unistdio/u8-vsprintf: Likewise.
15320         * modules/unistdio/u16-asnprintf: Likewise.
15321         * modules/unistdio/u16-asprintf: Likewise.
15322         * modules/unistdio/u16-snprintf: Likewise.
15323         * modules/unistdio/u16-sprintf: Likewise.
15324         * modules/unistdio/u16-u16-asnprintf: Likewise.
15325         * modules/unistdio/u16-u16-asprintf: Likewise.
15326         * modules/unistdio/u16-u16-snprintf: Likewise.
15327         * modules/unistdio/u16-u16-sprintf: Likewise.
15328         * modules/unistdio/u16-u16-vasnprintf: Likewise.
15329         * modules/unistdio/u16-u16-vasprintf: Likewise.
15330         * modules/unistdio/u16-u16-vsnprintf: Likewise.
15331         * modules/unistdio/u16-u16-vsprintf: Likewise.
15332         * modules/unistdio/u16-vasnprintf: Likewise.
15333         * modules/unistdio/u16-vasprintf: Likewise.
15334         * modules/unistdio/u16-vsnprintf: Likewise.
15335         * modules/unistdio/u16-vsprintf: Likewise.
15336         * modules/unistdio/u32-asnprintf: Likewise.
15337         * modules/unistdio/u32-asprintf: Likewise.
15338         * modules/unistdio/u32-snprintf: Likewise.
15339         * modules/unistdio/u32-sprintf: Likewise.
15340         * modules/unistdio/u32-u32-asnprintf: Likewise.
15341         * modules/unistdio/u32-u32-asprintf: Likewise.
15342         * modules/unistdio/u32-u32-snprintf: Likewise.
15343         * modules/unistdio/u32-u32-sprintf: Likewise.
15344         * modules/unistdio/u32-u32-vasnprintf: Likewise.
15345         * modules/unistdio/u32-u32-vasprintf: Likewise.
15346         * modules/unistdio/u32-u32-vsnprintf: Likewise.
15347         * modules/unistdio/u32-u32-vsprintf: Likewise.
15348         * modules/unistdio/u32-vasnprintf: Likewise.
15349         * modules/unistdio/u32-vasprintf: Likewise.
15350         * modules/unistdio/u32-vsnprintf: Likewise.
15351         * modules/unistdio/u32-vsprintf: Likewise.
15352         * modules/unistdio/ulc-asnprintf: Likewise.
15353         * modules/unistdio/ulc-asprintf: Likewise.
15354         * modules/unistdio/ulc-fprintf: Likewise.
15355         * modules/unistdio/ulc-snprintf: Likewise.
15356         * modules/unistdio/ulc-sprintf: Likewise.
15357         * modules/unistdio/ulc-vasnprintf: Likewise.
15358         * modules/unistdio/ulc-vasprintf: Likewise.
15359         * modules/unistdio/ulc-vfprintf: Likewise.
15360         * modules/unistdio/ulc-vsnprintf: Likewise.
15361         * modules/unistdio/ulc-vsprintf: Likewise.
15362         * modules/unistr/u8-check: Likewise.
15363         * modules/unistr/u8-chr: Likewise.
15364         * modules/unistr/u8-cmp: Likewise.
15365         * modules/unistr/u8-cmp2: Likewise.
15366         * modules/unistr/u8-cpy: Likewise.
15367         * modules/unistr/u8-cpy-alloc: Likewise.
15368         * modules/unistr/u8-endswith: Likewise.
15369         * modules/unistr/u8-mblen: Likewise.
15370         * modules/unistr/u8-mbsnlen: Likewise.
15371         * modules/unistr/u8-mbtouc: Likewise.
15372         * modules/unistr/u8-mbtouc-unsafe: Likewise.
15373         * modules/unistr/u8-mbtoucr: Likewise.
15374         * modules/unistr/u8-move: Likewise.
15375         * modules/unistr/u8-next: Likewise.
15376         * modules/unistr/u8-prev: Likewise.
15377         * modules/unistr/u8-set: Likewise.
15378         * modules/unistr/u8-startswith: Likewise.
15379         * modules/unistr/u8-stpcpy: Likewise.
15380         * modules/unistr/u8-stpncpy: Likewise.
15381         * modules/unistr/u8-strcat: Likewise.
15382         * modules/unistr/u8-strchr: Likewise.
15383         * modules/unistr/u8-strcmp: Likewise.
15384         * modules/unistr/u8-strcoll: Likewise.
15385         * modules/unistr/u8-strcpy: Likewise.
15386         * modules/unistr/u8-strcspn: Likewise.
15387         * modules/unistr/u8-strdup: Likewise.
15388         * modules/unistr/u8-strlen: Likewise.
15389         * modules/unistr/u8-strmblen: Likewise.
15390         * modules/unistr/u8-strmbtouc: Likewise.
15391         * modules/unistr/u8-strncat: Likewise.
15392         * modules/unistr/u8-strncmp: Likewise.
15393         * modules/unistr/u8-strncpy: Likewise.
15394         * modules/unistr/u8-strnlen: Likewise.
15395         * modules/unistr/u8-strpbrk: Likewise.
15396         * modules/unistr/u8-strrchr: Likewise.
15397         * modules/unistr/u8-strspn: Likewise.
15398         * modules/unistr/u8-strstr: Likewise.
15399         * modules/unistr/u8-strtok: Likewise.
15400         * modules/unistr/u8-to-u16: Likewise.
15401         * modules/unistr/u8-to-u32: Likewise.
15402         * modules/unistr/u8-uctomb: Likewise.
15403         * modules/unistr/u16-check: Likewise.
15404         * modules/unistr/u16-chr: Likewise.
15405         * modules/unistr/u16-cmp: Likewise.
15406         * modules/unistr/u16-cmp2: Likewise.
15407         * modules/unistr/u16-cpy: Likewise.
15408         * modules/unistr/u16-cpy-alloc: Likewise.
15409         * modules/unistr/u16-endswith: Likewise.
15410         * modules/unistr/u16-mblen: Likewise.
15411         * modules/unistr/u16-mbsnlen: Likewise.
15412         * modules/unistr/u16-mbtouc: Likewise.
15413         * modules/unistr/u16-mbtouc-unsafe: Likewise.
15414         * modules/unistr/u16-mbtoucr: Likewise.
15415         * modules/unistr/u16-move: Likewise.
15416         * modules/unistr/u16-next: Likewise.
15417         * modules/unistr/u16-prev: Likewise.
15418         * modules/unistr/u16-set: Likewise.
15419         * modules/unistr/u16-startswith: Likewise.
15420         * modules/unistr/u16-stpcpy: Likewise.
15421         * modules/unistr/u16-stpncpy: Likewise.
15422         * modules/unistr/u16-strcat: Likewise.
15423         * modules/unistr/u16-strchr: Likewise.
15424         * modules/unistr/u16-strcmp: Likewise.
15425         * modules/unistr/u16-strcoll: Likewise.
15426         * modules/unistr/u16-strcpy: Likewise.
15427         * modules/unistr/u16-strcspn: Likewise.
15428         * modules/unistr/u16-strdup: Likewise.
15429         * modules/unistr/u16-strlen: Likewise.
15430         * modules/unistr/u16-strmblen: Likewise.
15431         * modules/unistr/u16-strmbtouc: Likewise.
15432         * modules/unistr/u16-strncat: Likewise.
15433         * modules/unistr/u16-strncmp: Likewise.
15434         * modules/unistr/u16-strncpy: Likewise.
15435         * modules/unistr/u16-strnlen: Likewise.
15436         * modules/unistr/u16-strpbrk: Likewise.
15437         * modules/unistr/u16-strrchr: Likewise.
15438         * modules/unistr/u16-strspn: Likewise.
15439         * modules/unistr/u16-strstr: Likewise.
15440         * modules/unistr/u16-strtok: Likewise.
15441         * modules/unistr/u16-to-u32: Likewise.
15442         * modules/unistr/u16-to-u8: Likewise.
15443         * modules/unistr/u16-uctomb: Likewise.
15444         * modules/unistr/u32-check: Likewise.
15445         * modules/unistr/u32-chr: Likewise.
15446         * modules/unistr/u32-cmp: Likewise.
15447         * modules/unistr/u32-cmp2: Likewise.
15448         * modules/unistr/u32-cpy: Likewise.
15449         * modules/unistr/u32-cpy-alloc: Likewise.
15450         * modules/unistr/u32-endswith: Likewise.
15451         * modules/unistr/u32-mblen: Likewise.
15452         * modules/unistr/u32-mbsnlen: Likewise.
15453         * modules/unistr/u32-mbtouc: Likewise.
15454         * modules/unistr/u32-mbtouc-unsafe: Likewise.
15455         * modules/unistr/u32-mbtoucr: Likewise.
15456         * modules/unistr/u32-move: Likewise.
15457         * modules/unistr/u32-next: Likewise.
15458         * modules/unistr/u32-prev: Likewise.
15459         * modules/unistr/u32-set: Likewise.
15460         * modules/unistr/u32-startswith: Likewise.
15461         * modules/unistr/u32-stpcpy: Likewise.
15462         * modules/unistr/u32-stpncpy: Likewise.
15463         * modules/unistr/u32-strcat: Likewise.
15464         * modules/unistr/u32-strchr: Likewise.
15465         * modules/unistr/u32-strcmp: Likewise.
15466         * modules/unistr/u32-strcoll: Likewise.
15467         * modules/unistr/u32-strcpy: Likewise.
15468         * modules/unistr/u32-strcspn: Likewise.
15469         * modules/unistr/u32-strdup: Likewise.
15470         * modules/unistr/u32-strlen: Likewise.
15471         * modules/unistr/u32-strmblen: Likewise.
15472         * modules/unistr/u32-strmbtouc: Likewise.
15473         * modules/unistr/u32-strncat: Likewise.
15474         * modules/unistr/u32-strncmp: Likewise.
15475         * modules/unistr/u32-strncpy: Likewise.
15476         * modules/unistr/u32-strnlen: Likewise.
15477         * modules/unistr/u32-strpbrk: Likewise.
15478         * modules/unistr/u32-strrchr: Likewise.
15479         * modules/unistr/u32-strspn: Likewise.
15480         * modules/unistr/u32-strstr: Likewise.
15481         * modules/unistr/u32-strtok: Likewise.
15482         * modules/unistr/u32-to-u16: Likewise.
15483         * modules/unistr/u32-to-u8: Likewise.
15484         * modules/unistr/u32-uctomb: Likewise.
15485         * modules/uniwbrk/u8-wordbreaks: Likewise.
15486         * modules/uniwbrk/u16-wordbreaks: Likewise.
15487         * modules/uniwbrk/u32-wordbreaks: Likewise.
15488         * modules/uniwbrk/ulc-wordbreaks: Likewise.
15489         * modules/uniwbrk/wordbreak-property: Likewise.
15490         * modules/uniwidth/u8-strwidth: Likewise.
15491         * modules/uniwidth/u8-width: Likewise.
15492         * modules/uniwidth/u16-strwidth: Likewise.
15493         * modules/uniwidth/u16-width: Likewise.
15494         * modules/uniwidth/u32-strwidth: Likewise.
15495         * modules/uniwidth/u32-width: Likewise.
15496         * modules/uniwidth/width: Likewise.
15497         * modules/unicase/cased-tests (Makefile.am): Link all test programs
15498         with $(LIBUNISTRING).
15499         * modules/unicase/ignorable-tests: Likewise.
15500         * modules/unicase/locale-language-tests: Likewise.
15501         * modules/unicase/tolower-tests: Likewise.
15502         * modules/unicase/totitle-tests: Likewise.
15503         * modules/unicase/toupper-tests: Likewise.
15504         * modules/unicase/u8-casecmp-tests: Likewise.
15505         * modules/unicase/u8-casecoll-tests: Likewise.
15506         * modules/unicase/u8-casefold-tests: Likewise.
15507         * modules/unicase/u8-is-cased-tests: Likewise.
15508         * modules/unicase/u8-is-casefolded-tests: Likewise.
15509         * modules/unicase/u8-is-lowercase-tests: Likewise.
15510         * modules/unicase/u8-is-titlecase-tests: Likewise.
15511         * modules/unicase/u8-is-uppercase-tests: Likewise.
15512         * modules/unicase/u8-tolower-tests: Likewise.
15513         * modules/unicase/u8-totitle-tests: Likewise.
15514         * modules/unicase/u8-toupper-tests: Likewise.
15515         * modules/unicase/u16-casecmp-tests: Likewise.
15516         * modules/unicase/u16-casecoll-tests: Likewise.
15517         * modules/unicase/u16-casefold-tests: Likewise.
15518         * modules/unicase/u16-is-cased-tests: Likewise.
15519         * modules/unicase/u16-is-casefolded-tests: Likewise.
15520         * modules/unicase/u16-is-lowercase-tests: Likewise.
15521         * modules/unicase/u16-is-titlecase-tests: Likewise.
15522         * modules/unicase/u16-is-uppercase-tests: Likewise.
15523         * modules/unicase/u16-tolower-tests: Likewise.
15524         * modules/unicase/u16-totitle-tests: Likewise.
15525         * modules/unicase/u16-toupper-tests: Likewise.
15526         * modules/unicase/u32-casecmp-tests: Likewise.
15527         * modules/unicase/u32-casecoll-tests: Likewise.
15528         * modules/unicase/u32-casefold-tests: Likewise.
15529         * modules/unicase/u32-is-cased-tests: Likewise.
15530         * modules/unicase/u32-is-casefolded-tests: Likewise.
15531         * modules/unicase/u32-is-lowercase-tests: Likewise.
15532         * modules/unicase/u32-is-titlecase-tests: Likewise.
15533         * modules/unicase/u32-is-uppercase-tests: Likewise.
15534         * modules/unicase/u32-tolower-tests: Likewise.
15535         * modules/unicase/u32-totitle-tests: Likewise.
15536         * modules/unicase/u32-toupper-tests: Likewise.
15537         * modules/unicase/ulc-casecmp-tests: Likewise.
15538         * modules/unicase/ulc-casecoll-tests: Likewise.
15539         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
15540         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
15541         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
15542         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
15543         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
15544         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
15545         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
15546         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
15547         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
15548         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
15549         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
15550         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
15551         * modules/unictype/bidicategory-byname-tests: Likewise.
15552         * modules/unictype/bidicategory-name-tests: Likewise.
15553         * modules/unictype/bidicategory-of-tests: Likewise.
15554         * modules/unictype/bidicategory-test-tests: Likewise.
15555         * modules/unictype/block-list-tests: Likewise.
15556         * modules/unictype/block-of-tests: Likewise.
15557         * modules/unictype/block-test-tests: Likewise.
15558         * modules/unictype/category-C-tests: Likewise.
15559         * modules/unictype/category-Cc-tests: Likewise.
15560         * modules/unictype/category-Cf-tests: Likewise.
15561         * modules/unictype/category-Cn-tests: Likewise.
15562         * modules/unictype/category-Co-tests: Likewise.
15563         * modules/unictype/category-Cs-tests: Likewise.
15564         * modules/unictype/category-L-tests: Likewise.
15565         * modules/unictype/category-Ll-tests: Likewise.
15566         * modules/unictype/category-Lm-tests: Likewise.
15567         * modules/unictype/category-Lo-tests: Likewise.
15568         * modules/unictype/category-Lt-tests: Likewise.
15569         * modules/unictype/category-Lu-tests: Likewise.
15570         * modules/unictype/category-M-tests: Likewise.
15571         * modules/unictype/category-Mc-tests: Likewise.
15572         * modules/unictype/category-Me-tests: Likewise.
15573         * modules/unictype/category-Mn-tests: Likewise.
15574         * modules/unictype/category-N-tests: Likewise.
15575         * modules/unictype/category-Nd-tests: Likewise.
15576         * modules/unictype/category-Nl-tests: Likewise.
15577         * modules/unictype/category-No-tests: Likewise.
15578         * modules/unictype/category-P-tests: Likewise.
15579         * modules/unictype/category-Pc-tests: Likewise.
15580         * modules/unictype/category-Pd-tests: Likewise.
15581         * modules/unictype/category-Pe-tests: Likewise.
15582         * modules/unictype/category-Pf-tests: Likewise.
15583         * modules/unictype/category-Pi-tests: Likewise.
15584         * modules/unictype/category-Po-tests: Likewise.
15585         * modules/unictype/category-Ps-tests: Likewise.
15586         * modules/unictype/category-S-tests: Likewise.
15587         * modules/unictype/category-Sc-tests: Likewise.
15588         * modules/unictype/category-Sk-tests: Likewise.
15589         * modules/unictype/category-Sm-tests: Likewise.
15590         * modules/unictype/category-So-tests: Likewise.
15591         * modules/unictype/category-Z-tests: Likewise.
15592         * modules/unictype/category-Zl-tests: Likewise.
15593         * modules/unictype/category-Zp-tests: Likewise.
15594         * modules/unictype/category-Zs-tests: Likewise.
15595         * modules/unictype/category-and-not-tests: Likewise.
15596         * modules/unictype/category-and-tests: Likewise.
15597         * modules/unictype/category-byname-tests: Likewise.
15598         * modules/unictype/category-name-tests: Likewise.
15599         * modules/unictype/category-none-tests: Likewise.
15600         * modules/unictype/category-of-tests: Likewise.
15601         * modules/unictype/category-or-tests: Likewise.
15602         * modules/unictype/category-test-withtable-tests: Likewise.
15603         * modules/unictype/combining-class-tests: Likewise.
15604         * modules/unictype/ctype-alnum-tests: Likewise.
15605         * modules/unictype/ctype-alpha-tests: Likewise.
15606         * modules/unictype/ctype-blank-tests: Likewise.
15607         * modules/unictype/ctype-cntrl-tests: Likewise.
15608         * modules/unictype/ctype-digit-tests: Likewise.
15609         * modules/unictype/ctype-graph-tests: Likewise.
15610         * modules/unictype/ctype-lower-tests: Likewise.
15611         * modules/unictype/ctype-print-tests: Likewise.
15612         * modules/unictype/ctype-punct-tests: Likewise.
15613         * modules/unictype/ctype-space-tests: Likewise.
15614         * modules/unictype/ctype-upper-tests: Likewise.
15615         * modules/unictype/ctype-xdigit-tests: Likewise.
15616         * modules/unictype/decimal-digit-tests: Likewise.
15617         * modules/unictype/digit-tests: Likewise.
15618         * modules/unictype/mirror-tests: Likewise.
15619         * modules/unictype/numeric-tests: Likewise.
15620         * modules/unictype/property-alphabetic-tests: Likewise.
15621         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
15622         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
15623         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
15624         * modules/unictype/property-bidi-block-separator-tests: Likewise.
15625         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
15626         * modules/unictype/property-bidi-common-separator-tests: Likewise.
15627         * modules/unictype/property-bidi-control-tests: Likewise.
15628         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
15629         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
15630         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
15631         * modules/unictype/property-bidi-european-digit-tests: Likewise.
15632         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
15633         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
15634         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
15635         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
15636         * modules/unictype/property-bidi-pdf-tests: Likewise.
15637         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
15638         * modules/unictype/property-bidi-whitespace-tests: Likewise.
15639         * modules/unictype/property-byname-tests: Likewise.
15640         * modules/unictype/property-combining-tests: Likewise.
15641         * modules/unictype/property-composite-tests: Likewise.
15642         * modules/unictype/property-currency-symbol-tests: Likewise.
15643         * modules/unictype/property-dash-tests: Likewise.
15644         * modules/unictype/property-decimal-digit-tests: Likewise.
15645         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
15646         * modules/unictype/property-deprecated-tests: Likewise.
15647         * modules/unictype/property-diacritic-tests: Likewise.
15648         * modules/unictype/property-extender-tests: Likewise.
15649         * modules/unictype/property-format-control-tests: Likewise.
15650         * modules/unictype/property-grapheme-base-tests: Likewise.
15651         * modules/unictype/property-grapheme-extend-tests: Likewise.
15652         * modules/unictype/property-grapheme-link-tests: Likewise.
15653         * modules/unictype/property-hex-digit-tests: Likewise.
15654         * modules/unictype/property-hyphen-tests: Likewise.
15655         * modules/unictype/property-id-continue-tests: Likewise.
15656         * modules/unictype/property-id-start-tests: Likewise.
15657         * modules/unictype/property-ideographic-tests: Likewise.
15658         * modules/unictype/property-ids-binary-operator-tests: Likewise.
15659         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
15660         * modules/unictype/property-ignorable-control-tests: Likewise.
15661         * modules/unictype/property-iso-control-tests: Likewise.
15662         * modules/unictype/property-join-control-tests: Likewise.
15663         * modules/unictype/property-left-of-pair-tests: Likewise.
15664         * modules/unictype/property-line-separator-tests: Likewise.
15665         * modules/unictype/property-logical-order-exception-tests: Likewise.
15666         * modules/unictype/property-lowercase-tests: Likewise.
15667         * modules/unictype/property-math-tests: Likewise.
15668         * modules/unictype/property-non-break-tests: Likewise.
15669         * modules/unictype/property-not-a-character-tests: Likewise.
15670         * modules/unictype/property-numeric-tests: Likewise.
15671         * modules/unictype/property-other-alphabetic-tests: Likewise.
15672         * modules/unictype/property-other-default-ignorable-code-point-tests:
15673         Likewise.
15674         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
15675         * modules/unictype/property-other-id-continue-tests: Likewise.
15676         * modules/unictype/property-other-id-start-tests: Likewise.
15677         * modules/unictype/property-other-lowercase-tests: Likewise.
15678         * modules/unictype/property-other-math-tests: Likewise.
15679         * modules/unictype/property-other-uppercase-tests: Likewise.
15680         * modules/unictype/property-paired-punctuation-tests: Likewise.
15681         * modules/unictype/property-paragraph-separator-tests: Likewise.
15682         * modules/unictype/property-pattern-syntax-tests: Likewise.
15683         * modules/unictype/property-pattern-white-space-tests: Likewise.
15684         * modules/unictype/property-private-use-tests: Likewise.
15685         * modules/unictype/property-punctuation-tests: Likewise.
15686         * modules/unictype/property-quotation-mark-tests: Likewise.
15687         * modules/unictype/property-radical-tests: Likewise.
15688         * modules/unictype/property-sentence-terminal-tests: Likewise.
15689         * modules/unictype/property-soft-dotted-tests: Likewise.
15690         * modules/unictype/property-space-tests: Likewise.
15691         * modules/unictype/property-terminal-punctuation-tests: Likewise.
15692         * modules/unictype/property-test-tests: Likewise.
15693         * modules/unictype/property-titlecase-tests: Likewise.
15694         * modules/unictype/property-unassigned-code-value-tests: Likewise.
15695         * modules/unictype/property-unified-ideograph-tests: Likewise.
15696         * modules/unictype/property-uppercase-tests: Likewise.
15697         * modules/unictype/property-variation-selector-tests: Likewise.
15698         * modules/unictype/property-white-space-tests: Likewise.
15699         * modules/unictype/property-xid-continue-tests: Likewise.
15700         * modules/unictype/property-xid-start-tests: Likewise.
15701         * modules/unictype/property-zero-width-tests: Likewise.
15702         * modules/unictype/scripts-tests: Likewise.
15703         * modules/unictype/syntax-c-ident-tests: Likewise.
15704         * modules/unictype/syntax-c-whitespace-tests: Likewise.
15705         * modules/unictype/syntax-java-ident-tests: Likewise.
15706         * modules/unictype/syntax-java-whitespace-tests: Likewise.
15707         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
15708         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
15709         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
15710         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
15711         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
15712         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
15713         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
15714         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
15715         * modules/uniname/uniname-tests: Likewise.
15716         * modules/uninorm/canonical-decomposition-tests: Likewise.
15717         * modules/uninorm/compat-decomposition-tests: Likewise.
15718         * modules/uninorm/composition-tests: Likewise.
15719         * modules/uninorm/decomposing-form-tests: Likewise.
15720         * modules/uninorm/decomposition-tests: Likewise.
15721         * modules/uninorm/filter-tests: Likewise.
15722         * modules/uninorm/nfc-tests: Likewise.
15723         * modules/uninorm/nfd-tests: Likewise.
15724         * modules/uninorm/nfkc-tests: Likewise.
15725         * modules/uninorm/nfkd-tests: Likewise.
15726         * modules/uninorm/u8-normcmp-tests: Likewise.
15727         * modules/uninorm/u8-normcoll-tests: Likewise.
15728         * modules/uninorm/u16-normcmp-tests: Likewise.
15729         * modules/uninorm/u16-normcoll-tests: Likewise.
15730         * modules/uninorm/u32-normcmp-tests: Likewise.
15731         * modules/uninorm/u32-normcoll-tests: Likewise.
15732         * modules/unistdio/u8-asnprintf-tests: Likewise.
15733         * modules/unistdio/u8-vasnprintf-tests: Likewise.
15734         * modules/unistdio/u8-vasprintf-tests: Likewise.
15735         * modules/unistdio/u8-vsnprintf-tests: Likewise.
15736         * modules/unistdio/u8-vsprintf-tests: Likewise.
15737         * modules/unistdio/u16-asnprintf-tests: Likewise.
15738         * modules/unistdio/u16-vasnprintf-tests: Likewise.
15739         * modules/unistdio/u16-vasprintf-tests: Likewise.
15740         * modules/unistdio/u16-vsnprintf-tests: Likewise.
15741         * modules/unistdio/u16-vsprintf-tests: Likewise.
15742         * modules/unistdio/u32-asnprintf-tests: Likewise.
15743         * modules/unistdio/u32-vasnprintf-tests: Likewise.
15744         * modules/unistdio/u32-vasprintf-tests: Likewise.
15745         * modules/unistdio/u32-vsnprintf-tests: Likewise.
15746         * modules/unistdio/u32-vsprintf-tests: Likewise.
15747         * modules/unistdio/ulc-asnprintf-tests: Likewise.
15748         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
15749         * modules/unistdio/ulc-vasprintf-tests: Likewise.
15750         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
15751         * modules/unistdio/ulc-vsprintf-tests: Likewise.
15752         * modules/unistr/u8-check-tests: Likewise.
15753         * modules/unistr/u8-chr-tests: Likewise.
15754         * modules/unistr/u8-cmp-tests: Likewise.
15755         * modules/unistr/u8-cmp2-tests: Likewise.
15756         * modules/unistr/u8-cpy-alloc-tests: Likewise.
15757         * modules/unistr/u8-cpy-tests: Likewise.
15758         * modules/unistr/u8-mblen-tests: Likewise.
15759         * modules/unistr/u8-mbsnlen-tests: Likewise.
15760         * modules/unistr/u8-mbtouc-tests: Likewise.
15761         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
15762         * modules/unistr/u8-mbtoucr-tests: Likewise.
15763         * modules/unistr/u8-move-tests: Likewise.
15764         * modules/unistr/u8-next-tests: Likewise.
15765         * modules/unistr/u8-prev-tests: Likewise.
15766         * modules/unistr/u8-set-tests: Likewise.
15767         * modules/unistr/u8-stpcpy-tests: Likewise.
15768         * modules/unistr/u8-stpncpy-tests: Likewise.
15769         * modules/unistr/u8-strcat-tests: Likewise.
15770         * modules/unistr/u8-strcmp-tests: Likewise.
15771         * modules/unistr/u8-strcoll-tests: Likewise.
15772         * modules/unistr/u8-strcpy-tests: Likewise.
15773         * modules/unistr/u8-strdup-tests: Likewise.
15774         * modules/unistr/u8-strlen-tests: Likewise.
15775         * modules/unistr/u8-strmblen-tests: Likewise.
15776         * modules/unistr/u8-strmbtouc-tests: Likewise.
15777         * modules/unistr/u8-strncat-tests: Likewise.
15778         * modules/unistr/u8-strncmp-tests: Likewise.
15779         * modules/unistr/u8-strncpy-tests: Likewise.
15780         * modules/unistr/u8-strnlen-tests: Likewise.
15781         * modules/unistr/u8-to-u16-tests: Likewise.
15782         * modules/unistr/u8-to-u32-tests: Likewise.
15783         * modules/unistr/u8-uctomb-tests: Likewise.
15784         * modules/unistr/u16-check-tests: Likewise.
15785         * modules/unistr/u16-chr-tests: Likewise.
15786         * modules/unistr/u16-cmp-tests: Likewise.
15787         * modules/unistr/u16-cmp2-tests: Likewise.
15788         * modules/unistr/u16-cpy-alloc-tests: Likewise.
15789         * modules/unistr/u16-cpy-tests: Likewise.
15790         * modules/unistr/u16-mblen-tests: Likewise.
15791         * modules/unistr/u16-mbsnlen-tests: Likewise.
15792         * modules/unistr/u16-mbtouc-tests: Likewise.
15793         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
15794         * modules/unistr/u16-mbtoucr-tests: Likewise.
15795         * modules/unistr/u16-move-tests: Likewise.
15796         * modules/unistr/u16-next-tests: Likewise.
15797         * modules/unistr/u16-prev-tests: Likewise.
15798         * modules/unistr/u16-set-tests: Likewise.
15799         * modules/unistr/u16-stpcpy-tests: Likewise.
15800         * modules/unistr/u16-stpncpy-tests: Likewise.
15801         * modules/unistr/u16-strcat-tests: Likewise.
15802         * modules/unistr/u16-strcmp-tests: Likewise.
15803         * modules/unistr/u16-strcoll-tests: Likewise.
15804         * modules/unistr/u16-strcpy-tests: Likewise.
15805         * modules/unistr/u16-strdup-tests: Likewise.
15806         * modules/unistr/u16-strlen-tests: Likewise.
15807         * modules/unistr/u16-strmblen-tests: Likewise.
15808         * modules/unistr/u16-strmbtouc-tests: Likewise.
15809         * modules/unistr/u16-strncat-tests: Likewise.
15810         * modules/unistr/u16-strncmp-tests: Likewise.
15811         * modules/unistr/u16-strncpy-tests: Likewise.
15812         * modules/unistr/u16-strnlen-tests: Likewise.
15813         * modules/unistr/u16-to-u32-tests: Likewise.
15814         * modules/unistr/u16-to-u8-tests: Likewise.
15815         * modules/unistr/u16-uctomb-tests: Likewise.
15816         * modules/unistr/u32-check-tests: Likewise.
15817         * modules/unistr/u32-chr-tests: Likewise.
15818         * modules/unistr/u32-cmp-tests: Likewise.
15819         * modules/unistr/u32-cmp2-tests: Likewise.
15820         * modules/unistr/u32-cpy-alloc-tests: Likewise.
15821         * modules/unistr/u32-cpy-tests: Likewise.
15822         * modules/unistr/u32-mblen-tests: Likewise.
15823         * modules/unistr/u32-mbsnlen-tests: Likewise.
15824         * modules/unistr/u32-mbtouc-tests: Likewise.
15825         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
15826         * modules/unistr/u32-mbtoucr-tests: Likewise.
15827         * modules/unistr/u32-move-tests: Likewise.
15828         * modules/unistr/u32-next-tests: Likewise.
15829         * modules/unistr/u32-prev-tests: Likewise.
15830         * modules/unistr/u32-set-tests: Likewise.
15831         * modules/unistr/u32-stpcpy-tests: Likewise.
15832         * modules/unistr/u32-stpncpy-tests: Likewise.
15833         * modules/unistr/u32-strcat-tests: Likewise.
15834         * modules/unistr/u32-strcmp-tests: Likewise.
15835         * modules/unistr/u32-strcoll-tests: Likewise.
15836         * modules/unistr/u32-strcpy-tests: Likewise.
15837         * modules/unistr/u32-strdup-tests: Likewise.
15838         * modules/unistr/u32-strlen-tests: Likewise.
15839         * modules/unistr/u32-strmblen-tests: Likewise.
15840         * modules/unistr/u32-strmbtouc-tests: Likewise.
15841         * modules/unistr/u32-strncat-tests: Likewise.
15842         * modules/unistr/u32-strncmp-tests: Likewise.
15843         * modules/unistr/u32-strncpy-tests: Likewise.
15844         * modules/unistr/u32-strnlen-tests: Likewise.
15845         * modules/unistr/u32-to-u16-tests: Likewise.
15846         * modules/unistr/u32-to-u8-tests: Likewise.
15847         * modules/unistr/u32-uctomb-tests: Likewise.
15848         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
15849         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
15850         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
15851         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
15852         * modules/uniwidth/u8-strwidth-tests: Likewise.
15853         * modules/uniwidth/u8-width-tests: Likewise.
15854         * modules/uniwidth/u16-strwidth-tests: Likewise.
15855         * modules/uniwidth/u16-width-tests: Likewise.
15856         * modules/uniwidth/u32-strwidth-tests: Likewise.
15857         * modules/uniwidth/u32-width-tests: Likewise.
15858         * modules/uniwidth/width-tests: Likewise.
15859
15860 2010-05-18  Richard Jones  <rjones@redhat.com>
15861
15862         doc: users.txt: list hivex
15863         * users.txt: Add hivex.
15864
15865 2010-05-18  Richard Jones  <rjones@redhat.com>
15866
15867         doc: users.txt: list febootstrap
15868         * users.txt: Add febootstrap.
15869
15870 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
15871
15872         bootstrap: fix an error when gnulib is not used as a git submodule
15873         * build-aux/bootstrap (gnulib_path): If its length is zero then
15874         assign "gnulib" to it.
15875         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
15876
15877 2010-05-16  Bruno Haible  <bruno@clisp.org>
15878
15879         Avoid autoconf warnings about AM_ICONV.
15880         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
15881         2.64.
15882
15883 2010-05-16  Bruno Haible  <bruno@clisp.org>
15884
15885         absolute-header: Make the macro usable in more situations.
15886         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
15887         from gl_ABSOLUTE_HEADER.
15888         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
15889
15890 2010-05-16  James Youngman  <jay@gnu.org>
15891
15892         doc: update users.txt
15893         * users.txt: Add CSSC.
15894
15895 2010-05-16  Jim Meyering  <meyering@redhat.com>
15896
15897         init.sh: fix an error in the previous change; add more comments
15898         * tests/init.sh: Compare exit code in loop against 9, not 2.
15899         Patch by Bruno Haible.
15900         Make the two tests more similar by adding an empty "then" clause.
15901         Add comments.
15902
15903         init.sh: avoid unnecessary shell re-exec
15904         * tests/init.sh: Improve the re-exec-required check to first test the
15905         current shell.  If it passes the test, do not search for a shell that
15906         does pass, and do not re-exec.  This test is particularly contorted to
15907         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
15908         of $(...) evokes a syntax error and causes immediate shell exit with
15909         status 2.  Bruno Haible reported that the re-exec made it impossible
15910         to single-step through any init.sh-using script.
15911
15912 2010-05-16  Bruno Haible  <bruno@clisp.org>
15913
15914         Fix collision between gnulib's and libintl's printf replacements.
15915         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
15916         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
15917         (printf): When using GNU C, map the __printf__ function to rpl_printf
15918         via __asm__. When not using GNU C, define rpl_printf instead of
15919         __printf__.
15920         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
15921         commit.
15922         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
15923         commit.
15924         * m4/asm-underscore.m4: New file.
15925         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
15926         * modules/stdio (Files): Add m4/asm-underscore.m4.
15927         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
15928         Reported by Ben Pfaff.
15929
15930 2010-05-16  Bruno Haible  <bruno@clisp.org>
15931
15932         verify: Avoid skipping the test on openSUSE 11.0.
15933         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
15934
15935 2010-05-13  Bruno Haible  <bruno@clisp.org>
15936
15937         Avoid useless warnings from G++.
15938         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
15939         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
15940         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15941
15942 2010-05-11  Jim Meyering  <meyering@redhat.com>
15943
15944         maint.mk: tweak preceding change
15945         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
15946         regexps tighter by anchoring at EOL, and make the new group "shy"
15947         for slightly decreased overhead.
15948
15949 2010-05-11  Eric Blake  <eblake@redhat.com>
15950
15951         maint.mk: gnulib doesn't guarantee NSIG
15952         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
15953
15954 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15955
15956         test-pwrite.c: Remove unused variable declaration.
15957         * tests/test-pwrite.c (main): Remove read_buf declaration.
15958
15959         Remove useless test-pwrite.sh file.
15960         * tests/test-pwrite.sh: Delete file.
15961         * modules/pwrite-tests: Remove references.
15962         Reported by Bruno Haible.
15963
15964 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
15965
15966         init.sh: fix a typo
15967         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
15968
15969 2010-05-10  Jim Meyering  <meyering@redhat.com>
15970
15971         maint.mk: avoid using a temporary file in the always-defined-macros check
15972         * top/maint.mk (.re-defmac): Remove rule.
15973         (gl_trap_): Remove definition.
15974         (sc_prohibit_always-defined_macros): Rewrite not to create and
15975         depend on a temporary file.  Instead, depend on GNU grep's ability
15976         to read a list of regular expressions from stdin when given "-f -".
15977
15978 2010-05-09  Bruno Haible  <bruno@clisp.org>
15979
15980         Update to GNU gettext 0.18, part 1.
15981         * m4/gettext.m4: Update to GNU gettext 0.18.
15982         * m4/intl.m4: Likewise.
15983         * m4/po.m4: Likewise.
15984         * modules/gettext (Files): Add m4/fcntl-o.m4.
15985         (configure.ac): Require gettext infrastructure from version 0.18.
15986
15987 2010-05-09  Jim Meyering  <meyering@redhat.com>
15988
15989         init.sh: enable MALLOC_PERTURB_
15990         * tests/init.sh: Enable glibc's malloc-perturbing option.
15991
15992         maint.mk: improve sc_cross_check_PATH_usage_in_tests
15993         With my recent change in init.sh from the two-line form:
15994             -#   : ${srcdir=.}
15995             -#   . "$srcdir/init.sh"; path_prepend_ .
15996             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
15997         I noticed that using the one-line form would cause this test
15998         to fail with a false-positive, or to stop working altogether,
15999         depending on whether help-version changed or all the tests did.
16000         * top/maint.mk (_hv_regex): Remove this definition.
16001         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
16002         (_hv_regex_strong): Use a stronger regex to check for conformance.
16003         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
16004         Give a separate diagnostic for lack of conforming use.
16005
16006         maint.mk: prohibit definition of symbols defined by gnulib
16007         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
16008         definition of symbols defined by gnulib.
16009
16010 2010-05-09  Bruno Haible  <bruno@clisp.org>
16011
16012         acl: Avoid test failure on Cygwin-hosted mingw.
16013         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
16014
16015 2010-05-09  Bruno Haible  <bruno@clisp.org>
16016
16017         error: Use system's fcntl function.
16018         * lib/error.c (fcntl): Undefine.
16019
16020 2010-05-09  Jim Meyering  <meyering@redhat.com>
16021
16022         verify: adjust formatting to be more consistent
16023         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
16024         argument-list '('s, and after one comma.
16025
16026 2010-05-09  Bruno Haible  <bruno@clisp.org>
16027
16028         error: More reliable output on mingw.
16029         * lib/error.c: Include <windows.h>.
16030         (is_open): New function.
16031         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
16032         defined.
16033
16034 2010-05-09  Bruno Haible  <bruno@clisp.org>
16035
16036         vasnprintf: Fix syntax errors in libintl build on mingw.
16037         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
16038         pad_ourselves and prec_ourselves after use.
16039
16040 2010-05-08  Bruno Haible  <bruno@clisp.org>
16041
16042         * lib/config.charset: Update comments for Cygwin 1.7.
16043         * lib/localcharset.c: Likewise.
16044
16045 2010-05-07  Jim Meyering  <meyering@redhat.com>
16046
16047         init.sh: improve comments
16048         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
16049         . "${srcdir=.}/init.sh"; path_prepend_ .
16050         Add a note about path_prepend_ and the alternative of using
16051         TESTS_ENVIRONMENT.
16052
16053 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16054
16055         exclude: Unescape hashed patterns in wildcard mode.
16056         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
16057         to the hash list.
16058         * tests/test-exclude8.sh: New test case.
16059         * modules/exclude-tests: Add new test.
16060
16061 2010-05-05  Eric Blake  <eblake@redhat.com>
16062
16063         verify: automate tests
16064         * modules/verify-tests: New module.
16065         * tests/test-verify.sh: New file.
16066         * tests/test-verify.c: Guard each negative test with a unique id.
16067         Also avoid warning about unused left hand of comma expressions.
16068
16069 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16070
16071         Further improvements to verify.h, suggested by Eric Blake.
16072         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
16073         the GL_* versions, to avoid collision with OpenGL.
16074         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
16075         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
16076         than testing merely whether it's defined.
16077
16078         Modify verify.h to pacify gcc -Wredundant_decls.
16079         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
16080         These use the prefix "GL_" since they're likely to be useful elsewhere.
16081         We may need to break them out into a different .h file.
16082         (__COUNTER__): Define to 0 if the compiler doesn't support it.
16083         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
16084         of verify_function__.
16085
16086 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16087
16088         Tests for module pwrite.
16089         * modules/pwrite-tests: New file.
16090         * tests/test-pwrite.sh: New file.
16091         * tests/test-pwrite.c: New file.
16092
16093         New module pwrite.
16094         * lib/unistd.in.h (pwrite): New declaration.
16095         * lib/pwrite.c: New file, from glibc with modifications.
16096         * m4/pwrite.m4: New file.
16097         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
16098         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
16099         REPLACE_PWRITE.
16100         * modules/pwrite: New file.
16101         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
16102         REPLACE_PWRITE.
16103         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
16104         * doc/posix-functions/pwrite.texi: Mention the new module.
16105
16106 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
16107
16108         pread: Update documentation.
16109         * doc/posix-functions/pread.texi: Mention the 'pread' module.
16110
16111 2010-05-04  Eric Blake  <eblake@redhat.com>
16112
16113         docs: update cygwin progress
16114         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
16115         this bug.
16116         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
16117         Added in cygwin 1.7.2.
16118         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
16119         Likewise.
16120         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
16121         Likewise.
16122         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16123         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16124         * doc/glibc-functions/accept4.texi (accept4): Likewise.
16125         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
16126         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
16127         Mention nproc module.
16128         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
16129         bug in cygwin 1.7.5 addition.
16130         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
16131         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
16132         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
16133         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
16134         1.7.5.
16135         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
16136         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
16137         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
16138         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
16139         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
16140         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
16141         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
16142         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
16143         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
16144         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
16145         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
16146         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
16147         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
16148         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
16149         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
16150         Likewise.
16151         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
16152         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
16153         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
16154         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
16155         Likewise.
16156         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
16157         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
16158         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
16159         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
16160         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
16161         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
16162         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
16163         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
16164         Likewise.
16165         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
16166         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
16167         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
16168         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
16169         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
16170         Likewise.
16171         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
16172         Likewise.
16173         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
16174         Likewise.
16175         * doc/glibc-functions/xdrrec_endofrecord.texi
16176         (xdrrec_endofrecord): Likewise.
16177         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
16178         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
16179         Likewise.
16180         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
16181         Likewise.
16182
16183 2010-05-04  Jim Meyering  <meyering@redhat.com>
16184
16185         gendocs.sh: make its "-s FILE" option more useful
16186         * build-aux/gendocs.sh: When honoring the -s FILE option, update
16187         $PACKAGE to reflect the probably-different basename of "FILE".
16188
16189 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
16190
16191         bootstrap: don't ignore download_po_files failure
16192         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
16193         failure.
16194
16195 2010-05-03  Jim Meyering  <meyering@redhat.com>
16196
16197         maint.mk: allow to pass options to gendocs.sh
16198         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
16199         (gendocs_options_): New overridable variable.
16200
16201         gnu-web-doc-update: don't ignore configure or build failure
16202         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
16203
16204         announce-gen: backslash-escape '@'s in --help output
16205         * build-aux/announce-gen: Fix syntax errors.
16206
16207         maint.mk, announce-gen: allow project-specific announcement mail headers
16208         * top/maint.mk (translation_project_): Define default.
16209         (announcement_Cc_, announcement_mail_headers_): Likewise.
16210         (announcement): Invoke announce-gen with new --mail-headers option.
16211         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
16212
16213         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
16214         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
16215         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
16216         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
16217         line in the "err2" output file when running "make check" in verbose
16218         mode (i.e., with set -x enabled).
16219
16220 2010-05-03  Bruno Haible  <bruno@clisp.org>
16221
16222         wctob: Fix for weird platforms.
16223         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
16224         argument value.
16225
16226 2010-05-03  Jim Meyering  <meyering@redhat.com>
16227
16228         maint.mk: prohibit unwarranted use of <strings.h>
16229         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
16230         strings.h in a file that does not also use strcasecmp, strncasecmp,
16231         ffs or ffsll.
16232
16233         maint.mk: remove obsolete comments
16234         * top/maint.mk: Remove stale, commented-out rules.
16235
16236 2010-05-02  Bruno Haible  <bruno@clisp.org>
16237
16238         wcwidth: Declare also when it's aliased.
16239         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
16240         macro.
16241
16242 2010-05-02  Bruno Haible  <bruno@clisp.org>
16243
16244         Fix regression from 2010-04-25.
16245         * gnulib-tool (func_modules_transitive_closure): Check the status of
16246         all modules, not only of the tests that are of the form foo-tests where
16247         foo is a module.
16248
16249 2010-05-02  Bruno Haible  <bruno@clisp.org>
16250
16251         wctob: Work around nasty Cygwin 1.7.2 bug.
16252         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
16253         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
16254
16255 2010-05-01  Bruno Haible  <bruno@clisp.org>
16256
16257         fpurge: Sharper test.
16258         * tests/test-fpurge.c (main): Add one more ftell check.
16259         * modules/fpurge-tests (Depends-on): Add ftell.
16260         Suggested by Eric Blake.
16261
16262 2010-05-01  Bruno Haible  <bruno@clisp.org>
16263
16264         ftello: Another test.
16265         * tests/test-ftello3.c: New file.
16266         * modules/ftello-tests (Files): Add it.
16267         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16268         MOSTLYCLEANFILES.
16269
16270         ftell: Another test.
16271         * tests/test-ftell3.c: New file.
16272         * modules/ftell-tests (Files): Add it.
16273         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
16274         MOSTLYCLEANFILES.
16275
16276 2010-05-01  Bruno Haible  <bruno@clisp.org>
16277
16278         ftell, ftello: Work around Solaris bug.
16279         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
16280         * lib/ftello.c: Include stdio-impl.h.
16281         (ftello): On Solaris, when _IOWRT is set, compute the result without
16282         looking at _IOREAD.
16283         * modules/ftello (Files): Add lib/stdio-impl.h.
16284         * doc/posix-functions/ftell.texi: Mention Solaris bug.
16285         * doc/posix-functions/ftello.texi: Likewise.
16286         Reported by Eric Blake.
16287
16288 2010-05-01  Bruno Haible  <bruno@clisp.org>
16289
16290         freading: Adapt to special meaning of _IOREAD flag on Solaris.
16291         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
16292         the _IOWRT flag is also set.
16293
16294 2010-05-01  Bruno Haible  <bruno@clisp.org>
16295
16296         Fix doc about a HP-UX stdio bug.
16297         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
16298         * doc/posix-functions/ftello.texi: Likewise.
16299
16300 2010-05-01  Bruno Haible  <bruno@clisp.org>
16301
16302         lseek test: Fix failure on Solaris.
16303         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
16304         output.
16305
16306 2010-04-30  Jim Meyering  <meyering@redhat.com>
16307
16308         bootstrap: don't ignore failure to generate po*/Makevars
16309         * build-aux/bootstrap (with_gettext): Don't ignore failure
16310         to create po/Makevars or runtime-po/Makevars.
16311
16312 2010-04-29  Eric Blake  <eblake@redhat.com>
16313
16314         headers: relax license to LGPLv2+
16315         * modules/fcntl-h (License): Relax license.
16316         * modules/getopt-posix (License): Likewise.
16317         * modules/locale (License): Likewise.
16318         * modules/math (License): Likewise.
16319         * modules/pty (License): Likewise.
16320         * modules/sched (License): Likewise.
16321         * modules/search (License): Likewise.
16322         * modules/spawn (License): Likewise.
16323         * modules/stdarg (License): Likewise.
16324         * modules/sysexits (License): Likewise.
16325
16326 2010-04-29  Jim Meyering  <meyering@redhat.com>
16327
16328         inttypes: relax license to LGPLv2+
16329         * modules/inttypes (License): Relax license.
16330
16331 2010-04-29  Simon Josefsson  <simon@josefsson.org>
16332
16333         * top/maint.mk (indent): Run twice to produce idempotent results.
16334
16335 2010-04-28  Bruno Haible  <bruno@clisp.org>
16336
16337         getdate: Generate getdate.c in the source directory.
16338         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
16339         MOSTLYCLEANFILES.
16340         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
16341
16342 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
16343
16344         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
16345         is not declared as a const *; avoid warnings in that case.
16346
16347 2010-04-28  Eric Blake  <eblake@redhat.com>
16348
16349         canonicalize-lgpl: avoid compiler warning
16350         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
16351         declaration' / 'extraneous semicolon' warning with some compilers.
16352         Reported by Andreas Gruenbacher.
16353
16354 2010-04-28  Jim Meyering  <meyering@redhat.com>
16355
16356         init.sh: ensure a more reliable exit status when exiting via trap
16357         * tests/init.sh (setup_): Don't rely on $? in signal handler.
16358         Inspired by patches from Dmitry V. Levin.
16359         Also trap on signal 3 (SIGQUIT).
16360
16361 2010-04-27  Bruno Haible  <bruno@clisp.org>
16362
16363         Update doc about utimes().
16364         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
16365         'utimens' module.
16366         Reported by Andreas Gruenbacher <agruen@suse.de>.
16367
16368 2010-04-27  Eric Blake  <eblake@redhat.com>
16369
16370         full-read, full-write: relax license
16371         * modules/full-read (License): Drop to LGPLv2+.
16372         * modules/full-write (License): Likewise.
16373         * modules/safe-read (License): Likewise.
16374         * modules/safe-write (License): Likewise.
16375
16376         pthread: mention library for linking
16377         * modules/pthread (Link): Mention $(LIB_PTHREAD).
16378
16379 2010-04-27  Jim Meyering  <meyering@redhat.com>
16380
16381         maint.mk: fix a bug introduced in last change
16382         * top/maint.mk (gl_assured_headers_): Now that all names are on
16383         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
16384         is not anchored to end of word, it should be adequate.
16385
16386         maint.mk: avoid side-effect in latest syntax-check
16387         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
16388         to run commands via $(shell...), and hence to incur cost only when
16389         the new rule is actually run.
16390
16391         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
16392         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
16393         and use that to create a regexp used to detect all #if HAVE_..._H uses.
16394         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
16395         (gl_assured_headers_, az_, AZ_): Define.
16396         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
16397
16398 2010-04-26  Jim Meyering  <jim@meyering.net>
16399             Bruno Haible  <bruno@clisp.org>
16400
16401         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
16402         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
16403         Prompted by an exchange with Gilles Espinasse.
16404
16405 2010-04-26  Jim Meyering  <meyering@redhat.com>
16406
16407         git-version-gen: aesthetic tweak
16408         * build-aux/git-version-gen: Use "$nl" rather than a literal,
16409         so that the command remains on a single line.
16410
16411 2010-04-26  Eric Blake  <eblake@redhat.com>
16412
16413         git-version-gen: allow use on EBCDIC hosts
16414         * build-aux/git-version-gen (dirty): Use literal rather than tying
16415         ourselves to ascii.
16416         Reported by Steve Goetze.
16417
16418 2010-04-25  Bruno Haible  <bruno@clisp.org>
16419
16420         netdb: Add support for GNULIB_POSIXCHECK.
16421         * lib/netdb.in.h: Include warn-on-use.h.
16422         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
16423         functions are used when GNULIB_POSIXCHECK is defined and the
16424         getaddrinfo module is not in use.
16425         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
16426         freeaddrinfo, gai_strerror, getnameinfo are declared.
16427         * modules/netdb (Depends-on): Add warn-on-use.
16428         (Makefile.am): Include warn-on-use.h in netdb.h.
16429
16430 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
16431
16432         build: avoid "make check" failure without .git/ directory
16433         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
16434         there is no .git/ directory.
16435
16436 2010-04-25  Bruno Haible  <bruno@clisp.org>
16437
16438         ptsname: Fix misuse of ttyname_r.
16439         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
16440         of errno.
16441
16442 2010-04-25  Bruno Haible  <bruno@clisp.org>
16443
16444         ttyname_r: Make it work on Solaris 10.
16445         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
16446         if the system function has the POSIX declaration. Test whether the
16447         function fails if the buffer is less than 128 bytes large.
16448         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
16449         system's ttyname_r function. Provide a reasonably large buffer.
16450         * modules/ttyname_r (Depends-on): Add extensions.
16451         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
16452
16453 2010-04-25  Bruno Haible  <bruno@clisp.org>
16454
16455         Use the 'extensions' module for some more functions on Solaris.
16456         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
16457         module.
16458         * doc/posix-functions/ctime_r.texi: Likewise.
16459         * doc/posix-functions/getgrgid_r.texi: Likewise.
16460         * doc/posix-functions/getgrnam_r.texi: Likewise.
16461         * doc/posix-functions/getpwnam_r.texi: Likewise.
16462         * doc/posix-functions/getpwuid_r.texi: Likewise.
16463         * doc/posix-functions/readdir_r.texi: Likewise.
16464         * doc/posix-functions/sigwait.texi: Likewise.
16465         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
16466         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
16467
16468 2010-04-25  Bruno Haible  <bruno@clisp.org>
16469
16470         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
16471         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
16472         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
16473         * lib/ttyname_r.c: Include <limits.h>.
16474         (ttyname_r): Define using the system's ttyname_r function, if it exists
16475         and not on Solaris.
16476         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
16477         set.
16478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
16479         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
16480         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
16481         Reported by Simon Josefsson.
16482
16483 2010-04-25  Bruno Haible  <bruno@clisp.org>
16484
16485         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
16486         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
16487         * doc/posix-functions/ctime_r.texi: Likewise.
16488         * doc/posix-functions/getgrgid_r.texi: Likewise.
16489         * doc/posix-functions/getgrnam_r.texi: Likewise.
16490         * doc/posix-functions/getlogin_r.texi: Likewise.
16491         * doc/posix-functions/getpwnam_r.texi: Likewise.
16492         * doc/posix-functions/getpwuid_r.texi: Likewise.
16493         * doc/posix-functions/readdir_r.texi: Likewise.
16494         * doc/posix-functions/sigwait.texi: Likewise.
16495         * doc/posix-functions/ttyname_r.texi: Likewise.
16496         Reported by Simon Josefsson.
16497
16498 2010-04-25  Bruno Haible  <bruno@clisp.org>
16499
16500         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
16501         * gnulib-tool (func_usage): Document that --with-*-tests options apply
16502         also to --create-testdir.
16503         (func_acceptable): Don't consider the status of *-tests modules here.
16504         (func_modules_transitive_closure): Consider it here, before including a
16505         test module.
16506         (func_import, func_create_testdir): Set inc_all_direct_tests,
16507         inc_all_indirect_tests.
16508         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
16509         --create-testdir and --create-megatestdir.
16510
16511 2010-04-25  Bruno Haible  <bruno@clisp.org>
16512
16513         gnulib-tool: Add --without-*-tests options.
16514         * gnulib-tool (func_usage): Document the --without-*-tests options.
16515         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
16516         excl_unportable_tests): New variables.
16517         Fail if they are specified with --import or --update.
16518         (func_acceptable): Respect the excl_*_tests variables.
16519         (func_import): Set the excl_*_tests variables to empty.
16520
16521 2010-04-25  Simon Josefsson  <simon@josefsson.org>
16522             Bruno Haible  <bruno@clisp.org>
16523
16524         Work around a MacOS X 10.4 bug with openpty.
16525         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
16526         * tests/test-openpty.c (main): Close the master side explicitly.
16527
16528 2010-04-25  Bruno Haible  <bruno@clisp.org>
16529
16530         strnlen: Fix a C++ test error on MacOS X and Solaris.
16531         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
16532         the function is not declared.
16533         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
16534         Simon Josefsson.
16535
16536 2010-04-24  Bruno Haible  <bruno@clisp.org>
16537
16538         Avoid a gcc warning.
16539         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
16540         of correct type for %08lx directive.
16541         Reported by Eric Blake.
16542
16543 2010-04-24  Bruno Haible  <bruno@clisp.org>
16544
16545         vasnprintf: Correct errno value in case of out-of-memory.
16546         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
16547         or sprintf. Use the errno value from SNPRINTF or sprintf.
16548         Reported by Ian Beckwith <ianb@erislabs.net>.
16549
16550 2010-04-24  Bruno Haible  <bruno@clisp.org>
16551
16552         ansi-c++-opt: Find correct compiler when cross-compiling.
16553         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
16554         AC_CHECK_PROGS.
16555         Reported by Simon Josefsson.
16556
16557 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
16558
16559         vc-list-files: Add support for subversion
16560         * build-aux/vc-list-files: Use "svn list" to generate the list of
16561         files controlled by subversion.
16562
16563 2010-04-23  Jim Meyering  <meyering@redhat.com>
16564
16565         vc-list-files tests: convert to use init.sh
16566         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
16567         path_prepend_.
16568         Use Exit, not exit.
16569         Use skip_ rather than open coding it.
16570         Remove trap set-up and compare definitions.
16571         * tests/test-vc-list-files-git.sh: Likewise.
16572         * modules/vc-list-files-tests (Files): Add tests/init.sh.
16573
16574 2010-04-22  Simon Josefsson  <simon@josefsson.org>
16575
16576         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
16577         backup files.
16578
16579 2010-04-21  Simon Josefsson  <simon@josefsson.org>
16580
16581         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
16582
16583 2010-04-20  Eric Blake  <eblake@redhat.com>
16584
16585         tests: be robust to ignored SIGPIPE
16586         * tests/test-select-in.sh: Consume all output.
16587         * tests/test-lseek.sh: Check correct exit status, while avoiding
16588         EPIPE.
16589
16590 2010-04-20  Simon Josefsson  <simon@josefsson.org>
16591             Bruno Haible  <bruno@clisp.org>
16592
16593         visibility: Don't use -fvisibility if it leads to a warning.
16594         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
16595         yes, don't pretend that visibility works if it leads to a warning.
16596         Reported by Mike Gran <spk121@yahoo.com>.
16597
16598 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
16599
16600         * build-aux/bootstrap: Use "git -h" for testing for supported options
16601         instead of "git --help".  The short-form option only shows a summary,
16602         and doesn't layout the full man page.  Grep for the full option name
16603         in the summary, too.
16604
16605 2010-04-19  Bruno Haible  <bruno@clisp.org>
16606
16607         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
16608         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
16609         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
16610         mention of RELOCATABLE_STRIP.
16611         Reported by Sylvain Beucler <beuc@beuc.net>.
16612
16613 2010-04-19  Bruno Haible  <bruno@clisp.org>
16614
16615         * lib/diffseq.h: Fix typo in comment.
16616         Reported by Eric Blake.
16617
16618 2010-04-19  Bruno Haible  <bruno@clisp.org>
16619
16620         ioctl: Move autoconf macro to a .m4 file.
16621         * m4/ioctl.m4: New file, extracted from modules/ioctl.
16622         * modules/ioctl (Files): Add it.
16623         (configure.ac): Simply invoke gl_FUNC_IOCTL.
16624         Reported by Ian Beckwith <ianb@erislabs.net>.
16625
16626 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
16627             Bruno Haible  <bruno@clisp.org>
16628
16629         diffseq: Accommodate use-case with abstract arrays.
16630         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
16631         is not defined.
16632         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
16633         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
16634
16635 2010-04-18  Bruno Haible  <bruno@clisp.org>
16636
16637         * doc/posix-headers/stdbool.texi: More precise wording.
16638
16639 2010-04-17  Jim Meyering  <meyering@redhat.com>
16640
16641         maint.mk: use gnu-style indentation in an embedded perl script
16642         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
16643         Rename variable: s/two/last_two_bytes/
16644
16645 2010-04-16  Eric Blake  <eblake@redhat.com>
16646
16647         test-stdbool: skip test that fails with Solaris CC
16648         * tests/test-stdbool.c (f): Skip test that causes compilation
16649         error under buggy C++ compiler.
16650         * lib/stdbool.in.h: Document the limitation.
16651         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
16652
16653         setenv: allow compilation with C++
16654         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
16655         register keyword.
16656
16657         stdint: allow test to pass with C++
16658         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
16659
16660         getopt: allow compilation with C++
16661         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
16662         struct.
16663         * lib/getopt.c (_getopt_internal_r): Use correct type.
16664         Reported by Dagobert Michelson, via Joel E. Denny.
16665
16666 2010-04-16  Bruno Haible  <bruno@clisp.org>
16667
16668         Override netdb.h always.
16669         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
16670         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
16671         Reported by Ludovic Courtès <ludo@gnu.org>.
16672
16673 2010-04-15  Bruno Haible  <bruno@clisp.org>
16674
16675         openpty: Fix mistake from 2010-03-21.
16676         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
16677         Reported by Simon Josefsson.
16678
16679 2010-04-15  Eric Blake  <eblake@redhat.com>
16680
16681         test-forkpty: fix expected signature
16682         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
16683         Reported by Simon Josefsson.
16684
16685 2010-04-15  Jim Meyering  <meyering@redhat.com>
16686
16687         maint.mk: texinfo_suffix_re_: correct the default regexp
16688         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
16689
16690         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
16691         make it configurable via texinfo_suffix_re_.
16692
16693 2010-04-14  Eric Blake  <eblake@redhat.com>
16694
16695         strtok_r: relax license to LGPLv2+
16696         * modules/strtok_r (License): Relax license.
16697         Reported by Matthias Bolte.
16698
16699 2010-04-14  Simon Josefsson  <simon@josefsson.org>
16700
16701         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
16702         version 1.4.4 by default instead of requiring the libgcrypt
16703         version used during build.  This makes it possible to use the
16704         application with older but still binary compatible libgcrypt
16705         versions.
16706
16707 2010-04-13  Eric Blake  <eblake@redhat.com>
16708
16709         getopt-gnu: match recent glibc fixes and posix ruling
16710         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
16711         '+' handling, when requesting extensions.
16712         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
16713         'W;' handling.
16714         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
16715         * doc/posix-functions/getopt.texi (getopt): Document this.
16716         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16717         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16718         Likewise.
16719
16720         getopt: merge bug fixes from glibc
16721         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
16722         diagnostics.  Honor '+:' correctly.  Reject ';'.
16723
16724         getopt-posix: detect MacOS bug
16725         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
16726         optind when missing a required argument.
16727         * doc/posix-functions/getopt.texi (getopt): Document the bug.
16728         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16729         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16730         Likewise.
16731
16732         getopt-posix: avoid spurious failure on Solaris
16733         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
16734         an indicator that setting optind=1 is sufficient for reset.
16735
16736         getopt-posix: avoid spurious failure on FreeBSD
16737         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
16738         in POSIX mode, since the m4 test uses it.
16739
16740         gnulib-tool: silence warning on BSD sh
16741         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
16742
16743 2010-04-13  Jim Meyering  <meyering@redhat.com>
16744
16745         doc: users.txt: GNU patch now uses gnulib
16746         * users.txt: Add patch.
16747
16748 2010-04-12  Jim Meyering  <meyering@redhat.com>
16749
16750         maint.mk: generate more concise timing data for syntax-check rules
16751         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
16752         " done" from each line that reports a syntax-check test duration.
16753
16754 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
16755
16756         git-version-gen: use "git update-index..." rather than "git status"
16757         * build-aux/git-version-gen: Use git update-index --refresh, not
16758         "git status".  With some versions of git, "git status" would fail
16759         to update the index and result in an unwarranted "-dirty" suffix.
16760
16761 2010-04-11  Jim Meyering  <meyering@redhat.com>
16762
16763         openat: correct formatting (no semantic change)
16764         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
16765         Suggested by Bruno Haible.
16766
16767 2010-04-11  Bruno Haible  <bruno@clisp.org>
16768
16769         Stricter declaration checking in testdirs.
16770         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16771         If for_tests is true, augment AM_CPPFLAGS to define
16772         GNULIB_STRICT_CHECKING.
16773         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
16774         GNULIB_STRICT_CHECKING is defined, verify that the function is
16775         declared.
16776
16777 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
16778             Bruno Haible  <bruno@clisp.org>
16779
16780         libunistring: Improve configure output.
16781         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16782         Don't say "consider installing GNU libunistring" when checking again
16783         with libiconv.
16784
16785 2010-04-11  Bruno Haible  <bruno@clisp.org>
16786
16787         libunistring: Correct value of $LTLIBUNISTRING.
16788         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
16789         correct the value of $LTLIBUNISTRING.
16790
16791 2010-04-11  Bruno Haible  <bruno@clisp.org>
16792
16793         havelib: Add static libraries to LIBS in the right order.
16794         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
16795         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
16796
16797 2010-04-11  Bruno Haible  <bruno@clisp.org>
16798
16799         libunistring: Detect libunistring also when it depends on libiconv.
16800         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
16801         the second AC_LIB_HAVE_LINKFLAGS invocation.
16802
16803 2010-04-11  James Youngman  <jay@gnu.org>
16804
16805         close-stream: declare local scalars to be "const"
16806         * lib/close-stream.c (close_stream): Make boolean variables const
16807         to document the fact that we set but do not change them.
16808
16809 2010-04-11  Bruno Haible  <bruno@clisp.org>
16810
16811         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
16812
16813 2010-04-11  Jim Meyering  <meyering@redhat.com>
16814
16815         maint.mk: don't include dist-check.mk
16816         * top/maint.mk: Remove bogus include directive.
16817
16818         maint.mk: improve empty-line-at-EOF check
16819         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
16820         solution, rather than tail+Perl-based one.  The latter would read
16821         a few kilobytes from the end of each file, and did not handle empty
16822         files properly.
16823
16824         maint.mk: print the elapsed time for each syntax-check rule
16825         * top/maint.mk (sc_m_rules_): Save start time in a file.
16826         (sc_z_rules_): New rules: remove temp file and print elapsed time.
16827         (local-check): Interpose the .z rules
16828
16829 2010-04-11  Jim Meyering  <meyering@redhat.com>
16830
16831         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
16832         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
16833         empty file with one that ends in an empty line.
16834
16835 2010-04-10  Bruno Haible  <bruno@clisp.org>
16836
16837         mkdir: Make it work on mingw64.
16838         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
16839         * lib/mkdir.c: Update comment.
16840         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
16841
16842 2010-04-10  Bruno Haible  <bruno@clisp.org>
16843
16844         Don't override improved macro from newer autoconf.
16845         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
16846         autoconf >= 2.62.
16847         Reported by Joel E. Denny <jdenny@clemson.edu>.
16848
16849 2010-04-10  Jim Meyering  <meyering@redhat.com>
16850
16851         maint.mk: new syntax-check rule: prohibit empty lines at end of file
16852         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
16853
16854         maint.mk: correct a diagnostic
16855         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
16856         in diagnostic; now use $prohibit.
16857
16858 2010-04-10  Bruno Haible  <address@hidden>
16859
16860         fchownat: Fix a C++ test error on Solaris 8.
16861         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
16862         the function does not exist.
16863
16864 2010-04-10  Bruno Haible  <bruno@clisp.org>
16865
16866         vasnprintf: Add more tests.
16867         * tests/test-vasnprintf-posix.c: Include <errno.h>.
16868         (test_function): Test converting an invalid wide string.
16869
16870         vasnprintf: Correct handling of unconvertible wide string arguments.
16871         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
16872         VASNPRINTF.
16873         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
16874         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
16875         smaller than the expected maximum need for the directive. Set errno to
16876         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
16877         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
16878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
16879         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
16880         * modules/vasnprintf (Files): Add m4/printf.m4.
16881         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16882
16883 2010-04-10  Bruno Haible  <bruno@clisp.org>
16884
16885         vasnprintf: Fix crash in %ls directive.
16886         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
16887         string is passed as argument to %ls, with no precision and no width.
16888         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16889
16890 2010-04-10  Bruno Haible  <bruno@clisp.org>
16891
16892         vasnprintf: Fix multiple test failures on mingw.
16893         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
16894         _snprintf, or snwprintf, not _snwprintf.
16895
16896 2010-04-10  Bruno Haible  <bruno@clisp.org>
16897
16898         write: Fix a C++ test error on mingw.
16899         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
16900
16901 2010-04-10  Bruno Haible  <bruno@clisp.org>
16902
16903         vasnprintf test: Reduce code duplication.
16904         * tests/test-vasnprintf.c (test_function): New function, extracted from
16905         test_vasnprintf.
16906         (test_vasnprintf, test_asnprintf): Invoke it.
16907
16908 2010-04-10  Bruno Haible  <bruno@clisp.org>
16909
16910         strnlen: Fix warning in C++ mode on MacOS X.
16911         * lib/string.in.h (strnlen): Use the modern idiom.
16912         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
16913         defining strnlen as a macro already in <config.h>.
16914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16915         REPLACE_STRNLEN.
16916         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
16917         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16918
16919 2010-04-08  James Youngman  <jay@gnu.org>
16920
16921         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
16922         the example.
16923
16924 2010-04-09  Jim Meyering  <meyering@redhat.com>
16925
16926         maint.mk: print better diagnostic when there is no $(_hv_file)
16927         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
16928         announce that when $(_hv_file) (aka help-version) does not exist.
16929
16930         init.sh: run tr in the "C" locale to avoid multibyte interpretation
16931         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
16932         not try to interpret its random input bytes.  Jarno Rajahalme reported
16933         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
16934         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
16935         (mktempd_): Likewise, just in case.
16936
16937         ftruncate: add two years to projected module removal date: 2012
16938         * m4/ftruncate.m4: Adjust comments.
16939
16940         ftruncate: mark module as obsolete; even MinGW provides it, now
16941         * modules/ftruncate (Status): Obsolete.
16942         (Notice): Say that.
16943         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
16944         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
16945
16946 2010-04-08  Bruno Haible  <bruno@clisp.org>
16947
16948         Fix side effects from tests-related modules.
16949         * modules/dprintf-posix (Comment): New section.
16950         * modules/fprintf-posix (Comment): Likewise.
16951         * modules/obstack-printf-posix (Comment): Likewise.
16952         * modules/printf-posix (Comment): Likewise.
16953         * modules/snprintf-posix (Comment): Likewise.
16954         * modules/sprintf-posix (Comment): Likewise.
16955         * modules/vasnprintf-posix (Comment): Likewise.
16956         * modules/vasprintf-posix (Comment): Likewise.
16957         * modules/vdprintf-posix (Comment): Likewise.
16958         * modules/vfprintf-posix (Comment): Likewise.
16959         * modules/vprintf-posix (Comment): Likewise.
16960         * modules/vsnprintf-posix (Comment): Likewise.
16961         * modules/vsprintf-posix (Comment): Likewise.
16962         * modules/xprintf-posix (Comment): Likewise.
16963         * modules/xvasprintf-posix (Comment): Likewise.
16964         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
16965         * modules/floorf-tests (Depends-on): Likewise.
16966         * modules/round-tests (Depends-on): Likewise.
16967         * modules/roundf-tests (Depends-on): Likewise.
16968         * modules/trunc-tests (Depends-on): Likewise.
16969         * modules/truncf-tests (Depends-on): Likewise.
16970         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
16971         'fprintf-posix' module is not present.
16972         * tests/test-floorf2.c (check): Likewise.
16973         * tests/test-trunc2.c (check): Likewise.
16974         * tests/test-truncf2.c (check): Likewise.
16975         * tests/test-round2.c (equal): Likewise.
16976         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16977
16978 2010-04-07  Karl Berry  <karl@gnu.org>
16979
16980         * config/srclist.txt,
16981         * config/srclistvars.sh,
16982         * config/srclist-update: doc fixes.
16983
16984 2010-04-07  Jim Meyering  <meyering@redhat.com>
16985
16986         maint.mk: add a PATH crosschecking syntax-check rule
16987         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
16988         Useful if you use a test like the one in help-version (coreutils,
16989         diffutils, grep, gzip) that ensures $(VERSION) matches what is
16990         printed by prog --version.
16991
16992 2010-04-06  Bruno Haible  <bruno@clisp.org>
16993
16994         Fix link error on mingw.
16995         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
16996         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
16997
16998 2010-04-06  Bruno Haible  <bruno@clisp.org>
16999
17000         Assume rmdir exists.
17001         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
17002
17003 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
17004
17005         doc: update users.txt
17006         * users.txt: Add gcal.
17007
17008 2010-04-06  Jim Meyering  <meyering@redhat.com>
17009
17010         init.sh: simply unset TMPDIR rather than risking env -i
17011         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
17012         although it probably works fine on all Unix-based systems, some
17013         systems (Cygwin?) cannot tolerate a totally cleared environment.
17014         Suggestion from Eric Blake.
17015
17016 2010-04-06  Jim Meyering  <meyering@redhat.com>
17017
17018         init.sh: portability fix: use env's POSIX-specified -i option not -u
17019         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
17020         than unportable env -u.  Solaris 5.11's env lacks support for -u.
17021
17022 2010-04-05  Bruno Haible  <bruno@clisp.org>
17023
17024         btowc: Work around Cygwin 1.7.2 bug.
17025         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
17026         does not map NUL to 0.
17027         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
17028
17029 2010-04-05  Bruno Haible  <bruno@clisp.org>
17030
17031         Make the multithread modules work on Cygwin 1.7.2.
17032         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
17033         imported symbols can be declared weak, so that it returns "no" on
17034         Cygwin 1.7.2.
17035
17036 2010-04-05  Bruno Haible  <bruno@clisp.org>
17037
17038         Use the module 'strncat'.
17039         * modules/unistr/u8-strncat (Depends-on): Add strncat.
17040
17041         Tests for module 'strncat'.
17042         * modules/strncat-tests: New file.
17043         * tests/test-strncat.c: New file.
17044
17045         New module 'strncat'.
17046         * lib/string.in.h (strncat): New declaration.
17047         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
17048         * m4/strncat.m4: New file, based on m4/memchr.m4.
17049         * modules/strncat: New file.
17050         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
17051         is declared.
17052         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
17053         REPLACE_STRNCAT.
17054         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
17055         REPLACE_STRNCAT.
17056         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
17057         module.
17058         * tests/test-string-c++.cc: Check signature of strncat.
17059
17060 2010-04-05  Jim Meyering  <meyering@redhat.com>
17061
17062         xstrtoumax-tests: convert to use init.sh
17063         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
17064         * tests/test-xstrtoumax.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         xstrtoimax-tests: convert to use init.sh
17069         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
17070         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17071         Use Exit, not exit.
17072         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17073
17074 2010-04-05  Bruno Haible  <bruno@clisp.org>
17075
17076         sys_socket: Avoid #define replacements in C++ mode.
17077         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
17078         warning to the function if possible, rather than #defining the symbol
17079         to a dysfunctional alias.
17080
17081 2010-04-05  Bruno Haible  <bruno@clisp.org>
17082
17083         fseeko: Fix C++ test error on mingw.
17084         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
17085         gl_FUNC_FSEEKO.
17086         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
17087         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
17088         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
17089         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
17090
17091 2010-04-05  Bruno Haible  <bruno@clisp.org>
17092
17093         duplocale: Improve test output.
17094         * tests/test-duplocale.c (main): Print reason for skipped test.
17095
17096 2010-04-05  Bruno Haible  <bruno@clisp.org>
17097
17098         Assume rmdir exists.
17099         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
17100         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
17101
17102 2010-04-05  Bruno Haible  <bruno@clisp.org>
17103
17104         Fix link error on Solaris 8 with cc.
17105         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
17106
17107 2010-04-05  Bruno Haible  <bruno@clisp.org>
17108
17109         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17110         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
17111
17112 2010-04-05  Bruno Haible  <bruno@clisp.org>
17113
17114         vasprintf: Update documentation.
17115         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
17116
17117 2010-04-05  Bruno Haible  <bruno@clisp.org>
17118
17119         ptsname: Improve test.
17120         * tests/test-ptsname.c (main): Also try the various master names of BSD
17121         systems.
17122
17123 2010-04-05  Bruno Haible  <bruno@clisp.org>
17124
17125         memchr: Avoid a possible C++ test error.
17126         * lib/string.in.h (memchr): Provide declaration if function is missing.
17127         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
17128         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
17129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
17130         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
17131
17132 2010-04-05  Bruno Haible  <bruno@clisp.org>
17133
17134         strtok_r: Improve idiom.
17135         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
17136         AC_LIBOBJ is used.
17137
17138 2010-04-05  Bruno Haible  <bruno@clisp.org>
17139
17140         strdup: Improve idiom.
17141         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
17142         AC_LIBOBJ is used.
17143         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
17144         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
17145         when AC_LIBOBJ is used.
17146
17147 2010-04-05  Bruno Haible  <bruno@clisp.org>
17148
17149         mbsinit, mbrtowc, wcrtomb: Improve idioms.
17150         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
17151         don't set REPLACE_MBSINIT to 1.
17152         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
17153         don't set REPLACE_MBRTOWC to 1.
17154         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
17155         exist, don't set REPLACE_MBSRTOWCS to 1.
17156         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
17157         exist, don't set REPLACE_MBSNRTOWCS to 1.
17158         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
17159         don't set REPLACE_WCRTOMB to 1.
17160         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
17161         exist, don't set REPLACE_WCSRTOMBS to 1.
17162         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
17163         exist, don't set REPLACE_WCSNRTOMBS to 1.
17164
17165 2010-04-05  Bruno Haible  <bruno@clisp.org>
17166
17167         ldexpl: Improve idiom.
17168         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
17169         make sure to set HAVE_DECL_LDEXPL to 0.
17170
17171 2010-04-05  Jim Meyering  <meyering@redhat.com>
17172
17173         xstrtol-tests: convert to use init.sh
17174         * modules/xstrtol-tests (Files): Add tests/init.sh.
17175         * tests/test-xstrtol.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         atexit-tests: convert to use init.sh
17180         * modules/atexit-tests (Files): Add tests/init.sh.
17181         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
17182         Use Exit, not exit.
17183         Remove uses of $EXEEXT and "./" to run a program in the current dir.
17184
17185         init.sh: fix typo
17186         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
17187
17188         init.sh: make it easier for a test script to write to the tty, ...
17189         when using automake's parallel-tests mode.
17190         * tests/init.sh (stderr_fileno_): Define overridable variable.
17191         (warn_): New function, to use it.
17192         (fail_, skip_, framework_failure_): Use warn_.
17193
17194 2010-04-04  Bruno Haible  <bruno@clisp.org>
17195
17196         btowc: Avoid warning.
17197         * lib/btowc.c: Include <stdlib.h>.
17198         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
17199
17200 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17201             Bruno Haible  <bruno@clisp.org>
17202
17203         wchar: Port to NetBSD 1.5.
17204         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
17205         * lib/wctype.in.h (WEOF): Likewise.
17206
17207 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
17208             Bruno Haible  <bruno@clisp.org>
17209
17210         Port extended stdio to NetBSD 1.5.
17211         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
17212         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
17213         older.
17214
17215 2010-04-04  Bruno Haible  <bruno@clisp.org>
17216
17217         string: Remove unused substitution.
17218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
17219         HAVE_DECL_STRERROR.
17220         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
17221
17222 2010-04-04  Bruno Haible  <bruno@clisp.org>
17223
17224         strtod: Avoid a possible C++ test error.
17225         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
17226         set REPLACE_STRTOD.
17227
17228 2010-04-04  Bruno Haible  <bruno@clisp.org>
17229
17230         strerror: Update documentation.
17231         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
17232
17233 2010-04-04  Bruno Haible  <bruno@clisp.org>
17234
17235         stdio: Fix some C++ test errors on Solaris 8 with GCC.
17236         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
17237         _GL_CXXALIAS_SYS_CAST.
17238
17239 2010-04-04  Bruno Haible  <bruno@clisp.org>
17240
17241         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
17242         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
17243         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
17244         REPLACE_FREXPL to 1.
17245         * doc/posix-functions/frexpl.texi: Update documentation.
17246
17247 2010-04-04  Bruno Haible  <bruno@clisp.org>
17248
17249         math: Fix some C++ test errors on Solaris 8 and Cygwin.
17250         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
17251
17252 2010-04-04  Bruno Haible  <bruno@clisp.org>
17253
17254         Implement nanosleep for native Windows.
17255         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
17256
17257 2010-04-04  Bruno Haible  <bruno@clisp.org>
17258
17259         math: Fix some C++ test errors on Solaris 8.
17260         * lib/math.in.h (truncf, trunc): Use simpler idiom.
17261
17262 2010-04-04  Bruno Haible  <bruno@clisp.org>
17263
17264         math: Fix some C++ test errors on Cygwin.
17265         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
17266         truncl): Provide declaration if the system does not have it.
17267         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
17268         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
17269         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
17270         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
17271         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
17272         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
17273         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
17274         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
17275         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
17276         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
17277         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
17278         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
17279         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
17280         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
17281         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
17282         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
17283         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
17284         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17285         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17286         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
17287         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
17288         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
17289
17290 2010-04-04  Bruno Haible  <bruno@clisp.org>
17291
17292         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
17293         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17294         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
17295         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
17296         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
17297         * m4/isinf.m4 (gl_ISINF): Likewise.
17298         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17299
17300 2010-04-04  Bruno Haible  <bruno@clisp.org>
17301
17302         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
17303         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17304
17305 2010-04-04  Bruno Haible  <bruno@clisp.org>
17306
17307         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
17308         * modules/tmpfile (configure.ac): Update.
17309
17310         tmpfile: Fix C++ test error on mingw.
17311         * lib/stdio.in.h (tmpfile): New declaration.
17312         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
17313         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
17314         * modules/tmpfile (Depends-on): Add stdio.
17315         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
17316         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
17317         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
17318         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
17319         REPLACE_TMPFILE.
17320         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
17321
17322 2010-04-04  Bruno Haible  <bruno@clisp.org>
17323
17324         ioctl: Fix C++ test error on mingw.
17325         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
17326         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
17327         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
17328
17329 2010-04-03  Bruno Haible  <bruno@clisp.org>
17330
17331         wcwidth: Fix C++ test error on mingw.
17332         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
17333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
17334         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
17335
17336 2010-04-03  Bruno Haible  <bruno@clisp.org>
17337
17338         nanosleep: Fix C++ test error on mingw.
17339         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
17340         * lib/time.in.h (nanosleep): Use modern idiom.
17341         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
17342         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
17343         REPLACE_NANOSLEEP to 1.
17344         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
17345         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
17346
17347 2010-04-03  Bruno Haible  <bruno@clisp.org>
17348
17349         strptime: Fix C++ test error on mingw.
17350         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
17351         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
17352         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
17353         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
17354         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
17355         not REPLACE_STRPTIME.
17356         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
17357         REPLACE_STRPTIME.
17358
17359 2010-04-03  Bruno Haible  <bruno@clisp.org>
17360
17361         timegm: Fix C++ test error on mingw.
17362         * lib/time.in.h (timegm): Use modern idiom.
17363         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
17364         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
17365         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
17366         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
17367
17368 2010-04-03  Bruno Haible  <bruno@clisp.org>
17369
17370         timegm: Assume declaration if function exists.
17371         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
17372         if it exists. Don't clobber ac_cv_func_timegm.
17373
17374 2010-04-03  Bruno Haible  <bruno@clisp.org>
17375
17376         time_r: Fix C++ test error on mingw.
17377         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
17378         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
17379         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
17380         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
17381         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
17382
17383 2010-04-03  Bruno Haible  <bruno@clisp.org>
17384
17385         time_r: Minor updates.
17386         * modules/time_r (Description): Mention the provided functions.
17387         * lib/time_r.c: Don't include <string.h>.
17388         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
17389         * doc/posix-functions/localtime_r.texi: Likewise.
17390
17391 2010-04-03  Bruno Haible  <bruno@clisp.org>
17392
17393         time: Fix regression introduced on 2010-03-08.
17394         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
17395         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
17396
17397 2010-04-03  Jim Meyering  <meyering@redhat.com>
17398
17399         maint.mk: don't silently disable project-specific syntax-check rules
17400         * top/maint.mk (_prohibit_regexp): Define, to help people realize
17401         that they need to convert their project-specific syntax-check rules
17402         to use the new _sc_search_regexp.
17403
17404 2010-04-03  Bruno Haible  <bruno@clisp.org>
17405
17406         fchdir: Fix regression introduced on 2010-03-08.
17407         * lib/unistd.in.h (fchdir): Fix declaration.
17408         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
17409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
17410         REPLACE_FCHDIR.
17411         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
17412         REPLACE_FCHDIR.
17413
17414 2010-04-03  Bruno Haible  <bruno@clisp.org>
17415
17416         getpagesize: Fix C++ test error on mingw.
17417         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
17418         system does not declare the function.
17419         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
17420         declared.
17421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17422         HAVE_DECL_GETPAGESIZE.
17423         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
17424
17425 2010-04-03  Bruno Haible  <bruno@clisp.org>
17426
17427         stdio: Make C++ tests work on mingw.
17428         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
17429         does not declare the function.
17430
17431 2010-04-03  Bruno Haible  <bruno@clisp.org>
17432
17433         ftello: Fix C++ test error on mingw.
17434         * lib/stdio.in.h (ftello): Use modern idiom.
17435         * lib/ftello.c (ftello): Renamed from rpl_ftello.
17436         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
17437         is missing and that it needs to be replaced.
17438         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
17439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
17440         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
17441
17442 2010-04-03  Bruno Haible  <bruno@clisp.org>
17443
17444         fseeko: Fix C++ test error on mingw.
17445         * lib/stdio.in.h (fseeko): Use modern idiom.
17446         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
17447         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
17448         is missing and that it needs to be replaced.
17449         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
17450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
17451         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
17452
17453 2010-04-03  Bruno Haible  <bruno@clisp.org>
17454
17455         mkstemp: Fix C++ test error on mingw.
17456         * lib/stdlib.in.h (mkstemp): Use modern idiom.
17457         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
17458         function is missing and that it needs to be replaced.
17459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
17460         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
17461
17462 2010-04-03  Bruno Haible  <bruno@clisp.org>
17463
17464         stpncpy: Fix C++ test error on mingw.
17465         * lib/string.in.h (stpncpy): Use modern idiom.
17466         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
17467         function is missing and that it needs to be replaced.
17468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17469         REPLACE_STPNCPY.
17470         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
17471
17472 2010-04-03  Bruno Haible  <bruno@clisp.org>
17473
17474         sys_stat: Fix C++ test error on mingw.
17475         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
17476         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
17477
17478 2010-04-03  Bruno Haible  <bruno@clisp.org>
17479
17480         pty: Update doc.
17481         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
17482
17483 2010-04-03  Bruno Haible  <bruno@clisp.org>
17484
17485         unistd: Fix C++ test error on mingw.
17486         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
17487
17488 2010-04-03  Bruno Haible  <bruno@clisp.org>
17489
17490         Update doc regarding mingw.
17491         * doc/glibc-functions/openpty.texi: Update regarding mingw.
17492         * doc/glibc-functions/login_tty.texi: Likewise.
17493         * doc/glibc-functions/forkpty.texi: Likewise.
17494
17495 2010-04-03  Bruno Haible  <bruno@clisp.org>
17496
17497         stdlib: Avoid compilation failure of c-strtold on mingw.
17498         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
17499
17500 2010-04-03  Bruno Haible  <bruno@clisp.org>
17501
17502         locale: Make C++ tests work on Cygwin and mingw.
17503         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
17504         cannot provide the function.
17505         Reported by Simon Josefsson.
17506
17507 2010-04-03  Bruno Haible  <bruno@clisp.org>
17508
17509         localename: Port to MacOS X 10.6.
17510         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
17511         memory layout of the locales in MacOS X 10.6 as well.
17512         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
17513
17514 2010-04-02  Bruno Haible  <bruno@clisp.org>
17515
17516         gnulib-tool: Ensure that long-running tests are executed last.
17517         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
17518         running tests after the one for the other tests.
17519
17520 2010-04-02  Bruno Haible  <bruno@clisp.org>
17521
17522         gnulib-tool: Ensure the tests in the main directory are executed first.
17523         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
17524         start with the current directory.
17525
17526 2010-04-02  Bruno Haible  <bruno@clisp.org>
17527
17528         Tests for module 'havelib', moved here from GNU gettext.
17529         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
17530         modifications.
17531         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
17532         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
17533         with modifications.
17534         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
17535         modifications.
17536         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
17537         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
17538         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
17539         with modifications.
17540         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
17541         with modifications.
17542         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
17543         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
17544         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
17545         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
17546         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
17547         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
17548         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
17549         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
17550         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
17551         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
17552         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
17553         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
17554         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
17555         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
17556         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
17557         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
17558         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
17559         with modifications.
17560         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
17561         with modifications.
17562         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
17563         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
17564         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
17565         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
17566         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
17567         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
17568         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
17569         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
17570         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
17571         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
17572         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
17573         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
17574         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
17575         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
17576         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
17577         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
17578         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
17579         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
17580         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
17581         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
17582         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
17583         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
17584         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
17585         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
17586         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
17587         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
17588         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
17589         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
17590         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
17591         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
17592         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
17593         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
17594         * tests/havelib/rpathx/rpathx.c: New file, from
17595         gettext/autoconf-lib-link.
17596         * tests/havelib/rpathx/Makefile.am: New file, from
17597         gettext/autoconf-lib-link.
17598         * tests/havelib/rpathx/configure.ac: New file, from
17599         gettext/autoconf-lib-link with modifications.
17600         * tests/havelib/rpathy/rpathy.c: New file, from
17601         gettext/autoconf-lib-link.
17602         * tests/havelib/rpathy/Makefile.am: New file, from
17603         gettext/autoconf-lib-link.
17604         * tests/havelib/rpathy/configure.ac: New file, from
17605         gettext/autoconf-lib-link with modifications.
17606         * tests/havelib/rpathz/rpathz.c: New file, from
17607         gettext/autoconf-lib-link.
17608         * tests/havelib/rpathz/Makefile.am: New file, from
17609         gettext/autoconf-lib-link.
17610         * tests/havelib/rpathz/configure.ac: New file, from
17611         gettext/autoconf-lib-link with modifications.
17612         * tests/havelib/rpathlx/usex.c: New file, from
17613         gettext/autoconf-lib-link.
17614         * tests/havelib/rpathlx/Makefile.am: New file, from
17615         gettext/autoconf-lib-link.
17616         * tests/havelib/rpathlx/configure.ac: New file, from
17617         gettext/autoconf-lib-link with modifications.
17618         * tests/havelib/rpathly/usey.c: New file, from
17619         gettext/autoconf-lib-link.
17620         * tests/havelib/rpathly/Makefile.am: New file, from
17621         gettext/autoconf-lib-link.
17622         * tests/havelib/rpathly/configure.ac: New file, from
17623         gettext/autoconf-lib-link with modifications.
17624         * tests/havelib/rpathlz/usez.c: New file, from
17625         gettext/autoconf-lib-link.
17626         * tests/havelib/rpathlz/Makefile.am: New file, from
17627         gettext/autoconf-lib-link.
17628         * tests/havelib/rpathlz/configure.ac: New file, from
17629         gettext/autoconf-lib-link with modifications.
17630         * tests/havelib/rpathlyx/usey.c: New file, from
17631         gettext/autoconf-lib-link.
17632         * tests/havelib/rpathlyx/Makefile.am: New file, from
17633         gettext/autoconf-lib-link.
17634         * tests/havelib/rpathlyx/configure.ac: New file, from
17635         gettext/autoconf-lib-link with modifications.
17636         * tests/havelib/rpathlzyx/usez.c: New file, from
17637         gettext/autoconf-lib-link.
17638         * tests/havelib/rpathlzyx/Makefile.am: New file, from
17639         gettext/autoconf-lib-link.
17640         * tests/havelib/rpathlzyx/configure.ac: New file, from
17641         gettext/autoconf-lib-link with modifications.
17642         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
17643         with modifications.
17644
17645 2010-04-02  Bruno Haible  <bruno@clisp.org>
17646
17647         gnulib-tool: Create distributed built sources also for the tests.
17648         * gnulib-tool (func_create_testdir): Also generate distributed built
17649         sources in the tests directory.
17650
17651 2010-04-02  Bruno Haible  <bruno@clisp.org>
17652
17653         gnulib-tool: Obey user's environment variables.
17654         * gnulib-tool (func_create_testdir): When creating built sources,
17655         respect the environment variables for autoconf, automake, etc. given by
17656         the user.
17657
17658 2010-04-02  Bruno Haible  <bruno@clisp.org>
17659
17660         gnulib-tool: Provide the value of --m4-base to modules.
17661         * gnulib-tool (func_import, func_create_testdir): Emit a definition
17662         of gl_m4_base.
17663
17664 2010-04-02  Eric Blake  <eblake@redhat.com>
17665
17666         maint.mk: fix some fallout
17667         * NEWS: Document the incompatible change, and its effect on cfg.mk.
17668         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
17669
17670 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17671
17672         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
17673         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
17674         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
17675         (sc_cast_of_x_alloc_return_value): Likewise.
17676         (sc_cast_of_alloca_return_value): Likewise.
17677         (sc_space_tab): Likewise.
17678         (sc_prohibit_atoi_atof): Likewise.
17679         (sc_prohibit_magic_number_exit): Likewise.
17680         (sc_error_exit_success): Likewise.
17681         (sc_file_system): Likewise.
17682         (sc_prohibit_have_config_h): Likewise.
17683         (sc_require_config_h): Likewise.
17684         (sc_prohibit_HAVE_MBRTOWC): Likewise.
17685         (sc_obsolete_symbols): Likewise.
17686         (sc_changelog): Likewise.
17687         (sc_program_name): Likewise.
17688         (sc_the_the): Likewise.
17689         (sc_trailing_blank): Likewise.
17690         (sc_two_space_separator_in_usage): Likewise.
17691         (sc_useless_cpp_parens): Likewise.
17692         (sc_GPL_version): Likewise.
17693         (sc_GFDL_version): Likewise.
17694         (sc_texinfo_acronym): Likewise.
17695         (sc_prohibit_cvs_keyword): Likewise.
17696         (sc_prohibit_stat_st_blocks): Likewise.
17697         (sc_prohibit_S_IS_definition): Likewise.
17698         (sc_redundant_const): Likewise.
17699         (sc_makefile_TAB_only_indentation): Likewise.
17700         (sc_m4_quote_check): Likewise.
17701         (sc_makefile_path_separator_check): Likewise.
17702         (sc_copyright_check): Likewise.
17703         (sc_Wundef_boolean): Likewise.
17704         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17705
17706         maint.mk: match 0 or more whitespace-before-function-call '('
17707         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
17708         that have zero or two-and-more spaces between the function name
17709         and the open parenthesis.
17710         (sc_error_message_warn_fatal): Likewise.
17711         (sc_error_message_uppercase): Likewise.
17712         (sc_error_message_period): Likewise.
17713
17714 2010-03-31  Eric Blake  <eblake@redhat.com>
17715
17716         maint.mk: check for [ as well as test
17717         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
17718         Based on a libvirt report by Matthias Bolte.
17719
17720         gnumakefile: don't squelch _version output
17721         * top/GNUmakefile (_version): Create one-shot dependency rather
17722         than using $(shell) when version must be regenerated.
17723         (_autoreconf): Run verbosely, by default.
17724
17725         sys_time: avoid compiler warnings
17726         * lib/sys_time.in.h (includes): Ensure gcc pragma is
17727         unconditional, fixing regression from 2010-03-29.
17728         Reported by Simon Josefsson.
17729
17730 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
17731
17732         maint.mk: s/_header_without_use/_sc_header_without_use/
17733         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
17734         (sc_prohibit_assert_without_use): Use the new name.
17735         (sc_prohibit_close_stream_without_use): Likewise.
17736         (sc_prohibit_getopt_without_use): Likewise.
17737         (sc_prohibit_quotearg_without_use): Likewise.
17738         (sc_prohibit_quote_without_use): Likewise.
17739         (sc_prohibit_long_options_without_use): Likewise.
17740         (sc_prohibit_inttostr_without_use): Likewise.
17741         (sc_prohibit_ignore_value_without_use): Likewise.
17742         (sc_prohibit_error_without_use): Likewise.
17743         (sc_prohibit_xalloc_without_use): Likewise.
17744         (sc_prohibit_hash_without_use): Likewise.
17745         (sc_prohibit_hash_pjw_without_use): Likewise.
17746         (sc_prohibit_safe_read_without_use): Likewise.
17747         (sc_prohibit_argmatch_without_use): Likewise.
17748         (sc_prohibit_canonicalize_without_use): Likewise.
17749         (sc_prohibit_root_dev_ino_without_use): Likewise.
17750         (sc_prohibit_openat_without_use): Likewise.
17751         (sc_prohibit_c_ctype_without_use): Likewise.
17752         (sc_prohibit_signal_without_use): Likewise.
17753         (sc_prohibit_intprops_without_use): Likewise.
17754
17755 2010-03-30  Eric Blake  <eblake@redhat.com>
17756
17757         maint: improve module indicators
17758         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
17759         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
17760         columns, and avoid extra macro expansion.
17761
17762         fdopendir: work around FreeBSD bug
17763         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17764         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
17765         * modules/dirent (Makefile.am): Substitute it.
17766         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
17767         declaration.
17768         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
17769         fix.
17770         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17771
17772 2010-03-29  Bruno Haible  <bruno@clisp.org>
17773
17774         Emit #pragma system_header after the inclusion guard, not before.
17775         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
17776         guard that spans the entire file, not before. This enables an
17777         optimization in GCC's preprocessor.
17778         * lib/ctype.in.h: Likewise.
17779         * lib/dirent.in.h: Likewise.
17780         * lib/errno.in.h: Likewise.
17781         * lib/float.in.h: Likewise.
17782         * lib/getopt.in.h: Likewise.
17783         * lib/iconv.in.h: Likewise.
17784         * lib/langinfo.in.h: Likewise.
17785         * lib/locale.in.h: Likewise.
17786         * lib/math.in.h: Likewise.
17787         * lib/netdb.in.h: Likewise.
17788         * lib/netinet_in.in.h: Likewise.
17789         * lib/pty.in.h: Likewise.
17790         * lib/sched.in.h: Likewise.
17791         * lib/se-selinux.in.h: Likewise.
17792         * lib/search.in.h: Likewise.
17793         * lib/spawn.in.h: Likewise.
17794         * lib/stdarg.in.h: Likewise.
17795         * lib/stdint.in.h: Likewise.
17796         * lib/string.in.h: Likewise.
17797         * lib/strings.in.h: Likewise.
17798         * lib/sys_file.in.h: Likewise.
17799         * lib/sys_ioctl.in.h: Likewise.
17800         * lib/sys_time.in.h: Likewise.
17801         * lib/sys_times.in.h: Likewise.
17802         * lib/sys_utsname.in.h: Likewise.
17803         * lib/sys_wait.in.h: Likewise.
17804         * lib/sysexits.in.h: Likewise.
17805         * lib/wctype.in.h: Likewise.
17806
17807 2010-03-28  James Youngman  <jay@gnu.org>
17808
17809         save-cwd: don't leak a file descriptor when the caller execs.
17810         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
17811         saved file descriptor.
17812         * modules/save-cwd (Depends-on): Depend on cloexec.
17813
17814 2010-03-29  Bruno Haible  <bruno@clisp.org>
17815
17816         Remove vestiges of fts-lgpl module.
17817         * lib/fts_.h: Assume GNULIB_FTS is 1.
17818         * lib/fts.c: Likewise.
17819         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
17820
17821 2010-03-28  Bruno Haible  <bruno@clisp.org>
17822
17823         Fix definition of tests witness macro.
17824         * gnulib-tool (func_import): Fix definition of witness macro.
17825
17826 2010-03-28  Bruno Haible  <bruno@clisp.org>
17827
17828         Fix ioctl's protoype on glibc systems.
17829         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
17830         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
17831         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
17832         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
17833         signature. If not, arrange to replace the ioctl function.
17834         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17835         REPLACE_IOCTL.
17836         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
17837         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
17838         Reported by Ludovic Courtès <ludo@gnu.org>.
17839
17840 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
17841
17842         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
17843         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
17844         made it so grep -r --include=GLOB* ... did not work.
17845
17846 2010-03-26  Jim Meyering  <meyering@redhat.com>
17847             Eric Blake  <eblake@redhat.com>
17848
17849         maint.mk: prohibit use of test's -o and -a operators
17850         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
17851
17852 2010-03-28  Bruno Haible  <bruno@clisp.org>
17853
17854         Remove unused GNULIB_XYZ macro definitions.
17855         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
17856         invocation.
17857
17858 2010-03-28  Bruno Haible  <bruno@clisp.org>
17859
17860         Mark privileged tests modules.
17861         * modules/idpriv-drop-tests (Status): New section.
17862         * modules/idpriv-droptemp-tests (Status): New section.
17863
17864 2010-03-28  Bruno Haible  <bruno@clisp.org>
17865
17866         Split C++ tests into separate tests modules.
17867         * modules/dirent-c++-tests: New file, extracted from
17868         modules/dirent-tests.
17869         * modules/dirent-tests: Depend on it.
17870         * modules/fcntl-h-c++-tests: New file, extracted from
17871         modules/fcntl-h-tests.
17872         * modules/fcntl-h-tests: Depend on it.
17873         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
17874         * modules/glob-tests: Depend on it.
17875         * modules/iconv-h-c++-tests: New file, extracted from
17876         modules/iconv-h-tests.
17877         * modules/iconv-h-tests: Depend on it.
17878         * modules/langinfo-c++-tests: New file, extracted from
17879         modules/langinfo-tests.
17880         * modules/langinfo-tests: Depend on it.
17881         * modules/locale-c++-tests: New file, extracted from
17882         modules/locale-tests.
17883         * modules/locale-tests: Depend on it.
17884         * modules/math-c++-tests: New file, extracted from modules/math-tests.
17885         * modules/math-tests: Depend on it.
17886         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
17887         * modules/pty-tests: Depend on it.
17888         * modules/search-c++-tests: New file, extracted from
17889         modules/search-tests.
17890         * modules/search-tests: Depend on it.
17891         * modules/signal-c++-tests: New file, extracted from
17892         modules/signal-tests.
17893         * modules/signal-tests: Depend on it.
17894         * modules/spawn-c++-tests: New file, extracted from
17895         modules/spawn-tests.
17896         * modules/spawn-tests: Depend on it.
17897         * modules/stdio-c++-tests: New file, extracted from
17898         modules/stdio-tests.
17899         * modules/stdio-tests: Depend on it.
17900         * modules/stdlib-c++-tests: New file, extracted from
17901         modules/stdlib-tests.
17902         * modules/stdlib-tests: Depend on it.
17903         * modules/string-c++-tests: New file, extracted from
17904         modules/string-tests.
17905         * modules/string-tests: Depend on it.
17906         * modules/sys_ioctl-c++-tests: New file, extracted from
17907         modules/sys_ioctl-tests.
17908         * modules/sys_ioctl-tests: Depend on it.
17909         * modules/sys_select-c++-tests: New file, extracted from
17910         modules/sys_select-tests.
17911         * modules/sys_select-tests: Depend on it.
17912         * modules/sys_socket-c++-tests: New file, extracted from
17913         modules/sys_socket-tests.
17914         * modules/sys_socket-tests: Depend on it.
17915         * modules/sys_stat-c++-tests: New file, extracted from
17916         modules/sys_stat-tests.
17917         * modules/sys_stat-tests: Depend on it.
17918         * modules/sys_time-c++-tests: New file, extracted from
17919         modules/sys_time-tests.
17920         * modules/sys_time-tests: Depend on it.
17921         * modules/time-c++-tests: New file, extracted from modules/time-tests.
17922         * modules/time-tests: Depend on it.
17923         * modules/unistd-c++-tests: New file, extracted from
17924         modules/unistd-tests.
17925         * modules/unistd-tests: Depend on it.
17926         * modules/wchar-c++-tests: New file, extracted from
17927         modules/wchar-tests.
17928         * modules/wchar-tests: Depend on it.
17929         * modules/wctype-c++-tests: New file, extracted from
17930         modules/wctype-tests.
17931         * modules/wctype-tests: Depend on it.
17932         Reported by Simon Josefsson.
17933
17934 2010-03-28  Bruno Haible  <bruno@clisp.org>
17935
17936         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
17937         * gnulib-tool (func_exists_module): New function, extracted from
17938         func_verify_module.
17939         (func_verify_module): Use it.
17940         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
17941         'foo' only if 'foo' exists.
17942         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
17943         module.
17944
17945 2010-03-28  Bruno Haible  <bruno@clisp.org>
17946
17947         gnulib-tool: Add support for special categories of tests.
17948         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
17949         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
17950         (func_usage): Document them.
17951         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
17952         inc_unportable_tests, inc_all_tests): New variables.
17953         (func_acceptable): Consider these variables.
17954         (func_modules_transitive_closure): Make it work when the 'Status' field
17955         consists of multiple words.
17956         (func_import): Store and restore the values of inc_cxx_tests,
17957         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
17958         inc_all_tests in gnulib-comp.m4.
17959         (func_create_testdir): Set inc_all_tests to true.
17960         * doc/gnulib.texi (Extra tests modules): New section.
17961         Suggested by Jim Meyering.
17962
17963 2010-03-28  Bruno Haible  <bruno@clisp.org>
17964
17965         ansi-c++-opt: Allow turning off the C++ build by default.
17966         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
17967         gl_CXX_CHOICE_DEFAULT_NO is defined.
17968         Requested by Eric Blake.
17969
17970 2010-03-28  Bruno Haible  <bruno@clisp.org>
17971
17972         unistd: Avoid #define replacements in C++ mode.
17973         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17974         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17975         setsockopt, shutdown, select): In C++, attach a warning to the function
17976         if possible, rather than #defining the symbol to a dysfunctional alias.
17977         Reported by John W. Eaton <jwe@gnu.org>.
17978
17979 2010-03-28  Bruno Haible  <bruno@clisp.org>
17980
17981         Fix link errors on mingw.
17982         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
17983         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
17984         $(LIBSOCKET).
17985         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
17986         $(LIBSOCKET).
17987
17988 2010-03-28  Bruno Haible  <bruno@clisp.org>
17989             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17990
17991         lib-ignore: Determine different options for different compilers.
17992         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
17993         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
17994         Add comments.
17995         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
17996         * NEWS: Mention the change.
17997
17998 2010-03-27  Bruno Haible  <bruno@clisp.org>
17999
18000         Remove unused GNULIB_XYZ macro definitions.
18001         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
18002         * modules/fseek (configure.ac): Likewise.
18003         * modules/ioctl (configure.ac): Likewise.
18004         * modules/open (configure.ac): Likewise.
18005         * modules/stdlib-safer (configure.ac): Likewise.
18006
18007 2010-03-27  Bruno Haible  <bruno@clisp.org>
18008
18009         Add a remark about certain modules.
18010         * modules/malloc (Comment): New section.
18011         * modules/realloc (Comment): Likewise.
18012         * modules/sigpipe (Comment): Likewise.
18013
18014 2010-03-27  Bruno Haible  <bruno@clisp.org>
18015
18016         Resolve conflict between the two kinds of module indicators.
18017         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
18018         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
18019         * modules/canonicalize (configure.ac): Invoke
18020         gl_MODULE_INDICATOR_FOR_TESTS.
18021         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
18022         GNULIB_XYZ.
18023         * tests/test-dirent-c++.cc: Likewise.
18024         * tests/test-dirent-safer.c: Likewise.
18025         * tests/test-dup2.c: Likewise.
18026         * tests/test-fchdir.c: Likewise.
18027         * tests/test-fcntl-h-c++.cc: Likewise.
18028         * tests/test-getopt.c: Likewise.
18029         * tests/test-getopt.h: Likewise.
18030         * tests/test-langinfo-c++.cc: Likewise.
18031         * tests/test-locale-c++.cc: Likewise.
18032         * tests/test-math-c++.cc: Likewise.
18033         * tests/test-pty-c++.cc: Likewise.
18034         * tests/test-search-c++.cc: Likewise.
18035         * tests/test-signal-c++.cc: Likewise.
18036         * tests/test-spawn-c++.cc: Likewise.
18037         * tests/test-stdio-c++.cc: Likewise.
18038         * tests/test-stdlib-c++.cc: Likewise.
18039         * tests/test-string-c++.cc: Likewise.
18040         * tests/test-sys_ioctl-c++.cc: Likewise.
18041         * tests/test-sys_select-c++.cc: Likewise.
18042         * tests/test-sys_socket-c++.cc: Likewise.
18043         * tests/test-sys_stat-c++.cc: Likewise.
18044         * tests/test-sys_time-c++.cc: Likewise.
18045         * tests/test-time-c++.cc: Likewise.
18046         * tests/test-unistd-c++.cc: Likewise.
18047         * tests/test-wchar-c++.cc: Likewise.
18048         * tests/uninorm/test-u8-nfc.c: Likewise.
18049         * tests/uninorm/test-u8-nfd.c: Likewise.
18050         * tests/uninorm/test-u8-nfkc.c: Likewise.
18051         * tests/uninorm/test-u8-nfkd.c: Likewise.
18052         * tests/uninorm/test-u16-nfc.c: Likewise.
18053         * tests/uninorm/test-u16-nfd.c: Likewise.
18054         * tests/uninorm/test-u16-nfkc.c: Likewise.
18055         * tests/uninorm/test-u16-nfkd.c: Likewise.
18056         * tests/uninorm/test-u32-nfc.c: Likewise.
18057         * tests/uninorm/test-u32-nfc-big.c: Likewise.
18058         * tests/uninorm/test-u32-nfd.c: Likewise.
18059         * tests/uninorm/test-u32-nfd-big.c: Likewise.
18060         * tests/uninorm/test-u32-nfkc.c: Likewise.
18061         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
18062         * tests/uninorm/test-u32-nfkd.c: Likewise.
18063         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
18064         * tests/uninorm/test-u32-normalize-big.c: Likewise.
18065
18066 2010-03-27  Bruno Haible  <bruno@clisp.org>
18067
18068         Distinguish two kinds of module indicators.
18069         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
18070         gl_MODULE_INDICATOR.
18071         (gl_MODULE_INDICATOR): New macro.
18072         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
18073         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
18074         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18075         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18076         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18077         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18078         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18079         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18080         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18081         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18082         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18083         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18085         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18086         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18087         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18088         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18089         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18090         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18091         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18092         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18093         * modules/cloexec (configure.ac): Likewise.
18094         * modules/getopt-gnu (configure.ac): Likewise.
18095         * modules/uninorm/u8-normalize (configure.ac): Likewise.
18096         * modules/uninorm/u16-normalize (configure.ac): Likewise.
18097         * modules/uninorm/u32-normalize (configure.ac): Likewise.
18098         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
18099
18100 2010-03-27  Bruno Haible  <bruno@clisp.org>
18101
18102         New module description field 'Comment'.
18103         * gnulib-tool: New option --extract-comment.
18104         (func_usage): Document it.
18105         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
18106         (func_get_comment): New function.
18107         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
18108
18109 2010-03-27  Bruno Haible  <bruno@clisp.org>
18110
18111         Addendum to 2010-02-07 commit.
18112         * gnulib-tool (func_usage): Document --extract-applicability option.
18113
18114 2010-03-27  Bruno Haible  <bruno@clisp.org>
18115
18116         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
18117         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
18118         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
18119         rather than link errors.
18120
18121 2010-03-27  Bruno Haible  <bruno@clisp.org>
18122
18123         Avoid side effects from tests-related modules on the compilation of lib.
18124         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
18125         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
18126         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
18127         parameter. Emit into AM_CPPFLAGS a definition of the designated C
18128         macro.
18129         (func_import): Define a witness macro. Assign it a value that depends
18130         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
18131         tests-related modules.
18132         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
18133         Reported by Jim Meyering.
18134
18135 2010-03-27  Bruno Haible  <bruno@clisp.org>
18136
18137         Factorize common .m4 code.
18138         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
18139         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
18140         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
18141         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
18142         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
18143         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
18144         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
18145         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
18146         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
18147         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
18148         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
18149         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
18150         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
18151         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
18152         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
18153         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
18154         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
18155         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
18156         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
18157         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
18158         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
18159         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
18160         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
18161         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
18162         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
18163         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
18164         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
18165         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
18166         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
18167         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
18168         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
18169         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
18170
18171 2010-03-27  Bruno Haible  <bruno@clisp.org>
18172
18173         Fix a compilation error on Cygwin with g++ >= 4.3.
18174         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
18175         if it is undefined or if we alias it to chmod.
18176         (lstat): Don't warn about the use of this function if it is undefined
18177         or if we alias it to stat.
18178         Reported by Simon Josefsson.
18179
18180 2010-03-27  Bruno Haible  <bruno@clisp.org>
18181
18182         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
18183         * modules/getlogin (configure.ac): Update.
18184
18185         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
18186         * modules/getlogin_r (configure.ac): Update.
18187
18188         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
18189         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
18190         * modules/inet_ntop (configure.ac): Update.
18191
18192         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
18193         * modules/inet_pton (configure.ac): Update.
18194
18195         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
18196         * modules/mbslen (configure.ac): Update.
18197
18198         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
18199         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
18200         * modules/forkpty (configure.ac): Update.
18201         * modules/openpty (configure.ac): Update.
18202
18203 2010-03-26  Simon Josefsson  <simon@josefsson.org>
18204
18205         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
18206         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
18207
18208 2010-03-25  Eric Blake  <eblake@redhat.com>
18209
18210         maint: use pragma consistently across replacement headers
18211         * lib/ctype.in.h (system_header): Hoist for consistent placement.
18212         * lib/dirent.in.h (system_header): Likewise.
18213         * lib/errno.in.h (system_header): Likewise.
18214         * lib/float.in.h (system_header): Likewise.
18215         * lib/getopt.in.h (system_header): Likewise.
18216         * lib/iconv.in.h (system_header): Likewise.
18217         * lib/inttypes.in.h (system_header): Likewise.
18218         * lib/langinfo.in.h (system_header): Likewise.
18219         * lib/locale.in.h (system_header): Likewise.
18220         * lib/math.in.h (system_header): Likewise.
18221         * lib/netdb.in.h (system_header): Likewise.
18222         * lib/netinet_in.in.h (system_header): Likewise.
18223         * lib/pty.in.h (system_header): Likewise.
18224         * lib/sched.in.h (system_header): Likewise.
18225         * lib/se-selinux.in.h (system_header): Likewise.
18226         * lib/search.in.h (system_header): Likewise.
18227         * lib/spawn.in.h (system_header): Likewise.
18228         * lib/stdarg.in.h (system_header): Likewise.
18229         * lib/stdint.in.h (system_header): Likewise.
18230         * lib/string.in.h (system_header): Likewise.
18231         * lib/strings.in.h (system_header): Likewise.
18232         * lib/sys_file.in.h (system_header): Likewise.
18233         * lib/sys_ioctl.in.h (system_header): Likewise.
18234         * lib/sys_socket.in.h (system_header): Likewise.
18235         * lib/sys_times.in.h (system_header): Likewise.
18236         * lib/sys_utsname.in.h (system_header): Likewise.
18237         * lib/sys_wait.in.h (system_header): Likewise.
18238         * lib/sysexits.in.h (system_header): Likewise.
18239         * lib/unistd.in.h (system_header): Likewise.
18240         * lib/wctype.in.h (system_header): Likewise.
18241
18242         arpa/inet: fix mingw compilation warning
18243         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
18244         Reported by Matthew Bolte.
18245
18246 2010-03-25  Bruno Haible  <bruno@clisp.org>
18247
18248         Avoid collision between gnulib wrapper and libintl wrapper.
18249         * lib/printf.c (printf): Don't define if a printf wrapper is already
18250         defined in intl/printf.c.
18251         Reported by Michel Boaventura <michel@michelboaventura.com>.
18252
18253 2010-03-25  Bruno Haible  <bruno@clisp.org>
18254
18255         Use ANSI C.
18256         * lib/readutmp.h (getutent): Provide ANSI C prototype.
18257
18258 2010-03-25  Bruno Haible  <bruno@clisp.org>
18259
18260         Minor formatting changes.
18261         * lib/acosl.c: Insert space before function argument list.
18262         * lib/argz.c: Likewise.
18263         * lib/asinl.c: Likewise.
18264         * lib/expl.c: Likewise.
18265         * lib/gen-uni-tables.c: Likewise.
18266         * lib/gettext.h: Likewise.
18267         * lib/glthread/lock.h: Likewise.
18268         * lib/tanl.c: Likewise.
18269         * lib/uniname/uniname.c: Likewise.
18270         * tests/test-idpriv-drop.c: Likewise.
18271         * tests/test-idpriv-droptemp.c: Likewise.
18272         * tests/test-lock.c: Likewise.
18273         * tests/test-tls.c: Likewise.
18274         * lib/argp-help.c: Insert space before function-like macro argument
18275         list.
18276         * lib/memcmp.c: Likewise.
18277         * tests/test-base64.c: Likewise.
18278         * lib/localename.c: Insert space before sizeof's argument list.
18279         * lib/safe-alloc.h: Likewise.
18280         * lib/file-set.h: Insert space before macro argument list.
18281         * tests/test-argp.c: Likewise.
18282         * lib/argp-namefrob.h: Insert space before function parameter list.
18283         * lib/getaddrinfo.c: Likewise.
18284         * lib/netdb.in.h: Likewise.
18285         * lib/parse-duration.h: Likewise.
18286         * lib/parse-duration.c: Likewise.
18287         * lib/poll.c: Likewise.
18288         * lib/select.c: Likewise.
18289         * lib/trim.h: Likewise.
18290         * tests/test-usleep.c: Likewise.
18291         * lib/ldexpl.c: Insert space before function parameter list and before
18292         function argument list.
18293         * lib/logl.c: Likewise.
18294         * lib/sqrtl.c: Likewise.
18295         * lib/trim.c: Likewise.
18296         * lib/cosl.c: Use GNU style indentation. Insert space before function
18297         argument list.
18298         * lib/sinl.c: Likewise.
18299         * lib/tsearch.c: Insert space after 'for'.
18300         Reported by Jim Meyering.
18301
18302 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
18303
18304         * maint.mk (sc_Wundef_boolean): Check for the presence of the
18305         config header before grepping, as it's not present before
18306         autoreconf/configure are run.  Reported by Simon Josefsson.
18307
18308 2010-03-23  Bruno Haible  <bruno@clisp.org>
18309
18310         pt_chown: Make it work with automake < 1.11.
18311         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
18312         Reported by Simon Josefsson.
18313
18314 2010-03-23  Bruno Haible  <bruno@clisp.org>
18315
18316         pt_chown: Don't depend on GPLed modules.
18317         * lib/pt_chown.c: Don't include idpriv.h.
18318         (main): Don't drop privileges.
18319         * modules/pt_chown (Depends-on): Remove idpriv-drop.
18320         Reported by Simon Josefsson.
18321
18322 2010-03-24  Simon Josefsson  <simon@josefsson.org>
18323
18324         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
18325         suggestions from karl@freefriends.org (Karl Berry).
18326
18327 2010-03-22  Eric Blake  <eblake@redhat.com>
18328
18329         gethostname: further tweaks
18330         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
18331         are overriding gethostname.
18332         Suggested by Bruno Haible.
18333
18334 2010-03-21  Bruno Haible  <bruno@clisp.org>
18335
18336         Fix comments.
18337         * lib/forkpty.c (rpl_forkpty): Fix comment.
18338         * lib/openpty.c (rpl_openpty): Likewise.
18339         Reported by Eric Blake.
18340
18341 2010-03-22  Eric Blake  <eblake@redhat.com>
18342
18343         gethostname: fix build on mingw
18344         * lib/unistd.in.h (includes): Work around fact that mingw
18345         <winsock2.h> re-includes <unistd.h>, by avoiding any
18346         redeclarations if we are being included by <winsock2.h>.
18347         Reported by Matthias Bolte.
18348
18349 2010-03-21  Bruno Haible  <bruno@clisp.org>
18350
18351         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18352         * lib/forkpty.c (forkpty): New replacement function, from glibc with
18353         modifications.
18354         * lib/pty.in.h (forkpty): Update declaration. Add comments.
18355         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
18356         provide the replacement.
18357         * modules/forkpty (Depends-on): Add openpty, login_tty.
18358         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
18359         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
18360         * doc/glibc-functions/forkpty.texi: More supported platforms.
18361         * config/srclist.txt: Add forkpty.c (commented).
18362
18363 2010-03-21  Bruno Haible  <bruno@clisp.org>
18364
18365         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
18366         (Makefile.am): Verify that PTY_LIB is defined.
18367
18368         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
18369
18370 2010-03-21  Bruno Haible  <bruno@clisp.org>
18371
18372         Tests for module 'login_tty'.
18373         * modules/login_tty-tests: New file.
18374         * tests/test-login_tty.c: New file.
18375
18376         New module 'login_tty'.
18377         * lib/login_tty.c: New file.
18378         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
18379         * modules/login_tty: New file.
18380         * doc/glibc-functions/login_tty.texi: Mention the new module.
18381
18382 2010-03-21  Bruno Haible  <bruno@clisp.org>
18383
18384         login_tty: Documentation.
18385         * doc/glibc-functions/login_tty.texi: New file.
18386         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
18387
18388 2010-03-21  Bruno Haible  <bruno@clisp.org>
18389
18390         pty: Consistent macro naming.
18391         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
18392         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
18393         * modules/pty (configure.ac): Update.
18394
18395 2010-03-21  Bruno Haible  <bruno@clisp.org>
18396
18397         Tests for openpty: Make stricter.
18398         * tests/test-openpty.c (main): Add test of canonical processing and
18399         erase.
18400         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
18401
18402         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
18403         * lib/openpty.c (openpty): New replacement function.
18404         * lib/pty.in.h: Include <termios.h>.
18405         (openpty): Update declaration. Add comments.
18406         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
18407         is not declared, arrange to provide the replacement. Check for _getpty
18408         and posix_openpt.
18409         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
18410         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
18411         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
18412         * modules/pty-tests (test_pty_c___LDADD): New variable.
18413         * doc/glibc-functions/openpty.texi: More supported platforms.
18414
18415 2010-03-21  Bruno Haible  <bruno@clisp.org>
18416
18417         setenv: Tweaks.
18418         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
18419         the test program.
18420         * doc/posix-functions/setenv.texi: Update platforms list.
18421
18422 2010-03-21  Bruno Haible  <bruno@clisp.org>
18423
18424         New module 'unlockpt'.
18425         * lib/unlockpt.c: New file, from glibc with modifications.
18426         * m4/unlockpt.m4: New file.
18427         * modules/unlockpt: New file.
18428         * lib/stdlib.in.h (unlockpt): New declaration.
18429         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
18430         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
18431         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
18432         HAVE_UNLOCKPT.
18433         * doc/posix-functions/unlockpt.texi: Mention the new module.
18434         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
18435         * config/srclist.txt: Add unlockpt.c (commented).
18436
18437 2010-03-21  Jim Meyering  <meyering@redhat.com>
18438
18439         maint.mk: prohibit inclusion of "intprops.h" without use
18440         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
18441
18442 2010-03-21  Bruno Haible  <bruno@clisp.org>
18443
18444         New module 'grantpt'.
18445         * lib/grantpt.c: New file, from glibc with modifications.
18446         * m4/grantpt.m4: New file.
18447         * modules/grantpt: New file.
18448         * lib/stdlib.in.h (grantpt): New declaration.
18449         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
18450         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
18451         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
18452         HAVE_GRANTPT.
18453         * doc/posix-functions/grantpt.texi: Mention the new module.
18454         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
18455         * config/srclist.txt: Add grantpt.c (commented).
18456
18457 2010-03-21  Bruno Haible  <bruno@clisp.org>
18458
18459         New module 'pt_chown'.
18460         * lib/pt_chown.c: New file, from glibc with modifications.
18461         * lib/pty-private.h: New file, from glibc with modifications.
18462         * modules/pt_chown: New file.
18463         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
18464
18465 2010-03-21  Bruno Haible  <bruno@clisp.org>
18466
18467         Tests for module 'ptsname'.
18468         * modules/ptsname-tests: New file.
18469         * tests/test-ptsname.c: New file.
18470
18471         New module 'ptsname'.
18472         * lib/ptsname.c: New file, from glibc with modifications.
18473         * m4/ptsname.m4: New file.
18474         * modules/ptsname: New file.
18475         * lib/stdlib.in.h (ptsname): New declaration.
18476         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
18477         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
18478         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
18479         HAVE_PTSNAME.
18480         * doc/posix-functions/ptsname.texi: Mention the new module.
18481         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
18482         * config/srclist.txt: Add ptsname.c (commented).
18483
18484 2010-03-21  Bruno Haible  <bruno@clisp.org>
18485
18486         Tests for module 'ttyname_r'.
18487         * modules/ttyname_r-tests: New file.
18488         * tests/test-ttyname_r.c: New file.
18489
18490         New module 'ttyname_r'.
18491         * lib/ttyname_r.c: New file.
18492         * m4/ttyname_r.m4: New file.
18493         * modules/ttyname_r: New file.
18494         * lib/unistd.in.h (ttyname_r): New declaration.
18495         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
18496         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
18497         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
18498         HAVE_TTYNAME_R.
18499         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
18500         * doc/posix-functions/ttyname_r.texi: Mention the new module.
18501
18502 2010-03-20  Bruno Haible  <bruno@clisp.org>
18503
18504         signal: Undefine macro definitions in C++ mode.
18505         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
18506         sigfillset): Undefine macro definitions from the system header in C++
18507         mode.
18508         Reported by John W. Eaton <jwe@gnu.org>.
18509
18510 2010-03-20  Bruno Haible  <bruno@clisp.org>
18511
18512         Ensure no #include statements inside extern "C" { ... }.
18513         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
18514         contain #include statements.
18515         * lib/time.in.h: Likewise.
18516
18517 2010-03-20  Bruno Haible  <bruno@clisp.org>
18518
18519         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
18520         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
18521         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
18522         Reported by John W. Eaton <jwe@gnu.org>.
18523
18524 2010-03-20  Bruno Haible  <bruno@clisp.org>
18525
18526         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
18527         Reported by Jim Meyering.
18528
18529 2010-03-20  Bruno Haible  <bruno@clisp.org>
18530
18531         pipe: Set errno upon failure.
18532         * lib/pipe.h: Specify that when -1 is returned, errno is set.
18533         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
18534         errno value in error message.
18535
18536 2010-03-20  Bruno Haible  <bruno@clisp.org>
18537             Jim Meyering  <meyering@redhat.com>
18538
18539         lchown: Avoid "unused variable" warning.
18540         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
18541
18542 2010-03-20  Bruno Haible  <bruno@clisp.org>
18543
18544         Work around unlink() bug on MacOS X 10.5.6.
18545         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
18546         attempting to unlink a parent directory.
18547         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
18548         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
18549         activate for the replacement function.
18550         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
18551
18552 2010-03-20  Bruno Haible  <bruno@clisp.org>
18553
18554         Fix link errors on Solaris 8.
18555         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
18556         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
18557
18558 2010-03-19  Jim Meyering  <meyering@redhat.com>
18559
18560         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
18561         The _LIBC implementation of build_range_exp correctly honors the
18562         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
18563         However, the non-_LIBC implementation would ignore that syntax-bit
18564         flag and return REG_ERANGE unconditionally.
18565         This change makes it honor that flag.
18566         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
18567         Make two pointer parameters "const".
18568         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
18569         (parse_bracket_exp): Update caller.
18570
18571         regex.m4: correct the reversed range endpoint ([b-a]) test
18572         * m4/regex.m4: When requiring that [b-a] evoke failure,
18573         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
18574         test pass once again for x86-based systems.
18575
18576 2010-03-19  Bruno Haible  <bruno@clisp.org>
18577
18578         scandir: Fix link error on Solaris 8.
18579         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
18580         macros.
18581
18582 2010-03-19  Bruno Haible  <bruno@clisp.org>
18583
18584         getusershell: Fix documentation.
18585         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
18586         module.
18587         * doc/glibc-functions/setusershell.texi: Likewise.
18588
18589         getusershell: Provide declaration, missing on Solaris 9.
18590         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
18591         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
18592         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
18593         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
18594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18595         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
18596         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
18597         HAVE_GETUSERSHELL.
18598         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
18599
18600 2010-03-19  Bruno Haible  <bruno@clisp.org>
18601
18602         wctype: Provide iswblank function.
18603         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
18604         exists and is fine.
18605         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
18606         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
18607         * tests/test-wctype.c (main): Re-enable the iswblank tests.
18608         * doc/posix-functions/iswblank.texi: Update.
18609
18610 2010-03-19  Bruno Haible  <bruno@clisp.org>
18611
18612         Tests of module 'pty' in C++ mode.
18613         * modules/pty-tests: New file.
18614         * tests/test-pty-c++.cc: New file.
18615         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18616
18617 2010-03-19  Eric Blake  <eblake@redhat.com>
18618
18619         logb: fix documentation
18620         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
18621         1.5 declaration bug.
18622
18623         forkpty, openpty: prefer glibc's const-safe prototype
18624         * lib/forkpty.c (rpl_forkpty): New file.
18625         * lib/openpty.c (rpl_openpty): Likewise.
18626         * modules/forkpty (Files): Distribute it.
18627         * modules/openpty (Files): Likewise.
18628         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
18629         check...
18630         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
18631         replacement for for non-const BSD signature.
18632         * modules/pty (Makefile.am): Substitute witnesses.
18633         * lib/pty.in.h (forkpty, openpty): Declare replacements.
18634         * tests/test-forkpty.c: Update signature check.
18635         * tests/test-openpty.c: Likewise.
18636         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
18637         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18638
18639         forkpty, openpty: split functions into new modules
18640         * modules/pty (Makefile.am): Substitute new witnesses.
18641         (Libraries): Move library detection...
18642         * modules/forkpty: ...into new module.
18643         * modules/openpty: Another new module.
18644         * modules/pty-tests: Rename and split...
18645         * modules/forkpty-tests: ...to this...
18646         * modules/openpty-tests: ...and this.
18647         * tests/test-pty.c: Rename and split...
18648         * tests/test-forkpty.c: ...to this...
18649         * tests/test-openpty.c: ...and this.
18650         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
18651         (gl_PTY): Split library searching...
18652         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
18653         (gl_FORKPTY, gl_OPENPTY): New macros.
18654         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
18655         * NEWS: Mention the split.
18656         * MODULES.html.sh (Misc): Document the modules.
18657         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
18658         * doc/glibc-functions/openpty.texi (openpty): Likewise.
18659
18660         pty: improve replacement header
18661         * lib/pty.in.h: New file.
18662         * modules/pty (Files): Ship it.
18663         (Makefile.am): Always build replacement.
18664         * m4/pty.m4: Rename...
18665         * m4/pty_h.m4: ...to this.
18666         (gl_PTY): Modernize setting of witness macros; update check of
18667         forkpty to take proper advantage of cache.
18668         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
18669
18670         getopt: avoid compiler warning
18671         * lib/getopt.c (attribute_hidden): Remove unused macro.
18672
18673 2010-03-18  Bruno Haible  <bruno@clisp.org>
18674
18675         Fix link errors on Solaris 8.
18676         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
18677         * modules/search-tests (test_search_c___LDADD): Likewise.
18678         * modules/signal-tests (test_signal_c___LDADD): Likewise.
18679         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
18680         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
18681         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
18682         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
18683         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
18684         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
18685
18686 2010-03-18  Bruno Haible  <bruno@clisp.org>
18687
18688         Fix bug introduced on 2010-03-14.
18689         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
18690         (gl_SPAWN_H): Require it.
18691         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
18692         Reported by Simon Josefsson.
18693
18694 2010-03-18  Bruno Haible  <bruno@clisp.org>
18695
18696         Fix typo introduced on 2009-12-31.
18697         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
18698         posix_spawn_file_actions_adddup2.
18699
18700 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
18701         and Eric Blake  <eblake@redhat.com>
18702
18703         test-vc-list-files-git: make more robust
18704         * tests/test-vc-list-files-git.sh: Unset problematic environment
18705         variables.  Chain commands together.
18706
18707 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
18708
18709         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
18710         `AC_CHECK_DECL' invocation.
18711
18712 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
18713
18714         * lib/inttostr.c (inttostr): Make sure the invocation of verify
18715         appears before executable statements. Suggested by Petr Sumbera
18716         <Petr.Sumbera@Sun.COM>.
18717
18718 2010-03-14  Bruno Haible  <bruno@clisp.org>
18719
18720         * tests/test-flock.c (test_exclusive): Comment out a test that causes
18721         portability problems. Instead use a simpler test.
18722         (main): Check that invalid arguments are rejected only on Linux.
18723
18724 2010-03-14  Bruno Haible  <bruno@clisp.org>
18725
18726         Fix bug introduced on 2009-12-31.
18727         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18728         gl_PREREQ_SYS_H_WINSOCK2 always.
18729         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
18730         SYS_SOCKET_H variable.
18731         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
18732         Update comments.
18733         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
18734         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18735         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18736         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18737         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
18738
18739 2010-03-14  Bruno Haible  <bruno@clisp.org>
18740
18741         Fix values returned by sinl, cosl.
18742         * lib/trigl.h: Add specification comments.
18743         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
18744         that combines the values from the precomputed table with the values of
18745         the Chebyshev polynomials.
18746
18747 2010-03-14  Bruno Haible  <bruno@clisp.org>
18748
18749         Fix compilation error when modules 'posix_spawn[p]' are not used.
18750         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
18751         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
18752
18753 2010-03-14  Bruno Haible  <bruno@clisp.org>
18754
18755         Fix compilation error on mingw when module 'time_r' is not used.
18756         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
18757         is 1.
18758         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
18759         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
18760         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
18761         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
18762
18763 2010-03-14  Bruno Haible  <bruno@clisp.org>
18764
18765         Fix compilation error with Sun C.
18766         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
18767         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
18768         instead of GCC specific ULONG_LONG_MAX.
18769         * lib/xstrtoll.c: Likewise.
18770         * lib/xstrtoull.c: Likewise.
18771
18772 2010-03-13  Bruno Haible  <bruno@clisp.org>
18773
18774         Allow the user to disable C++ code and tests.
18775         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
18776         (gl_PROG_ANSI_CXX): Require it.
18777
18778 2010-03-13  Bruno Haible  <bruno@clisp.org>
18779
18780         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
18781         cases.
18782
18783 2010-03-13  Bruno Haible  <bruno@clisp.org>
18784
18785         Test that gnulib does not break the standard C++ headers.
18786         * tests/test-locale-c++2.cc: New file.
18787         * modules/locale-tests (Files): Add it.
18788         (Makefile.am): Compile it for test-locale-c++.
18789         * tests/test-math-c++2.cc: New file.
18790         * modules/math-tests (Files): Add it.
18791         (Makefile.am): Compile it for test-math-c++.
18792         * tests/test-signal-c++2.cc: New file.
18793         * modules/signal-tests (Files): Add it.
18794         (Makefile.am): Compile it for test-signal-c++.
18795         * tests/test-stdio-c++2.cc: New file.
18796         * modules/stdio-tests (Files): Add it.
18797         (Makefile.am): Compile it for test-stdio-c++.
18798         * tests/test-stdlib-c++2.cc: New file.
18799         * modules/stdlib-tests (Files): Add it.
18800         (Makefile.am): Compile it for test-stdlib-c++.
18801         * tests/test-string-c++2.cc: New file.
18802         * modules/string-tests (Files): Add it.
18803         (Makefile.am): Compile it for test-string-c++.
18804         * tests/test-time-c++2.cc: New file.
18805         * modules/time-tests (Files): Add it.
18806         (Makefile.am): Compile it for test-time-c++.
18807         Reported by John W. Eaton <jwe@gnu.org>.
18808
18809 2010-03-13  Bruno Haible  <bruno@clisp.org>
18810
18811         * gnulib-tool (func_usage): Clarify which options are available for
18812         --create-testdir and --create-megatestdir.
18813
18814 2010-03-13  Bruno Haible  <bruno@clisp.org>
18815
18816         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
18817         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
18818         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
18819         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18820         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
18821         when appropriate.
18822         Reported by Jim Meyering.
18823
18824 2010-03-12  Simon Josefsson  <simon@josefsson.org>
18825
18826         * gnulib-tool (func_import): Explain origin of code.
18827
18828 2010-03-12  Bruno Haible  <bruno@clisp.org>
18829
18830         Fix problem with automake's definition of CXXLINK.
18831         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
18832         Reported by Simon Josefsson and Ludovic Courtès.
18833
18834 2010-03-12  Bruno Haible  <bruno@clisp.org>
18835
18836         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
18837         stable releases.
18838
18839 2010-03-11  Bruno Haible  <bruno@clisp.org>
18840
18841         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
18842         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
18843         whether the system provides one variant or multiple variants of the
18844         function.
18845         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
18846         C++ compilers.
18847         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
18848         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
18849         Reported by Jim Meyering.
18850
18851 2010-03-09  Simon Josefsson  <simon@josefsson.org>
18852
18853         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
18854
18855 2010-03-08  Bruno Haible  <bruno@clisp.org>
18856
18857         gnulib-tool: Add support for --libtool in --create-testdir.
18858         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
18859         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
18860
18861 2010-03-08  Eric Blake  <eblake@redhat.com>
18862
18863         gnulib-tool.texi: mention possibility of git submodule
18864         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
18865         submodules.
18866         * doc/.gitignore: Ignore another generated file.
18867
18868 2010-03-08  Karl Berry  <karl@gnu.org>
18869
18870         * doc/gnulib-tool.texi (VCS Issues): Mention third option
18871         of committing gnulib files while skipping others.
18872
18873 2010-03-07  Bruno Haible  <bruno@clisp.org>
18874
18875         Tests of module 'wctype' in C++ mode.
18876         * tests/test-wctype-c++.cc: New file.
18877         * modules/wctype-tests (Files): Add it and tests/signature.h.
18878         (Depends-on): Add ansi-c++-opt.
18879         (Makefile.am): Arrange to compile and run test-wctype-c++.
18880
18881         Tests of module 'wchar' in C++ mode.
18882         * tests/test-wchar-c++.cc: New file.
18883         * modules/wchar-tests (Files): Add it and tests/signature.h.
18884         (Depends-on): Add ansi-c++-opt.
18885         (Makefile.am): Arrange to compile and run test-wchar-c++.
18886         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
18887         gl_MODULE_INDICATOR.
18888
18889         Tests of module 'unistd' in C++ mode.
18890         * tests/test-unistd-c++.cc: New file.
18891         * modules/unistd-tests (Files): Add it and tests/signature.h.
18892         (Depends-on): Add ansi-c++-opt.
18893         (Makefile.am): Arrange to compile and run test-unistd-c++.
18894         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
18895         gl_MODULE_INDICATOR.
18896
18897         Tests of module 'time' in C++ mode.
18898         * tests/test-time-c++.cc: New file.
18899         * modules/time-tests (Files): Add it and tests/signature.h.
18900         (Depends-on): Add ansi-c++-opt.
18901         (Makefile.am): Arrange to compile and run test-time-c++.
18902         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18903
18904         Tests of module 'sys_time' in C++ mode.
18905         * tests/test-sys_time-c++.cc: New file.
18906         * modules/sys_time-tests (Files): Add it and tests/signature.h.
18907         (Depends-on): Add ansi-c++-opt.
18908         (Makefile.am): Arrange to compile and run test-sys_time-c++.
18909         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
18910         gl_MODULE_INDICATOR.
18911
18912         Tests of module 'sys_stat' in C++ mode.
18913         * tests/test-sys_stat-c++.cc: New file.
18914         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
18915         (Depends-on): Add ansi-c++-opt.
18916         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
18917         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
18918         gl_MODULE_INDICATOR.
18919
18920         Tests of module 'sys_socket' in C++ mode.
18921         * tests/test-sys_socket-c++.cc: New file.
18922         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
18923         (Depends-on): Add ansi-c++-opt.
18924         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
18925         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
18926         gl_MODULE_INDICATOR.
18927
18928         Tests of module 'sys_select' in C++ mode.
18929         * tests/test-sys_select-c++.cc: New file.
18930         * modules/sys_select-tests (Files): Add it and tests/signature.h.
18931         (Depends-on): Add ansi-c++-opt.
18932         (Makefile.am): Arrange to compile and run test-sys_select-c++.
18933         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
18934         gl_MODULE_INDICATOR.
18935
18936         Tests of module 'sys_ioctl' in C++ mode.
18937         * tests/test-sys_ioctl-c++.cc: New file.
18938         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
18939         (Depends-on): Add ansi-c++-opt.
18940         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
18941         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
18942         gl_MODULE_INDICATOR.
18943
18944         Tests of module 'string' in C++ mode.
18945         * tests/test-string-c++.cc: New file.
18946         * modules/string-tests (Files): Add it and tests/signature.h.
18947         (Depends-on): Add ansi-c++-opt.
18948         (Makefile.am): Arrange to compile and run test-string-c++.
18949         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
18950         gl_MODULE_INDICATOR.
18951
18952         Tests of module 'stdlib' in C++ mode.
18953         * tests/test-stdlib-c++.cc: New file.
18954         * modules/stdlib-tests (Files): Add it and tests/signature.h.
18955         (Depends-on): Add ansi-c++-opt.
18956         (Makefile.am): Arrange to compile and run test-stdlib-c++.
18957         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
18958         gl_MODULE_INDICATOR.
18959
18960         Tests of module 'stdio' in C++ mode.
18961         * tests/test-stdio-c++.cc: New file.
18962         * modules/stdio-tests (Files): Add it and tests/signature.h.
18963         (Depends-on): Add ansi-c++-opt.
18964         (Makefile.am): Arrange to compile and run test-stdio-c++.
18965         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
18966         gl_MODULE_INDICATOR.
18967
18968         Tests of module 'spawn' in C++ mode.
18969         * tests/test-spawn-c++.cc: New file.
18970         * modules/spawn-tests (Files): Add it and tests/signature.h.
18971         (Depends-on): Add ansi-c++-opt.
18972         (Makefile.am): Arrange to compile and run test-spawn-c++.
18973         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
18974         gl_MODULE_INDICATOR.
18975
18976         Tests of module 'signal' in C++ mode.
18977         * tests/test-signal-c++.cc: New file.
18978         * modules/signal-tests (Files): Add it and tests/signature.h.
18979         (Depends-on): Add ansi-c++-opt.
18980         (Makefile.am): Arrange to compile and run test-signal-c++.
18981         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
18982         gl_MODULE_INDICATOR.
18983
18984         Tests of module 'search' in C++ mode.
18985         * tests/test-search-c++.cc: New file.
18986         * modules/search-tests (Files): Add it and tests/signature.h.
18987         (Depends-on): Add ansi-c++-opt.
18988         (Makefile.am): Arrange to compile and run test-search-c++.
18989         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
18990         gl_MODULE_INDICATOR.
18991
18992         Tests of module 'math' in C++ mode.
18993         * tests/test-math-c++.cc: New file.
18994         * modules/math-tests (Files): Add it and tests/signature.h.
18995         (Depends-on): Add ansi-c++-opt.
18996         (Makefile.am): Arrange to compile and run test-math-c++.
18997         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
18998
18999         Tests of module 'locale' in C++ mode.
19000         * tests/test-locale-c++.cc: New file.
19001         * modules/locale-tests (Files): Add it and tests/signature.h.
19002         (Depends-on): Add ansi-c++-opt.
19003         (Makefile.am): Arrange to compile and run test-locale-c++.
19004         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
19005         gl_MODULE_INDICATOR.
19006
19007         Tests of module 'langinfo' in C++ mode.
19008         * tests/test-langinfo-c++.cc: New file.
19009         * modules/langinfo-tests (Files): Add it and tests/signature.h.
19010         (Depends-on): Add ansi-c++-opt.
19011         (Makefile.am): Arrange to compile and run test-langinfo-c++.
19012         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
19013         gl_MODULE_INDICATOR.
19014
19015         Tests of module 'iconv-h' in C++ mode.
19016         * tests/test-iconv-h-c++.cc: New file.
19017         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
19018         (Depends-on): Add ansi-c++-opt.
19019         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
19020
19021         Tests of module 'glob' in C++ mode.
19022         * tests/test-glob-c++.cc: New file.
19023         * modules/glob-tests (Files): Add it.
19024         (Depends-on): Add ansi-c++-opt.
19025         (Makefile.am): Arrange to compile and run test-glob-c++.
19026
19027         Tests of module 'fcntl-h' in C++ mode.
19028         * tests/test-fcntl-h-c++.cc: New file.
19029         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
19030         (Depends-on): Add ansi-c++-opt.
19031         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
19032         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
19033         gl_MODULE_INDICATOR.
19034
19035         Tests of module 'dirent' in C++ mode.
19036         * tests/test-dirent-c++.cc: New file.
19037         * modules/dirent-tests (Files): Add it and tests/signature.h.
19038         (Depends-on): Add ansi-c++-opt.
19039         (Makefile.am): Arrange to compile and run test-dirent-c++.
19040         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
19041         gl_MODULE_INDICATOR.
19042
19043         New module 'ansi-c++-opt'.
19044         * modules/ansi-c++-opt: New file.
19045         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
19046
19047         Document C++ namespace mode.
19048         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
19049
19050         wctype: Avoid #define replacements in C++ mode.
19051         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
19052         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
19053         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
19054         In C++, define a namespaced alias symbol.
19055         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
19056         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
19057         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
19058         rule.
19059
19060         wchar: Avoid #define replacements in C++ mode.
19061         * lib/wchar.in.h: Include c++defs.h.
19062         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
19063         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
19064         symbol.
19065         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
19066         * modules/wchar (Depends-on): Add c++defs.
19067         (Makefile.am): Update wchar.h rule.
19068
19069         unistd: Avoid #define replacements in C++ mode.
19070         * lib/unistd.in.h: Include c++defs.h.
19071         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
19072         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
19073         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
19074         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
19075         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
19076         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
19077         symbol.
19078         (environ): Update.
19079         * modules/unistd (Depends-on): Add c++defs.
19080         (Makefile.am): Update unistd.h rule.
19081
19082         time: Avoid #define replacements in C++ mode.
19083         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
19084         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
19085         define a namespaced alias symbol.
19086         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
19087         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
19088         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
19089         * modules/time (Depends-on): Add c++defs, warn-on-use.
19090         (Makefile.am): Update time.h rule.
19091         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
19092         * modules/nanosleep (configure.ac): Likewise.
19093         * modules/strptime (configure.ac): Likewise.
19094         * modules/timegm (configure.ac): Likewise.
19095
19096         sys_time: Avoid #define replacements in C++ mode.
19097         * lib/sys_time.in.h: Include c++defs.h.
19098         (gettimeofday): In C++, define a namespaced alias symbol.
19099         * modules/sys_time (Depends-on): Add c++defs.
19100         (Makefile.am): Update sys/time.h rule.
19101
19102         sys_stat: Avoid #define replacements in C++ mode.
19103         * lib/sys_stat.in.h: Include c++defs.h.
19104         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
19105         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
19106         namespaced alias symbol.
19107         In C++, define a namespaced alias symbol.
19108         * modules/sys_stat (Depends-on): Add c++defs.
19109         (Makefile.am): Update sys/stat.h rule.
19110
19111         sys_socket: Avoid #define replacements in C++ mode.
19112         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
19113         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
19114         definitions also when the system has a <sys/socket.h>.
19115         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19116         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
19117         In C++, define a namespaced alias symbol.
19118         * modules/sys_socket (Depends-on): Add c++defs.
19119         (Makefile.am): Update sys/socket.h rule.
19120
19121         sys_select: Avoid #define replacements in C++ mode.
19122         * lib/sys_select.in.h: Include c++defs.h. Enable the function
19123         definitions also when the system has a <sys/select.h>.
19124         (select): In C++, define a namespaced alias symbol.
19125         * modules/sys_select (Depends-on): Add c++defs.
19126         (Makefile.am): Update sys/select.h rule.
19127
19128         sys_ioctl: Avoid #define replacements in C++ mode.
19129         * lib/sys_ioctl.in.h: Include c++defs.h.
19130         (ioctl): In C++, define a namespaced alias symbol.
19131         * modules/sys_ioctl (Depends-on): Add c++defs.
19132         (Makefile.am): Update sys/ioctl.h rule.
19133
19134         string: Avoid #define replacements in C++ mode.
19135         * lib/string.in.h: Include c++defs.h.
19136         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
19137         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
19138         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
19139         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
19140         strsignal, strverscmp): In C++, define a namespaced alias symbol.
19141         * modules/string (Depends-on): Add c++defs.
19142         (Makefile.am): Update string.h rule.
19143
19144         stdlib: Avoid #define replacements in C++ mode.
19145         * lib/stdlib.in.h: Include c++defs.h.
19146         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
19147         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
19148         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
19149         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
19150         symbol.
19151         * modules/stdlib (Depends-on): Add c++defs.
19152         (Makefile.am): Update stdlib.h rule.
19153
19154         stdio: Avoid #define replacements in C++ mode.
19155         * lib/stdio.in.h: Include c++defs.h.
19156         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
19157         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
19158         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
19159         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
19160         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
19161         namespaced alias symbol.
19162         * modules/stdio (Depends-on): Add c++defs.
19163         (Makefile.am): Update stdio.h rule.
19164
19165         spawn: Avoid #define replacements in C++ mode.
19166         * lib/spawn.in.h: Include c++defs.h.
19167         (posix_spawn, posix_spawnp, posix_spawnattr_init,
19168         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
19169         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
19170         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
19171         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
19172         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
19173         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
19174         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
19175         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
19176         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
19177         In C++, define a namespaced alias symbol.
19178         * modules/spawn (Depends-on): Add c++defs.
19179         (Makefile.am): Update spawn.h rule.
19180
19181         signal: Avoid #define replacements in C++ mode.
19182         * lib/signal.in.h: Include c++defs.h.
19183         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
19184         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
19185         namespaced alias symbol.
19186         * modules/signal (Depends-on): Add c++defs.
19187         (Makefile.am): Update signal.h rule.
19188
19189         search: Avoid #define replacements in C++ mode.
19190         * lib/search.in.h: Include c++defs.h.
19191         (_gl_search_compar_fn, _gl_search_action_fn): New types.
19192         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
19193         symbol.
19194         * modules/search (Depends-on): Add c++defs.
19195         (Makefile.am): Update search.h rule.
19196
19197         math: Avoid #define replacements in C++ mode.
19198         * lib/math.in.h: Include c++defs.h.
19199         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
19200         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
19201         trunc, truncl): In C++, define a namespaced alias symbol.
19202         * modules/math (Depends-on): Add c++defs.
19203         (Makefile.am): Update math.h rule.
19204
19205         locale: Avoid #define replacements in C++ mode.
19206         * lib/locale.in.h: Include c++defs.h.
19207         (duplocale): In C++, define a namespaced alias symbol.
19208         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
19209         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
19210         * modules/locale (Depends-on): Add c++defs.
19211         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
19212
19213         langinfo: Avoid #define replacements in C++ mode.
19214         * lib/langinfo.in.h: Include c++defs.h.
19215         (nl_langinfo): In C++, define a namespaced alias symbol.
19216         * modules/langinfo (Depends-on): Add c++defs.
19217         (Makefile.am): Update langinfo.h rule.
19218
19219         iconv-h: Avoid #define replacements in C++ mode.
19220         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
19221         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
19222         symbol.
19223         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19224         whenever iconv is present.
19225         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
19226         (Makefile.am): Update iconv.h rule.
19227
19228         glob: Avoid #define replacements in C++ mode.
19229         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
19230         (_gl_glob_errfunc_fn): New type.
19231         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
19232         symbol.
19233         * modules/glob (Depends-on): Add c++defs, warn-on-use.
19234         (Makefile.am): Update glob.h rule.
19235
19236         fcntl-h: Avoid #define replacements in C++ mode.
19237         * lib/fcntl.in.h: Include c++defs.h.
19238         (fcntl, open, openat): In C++, define a namespaced alias symbol.
19239         * modules/fcntl-h (Depends-on): Add c++defs.
19240         (Makefile.am): Update fcntl.h rule.
19241
19242         dirent: Avoid #define replacements in C++ mode.
19243         * lib/dirent.in.h: Include c++defs.h.
19244         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
19245         namespaced alias symbol.
19246         (dirfd): Update declaration.
19247         * modules/dirent (Depends-on): Add c++defs.
19248         (Makefile.am): Update dirent.h rule.
19249
19250         ctype: Make it usable in C++ code.
19251         * lib/ctype.in.h: Include c++defs.h.
19252         (isblank): Declare as extern "C".
19253         * modules/ctype (Depends-on): Add c++defs.
19254         (Makefile.am): Update ctype.h rule.
19255
19256         New module 'c++defs'.
19257         * modules/c++defs: New file.
19258         * build-aux/c++defs.h: New file.
19259         Reported by John W. Eaton <jwe@gnu.org>.
19260
19261 2010-03-07  Bruno Haible  <bruno@clisp.org>
19262
19263         logb: Provide missing declaration for Cygwin.
19264         * lib/math.in.h (logb): New declaration.
19265         * m4/logb.m4: New file.
19266         * modules/logb (Files): Add m4/logb.m4.
19267         (Depends-on): Add math.
19268         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
19269         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
19270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
19271         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
19272         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
19273
19274 2010-03-07  Bruno Haible  <bruno@clisp.org>
19275
19276         Fix test-cond link error.
19277         * tests/test-cond.c: Include <stdio.h>.
19278
19279 2010-03-07  Bruno Haible  <bruno@clisp.org>
19280
19281         Fix test-dirent-safer link error.
19282         * modules/dirent-safer-tests (Makefile.am): Define
19283         test_dirent_safer_LDADD.
19284
19285 2010-03-07  Bruno Haible  <bruno@clisp.org>
19286
19287         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
19288         among default module list.
19289
19290 2010-03-07  Bruno Haible  <bruno@clisp.org>
19291
19292         Fix link error on platforms with GNU libiconv.
19293         * modules/unistr/u8-strcoll-tests (Makefile): Define
19294         test_u8_strcoll_LDADD.
19295         * modules/unistr/u16-strcoll-tests (Makefile): Define
19296         test_u16_strcoll_LDADD.
19297         * modules/unistr/u32-strcoll-tests (Makefile): Define
19298         test_u32_strcoll_LDADD.
19299
19300 2010-03-07  Bruno Haible  <bruno@clisp.org>
19301
19302         Use POSIX declarations for socket functions.
19303         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
19304         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
19305         rpl_sendto): Change declaration to match POSIX.
19306         * lib/connect.c (rpl_connect): Likewise.
19307         * lib/accept.c (rpl_accept): Likewise.
19308         * lib/bind.c (rpl_bind): Likewise.
19309         * lib/getpeername.c (rpl_getpeername): Likewise.
19310         * lib/getsockname.c (rpl_getsockname): Likewise.
19311         * lib/recv.c (rpl_recv): Likewise.
19312         * lib/send.c (rpl_send): Likewise.
19313         * lib/recvfrom.c (rpl_recvfrom): Likewise.
19314         * lib/sendto.c (rpl_sendto): Likewise.
19315
19316 2010-03-06  Bruno Haible  <bruno@clisp.org>
19317
19318         Clarify access, euidaccess, faccessat.
19319         * doc/posix-functions/faccessat.texi: Mention security problem under
19320         "Other problems", not "Portability problems".
19321         * doc/posix-functions/access.texi: Likewise. Mention a related security
19322         problem.
19323         * doc/glibc-functions/euidaccess.texi: Mention security problems.
19324         * lib/euidaccess.c: Add comments about platforms.
19325         * lib/unistd.in.h (access, euidaccess): Add warnings.
19326
19327 2010-03-07  Bruno Haible  <bruno@clisp.org>
19328
19329         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
19330         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
19331         (POSIX_SPAWN_SETSCHEDULER): Likewise.
19332         (POSIX_SPAWN_USEVFORK): Define in a way that works when
19333         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19334         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
19335         declare when POSIX_SPAWN_SETSCHEDULER is zero.
19336         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
19337         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
19338         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
19339         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
19340         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
19341         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
19342         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
19343         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
19344         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
19345         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
19346         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
19347         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
19348         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
19349         Likewise.
19350         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
19351         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
19352         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
19353         Likewise.
19354         * tests/test-spawn.c (main): Make it work when
19355         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
19356
19357 2010-03-07  Bruno Haible  <bruno@clisp.org>
19358
19359         Fix incorrect Makefile.am generation in German locale.
19360         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19361         Execute sed command with character range in C locale.
19362
19363 2010-03-06  Bruno Haible  <bruno@clisp.org>
19364
19365         Tests for module 'iconv-h'.
19366         * modules/iconv-h-tests: New file.
19367         * tests/test-iconv-h.c: New file.
19368
19369         New module 'iconv-h'.
19370         * modules/iconv-h: New file.
19371         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
19372         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
19373         (configure.ac): Remove gl_ICONV_H.
19374         (Makefile.am): Remove rule for iconv.h.
19375
19376 2010-03-06  Bruno Haible  <bruno@clisp.org>
19377
19378         More consistent naming of *.m4 files.
19379         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
19380         * modules/wctype (Files): Update.
19381
19382         More consistent naming of *.m4 files.
19383         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
19384         * modules/wchar (Files): Update.
19385
19386 2010-03-06  Jim Meyering  <meyering@redhat.com>
19387
19388         euidaccess: relax license to LGPLv2+
19389         * modules/euidaccess (License): Relax to LGPLv2+.
19390
19391 2010-03-06  Bruno Haible  <bruno@clisp.org>
19392
19393         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
19394         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
19395         (Makefile.am): Augment lib_SOURCES instead.
19396
19397 2010-03-04  Jim Meyering  <meyering@redhat.com>
19398
19399         utime: remove obsolete module
19400         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
19401         unnecessary for years, and has been marked as obsolete for 10 months.
19402         * modules/utime: Remove file.
19403         * lib/utime.c: Remove file.
19404         * m4/utime.m4: Remove file.
19405         * m4/utimes-null.m4: Remove file.
19406         * doc/posix-functions/utime.texi (utime): Remove reference to
19407         the module.  Move the sole "fixed by gnulib" item into the
19408         "problems not fixed by Gnulib" list.
19409         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
19410
19411 2010-03-05  Simon Josefsson  <simon@josefsson.org>
19412
19413         * modules/exit (License): Relax license to LGPLv2+.
19414         (Status): Mark as obsolete.
19415         * NEWS: Mention deprecated 'exit' module.
19416         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
19417         of now obsolete 'exit'.
19418
19419 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19420
19421         fts-lgpl: remove unused module
19422         * modules/fts-lgpl: Remove.
19423         * MODULES.html.sh (func_all_modules): Adjust.
19424         * check-module (find_included_lib_files): Adjust.
19425         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
19426
19427 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
19428
19429         copy-acl: enhance Solaris ACL error handling
19430         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
19431         * lib/set-mode-acl.c (qset_acl): Likewise.
19432
19433 2010-03-02  Bruno Haible  <bruno@clisp.org>
19434
19435         spawn: Don't override the system defined values on FreeBSD 8.
19436         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
19437         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
19438         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
19439         if HAVE_POSIX_SPAWN is 1.
19440         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
19441
19442 2010-03-01  Bruno Haible  <bruno@clisp.org>
19443
19444         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
19445         regarding Automake.
19446
19447 2010-02-25  Bruno Haible  <bruno@clisp.org>
19448
19449         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
19450         * gnulib-tool: Define 'echo' as a function only before the ksh alias
19451         setting, not afterwards.
19452         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
19453
19454 2010-02-24  Eric Blake  <eblake@redhat.com>
19455
19456         bootstrap, git-version-gen: use timestamp
19457         * build-aux/git-version-gen (scriptversion): Force UTC.
19458         * build-aux/bootstrap (scriptversion): New variable.
19459
19460         bootstrap: allow older git
19461         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
19462         older than 1.6.4.  Requested by the libvirt project.
19463
19464 2010-02-23  Eric Blake  <eblake@redhat.com>
19465
19466         warn-on-use: work with old autoconf
19467         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
19468         AS_VAR semantics of autoconf 2.60.
19469         Reported by Bruno Haible.
19470
19471         bootstrap: improve some comments
19472         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
19473         clarification comments.
19474
19475         gettimeofday: provide correct function
19476         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
19477         when replacement is declared, otherwise provide gettimeofday.
19478         Reported by Michael Goffioul.
19479
19480 2010-02-23  Jim Meyering  <meyering@redhat.com>
19481
19482         lib-ignore: relax license to "unlimited", not LGPLv2+
19483         * modules/lib-ignore (License): Relax to "unlimited".
19484
19485 2010-02-23  Jim Meyering  <meyering@redhat.com>
19486
19487         lib-ignore: relax license to LGPLv2+
19488         * modules/lib-ignore (License): Relax to LGPLv2+.
19489
19490 2010-02-22  Eric Blake  <eblake@redhat.com>
19491
19492         lseek: avoid bash 3.2 broken pipe bug
19493         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
19494         warning from bash 3.2.
19495         Reported by Ben Pfaff, with analysis from Bruno Haible.
19496
19497         bootstrap: support non-FSF copyright holder
19498         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
19499         bootstrap.conf override of COPYRIGHT_HOLDER.
19500         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
19501
19502         bootstrap: interoperate with gettext 0.14.1
19503         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
19504
19505         bootstrap: allow for alternate submodule location
19506         * build-aux/bootstrap (gnulib_path): New variable; use instead of
19507         hardcoding submodule location.
19508         (gnulib_mk): Allow direct use of Makefile.am.
19509
19510         bootstrap: use GNULIB_SRCDIR to reduce disk usage
19511         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
19512         rather than reconfiguring where the submodule points.
19513
19514         gettimeofday: restore support for platforms that lack function
19515         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
19516         replacement if function is missing.
19517         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
19518         * modules/sys_time (Makefile.am): Substitute it.
19519         * lib/sys_time.in.h (gettimeofday): Check it.
19520         Reported by Michael Goffioul.
19521
19522 2010-02-21  Bruno Haible  <bruno@clisp.org>
19523
19524         * lib/stdio.in.h (obstack_printf): Fix typo.
19525
19526 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
19527
19528         vc-list-files: use bzr ls's -R option
19529         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
19530         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
19531
19532 2010-02-21  Jim Meyering  <meyering@redhat.com>
19533
19534         init.sh: fix EXEEXT shims to work also for names like test-prog
19535         * tests/init.sh: Re-exec a better shell, when needed.
19536         If the current shell lacks support for posix $(...), an init.sh-using
19537         test will now try to find a shell that supports that.  If EXEEXT is
19538         nonempty, we also require support for hyphen-in-alias-name and shell
19539         substitutions like ${var#glob}.  Failure to find such a shell results
19540         in a skipped test.
19541
19542 2010-02-21  Bruno Haible  <bruno@clisp.org>
19543
19544         Really work around around "broken pipe" error message from bash 3.2.
19545         * gnulib-tool (func_reset_sigpipe): Remove function.
19546         (echo): In bash 3.2, define to a function that uses printf.
19547         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
19548
19549 2010-02-20  Bruno Haible  <bruno@clisp.org>
19550
19551         Restore support for automake 1.9.6 with autoconf 2.61.
19552         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
19553         Reported by James Youngman <jay@gnu.org>.
19554
19555 2010-02-20  Bruno Haible  <bruno@clisp.org>
19556
19557         Improve *printf warning condition.
19558         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
19559         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
19560         and the function is overridden due to SIGPIPE emulation.
19561
19562 2010-02-20  Bruno Haible  <bruno@clisp.org>
19563
19564         * lib/stdio.in.h: Tweak comments.
19565
19566 2010-02-19  Bruno Haible  <bruno@clisp.org>
19567
19568         Make it easier to find modules. New gnulib-tool option '--find'.
19569         * gnulib-tool: New option --find.
19570         (func_usage): Document it.
19571         (func_sanitize_modulelist): New function, extracted from
19572         func_all_modules.
19573         (func_all_modules): Invoke it.
19574         * doc/gnulib-tool.texi (Which modules?): New node.
19575
19576 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
19577
19578         * lib/sys_select.in.h: Provide select replacement even if
19579         sys/select.h exists on a system, for Interix.
19580
19581 2010-02-18  Jim Meyering  <meyering@redhat.com>
19582
19583         init.sh: don't use $(...) just yet
19584         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
19585         to accommodate e.g., Solaris' /bin/sh.
19586
19587 2010-02-17  Bruno Haible  <bruno@clisp.org>
19588
19589         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
19590         Reported by Ludovic Courtès <ludo@gnu.org>.
19591
19592 2010-02-16  Simon Josefsson  <simon@josefsson.org>
19593
19594         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
19595         linking with -lintl.
19596
19597 2010-02-17  Simon Josefsson  <simon@josefsson.org>
19598
19599         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
19600         if not provided by the system's netdb.h.  Reported by
19601         ludo@gnu.org (Ludovic Courtès).
19602
19603 2010-02-15  Jim Meyering  <meyering@redhat.com>
19604
19605         init.sh: improve portability and efficiency
19606         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
19607         "dummy" in a for loop.
19608         Use '!', not '^' to select the complement of a character set used
19609         in a "case" statement.
19610         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
19611         Suggestions from Eric Blake.
19612
19613         init.sh: automatically accommodate programs with the .exe suffix
19614         Automatically arrange for an invocation of "prog" to execute the
19615         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
19616         may use the simpler "prog", yet still work when built on a system
19617         that requires specifying the added suffix.
19618         Do this by constructing a function named "prog" that invokes
19619         "prog.exe" for each .exe file in selected directories.
19620         * tests/init.sh (find_exe_basenames_): New function.
19621         (create_exe_shim_functions_): New function.
19622         (path_prepend_): Use it.
19623
19624         maint.mk: mark syntax-check sc_*.m rules as .PHONY
19625         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
19626         "make -t syntax-check" doesn't create a ton of sc_*.m files.
19627
19628 2010-02-14  Jim Meyering  <meyering@redhat.com>
19629
19630         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
19631         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
19632         (sc_prohibit_hash_pjw_without_use): New rule.
19633
19634         maint.mk: allow the default upload destination dir to be overridden
19635         * top/maint.mk (upload_dest_dir_): Define with a default that
19636         preserves the status quo.
19637         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
19638         Reported by Peter Simons.
19639
19640         maint.mk: prohibit inclusion of "hash.h" without_use
19641         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
19642
19643 2010-02-10  Jim Meyering  <meyering@redhat.com>
19644
19645         maint.mk: prohibit inclusion of "ignore-value.h" without_use
19646         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
19647
19648 2010-02-09  Eric Blake  <ebb9@byu.net>
19649         and Bruno Haible  <bruno@clisp.org>
19650
19651         obstack-printf-posix: ensure declaration
19652         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
19653         extracted from gl_FUNC_OBSTACK_PRINTF.
19654         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
19655         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19656         Likewise.
19657         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
19658         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
19659         0.
19660
19661 2010-02-08  Bruno Haible  <bruno@clisp.org>
19662
19663         gnulib-tool: Fix typo in 2010-02-07 commit.
19664         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
19665         Reported by Eric Blake.
19666
19667 2010-02-07  Bruno Haible  <bruno@clisp.org>
19668
19669         gnulib-tool: Fix up caching patches.
19670         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
19671         option --no-cache. Use associative arrays when supported by the shell.
19672         (sed_comments): New variable.
19673         (modcache): Renamed from do_cache.
19674         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
19675         abbreviate unnecessarily.
19676         (have_associative): New variable.
19677         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
19678         way also for ksh and zsh.
19679         (func_init_sed_convert_to_cache_statements): New function, extracted
19680         from func_cache_lookup_module. Add support for associative arrays.
19681         Don't set the c_MODULE_cached variable here. Ignore all lines before
19682         the first field header. Remove only the final newline, not all trailing
19683         newlines. Support empty fields correctly. Limit the use of 'eval' to
19684         assignments.
19685         (func_get_description, func_get_status, func_get_notice,
19686         func_get_applicability, func_get_filelist, func_get_dependencies,
19687         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
19688         func_get_automake_snippet, func_get_include_directive,
19689         func_get_link_directive, func_get_license, func_get_maintainer):
19690         Update documentation. List the unoptimized code first. Add support for
19691         associative arrays. Limit the use of 'eval' to assignments.
19692         (func_get_applicability): Undo stylistic pessimisations.
19693         (func_get_automake_snippet, func_get_include_directive): Reduce code
19694         duplication.
19695         (func_modules_transitive_closure, func_modules_add_dummy,
19696         func_modules_notice, func_modules_to_filelist, func_add_file,
19697         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
19698         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
19699         func_create_testdir, func_create_megatestdir): Update documentation.
19700
19701 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19702
19703         * gnulib-tool (func_cache_lookup_module): Store the module name
19704         belonging to the cache variable; error out if two different
19705         module names map to the same cache variable name.
19706
19707 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19708
19709         gnulib-tool: Make caching optional.
19710         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
19711         Update matching short versions of --no-changelog.
19712         (func_usage): Update.
19713         (sed_extract_cache_prog): Renamed from ...
19714         (sed_extract_prog): ... this; revert to old extraction script.
19715         (func_get_description, func_get_status)
19716         (func_get_notice, func_get_applicability, func_get_filelist)
19717         (func_get_dependencies, func_get_autoconf_early_snippet)
19718         (func_get_autoconf_snippet, func_get_automake_snippet)
19719         (func_get_include_directive, func_get_link_directive)
19720         (func_get_license, func_get_maintainer): If $do_cache is false,
19721         use old, non-caching extraction scripts.
19722         Suggestion by Bruno Haible.
19723
19724 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19725
19726         gnulib-tool: cache module metainformation.
19727         * gnulib-tool (sed_extract_prog): Match newline before each
19728         header, and rewrite header to a shell variable suffix.
19729         (func_cache_var, func_cache_lookup_module): New functions,
19730         to turn a module name into a cache variable prefix, and to
19731         look up and cache module metainformation.
19732         (func_get_description, func_get_status)
19733         (func_get_notice, func_get_applicability, func_get_filelist)
19734         (func_get_dependencies, func_get_autoconf_early_snippet)
19735         (func_get_autoconf_snippet, func_get_automake_snippet)
19736         (func_get_include_directive, func_get_link_directive)
19737         (func_get_license, func_get_maintainer): Use
19738         func_cache_lookup_module.
19739
19740 2010-02-07  Bruno Haible  <bruno@clisp.org>
19741
19742         fnctl: Fix missing dependency.
19743         * modules/fcntl (Depends-on): Add getdtablesize.
19744         Reported by John W. Eaton <jwe@gnu.org>.
19745
19746 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19747
19748         Argp: fix recognition of short alias options.
19749
19750         * lib/argp-parse.c (convert_options): Fix improper use of
19751         `|' between character values.
19752         * tests/test-argp.c (group1_option): New alias option
19753         --read (-r).
19754         (group1_parser): Special handling for 'r'.
19755         (test15): New test case.
19756         (test_fun): Add test15.
19757         * tests/test-argp-2.sh: Update expected --help and --usage
19758         outputs.
19759
19760 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
19761
19762         * tests/test-argp.c: Fix indentation.
19763
19764 2010-02-04  Eric Blake  <ebb9@byu.net>
19765
19766         gettimeofday: expose type of second argument
19767         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
19768         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
19769         * tests/test-gettimeofday.c: Use it to silence warning.
19770         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
19771         the issue.
19772
19773 2010-02-03  Jim Meyering  <meyering@redhat.com>
19774
19775         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
19776         * lib/regcomp.c (TYPE_SIGNED): Define.
19777         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
19778
19779         regcomp.c: avoid a new -Wshadow warning
19780         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
19781
19782 2010-02-01  Jim Meyering  <meyering@redhat.com>
19783
19784         removing useless parentheses in cpp #define directives
19785         For motivation, see commit c0221df4, "define STREQ(a,b)
19786         consistently, removing useless parentheses"
19787         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
19788         * lib/mountlist.c (MNT_IGNORE): Likewise.
19789         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
19790
19791 2010-02-01  Eric Blake  <ebb9@byu.net>
19792
19793         sys_time: use link-warning
19794         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
19795         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
19796         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
19797         * modules/sys_time (Depends-on): Add warn-on-use.
19798         (Makefile.am): Always build replacement.
19799         (configure.ac): Update substitutions.
19800         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
19801         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
19802         bother with SYS_TIME_H.
19803         * modules/gettimeofday (configure.ac): Declare indicator.
19804         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
19805         in use.
19806
19807         closein-tests: silence compiler warning
19808         * tests/test-closein.c (main): Ignore fread result.
19809         * modules/closein-tests (Depends-on): Add ignore-value.
19810
19811         tests: silence warning about system return
19812         * tests/test-areadlink-with-size.c (main): Ignore system result.
19813         * tests/test-areadlink.c (main): Likewise.
19814         * tests/test-areadlinkat-with-size.c (main): Likewise.
19815         * tests/test-areadlinkat.c (main): Likewise.
19816         * tests/test-canonicalize-lgpl.c (main): Likewise.
19817         * tests/test-canonicalize.c (main): Likewise.
19818         * tests/test-chown.c (main): Likewise.
19819         * tests/test-fchownat.c (main): Likewise.
19820         * tests/test-fdutimensat.c (main): Likewise.
19821         * tests/test-fstatat.c (main): Likewise.
19822         * tests/test-futimens.c (main): Likewise.
19823         * tests/test-lchown.c (main): Likewise.
19824         * tests/test-link.c (main): Likewise.
19825         * tests/test-linkat.c (main): Likewise.
19826         * tests/test-lstat.c (main): Likewise.
19827         * tests/test-mkdir.c (main): Likewise.
19828         * tests/test-mkdirat.c (main): Likewise.
19829         * tests/test-mkfifo.c (main): Likewise.
19830         * tests/test-mkfifoat.c (main): Likewise.
19831         * tests/test-mknod.c (main): Likewise.
19832         * tests/test-readlink.c (main): Likewise.
19833         * tests/test-remove.c (main): Likewise.
19834         * tests/test-rename.c (main): Likewise.
19835         * tests/test-renameat.c (main): Likewise.
19836         * tests/test-rmdir.c (main): Likewise.
19837         * tests/test-symlink.c (main): Likewise.
19838         * tests/test-symlinkat.c (main): Likewise.
19839         * tests/test-unlink.c (main): Likewise.
19840         * tests/test-unlinkat.c (main): Likewise.
19841         * tests/test-utimens.c (main): Likewise.
19842         * tests/test-utimensat.c (main): Likewise.
19843         * modules/areadlink-tests (Depends-on): Add ignore-value.
19844         * modules/areadlink-with-size-tests (Depends-on): Likewise.
19845         * modules/areadlinkat-tests (Depends-on): Likewise.
19846         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
19847         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
19848         * modules/canonicalize-tests (Depends-on): Likewise.
19849         * modules/chown-tests (Depends-on): Likewise.
19850         * modules/fdutimensat-tests (Depends-on): Likewise.
19851         * modules/futimens-tests (Depends-on): Likewise.
19852         * modules/lchown-tests (Depends-on): Likewise.
19853         * modules/link-tests (Depends-on): Likewise.
19854         * modules/linkat-tests (Depends-on): Likewise.
19855         * modules/lstat-tests (Depends-on): Likewise.
19856         * modules/mkdir-tests (Depends-on): Likewise.
19857         * modules/mkfifo-tests (Depends-on): Likewise.
19858         * modules/mkfifoat-tests (Depends-on): Likewise.
19859         * modules/mknod-tests (Depends-on): Likewise.
19860         * modules/openat-tests (Depends-on): Likewise.
19861         * modules/readlink-tests (Depends-on): Likewise.
19862         * modules/remove-tests (Depends-on): Likewise.
19863         * modules/rename-tests (Depends-on): Likewise.
19864         * modules/renameat-tests (Depends-on): Likewise.
19865         * modules/rmdir-tests (Depends-on): Likewise.
19866         * modules/symlink-tests (Depends-on): Likewise.
19867         * modules/symlinkat-tests (Depends-on): Likewise.
19868         * modules/unlink-tests (Depends-on): Likewise.
19869         * modules/utimens-tests (Depends-on): Likewise.
19870         * modules/utimensat-tests (Depends-on): Likewise.
19871
19872 2010-01-31  Bruno Haible  <bruno@clisp.org>
19873
19874         Perform the same test for many <math.h> functions.
19875         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
19876         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
19877         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
19878         of gl_MATHFUNC.
19879         * modules/acos (configure.ac): Likewise.
19880         * modules/asin (configure.ac): Likewise.
19881         * modules/atan (configure.ac): Likewise.
19882         * modules/atan2 (configure.ac): Likewise.
19883         * modules/cbrt (configure.ac): Likewise.
19884         * modules/copysign (configure.ac): Likewise.
19885         * modules/cos (configure.ac): Likewise.
19886         * modules/cosh (configure.ac): Likewise.
19887         * modules/erf (configure.ac): Likewise.
19888         * modules/erfc (configure.ac): Likewise.
19889         * modules/exp (configure.ac): Likewise.
19890         * modules/fmod (configure.ac): Likewise.
19891         * modules/hypot (configure.ac): Likewise.
19892         * modules/j0 (configure.ac): Likewise.
19893         * modules/j1 (configure.ac): Likewise.
19894         * modules/jn (configure.ac): Likewise.
19895         * modules/lgamma (configure.ac): Likewise.
19896         * modules/log (configure.ac): Likewise.
19897         * modules/log10 (configure.ac): Likewise.
19898         * modules/log1p (configure.ac): Likewise.
19899         * modules/pow (configure.ac): Likewise.
19900         * modules/remainder (configure.ac): Likewise.
19901         * modules/sin (configure.ac): Likewise.
19902         * modules/sinh (configure.ac): Likewise.
19903         * modules/tan (configure.ac): Likewise.
19904         * modules/tanh (configure.ac): Likewise.
19905         * modules/y0 (configure.ac): Likewise.
19906         * modules/y1 (configure.ac): Likewise.
19907         * modules/yn (configure.ac): Likewise.
19908         Suggested by Paolo Bonzini.
19909
19910 2010-01-31  Bruno Haible  <bruno@clisp.org>
19911
19912         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
19913
19914 2010-01-31  Bruno Haible  <bruno@clisp.org>
19915
19916         Work around getdelim() bug on FreeBSD 8.0.
19917         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
19918         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
19919         not work.
19920         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
19921         is 1.
19922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
19923         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
19924         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
19925         a non-zero size.
19926         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
19927
19928 2010-01-31  Bruno Haible  <bruno@clisp.org>
19929
19930         Work around getline() bug on FreeBSD 8.0.
19931         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
19932         and a non-zero size.
19933         * tests/test-getline.c (main): Likewise.
19934         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
19935         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
19936
19937 2010-01-28  Eric Blake  <ebb9@byu.net>
19938
19939         regex: fix build failure
19940         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
19941         platforms.
19942
19943 2010-01-28  Jim Meyering  <meyering@redhat.com>
19944
19945         regex: do not ignore memory allocation failure
19946         * lib/regex_internal.c (create_cd_newstate): Detect
19947         re_node_set_init_copy failure.   Extracted from glibc commit
19948         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19949
19950         regex: sync more white-space changes from libc
19951         * lib/regex_internal.c: White-space only changes.
19952         * lib/regexec.c: Likewise.
19953
19954         regex: add many uses of __attribute_warn_unused_result__
19955         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
19956         * lib/regexec.c: Likewise.
19957         Extracted from a messy glibc commit.
19958
19959         regcomp.c: spelling and merge-artifact from glibc
19960         * lib/regcomp.c: Merge remainder of glibc's
19961         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19962
19963         regcomp.c: sync white-space changes from glibc
19964         * lib/regcomp.c: Merge to accommodate white space
19965         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
19966
19967         regcomp.c: do not ignore internal return values
19968         * lib/regcomp.c: Do not ignore internal return values.
19969         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
19970         but without its white-space changes and spelling fixes.
19971
19972         regex_internal.h: define __attribute_warn_unused_result__
19973         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
19974
19975         maint: add a syntax-check rule to check for vulnerable Makefile.in
19976         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
19977
19978 2010-01-27  Jim Meyering  <meyering@redhat.com>
19979
19980         ncftpput-ftp: clean up spaces
19981         * build-aux/ncftpput-ftp: Make Copyright line consistent.
19982         Remove trailing blanks.
19983
19984 2010-01-27  Simon Josefsson  <simon@josefsson.org>
19985
19986         * build-aux/git-version-gen: Fix copyright statement.
19987         * build-aux/gnupload: Likewise.
19988         * tests/test-arcfour.c: Likewise.
19989         * tests/test-arctwo.c: Likewise.
19990         * tests/test-count-one-bits.c: Likewise.
19991         * tests/test-crc.c: Likewise.
19992         * tests/test-des.c: Likewise.
19993         * tests/test-gc-arcfour.c: Likewise.
19994         * tests/test-gc-arctwo.c: Likewise.
19995         * tests/test-gc-des.c: Likewise.
19996         * tests/test-gc-hmac-md5.c: Likewise.
19997         * tests/test-gc-hmac-sha1.c: Likewise.
19998         * tests/test-gc-md2.c: Likewise.
19999         * tests/test-gc-md4.c: Likewise.
20000         * tests/test-gc-md5.c: Likewise.
20001         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20002         * tests/test-gc-rijndael.c: Likewise.
20003         * tests/test-gc-sha1.c: Likewise.
20004         * tests/test-gc.c: Likewise.
20005         * tests/test-gethostname.c: Likewise.
20006         * tests/test-gettimeofday.c: Likewise.
20007         * tests/test-hash.c: Likewise.
20008         * tests/test-hmac-md5.c: Likewise.
20009         * tests/test-hmac-sha1.c: Likewise.
20010         * tests/test-md2.c: Likewise.
20011         * tests/test-md4.c: Likewise.
20012         * tests/test-md5.c: Likewise.
20013         * tests/test-memchr.c: Likewise.
20014         * tests/test-memchr2.c: Likewise.
20015         * tests/test-memcmp.c: Likewise.
20016         * tests/test-memmem.c: Likewise.
20017         * tests/test-memrchr.c: Likewise.
20018         * tests/test-rawmemchr.c: Likewise.
20019         * tests/test-read-file.c: Likewise.
20020         * tests/test-rijndael.c: Likewise.
20021         * tests/test-sockets.c: Likewise.
20022         * tests/test-strchrnul.c: Likewise.
20023         * tests/test-strstr.c: Likewise.
20024         * tests/test-strtod.c: Likewise.
20025         * build-aux/ncftpput-ftp: Likewise.
20026
20027 2010-01-26  Eric Blake  <ebb9@byu.net>
20028
20029         ignore-value: update recommended header name
20030         * modules/ignore-value (Include): Only use <> for headers that
20031         exist in glibc.
20032
20033 2010-01-26  Jim Meyering  <meyering@redhat.com>
20034
20035         test-userspec.c: avoid compiler warnings
20036         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
20037         and "initialization discards qualifiers..." warnings.
20038         Put the first "uid" in its own scope, and make char* members "const".
20039
20040 2010-01-25  Bruno Haible  <bruno@clisp.org>
20041
20042         gnulib-tool: Make warning diagnostics consistent.
20043         * gnulib-tool (func_warning): New function.
20044         Use it everywhere where gnulib-tool produces output to stderr and it is
20045         not a fatal error.
20046
20047 2010-01-25  Bruno Haible  <bruno@clisp.org>
20048
20049         Fix test dependencies.
20050         * modules/xstrtol-tests (Depends-on): Add inttypes.
20051         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
20052
20053 2010-01-25 Pádraig Brady <P@draigBrady.com>
20054
20055         syntax-check: detect incorrect boolean macro values in config.h
20056         * modules/maintainer-makefile (configure.ac): Parameterize the location
20057         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
20058         The logic is from Eric Blake and the location indicated by Jim Meyering.
20059         Note the more natural CONFIG_HEADER name is prohibited by automake
20060         for backwards compatibility reasons.
20061         * top/maint.mk (sc_Wundef_boolean): New rule.
20062
20063 2010-01-25  Jim Meyering  <meyering@redhat.com>
20064
20065         bootstrap: detect MacOS 10.6's shasum, too
20066         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
20067         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
20068
20069 2010-01-23  Jim Meyering  <meyering@redhat.com>
20070
20071         xstrtoll: new module
20072         * modules/xstrtoll: New file.
20073         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
20074         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
20075         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
20076         ./configure fails if you use this module and lack "long long".
20077         * modules/xstrtoll-tests: New module.
20078         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
20079         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
20080         new init.sh-based test framework.
20081
20082 2010-01-24  Bruno Haible  <bruno@clisp.org>
20083
20084         Tests for module 'yn'.
20085         * modules/yn-tests: New file.
20086         * tests/test-yn.c: New file.
20087
20088         Tests for module 'y1'.
20089         * modules/y1-tests: New file.
20090         * tests/test-y1.c: New file.
20091
20092         Tests for module 'y0'.
20093         * modules/y0-tests: New file.
20094         * tests/test-y0.c: New file.
20095
20096         Tests for module 'tanh'.
20097         * modules/tanh-tests: New file.
20098         * tests/test-tanh.c: New file.
20099
20100         Tests for module 'tan'.
20101         * modules/tan-tests: New file.
20102         * tests/test-tan.c: New file.
20103
20104         Tests for module 'sqrt'.
20105         * modules/sqrt-tests: New file.
20106         * tests/test-sqrt.c: New file.
20107
20108         Tests for module 'sinh'.
20109         * modules/sinh-tests: New file.
20110         * tests/test-sinh.c: New file.
20111
20112         Tests for module 'sin'.
20113         * modules/sin-tests: New file.
20114         * tests/test-sin.c: New file.
20115
20116         Tests for module 'rint'.
20117         * modules/rint-tests: New file.
20118         * tests/test-rint.c: New file.
20119
20120         Tests for module 'remainder'.
20121         * modules/remainder-tests: New file.
20122         * tests/test-remainder.c: New file.
20123
20124         Tests for module 'pow'.
20125         * modules/pow-tests: New file.
20126         * tests/test-pow.c: New file.
20127
20128         Tests for module 'nextafter'.
20129         * modules/nextafter-tests: New file.
20130         * tests/test-nextafter.c: New file.
20131
20132         Tests for module 'modf'.
20133         * modules/modf-tests: New file.
20134         * tests/test-modf.c: New file.
20135
20136         Tests for module 'logb'.
20137         * modules/logb-tests: New file.
20138         * tests/test-logb.c: New file.
20139
20140         Tests for module 'log1p'.
20141         * modules/log1p-tests: New file.
20142         * tests/test-log1p.c: New file.
20143
20144         Tests for module 'log10'.
20145         * modules/log10-tests: New file.
20146         * tests/test-log10.c: New file.
20147
20148         Tests for module 'log'.
20149         * modules/log-tests: New file.
20150         * tests/test-log.c: New file.
20151
20152         Tests for module 'lgamma'.
20153         * modules/lgamma-tests: New file.
20154         * tests/test-lgamma.c: New file.
20155
20156         Tests for module 'ldexp'.
20157         * modules/ldexp-tests: New file.
20158         * tests/test-ldexp.c: New file.
20159
20160         Tests for module 'jn'.
20161         * modules/jn-tests: New file.
20162         * tests/test-jn.c: New file.
20163
20164         Tests for module 'j1'.
20165         * modules/j1-tests: New file.
20166         * tests/test-j1.c: New file.
20167
20168         Tests for module 'j0'.
20169         * modules/j0-tests: New file.
20170         * tests/test-j0.c: New file.
20171
20172         Tests for module 'hypot'.
20173         * modules/hypot-tests: New file.
20174         * tests/test-hypot.c: New file.
20175
20176         Tests for module 'fmod'.
20177         * modules/fmod-tests: New file.
20178         * tests/test-fmod.c: New file.
20179
20180         Tests for module 'fabs'.
20181         * modules/fabs-tests: New file.
20182         * tests/test-fabs.c: New file.
20183
20184         Tests for module 'exp'.
20185         * modules/exp-tests: New file.
20186         * tests/test-exp.c: New file.
20187
20188         Tests for module 'erfc'.
20189         * modules/erfc-tests: New file.
20190         * tests/test-erfc.c: New file.
20191
20192         Tests for module 'erf'.
20193         * modules/erf-tests: New file.
20194         * tests/test-erf.c: New file.
20195
20196         Tests for module 'cosh'.
20197         * modules/cosh-tests: New file.
20198         * tests/test-cosh.c: New file.
20199
20200         Tests for module 'cos'.
20201         * modules/cos-tests: New file.
20202         * tests/test-cos.c: New file.
20203
20204         Tests for module 'copysign'.
20205         * modules/copysign-tests: New file.
20206         * tests/test-copysign.c: New file.
20207
20208         Tests for module 'cbrt'.
20209         * modules/cbrt-tests: New file.
20210         * tests/test-cbrt.c: New file.
20211
20212         Tests for module 'atan2'.
20213         * modules/atan2-tests: New file.
20214         * tests/test-atan2.c: New file.
20215
20216         Tests for module 'atan'.
20217         * modules/atan-tests: New file.
20218         * tests/test-atan.c: New file.
20219
20220         Tests for module 'asin'.
20221         * modules/asin-tests: New file.
20222         * tests/test-asin.c: New file.
20223
20224         Tests for module 'acos'.
20225         * modules/acos-tests: New file.
20226         * tests/test-acos.c: New file.
20227
20228 2010-01-24  Bruno Haible  <bruno@clisp.org>
20229
20230         Fix tests for common <math.h> functions.
20231         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
20232         code snippet that references the function pointer, rather than merely
20233         calling the function. Substitute the FUNC_LIBM variable.
20234         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
20235         * modules/acos (configure.ac): Likewise.
20236         * modules/asin (configure.ac): Likewise.
20237         * modules/atan (configure.ac): Likewise.
20238         * modules/atan2 (configure.ac): Likewise.
20239         * modules/cbrt (configure.ac): Likewise.
20240         * modules/copysign (configure.ac): Likewise.
20241         * modules/cos (configure.ac): Likewise.
20242         * modules/cosh (configure.ac): Likewise.
20243         * modules/erf (configure.ac): Likewise.
20244         * modules/erfc (configure.ac): Likewise.
20245         * modules/exp (configure.ac): Likewise.
20246         * modules/fabs (configure.ac): Likewise.
20247         * modules/fmod (configure.ac): Likewise.
20248         * modules/hypot (configure.ac): Likewise.
20249         * modules/j0 (configure.ac): Likewise.
20250         * modules/j1 (configure.ac): Likewise.
20251         * modules/jn (configure.ac): Likewise.
20252         * modules/ldexp (configure.ac): Likewise.
20253         * modules/lgamma (configure.ac): Likewise.
20254         * modules/log (configure.ac): Likewise.
20255         * modules/log10 (configure.ac): Likewise.
20256         * modules/log1p (configure.ac): Likewise.
20257         * modules/logb (configure.ac): Likewise.
20258         * modules/modf (configure.ac): Likewise.
20259         * modules/nextafter (configure.ac): Likewise.
20260         * modules/pow (configure.ac): Likewise.
20261         * modules/remainder (configure.ac): Likewise.
20262         * modules/rint (configure.ac): Likewise.
20263         * modules/sin (configure.ac): Likewise.
20264         * modules/sinh (configure.ac): Likewise.
20265         * modules/tan (configure.ac): Likewise.
20266         * modules/tanh (configure.ac): Likewise.
20267         * modules/y0 (configure.ac): Likewise.
20268         * modules/y1 (configure.ac): Likewise.
20269         * modules/yn (configure.ac): Likewise.
20270
20271 2010-01-24  Bruno Haible  <bruno@clisp.org>
20272
20273         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
20274         * tests/test-acosl.c (x): New variable.
20275         (main): Store argument in x and fetch it from x.
20276         * tests/test-asinl.c (x): New variable.
20277         (main): Store argument in x and fetch it from x.
20278         * tests/test-atanl.c (x): New variable.
20279         (main): Store argument in x and fetch it from x.
20280         * tests/test-cosl.c (x): New variable.
20281         (main): Store argument in x and fetch it from x.
20282         * tests/test-expl.c (x): New variable.
20283         (main): Store argument in x and fetch it from x.
20284         * tests/test-logl.c (x): New variable.
20285         (main): Store argument in x and fetch it from x.
20286         * tests/test-sinl.c (x): New variable.
20287         (main): Store argument in x and fetch it from x.
20288         * tests/test-sqrtl.c (x): New variable.
20289         (main): Store argument in x and fetch it from x.
20290         * tests/test-tanl.c (x): New variable.
20291         (main): Store argument in x and fetch it from x.
20292
20293 2010-01-24  Bruno Haible  <bruno@clisp.org>
20294
20295         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
20296         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
20297         assignments to the initial TESTS_ENVIRONMENT.
20298         * doc/gnulib.texi (Unit test modules): Document it.
20299         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
20300         TESTS_ENVIRONMENT.
20301         * modules/btowc-tests (Makefile.am): Likewise.
20302         * modules/c-stack-tests (Makefile.am): Likewise.
20303         * modules/c-strcase-tests (Makefile.am): Likewise.
20304         * modules/copy-file-tests (Makefile.am): Likewise.
20305         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
20306         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
20307         * modules/mbrtowc-tests (Makefile.am): Likewise.
20308         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20309         * modules/mbscasestr-tests (Makefile.am): Likewise.
20310         * modules/mbschr-tests (Makefile.am): Likewise.
20311         * modules/mbscspn-tests (Makefile.am): Likewise.
20312         * modules/mbsinit-tests (Makefile.am): Likewise.
20313         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20314         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
20315         * modules/mbspbrk-tests (Makefile.am): Likewise.
20316         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20317         * modules/mbsrchr-tests (Makefile.am): Likewise.
20318         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
20319         * modules/mbsspn-tests (Makefile.am): Likewise.
20320         * modules/mbsstr-tests (Makefile.am): Likewise.
20321         * modules/nl_langinfo-tests (Makefile.am): Likewise.
20322         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
20323         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20324         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20325         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20326         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20327         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
20328         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20329         * modules/wcrtomb-tests (Makefile.am): Likewise.
20330         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
20331         * modules/wcsrtombs-tests (Makefile.am): Likewise.
20332         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
20333         assignments from TESTS_ENVIRONMENT.
20334         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
20335         augmentation.
20336         * modules/argp-version-etc-tests (Makefile.am): Likewise.
20337         * modules/atexit-tests (Makefile.am): Likewise.
20338         * modules/binary-io-tests (Makefile.am): Likewise.
20339         * modules/closein-tests (Makefile.am): Likewise.
20340         * modules/dprintf-posix-tests (Makefile.am): Likewise.
20341         * modules/exclude-tests (Makefile.am): Likewise.
20342         * modules/fflush-tests (Makefile.am): Likewise.
20343         * modules/fpending-tests (Makefile.am): Likewise.
20344         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20345         * modules/freadahead-tests (Makefile.am): Likewise.
20346         * modules/freadptr-tests (Makefile.am): Likewise.
20347         * modules/freadseek-tests (Makefile.am): Likewise.
20348         * modules/fseek-tests (Makefile.am): Likewise.
20349         * modules/fseeko-tests (Makefile.am): Likewise.
20350         * modules/ftell-tests (Makefile.am): Likewise.
20351         * modules/ftello-tests (Makefile.am): Likewise.
20352         * modules/idpriv-drop-tests (Makefile.am): Likewise.
20353         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
20354         * modules/lseek-tests (Makefile.am): Likewise.
20355         * modules/parse-duration-tests (Makefile.am): Likewise.
20356         * modules/perror-tests (Makefile.am): Likewise.
20357         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
20358         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
20359         * modules/pipe-tests (Makefile.am): Likewise.
20360         * modules/pread-tests (Makefile.am): Likewise.
20361         * modules/printf-posix-tests (Makefile.am): Likewise.
20362         * modules/select-tests (Makefile.am): Likewise.
20363         * modules/sigpipe-tests (Makefile.am): Likewise.
20364         * modules/tsearch-tests (Makefile.am): Likewise.
20365         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
20366         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
20367         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20368         * modules/uniwidth/width-tests (Makefile.am): Likewise.
20369         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
20370         * modules/version-etc-tests (Makefile.am): Likewise.
20371         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20372         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20373         * modules/xalloc-die-tests (Makefile.am): Likewise.
20374         * modules/xprintf-posix-tests (Makefile.am): Likewise.
20375         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20376         * modules/xstrtol-tests (Makefile.am): Likewise.
20377         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20378         * modules/yesno-tests (Makefile.am): Likewise.
20379         Suggested by Jim Meyering.
20380
20381 2010-01-24  Bruno Haible  <bruno@clisp.org>
20382
20383         More documentation.
20384         * doc/gnulib.texi (Writing modules): New chapter.
20385         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
20386         the new chapter.
20387
20388 2010-01-24  Jim Meyering  <meyering@redhat.com>
20389
20390         maint.mk: do not prepend "./" after filtering
20391         * top/maint.mk (_prepend_srcdir_prefix): New variable
20392         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
20393         "./" when $(srcdir) is ".".
20394
20395         define STREQ(a,b) consistently, removing useless parentheses
20396         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
20397         since the only risk is that "a" or "b" contains an unparenthesized
20398         comma, but if either did that, STREQ would have 3 or more arguments.
20399         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
20400         * lib/fts.c (STREQ): Remove unnecessary parentheses.
20401         * lib/hash-triple.c (STREQ): Likewise.
20402         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
20403         * lib/getugroups.c (STREQ): Likewise.
20404
20405 2010-01-23  Jim Meyering  <meyering@redhat.com>
20406
20407         maint.mk: fix syntax-check in a non-srcdir build directory
20408         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
20409         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
20410
20411 2010-01-22  Jim Meyering  <meyering@redhat.com>
20412
20413         userspec: add unit tests
20414         * tests/test-userspec.c: New file.
20415         * modules/userspec-tests: Likewise.
20416
20417 2010-01-21  Jim Meyering  <meyering@redhat.com>
20418
20419         maint.mk: handle source file names containing "." robustly
20420         * top/maint.mk (_dot_escaped_srcdir): Define.
20421         (VC_LIST): Use it in LHS of sed substitution.
20422
20423 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
20424
20425         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
20426         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
20427         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
20428         from a non-srcdir build.
20429
20430 2010-01-20  Eric Blake  <ebb9@byu.net>
20431
20432         warn-on-use: use instead of link-warning
20433         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
20434         * modules/unistd (Depends-on, Makefile.am): Likewise.
20435         * modules/arpa_inet (Depends-on): Replace link-warning with
20436         warn-on-use.
20437         (Makefile.am): Update rules accordingly.
20438         * modules/ctype (Depends-on, Makefile.am): Likewise.
20439         * modules/dirent (Depends-on, Makefile.am): Likewise.
20440         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
20441         * modules/inttypes (Depends-on, Makefile.am): Likewise.
20442         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20443         * modules/locale (Depends-on, Makefile.am): Likewise.
20444         * modules/math (Depends-on, Makefile.am): Likewise.
20445         * modules/search (Depends-on, Makefile.am): Likewise.
20446         * modules/signal (Depends-on, Makefile.am): Likewise.
20447         * modules/spawn (Depends-on, Makefile.am): Likewise.
20448         * modules/stdlib (Depends-on, Makefile.am): Likewise.
20449         * modules/string (Depends-on, Makefile.am): Likewise.
20450         * modules/strings (Depends-on, Makefile.am): Likewise.
20451         * modules/sys_file (Depends-on, Makefile.am): Likewise.
20452         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
20453         * modules/sys_select (Depends-on, Makefile.am): Likewise.
20454         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
20455         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
20456         * modules/sys_times (Depends-on, Makefile.am): Likewise.
20457         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20458         * modules/wchar (Depends-on, Makefile.am): Likewise.
20459         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
20460         should be poisoned.
20461         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
20462         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
20463         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
20464         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20465         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20466         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20467         * m4/math_h.m4 (gl_MATH_H): Likewise.
20468         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20469         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
20470         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20471         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20472         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20473         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
20474         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
20475         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
20476         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20477         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20478         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20479         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
20480         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20481         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20482         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20483         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
20484         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
20485         GL_LINK_WARNING.
20486         * lib/ctype.in.h: Likewise.
20487         * lib/dirent.in.h: Likewise.
20488         * lib/fcntl.in.h: Likewise.
20489         * lib/inttypes.in.h: Likewise.
20490         * lib/langinfo.in.h: Likewise.
20491         * lib/locale.in.h: Likewise.
20492         * lib/math.in.h: Likewise.
20493         * lib/search.in.h: Likewise.
20494         * lib/signal.in.h: Likewise.
20495         * lib/spawn.in.h: Likewise.
20496         * lib/stdio.in.h: Likewise.
20497         * lib/stdlib.in.h: Likewise.
20498         * lib/string.in.h: Likewise.
20499         * lib/strings.in.h: Likewise.
20500         * lib/sys_file.in.h: Likewise.
20501         * lib/sys_ioctl.in.h: Likewise.
20502         * lib/sys_select.in.h: Likewise.
20503         * lib/sys_socket.in.h: Likewise.
20504         * lib/sys_stat.in.h: Likewise.
20505         * lib/sys_times.in.h: Likewise.
20506         * lib/sys_utsname.in.h: Likewise.
20507         * lib/unistd.in.h: Likewise.
20508         * lib/wchar.in.h: Likewise.
20509
20510 2010-01-20  Bruno Haible  <bruno@clisp.org>
20511
20512         Avoid duplicate -lm.
20513         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
20514         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
20515         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
20516         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
20517         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
20518         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
20519         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
20520         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
20521         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
20522         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
20523         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
20524         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20525         Reported by Paolo Bonzini.
20526
20527 2010-01-19  Bruno Haible  <bruno@clisp.org>
20528
20529         langinfo, nl_langinfo: Relicense under LGPLv2+.
20530         * modules/langinfo (License): Change to LGPLv2+.
20531         * modules/nl_langinfo (License): Likewise.
20532         Patch by David Lutterkort <lutter@redhat.com>.
20533
20534 2010-01-19  Bruno Haible  <bruno@clisp.org>
20535
20536         Avoid compilation error with cc on OSF/1 5.1.
20537         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
20538         statement, not before.
20539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20540
20541 2010-01-18  Bruno Haible  <bruno@clisp.org>
20542
20543         Avoid a link error due to the __printf__ symbol.
20544         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
20545         and 2.6.x.
20546         (__format__, __printf__): Remove definitions.
20547         * lib/argp-fmtstream.h: Likewise.
20548         * lib/argp.h: Likewise.
20549         * lib/error.h: Likewise.
20550         * lib/vasnprintf.h: Likewise.
20551         * lib/xprintf.h: Likewise.
20552         * lib/xvasprintf.h: Likewise.
20553         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20554
20555 2010-01-18  Bruno Haible  <bruno@clisp.org>
20556
20557         Tests for module 'tanl'.
20558         * modules/tanl-tests: New file.
20559         * tests/test-tanl.c: New file.
20560
20561         Tests for module 'sqrtl'.
20562         * modules/sqrtl-tests: New file.
20563         * tests/test-sqrtl.c: New file.
20564
20565         Tests for module 'sinl'.
20566         * modules/sinl-tests: New file.
20567         * tests/test-sinl.c: New file.
20568
20569         Tests for module 'logl'.
20570         * modules/logl-tests: New file.
20571         * tests/test-logl.c: New file.
20572
20573         Tests for module 'expl'.
20574         * modules/expl-tests: New file.
20575         * tests/test-expl.c: New file.
20576
20577         Tests for module 'cosl'.
20578         * modules/cosl-tests: New file.
20579         * tests/test-cosl.c: New file.
20580
20581         Tests for module 'atanl'.
20582         * modules/atanl-tests: New file.
20583         * tests/test-atanl.c: New file.
20584
20585         Tests for module 'asinl'.
20586         * modules/asinl-tests: New file.
20587         * tests/test-asinl.c: New file.
20588
20589         Tests for module 'acosl'.
20590         * modules/acosl-tests: New file.
20591         * tests/test-acosl.c: New file.
20592
20593         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20594         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20595         tanl): Use the standard gnulib idiom.
20596         * lib/cosl.c: Don't include trigl.c and sincosl.c.
20597         * lib/sinl.c: Likewise.
20598         * lib/tanl.c: Don't include trigl.c.
20599         (kernel_tanl): Make static.
20600         * lib/sincosl.c: Include trigl.h first.
20601         * lib/trigl.c: Likewise.
20602         * m4/acosl.m4: New file.
20603         * m4/asinl.m4: New file.
20604         * m4/atanl.m4: New file.
20605         * m4/cosl.m4: New file.
20606         * m4/expl.m4: New file.
20607         * m4/logl.m4: New file.
20608         * m4/sinl.m4: New file.
20609         * m4/sqrtl.m4: New file.
20610         * m4/tanl.m4: New file.
20611         * m4/mathl.m4: Remove file.
20612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
20613         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
20614         Don't initialize GNULIB_MATHL.
20615         * modules/acosl: New file.
20616         * modules/asinl: New file.
20617         * modules/atanl: New file.
20618         * modules/cosl: New file.
20619         * modules/expl: New file.
20620         * modules/logl: New file.
20621         * modules/sinl: New file.
20622         * modules/sqrtl: New file.
20623         * modules/tanl: New file.
20624         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
20625         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
20626         substitute GNULIB_MATHL.
20627         * modules/mathl: Rewritten.
20628         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
20629         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
20630         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
20631         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
20632         * doc/posix-functions/expl.texi: Mention the 'expl' module.
20633         * doc/posix-functions/logl.texi: Mention the 'logl' module.
20634         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
20635         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
20636         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
20637
20638 2010-01-18  Bruno Haible  <bruno@clisp.org>
20639
20640         sqrt: Make gl_FUNC_SQRT requirable.
20641         * m4/sqrt.m4: New file.
20642         * modules/sqrt (Files): Add it.
20643         (configure.ac): Invoke gl_FUNC_SQRT.
20644
20645 2010-01-18  Bruno Haible  <bruno@clisp.org>
20646
20647         New modules for common <math.h> functions.
20648         * m4/mathfunc.m4: New file.
20649         * modules/acos: New file.
20650         * modules/asin: New file.
20651         * modules/atan: New file.
20652         * modules/atan2: New file.
20653         * modules/cbrt: New file.
20654         * modules/copysign: New file.
20655         * modules/cos: New file.
20656         * modules/cosh: New file.
20657         * modules/erf: New file.
20658         * modules/erfc: New file.
20659         * modules/exp: New file.
20660         * modules/fabs: New file.
20661         * modules/fmod: New file.
20662         * modules/hypot: New file.
20663         * modules/j0: New file.
20664         * modules/j1: New file.
20665         * modules/jn: New file.
20666         * modules/ldexp: New file.
20667         * modules/lgamma: New file.
20668         * modules/log: New file.
20669         * modules/log10: New file.
20670         * modules/log1p: New file.
20671         * modules/logb: New file.
20672         * modules/modf: New file.
20673         * modules/nextafter: New file.
20674         * modules/pow: New file.
20675         * modules/remainder: New file.
20676         * modules/rint: New file.
20677         * modules/sin: New file.
20678         * modules/sinh: New file.
20679         * modules/sqrt: New file.
20680         * modules/tan: New file.
20681         * modules/tanh: New file.
20682         * modules/y0: New file.
20683         * modules/y1: New file.
20684         * modules/yn: New file.
20685         * doc/posix-functions/acos.texi: Mention the 'acos' module.
20686         * doc/posix-functions/asin.texi: Mention the 'asin' module.
20687         * doc/posix-functions/atan.texi: Mention the 'atan' module.
20688         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
20689         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
20690         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
20691         * doc/posix-functions/cos.texi: Mention the 'cos' module.
20692         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
20693         * doc/posix-functions/erf.texi: Mention the 'erf' module.
20694         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
20695         * doc/posix-functions/exp.texi: Mention the 'exp' module.
20696         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
20697         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
20698         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
20699         * doc/posix-functions/j0.texi: Mention the 'j0' module.
20700         * doc/posix-functions/j1.texi: Mention the 'j1' module.
20701         * doc/posix-functions/jn.texi: Mention the 'jn' module.
20702         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
20703         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
20704         * doc/posix-functions/log.texi: Mention the 'log' module.
20705         * doc/posix-functions/log10.texi: Mention the 'log10' module.
20706         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
20707         * doc/posix-functions/logb.texi: Mention the 'logb' module.
20708         * doc/posix-functions/modf.texi: Mention the 'modf' module.
20709         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
20710         * doc/posix-functions/pow.texi: Mention the 'pow' module.
20711         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
20712         * doc/posix-functions/rint.texi: Mention the 'rint' module.
20713         * doc/posix-functions/sin.texi: Mention the 'sin' module.
20714         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
20715         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
20716         * doc/posix-functions/tan.texi: Mention the 'tan' module.
20717         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
20718         * doc/posix-functions/y0.texi: Mention the 'y0' module.
20719         * doc/posix-functions/y1.texi: Mention the 'y1' module.
20720         * doc/posix-functions/yn.texi: Mention the 'yn' module.
20721
20722 2010-01-18  Jim Meyering  <meyering@redhat.com>
20723
20724         ignore-value: relax license to LGPLv2+
20725         * modules/ignore-value (License): Relax to LGPLv2+.
20726
20727         getdate: don't leak when TZ contains two or more '"'s
20728         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
20729         double quote in TZ after the first one.
20730
20731         readtokens: do not leak internal token_lengths buffer
20732         * lib/readtokens.c (readtokens): Free the local, lengths,
20733         when the supplied "token_lengths" parameter is NULL.
20734
20735 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20736
20737         Fix a couple of missing LIBTHREAD link failures on AIX.
20738         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
20739         $(LIBTHREAD).
20740         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
20741
20742         Link test-poll against INET_PTON_LIB.
20743         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
20744         for inet_pton on Solaris 10.
20745
20746 2010-01-17  Bruno Haible  <bruno@clisp.org>
20747
20748         unistdio/*-sprintf: Fix typo in module description.
20749         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
20750         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
20751         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
20752         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
20753         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
20754         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
20755         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
20756         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20757
20758 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20759
20760         gnulib-tool: fix filelist for AIX, HP-UX ksh.
20761         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
20762         variables in shell case patterns, for AIX and HP-UX ksh.
20763
20764         Split large sed scripts, for HP-UX sed.
20765         * modules/stdio: Split sed scripts around 50 sed commands,
20766         to avoid HP-UX limit of 99 commands, in the near future.
20767         * modules/string: Likewise.
20768         * modules/unistd: Likewise.
20769
20770         gnulib-tool: avoid writing in the current directory.
20771         * gnulib-tool (func_emit_lib_Makefile_am)
20772         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
20773         not in the current directory, so concurrent gnulib-tool
20774         instances do not interfere.
20775
20776 2010-01-16  Jim Meyering  <meyering@redhat.com>
20777
20778         doc: update users.txt
20779         * users.txt: Add grep.
20780         (diffutils, gzip): Update URLs.
20781
20782 2010-01-12  Bruno Haible  <bruno@clisp.org>
20783
20784         posix_spawn: Avoid test failure on Cygwin.
20785         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
20786         characters.
20787         Reported by Simon Josefsson.
20788
20789 2010-01-12  Bruno Haible  <bruno@clisp.org>
20790
20791         * tests/test-cond.c (main): When skipping the test, show the reason.
20792
20793 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20794
20795         * lib/striconv.c (str_cd_iconv): Avoid if before free.
20796
20797 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20798
20799         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
20800         VC_LIST_ALWAYS_EXCLUDE_REGEX.
20801
20802 2010-01-12  Eric Blake  <ebb9@byu.net>
20803
20804         build: guarantee AS_VAR_IF
20805         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
20806         (gl_AS_VAR_IF): Move...
20807         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
20808         Reported by Simon Josefsson.
20809
20810 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20811
20812         * lib/stdio.in.h: Fix typo.
20813
20814 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20815
20816         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
20817         libgpg-error.
20818
20819 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20820
20821         * tests/test-xalloc-die.sh: Use $EXEEXT.
20822
20823 2010-01-12  Simon Josefsson  <simon@josefsson.org>
20824             Bruno Haible  <bruno@clisp.org>
20825
20826         getlogin, getlogin_r: Avoid test failure.
20827         * tests/test-getlogin.c: Include <stdio.h>.
20828         (main): Skip the test when the function fails because stdin is not a
20829         tty.
20830         * tests/test-getlogin_r.c: Include <stdio.h>.
20831         (main): Skip the test when the function fails because stdin is not a
20832         tty.
20833
20834 2010-01-11  Eric Blake  <ebb9@byu.net>
20835
20836         tests: avoid more large file warnings
20837         * tests/test-fflush.c: Avoid warning about ftell use.
20838         * tests/test-fseek.c: Avoid warning about fseek use.
20839
20840 2010-01-10  Bruno Haible  <bruno@clisp.org>
20841
20842         nproc: Work better on Linux when /proc and /sys are not mounted.
20843         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
20844         as lower bound when, on glibc/Linux systems,
20845         sysconf (_SC_NPROCESSORS_CONF) returns 1.
20846         Suggested by Pádraig Brady <P@draigbrady.com>.
20847         Reported by Dmitry V. Levin <ldv@altlinux.org>.
20848
20849         nproc: Refactor.
20850         * lib/nproc.c (num_processors_via_affinity_mask): New function,
20851         extracted from num_processors.
20852         (num_processors): Call it.
20853
20854 2010-01-11  Jim Meyering  <meyering@redhat.com>
20855
20856         utimecmp: avoid new warning from upcoming gcc-4.5.0
20857         * lib/utimecmp.c (BILLION): Define using #define rather than an
20858         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
20859
20860 2010-01-11  Eric Blake  <ebb9@byu.net>
20861
20862         math: add portability warnings for classification macros
20863         * modules/math (Depends-on): Add warn-on-use.
20864         (Makefile.am): Provide new substitutions.
20865         * m4/math_h.m4 (gl_MATH_H): Require inline.
20866         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
20867         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
20868         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
20869         implement warnings.
20870
20871         unistd: warn on use of environ without module
20872         * modules/unistd (Depends-on): Add warn-on-use.
20873         (Makefile.am): Provide new substitutions.
20874         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
20875         * lib/unistd.in.h (environ): Wrap with a warning helper function.
20876
20877         stdio: warn on suspicious uses
20878         * modules/stdio (Depends-on): Add warn-on-use.
20879         (Makefile.am): Provide new substitutions.
20880         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
20881         fseeko.
20882         * lib/stdio.in.h (gets): Always warn on use.
20883         (fseek, ftell): Adjust when warnings are issued, and honor
20884         _GL_NO_LARGE_FILES as a way to silence the warning.
20885         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
20886         any warning about large file offsets.
20887         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
20888         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
20889         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
20890         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
20891         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
20892         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
20893         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
20894         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
20895
20896         warn-on-use: new module
20897         * modules/warn-on-use: New file.
20898         * build-aux/warn-on-use.h: Likewise.
20899         * m4/warn-on-use.m4: Likewise.
20900         * MODULES.html.sh (Support for building): Mention it.
20901
20902 2010-01-10  Bruno Haible  <bruno@clisp.org>
20903
20904         Tests for module 'unistr/u32-strdup'.
20905         * modules/unistr/u32-strdup-tests: New file.
20906         * tests/unistr/test-u32-strdup.c: New file.
20907
20908         Tests for module 'unistr/u16-strdup'.
20909         * modules/unistr/u16-strdup-tests: New file.
20910         * tests/unistr/test-u16-strdup.c: New file.
20911
20912         Tests for module 'unistr/u8-strdup'.
20913         * modules/unistr/u8-strdup-tests: New file.
20914         * tests/unistr/test-u8-strdup.c: New file.
20915         * tests/unistr/test-strdup.h: New file.
20916
20917         Tests for module 'unistr/u32-strncmp'.
20918         * modules/unistr/u32-strncmp-tests: New file.
20919         * tests/unistr/test-u32-strncmp.c: New file.
20920
20921         Tests for module 'unistr/u16-strncmp'.
20922         * modules/unistr/u16-strncmp-tests: New file.
20923         * tests/unistr/test-u16-strncmp.c: New file.
20924
20925         Tests for module 'unistr/u8-strncmp'.
20926         * modules/unistr/u8-strncmp-tests: New file.
20927         * tests/unistr/test-u8-strncmp.c: New file.
20928         * tests/unistr/test-strncmp.h: New file.
20929
20930         Tests for module 'unistr/u32-strcoll'.
20931         * modules/unistr/u32-strcoll-tests: New file.
20932         * tests/unistr/test-u32-strcoll.c: New file.
20933
20934         Tests for module 'unistr/u16-strcoll'.
20935         * modules/unistr/u16-strcoll-tests: New file.
20936         * tests/unistr/test-u16-strcoll.c: New file.
20937
20938         Tests for module 'unistr/u8-strcoll'.
20939         * modules/unistr/u8-strcoll-tests: New file.
20940         * tests/unistr/test-u8-strcoll.c: New file.
20941
20942         Tests for module 'unistr/u32-strcmp'.
20943         * modules/unistr/u32-strcmp-tests: New file.
20944         * tests/unistr/test-u32-strcmp.c: New file.
20945         * tests/unistr/test-u32-strcmp.h: New file.
20946
20947         Tests for module 'unistr/u16-strcmp'.
20948         * modules/unistr/u16-strcmp-tests: New file.
20949         * tests/unistr/test-u16-strcmp.c: New file.
20950         * tests/unistr/test-u16-strcmp.h: New file.
20951
20952         Tests for module 'unistr/u8-strcmp'.
20953         * modules/unistr/u8-strcmp-tests: New file.
20954         * tests/unistr/test-u8-strcmp.c: New file.
20955         * tests/unistr/test-u8-strcmp.h: New file.
20956         * tests/unistr/test-strcmp.h: New file.
20957
20958         Tests for module 'unistr/u32-strncat'.
20959         * modules/unistr/u32-strncat-tests: New file.
20960         * tests/unistr/test-u32-strncat.c: New file.
20961
20962         Tests for module 'unistr/u16-strncat'.
20963         * modules/unistr/u16-strncat-tests: New file.
20964         * tests/unistr/test-u16-strncat.c: New file.
20965
20966         Tests for module 'unistr/u8-strncat'.
20967         * modules/unistr/u8-strncat-tests: New file.
20968         * tests/unistr/test-u8-strncat.c: New file.
20969         * tests/unistr/test-strncat.h: New file.
20970
20971         Tests for module 'unistr/u32-strcat'.
20972         * modules/unistr/u32-strcat-tests: New file.
20973         * tests/unistr/test-u32-strcat.c: New file.
20974
20975         Tests for module 'unistr/u16-strcat'.
20976         * modules/unistr/u16-strcat-tests: New file.
20977         * tests/unistr/test-u16-strcat.c: New file.
20978
20979         Tests for module 'unistr/u8-strcat'.
20980         * modules/unistr/u8-strcat-tests: New file.
20981         * tests/unistr/test-u8-strcat.c: New file.
20982         * tests/unistr/test-strcat.h: New file.
20983
20984         Tests for module 'unistr/u32-stpncpy'.
20985         * modules/unistr/u32-stpncpy-tests: New file.
20986         * tests/unistr/test-u32-stpncpy.c: New file.
20987
20988         Tests for module 'unistr/u16-stpncpy'.
20989         * modules/unistr/u16-stpncpy-tests: New file.
20990         * tests/unistr/test-u16-stpncpy.c: New file.
20991
20992         Tests for module 'unistr/u8-stpncpy'.
20993         * modules/unistr/u8-stpncpy-tests: New file.
20994         * tests/unistr/test-u8-stpncpy.c: New file.
20995         * tests/unistr/test-stpncpy.h: New file.
20996
20997         Tests for module 'unistr/u32-strncpy'.
20998         * modules/unistr/u32-strncpy-tests: New file.
20999         * tests/unistr/test-u32-strncpy.c: New file.
21000
21001         Tests for module 'unistr/u16-strncpy'.
21002         * modules/unistr/u16-strncpy-tests: New file.
21003         * tests/unistr/test-u16-strncpy.c: New file.
21004
21005         Tests for module 'unistr/u8-strncpy'.
21006         * modules/unistr/u8-strncpy-tests: New file.
21007         * tests/unistr/test-u8-strncpy.c: New file.
21008         * tests/unistr/test-strncpy.h: New file.
21009
21010         Tests for module 'unistr/u32-stpcpy'.
21011         * modules/unistr/u32-stpcpy-tests: New file.
21012         * tests/unistr/test-u32-stpcpy.c: New file.
21013
21014         Tests for module 'unistr/u16-stpcpy'.
21015         * modules/unistr/u16-stpcpy-tests: New file.
21016         * tests/unistr/test-u16-stpcpy.c: New file.
21017
21018         Tests for module 'unistr/u8-stpcpy'.
21019         * modules/unistr/u8-stpcpy-tests: New file.
21020         * tests/unistr/test-u8-stpcpy.c: New file.
21021         * tests/unistr/test-stpcpy.h: New file.
21022
21023         Tests for module 'unistr/u32-strcpy'.
21024         * modules/unistr/u32-strcpy-tests: New file.
21025         * tests/unistr/test-u32-strcpy.c: New file.
21026
21027         Tests for module 'unistr/u16-strcpy'.
21028         * modules/unistr/u16-strcpy-tests: New file.
21029         * tests/unistr/test-u16-strcpy.c: New file.
21030
21031         Tests for module 'unistr/u8-strcpy'.
21032         * modules/unistr/u8-strcpy-tests: New file.
21033         * tests/unistr/test-u8-strcpy.c: New file.
21034         * tests/unistr/test-strcpy.h: New file.
21035
21036         Tests for module 'unistr/u32-strnlen'.
21037         * modules/unistr/u32-strnlen-tests: New file.
21038         * tests/unistr/test-u32-strnlen.c: New file.
21039
21040         Tests for module 'unistr/u16-strnlen'.
21041         * modules/unistr/u16-strnlen-tests: New file.
21042         * tests/unistr/test-u16-strnlen.c: New file.
21043
21044         Tests for module 'unistr/u8-strnlen'.
21045         * modules/unistr/u8-strnlen-tests: New file.
21046         * tests/unistr/test-u8-strnlen.c: New file.
21047         * tests/unistr/test-strnlen.h: New file.
21048
21049         Tests for module 'unistr/u32-strlen'.
21050         * modules/unistr/u32-strlen-tests: New file.
21051         * tests/unistr/test-u32-strlen.c: New file.
21052
21053         Tests for module 'unistr/u16-strlen'.
21054         * modules/unistr/u16-strlen-tests: New file.
21055         * tests/unistr/test-u16-strlen.c: New file.
21056
21057         Tests for module 'unistr/u8-strlen'.
21058         * modules/unistr/u8-strlen-tests: New file.
21059         * tests/unistr/test-u8-strlen.c: New file.
21060
21061         Tests for module 'unistr/u32-prev'.
21062         * modules/unistr/u32-prev-tests: New file.
21063         * tests/unistr/test-u32-prev.c: New file.
21064
21065         Tests for module 'unistr/u16-prev'.
21066         * modules/unistr/u16-prev-tests: New file.
21067         * tests/unistr/test-u16-prev.c: New file.
21068
21069         Tests for module 'unistr/u8-prev'.
21070         * modules/unistr/u8-prev-tests: New file.
21071         * tests/unistr/test-u8-prev.c: New file.
21072
21073         Tests for module 'unistr/u32-next'.
21074         * modules/unistr/u32-next-tests: New file.
21075         * tests/unistr/test-u32-next.c: New file.
21076
21077         Tests for module 'unistr/u16-next'.
21078         * modules/unistr/u16-next-tests: New file.
21079         * tests/unistr/test-u16-next.c: New file.
21080
21081         Tests for module 'unistr/u8-next'.
21082         * modules/unistr/u8-next-tests: New file.
21083         * tests/unistr/test-u8-next.c: New file.
21084
21085         Tests for module 'unistr/u32-strmbtouc'.
21086         * modules/unistr/u32-strmbtouc-tests: New file.
21087         * tests/unistr/test-u32-strmbtouc.c: New file.
21088
21089         Tests for module 'unistr/u16-strmbtouc'.
21090         * modules/unistr/u16-strmbtouc-tests: New file.
21091         * tests/unistr/test-u16-strmbtouc.c: New file.
21092
21093         Tests for module 'unistr/u8-strmbtouc'.
21094         * modules/unistr/u8-strmbtouc-tests: New file.
21095         * tests/unistr/test-u8-strmbtouc.c: New file.
21096
21097         Tests for module 'unistr/u32-strmblen'.
21098         * modules/unistr/u32-strmblen-tests: New file.
21099         * tests/unistr/test-u32-strmblen.c: New file.
21100
21101         Tests for module 'unistr/u16-strmblen'.
21102         * modules/unistr/u16-strmblen-tests: New file.
21103         * tests/unistr/test-u16-strmblen.c: New file.
21104
21105         Tests for module 'unistr/u8-strmblen'.
21106         * modules/unistr/u8-strmblen-tests: New file.
21107         * tests/unistr/test-u8-strmblen.c: New file.
21108
21109         Tests for module 'unistr/u32-cpy-alloc'.
21110         * modules/unistr/u32-cpy-alloc-tests: New file.
21111         * tests/unistr/test-u32-cpy-alloc.c: New file.
21112
21113         Tests for module 'unistr/u16-cpy-alloc'.
21114         * modules/unistr/u16-cpy-alloc-tests: New file.
21115         * tests/unistr/test-u16-cpy-alloc.c: New file.
21116
21117         Tests for module 'unistr/u8-cpy-alloc'.
21118         * modules/unistr/u8-cpy-alloc-tests: New file.
21119         * tests/unistr/test-u8-cpy-alloc.c: New file.
21120         * tests/unistr/test-cpy-alloc.h: New file.
21121
21122         Tests for module 'unistr/u32-mbsnlen'.
21123         * modules/unistr/u32-mbsnlen-tests: New file.
21124         * tests/unistr/test-u32-mbsnlen.c: New file.
21125
21126         Tests for module 'unistr/u16-mbsnlen'.
21127         * modules/unistr/u16-mbsnlen-tests: New file.
21128         * tests/unistr/test-u16-mbsnlen.c: New file.
21129
21130         Tests for module 'unistr/u8-mbsnlen'.
21131         * modules/unistr/u8-mbsnlen-tests: New file.
21132         * tests/unistr/test-u8-mbsnlen.c: New file.
21133
21134         Tests for module 'unistr/u32-chr'.
21135         * modules/unistr/u32-chr-tests: New file.
21136         * tests/unistr/test-u32-chr.c: New file.
21137
21138         Tests for module 'unistr/u16-chr'.
21139         * modules/unistr/u16-chr-tests: New file.
21140         * tests/unistr/test-u16-chr.c: New file.
21141
21142         Tests for module 'unistr/u8-chr'.
21143         * modules/unistr/u8-chr-tests: New file.
21144         * tests/unistr/test-u8-chr.c: New file.
21145         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
21146
21147         Tests for module 'unistr/u32-cmp2'.
21148         * modules/unistr/u32-cmp2-tests: New file.
21149         * tests/unistr/test-u32-cmp2.c: New file.
21150
21151         Tests for module 'unistr/u16-cmp2'.
21152         * modules/unistr/u16-cmp2-tests: New file.
21153         * tests/unistr/test-u16-cmp2.c: New file.
21154
21155         Tests for module 'unistr/u8-cmp2'.
21156         * modules/unistr/u8-cmp2-tests: New file.
21157         * tests/unistr/test-u8-cmp2.c: New file.
21158         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21159
21160         Tests for module 'unistr/u32-cmp'.
21161         * modules/unistr/u32-cmp-tests: New file.
21162         * tests/unistr/test-u32-cmp.c: New file.
21163
21164         Tests for module 'unistr/u16-cmp'.
21165         * modules/unistr/u16-cmp-tests: New file.
21166         * tests/unistr/test-u16-cmp.c: New file.
21167
21168         Tests for module 'unistr/u8-cmp'.
21169         * modules/unistr/u8-cmp-tests: New file.
21170         * tests/unistr/test-u8-cmp.c: New file.
21171         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
21172
21173         Tests for module 'unistr/u32-set'.
21174         * modules/unistr/u32-set-tests: New file.
21175         * tests/unistr/test-u32-set.c: New file.
21176
21177         Tests for module 'unistr/u16-set'.
21178         * modules/unistr/u16-set-tests: New file.
21179         * tests/unistr/test-u16-set.c: New file.
21180
21181         Tests for module 'unistr/u8-set'.
21182         * modules/unistr/u8-set-tests: New file.
21183         * tests/unistr/test-u8-set.c: New file.
21184         * tests/unistr/test-set.h: New file.
21185
21186         Tests for module 'unistr/u32-move'.
21187         * modules/unistr/u32-move-tests: New file.
21188         * tests/unistr/test-u32-move.c: New file.
21189
21190         Tests for module 'unistr/u16-move'.
21191         * modules/unistr/u16-move-tests: New file.
21192         * tests/unistr/test-u16-move.c: New file.
21193
21194         Tests for module 'unistr/u8-move'.
21195         * modules/unistr/u8-move-tests: New file.
21196         * tests/unistr/test-u8-move.c: New file.
21197         * tests/unistr/test-move.h: New file.
21198
21199         Tests for module 'unistr/u32-cpy'.
21200         * modules/unistr/u32-cpy-tests: New file.
21201         * tests/unistr/test-u32-cpy.c: New file.
21202
21203         Tests for module 'unistr/u16-cpy'.
21204         * modules/unistr/u16-cpy-tests: New file.
21205         * tests/unistr/test-u16-cpy.c: New file.
21206
21207         Tests for module 'unistr/u8-cpy'.
21208         * modules/unistr/u8-cpy-tests: New file.
21209         * tests/unistr/test-u8-cpy.c: New file.
21210         * tests/unistr/test-cpy.h: New file.
21211
21212 2010-01-09  Bruno Haible  <bruno@clisp.org>
21213
21214         Tests for module 'unistr/u32-uctomb'.
21215         * modules/unistr/u32-uctomb-tests: New file.
21216         * tests/unistr/test-u32-uctomb.c: New file.
21217
21218         Tests for module 'unistr/u16-uctomb'.
21219         * modules/unistr/u16-uctomb-tests: New file.
21220         * tests/unistr/test-u16-uctomb.c: New file.
21221
21222         Tests for module 'unistr/u8-uctomb'.
21223         * modules/unistr/u8-uctomb-tests: New file.
21224         * tests/unistr/test-u8-uctomb.c: New file.
21225
21226         Tests for module 'unistr/u32-mbtoucr'.
21227         * modules/unistr/u32-mbtoucr-tests: New file.
21228         * tests/unistr/test-u32-mbtoucr.c: New file.
21229
21230         Tests for module 'unistr/u16-mbtoucr'.
21231         * modules/unistr/u16-mbtoucr-tests: New file.
21232         * tests/unistr/test-u16-mbtoucr.c: New file.
21233
21234         Tests for module 'unistr/u8-mbtoucr'.
21235         * modules/unistr/u8-mbtoucr-tests: New file.
21236         * tests/unistr/test-u8-mbtoucr.c: New file.
21237
21238         Tests for module 'unistr/u32-mbtouc'.
21239         * modules/unistr/u32-mbtouc-tests: New file.
21240         * tests/unistr/test-u32-mbtouc.c: New file.
21241
21242         Tests for module 'unistr/u16-mbtouc'.
21243         * modules/unistr/u16-mbtouc-tests: New file.
21244         * tests/unistr/test-u16-mbtouc.c: New file.
21245
21246         Tests for module 'unistr/u8-mbtouc'.
21247         * modules/unistr/u8-mbtouc-tests: New file.
21248         * tests/unistr/test-u8-mbtouc.c: New file.
21249
21250         Tests for module 'unistr/u32-mbtouc-unsafe'.
21251         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
21252         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
21253         * tests/unistr/test-u32-mbtouc.h: New file.
21254
21255         Tests for module 'unistr/u16-mbtouc-unsafe'.
21256         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
21257         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
21258         * tests/unistr/test-u16-mbtouc.h: New file.
21259
21260         Tests for module 'unistr/u8-mbtouc-unsafe'.
21261         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
21262         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
21263         * tests/unistr/test-u8-mbtouc.h: New file.
21264
21265         Tests for module 'unistr/u32-mblen'.
21266         * modules/unistr/u32-mblen-tests: New file.
21267         * tests/unistr/test-u32-mblen.c: New file.
21268
21269         Tests for module 'unistr/u16-mblen'.
21270         * modules/unistr/u16-mblen-tests: New file.
21271         * tests/unistr/test-u16-mblen.c: New file.
21272
21273         Tests for module 'unistr/u8-mblen'.
21274         * modules/unistr/u8-mblen-tests: New file.
21275         * tests/unistr/test-u8-mblen.c: New file.
21276
21277         Tests for module 'unistr/u32-to-u16'.
21278         * modules/unistr/u32-to-u16-tests: New file.
21279         * tests/unistr/test-u32-to-u16.c: New file.
21280
21281         Tests for module 'unistr/u32-to-u8'.
21282         * modules/unistr/u32-to-u8-tests: New file.
21283         * tests/unistr/test-u32-to-u8.c: New file.
21284
21285         Tests for module 'unistr/u16-to-u32'.
21286         * modules/unistr/u16-to-u32-tests: New file.
21287         * tests/unistr/test-u16-to-u32.c: New file.
21288
21289         Tests for module 'unistr/u16-to-u8'.
21290         * modules/unistr/u16-to-u8-tests: New file.
21291         * tests/unistr/test-u16-to-u8.c: New file.
21292
21293         Tests for module 'unistr/u8-to-u32'.
21294         * modules/unistr/u8-to-u32-tests: New file.
21295         * tests/unistr/test-u8-to-u32.c: New file.
21296
21297         Tests for module 'unistr/u8-to-u16'.
21298         * modules/unistr/u8-to-u16-tests: New file.
21299         * tests/unistr/test-u8-to-u16.c: New file.
21300
21301         Tests for module 'unistr/u32-check'.
21302         * modules/unistr/u32-check-tests: New file.
21303         * tests/unistr/test-u32-check.c: New file.
21304
21305         Tests for module 'unistr/u16-check'.
21306         * modules/unistr/u16-check-tests: New file.
21307         * tests/unistr/test-u16-check.c: New file.
21308
21309         Tests for module 'unistr/u8-check'.
21310         * modules/unistr/u8-check-tests: New file.
21311         * tests/unistr/test-u8-check.c: New file.
21312
21313         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
21314         (category_equals): New function.
21315         (main): Add more tests.
21316         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
21317
21318         * tests/unictype/test-bidi_byname.c (main): Add more tests.
21319
21320 2010-01-10  Bruno Haible  <bruno@clisp.org>
21321
21322         unistr/u*-strcoll: Try harder to distinguish different strings.
21323         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
21324         compare s1 and s2 to see if they are different.
21325
21326 2010-01-10  Bruno Haible  <bruno@clisp.org>
21327
21328         unistr/u*-stpncpy: Fix the return value.
21329         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
21330         description of the return value consistent with stpncpy in glibc.
21331         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
21332         written non-NUL unit.
21333
21334 2010-01-10  Bruno Haible  <bruno@clisp.org>
21335
21336         unistr/u*-next: Add missing dependencies.
21337         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
21338         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
21339         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
21340
21341 2010-01-10  Bruno Haible  <bruno@clisp.org>
21342
21343         unistr/u8-mbsnlen: Fix return value for incomplete character.
21344         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
21345         u8_mblen.
21346         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
21347         Remove unistr/u8-mblen.
21348         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
21349         u16_mblen.
21350         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
21351         Remove unistr/u16-mblen.
21352
21353 2010-01-10  Bruno Haible  <bruno@clisp.org>
21354
21355         wchar: Fix compilation error when <wchar.h> is used from coreutils.
21356         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
21357         Reported by Brian Gough <bjg@gnu.org> and
21358         Chris Clayton <chris2553@googlemail.com> via
21359         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
21360
21361 2010-01-09  Bruno Haible  <bruno@clisp.org>
21362
21363         unistr/u16-to-u32: Reject invalid input.
21364         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
21365         u16_mbtouc.
21366         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
21367         Remove unistr/u16-mbtouc.
21368
21369         unistr/u16-to-u8: Reject invalid input.
21370         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
21371         u16_mbtouc.
21372         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
21373         Remove unistr/u16-mbtouc.
21374
21375         unistr/u8-to-u32: Reject invalid input.
21376         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
21377         u8_mbtouc.
21378         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
21379         Remove unistr/u8-mbtouc.
21380
21381         unistr/u8-to-u16: Reject invalid input.
21382         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
21383         u8_mbtouc.
21384         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
21385         Remove unistr/u8-mbtouc.
21386
21387 2010-01-09  Bruno Haible  <bruno@clisp.org>
21388
21389         Tests for module 'getlogin'.
21390         * modules/getlogin-tests: New file.
21391         * tests/test-getlogin.c: New file.
21392
21393         New module 'getlogin'.
21394         * lib/unistd.in.h (getlogin): New declaration.
21395         * lib/getlogin.c: New file.
21396         * m4/getlogin.m4: New file.
21397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
21398         HAVE_GETLOGIN.
21399         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
21400         HAVE_GETLOGIN.
21401         * modules/getlogin: New file.
21402         * doc/posix-functions/getlogin.texi: Mention the new module.
21403         Reported by John W. Eaton <jwe@gnu.org>.
21404
21405 2010-01-09  Bruno Haible  <bruno@clisp.org>
21406
21407         getlogin_r: Support for native Windows.
21408         * lib/getlogin_r.c: Include <windows.h>
21409         (getlogin_r): Implement for native Windows.
21410         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
21411         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
21412         via John W. Eaton <jwe@gnu.org>.
21413
21414 2010-01-09  Bruno Haible  <bruno@clisp.org>
21415
21416         getlogin_r: Small fixes.
21417         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
21418         succeeds.
21419         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
21420         before testing whether getlogin_r is declared. No need to set
21421         HAVE_DECL_GETLOGIN_R to 1.
21422         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
21423
21424 2010-01-09  Bruno Haible  <bruno@clisp.org>
21425
21426         * lib/unistd.in.h (getlogin_r): Add comment.
21427
21428 2010-01-09  Bruno Haible  <bruno@clisp.org>
21429
21430         Tests for module 'getlogin_r'.
21431         * modules/getlogin_r-tests: New file.
21432         * tests/test-getlogin_r.c: New file.
21433
21434 2010-01-09  Jim Meyering  <meyering@redhat.com>
21435
21436         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
21437         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
21438         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
21439
21440 2010-01-08  Simon Josefsson  <simon@josefsson.org>
21441
21442         * lib/dup2.c (rpl_dup2): Improve comment.
21443
21444 2010-01-08  Eric Blake  <ebb9@byu.net>
21445
21446         maint.mk: allow packages to add makefile @@ exceptions
21447         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
21448         (sc_makefile_check): Rename...
21449         (sc_makefile_at_at_check): ...to this, and use hook.
21450
21451         dup2: work around mingw bug
21452         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
21453         Reported by Simon Josefsson.
21454
21455 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
21456
21457         glob: Fix C++ compilation.
21458         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
21459         C++.
21460
21461 2010-01-07  Bruno Haible  <bruno@clisp.org>
21462
21463         Fix indentation of wctype.in.h, broken since 2007-01-06.
21464         * lib/wctype.in.h: Fix indentation of preprocessor directives.
21465
21466 2010-01-07  Bruno Haible  <bruno@clisp.org>
21467
21468         mbslen: Avoid collision with system function.
21469         * lib/string.in.h [MirBSD]: Include <wchar.h>.
21470         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
21471         * m4/mbslen.m4: New file.
21472         * modules/mbslen (Files): Add it.
21473         (configure.ac): Invoke gl_MBSLEN.
21474         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
21475         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
21476         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
21477         via Ian Beckwith <ianb@erislabs.net>.
21478
21479 2010-01-07  Bruno Haible  <bruno@clisp.org>
21480
21481         dirent: Document the last fix.
21482         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
21483
21484 2010-01-07  Bruno Haible  <bruno@clisp.org>
21485
21486         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
21487         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
21488         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
21489         va_list are defined.
21490         * doc/posix-headers/stdio.texi: Document the bug of missing types.
21491         Reported by Eric Blake.
21492
21493 2010-01-07  Bruno Haible  <bruno@clisp.org>
21494
21495         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
21496         * modules/xlist (Depends-on): Add 'list',
21497         * modules/xoset (Depends-on): Add 'oset'.
21498         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21499
21500 2010-01-07  Bruno Haible  <bruno@clisp.org>
21501
21502         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
21503         * doc/posix-functions/strncasecmp.texi: Likewise.
21504
21505 2010-01-07  Bruno Haible  <bruno@clisp.org>
21506
21507         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
21508
21509 2010-01-07  John W. Eaton  <jwe@octave.org>
21510
21511         wctype: allow C++ use
21512         * lib/wctype.in.h: Add extern "C" block for C++.
21513
21514 2010-01-06  Eric Blake  <ebb9@byu.net>
21515
21516         maint.mk: detect incorrect GFDL usage
21517         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
21518
21519 2010-01-06  Jim Meyering  <meyering@redhat.com>
21520         and Eric Blake  <ebb9@byu.net>
21521
21522         maint.mk: ignore multi-line copyright in NEWS
21523         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
21524
21525 2010-01-06  Eric Blake  <ebb9@byu.net>
21526
21527         select: add missing dependency
21528         * modules/select-tests (Depends-on): Move sockets dependency...
21529         * modules/select (Depends-on): ...here.
21530         Reported by Ian Beckwith.
21531
21532         doc: regenerate INSTALL
21533         * doc/INSTALL: Reflect recent autoconf update.
21534         * doc/INSTALL.ISO: Likewise.
21535         * doc/INSTALL.UTF-8: Likewise.
21536
21537         pread: fix compilation on glibc
21538         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
21539         Reported by Ralf Wildenhues.
21540
21541         dirent: fix test failure
21542         * lib/dirent.in.h (includes): Guarantee ino_t.
21543         Reported by Ralf Wildenhues.
21544
21545 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
21546
21547         linkat, renameat: avoid bad free
21548         * lib/at-func2.c (at_func2): Fix typo.
21549         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
21550
21551 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21552
21553         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
21554         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
21555         to avoid failure of symlink test later.
21556
21557 2010-01-06  Eric Blake  <ebb9@byu.net>
21558
21559         stdio, unistd: guarantee ssize_t
21560         * lib/unistd.in.h (includes): Ensure that types required by POSIX
21561         2008 are exposed when needed.
21562         * lib/stdio.in.h (includes): Likewise.
21563         Reported by Ralf Wildenhues.
21564
21565 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
21566
21567         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
21568         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
21569         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
21570
21571 2010-01-06  Jim Meyering  <meyering@redhat.com>
21572
21573         readtokens: this module *does* require xalloc.h
21574         It uses only functions that were omitted by the old syntax-check rule.
21575         * lib/readtokens.c: Include "xalloc.h" once again.
21576         * modules/readtokens (Depends-on): Add xalloc.
21577         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
21578
21579 2010-01-05  Eric Blake  <ebb9@byu.net>
21580
21581         maint: support 'make announcement' from a VPATH build
21582         * top/maint.mk (announcement): Look for correct NEWS file.
21583
21584 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
21585
21586         utimens (fdutimens): ignore a negative FD, per contract
21587         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
21588         when we have a valid file descriptor.  Otherwise, using a brand
21589         new glibc (with just-patched futimens that now fails with EBADF)
21590         would cause this function to fail with ENOSYS.
21591         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
21592         See also http://bugzilla.redhat.com/552320.
21593
21594 2010-01-05  Eric Blake  <ebb9@byu.net>
21595
21596         strcase: document what it provides
21597         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
21598         gnulib module.
21599         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
21600         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
21601
21602 2010-01-05  Jim Meyering  <meyering@redhat.com>
21603
21604         maint: remove useless inclusions of "xalloc.h"
21605         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
21606         * lib/readtokens.c: Likewise.
21607         * lib/same.c: Likewise.
21608         * modules/getloadavg (Depends-on): Remove xalloc.
21609         * modules/readtokens: Likewise.
21610         * modules/same: Likewise.
21611
21612         maint.mk: include 4 more function names in alloca.h-checking regexp
21613         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
21614         regexp.  Before, we would give a false-positive (saying alloca.h
21615         is included unnecessarily) when the only uses involved omitted symbols.
21616
21617         xalloc.h: use consistent formatting
21618         * lib/xalloc.h: Move declarations to start in the first column.
21619
21620 2010-01-05  Eric Blake  <ebb9@byu.net>
21621
21622         mkdir: avoid xalloc
21623         * lib/mkdir.c (includes): Drop unused header.
21624         Reported by John W. Eaton.
21625
21626 2010-01-04  Jim Meyering  <meyering@redhat.com>
21627
21628         nl_langinfo: avoid configure-time syntax error
21629         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
21630         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
21631         the empty string.  Don't let that provoke a shell syntax error.
21632
21633         regcomp, regexec, fnmatch: avoid array bounds read error
21634         * lib/regcomp.c (build_equiv_class): From glibc:
21635         Use only the low 24 bits of a findidx return value as an index
21636         into the weights array.  Patch by Ulrich Drepper:
21637         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
21638         * lib/regexec.c (check_node_accept_bytes): Likewise.
21639         * lib/fnmatch_loop.c (FCT): Likewise.
21640
21641         regcomp: skip collseq lookup when there are no rules
21642         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
21643         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
21644
21645         regcomp: recognize ill-formed { } expressions
21646         * lib/regcomp.c (parse_dup_op): From glibc:
21647         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
21648
21649         regcomp: fix typo in comment
21650         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
21651         s/satisfy/satisfies/.
21652
21653         regcomp: sync from glibc: remove dead store
21654         * lib/regcomp.c (duplicate_node_closure): Remove useless
21655         search_duplicated_node call and dead store.
21656
21657         regcomp: sync from glibc; always use nl_langinfo
21658         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
21659         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
21660         * modules/regex (Depends-on): Add nl_langinfo.
21661
21662 2010-01-04  Eric Blake  <ebb9@byu.net>
21663
21664         fdopendir: fix configure test
21665         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
21666
21667 2010-01-01  Bruno Haible  <bruno@clisp.org>
21668
21669         wchar: Remove unused configure check.
21670         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
21671
21672 2010-01-01  Eric Blake  <ebb9@byu.net>
21673
21674         headers: make check of system header explicit
21675         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
21676         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
21677         ourselves.
21678         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21679         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21680         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
21681         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
21682         internals.
21683         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
21684         missing.
21685         Suggested by Bruno Haible.
21686
21687 2010-01-01  Jim Meyering  <meyering@redhat.com>
21688
21689         ChangeLog: tweak to eliminate unnecessary copyright line
21690         * ChangeLog: Remove a copyright line that was mistakenly updated
21691         by today's update-copyright run.  Reported by Eric Blake.
21692
21693         test-update-copyright: don't let envvar setting cause test failure
21694         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21695
21696 2010-01-01  Bruno Haible  <bruno@clisp.org>
21697
21698         localename: Avoid gcc warning.
21699         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
21700         function if it is not used.
21701
21702 2010-01-01  Jim Meyering  <meyering@redhat.com>
21703
21704         update nearly all FSF copyright year lists to include 2010
21705         Use the same procedure as for 2009, outlined in
21706         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
21707
21708         version-etc: set COPYRIGHT_YEAR to 2010
21709         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
21710
21711 2009-12-31  Eric Blake  <ebb9@byu.net>
21712
21713         doc: correct availability of cygwin 1.5.x getopt
21714         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
21715         variables.
21716         * doc/posix-functions/opterr.texi (opterr): Likewise.
21717         * doc/posix-functions/optind.texi (optind): Likewise.
21718         * doc/posix-functions/optopt.texi (optopt): Likewise.
21719         * doc/posix-functions/tzname.texi (tzname): Likewise.
21720
21721         openat: update maintainer
21722         * modules/openat (Maintainer): Add myself.
21723
21724         utimens: avoid shadowing warning
21725         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
21726         buffers into one, to avoid shadowing, as well as avoiding a
21727         redundant stat.
21728         Reported by Jim Meyering.
21729
21730         test-dup2: avoid compiler warning
21731         * tests/test-dup2.c (is_inheritable): Only define if used.
21732
21733 2010-01-01  Bruno Haible  <bruno@clisp.org>
21734
21735         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
21736         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
21737         defined, use wctomb instead of wcrtomb.
21738
21739 2010-01-01  Bruno Haible  <bruno@clisp.org>
21740
21741         iconv: Reject native Solaris iconv.
21742         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
21743         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
21744
21745 2009-12-31  Bruno Haible  <bruno@clisp.org>
21746
21747         * tests/test-signal.c (main): Remove test of 'SIG'.
21748
21749 2009-12-31  Bruno Haible  <bruno@clisp.org>
21750
21751         spawn: Fix incomplete fix.
21752         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21753         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21754         warnings for GNULIB_POSIXCHECK again.
21755         Reported by Eric Blake.
21756
21757 2009-12-31  Bruno Haible  <bruno@clisp.org>
21758
21759         Avoid namespace pollution on glibc systems.
21760         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
21761         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
21762         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
21763         glibc systems.
21764
21765 2009-12-31  Bruno Haible  <bruno@clisp.org>
21766
21767         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
21768         (gl_REPLACE_WCHAR_H): Turn into a no-op.
21769         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
21770         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21771         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21772         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21773         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21774
21775 2009-12-31  Bruno Haible  <bruno@clisp.org>
21776
21777         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
21778         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
21779         afterwards.
21780
21781 2009-12-31  Bruno Haible  <bruno@clisp.org>
21782
21783         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
21784         SYS_UTSNAME_H.
21785
21786 2009-12-31  Bruno Haible  <bruno@clisp.org>
21787
21788         spawn: Fix misapplied patch.
21789         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
21790         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
21791         warnings for GNULIB_POSIXCHECK.
21792
21793 2009-12-31  Bruno Haible  <bruno@clisp.org>
21794
21795         times: Update after sys_times changed.
21796         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
21797         * modules/times (Files): Add it.
21798         (configure.ac): Invoke gl_FUNC_TIMES.
21799
21800 2009-12-31  Bruno Haible  <bruno@clisp.org>
21801
21802         Use AC_C_INLINE where necessary.
21803         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
21804         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21805         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21806         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
21807         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21808         * m4/mbiter.m4 (gl_MBITER): Likewise.
21809         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21810         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21811         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
21812         * modules/u64 (configure.ac): Likewise.
21813
21814 2009-12-31  Bruno Haible  <bruno@clisp.org>
21815
21816         Use AC_C_INLINE instead of module 'inline' where possible.
21817         * modules/inline (Description): Clarify purpose.
21818         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
21819         * modules/count-one-bits (Depends-on): Remove inline.
21820         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
21821         * modules/openat (Depends-on): Remove inline.
21822         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
21823         instead of depending on module 'inline'.
21824         * modules/filevercmp (Depends-on, configure.ac): Likewise.
21825         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
21826         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
21827         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
21828         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
21829         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
21830         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
21831         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
21832         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
21833         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
21834         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
21835         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
21836         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
21837         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
21838         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
21839         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
21840         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
21841         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
21842         Likewise.
21843         * modules/unictype/property-ascii-hex-digit (Depends-on,
21844         configure.ac): Likewise.
21845         * modules/unictype/property-bidi-arabic-digit (Depends-on,
21846         configure.ac): Likewise.
21847         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
21848         configure.ac): Likewise.
21849         * modules/unictype/property-bidi-block-separator (Depends-on,
21850         configure.ac): Likewise.
21851         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
21852         configure.ac): Likewise.
21853         * modules/unictype/property-bidi-common-separator (Depends-on,
21854         configure.ac): Likewise.
21855         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
21856         Likewise.
21857         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
21858         configure.ac): Likewise.
21859         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
21860         configure.ac): Likewise.
21861         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
21862         configure.ac): Likewise.
21863         * modules/unictype/property-bidi-european-digit (Depends-on,
21864         configure.ac): Likewise.
21865         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
21866         configure.ac): Likewise.
21867         * modules/unictype/property-bidi-left-to-right (Depends-on,
21868         configure.ac): Likewise.
21869         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
21870         configure.ac): Likewise.
21871         * modules/unictype/property-bidi-other-neutral (Depends-on,
21872         configure.ac): Likewise.
21873         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
21874         Likewise.
21875         * modules/unictype/property-bidi-segment-separator (Depends-on,
21876         configure.ac): Likewise.
21877         * modules/unictype/property-bidi-whitespace (Depends-on,
21878         configure.ac): Likewise.
21879         * modules/unictype/property-combining (Depends-on, configure.ac):
21880         Likewise.
21881         * modules/unictype/property-composite (Depends-on, configure.ac):
21882         Likewise.
21883         * modules/unictype/property-currency-symbol (Depends-on,
21884         configure.ac): Likewise.
21885         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
21886         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
21887         Likewise.
21888         * modules/unictype/property-default-ignorable-code-point (Depends-on,
21889         configure.ac): Likewise.
21890         * modules/unictype/property-deprecated (Depends-on, configure.ac):
21891         Likewise.
21892         * modules/unictype/property-diacritic (Depends-on, configure.ac):
21893         Likewise.
21894         * modules/unictype/property-extender (Depends-on, configure.ac):
21895         Likewise.
21896         * modules/unictype/property-format-control (Depends-on, configure.ac):
21897         Likewise.
21898         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
21899         Likewise.
21900         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
21901         Likewise.
21902         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
21903         Likewise.
21904         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
21905         Likewise.
21906         * modules/unictype/property-hyphen (Depends-on, configure.ac):
21907         Likewise.
21908         * modules/unictype/property-id-continue (Depends-on, configure.ac):
21909         Likewise.
21910         * modules/unictype/property-id-start (Depends-on, configure.ac):
21911         Likewise.
21912         * modules/unictype/property-ideographic (Depends-on, configure.ac):
21913         Likewise.
21914         * modules/unictype/property-ids-binary-operator (Depends-on,
21915         configure.ac): Likewise.
21916         * modules/unictype/property-ids-trinary-operator (Depends-on,
21917         configure.ac): Likewise.
21918         * modules/unictype/property-ignorable-control (Depends-on,
21919         configure.ac): Likewise.
21920         * modules/unictype/property-iso-control (Depends-on, configure.ac):
21921         Likewise.
21922         * modules/unictype/property-join-control (Depends-on, configure.ac):
21923         Likewise.
21924         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
21925         Likewise.
21926         * modules/unictype/property-line-separator (Depends-on, configure.ac):
21927         Likewise.
21928         * modules/unictype/property-logical-order-exception (Depends-on,
21929         configure.ac): Likewise.
21930         * modules/unictype/property-lowercase (Depends-on, configure.ac):
21931         Likewise.
21932         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
21933         * modules/unictype/property-non-break (Depends-on, configure.ac):
21934         Likewise.
21935         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
21936         Likewise.
21937         * modules/unictype/property-numeric (Depends-on, configure.ac):
21938         Likewise.
21939         * modules/unictype/property-other-alphabetic (Depends-on,
21940         configure.ac): Likewise.
21941         * modules/unictype/property-other-default-ignorable-code-point
21942         (Depends-on, configure.ac): Likewise.
21943         * modules/unictype/property-other-grapheme-extend (Depends-on,
21944         configure.ac): Likewise.
21945         * modules/unictype/property-other-id-continue (Depends-on,
21946         configure.ac): Likewise.
21947         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
21948         Likewise.
21949         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
21950         Likewise.
21951         * modules/unictype/property-other-math (Depends-on, configure.ac):
21952         Likewise.
21953         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
21954         Likewise.
21955         * modules/unictype/property-paired-punctuation (Depends-on,
21956         configure.ac): Likewise.
21957         * modules/unictype/property-paragraph-separator (Depends-on,
21958         configure.ac): Likewise.
21959         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
21960         Likewise.
21961         * modules/unictype/property-pattern-white-space (Depends-on,
21962         configure.ac): Likewise.
21963         * modules/unictype/property-private-use (Depends-on, configure.ac):
21964         Likewise.
21965         * modules/unictype/property-punctuation (Depends-on, configure.ac):
21966         Likewise.
21967         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
21968         Likewise.
21969         * modules/unictype/property-radical (Depends-on, configure.ac):
21970         Likewise.
21971         * modules/unictype/property-sentence-terminal (Depends-on,
21972         configure.ac): Likewise.
21973         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
21974         Likewise.
21975         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
21976         * modules/unictype/property-terminal-punctuation (Depends-on,
21977         configure.ac): Likewise.
21978         * modules/unictype/property-titlecase (Depends-on, configure.ac):
21979         Likewise.
21980         * modules/unictype/property-unassigned-code-value (Depends-on,
21981         configure.ac): Likewise.
21982         * modules/unictype/property-unified-ideograph (Depends-on,
21983         configure.ac): Likewise.
21984         * modules/unictype/property-uppercase (Depends-on, configure.ac):
21985         Likewise.
21986         * modules/unictype/property-variation-selector (Depends-on,
21987         configure.ac): Likewise.
21988         * modules/unictype/property-white-space (Depends-on, configure.ac):
21989         Likewise.
21990         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
21991         Likewise.
21992         * modules/unictype/property-xid-start (Depends-on, configure.ac):
21993         Likewise.
21994         * modules/unictype/property-zero-width (Depends-on, configure.ac):
21995         Likewise.
21996         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
21997         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
21998         Likewise.
21999
22000 2009-12-31  Bruno Haible  <bruno@clisp.org>
22001
22002         Remove unnecessary AC_C_INLINE invocation.
22003         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
22004         since 2009-08-21.
22005
22006 2009-12-31  Jim Meyering  <meyering@redhat.com>
22007
22008         maint.mk: don't require explicit gpg_key_ID in cfg.mk
22009         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
22010         With this change, we can all remove the gpg_key_ID = ... definition
22011         from our respective cfg.mk files.
22012
22013         maint.mk: create announcement template in ~/, not in /tmp
22014         * top/maint.mk (emit_upload_commands): Adjust.
22015         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
22016         Remove temporary file, .ci-msg.
22017
22018 2009-12-31  Eric Blake  <ebb9@byu.net>
22019
22020         link-warning: always build headers with link warnings
22021         * modules/arpa_inet (Makefile.am): Always build replacement
22022         header.
22023         * modules/ctype (Makefile.am): Likewise.
22024         * modules/dirent (Makefile.am): Likewise.
22025         * modules/inttypes (Makefile.am): Likewise.
22026         * modules/langinfo (Makefile.am): Likewise.
22027         * modules/locale (Makefile.am): Likewise.
22028         * modules/spawn (Makefile.am): Likewise.
22029         * modules/sys_file (Makefile.am): Likewise.
22030         * modules/sys_ioctl (Makefile.am): Likewise.
22031         * modules/sys_select (Makefile.am): Likewise.
22032         * modules/sys_socket (Makefile.am): Likewise.
22033         * modules/sys_times (Makefile.am): Likewise.
22034         * modules/sys_utsname (Makefile.am): Likewise.
22035         * modules/sys_wait (Makefile.am): Likewise.
22036         * modules/wchar (Makefile.am): Likewise.
22037         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
22038         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
22039         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
22040         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
22041         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
22042         Likewise.
22043         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22044         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22045         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
22046         Likewise.
22047         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
22048         Likewise.
22049         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22050         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
22051         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
22052         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22053         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22054         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22055         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22056         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
22057         (gl_WCHAR_H_DEFAULTS): Likewise.
22058
22059 2009-12-31  Eric Blake  <ebb9@byu.net>
22060
22061         signal, spawn: use link warnings
22062         * lib/signal.in.h (sigset_t): Make unconditional.
22063         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
22064         (sigpending, sigprocmask, sigaction): Add link warnings.
22065         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
22066         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
22067         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
22068         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
22069         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
22070         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
22071         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
22072         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
22073         (posix_spawn_file_actions_destroy)
22074         (posix_spawn_file_actions_addopen)
22075         (posix_spawn_file_actions_addclose)
22076         (posix_spawn_file_actions_adddup2): Likewise.
22077         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
22078         * tests/test-signal.c (main): Enhance test.
22079
22080         spawn: improve wrapper support
22081         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
22082         (gl_SPAWN_H_DEFAULTS): New defaults.
22083         * modules/spawn (Makefile.am): Substitute them.
22084         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
22085         Only declare if missing or broken.
22086
22087         sys_times, sys_utsname: use include_next
22088         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
22089         header.
22090         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
22091         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
22092         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
22093         * modules/sys_times (Depends-on): Add include_next.
22094         (Makefile.am): Substitute additional values.
22095         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
22096         * lib/sys_times.in.h (includes): Include native header, if
22097         available.
22098         * lib/sys_utsname.in.h (includes): Likewise.
22099         * tests/test-sys_times.c (main): Enhance test.
22100
22101         fdutimensat: revert prior patch
22102         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
22103         utimens.h.
22104         Reported by Bruno Haible.
22105
22106 2009-12-30  Eric Blake  <ebb9@byu.net>
22107
22108         sys_wait: drop link-warning dependency
22109         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
22110         link-warning efforts.
22111         * lib/sys_wait.in.h: Likewise.
22112
22113         fdutimensat: remove bogus dependency
22114         * modules/fdutimensat (Depends-on): Drop inline.
22115
22116         unistd: fix typo
22117         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
22118
22119 2009-12-30  Bruno Haible  <bruno@clisp.org>
22120
22121         Fix compilation error with Solaris cc.
22122         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
22123         * lib/unicase/u16-is-invariant.c: Likewise.
22124         * lib/unicase/u32-is-invariant.c: Likewise.
22125         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22126
22127 2009-12-30  Bruno Haible  <bruno@clisp.org>
22128
22129         Fix test crash.
22130         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
22131         locales.
22132         Reported by Simon Josefsson <simon@josefsson.org>.
22133
22134 2009-12-30  Bruno Haible  <bruno@clisp.org>
22135
22136         Fix compilation error on most platforms.
22137         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
22138         Reported by Simon Josefsson <simon@josefsson.org>
22139         and Nelson H. F. Beebe <beebe@math.utah.edu>.
22140
22141 2009-12-30  Eric Blake  <ebb9@byu.net>
22142
22143         futimens, utimensat: work around ntfs-3g bug
22144         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
22145         a ctime bug is present, and expand workaround to cover ntfs-3g.
22146         * lib/utimens.c (fdutimens, lutimens): Likewise.
22147         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
22148         (validate_timespec): Adjust return value.
22149         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
22150         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22151         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
22152
22153 2009-12-29  Eric Blake  <ebb9@byu.net>
22154
22155         link-warning: make usage consistent
22156         * modules/ctype (Depends-on): Add link-warning.
22157         (Makefile.am): Update rules accordingly.
22158         * modules/langinfo (Depends-on, Makefile.am): Likewise.
22159         * modules/locale (Depends-on, Makefile.am): Likewise.
22160         * modules/sys_file (Makefile.am): Likewise.
22161         * modules/getopt-posix (Makefile.am): Delete unused link warning
22162         efforts.
22163         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
22164         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
22165         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
22166         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
22167
22168         stdio: remove unused variables
22169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
22170         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
22171         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22172
22173         tests: test more substitute headers
22174         * modules/ctype-tests: New file.
22175         * modules/dirent-tests: Likewise.
22176         * modules/spawn-tests: Likewise.
22177         * modules/sys_file-tests: Likewise.
22178         * modules/sys_ioctl-tests: Likewise.
22179         * modules/sys_wait-tests: Likewise.
22180         * tests/test-ctype.c: Likewise.
22181         * tests/test-dirent.c: Likewise.
22182         * tests/test-spawn.c: Likewise.
22183         * tests/test-sys_file.c: Likewise.
22184         * tests/test-sys_ioctl.c: Likewise.
22185         * tests/test-sys_wait.c: Likewise.
22186         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
22187         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
22188         whether or not flock is in use.
22189
22190         tests: remove License section from module
22191         * modules/arpa_inet-tests: Remove unneeded section.
22192         * modules/byteswap-tests: Likewise.
22193         * modules/ceilf-tests: Likewise.
22194         * modules/ceill-tests: Likewise.
22195         * modules/crypto/des-tests: Likewise.
22196         * modules/crypto/gc-arcfour-tests: Likewise.
22197         * modules/crypto/gc-arctwo-tests: Likewise.
22198         * modules/crypto/gc-des-tests: Likewise.
22199         * modules/crypto/gc-hmac-md5-tests: Likewise.
22200         * modules/crypto/gc-hmac-sha1-tests: Likewise.
22201         * modules/crypto/gc-md2-tests: Likewise.
22202         * modules/crypto/gc-md4-tests: Likewise.
22203         * modules/crypto/gc-md5-tests: Likewise.
22204         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
22205         * modules/crypto/gc-rijndael-tests: Likewise.
22206         * modules/crypto/gc-sha1-tests: Likewise.
22207         * modules/crypto/gc-tests: Likewise.
22208         * modules/crypto/md2-tests: Likewise.
22209         * modules/crypto/md4-tests: Likewise.
22210         * modules/fcntl-h-tests: Likewise.
22211         * modules/floorf-tests: Likewise.
22212         * modules/floorl-tests: Likewise.
22213         * modules/frexp-nolibm-tests: Likewise.
22214         * modules/frexp-tests: Likewise.
22215         * modules/frexpl-nolibm-tests: Likewise.
22216         * modules/frexpl-tests: Likewise.
22217         * modules/getaddrinfo-tests: Likewise.
22218         * modules/inttypes-tests: Likewise.
22219         * modules/isfinite-tests: Likewise.
22220         * modules/isinf-tests: Likewise.
22221         * modules/ldexpl-tests: Likewise.
22222         * modules/locale-tests: Likewise.
22223         * modules/math-tests: Likewise.
22224         * modules/netdb-tests: Likewise.
22225         * modules/netinet_in-tests: Likewise.
22226         * modules/printf-frexp-tests: Likewise.
22227         * modules/printf-frexpl-tests: Likewise.
22228         * modules/priv-set-tests: Likewise.
22229         * modules/random_r-tests: Likewise.
22230         * modules/round-tests: Likewise.
22231         * modules/roundf-tests: Likewise.
22232         * modules/roundl-tests: Likewise.
22233         * modules/search-tests: Likewise.
22234         * modules/select-tests: Likewise.
22235         * modules/signal-tests: Likewise.
22236         * modules/stdbool-tests: Likewise.
22237         * modules/stddef-tests: Likewise.
22238         * modules/stdint-tests: Likewise.
22239         * modules/stdio-tests: Likewise.
22240         * modules/stdlib-tests: Likewise.
22241         * modules/string-tests: Likewise.
22242         * modules/strings-tests: Likewise.
22243         * modules/sys_select-tests: Likewise.
22244         * modules/sys_socket-tests: Likewise.
22245         * modules/sys_stat-tests: Likewise.
22246         * modules/sys_time-tests: Likewise.
22247         * modules/sys_utsname-tests: Likewise.
22248         * modules/sysexits-tests: Likewise.
22249         * modules/time-tests: Likewise.
22250         * modules/trunc-tests: Likewise.
22251         * modules/truncf-tests: Likewise.
22252         * modules/truncl-tests: Likewise.
22253         * modules/tsearch-tests: Likewise.
22254         * modules/unistd-tests: Likewise.
22255         * modules/wchar-tests: Likewise.
22256         * modules/wctype-tests: Likewise.
22257
22258         tests: fix license on several tests
22259         * tests/test-des.c: Update to GPLv3+.
22260         * tests/test-flock.c: Likewise.
22261         * tests/test-fsync.c: Likewise.
22262         * tests/test-futimens.h: Likewise.
22263         * tests/test-gc-arcfour.c: Likewise.
22264         * tests/test-gc-arctwo.c: Likewise.
22265         * tests/test-gc-des.c: Likewise.
22266         * tests/test-gc-hmac-md5.c: Likewise.
22267         * tests/test-gc-hmac-sha1.c: Likewise.
22268         * tests/test-gc-md2.c: Likewise.
22269         * tests/test-gc-md4.c: Likewise.
22270         * tests/test-gc-md5.c: Likewise.
22271         * tests/test-gc-pbkdf2-sha1.c: Likewise.
22272         * tests/test-gc-rijndael.c: Likewise.
22273         * tests/test-gc-sha1.c: Likewise.
22274         * tests/test-gc.c: Likewise.
22275         * tests/test-getcwd.c: Likewise.
22276         * tests/test-link.c: Likewise.
22277         * tests/test-link.h: Likewise.
22278         * tests/test-lutimens.h: Likewise.
22279         * tests/test-md2.c: Likewise.
22280         * tests/test-md4.c: Likewise.
22281         * tests/test-mkdir.h: Likewise.
22282         * tests/test-rename.c: Likewise.
22283         * tests/test-rename.h: Likewise.
22284         * tests/test-safe-alloc.c: Likewise.
22285         * tests/test-utimens-common.h: Likewise.
22286         * tests/test-utimens.h: Likewise.
22287
22288         maint: sync license texts
22289         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
22290         * doc/gpl-3.0.texi: Revert copyright year update.
22291         * doc/lgpl-3.0.texi: Likewise.
22292
22293 2009-12-29  Jim Meyering  <meyering@redhat.com>
22294
22295         update nearly all FSF copyright year lists to include 2009
22296         The files named by the following are exempted:
22297             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
22298               test -f "$dst" && { echo "$dst"; continue; }
22299               test -d "$dst" || continue
22300               echo "$dst"/$(basename "$src")
22301             done > exempt
22302             git ls-files tests/unictype >> exempt
22303         In the remaining files, convert to all-interval notation if
22304         - there is already at least one year interval like 2000-2003
22305         - the file is maintained by me
22306         - the file is in lib/uni*/, where that style already prevails
22307         Otherwise, use update-copyright's default.
22308
22309 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22310         and Eric Blake  <ebb9@byu.net>
22311
22312         tests: don't require debug system() to pass
22313         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
22314         * tests/test-rmdir.h (test_rmdir_func): Likewise.
22315         * tests/test-unlink.h (test_unlink_func): Likewise.
22316         * tests/test-fstatat.c (main): ...into callers.
22317         * tests/test-lstat.c (main): Likewise.
22318         * tests/test-rmdir.c (main): Likewise.
22319         * tests/test-unlink.c (main): Likewise.
22320         * tests/test-unlinkat.c (main): Likewise.
22321         * tests/test-areadlink-with-size.c (main): Don't require a
22322         debug-only system call to pass, aiding cross-testing to mingw.
22323         * tests/test-areadlink.c (main): Likewise.
22324         * tests/test-areadlinkat-with-size.c (main): Likewise.
22325         * tests/test-areadlinkat.c (main): Likewise.
22326         * tests/test-canonicalize-lgpl.c (main): Likewise.
22327         * tests/test-canonicalize.c (main): Likewise.
22328         * tests/test-chown.c (main): Likewise.
22329         * tests/test-fchownat.c (main): Likewise.
22330         * tests/test-lchown.c (main): Likewise.
22331         * tests/test-fdutimensat.c (main): Likewise.
22332         * tests/test-futimens.c (main): Likewise.
22333         * tests/test-link.c (main): Likewise.
22334         * tests/test-linkat.c (main): Likewise.
22335         * tests/test-mkdir.c (main): Likewise.
22336         * tests/test-mkdirat.c (main): Likewise.
22337         * tests/test-mkfifo.c (main): Likewise.
22338         * tests/test-mkfifoat.c (main): Likewise.
22339         * tests/test-mknod.c (main): Likewise.
22340         * tests/test-readlink.c (main): Likewise.
22341         * tests/test-remove.c (main): Likewise.
22342         * tests/test-rename.c (main): Likewise.
22343         * tests/test-renameat.c (main): Likewise.
22344         * tests/test-symlink.c (main): Likewise.
22345         * tests/test-symlinkat.c (main): Likewise.
22346         * tests/test-utimens.c (main): Likewise.
22347         * tests/test-utimensat.c (main): Likewise.
22348
22349 2009-12-29  Simon Josefsson  <simon@josefsson.org>
22350
22351         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
22352         on $(UNUSED_PARAMETER_H) to avoid build failure.
22353
22354 2009-12-28  Jim Meyering  <meyering@redhat.com>
22355
22356         update-copyright: you may specify a max. line length other than 72
22357         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
22358
22359         maint: use consistent FSF copyright line syntax
22360         * lib/posixtm.c: Add missing comma in FSF copyright line.
22361         * lib/posixtm.h: Likewise.
22362         * lib/getugroups.c: Add missing ", Inc.".
22363
22364         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
22365         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
22366         FSF copyright line.  Remove trailing blanks.
22367
22368 2009-12-28  Eric Blake  <ebb9@byu.net>
22369
22370         test-dup2: reduce dependencies
22371         * modules/cloexec (Configure.ac): Set witness.
22372         * modules/dup2-tests (Depends-on): Drop cloexec.
22373         * tests/test-dup2.c (main): Skip portion of test if cloexec module
22374         not present.
22375         Suggested by Bruno Haible.
22376
22377 2009-12-26  Bruno Haible  <bruno@clisp.org>
22378
22379         Remove an unneeded dependency.
22380         * modules/fseterr (Depends-on): Remove dup2.
22381
22382 2009-12-26  Eric Blake  <ebb9@byu.net>
22383
22384         tests: use macros.h in more places
22385         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
22386         (ASSERT_STREAM): Provide default of stderr.
22387         * tests/test-dirent-safer.c: Include macros.h, using alternate
22388         stream for assertions.
22389         * tests/test-dup-safer.c: Likewise.
22390         * tests/test-freopen-safer.c: Likewise.
22391         * tests/test-getopt.c: Likewise.
22392         * tests/test-openat-safer.c: Likewise.
22393         * tests/test-pipe.c: Likewise.
22394         * tests/test-popen-safer.c: Likewise.
22395         * modules/dirent-safer-tests (Files): Include macros.h.
22396         * modules/unistd-safer-tests (Files): Likewise.
22397         * modules/freopen-safer-tests (Files): Likewise.
22398         * modules/getopt-posix-tests (Files): Likewise.
22399         * modules/openat-safer-tests (Files): Likewise.
22400         * modules/pipe-tests (Files): Likewise.
22401
22402 2009-12-26  Bruno Haible  <bruno@clisp.org>
22403
22404         javacomp: Portability fix.
22405         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
22406         that it also works on Solaris.
22407
22408 2009-12-26  Bruno Haible  <bruno@clisp.org>
22409
22410         localename: Fix storage allocation of gl_locale_name_thread's result.
22411         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
22412         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
22413         all platforms that have 'uselocale'.
22414         (gl_locale_name_thread_unsafe): New function, extracted from
22415         gl_locale_name_thread.
22416         (gl_locale_name_thread): Call struniq on all platforms that have
22417         'uselocale'.
22418         * tests/test-localename.c (test_locale_name_thread): Check that the
22419         resulting strings are permanently allocated.
22420         * modules/localename-tests (Depends-on): Add strdup.
22421
22422 2009-12-26  Bruno Haible  <bruno@clisp.org>
22423
22424         * tests/test-localename.c (categories): Fill in the strings.
22425
22426 2009-12-26  Jim Meyering  <meyering@redhat.com>
22427
22428         isdir: complete the removal of m4/isdir.m4
22429         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
22430
22431         isdir: clean up, since at least grep still uses it
22432         * lib/isdir.c: Include "isdir.h".
22433         (S_ISDIR): Remove now-unneeded definition.
22434         * modules/isdir (Files): Add lib/isdir.h.
22435         * lib/isdir.h: New file, with declaration.
22436         * m4/isdir.m4: Remove file -- unneeded.
22437
22438 2009-12-25  Bruno Haible  <bruno@clisp.org>
22439
22440         selinux-h: Make generated .h files standalone.
22441         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
22442         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
22443         * lib/se-selinux.in.h: Likewise.
22444         * modules/selinux-h (Depends-on): Add unused-parameter.
22445         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
22446         selinux/selinux.h and selinux/context.h.
22447         Suggested by Eric Blake.
22448
22449 2009-12-25  Bruno Haible  <bruno@clisp.org>
22450
22451         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
22452         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
22453         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
22454         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
22455         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
22456
22457 2009-12-24  Bruno Haible  <bruno@clisp.org>
22458
22459         openat: Fix warning.
22460         * lib/openat-proc.c: Include <unistd.h>.
22461
22462 2009-12-24  Bruno Haible  <bruno@clisp.org>
22463
22464         New module 'unused-parameter'.
22465         * build-aux/unused-parameter.h: New file, extracted from earlier
22466         gnulib-common.m4.
22467         * modules/unused-parameter: New file.
22468         * lib/unistr.h: Include unused-parameter.h.
22469         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
22470         _GL_UNUSED.
22471         * modules/unistr/base (Depends-on): Add unused-parameter.
22472
22473 2009-12-24  Bruno Haible  <bruno@clisp.org>
22474
22475         Add missing dependencies to 'extensions' module.
22476         * m4/extensions.m4: Add comment.
22477         * modules/accept4 (Depends-on): Add extensions.
22478         * modules/dup3 (Depends-on): Likewise.
22479         * modules/fcntl (Depends-on): Likewise.
22480         * modules/futimens (Depends-on): Likewise.
22481         * modules/mknod (Depends-on): Likewise.
22482         * modules/pipe2 (Depends-on): Likewise.
22483         * modules/stat-time (Depends-on): Likewise.
22484         * modules/strcasestr-simple (Depends-on): Likewise.
22485         * modules/strsignal (Depends-on): Likewise.
22486         * modules/utimensat (Depends-on): Likewise.
22487         * modules/localcharset (Depends-on): Likewise. Needed because of
22488         gl_FCNTL_O_FLAGS.
22489         * modules/wcrtomb (Depends-on): Likewise. Needed because of
22490         AC_TYPE_MBSTATE_T.
22491         * modules/wcsnrtombs (Depends-on): Likewise.
22492         * modules/wcsrtombs (Depends-on): Likewise.
22493
22494 2009-12-24  Bruno Haible  <bruno@clisp.org>
22495
22496         binary-io: Avoid gcc warning due to SET_BINARY.
22497         * lib/binary-io.h (SET_BINARY): Cast the result to void.
22498         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
22499
22500 2009-12-24  Bruno Haible  <bruno@clisp.org>
22501
22502         Avoid future namespace pollution on glibc systems.
22503         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
22504         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
22505         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
22506         glibc systems.
22507
22508 2009-12-24  Bruno Haible  <bruno@clisp.org>
22509
22510         Refactor common macros used in tests.
22511         * tests/macros.h: New file.
22512         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
22513         and/or <stdlib.h>, if appropriate.
22514         (ASSERT, SIZEOF): Remove macros.
22515         * tests/test-areadlink-with-size.c: Likewise.
22516         * tests/test-areadlinkat.c: Likewise.
22517         * tests/test-areadlinkat-with-size.c: Likewise.
22518         * tests/test-argmatch.c: Likewise.
22519         * tests/test-argv-iter.c: Likewise.
22520         * tests/test-array-mergesort.c: Likewise.
22521         * tests/test-array_list.c: Likewise.
22522         * tests/test-array_oset.c: Likewise.
22523         * tests/test-avltree_list.c: Likewise.
22524         * tests/test-avltree_oset.c: Likewise.
22525         * tests/test-avltreehash_list.c: Likewise.
22526         * tests/test-base64.c: Likewise.
22527         * tests/test-binary-io.c: Likewise.
22528         * tests/test-bitrotate.c: Likewise.
22529         * tests/test-btowc.c: Likewise.
22530         * tests/test-byteswap.c: Likewise.
22531         * tests/test-c-ctype.c: Likewise.
22532         * tests/test-c-stack.c: Likewise.
22533         * tests/test-c-strcasecmp.c: Likewise.
22534         * tests/test-c-strcasestr.c: Likewise.
22535         * tests/test-c-strncasecmp.c: Likewise.
22536         * tests/test-c-strstr.c: Likewise.
22537         * tests/test-canonicalize-lgpl.c: Likewise.
22538         * tests/test-canonicalize.c: Likewise.
22539         * tests/test-carray_list.c: Likewise.
22540         * tests/test-ceilf1.c: Likewise.
22541         * tests/test-ceilf2.c: Likewise.
22542         * tests/test-ceill.c: Likewise.
22543         * tests/test-chown.c: Likewise.
22544         * tests/test-cloexec.c: Likewise.
22545         * tests/test-copy-acl.c: Likewise.
22546         * tests/test-copy-file.c: Likewise.
22547         * tests/test-count-one-bits.c: Likewise.
22548         * tests/test-dprintf-posix.c: Likewise.
22549         * tests/test-dup2.c: Likewise.
22550         * tests/test-dup3.c: Likewise.
22551         * tests/test-duplocale.c: Likewise.
22552         * tests/test-fbufmode.c: Likewise.
22553         * tests/test-fchdir.c: Likewise.
22554         * tests/test-fchownat.c: Likewise.
22555         * tests/test-fcntl-safer.c: Likewise.
22556         * tests/test-fcntl.c: Likewise.
22557         * tests/test-fdopendir.c: Likewise.
22558         * tests/test-fdutimensat.c: Likewise.
22559         * tests/test-fflush2.c: Likewise.
22560         * tests/test-file-has-acl.c: Likewise.
22561         * tests/test-filevercmp.c: Likewise.
22562         * tests/test-flock.c: Likewise.
22563         * tests/test-floorf1.c: Likewise.
22564         * tests/test-floorf2.c: Likewise.
22565         * tests/test-floorl.c: Likewise.
22566         * tests/test-fnmatch.c: Likewise.
22567         * tests/test-fopen.h: Likewise.
22568         * tests/test-fpending.c: Likewise.
22569         * tests/test-fprintf-posix.c: Likewise.
22570         * tests/test-fpurge.c: Likewise.
22571         * tests/test-freadable.c: Likewise.
22572         * tests/test-freadahead.c: Likewise.
22573         * tests/test-freading.c: Likewise.
22574         * tests/test-freadptr.c: Likewise.
22575         * tests/test-freadptr2.c: Likewise.
22576         * tests/test-freadseek.c: Likewise.
22577         * tests/test-freopen.c: Likewise.
22578         * tests/test-frexp.c: Likewise.
22579         * tests/test-frexpl.c: Likewise.
22580         * tests/test-fseek.c: Likewise.
22581         * tests/test-fseeko.c: Likewise.
22582         * tests/test-fstatat.c: Likewise.
22583         * tests/test-fstrcmp.c: Likewise.
22584         * tests/test-fsync.c: Likewise.
22585         * tests/test-ftell.c: Likewise.
22586         * tests/test-ftello.c: Likewise.
22587         * tests/test-func.c: Likewise.
22588         * tests/test-futimens.c: Likewise.
22589         * tests/test-fwritable.c: Likewise.
22590         * tests/test-fwriting.c: Likewise.
22591         * tests/test-getcwd.c: Likewise.
22592         * tests/test-getdate.c: Likewise.
22593         * tests/test-getdelim.c: Likewise.
22594         * tests/test-getdtablesize.c: Likewise.
22595         * tests/test-getgroups.c: Likewise.
22596         * tests/test-getline.c: Likewise.
22597         * tests/test-getndelim2.c: Likewise.
22598         * tests/test-glob.c: Likewise.
22599         * tests/test-hash.c: Likewise.
22600         * tests/test-i-ring.c: Likewise.
22601         * tests/test-iconv-utf.c: Likewise.
22602         * tests/test-iconv.c: Likewise.
22603         * tests/test-idpriv-drop.c: Likewise.
22604         * tests/test-idpriv-droptemp.c: Likewise.
22605         * tests/test-inet_ntop.c: Likewise.
22606         * tests/test-inet_pton.c: Likewise.
22607         * tests/test-isblank.c: Likewise.
22608         * tests/test-isfinite.c: Likewise.
22609         * tests/test-isinf.c: Likewise.
22610         * tests/test-isnan.c: Likewise.
22611         * tests/test-isnand.h: Likewise.
22612         * tests/test-isnanf.h: Likewise.
22613         * tests/test-isnanl.h: Likewise.
22614         * tests/test-lchown.c: Likewise.
22615         * tests/test-ldexpl.c: Likewise.
22616         * tests/test-link.c: Likewise.
22617         * tests/test-linkat.c: Likewise.
22618         * tests/test-linked_list.c: Likewise.
22619         * tests/test-linkedhash_list.c: Likewise.
22620         * tests/test-localename.c: Likewise.
22621         * tests/test-lseek.c: Likewise.
22622         * tests/test-lstat.c: Likewise.
22623         * tests/test-mbmemcasecmp.c: Likewise.
22624         * tests/test-mbmemcasecoll.c: Likewise.
22625         * tests/test-mbrtowc.c: Likewise.
22626         * tests/test-mbscasecmp.c: Likewise.
22627         * tests/test-mbscasestr1.c: Likewise.
22628         * tests/test-mbscasestr2.c: Likewise.
22629         * tests/test-mbscasestr3.c: Likewise.
22630         * tests/test-mbscasestr4.c: Likewise.
22631         * tests/test-mbschr.c: Likewise.
22632         * tests/test-mbscspn.c: Likewise.
22633         * tests/test-mbsinit.c: Likewise.
22634         * tests/test-mbsncasecmp.c: Likewise.
22635         * tests/test-mbsnrtowcs.c: Likewise.
22636         * tests/test-mbspbrk.c: Likewise.
22637         * tests/test-mbspcasecmp.c: Likewise.
22638         * tests/test-mbsrchr.c: Likewise.
22639         * tests/test-mbsrtowcs.c: Likewise.
22640         * tests/test-mbsspn.c: Likewise.
22641         * tests/test-mbsstr1.c: Likewise.
22642         * tests/test-mbsstr2.c: Likewise.
22643         * tests/test-mbsstr3.c: Likewise.
22644         * tests/test-memchr.c: Likewise.
22645         * tests/test-memchr2.c: Likewise.
22646         * tests/test-memcmp.c: Likewise.
22647         * tests/test-memmem.c: Likewise.
22648         * tests/test-memrchr.c: Likewise.
22649         * tests/test-mkdir.c: Likewise.
22650         * tests/test-mkdirat.c: Likewise.
22651         * tests/test-mkfifo.c: Likewise.
22652         * tests/test-mkfifoat.c: Likewise.
22653         * tests/test-mknod.c: Likewise.
22654         * tests/test-nanosleep.c: Likewise.
22655         * tests/test-nl_langinfo.c: Likewise.
22656         * tests/test-obstack-printf.c: Likewise.
22657         * tests/test-open.c: Likewise.
22658         * tests/test-openat.c: Likewise.
22659         * tests/test-pipe-filter-gi1.c: Likewise.
22660         * tests/test-pipe-filter-gi2-main.c: Likewise.
22661         * tests/test-pipe-filter-ii1.c: Likewise.
22662         * tests/test-pipe-filter-ii2-main.c: Likewise.
22663         * tests/test-pipe2.c: Likewise.
22664         * tests/test-popen.h: Likewise.
22665         * tests/test-posixtm.c: Likewise.
22666         * tests/test-pread.c: Likewise.
22667         * tests/test-printf-frexp.c: Likewise.
22668         * tests/test-printf-frexpl.c: Likewise.
22669         * tests/test-printf-posix.c: Likewise.
22670         * tests/test-priv-set.c: Likewise.
22671         * tests/test-quotearg.c: Likewise.
22672         * tests/test-random_r.c: Likewise.
22673         * tests/test-rawmemchr.c: Likewise.
22674         * tests/test-rbtree_list.c: Likewise.
22675         * tests/test-rbtree_oset.c: Likewise.
22676         * tests/test-rbtreehash_list.c: Likewise.
22677         * tests/test-readlink.c: Likewise.
22678         * tests/test-remove.c: Likewise.
22679         * tests/test-rename.c: Likewise.
22680         * tests/test-renameat.c: Likewise.
22681         * tests/test-rmdir.c: Likewise.
22682         * tests/test-round1.c: Likewise.
22683         * tests/test-roundf1.c: Likewise.
22684         * tests/test-roundl.c: Likewise.
22685         * tests/test-safe-alloc.c: Likewise.
22686         * tests/test-sameacls.c: Likewise.
22687         * tests/test-set-mode-acl.c: Likewise.
22688         * tests/test-setenv.c: Likewise.
22689         * tests/test-sigaction.c: Likewise.
22690         * tests/test-signbit.c: Likewise.
22691         * tests/test-sleep.c: Likewise.
22692         * tests/test-snprintf-posix.c: Likewise.
22693         * tests/test-snprintf.c: Likewise.
22694         * tests/test-sprintf-posix.c: Likewise.
22695         * tests/test-stat-time.c: Likewise.
22696         * tests/test-stat.c: Likewise.
22697         * tests/test-strcasestr.c: Likewise.
22698         * tests/test-strchrnul.c: Likewise.
22699         * tests/test-strerror.c: Likewise.
22700         * tests/test-striconv.c: Likewise.
22701         * tests/test-striconveh.c: Likewise.
22702         * tests/test-striconveha.c: Likewise.
22703         * tests/test-strsignal.c: Likewise.
22704         * tests/test-strstr.c: Likewise.
22705         * tests/test-strtod.c: Likewise.
22706         * tests/test-strverscmp.c: Likewise.
22707         * tests/test-symlink.c: Likewise.
22708         * tests/test-symlinkat.c: Likewise.
22709         * tests/test-trunc1.c: Likewise.
22710         * tests/test-trunc2.c: Likewise.
22711         * tests/test-truncf1.c: Likewise.
22712         * tests/test-truncf2.c: Likewise.
22713         * tests/test-truncl.c: Likewise.
22714         * tests/test-uname.c: Likewise.
22715         * tests/test-unlink.c: Likewise.
22716         * tests/test-unlinkat.c: Likewise.
22717         * tests/test-unsetenv.c: Likewise.
22718         * tests/test-usleep.c: Likewise.
22719         * tests/test-utimens.c: Likewise.
22720         * tests/test-utimensat.c: Likewise.
22721         * tests/test-vasnprintf-posix.c: Likewise.
22722         * tests/test-vasnprintf-posix2.c: Likewise.
22723         * tests/test-vasnprintf.c: Likewise.
22724         * tests/test-vasprintf-posix.c: Likewise.
22725         * tests/test-vasprintf.c: Likewise.
22726         * tests/test-vdprintf-posix.c: Likewise.
22727         * tests/test-vfprintf-posix.c: Likewise.
22728         * tests/test-vprintf-posix.c: Likewise.
22729         * tests/test-vsnprintf-posix.c: Likewise.
22730         * tests/test-vsnprintf.c: Likewise.
22731         * tests/test-vsprintf-posix.c: Likewise.
22732         * tests/test-wcrtomb.c: Likewise.
22733         * tests/test-wcsnrtombs.c: Likewise.
22734         * tests/test-wcsrtombs.c: Likewise.
22735         * tests/test-wctype.c: Likewise.
22736         * tests/test-wcwidth.c: Likewise.
22737         * tests/test-xfprintf-posix.c: Likewise.
22738         * tests/test-xmemdup0.c: Likewise.
22739         * tests/test-xprintf-posix.c: Likewise.
22740         * tests/test-xvasprintf.c: Likewise.
22741         * tests/unicase/test-locale-language.c: Likewise.
22742         * tests/unicase/test-mapping-part1.h: Likewise.
22743         * tests/unicase/test-predicate-part1.h: Likewise.
22744         * tests/unicase/test-u8-casecmp.c: Likewise.
22745         * tests/unicase/test-u8-casecoll.c: Likewise.
22746         * tests/unicase/test-u8-casefold.c: Likewise.
22747         * tests/unicase/test-u8-is-cased.c: Likewise.
22748         * tests/unicase/test-u8-is-casefolded.c: Likewise.
22749         * tests/unicase/test-u8-is-lowercase.c: Likewise.
22750         * tests/unicase/test-u8-is-titlecase.c: Likewise.
22751         * tests/unicase/test-u8-is-uppercase.c: Likewise.
22752         * tests/unicase/test-u8-tolower.c: Likewise.
22753         * tests/unicase/test-u8-totitle.c: Likewise.
22754         * tests/unicase/test-u8-toupper.c: Likewise.
22755         * tests/unicase/test-u16-casecmp.c: Likewise.
22756         * tests/unicase/test-u16-casecoll.c: Likewise.
22757         * tests/unicase/test-u16-casefold.c: Likewise.
22758         * tests/unicase/test-u16-is-cased.c: Likewise.
22759         * tests/unicase/test-u16-is-casefolded.c: Likewise.
22760         * tests/unicase/test-u16-is-lowercase.c: Likewise.
22761         * tests/unicase/test-u16-is-titlecase.c: Likewise.
22762         * tests/unicase/test-u16-is-uppercase.c: Likewise.
22763         * tests/unicase/test-u16-tolower.c: Likewise.
22764         * tests/unicase/test-u16-totitle.c: Likewise.
22765         * tests/unicase/test-u16-toupper.c: Likewise.
22766         * tests/unicase/test-u32-casecmp.c: Likewise.
22767         * tests/unicase/test-u32-casecoll.c: Likewise.
22768         * tests/unicase/test-u32-casefold.c: Likewise.
22769         * tests/unicase/test-u32-is-cased.c: Likewise.
22770         * tests/unicase/test-u32-is-casefolded.c: Likewise.
22771         * tests/unicase/test-u32-is-lowercase.c: Likewise.
22772         * tests/unicase/test-u32-is-titlecase.c: Likewise.
22773         * tests/unicase/test-u32-is-uppercase.c: Likewise.
22774         * tests/unicase/test-u32-tolower.c: Likewise.
22775         * tests/unicase/test-u32-totitle.c: Likewise.
22776         * tests/unicase/test-u32-toupper.c: Likewise.
22777         * tests/unicase/test-ulc-casecmp.c: Likewise.
22778         * tests/unicase/test-ulc-casecoll.c: Likewise.
22779         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22780         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22781         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22782         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22783         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22784         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22785         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22786         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22787         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22788         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22789         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22790         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22791         * tests/unictype/test-bidi_byname.c: Likewise.
22792         * tests/unictype/test-bidi_name.c: Likewise.
22793         * tests/unictype/test-bidi_of.c: Likewise.
22794         * tests/unictype/test-bidi_test.c: Likewise.
22795         * tests/unictype/test-block_list.c: Likewise.
22796         * tests/unictype/test-block_of.c: Likewise.
22797         * tests/unictype/test-block_test.c: Likewise.
22798         * tests/unictype/test-categ_and.c: Likewise.
22799         * tests/unictype/test-categ_and_not.c: Likewise.
22800         * tests/unictype/test-categ_byname.c: Likewise.
22801         * tests/unictype/test-categ_name.c: Likewise.
22802         * tests/unictype/test-categ_none.c: Likewise.
22803         * tests/unictype/test-categ_of.c: Likewise.
22804         * tests/unictype/test-categ_or.c: Likewise.
22805         * tests/unictype/test-categ_test_withtable.c: Likewise.
22806         * tests/unictype/test-combining.c: Likewise.
22807         * tests/unictype/test-decdigit.c: Likewise.
22808         * tests/unictype/test-digit.c: Likewise.
22809         * tests/unictype/test-mirror.c: Likewise.
22810         * tests/unictype/test-numeric.c: Likewise.
22811         * tests/unictype/test-pr_byname.c: Likewise.
22812         * tests/unictype/test-pr_test.c: Likewise.
22813         * tests/unictype/test-predicate-part1.h: Likewise.
22814         * tests/unictype/test-scripts.c: Likewise.
22815         * tests/unictype/test-sy_c_ident.c: Likewise.
22816         * tests/unictype/test-sy_java_ident.c: Likewise.
22817         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
22818         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
22819         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
22820         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
22821         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
22822         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
22823         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
22824         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
22825         * tests/uninorm/test-canonical-decomposition.c: Likewise.
22826         * tests/uninorm/test-compat-decomposition.c: Likewise.
22827         * tests/uninorm/test-composition.c: Likewise.
22828         * tests/uninorm/test-decomposing-form.c: Likewise.
22829         * tests/uninorm/test-decomposition.c: Likewise.
22830         * tests/uninorm/test-u8-nfc.c: Likewise.
22831         * tests/uninorm/test-u8-nfd.c: Likewise.
22832         * tests/uninorm/test-u8-nfkc.c: Likewise.
22833         * tests/uninorm/test-u8-nfkd.c: Likewise.
22834         * tests/uninorm/test-u8-normcmp.c: Likewise.
22835         * tests/uninorm/test-u8-normcoll.c: Likewise.
22836         * tests/uninorm/test-u16-nfc.c: Likewise.
22837         * tests/uninorm/test-u16-nfd.c: Likewise.
22838         * tests/uninorm/test-u16-nfkc.c: Likewise.
22839         * tests/uninorm/test-u16-nfkd.c: Likewise.
22840         * tests/uninorm/test-u16-normcmp.c: Likewise.
22841         * tests/uninorm/test-u16-normcoll.c: Likewise.
22842         * tests/uninorm/test-u32-nfc.c: Likewise.
22843         * tests/uninorm/test-u32-nfd.c: Likewise.
22844         * tests/uninorm/test-u32-nfkc.c: Likewise.
22845         * tests/uninorm/test-u32-nfkd.c: Likewise.
22846         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22847         * tests/uninorm/test-u32-normcmp.c: Likewise.
22848         * tests/uninorm/test-u32-normcoll.c: Likewise.
22849         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
22850         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22851         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22852         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22853         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22854         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22855         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22856         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22857         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22858         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22859         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22860         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22861         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22862         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22863         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22864         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22865         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22866         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22867         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22868         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22869         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22870         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22871         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22872         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22873         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22874         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22875         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22876         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22877         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22878         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
22879         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
22880         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
22881         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
22882         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22883         * tests/uniwidth/test-u8-width.c: Likewise.
22884         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22885         * tests/uniwidth/test-u16-width.c: Likewise.
22886         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22887         * tests/uniwidth/test-u32-width.c: Likewise.
22888         * tests/uniwidth/test-uc_width.c: Likewise.
22889         * tests/uniwidth/test-uc_width2.c: Likewise.
22890         * modules/acl-tests (Files): Add tests/macros.h.
22891         * modules/areadlink-tests (Files): Likewise.
22892         * modules/areadlink-with-size-tests (Files): Likewise.
22893         * modules/areadlinkat-tests (Files): Likewise.
22894         * modules/areadlinkat-with-size-tests (Files): Likewise.
22895         * modules/argmatch-tests (Files): Likewise.
22896         * modules/argv-iter-tests (Files): Likewise.
22897         * modules/array-list-tests (Files): Likewise.
22898         * modules/array-mergesort-tests (Files): Likewise.
22899         * modules/array-oset-tests (Files): Likewise.
22900         * modules/avltree-list-tests (Files): Likewise.
22901         * modules/avltree-oset-tests (Files): Likewise.
22902         * modules/avltreehash-list-tests (Files): Likewise.
22903         * modules/base64-tests (Files): Likewise.
22904         * modules/binary-io-tests (Files): Likewise.
22905         * modules/bitrotate-tests (Files): Likewise.
22906         * modules/btowc-tests (Files): Likewise.
22907         * modules/byteswap-tests (Files): Likewise.
22908         * modules/c-ctype-tests (Files): Likewise.
22909         * modules/c-stack-tests (Files): Likewise.
22910         * modules/c-strcase-tests (Files): Likewise.
22911         * modules/c-strcasestr-tests (Files): Likewise.
22912         * modules/c-strstr-tests (Files): Likewise.
22913         * modules/canonicalize-lgpl-tests (Files): Likewise.
22914         * modules/canonicalize-tests (Files): Likewise.
22915         * modules/carray-list-tests (Files): Likewise.
22916         * modules/ceilf-tests (Files): Likewise.
22917         * modules/ceill-tests (Files): Likewise.
22918         * modules/chown-tests (Files): Likewise.
22919         * modules/cloexec-tests (Files): Likewise.
22920         * modules/copy-file-tests (Files): Likewise.
22921         * modules/count-one-bits-tests (Files): Likewise.
22922         * modules/dprintf-posix-tests (Files): Likewise.
22923         * modules/dup2-tests (Files): Likewise.
22924         * modules/dup3-tests (Files): Likewise.
22925         * modules/duplocale-tests (Files): Likewise.
22926         * modules/fbufmode-tests (Files): Likewise.
22927         * modules/fchdir-tests (Files): Likewise.
22928         * modules/fcntl-safer-tests (Files): Likewise.
22929         * modules/fcntl-tests (Files): Likewise.
22930         * modules/fdopendir-tests (Files): Likewise.
22931         * modules/fdutimensat-tests (Files): Likewise.
22932         * modules/fflush-tests (Files): Likewise.
22933         * modules/filevercmp-tests (Files): Likewise.
22934         * modules/flock-tests (Files): Likewise.
22935         * modules/floorf-tests (Files): Likewise.
22936         * modules/floorl-tests (Files): Likewise.
22937         * modules/fnmatch-tests (Files): Likewise.
22938         * modules/fopen-safer-tests (Files): Likewise.
22939         * modules/fopen-tests (Files): Likewise.
22940         * modules/fpending-tests (Files): Likewise.
22941         * modules/fprintf-posix-tests (Files): Likewise.
22942         * modules/fpurge-tests (Files): Likewise.
22943         * modules/freadable-tests (Files): Likewise.
22944         * modules/freadahead-tests (Files): Likewise.
22945         * modules/freading-tests (Files): Likewise.
22946         * modules/freadptr-tests (Files): Likewise.
22947         * modules/freadseek-tests (Files): Likewise.
22948         * modules/freopen-tests (Files): Likewise.
22949         * modules/frexp-nolibm-tests (Files): Likewise.
22950         * modules/frexp-tests (Files): Likewise.
22951         * modules/frexpl-nolibm-tests (Files): Likewise.
22952         * modules/frexpl-tests (Files): Likewise.
22953         * modules/fseek-tests (Files): Likewise.
22954         * modules/fseeko-tests (Files): Likewise.
22955         * modules/fstrcmp-tests (Files): Likewise.
22956         * modules/fsync-tests (Files): Likewise.
22957         * modules/ftell-tests (Files): Likewise.
22958         * modules/ftello-tests (Files): Likewise.
22959         * modules/func-tests (Files): Likewise.
22960         * modules/futimens-tests (Files): Likewise.
22961         * modules/fwritable-tests (Files): Likewise.
22962         * modules/fwriting-tests (Files): Likewise.
22963         * modules/getcwd-tests (Files): Likewise.
22964         * modules/getdate-tests (Files): Likewise.
22965         * modules/getdelim-tests (Files): Likewise.
22966         * modules/getdtablesize-tests (Files): Likewise.
22967         * modules/getgroups-tests (Files): Likewise.
22968         * modules/getline-tests (Files): Likewise.
22969         * modules/getndelim2-tests (Files): Likewise.
22970         * modules/glob-tests (Files): Likewise.
22971         * modules/hash-tests (Files): Likewise.
22972         * modules/i-ring-tests (Files): Likewise.
22973         * modules/iconv-tests (Files): Likewise.
22974         * modules/iconv_open-utf-tests (Files): Likewise.
22975         * modules/idpriv-drop-tests (Files): Likewise.
22976         * modules/idpriv-droptemp-tests (Files): Likewise.
22977         * modules/inet_ntop-tests (Files): Likewise.
22978         * modules/inet_pton-tests (Files): Likewise.
22979         * modules/isblank-tests (Files): Likewise.
22980         * modules/isfinite-tests (Files): Likewise.
22981         * modules/isinf-tests (Files): Likewise.
22982         * modules/isnan-tests (Files): Likewise.
22983         * modules/isnand-nolibm-tests (Files): Likewise.
22984         * modules/isnand-tests (Files): Likewise.
22985         * modules/isnanf-nolibm-tests (Files): Likewise.
22986         * modules/isnanf-tests (Files): Likewise.
22987         * modules/isnanl-nolibm-tests (Files): Likewise.
22988         * modules/isnanl-tests (Files): Likewise.
22989         * modules/lchown-tests (Files): Likewise.
22990         * modules/ldexpl-tests (Files): Likewise.
22991         * modules/link-tests (Files): Likewise.
22992         * modules/linkat-tests (Files): Likewise.
22993         * modules/linked-list-tests (Files): Likewise.
22994         * modules/linkedhash-list-tests (Files): Likewise.
22995         * modules/localename-tests (Files): Likewise.
22996         * modules/lseek-tests (Files): Likewise.
22997         * modules/lstat-tests (Files): Likewise.
22998         * modules/mbmemcasecmp-tests (Files): Likewise.
22999         * modules/mbmemcasecoll-tests (Files): Likewise.
23000         * modules/mbrtowc-tests (Files): Likewise.
23001         * modules/mbscasecmp-tests (Files): Likewise.
23002         * modules/mbscasestr-tests (Files): Likewise.
23003         * modules/mbschr-tests (Files): Likewise.
23004         * modules/mbscspn-tests (Files): Likewise.
23005         * modules/mbsinit-tests (Files): Likewise.
23006         * modules/mbsncasecmp-tests (Files): Likewise.
23007         * modules/mbsnrtowcs-tests (Files): Likewise.
23008         * modules/mbspbrk-tests (Files): Likewise.
23009         * modules/mbspcasecmp-tests (Files): Likewise.
23010         * modules/mbsrchr-tests (Files): Likewise.
23011         * modules/mbsrtowcs-tests (Files): Likewise.
23012         * modules/mbsspn-tests (Files): Likewise.
23013         * modules/mbsstr-tests (Files): Likewise.
23014         * modules/memchr-tests (Files): Likewise.
23015         * modules/memchr2-tests (Files): Likewise.
23016         * modules/memcmp-tests (Files): Likewise.
23017         * modules/memmem-tests (Files): Likewise.
23018         * modules/memrchr-tests (Files): Likewise.
23019         * modules/mkdir-tests (Files): Likewise.
23020         * modules/mkfifo-tests (Files): Likewise.
23021         * modules/mkfifoat-tests (Files): Likewise.
23022         * modules/mknod-tests (Files): Likewise.
23023         * modules/nanosleep-tests (Files): Likewise.
23024         * modules/nl_langinfo-tests (Files): Likewise.
23025         * modules/obstack-printf-tests (Files): Likewise.
23026         * modules/open-tests (Files): Likewise.
23027         * modules/openat-tests (Files): Likewise.
23028         * modules/pipe-filter-gi-tests (Files): Likewise.
23029         * modules/pipe-filter-ii-tests (Files): Likewise.
23030         * modules/pipe2-tests (Files): Likewise.
23031         * modules/popen-safer-tests (Files): Likewise.
23032         * modules/popen-tests (Files): Likewise.
23033         * modules/posixtm-tests (Files): Likewise.
23034         * modules/pread-tests (Files): Likewise.
23035         * modules/printf-frexp-tests (Files): Likewise.
23036         * modules/printf-frexpl-tests (Files): Likewise.
23037         * modules/printf-posix-tests (Files): Likewise.
23038         * modules/priv-set-tests (Files): Likewise.
23039         * modules/quotearg-tests (Files): Likewise.
23040         * modules/random_r-tests (Files): Likewise.
23041         * modules/rawmemchr-tests (Files): Likewise.
23042         * modules/rbtree-list-tests (Files): Likewise.
23043         * modules/rbtree-oset-tests (Files): Likewise.
23044         * modules/rbtreehash-list-tests (Files): Likewise.
23045         * modules/readlink-tests (Files): Likewise.
23046         * modules/remove-tests (Files): Likewise.
23047         * modules/rename-tests (Files): Likewise.
23048         * modules/renameat-tests (Files): Likewise.
23049         * modules/rmdir-tests (Files): Likewise.
23050         * modules/round-tests (Files): Likewise.
23051         * modules/roundf-tests (Files): Likewise.
23052         * modules/roundl-tests (Files): Likewise.
23053         * modules/safe-alloc-tests (Files): Likewise.
23054         * modules/setenv-tests (Files): Likewise.
23055         * modules/sigaction-tests (Files): Likewise.
23056         * modules/signbit-tests (Files): Likewise.
23057         * modules/sleep-tests (Files): Likewise.
23058         * modules/snprintf-posix-tests (Files): Likewise.
23059         * modules/snprintf-tests (Files): Likewise.
23060         * modules/sprintf-posix-tests (Files): Likewise.
23061         * modules/stat-tests (Files): Likewise.
23062         * modules/stat-time-tests (Files): Likewise.
23063         * modules/strcasestr-tests (Files): Likewise.
23064         * modules/strchrnul-tests (Files): Likewise.
23065         * modules/strerror-tests (Files): Likewise.
23066         * modules/striconv-tests (Files): Likewise.
23067         * modules/striconveh-tests (Files): Likewise.
23068         * modules/striconveha-tests (Files): Likewise.
23069         * modules/strsignal-tests (Files): Likewise.
23070         * modules/strstr-tests (Files): Likewise.
23071         * modules/strtod-tests (Files): Likewise.
23072         * modules/strverscmp-tests (Files): Likewise.
23073         * modules/symlink-tests (Files): Likewise.
23074         * modules/symlinkat-tests (Files): Likewise.
23075         * modules/trunc-tests (Files): Likewise.
23076         * modules/truncf-tests (Files): Likewise.
23077         * modules/truncl-tests (Files): Likewise.
23078         * modules/uname-tests (Files): Likewise.
23079         * modules/unicase/cased-tests (Files): Likewise.
23080         * modules/unicase/ignorable-tests (Files): Likewise.
23081         * modules/unicase/locale-language-tests (Files): Likewise.
23082         * modules/unicase/tolower-tests (Files): Likewise.
23083         * modules/unicase/totitle-tests (Files): Likewise.
23084         * modules/unicase/toupper-tests (Files): Likewise.
23085         * modules/unicase/u8-casecmp-tests (Files): Likewise.
23086         * modules/unicase/u8-casecoll-tests (Files): Likewise.
23087         * modules/unicase/u8-casefold-tests (Files): Likewise.
23088         * modules/unicase/u8-is-cased-tests (Files): Likewise.
23089         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
23090         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
23091         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
23092         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
23093         * modules/unicase/u8-tolower-tests (Files): Likewise.
23094         * modules/unicase/u8-totitle-tests (Files): Likewise.
23095         * modules/unicase/u8-toupper-tests (Files): Likewise.
23096         * modules/unicase/u16-casecmp-tests (Files): Likewise.
23097         * modules/unicase/u16-casecoll-tests (Files): Likewise.
23098         * modules/unicase/u16-casefold-tests (Files): Likewise.
23099         * modules/unicase/u16-is-cased-tests (Files): Likewise.
23100         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
23101         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
23102         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
23103         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
23104         * modules/unicase/u16-tolower-tests (Files): Likewise.
23105         * modules/unicase/u16-totitle-tests (Files): Likewise.
23106         * modules/unicase/u16-toupper-tests (Files): Likewise.
23107         * modules/unicase/u32-casecmp-tests (Files): Likewise.
23108         * modules/unicase/u32-casecoll-tests (Files): Likewise.
23109         * modules/unicase/u32-casefold-tests (Files): Likewise.
23110         * modules/unicase/u32-is-cased-tests (Files): Likewise.
23111         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
23112         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
23113         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
23114         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
23115         * modules/unicase/u32-tolower-tests (Files): Likewise.
23116         * modules/unicase/u32-totitle-tests (Files): Likewise.
23117         * modules/unicase/u32-toupper-tests (Files): Likewise.
23118         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
23119         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
23120         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
23121         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
23122         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
23123         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
23124         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
23125         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
23126         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
23127         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
23128         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
23129         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
23130         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
23131         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
23132         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
23133         * modules/unictype/bidicategory-name-tests (Files): Likewise.
23134         * modules/unictype/bidicategory-of-tests (Files): Likewise.
23135         * modules/unictype/bidicategory-test-tests (Files): Likewise.
23136         * modules/unictype/block-list-tests (Files): Likewise.
23137         * modules/unictype/block-of-tests (Files): Likewise.
23138         * modules/unictype/block-test-tests (Files): Likewise.
23139         * modules/unictype/category-C-tests (Files): Likewise.
23140         * modules/unictype/category-Cc-tests (Files): Likewise.
23141         * modules/unictype/category-Cf-tests (Files): Likewise.
23142         * modules/unictype/category-Cn-tests (Files): Likewise.
23143         * modules/unictype/category-Co-tests (Files): Likewise.
23144         * modules/unictype/category-Cs-tests (Files): Likewise.
23145         * modules/unictype/category-L-tests (Files): Likewise.
23146         * modules/unictype/category-Ll-tests (Files): Likewise.
23147         * modules/unictype/category-Lm-tests (Files): Likewise.
23148         * modules/unictype/category-Lo-tests (Files): Likewise.
23149         * modules/unictype/category-Lt-tests (Files): Likewise.
23150         * modules/unictype/category-Lu-tests (Files): Likewise.
23151         * modules/unictype/category-M-tests (Files): Likewise.
23152         * modules/unictype/category-Mc-tests (Files): Likewise.
23153         * modules/unictype/category-Me-tests (Files): Likewise.
23154         * modules/unictype/category-Mn-tests (Files): Likewise.
23155         * modules/unictype/category-N-tests (Files): Likewise.
23156         * modules/unictype/category-Nd-tests (Files): Likewise.
23157         * modules/unictype/category-Nl-tests (Files): Likewise.
23158         * modules/unictype/category-No-tests (Files): Likewise.
23159         * modules/unictype/category-P-tests (Files): Likewise.
23160         * modules/unictype/category-Pc-tests (Files): Likewise.
23161         * modules/unictype/category-Pd-tests (Files): Likewise.
23162         * modules/unictype/category-Pe-tests (Files): Likewise.
23163         * modules/unictype/category-Pf-tests (Files): Likewise.
23164         * modules/unictype/category-Pi-tests (Files): Likewise.
23165         * modules/unictype/category-Po-tests (Files): Likewise.
23166         * modules/unictype/category-Ps-tests (Files): Likewise.
23167         * modules/unictype/category-S-tests (Files): Likewise.
23168         * modules/unictype/category-Sc-tests (Files): Likewise.
23169         * modules/unictype/category-Sk-tests (Files): Likewise.
23170         * modules/unictype/category-Sm-tests (Files): Likewise.
23171         * modules/unictype/category-So-tests (Files): Likewise.
23172         * modules/unictype/category-Z-tests (Files): Likewise.
23173         * modules/unictype/category-Zl-tests (Files): Likewise.
23174         * modules/unictype/category-Zp-tests (Files): Likewise.
23175         * modules/unictype/category-Zs-tests (Files): Likewise.
23176         * modules/unictype/category-and-not-tests (Files): Likewise.
23177         * modules/unictype/category-and-tests (Files): Likewise.
23178         * modules/unictype/category-byname-tests (Files): Likewise.
23179         * modules/unictype/category-name-tests (Files): Likewise.
23180         * modules/unictype/category-none-tests (Files): Likewise.
23181         * modules/unictype/category-of-tests (Files): Likewise.
23182         * modules/unictype/category-or-tests (Files): Likewise.
23183         * modules/unictype/category-test-withtable-tests (Files): Likewise.
23184         * modules/unictype/combining-class-tests (Files): Likewise.
23185         * modules/unictype/ctype-alnum-tests (Files): Likewise.
23186         * modules/unictype/ctype-alpha-tests (Files): Likewise.
23187         * modules/unictype/ctype-blank-tests (Files): Likewise.
23188         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
23189         * modules/unictype/ctype-digit-tests (Files): Likewise.
23190         * modules/unictype/ctype-graph-tests (Files): Likewise.
23191         * modules/unictype/ctype-lower-tests (Files): Likewise.
23192         * modules/unictype/ctype-print-tests (Files): Likewise.
23193         * modules/unictype/ctype-punct-tests (Files): Likewise.
23194         * modules/unictype/ctype-space-tests (Files): Likewise.
23195         * modules/unictype/ctype-upper-tests (Files): Likewise.
23196         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
23197         * modules/unictype/decimal-digit-tests (Files): Likewise.
23198         * modules/unictype/digit-tests (Files): Likewise.
23199         * modules/unictype/mirror-tests (Files): Likewise.
23200         * modules/unictype/numeric-tests (Files): Likewise.
23201         * modules/unictype/property-alphabetic-tests (Files): Likewise.
23202         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
23203         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
23204         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
23205         Likewise.
23206         * modules/unictype/property-bidi-block-separator-tests (Files):
23207         Likewise.
23208         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
23209         Likewise.
23210         * modules/unictype/property-bidi-common-separator-tests (Files):
23211         Likewise.
23212         * modules/unictype/property-bidi-control-tests (Files): Likewise.
23213         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
23214         Likewise.
23215         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
23216         Likewise.
23217         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
23218         Likewise.
23219         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
23220         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
23221         Likewise.
23222         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
23223         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
23224         Likewise.
23225         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
23226         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
23227         * modules/unictype/property-bidi-segment-separator-tests (Files):
23228         Likewise.
23229         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
23230         * modules/unictype/property-byname-tests (Files): Likewise.
23231         * modules/unictype/property-combining-tests (Files): Likewise.
23232         * modules/unictype/property-composite-tests (Files): Likewise.
23233         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
23234         * modules/unictype/property-dash-tests (Files): Likewise.
23235         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
23236         * modules/unictype/property-default-ignorable-code-point-tests (Files):
23237         Likewise.
23238         * modules/unictype/property-deprecated-tests (Files): Likewise.
23239         * modules/unictype/property-diacritic-tests (Files): Likewise.
23240         * modules/unictype/property-extender-tests (Files): Likewise.
23241         * modules/unictype/property-format-control-tests (Files): Likewise.
23242         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
23243         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
23244         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
23245         * modules/unictype/property-hex-digit-tests (Files): Likewise.
23246         * modules/unictype/property-hyphen-tests (Files): Likewise.
23247         * modules/unictype/property-id-continue-tests (Files): Likewise.
23248         * modules/unictype/property-id-start-tests (Files): Likewise.
23249         * modules/unictype/property-ideographic-tests (Files): Likewise.
23250         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
23251         * modules/unictype/property-ids-trinary-operator-tests (Files):
23252         Likewise.
23253         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
23254         * modules/unictype/property-iso-control-tests (Files): Likewise.
23255         * modules/unictype/property-join-control-tests (Files): Likewise.
23256         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
23257         * modules/unictype/property-line-separator-tests (Files): Likewise.
23258         * modules/unictype/property-logical-order-exception-tests (Files):
23259         Likewise.
23260         * modules/unictype/property-lowercase-tests (Files): Likewise.
23261         * modules/unictype/property-math-tests (Files): Likewise.
23262         * modules/unictype/property-non-break-tests (Files): Likewise.
23263         * modules/unictype/property-not-a-character-tests (Files): Likewise.
23264         * modules/unictype/property-numeric-tests (Files): Likewise.
23265         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
23266         * modules/unictype/property-other-default-ignorable-code-point-tests
23267         (Files): Likewise.
23268         * modules/unictype/property-other-grapheme-extend-tests (Files):
23269         Likewise.
23270         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
23271         * modules/unictype/property-other-id-start-tests (Files): Likewise.
23272         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
23273         * modules/unictype/property-other-math-tests (Files): Likewise.
23274         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
23275         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
23276         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
23277         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
23278         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
23279         * modules/unictype/property-private-use-tests (Files): Likewise.
23280         * modules/unictype/property-punctuation-tests (Files): Likewise.
23281         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
23282         * modules/unictype/property-radical-tests (Files): Likewise.
23283         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
23284         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
23285         * modules/unictype/property-space-tests (Files): Likewise.
23286         * modules/unictype/property-terminal-punctuation-tests (Files):
23287         Likewise.
23288         * modules/unictype/property-test-tests (Files): Likewise.
23289         * modules/unictype/property-titlecase-tests (Files): Likewise.
23290         * modules/unictype/property-unassigned-code-value-tests (Files):
23291         Likewise.
23292         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
23293         * modules/unictype/property-uppercase-tests (Files): Likewise.
23294         * modules/unictype/property-variation-selector-tests (Files): Likewise.
23295         * modules/unictype/property-white-space-tests (Files): Likewise.
23296         * modules/unictype/property-xid-continue-tests (Files): Likewise.
23297         * modules/unictype/property-xid-start-tests (Files): Likewise.
23298         * modules/unictype/property-zero-width-tests (Files): Likewise.
23299         * modules/unictype/scripts-tests (Files): Likewise.
23300         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
23301         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
23302         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
23303         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
23304         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
23305         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
23306         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
23307         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
23308         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
23309         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
23310         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
23311         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
23312         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
23313         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
23314         * modules/uninorm/composition-tests (Files): Likewise.
23315         * modules/uninorm/decomposing-form-tests (Files): Likewise.
23316         * modules/uninorm/decomposition-tests (Files): Likewise.
23317         * modules/uninorm/filter-tests (Files): Likewise.
23318         * modules/uninorm/nfc-tests (Files): Likewise.
23319         * modules/uninorm/nfd-tests (Files): Likewise.
23320         * modules/uninorm/nfkc-tests (Files): Likewise.
23321         * modules/uninorm/nfkd-tests (Files): Likewise.
23322         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
23323         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
23324         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
23325         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
23326         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
23327         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
23328         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
23329         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23330         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
23331         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
23332         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
23333         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
23334         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23335         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
23336         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
23337         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
23338         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
23339         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23340         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
23341         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
23342         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
23343         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
23344         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23345         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
23346         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
23347         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
23348         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
23349         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
23350         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
23351         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
23352         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
23353         * modules/uniwidth/u8-width-tests (Files): Likewise.
23354         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
23355         * modules/uniwidth/u16-width-tests (Files): Likewise.
23356         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
23357         * modules/uniwidth/u32-width-tests (Files): Likewise.
23358         * modules/uniwidth/width-tests (Files): Likewise.
23359         * modules/unlink-tests (Files): Likewise.
23360         * modules/unsetenv-tests (Files): Likewise.
23361         * modules/usleep-tests (Files): Likewise.
23362         * modules/utimens-tests (Files): Likewise.
23363         * modules/utimensat-tests (Files): Likewise.
23364         * modules/vasnprintf-posix-tests (Files): Likewise.
23365         * modules/vasnprintf-tests (Files): Likewise.
23366         * modules/vasprintf-posix-tests (Files): Likewise.
23367         * modules/vasprintf-tests (Files): Likewise.
23368         * modules/vdprintf-posix-tests (Files): Likewise.
23369         * modules/vfprintf-posix-tests (Files): Likewise.
23370         * modules/vprintf-posix-tests (Files): Likewise.
23371         * modules/vsnprintf-posix-tests (Files): Likewise.
23372         * modules/vsnprintf-tests (Files): Likewise.
23373         * modules/vsprintf-posix-tests (Files): Likewise.
23374         * modules/wcrtomb-tests (Files): Likewise.
23375         * modules/wcsnrtombs-tests (Files): Likewise.
23376         * modules/wcsrtombs-tests (Files): Likewise.
23377         * modules/wctype-tests (Files): Likewise.
23378         * modules/wcwidth-tests (Files): Likewise.
23379         * modules/xmemdup0-tests (Files): Likewise.
23380         * modules/xprintf-posix-tests (Files): Likewise.
23381         * modules/xvasprintf-tests (Files): Likewise.
23382
23383 2009-12-24  Eric Blake  <ebb9@byu.net>
23384
23385         test-nanosleep: fix typo
23386         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
23387         patch.
23388         Reported by Bruno Haible.
23389
23390 2009-12-24  Bruno Haible  <bruno@clisp.org>
23391
23392         Reduce namespace pollution on glibc systems.
23393         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
23394         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
23395         systems.
23396         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
23397         <getopt.h> on glibc systems.
23398         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
23399         systems.
23400         * lib/fcntl.c: Include <unistd.h> here instead.
23401
23402 2009-12-24  Bruno Haible  <bruno@clisp.org>
23403
23404         * lib/stdlib.in.h (includes): Fix typo in today's commit.
23405
23406 2009-12-24  Eric Blake  <ebb9@byu.net>
23407
23408         tests: add signature checks
23409         * tests/signature.h (SIGNATURE_CHECK): New file.
23410         * modules/atexit-tests (Files): Use it.
23411         * modules/btowc-tests (Files): Likewise.
23412         * modules/canonicalize-lgpl-tests (Files): Likewise.
23413         * modules/ceilf-tests (Files): Likewise.
23414         * modules/ceill-tests (Files): Likewise.
23415         * modules/chown-tests (Files): Likewise.
23416         * modules/dprintf-posix-tests (Files): Likewise.
23417         * modules/dup2-tests (Files): Likewise.
23418         * modules/dup3-tests (Files): Likewise.
23419         * modules/duplocale-tests (Files): Likewise.
23420         * modules/fchdir-tests (Files): Likewise.
23421         * modules/fcntl-tests (Files): Likewise.
23422         * modules/fdopendir-tests (Files): Likewise.
23423         * modules/fflush-tests (Files): Likewise.
23424         * modules/flock-tests (Files): Likewise.
23425         * modules/floorf-tests (Files): Likewise.
23426         * modules/floorl-tests (Files): Likewise.
23427         * modules/fnmatch-tests (Files): Likewise.
23428         * modules/fopen-tests (Files): Likewise.
23429         * modules/fprintf-posix-tests (Files): Likewise.
23430         * modules/freopen-tests (Files): Likewise.
23431         * modules/frexp-nolibm-tests (Files): Likewise.
23432         * modules/frexp-tests (Files): Likewise.
23433         * modules/frexpl-nolibm-tests (Files): Likewise.
23434         * modules/frexpl-tests (Files): Likewise.
23435         * modules/fseek-tests (Files): Likewise.
23436         * modules/fseeko-tests (Files): Likewise.
23437         * modules/fsync-tests (Files): Likewise.
23438         * modules/ftell-tests (Files): Likewise.
23439         * modules/ftello-tests (Files): Likewise.
23440         * modules/futimens-tests (Files): Likewise.
23441         * modules/getaddrinfo-tests (Files): Likewise.
23442         * modules/getcwd-tests (Files): Likewise.
23443         * modules/getdelim-tests (Files): Likewise.
23444         * modules/getdtablesize-tests (Files): Likewise.
23445         * modules/getgroups-tests (Files): Likewise.
23446         * modules/gethostname-tests (Files): Likewise.
23447         * modules/getline-tests (Files): Likewise.
23448         * modules/getopt-posix-tests (Files): Likewise.
23449         * modules/gettimeofday-tests (Files): Likewise.
23450         * modules/glob-tests (Files): Likewise.
23451         * modules/iconv-tests (Files): Likewise.
23452         * modules/inet_ntop-tests (Files): Likewise.
23453         * modules/inet_pton-tests (Files): Likewise.
23454         * modules/isblank-tests (Files): Likewise.
23455         * modules/lchown-tests (Files): Likewise.
23456         * modules/ldexpl-tests (Files): Likewise.
23457         * modules/link-tests (Files): Likewise.
23458         * modules/linkat-tests (Files): Likewise.
23459         * modules/lseek-tests (Files): Likewise.
23460         * modules/lstat-tests (Files): Likewise.
23461         * modules/mbrtowc-tests (Files): Likewise.
23462         * modules/mbsinit-tests (Files): Likewise.
23463         * modules/mbsnrtowcs-tests (Files): Likewise.
23464         * modules/mbsrtowcs-tests (Files): Likewise.
23465         * modules/memchr-tests (Files): Likewise.
23466         * modules/memcmp-tests (Files): Likewise.
23467         * modules/memmem-tests (Files): Likewise.
23468         * modules/memrchr-tests (Files): Likewise.
23469         * modules/mkdir-tests (Files): Likewise.
23470         * modules/mkfifo-tests (Files): Likewise.
23471         * modules/mkfifoat-tests (Files): Likewise.
23472         * modules/mknod-tests (Files): Likewise.
23473         * modules/nanosleep-tests (Files): Likewise.
23474         * modules/nl_langinfo-tests (Files): Likewise.
23475         * modules/obstack-printf-tests (Files): Likewise.
23476         * modules/open-tests (Files): Likewise.
23477         * modules/openat-tests (Files): Likewise.
23478         * modules/perror-tests (Files): Likewise.
23479         * modules/pipe2-tests (Files): Likewise.
23480         * modules/poll-tests (Files): Likewise.
23481         * modules/popen-tests (Files): Likewise.
23482         * modules/posix_spawn-tests (Files): Likewise.
23483         * modules/posix_spawnp-tests (Files): Likewise.
23484         * modules/pread-tests (Files): Likewise.
23485         * modules/printf-posix-tests (Files): Likewise.
23486         * modules/pty-tests (Files): Likewise.
23487         * modules/random_r-tests (Files): Likewise.
23488         * modules/rawmemchr-tests (Files): Likewise.
23489         * modules/readlink-tests (Files): Likewise.
23490         * modules/remove-tests (Files): Likewise.
23491         * modules/rename-tests (Files): Likewise.
23492         * modules/renameat-tests (Files): Likewise.
23493         * modules/rmdir-tests (Files): Likewise.
23494         * modules/round-tests (Files): Likewise.
23495         * modules/roundf-tests (Files): Likewise.
23496         * modules/roundl-tests (Files): Likewise.
23497         * modules/select-tests (Files): Likewise.
23498         * modules/setenv-tests (Files): Likewise.
23499         * modules/sigaction-tests (Files): Likewise.
23500         * modules/sleep-tests (Files): Likewise.
23501         * modules/snprintf-posix-tests (Files): Likewise.
23502         * modules/snprintf-tests (Files): Likewise.
23503         * modules/sprintf-posix-tests (Files): Likewise.
23504         * modules/stat-tests (Files): Likewise.
23505         * modules/strcasestr-tests (Files): Likewise.
23506         * modules/strchrnul-tests (Files): Likewise.
23507         * modules/strerror-tests (Files): Likewise.
23508         * modules/strsignal-tests (Files): Likewise.
23509         * modules/strstr-tests (Files): Likewise.
23510         * modules/strtod-tests (Files): Likewise.
23511         * modules/strverscmp-tests (Files): Likewise.
23512         * modules/symlink-tests (Files): Likewise.
23513         * modules/symlinkat-tests (Files): Likewise.
23514         * modules/times-tests (Files): Likewise.
23515         * modules/trunc-tests (Files): Likewise.
23516         * modules/truncf-tests (Files): Likewise.
23517         * modules/truncl-tests (Files): Likewise.
23518         * modules/tsearch-tests (Files): Likewise.
23519         * modules/uname-tests (Files): Likewise.
23520         * modules/unlink-tests (Files): Likewise.
23521         * modules/unsetenv-tests (Files): Likewise.
23522         * modules/usleep-tests (Files): Likewise.
23523         * modules/utimensat-tests (Files): Likewise.
23524         * modules/vasprintf-tests (Files): Likewise.
23525         * modules/vdprintf-posix-tests (Files): Likewise.
23526         * modules/vfprintf-posix-tests (Files): Likewise.
23527         * modules/vprintf-posix-tests (Files): Likewise.
23528         * modules/vsnprintf-posix-tests (Files): Likewise.
23529         * modules/vsnprintf-tests (Files): Likewise.
23530         * modules/vsprintf-posix-tests (Files): Likewise.
23531         * modules/wcrtomb-tests (Files): Likewise.
23532         * modules/wcsnrtombs-tests (Files): Likewise.
23533         * modules/wcsrtombs-tests (Files): Likewise.
23534         * modules/wcwidth-tests (Files): Likewise.
23535         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
23536         * tests/test-isinf.c (isinf): Likewise.
23537         * tests/test-isnan.c (isnan): Likewise.
23538         * tests/test-signbit.c (signbit): Likewise.
23539         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
23540         declaration, either as macro or with correct signature.
23541         (select): Ensure function under test is declared with correct
23542         signature in correct header.
23543         * tests/test-atexit.c (atexit): Likewise.
23544         * tests/test-btowc.c (btowc): Likewise.
23545         * tests/test-canonicalize-lgpl.c (realpath)
23546         (canonicalize_file_name): Likewise.
23547         * tests/test-ceilf1.c (ceilf): Likewise.
23548         * tests/test-ceill.c (ceill): Likewise.
23549         * tests/test-chown.c (chown): Likewise.
23550         * tests/test-dprintf-posix.c (dprintf): Likewise.
23551         * tests/test-dup2.c (dup2): Likewise.
23552         * tests/test-dup3.c (dup3): Likewise.
23553         * tests/test-duplocale.c (duplocale): Likewise.
23554         * tests/test-fchdir.c (fchdir): Likewise.
23555         * tests/test-fchownat.c (fchownat): Likewise.
23556         * tests/test-fcntl.c (fcntl): Likewise.
23557         * tests/test-fdopendir.c (fdopendir): Likewise.
23558         * tests/test-fflush.c (fflush): Likewise.
23559         * tests/test-flock.c (flock): Likewise.
23560         * tests/test-floorf1.c (floorf): Likewise.
23561         * tests/test-floorl.c (floorl): Likewise.
23562         * tests/test-fnmatch.c (fnmatch): Likewise.
23563         * tests/test-fopen.c (fopen): Likewise.
23564         * tests/test-fprintf-posix.c (fprintf): Likewise.
23565         * tests/test-freopen.c (freopen): Likewise.
23566         * tests/test-frexp.c (frexp): Likewise.
23567         * tests/test-frexpl.c (frexpl): Likewise.
23568         * tests/test-fseek.c (fseek): Likewise.
23569         * tests/test-fseeko.c (fseeko): Likewise.
23570         * tests/test-fstatat.c (fstatat): Likewise.
23571         * tests/test-fsync.c (fsync): Likewise.
23572         * tests/test-ftell.c (ftell): Likewise.
23573         * tests/test-ftello.c (ftello): Likewise.
23574         * tests/test-futimens.c (futimens): Likewise.
23575         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
23576         (gai_strerror): Likewise.
23577         * tests/test-getcwd.c (getcwd): Likewise.
23578         * tests/test-getdelim.c (getdelim): Likewise.
23579         * tests/test-getdtablesize.c (getdtablesize): Likewise.
23580         * tests/test-getgroups.c (getgroups): Likewise.
23581         * tests/test-gethostname.c (gethostname): Likewise.
23582         * tests/test-getline.c (getline): Likewise.
23583         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
23584         Likewise.
23585         * tests/test-gettimeofday.c (gettimeofday): Likewise.
23586         * tests/test-glob.c (glob, globfree): Likewise.
23587         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
23588         * tests/test-inet_ntop.c (inet_ntop): Likewise.
23589         * tests/test-inet_pton.c (inet_pton): Likewise.
23590         * tests/test-isblank.c (isblank): Likewise.
23591         * tests/test-lchown.c (lchown): Likewise.
23592         * tests/test-ldexpl.c (ldexpl): Likewise.
23593         * tests/test-link.c (link): Likewise.
23594         * tests/test-linkat.c (linkat): Likewise.
23595         * tests/test-lseek.c (lseek): Likewise.
23596         * tests/test-lstat.c (lstat): Likewise.
23597         * tests/test-mbrtowc.c (mbrtowc): Likewise.
23598         * tests/test-mbsinit.c (mbsinit): Likewise.
23599         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
23600         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
23601         * tests/test-memchr.c (memchr): Likewise.
23602         * tests/test-memcmp.c (memcmp): Likewise.
23603         * tests/test-memmem.c (memmem): Likewise.
23604         * tests/test-memrchr.c (memrchr): Likewise.
23605         * tests/test-mkdir.c (mkdir): Likewise.
23606         * tests/test-mkdirat.c (mkdirat): Likewise.
23607         * tests/test-mkfifo.c (mkfifo): Likewise.
23608         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
23609         * tests/test-mknod.c (mknod): Likewise.
23610         * tests/test-nanosleep.c (nanosleep): Likewise.
23611         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
23612         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
23613         Likewise.
23614         * tests/test-open.c (open): Likewise.
23615         * tests/test-openat.c (openat): Likewise.
23616         * tests/test-perror.c (perror): Likewise.
23617         * tests/test-pipe2.c (pipe2): Likewise.
23618         * tests/test-poll.c (poll): Likewise.
23619         * tests/test-popen.c (popen, pclose): Likewise.
23620         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
23621         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
23622         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
23623         (posix_spawn_file_actions_destroy)
23624         (posix_spawn_file_actions_addclose)
23625         (posix_spawn_file_actions_addopen)
23626         (posix_spawn_file_actions_adddup2): Likewise.
23627         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
23628         * tests/test-pread.c (pread): Likewise.
23629         * tests/test-printf-posix.c (printf): Likewise.
23630         * tests/test-pty.c (openpty, forkpty): Likewise.
23631         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
23632         (random_r): Likewise.
23633         * tests/test-rawmemchr.c (rawmemchr): Likewise.
23634         * tests/test-readlink.c (readlink): Likewise.
23635         * tests/test-remove.c (remove): Likewise.
23636         * tests/test-rename.c (rename): Likewise.
23637         * tests/test-renameat.c (renameat): Likewise.
23638         * tests/test-rmdir.c (rmdir): Likewise.
23639         * tests/test-round1.c (round): Likewise.
23640         * tests/test-roundf1.c (roundf): Likewise.
23641         * tests/test-roundl.c (roundl): Likewise.
23642         * tests/test-setenv.c (setenv): Likewise.
23643         * tests/test-sigaction.c (sigaction): Likewise.
23644         * tests/test-sleep.c (sleep): Likewise.
23645         * tests/test-snprintf.c (snprintf): Likewise.
23646         * tests/test-sprintf-posix.c (sprintf): Likewise.
23647         * tests/test-stat.c (stat): Likewise.
23648         * tests/test-stpncpy.c (stpncpy): Likewise.
23649         * tests/test-strcasestr.c (strcasestr): Likewise.
23650         * tests/test-strchrnul.c (strchrnul): Likewise.
23651         * tests/test-strerror.c (strerror): Likewise.
23652         * tests/test-strsignal.c (strsignal): Likewise.
23653         * tests/test-strstr.c (strstr): Likewise.
23654         * tests/test-strtod.c (strtod): Likewise.
23655         * tests/test-strverscmp.c (strverscmp): Likewise.
23656         * tests/test-symlink.c (symlink): Likewise.
23657         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
23658         * tests/test-times.c (times): Likewise.
23659         * tests/test-trunc1.c (trunc): Likewise.
23660         * tests/test-truncf1.c (truncf): Likewise.
23661         * tests/test-truncl.c (truncl): Likewise.
23662         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
23663         Likewise.
23664         * tests/test-uname.c (uname): Likewise.
23665         * tests/test-unlink.c (unlink): Likewise.
23666         * tests/test-unlinkat.c (unlinkat): Likewise.
23667         * tests/test-unsetenv.c (unsetenv): Likewise.
23668         * tests/test-usleep.c (usleep): Likewise.
23669         * tests/test-utimensat.c (utimensat): Likewise.
23670         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
23671         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
23672         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
23673         * tests/test-vprintf-posix.c (vprintf): Likewise.
23674         * tests/test-vsnprintf.c (vsnprintf): Likewise.
23675         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
23676         * tests/test-wcrtomb.c (wcrtomb): Likewise.
23677         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
23678         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
23679         * tests/test-wcwidth.c (wcwidth): Likewise.
23680
23681         build: pull in conditional headers during GNULIB_POSIXCHECK
23682         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
23683         definitions from any conditionally-included headers.
23684         * lib/stdlib.in.h (includes): Likewise.
23685         * lib/unistd.in.h (includes): Likewise.
23686
23687 2009-12-24  Bruno Haible  <bruno@clisp.org>
23688
23689         * tests/test-argv-iter.c: Include header file being tested immediately
23690         after config.h.
23691         * tests/test-base64.c: Likewise.
23692         * tests/test-flock.c: Likewise.
23693         * tests/test-fsync.c: Likewise.
23694         * tests/test-getdate.c: Likewise.
23695         * tests/test-getndelim2.c: Likewise.
23696         * tests/test-isfinite.c: Likewise.
23697         * tests/test-isinf.c: Likewise.
23698         * tests/test-strerror.c: Likewise.
23699         * tests/test-strsignal.c: Likewise.
23700
23701 2009-12-23  Eric Blake  <ebb9@byu.net>
23702
23703         unistd: work around cygwin bug
23704         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
23705         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
23706         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
23707
23708 2009-12-23  Bruno Haible  <bruno@clisp.org>
23709
23710         localename: More tests.
23711         * tests/test-localename.c (SIZEOF): New macro.
23712         (categories): New variable.
23713         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
23714         test_locale_name_default): Add test w.r.t. thread locale.
23715         (test_locale_name_thread): New function.
23716         (main): Invoke it.
23717
23718         localename: Make aware of thread locale.
23719         * lib/localename.h (gl_locale_name_thread): New declaration.
23720         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
23721         behaviour with respect to thread locale.
23722         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
23723         <langinfo.h>, glthread/lock.h.
23724         (SIZE_BITS): New macro.
23725         (string_hash): New function.
23726         (struct hash_node): New type.
23727         (HASH_TABLE_SIZE): New macro.
23728         (struniq_hash_table, struniq_lock): New variables.
23729         (struniq): New function.
23730         (gl_locale_name_thread): New function.
23731         (gl_locale_name): Invoke it.
23732         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
23733         * modules/localename (Depends-on): Add lock.
23734         Reported by Mike Gran <spk121@yahoo.com>.
23735
23736 2009-12-23  Eric Blake  <ebb9@byu.net>
23737
23738         va-args: new module
23739         * modules/va-args: New file.
23740         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
23741         * MODULES.html.sh (Core language properties): Mention it.
23742
23743         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
23744         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
23745         named alias for __attribute__((__unused__)).
23746         * lib/chown.c: Update client.
23747         * lib/fchmodat.c: Likewise.
23748         * lib/fts.c: Likewise.
23749         * lib/getdate.y: Likewise.
23750         * lib/getgroups.c: Likewise.
23751         * lib/getopt.c: Likewise.
23752         * lib/getugroups.c: Likewise.
23753         * lib/mkdir.c: Likewise.
23754         * lib/mkfifo.c: Likewise.
23755         * lib/mkfifoat.c: Likewise.
23756         * lib/mknod.c: Likewise.
23757         * lib/mknodat.c: Likewise.
23758         * lib/readlink.c: Likewise.
23759         * lib/se-context.in.h: Likewise.
23760         * lib/se-selinux.in.h: Likewise.
23761         * lib/sockets.c: Likewise.
23762         * lib/symlink.c: Likewise.
23763         * lib/symlinkat.c: Likewise.
23764         * lib/unicodeio.c: Likewise.
23765         * lib/unistr.h: Likewise.
23766         * tests/test-areadlink.c: Likewise.
23767         * tests/test-areadlinkat.c: Likewise.
23768         * tests/test-filenamecat.c: Likewise.
23769         * tests/test-fseeko.c: Likewise.
23770         * tests/test-ftello.c: Likewise.
23771         * tests/test-getdate.c: Likewise.
23772         * tests/test-getgroups.c: Likewise.
23773         * tests/test-gethostname.c: Likewise.
23774         * tests/test-quotearg.c: Likewise.
23775         * tests/test-version-etc.c: Likewise.
23776         * tests/test-xalloc-die.c: Likewise.
23777         * tests/test-xfprintf-posix.c: Likewise.
23778         * tests/test-xprintf-posix.c: Likewise.
23779         * tests/test-xvasprintf.c: Likewise.
23780
23781         tests: avoid compiler warnings
23782         * tests/test-fcntl.c (main): Delete unused parameters.
23783         * tests/test-freopen-safer.c (main): Likewise.
23784         * tests/test-xalloc-die.c (main): Mark unused parameters.
23785         * tests/test-fseeko.c (main): Likewise.
23786         * tests/test-ftello.c (main): Likewise.
23787         * tests/test-nanosleep.c (main): Avoid declaration warning.
23788         * tests/test-sleep.c (main): Likewise.
23789         * tests/test-unsetenv.c (main): Silence warning about string
23790         literal.
23791         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23792
23793 2009-12-23  Bruno Haible  <bruno@clisp.org>
23794
23795         * tests/test-localename.c (test_locale_name): New function, extracted
23796         from main. Also test mixed situations.
23797         (test_locale_name_posix, test_locale_name_environ,
23798         test_locale_name_default): New functions.
23799         (main): Invoke them all.
23800         * modules/localename-tests (configure.ac): Test for newlocale.
23801
23802 2009-12-23  Bruno Haible  <bruno@clisp.org>
23803
23804         unistd: Ensure getcwd gets declared before being overridden.
23805         * lib/unistd.in.h: Conditionally include <io.h>.
23806
23807 2009-12-22  Bruno Haible  <bruno@clisp.org>
23808
23809         wchar: Diagnose broken combination of glibc and gcc versions and flags.
23810         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
23811         (gl_WCHAR_H): Invoke it.
23812         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
23813         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
23814         Reported by Karl Berry <karl@freefriends.org>.
23815
23816 2009-12-22  Eric Blake  <ebb9@byu.net>
23817
23818         math, unistd: avoid redundant includes
23819         * lib/math.in.h (isnan): No need to re-include <math.h>.
23820         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
23821
23822         getsubopt: work around cygwin bug
23823         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
23824         avoid conflicting with system getsubopt.
23825         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
23826         bug.
23827
23828         getopt: synchronize from glibc
23829         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
23830         parameter order.  Adjust all callers.
23831         (_getopt_internal_r, main): Adjust quoting in error messages.
23832         Drop considerations for outdated POSIX 1003.2 error message.
23833         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
23834         callers.
23835         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
23836
23837         test-getopt: test stderr behavior
23838         * modules/getopt-posix-tests (Depends-on): Add dup2.
23839         * tests/test-getopt.c (ASSERT): Avoid stderr.
23840         (main): Move stderr to a temporary file.
23841         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
23842         Instead, add parameter to inform caller if output occurred.
23843         (test_getopt): Adjust all existing tests to expect silence, and
23844         add new tests of leading ":".
23845         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23846         glibc shortcomings with leading "-:" or "+:" in optstring.
23847         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23848         Likewise.
23849         * doc/posix-functions/getopt.texi (getopt): Likewise.
23850
23851         test-getopt: enhance test
23852         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
23853         supports optind=0.
23854         * tests/test-getopt.c (OPTIND_MIN): Move...
23855         * tests/test-getopt.h (OPTIND_MIN): ...here.
23856         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
23857         Require that optind=0 works, since modern BSD supports it in
23858         addition to optreset, and since coreutils expects it.
23859         (test_getopt_long_only): New test.
23860         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
23861         glibc shortcomings with 'W;', and enforcement of optind=0.
23862         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23863         Likewise.
23864
23865 2009-12-21  Bruno Haible  <bruno@clisp.org>
23866
23867         localename: Improvements for MacOS X and Cygwin.
23868         * lib/localename.h (gl_locale_name_environ): New declaration.
23869         * lib/localename.c (gl_locale_name_environ): New function, extracted from
23870         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
23871         (gl_locale_name_posix): Invoke it.
23872         (gl_locale_name_default): Add comments. Use Windows native API also on
23873         Cygwin.
23874
23875 2009-12-21  Bruno Haible  <bruno@clisp.org>
23876
23877         Update list of Win32 locale ids.
23878         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
23879         (LANG_SAMI): Renamed from LANG_SAAMI.
23880         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
23881         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
23882         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
23883         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
23884         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
23885         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
23886         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
23887         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
23888         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
23889         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
23890         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
23891         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
23892         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
23893         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
23894         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
23895         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
23896         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
23897         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
23898         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
23899         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
23900         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
23901         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
23902         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
23903         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
23904         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
23905         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
23906         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
23907         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
23908         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
23909         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
23910         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
23911         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
23912         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
23913         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
23914         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
23915         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
23916         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
23917         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
23918         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
23919         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
23920         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
23921         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
23922         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
23923         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
23924         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
23925         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
23926         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
23927         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
23928         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
23929         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
23930         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
23931         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
23932         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
23933         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
23934         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
23935         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
23936         Add more languages and countries for Sami, Sorbian. Add more countries
23937         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
23938         for Pashto. Change country for Syriac, Tswana.
23939
23940 2009-12-21  Eric Blake  <ebb9@byu.net>
23941
23942         test-utimens: avoid spurious failure
23943         * tests/test-chown.h (nap): Factor...
23944         * tests/nap.h: ...into new file.
23945         * tests/test-lchown.h (nap): Avoid duplication.
23946         * tests/test-utimens-common.h (nap): Use shared implementation,
23947         necessary on file systems with 1-second resolution.
23948         * modules/chown-tests (Files): Include new file.
23949         * modules/fdutimensat-tests (Files): Likewise.
23950         * modules/futimens-tests (Files): Likewise.
23951         * modules/lchown-tests (Files): Likewise.
23952         * modules/openat-tests (Files): Likewise.
23953         * modules/utimens-tests (Files): Likewise.
23954         * modules/utimensat-tests (Files): Likewise.
23955
23956 2009-12-19  Eric Blake  <ebb9@byu.net>
23957
23958         futimens, utimensat: work around Linux bug
23959         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
23960         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23961         * lib/utimensat.c (rpl_utimensat): Work around it.
23962         * lib/futimens.c (rpl_futimens): Adjust comment.
23963
23964         utimens: work around Linux ctime bug
23965         * lib/utimens.c (detect_ctime_bug): New helper function.
23966         (update_timespec): Differentiate between workaround needed for
23967         this bug vs. what is needed for systems that lack utimensat.
23968         (fdutimens, lutimens): Work around bug.
23969
23970         utimens: check for ctime update
23971         * tests/test-utimens-common.h (check_ctime): Define.
23972         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
23973         * tests/test-futimens.h (test_futimens): Likewise.
23974         * tests/test-lutimens.h (test_lutimens): Likewise.
23975         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23976         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23977
23978 2009-12-19  Bruno Haible  <bruno@clisp.org>
23979
23980         dprintf-posix: Check against memory leak fixed on 2009-12-15.
23981         * tests/test-dprintf-posix2.sh: New file.
23982         * tests/test-dprintf-posix2.c: New file.
23983         * modules/dprintf-posix-tests (Files): Add them.
23984         (configure.ac): Check for getrlimit and setrlimit.
23985         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23986
23987 2009-12-19  Bruno Haible  <bruno@clisp.org>
23988
23989         fprintf-posix: Check against memory leak fixed on 2009-12-15.
23990         * tests/test-fprintf-posix3.sh: New file.
23991         * tests/test-fprintf-posix3.c: New file.
23992         * modules/fprintf-posix-tests (Files): Add them.
23993         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
23994
23995 2009-12-19  Eric Blake  <ebb9@byu.net>
23996
23997         dirfd: fix prototype
23998         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
23999         * lib/dirfd.c (dirfd): Likewise.
24000
24001         canonicalize: reduce memory usage
24002         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
24003         allocation to size.
24004         Reported by Solar Designer <solar@openwall.com>.
24005
24006 2009-12-19  Bruno Haible  <bruno@clisp.org>
24007
24008         New module attribute 'Applicability'.
24009         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
24010         * gnulib-tool: New option --extract-applicability.
24011         (func_usage): Document it.
24012         (sed_extract_prog): Recognize it.
24013         (func_get_applicability): New function.
24014         (func_import): Generalize handling of 'link-warning' module.
24015         * modules/link-warning (Applicability): New section.
24016         * modules/arg-nonnull (Applicability): New section.
24017         Repoted by Simon Josefsson <simon@josefsson.org>.
24018
24019 2009-12-19  Bruno Haible  <bruno@clisp.org>
24020
24021         fflush: tweak
24022         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
24023         * lib/fseeko.c (rpl_fseeko): Likewise.
24024
24025 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
24026
24027         * lib/gl_list.h: Fix typo in comment.
24028
24029 2009-12-16  Eric Blake  <ebb9@byu.net>
24030
24031         fcntl: use to simplify other modules
24032         * modules/cloexec (Depends-on): Add fcntl.
24033         * modules/fchdir (Depends-on): Likewise.
24034         * modules/fd-safer-flag (Depends-on): Likewise.
24035         * modules/unistd-safer (Depends-on): Likewise.
24036         * modules/dup3 (configure.ac): Set module indicator.
24037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
24038         missing.
24039         * lib/fchdir.c (_gl_register_dup): Fix comment.
24040         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
24041         * lib/dup-safer.c (dup_safer): Likewise.
24042         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
24043         * lib/dup3.c (dup3): Likewise.
24044         * tests/test-fchdir.c (main): Enhance test.
24045         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
24046
24047         fcntl: port portions of fcntl to mingw
24048         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
24049         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
24050         replacement for mingw.
24051         * modules/fcntl (Description): Update.
24052         (Depends-on): Add dup2.
24053         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
24054         * modules/fcntl-h (Makefile.am): Substitute it.
24055         * lib/fcntl.in.h (fcntl): Update declaration.
24056         (F_DUPFD, F_GETFD): New macros, when needed.
24057         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
24058         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
24059         * tests/test-fcntl.c (check_flags, main): Enhance test for items
24060         we now guarantee.
24061
24062         fcntl: work around cygwin bug in F_DUPFD
24063         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
24064         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
24065         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
24066         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
24067         * doc/posix-functions/fcntl.texi (fcntl): Document it.
24068
24069         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
24070         * modules/fcntl (Files): List new files.
24071         (configure.ac): Run a test.
24072         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
24073         * lib/fcntl.c (rpl_fcntl): Likewise.
24074         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
24075         (gl_FCNTL_H): Always replace fcntl.h.
24076         * modules/fcntl-h (Makefile.am): Substitute witnesses.
24077         * lib/fcntl.in.h (fcntl): Declare replacement.
24078         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
24079         needed, plus a witness.
24080         * doc/posix-functions/fcntl.texi (fcntl): Document this.
24081         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
24082         * tests/test-fcntl.c: New file.
24083         * modules/fcntl-tests: Likewise.
24084
24085         binary-io: avoid potential compilation warning
24086         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
24087         directives.
24088
24089         fflush: avoid compilation error on NetBSD
24090         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
24091         between off_t and fpos_t, since the latter is sometimes a struct.
24092         * lib/fseeko.c (rpl_fseeko): Likewise.
24093         Reported by Alexander Nasonov <alnsn@yandex.ru>.
24094
24095 2009-12-15  Eric Blake  <ebb9@byu.net>
24096
24097         fcntl-h, stdio, sys_ioctl: fix declarations
24098         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
24099         function must not take arguments.
24100         * lib/sys_ioctl.in.h (ioctl): Likewise.
24101         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
24102         (open): Add a link warning.
24103
24104 2009-12-15  Jim Meyering  <meyering@redhat.com>
24105
24106         areadlink, areadlink-with-size: relax license to LGPLv2+
24107         * modules/areadlink (License): Relax to LGPLv2+.
24108         * modules/areadlink-with-size (License): Likewise.
24109
24110 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
24111             Bruno Haible  <bruno@clisp.org>
24112
24113         *printf: Fix memory leak.
24114         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
24115         * lib/vfprintf.c (vfprintf): Likewise.
24116         * lib/dprintf.c (dprintf): Likewise.
24117         * lib/vdprintf.c (vdprintf): Likewise.
24118
24119 2009-12-14  Eric Blake  <ebb9@byu.net>
24120
24121         accept4: adjust module dependencies
24122         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
24123
24124         utimens: one more try at avoiding compiler warning
24125         * lib/utimens.c (lutimens): Lower scope of result.
24126
24127 2009-12-13  Bruno Haible  <bruno@clisp.org>
24128
24129         Move the malloc checking from module 'list' to new module 'xlist'.
24130         * modules/xlist: New file.
24131         * lib/gl_xlist.h: New file.
24132         * lib/gl_xlist.c: New file.
24133         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
24134         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
24135         gl_list_add_last, gl_list_add_before, gl_list_add_after,
24136         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
24137         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
24138         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
24139         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
24140         gl_sortedlist_nx_add): New declarations.
24141         (struct gl_list_implementation): Rename and change methods accordingly.
24142         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
24143         (gl_list_nx_create): Renamed from gl_list_create.
24144         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24145         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24146         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24147         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24148         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24149         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24150         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24151         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24152         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
24153         gl_list_create_empty.
24154         (gl_list_nx_create): Renamed from gl_list_create.
24155         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
24156         (gl_list_nx_set_at): Renamed from gl_list_set_at.
24157         (gl_list_nx_add_first): Renamed from gl_list_add_first.
24158         (gl_list_nx_add_last): Renamed from gl_list_add_last.
24159         (gl_list_nx_add_before): Renamed from gl_list_add_before.
24160         (gl_list_nx_add_after): Renamed from gl_list_add_after.
24161         (gl_list_nx_add_at): Renamed from gl_list_add_at.
24162         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
24163         * lib/gl_array_list.c: Don't include xalloc.h.
24164         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
24165         NULL upon out-of-memory.
24166         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
24167         out-of-memory.
24168         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
24169         Change return type to 'int'.
24170         (gl_array_nx_set_at): Renamed from gl_array_set_at.
24171         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24172         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
24173         upon out-of-memory.
24174         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
24175         upon out-of-memory.
24176         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
24177         upon out-of-memory.
24178         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
24179         upon out-of-memory.
24180         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
24181         out-of-memory.
24182         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
24183         Update.
24184         (gl_array_list_implementation): Update.
24185         * lib/gl_carray_list.c: Don't include xalloc.h.
24186         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
24187         Return NULL upon out-of-memory.
24188         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
24189         out-of-memory.
24190         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
24191         Change return type to 'int'.
24192         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
24193         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
24194         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
24195         upon out-of-memory.
24196         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
24197         upon out-of-memory.
24198         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
24199         out-of-memory.
24200         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
24201         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
24202         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
24203         Update.
24204         (gl_carray_list_implementation): Update.
24205         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
24206         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
24207         gl_linked_create_empty. Return NULL upon out-of-memory.
24208         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
24209         out-of-memory.
24210         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
24211         Change return type to 'int'. Return -1 upon out-of-memory.
24212         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
24213         out-of-memory.
24214         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
24215         upon out-of-memory.
24216         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
24217         upon out-of-memory.
24218         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
24219         NULL upon out-of-memory.
24220         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
24221         upon out-of-memory.
24222         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
24223         out-of-memory.
24224         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
24225         Update.
24226         * lib/gl_linked_list.c: Don't include xalloc.h.
24227         (gl_linked_list_implementation): Update.
24228         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
24229         (add_to_bucket): Change return type to 'int'.
24230         (gl_linkedhash_list_implementation): Update.
24231         * lib/gl_anytree_list1.h (free_subtree): New function.
24232         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
24233         gl_tree_create_empty. Return NULL upon out-of-memory.
24234         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
24235         Change return type to 'int'. Return -1 upon out-of-memory.
24236         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
24237         out-of-memory.
24238         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
24239         (gl_tree_remove_node): New function, moved here from
24240         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
24241         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
24242         Update.
24243         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
24244         malloc, not xmalloc. Return NULL upon out-of-memory.
24245         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24246         out-of-memory.
24247         (gl_tree_remove_node_from_tree): New function, extracted from
24248         gl_tree_remove_node.
24249         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24250         upon out-of-memory.
24251         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24252         out-of-memory.
24253         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24254         upon out-of-memory.
24255         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24256         upon out-of-memory.
24257         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24258         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
24259         not xmalloc. Return NULL upon out-of-memory.
24260         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
24261         out-of-memory.
24262         (gl_tree_remove_node_from_tree): New function, extracted from
24263         gl_tree_remove_node.
24264         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
24265         upon out-of-memory.
24266         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
24267         out-of-memory.
24268         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
24269         upon out-of-memory.
24270         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
24271         upon out-of-memory.
24272         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
24273         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
24274         gl_anytree_list1.h before gl_anyavltree_list2.h.
24275         (gl_avltree_list_implementation): Update.
24276         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
24277         gl_anytree_list1.h before gl_anyavltree_list2.h.
24278         (gl_rbtree_list_implementation): Update.
24279         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
24280         Change return type to 'int'. Return -1 upon out-of-memory. Use
24281         __builtin_expect.
24282         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
24283         (gl_avltreehash_list_implementation): Update.
24284         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
24285         (gl_rbtreehash_list_implementation): Update.
24286         * modules/array-list (Depends-on): Remove xalloc.
24287         * modules/carray-list (Depends-on): Likewise.
24288         * modules/linked-list (Depends-on): Likewise.
24289         * modules/linkedhash-list (Depends-on): Likewise.
24290         * modules/avltree-list (Depends-on): Likewise.
24291         * modules/rbtree-list (Depends-on): Likewise.
24292         * modules/avltreehash-list (Depends-on): Likewise.
24293         * modules/rbtreehash-list (Depends-on): Likewise.
24294
24295         * modules/xsublist: New file.
24296         * lib/gl_xsublist.h: New file.
24297         * lib/gl_xsublist.c: New file.
24298         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
24299         (gl_sublist_nx_create): New declaration.
24300         * lib/gl_sublist.c: Don't include xalloc.h.
24301         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
24302         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
24303         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
24304         Change return type to 'int'. Return -1 upon out-of-memory.
24305         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
24306         upon out-of-memory.
24307         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
24308         NULL upon out-of-memory.
24309         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
24310         upon out-of-memory.
24311         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
24312         NULL upon out-of-memory.
24313         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
24314         NULL upon out-of-memory.
24315         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
24316         upon out-of-memory.
24317         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
24318         (gl_sublist_list_implementation): Update.
24319         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
24320         upon out-of-memory.
24321         * modules/sublist (Depends-on): Remove xalloc.
24322
24323         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
24324         * tests/test-carray_list.c: Likewise.
24325         * tests/test-linked_list.c: Likewise.
24326         * tests/test-linkedhash_list.c: Likewise.
24327         * tests/test-avltree_list.c: Likewise.
24328         * tests/test-rbtree_list.c: Likewise.
24329         * tests/test-avltreehash_list.c: Likewise.
24330         * tests/test-rbtreehash_list.c: Likewise.
24331         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
24332         * modules/carray-list-tests (Makefile.am): Likewise.
24333         * modules/linked-list-tests (Makefile.am): Likewise.
24334         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24335         * modules/avltree-list-tests (Makefile.am): Likewise.
24336         * modules/rbtree-list-tests (Makefile.am): Likewise.
24337         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24338         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24339
24340         * NEWS: Mention the changes.
24341
24342         * lib/clean-temp.c: Include gl_xlist.h.
24343         * modules/clean-temp (Depends-on): Add xlist.
24344
24345         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
24346         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
24347
24348         * tests/test-array_oset.c: Include gl_xlist.h.
24349         * modules/array-oset-tests (Depends-on): Add xlist.
24350
24351         Reported by José E. Marchesi <jemarch@gnu.org>.
24352
24353 2009-12-13  Bruno Haible  <bruno@clisp.org>
24354
24355         Move the malloc checking from module 'oset' to new module 'xoset'.
24356         * modules/xoset: New file.
24357         * lib/gl_xoset.h: New file.
24358         * lib/gl_xoset.c: New file.
24359         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
24360         declarations.
24361         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
24362         (struct gl_oset_implementation): Rename and change methods accordingly.
24363         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
24364         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24365         'int'. Mark as __warn_unused_result__.
24366         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
24367         gl_oset_create_empty.
24368         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
24369         'int'.
24370         * lib/gl_array_oset.c: Don't include xalloc.h.
24371         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
24372         malloc, not xmalloc.
24373         (grow): Change return type to 'int'. Don't call xalloc_die.
24374         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
24375         to 'int'.
24376         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
24377         'int'.
24378         (gl_array_oset_implementation): Update.
24379         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
24380         gl_tree_create_empty.
24381         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
24382         'int'.
24383         * lib/gl_avltree_oset.c: Don't include xalloc.h.
24384         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24385         xmalloc.
24386         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24387         not xmalloc.
24388         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24389         xmalloc.
24390         (gl_avltree_oset_implementation): Update.
24391         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
24392         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
24393         xmalloc.
24394         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
24395         not xmalloc.
24396         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
24397         xmalloc.
24398         (gl_rbtree_oset_implementation): Update.
24399         * modules/array-oset (Depends-on): Remove xalloc.
24400         * modules/avltree-oset (Depends-on): Likewise.
24401         * modules/rbtree-oset (Depends-on): Likewise.
24402         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
24403         * tests/test-avltree_oset.c: Likewise.
24404         * tests/test-rbtree_oset.c: Likewise.
24405         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
24406         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
24407         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24408         * NEWS: Mention the change.
24409
24410 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
24411
24412         maint.mk: allow a project to override release-prep commands
24413         * top/maint.mk (alpha, beta, stable): Move release-preparatory
24414         commands into a new rule.
24415         (release-prep): New rule.
24416         (release-prep-hook): New overridable variable.
24417
24418 2009-12-13  Bruno Haible  <bruno@clisp.org>
24419
24420         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
24421
24422 2009-12-13  Jim Meyering  <meyering@redhat.com>
24423
24424         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
24425         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
24426
24427 2009-12-12  Bruno Haible  <bruno@clisp.org>
24428
24429         duplocale: Tweak.
24430         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
24431
24432 2009-12-12  Karl Berry  <karl@gnu.org>
24433
24434         * config/srclist.txt (strtoll.c): tab changes, no more sync.
24435
24436 2009-12-12  Bruno Haible  <bruno@clisp.org>
24437
24438         * m4/po.m4: Undo incorrect untabification.
24439
24440 2009-12-12  Bruno Haible  <bruno@clisp.org>
24441
24442         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
24443         * modules/c-strtod (Depends-on): Add locale.
24444         * modules/c-strtold (Depends-on): Likewise.
24445
24446 2009-12-12  Bruno Haible  <bruno@clisp.org>
24447
24448         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
24449
24450 2009-12-11  Eric Blake  <ebb9@byu.net>
24451
24452         setenv: relax requirement in light of POSIX ruling
24453         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
24454         not NULL.
24455         * tests/test-setenv.c (main): Relax test.
24456         * tests/test-unsetenv.c (main): Likewise.
24457         * doc/posix-functions/setenv.texi (setenv): Document this.
24458         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24459
24460 2009-12-11  Bruno Haible  <bruno@clisp.org>
24461
24462         New module 'fd-safer-flag'.
24463         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
24464         * lib/dup-safer.c (dup_safer_flag): Remove function.
24465         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
24466         * lib/fd-safer.c (fd_safer_flag): Remove function.
24467         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
24468         * modules/cloexec (configure.ac): Drop indicator macro.
24469         * modules/fd-safer-flag: New file.
24470         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
24471         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
24472         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
24473
24474 2009-12-11  Bruno Haible  <bruno@clisp.org>
24475
24476         Tests for module 'nl_langinfo'.
24477         * modules/nl_langinfo-tests: New file.
24478         * tests/test-nl_langinfo.sh: New file.
24479         * tests/test-nl_langinfo.c: New file.
24480
24481         New module 'nl_langinfo'.
24482         * lib/nl_langinfo.c: New file.
24483         * m4/nl_langinfo.m4: New file.
24484         * modules/nl_langinfo: New file.
24485         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
24486
24487 2009-12-11  Bruno Haible  <bruno@clisp.org>
24488
24489         Tests for module 'langinfo'.
24490         * modules/langinfo-tests: New file.
24491         * tests/test-langinfo.c: New file.
24492
24493         New module 'langinfo'.
24494         * lib/langinfo.in.h: New file.
24495         * m4/langinfo_h.m4: New file.
24496         * modules/langinfo: New file.
24497         * doc/posix-headers/langinfo.texi: Mention the new module.
24498
24499 2009-12-11  Bruno Haible  <bruno@clisp.org>
24500
24501         * lib/config.charset: Untabify.
24502
24503 2009-12-11  Bruno Haible  <bruno@clisp.org>
24504
24505         * modules/unistd-safer (configure.ac): Drop indicator macro.
24506
24507 2009-12-11  Bruno Haible  <bruno@clisp.org>
24508
24509         Move pipe2-safer code to its own file.
24510         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
24511         * lib/pipe-safer.c (pipe2_safer): Remove function.
24512         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
24513         (Makefile.am): Add it to lib_SOURCES.
24514
24515 2009-12-10  Bruno Haible  <bruno@clisp.org>
24516
24517         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
24518
24519 2009-12-10  Bruno Haible  <bruno@clisp.org>
24520
24521         Declare which arguments expect non-NULL values, for GCC and clang.
24522         * build-aux/arg-nonnull.h: New file.
24523         * modules/arg-nonnull: New file.
24524         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
24525         (inet_ntop, inet_pton): Use it.
24526         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
24527         (closedir, dirfd, opendir, scandir, alphasort): Use it.
24528         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
24529         (open, openat): Use it.
24530         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
24531         (fnmatch): Use it.
24532         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
24533         (getopt, getopt_long, getopt_long_only): Use it.
24534         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
24535         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
24536         Use it.
24537         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
24538         (iconv_open): Use it.
24539         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
24540         (strtoimax, strtoumax): Use it.
24541         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
24542         (duplocale): Use it.
24543         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
24544         (frexp, frexpl): Use it.
24545         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
24546         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
24547         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
24548         (tsearch, tfind, tdelete, twalk): Use it.
24549         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
24550         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24551         sigpending): Use it.
24552         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
24553         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24554         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24555         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24556         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24557         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24558         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24559         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24560         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24561         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24562         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24563         Use it.
24564         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
24565         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
24566         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
24567         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
24568         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
24569         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
24570         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
24571         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
24572         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
24573         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
24574         strtoull, unsetenv): Use it.
24575         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
24576         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24577         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24578         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24579         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24580         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
24581         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
24582         (strcasecmp, strncasecmp): Use it.
24583         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
24584         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
24585         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
24586         rpl_setsockopt): Use it.
24587         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
24588         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
24589         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
24590         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
24591         (gettimeofday): Use it.
24592         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
24593         (times): Use it.
24594         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
24595         (uname): Use it.
24596         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
24597         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
24598         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
24599         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
24600         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
24601         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
24602         unlinkat, write): Use it.
24603         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
24604         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
24605         * lib/argv-iter.h: Include arg-nonnull.h.
24606         (_ATTRIBUTE_NONNULL_): Remove macro.
24607         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
24608         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
24609         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
24610         optimization.
24611         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
24612         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
24613         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
24614         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
24615         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
24616         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
24617         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
24618         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
24619         * modules/arpa_inet (Depends-on): Add arg-nonnull.
24620         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
24621         * modules/dirent (Depends-on): Add arg-nonnull.
24622         (Makefile.am): Insert arg-nonnull.h into dirent.h.
24623         * modules/fcntl-h (Depends-on): Add arg-nonnull.
24624         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
24625         * modules/fnmatch (Depends-on): Add arg-nonnull.
24626         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
24627         * modules/getopt-posix (Depends-on): Add arg-nonnull.
24628         (Makefile.am): Insert arg-nonnull.h into getopt.h.
24629         * modules/glob (Depends-on): Add arg-nonnull.
24630         (Makefile.am): Insert arg-nonnull.h into glob.h.
24631         * modules/iconv_open (Depends-on): Add arg-nonnull.
24632         (Makefile.am): Insert arg-nonnull.h into iconv.h.
24633         * modules/inttypes (Depends-on): Add arg-nonnull.
24634         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
24635         * modules/locale (Depends-on): Add arg-nonnull.
24636         (Makefile.am): Insert arg-nonnull.h into locale.h.
24637         * modules/math (Depends-on): Add arg-nonnull.
24638         (Makefile.am): Insert arg-nonnull.h into math.h.
24639         * modules/netdb (Depends-on): Add arg-nonnull.
24640         (Makefile.am): Insert arg-nonnull.h into netdb.h.
24641         * modules/search (Depends-on): Add arg-nonnull.
24642         (Makefile.am): Insert arg-nonnull.h into search.h.
24643         * modules/signal (Depends-on): Add arg-nonnull.
24644         (Makefile.am): Insert arg-nonnull.h into signal.h.
24645         * modules/spawn (Depends-on): Add arg-nonnull.
24646         (Makefile.am): Insert arg-nonnull.h into spawn.h.
24647         * modules/stdio (Depends-on): Add arg-nonnull.
24648         (Makefile.am): Insert arg-nonnull.h into stdio.h.
24649         * modules/stdlib (Depends-on): Add arg-nonnull.
24650         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
24651         * modules/string (Depends-on): Add arg-nonnull.
24652         (Makefile.am): Insert arg-nonnull.h into string.h.
24653         * modules/strings (Depends-on): Add arg-nonnull.
24654         (Makefile.am): Insert arg-nonnull.h into strings.h.
24655         * modules/sys_socket (Depends-on): Add arg-nonnull.
24656         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
24657         * modules/sys_stat (Depends-on): Add arg-nonnull.
24658         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
24659         * modules/sys_time (Depends-on): Add arg-nonnull.
24660         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
24661         * modules/sys_times (Depends-on): Add arg-nonnull.
24662         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
24663         * modules/sys_utsname (Depends-on): Add arg-nonnull.
24664         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
24665         * modules/time (Depends-on): Add arg-nonnull.
24666         (Makefile.am): Insert arg-nonnull.h into time.h.
24667         * modules/unistd (Depends-on): Add arg-nonnull.
24668         (Makefile.am): Insert arg-nonnull.h into unistd.h.
24669         * modules/wchar (Depends-on): Add arg-nonnull.
24670         (Makefile.am): Insert arg-nonnull.h into wchar.h.
24671         * modules/argv-iter (Depends-on): Add arg-nonnull.
24672         * tests/test-canonicalize.c (null_ptr): New function.
24673         (main): Use it.
24674         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
24675         (main): Use it.
24676         * tests/test-memmem.c (null_ptr): New function.
24677         (main): Use it.
24678         Reported by Jim Meyering.
24679
24680 2009-12-10  Bruno Haible  <bruno@clisp.org>
24681
24682         Use spaces for indentation, not tabs.
24683         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24684         * m4/*.m4: Untabify.
24685         * build-aux/*.h: Untabify.
24686         * tests/**/*.[hc]: Untabify.
24687         * README: New section "Indent with spaces, not TABs", based on
24688         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
24689         * NEWS: Mention the change.
24690
24691 2009-12-10  Bruno Haible  <bruno@clisp.org>
24692
24693         pty test: Fix link error.
24694         * modules/pty-tests (Makefile.am): Add the default LDADD value to
24695         test_pty_LDADD.
24696
24697 2009-12-07  Simon Josefsson  <simon@josefsson.org>
24698
24699         * modules/pty: New file.
24700         * modules/pty-tests: New file.
24701         * m4/pty.m4: New file.
24702         * tests/test-pty.c: New file.
24703         * doc/glibc-headers/pty.texi: Modified.
24704         * doc/glibc-functions/forkpty.texi: Modified.
24705         * doc/glibc-functions/openpty.texi: Modified.
24706
24707 2009-12-10  Bruno Haible  <bruno@clisp.org>
24708
24709         Avoid syntax error in C++ mode.
24710         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
24711
24712 2009-12-10  Bruno Haible  <bruno@clisp.org>
24713
24714         Use sed with option -e.
24715         * gnulib-tool (func_version, func_emit_copyright_notice,
24716         func_emit_initmacro_end, func_import, func_create_testdir): Pass
24717         option -e to sed.
24718         * modules/link-warning (Makefile.am): Likewise.
24719
24720 2009-12-10  Jim Meyering  <meyering@redhat.com>
24721
24722         mgetgroups: do not write bytes beyond end of malloc'd buffer
24723         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
24724         username, we call getgroups with a one-element-shorter buffer,
24725         but still told it the length was original, max_n_groups.
24726
24727 2009-12-09  Eric Blake  <ebb9@byu.net>
24728
24729         cloexec: relax license
24730         * modules/cloexec (Maintainer): Add myself.
24731         (License): Use LGPL, not GPL.
24732
24733         link-warning: optimize generation
24734         * modules/link-warning (Makefile.am): Reduce process usage.
24735
24736 2009-12-09  Bruno Haible  <bruno@clisp.org>
24737
24738         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
24739         workaround was added on 2009-11-17.
24740
24741 2009-12-09  Jim Meyering  <meyering@redhat.com>
24742             Bruno Haible  <bruno@clisp.org>
24743
24744         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
24745         * modules/link-warning (Makefile.am): Make the comment-removing sed
24746         command more robust in the face of bootstrap-prepended comment lines.
24747
24748 2009-12-09  Bruno Haible  <bruno@clisp.org>
24749
24750         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
24751         most one group.
24752
24753 2009-12-09  Simon Josefsson <simon@josefsson.org>
24754             Bruno Haible  <bruno@clisp.org>
24755
24756         * build-aux/link-warning.h: Add copyright notice.
24757         * modules/link-warning (Makefile.am): Generate link-warning.h from
24758         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
24759         * NEWS: Mention change in link-warning module.
24760         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
24761         * modules/dirent (Makefile.am): Add dependency to dirent.h.
24762         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
24763         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
24764         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
24765         * modules/math (Makefile.am): Add dependency to math.h.
24766         * modules/search (Makefile.am): Add dependency to search.h.
24767         * modules/signal (Makefile.am): Add dependency to signal.h.
24768         * modules/spawn (Makefile.am): Add dependency to spawn.h.
24769         * modules/stdio (Makefile.am): Add dependency to stdio.h.
24770         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
24771         * modules/string (Makefile.am): Add dependency to string.h.
24772         * modules/strings (Makefile.am): Add dependency to strings.h.
24773         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
24774         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
24775         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
24776         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
24777         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
24778         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
24779         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
24780         * modules/unistd (Makefile.am): Add dependency to unistd.h.
24781         * modules/wchar (Makefile.am): Add dependency to wchar.h.
24782
24783 2009-12-09  Bruno Haible  <bruno@clisp.org>
24784
24785         fchdir: Optimize away rpl_fstat when possible.
24786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
24787         REPLACE_OPEN_DIRECTORY.
24788         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
24789
24790 2009-12-09  Bruno Haible  <bruno@clisp.org>
24791
24792         * lib/fchdir.c: Update comment.
24793
24794 2009-12-09  Bruno Haible  <bruno@clisp.org>
24795
24796         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
24797
24798 2009-12-08  Eric Blake  <ebb9@byu.net>
24799
24800         fchdir: avoid memory leak on re-registration.
24801         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
24802
24803 2009-12-08  Jim Meyering  <meyering@redhat.com>
24804
24805         init.sh: avoid Solaris 10 /bin/sh portability problem
24806         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
24807         sourced script:
24808           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
24809           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
24810           bar
24811         tests/init.sh relied on that, accepting a --set-path=DIR argument,
24812         and two tests used that idiom.
24813         * tests/init.sh: Update suggested usage comments.
24814         (path_prepend_): New function, to be used in place
24815         of the --src-path=DIR option.
24816         (setup_): Move PATH-prepending code into path_prepend_.
24817         * tests/test-pread.sh: Adapt to new usage.
24818         * tests/test-xalloc-die.sh: Likewise.
24819
24820 2009-12-08  Simon Josefsson  <simon@josefsson.org>
24821
24822         * doc/gnulib.texi (Glibc pty.h): Add.
24823         * doc/glibc-functions/forkpty.texi: Add.
24824         * doc/glibc-functions/openpty.texi: Add.
24825         Suggested by Bruno Haible.
24826
24827 2009-12-08  Eric Blake  <ebb9@byu.net>
24828
24829         fchdir: fix logic bugs
24830         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
24831         * tests/test-fchdir.c (main): Enhance test.
24832         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
24833         is in use.
24834
24835         dup2: fix logic bugs
24836         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
24837         REPLACE_DUP2 to decide when rpl_dup2 is needed.
24838         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
24839         exists.
24840         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
24841
24842 2009-12-07  Eric Blake  <ebb9@byu.net>
24843
24844         unlink: fix m4 detection
24845         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
24846
24847         unistd-safer: add unit test
24848         * modules/unistd-safer-tests: New file.
24849         * tests/test-dup-safer.c: Likewise.
24850         * tests/test-cloexec.c (setmode): Avoid compiler warning.
24851         * tests/test-dup2.c (setmode): Likewise.
24852         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
24853
24854         cloexec: preserve text vs. binary across dup_cloexec
24855         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
24856         mode.
24857         * modules/dup2-tests (Depends-on): Add binary-io.
24858         * modules/cloexec-tests (Depends-on): Likewise.
24859         * tests/test-dup2.c (setmode, is_mode): New helpers.
24860         (main): Add tests that translation mode is preserved.
24861         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
24862         Reported by Bruno Haible.
24863
24864         mgetgroups: reduce duplicate listings
24865         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
24866         resulting array.
24867         * tests/test-chown.h (test_chown): Simplify client.
24868         * tests/test-lchown.h (test_lchown): Likewise.
24869
24870 2009-12-06  Bruno Haible  <bruno@clisp.org>
24871
24872         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
24873         value.
24874
24875 2009-12-06  Bruno Haible  <bruno@clisp.org>
24876
24877         * lib/progname.c: Include stdio.h, stdlib.h.
24878         (set_program_name): Reject a NULL argument.
24879
24880 2009-12-05  Eric Blake  <ebb9@byu.net>
24881
24882         pipe2-safer: new module
24883         * modules/pipe2-safer: New file.
24884         * lib/unistd-safer.h (pipe2_safer): New prototype.
24885         * lib/unistd--.h (pipe2): New wrapper.
24886         * lib/pipe-safer.c (pipe2_safer): New function.
24887         * modules/pipe (Depends-on): Add pipe2-safer.
24888         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
24889
24890         stdlib-safer: preserve cloexec flag for mkostemp[s]
24891         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
24892         fd_safer_flag.
24893
24894         unistd-safer: allow preservation of cloexec status via flag
24895         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
24896         prototypes.
24897         * lib/dup-safer.c (dup_safer_flag): New function.
24898         * lib/fd-safer.c (fd_safer_flag): Likewise.
24899         * modules/cloexec (configure.ac): Set witness.
24900
24901         test-dup2: enhance test
24902         * modules/dup2-tests (Depends-on): Add cloexec.
24903         * tests/test-dup2.c (main): Enhance test.
24904
24905         cloexec: add dup_cloexec
24906         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
24907         header and comments.
24908         * lib/cloexec.c (set_cloexec_flag): Add comments.
24909         (dup_cloexec): New function, with mingw implementation borrowed
24910         from...
24911         * lib/w32spawn.h (dup_noinherit): ...here.
24912         * modules/execute (Depends-on): Add cloexec.
24913         * modules/pipe (Depends-on): Likewise.
24914         * modules/cloexec (Depends-on): Add dup2.
24915         * modules/cloexec-tests (Files): New file.
24916         * tests/test-cloexec.c: Likewise.
24917
24918         test-xalloc-die: fix test for mingw
24919         * modules/xalloc-die-tests (Files): Add tests/init.sh.
24920         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
24921         directory and .exe suffix off argv[0] output.
24922
24923         test-fseeko: fix test for mingw
24924         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
24925         than undefining fseek, so test will pass on mingw.
24926
24927 2009-12-05  Bruno Haible  <bruno@clisp.org>
24928
24929         * lib/progname.h (set_program_name): Clarify specification.
24930         * lib/progname.c (set_program_name): Likewise.
24931         Reported by Jim Meyering.
24932
24933 2009-12-05  Jim Meyering  <meyering@redhat.com>
24934
24935         maint.mk: backslash-escape parens in default regexp
24936         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
24937         backslash-escape the literal parentheses.
24938
24939         maint.mk: news-date-check: use grep -E
24940         * top/maint.mk (today): Define a Make variable, not a...
24941         (news-date-check): ...shell variable.
24942         (news-date-regexp): Use the Make variable.
24943         Use grep's -E option.  Change the failing diagnostic to mention
24944         the variable, $(news-date-regexp).
24945
24946 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
24947
24948         maintainer-makefile: allow customization of NEWS entry format
24949         * top/maint.mk (news-date-regexp): New overridable variable.
24950         (news-date-check): Use it.
24951
24952 2009-12-04  Eric Blake  <ebb9@byu.net>
24953
24954         mgetgroups: add xgetgroups, and avoid ENOSYS failures
24955         * lib/mgetgroups.h (xgetgroups): New prototype.
24956         * lib/mgetgroups.c (xgetgroups): New wrapper.
24957         (mgetgroups): Handle ENOSYS.
24958         * modules/mgetgroups (Depends-on): Add realloc.
24959         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
24960
24961         mgetgroups: avoid argument promotion issues with -1
24962         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
24963         for invalid gid_t.
24964         * tests/test-chown.h (getegid, test_chown): Likewise.
24965         * tests/test-lchown.h (getegid, test_lchown): Likewise.
24966
24967 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
24968
24969         exclude: Fix header file problems.
24970         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
24971
24972 2009-12-01  Jim Meyering  <meyering@redhat.com>
24973
24974         fts: fts_open: do not let an empty string cause immediate failure
24975         This is required in support of GNU rm, for which the command
24976         "rm A '' B" must process and remove both A and B, in spite of
24977         the empty string argument.
24978         * lib/fts.c (fts_open): Do not let the presence of an empty string
24979         cause fts_open to fail immediately.  Most fts-using tools must be
24980         able to process all arguments, in order, and can be expected to
24981         diagnose such arguments themselves.
24982
24983 2009-11-30  Eric Blake  <ebb9@byu.net>
24984
24985         utimens: fix compilation error
24986         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
24987         Declare variable at right scope.
24988
24989 2009-11-29  Jim Meyering  <meyering@redhat.com>
24990
24991         bootstrap: handle perl-5.11's changed --version output
24992         * build-aux/bootstrap (get_version): Handle perl separately,
24993         since perl-5.11's --version output is different.
24994
24995 2009-11-28  Jim Meyering  <meyering@redhat.com>
24996
24997         userspec: depend on the inttostr module, too
24998         * modules/userspec (Depends-on): Add inttostr.
24999
25000         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
25001         * lib/userspec.c (parse_with_separator): Do not accept a user ID
25002         number of MAXUID when it evaluates to (uid_t) -1.
25003         Likewise for group ID.  Reported by Matt McCutchen in
25004         <http://savannah.gnu.org/bugs/?28113>
25005
25006         userspec: reformat to use spaces, not TABs
25007         * lib/userspec.c: Expand TABs to spaces.
25008         Add Emacs' "indent-tabs-mode: nil" hint.
25009
25010 2009-11-27  Eric Blake  <ebb9@byu.net>
25011
25012         getopt-gnu: flush out another BSD bug
25013         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
25014         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
25015         flush out BSD bug.
25016         * tests/test-getopt.h (test_getopt): End lists with NULL.
25017         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25018         (test_getopt_long_posix): Enhance test.
25019         * modules/getopt-posix-tests (Depends-on): Add stdbool.
25020         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
25021         getopt-gnu.
25022         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25023         Likewise.
25024
25025 2009-11-27  Simon Josefsson  <simon@josefsson.org>
25026
25027         * modules/idpriv-droptemp-tests (Notice): Fix text.
25028
25029 2009-11-27  Jim Meyering  <meyering@redhat.com>
25030
25031         test-xalloc-die: avoid spurious failure due to libtool argv difference
25032         In a libtool-enabled project, this test would fail due to a difference
25033         in the emitted program name, e.g.,
25034         -test-xalloc-die: memory exhausted
25035         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
25036         Use program to avoid that.
25037         * modules/xalloc-die-tests (Depends-on): Add progname.
25038         * tests/test-xalloc-die.c: Include progname.h".
25039         (program_name): Remove decl.
25040         (main): Call set_program_name.
25041         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
25042
25043 2009-11-26  Richard Jones  <rjones@redhat.com>
25044
25045         w32sock: leave win32 error in place.
25046         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
25047
25048 2009-11-26  Eric Blake  <ebb9@byu.net>
25049
25050         init.sh: suggest to use skip_ and fail_ functions in comments
25051         * tests/init.sh: Add a sentence.
25052
25053 2009-11-25  Bruno Haible  <bruno@clisp.org>
25054
25055         init.sh: add documentation in comments
25056         * tests/init.sh: Add some developer and user documentation.
25057
25058 2009-11-26  Jim Meyering  <meyering@redhat.com>
25059
25060         init.sh: accommodate even those who specify bogus srcdir manually
25061         * tests/init.sh: Normally, srcdir is guaranteed by automake and
25062         configure-time tests to be sanitized, so that there is no need to
25063         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
25064         (with no double quotes) suffices.  However, since tests may be
25065         invoked manually, and since you may explicitly set srcdir to the
25066         name of a directory containing spaces, do quote its uses here.
25067         * tests/test-pread.sh: Likewise.
25068         Suggested by Bruno Haible.
25069
25070         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
25071         * tests/test-pread.sh: Write no data into the pipe, because
25072         test-pread actually reads none.  This avoids a diagnostic,
25073         "bash: echo: write error: Broken pipe", that arises in the unusual
25074         event something is ignoring SIGPIPE, and might be interpreted
25075         as some sort of failure.  Reported by Bruno Haible.
25076
25077 2009-11-25  Jim Meyering  <meyering@redhat.com>
25078
25079         test-pread: cover failure with ESPIPE and EINVAL
25080         * tests/test-pread.c (main): Test for failure, too.
25081         * tests/test-pread.sh: Invoke with stdin on a pipe.
25082         Suggested by Eric Blake.
25083
25084         pread: improvement and fix
25085         * modules/pread (Depends-on): Depend on lseek, for portability to
25086         e.g., mingw.  Suggested by Eric Blake.
25087         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
25088
25089         unistd.in.h: correct declaration of pread
25090         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
25091         Reported by Richard W.M. Jones.
25092
25093         test-pread.sh: distribute the test script
25094         * modules/pread-tests (Files): Include test-pread.sh.
25095
25096         test-pread.sh: clean up
25097         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
25098         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
25099         That is unnecessary, since it's always ".".
25100         Suggestion from Eric Blake.
25101
25102         test-pread.sh: make executable
25103         * tests/test-pread.sh: Set executable bit.
25104         Reported by Eric Blake.
25105
25106         correct typo in test-pread.sh
25107         * tests/test-pread.sh: Add #! line.
25108
25109         test pread
25110         * tests/test-pread.c: New file.
25111         * tests/test-pread.sh: Likewise.
25112         * modules/pread-tests: Likewise.
25113
25114         pread: new module
25115         * modules/pread: New file.
25116         * lib/unistd.in.h (pread): Define/declare.
25117         * lib/pread.c (pread): New file.
25118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
25119         * modules/unistd (Makefile.am): Substitute witnesses.
25120         * doc/posix-functions/pread.texi (pread): Update.
25121         * MODULES.html.sh: Add pread.
25122
25123 2009-11-25  Jim Meyering  <meyering@redhat.com>
25124
25125         tests/init.sh: new file to be used via most *.sh tests
25126         * tests/init.sh: New file.
25127
25128 2009-11-25  Eric Blake  <ebb9@byu.net>
25129
25130         utimens: work around older Linux failure with symlinks
25131         * lib/utimens.c (lutimensat_works_really): New variable.
25132         (fdutimens, lutimens): Use it to manage kernels that support
25133         nanosecond times on files, but not on symlinks.
25134         Reported by OndÅ™ej Vašík.
25135
25136         utimes: fix configure grammar
25137         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
25138
25139 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
25140
25141         regex: Fix fastmap for multibyte character ranges.
25142         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
25143         characters when a multibyte character range is included.
25144
25145 2009-11-22  Andy Wingo  <wingo@pobox.com>
25146
25147         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
25148         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
25149
25150 2009-11-24  Bruno Haible  <bruno@clisp.org>
25151
25152         doc: Most *_l functions exist in MacOS X 10.5.
25153         * doc/posix-functions/duplocale.texi: Update platforms list.
25154         * doc/posix-functions/freelocale.texi: Likewise.
25155         * doc/posix-functions/newlocale.texi: Likewise.
25156         * doc/posix-functions/uselocale.texi: Likewise.
25157         * doc/posix-functions/isalnum_l.texi: Likewise.
25158         * doc/posix-functions/isalpha_l.texi: Likewise.
25159         * doc/posix-functions/isblank_l.texi: Likewise.
25160         * doc/posix-functions/iscntrl_l.texi: Likewise.
25161         * doc/posix-functions/isdigit_l.texi: Likewise.
25162         * doc/posix-functions/isgraph_l.texi: Likewise.
25163         * doc/posix-functions/islower_l.texi: Likewise.
25164         * doc/posix-functions/isprint_l.texi: Likewise.
25165         * doc/posix-functions/ispunct_l.texi: Likewise.
25166         * doc/posix-functions/isspace_l.texi: Likewise.
25167         * doc/posix-functions/isupper_l.texi: Likewise.
25168         * doc/posix-functions/iswalnum_l.texi: Likewise.
25169         * doc/posix-functions/iswalpha_l.texi: Likewise.
25170         * doc/posix-functions/iswblank_l.texi: Likewise.
25171         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25172         * doc/posix-functions/iswctype_l.texi: Likewise.
25173         * doc/posix-functions/iswdigit_l.texi: Likewise.
25174         * doc/posix-functions/iswgraph_l.texi: Likewise.
25175         * doc/posix-functions/iswlower_l.texi: Likewise.
25176         * doc/posix-functions/iswprint_l.texi: Likewise.
25177         * doc/posix-functions/iswpunct_l.texi: Likewise.
25178         * doc/posix-functions/iswspace_l.texi: Likewise.
25179         * doc/posix-functions/iswupper_l.texi: Likewise.
25180         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25181         * doc/posix-functions/isxdigit_l.texi: Likewise.
25182         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
25183         * doc/posix-functions/strcasecmp_l.texi: Likewise.
25184         * doc/posix-functions/strcoll_l.texi: Likewise.
25185         * doc/posix-functions/strfmon_l.texi: Likewise.
25186         * doc/posix-functions/strftime_l.texi: Likewise.
25187         * doc/posix-functions/strncasecmp_l.texi: Likewise.
25188         * doc/posix-functions/strxfrm_l.texi: Likewise.
25189         * doc/posix-functions/tolower_l.texi: Likewise.
25190         * doc/posix-functions/toupper_l.texi: Likewise.
25191         * doc/posix-functions/towctrans_l.texi: Likewise.
25192         * doc/posix-functions/towlower_l.texi: Likewise.
25193         * doc/posix-functions/towupper_l.texi: Likewise.
25194         * doc/posix-functions/wcscoll_l.texi: Likewise.
25195         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25196         * doc/posix-functions/wctrans_l.texi: Likewise.
25197         * doc/posix-functions/wctype_l.texi: Likewise.
25198         * doc/glibc-functions/strptime_l.texi: Likewise.
25199         * doc/glibc-functions/strtod_l.texi: Likewise.
25200         * doc/glibc-functions/strtof_l.texi: Likewise.
25201         * doc/glibc-functions/strtol_l.texi: Likewise.
25202         * doc/glibc-functions/strtold_l.texi: Likewise.
25203         * doc/glibc-functions/strtoll_l.texi: Likewise.
25204         * doc/glibc-functions/strtoul_l.texi: Likewise.
25205         * doc/glibc-functions/strtoull_l.texi: Likewise.
25206         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25207         * doc/glibc-functions/wcstod_l.texi: Likewise.
25208         * doc/glibc-functions/wcstof_l.texi: Likewise.
25209         * doc/glibc-functions/wcstol_l.texi: Likewise.
25210         * doc/glibc-functions/wcstold_l.texi: Likewise.
25211         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25212         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25213         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25214
25215 2009-11-24  Bruno Haible  <bruno@clisp.org>
25216
25217         duplocale: Fix logic bug.
25218         * lib/duplocale.c: Don't include <langinfo.h>.
25219         (_NL_LOCALE_NAME): Remove macro.
25220         (rpl_duplocale): Use setlocale instead of nl_langinfo.
25221         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
25222
25223 2009-11-23  Jim Meyering  <meyering@redhat.com>
25224
25225         test-update-copyright: don't hard-code /usr/bin/perl
25226         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
25227         perl to print the current year.  Gilles Espinasse reported that
25228         the replaced use of perl was hard-coded as /usr/bin/perl.
25229
25230 2009-11-23  Bruno Haible  <bruno@clisp.org>
25231
25232         duplocale: Add support for glibc 2.3.x.
25233         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
25234
25235 2009-11-22  Bruno Haible  <bruno@clisp.org>
25236
25237         vasnprintf: Tiny optimization.
25238         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
25239         MacOS X.
25240
25241 2009-11-22  Bruno Haible  <bruno@clisp.org>
25242
25243         Tests for module 'duplocale'.
25244         * modules/duplocale-tests: New file.
25245         * tests/test-duplocale.c: New file.
25246
25247         New module 'duplocale'.
25248         * m4/duplocale.m4: New file.
25249         * lib/locale.in.h (duplocale): New declaration.
25250         * lib/duplocale.c: New file.
25251         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
25252         gl_LOCALE_H_DEFAULTS): New macros.
25253         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
25254         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
25255         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
25256         REPLACE_DUPLOCALE.
25257         * modules/duplocale: New file.
25258         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
25259
25260 2009-11-22  Bruno Haible  <bruno@clisp.org>
25261
25262         * modules/locale-tests (configure.ac): Test for newlocale function.
25263         * tests/test-locale.c: When the system has extended locale functions,
25264         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
25265
25266         locale: Make locale_t available when possible.
25267         * lib/locale.in.h: Include <xlocale.h> when it exists.
25268         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
25269         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
25270         * modules/locale (Depends-on): Add extensions.
25271         (Makefile.am): Also substitute HAVE_XLOCALE_H.
25272         * doc/posix-headers/locale.texi: Document the problem with locale_t.
25273
25274 2009-11-22  Bruno Haible  <bruno@clisp.org>
25275
25276         Add comments.
25277         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
25278         invocation.
25279         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
25280         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25281         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25282
25283 2009-11-22  Bruno Haible  <bruno@clisp.org>
25284
25285         error: account for the possibility of freopen (stdout).
25286         * lib/error.c: Include <unistd.h>.
25287         (flush_stdout): New function, extracted from error and error_at_line.
25288         Determine stdout's fd dynamically.
25289         (error, error_at_line): Invoke flush_stdout.
25290         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
25291         * modules/error (Depends-on): Add unistd.
25292
25293 2009-11-22  Bruno Haible  <bruno@clisp.org>
25294
25295         diffseq: Add comment.
25296         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
25297
25298 2009-11-22  Jim Meyering  <meyering@redhat.com>
25299
25300         c-stack: avoid defining an unused static function
25301         * lib/c-stack.c (find_stack_direction): Do not define this function
25302         when it will not be used.
25303
25304         diffseq: avoid spurious gcc warnings
25305         * lib/diffseq.h (IF_LINT2): Define.
25306         (compareseq): Use it to initialize two members of "part".
25307         This avoids two used-uninitialized warnings.
25308
25309 2009-11-21  Jim Meyering  <meyering@redhat.com>
25310
25311         c-stack: avoid "ignoring return value of `write'" warning
25312         * lib/c-stack.c: Include "ignore-value.h".
25313         (die): Explicitly ignore each write return value.
25314         * modules/c-stack (Depends-on): Add ignore-value.
25315
25316 2009-11-21  Bruno Haible  <bruno@clisp.org>
25317
25318         diffseq: reduce scope of variable 'best'.
25319         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
25320         variable, earlier used for two different purposes.
25321
25322 2009-11-21  Jim Meyering  <meyering@redhat.com>
25323
25324         diffseq: remove useless assignment to "best"
25325         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
25326         assignment.  At that point "best" is already guaranteed to be zero.
25327
25328 2009-11-20  Eric Blake  <ebb9@byu.net>
25329
25330         build: mention ftp redirector in release announcements
25331         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
25332         values that used to come from cfg.mk; mention FTP redirect URL.
25333         * build-aux/announce-gen: Mention the mirror list.
25334         Suggested by Karl Berry.
25335
25336         nanosleep: improve port to mingw
25337         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
25338         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
25339         LIB_NANOSLEEP, but only when needed.
25340         * modules/select (Link): Document LIBSOCKET.
25341         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
25342         enough.
25343
25344         nanosleep: work around cygwin bug
25345         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
25346         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
25347         bug.
25348         (getnow): Delete, not needed.
25349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
25350         LIB_CLOCK_GETTIME.
25351         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
25352         clock-time, gettime.
25353         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
25354         bug.
25355         * modules/nanosleep-tests: New test.
25356         * tests/test-nanosleep.c: New file.
25357
25358         sleep: work around cygwin bug
25359         * lib/sleep.c (rpl_sleep): Work around the bug.
25360         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
25361         (gl_PREREQ_SLEEP): Delete unused macro.
25362         * modules/sleep (Depends-on): Add verify.
25363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25364         * modules/unistd (Makefile.am): Substitute witness.
25365         * lib/unistd.in.h (sleep): Update prototype.
25366         * doc/posix-functions/sleep.texi (sleep): Document the bug.
25367         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
25368         * modules/sleep-tests (Depends-on): Check for alarm.
25369
25370 2009-11-20  Jim Meyering  <meyering@redhat.com>
25371
25372         maint.mk: improve sc_prohibit_magic_number_exit
25373         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
25374         so it does not match uses like System.exit(1).
25375         Add comments showing how to correct all offenders.
25376
25377 2009-11-19  Eric Blake  <ebb9@byu.net>
25378
25379         xalloc-die-tests: add missing library
25380         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
25381
25382         test-xvasprintf: silence compiler warnings
25383         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
25384         empty string from gcc.
25385
25386 2009-11-19  Jim Meyering  <meyering@redhat.com>
25387
25388         xfreopen: new module, from coreutils
25389         * modules/xfreopen: New module.
25390         * lib/xfreopen.c: New file.
25391         * lib/xfreopen.h: New file.
25392         * MODULES.html.sh (File stream based Input/Output"): Add it.
25393
25394 2009-11-19  Eric Blake  <ebb9@byu.net>
25395
25396         manywarnings: depend on warnings
25397         * modules/manywarnings (Depends-on): Add warnings.
25398
25399         build: avoid compiler warnings
25400         * lib/select.c (rpl_select): Delete unused variable.
25401         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
25402
25403 2009-11-18  Eric Blake  <ebb9@byu.net>
25404
25405         tests: avoid false negative with --with-packager
25406         * tests/test-version-etc.sh: Discard packager information.
25407         * tests/test-argp-version-etc-1.sh: Likewise.
25408         Reported by Mike Frysinger.
25409
25410         utimens: fix regression on Solaris
25411         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
25412         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
25413         can only change fd timestamps via futimesat.  Instead, use an
25414         additional witness macro to avoid BSD bug.
25415         Reported by Jim Meyering.
25416
25417 2009-11-17  Eric Blake  <ebb9@byu.net>
25418
25419         usleep: use it to simplify tests
25420         * modules/stat-time-tests (Depends-on): Add usleep.
25421         (configure.ac): Drop usleep check.
25422         * modules/chown-tests (Depends-on, configure.ac): Likewise.
25423         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
25424         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
25425         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
25426         * modules/openat-tests (Depends-on, configure.ac): Likewise.
25427         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
25428         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
25429         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
25430         Likewise.
25431         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
25432         * tests/test-lchown.h (nap): Likewise.
25433         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
25434         * tests/test-stat-time.c (nap): Likewise.
25435         * tests/test-utimens-common.h (nap): Update comments.
25436
25437         usleep: new module
25438         * modules/usleep: New file.
25439         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
25440         * lib/usleep.c (usleep): Likewise.
25441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25442         * modules/unistd (Makefile.am): Substitute witnesses.
25443         * lib/unistd.in.h (usleep): Add declaration.
25444         * doc/pastposix-functions/usleep.texi (usleep): Document this.
25445         * MODULES.html.sh (Date and time): Likewise.
25446         * modules/usleep-tests (Depends-on): New test.
25447         * tests/test-usleep.c: New file.
25448
25449         chown: work around OpenBSD bug
25450         * lib/chown.c (rpl_chown): Work around the bug.
25451         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
25452         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
25453         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
25454         * modules/chown (Depends-on): Add stdbool.
25455         * modules/lchown (Depends-on): Likewise.
25456         * doc/posix-functions/chown.texi (chown): Document the bug.
25457         * doc/posix-functions/lchown.texi (lchown): Likewise.
25458         * tests/test-lchown.h (test_chown): Relax test.
25459
25460         mkstemp: avoid conflict with C++ keyword template
25461         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
25462         * lib/mkostemp.c (mkostemp): Likewise.
25463         * lib/mkostemps.c (mkostemps): Likewise.
25464         * lib/mkstemp.c (mkstemp): Likewise.
25465         * lib/mkstemps.c (mkstemps): Likewise.
25466
25467         xalloc-die-tests: optimize
25468         * tests/test-xalloc-die.sh: Reduce number of processes.
25469
25470 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25471
25472         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
25473         patch from ludo@gnu.org (Ludovic Courtès).
25474
25475 2009-11-17  Jim Meyering  <meyering@redhat.com>
25476
25477         version-etc: use proper license string
25478         * modules/version-etc (License): Use LGPL, not LGPLv3+.
25479         * modules/version-etc-fsf: Likewise.
25480
25481 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25482
25483         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
25484         printed to stdout.  Deal with EOL differences.
25485
25486 2009-11-17  Eric Blake  <ebb9@byu.net>
25487
25488         unsetenv: work around Solaris bug
25489         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
25490         * lib/unsetenv.c (rpl_unsetenv): Work around it.
25491         Reported by Jim Meyering.
25492
25493         vasnprintf: avoid compiler warnings
25494         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
25495         variables.
25496         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
25497
25498 2009-11-17  Simon Josefsson  <simon@josefsson.org>
25499
25500         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
25501         settings since xalloc-die is no longer the self test,
25502         xalloc-die.sh is.
25503
25504 2009-11-17  Jim Meyering  <meyering@redhat.com>
25505
25506         test-xalloc-die.sh: make the code agree with the commit log
25507         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
25508         at the end, just in case you happen to have a test-xalloc-die
25509         program in some other PATH directory.
25510
25511         test-xalloc-die.sh: fix a portability bug
25512         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
25513         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
25514         Otherwise, argv[0] (as often seen in diagnostics) would be too
25515         system-dependent, sometimes with, and sometimes without the leading "./".
25516
25517         version-etc-fsf: relax license to LGPLv3+
25518         * modules/version-etc-fsf (License): Relax license.
25519
25520 2009-11-16  Eric Blake  <ebb9@byu.net>
25521
25522         xalloc-die-tests: avoid printing null pointer
25523         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
25524         shell script.
25525         * tests/test-xalloc-die.c (program_name): Declare.
25526         * tests/test-xalloc-die.sh (tmpfiles): New file.
25527
25528         setenv, unsetenv: work around various bugs
25529         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
25530         (setenv) [HAVE_SETENV]: Work around bugs.
25531         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
25532         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
25533         for bugs.
25534         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
25535         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
25536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
25537         * modules/stdlib (Makefile.am): Update substitutions.
25538         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
25539         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
25540         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
25541         * modules/setenv-tests: New test.
25542         * modules/unsetenv-tests: Likewise.
25543         * tests/test-setenv.c: New file.
25544         * tests/test-unsetenv.c: Likewise.
25545
25546 2009-11-16  Jim Meyering  <meyering@redhat.com>
25547
25548         version-etc: relax license to LGPLv3+
25549         * modules/version-etc (License): Relax license.
25550
25551         better AC_REQUIRE expanded-before-required-warning avoidance
25552         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
25553         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
25554         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
25555         which is no longer needed.
25556
25557 2009-11-16  Eric Blake  <ebb9@byu.net>
25558
25559         test-freading: clean up temporary file
25560         * tests/test-freading.c (main): Remove file on success, and use
25561         ASSERT more liberally.
25562         Reported by Jim Meyering.
25563
25564 2009-11-16  Jim Meyering  <meyering@redhat.com>
25565
25566         avoid new AC_REQUIRE expanded-before-required warnings
25567         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
25568         merely using it.
25569         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
25570         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
25571
25572 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25573
25574         * tests/test-xalloc-die.c: New file.
25575         * modules/xalloc-die-tests: New file.
25576         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
25577         XFAIL_TESTS so it can be appended by modules.
25578
25579 2009-11-15  Simon Josefsson  <simon@josefsson.org>
25580
25581         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
25582         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
25583
25584 2009-11-14  Eric Blake  <ebb9@byu.net>
25585
25586         fnmatch: avoid compiler warning
25587         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
25588         to silence compiler warning about mismatch signedness in ?:.
25589         Reported by Robert Millan.
25590
25591         intprops: add double-inclusion guard
25592         * lib/intprops.h: Allow idempotent includes.
25593         Suggested by Bruce Korb.
25594
25595         openat: detect Solaris fchownat bug
25596         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
25597         penalizing glibc chownat when only lchownat is broken.
25598         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
25599         trailing slash bugs.
25600         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
25601         * modules/openat-tests (Files): Include more files.
25602         (Depends-on): Add mgetgroups, sleep, stat-time.
25603         (configure.ac): Add additional checks.
25604         (Makefile.am): Build new test.
25605         * tests/test-fchownat.c: New file.
25606
25607         lchown: detect Solaris and FreeBSD bug
25608         * lib/lchown.c (rpl_lchown): Work around bug.
25609         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
25610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25611         * modules/unistd (Makefile.am): Populate it.
25612         * lib/unistd.in.h (lchown): Update declaration.
25613         * doc/posix-functions/lchown.texi (lchown): Document the bug.
25614         * modules/lchown-tests: New file.
25615         * tests/test-lchown.h (test_lchown): Likewise.
25616         * tests/test-lchown.c (main): Likewise.
25617
25618         chown: detect Solaris and FreeBSD bug
25619         * lib/chown.c (rpl_chown): Work around bug.
25620         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
25621         (gl_PREREQ_CHOWN): Delete.
25622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25623         * modules/unistd (Makefile.am): Populate it.
25624         * lib/unistd.in.h (chown): Update declaration.
25625         * lib/lchown.c (chown): Update client.
25626         * modules/lchown (Depends-on): Add lstat.
25627         * doc/posix-functions/chown.texi (chown): Document the bug.
25628         * doc/posix-functions/getgroups.texi (getgroups): Document
25629         getgroups pitfall.
25630         * modules/chown-tests: New file.
25631         * tests/test-chown.h (test_chown): Likewise.
25632         * tests/test-chown.c (main): Likewise.
25633
25634 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
25635
25636         gnulib-tool: correctly detect absence of m4 directories
25637         * gnulib-tool: Avoid extra newline on data passed to wc -l.
25638
25639 2009-11-14  Jim Meyering  <meyering@redhat.com>
25640
25641         maint.mk: Prohibit inclusion of "xalloc.h" without use.
25642         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25643
25644 2009-11-14  John W. Eaton  <jwe@gnu.org>
25645
25646         strftime.h: wrap funtion declaration in extern "C" block
25647         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
25648
25649 2009-11-13  Eric Blake  <ebb9@byu.net>
25650
25651         getgroups: avoid compiler warning
25652         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
25653
25654         getgroups: work around FreeBSD bug
25655         * lib/getgroups.c (rpl_getgroups): Work around the bug.
25656         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
25657         * doc/posix-functions/getgroups.texi (getgroups): Document it.
25658         * tests/test-getgroups.c (main): Fix buffer overrun.
25659
25660         getgroups: avoid compilation failure
25661         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
25662         * modules/getgroups (Depends-on): Add stdint.
25663
25664 2009-11-13  Jim Meyering  <meyering@redhat.com>
25665
25666         test-getgroups: avoid compilation failure
25667         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
25668
25669 2009-11-13  Eric Blake  <ebb9@byu.net>
25670
25671         mgetgroups: new module, taken from coreutils
25672         * modules/mgetgroups: New file.
25673         * lib/mgetgroups.h: Likewise.
25674         * lib/mgetgroups.c (mgetgroups): Likewise.
25675         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
25676         * MODULES.html.sh (Users and groups): Mention it.
25677
25678         getgroups: don't expose GETGROUPS_T to user
25679         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
25680         an element at a time if GETGROUPS_T is wrong size.
25681         * lib/getugroups.h (getugroups): Change signature.
25682         * lib/unistd.in.h (getgroups): Likewise.
25683         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
25684         signature needs fixing.
25685         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
25686         AC_TYPE_GETGROUPS.
25687         * modules/group-member (Depends-on): Add getgroups.
25688         * lib/group-member.c (group_info, get_group_info): Use gid_t.
25689         (group_member): Rely on getgroups replacement.
25690         * lib/getugroups.c (getugroups): Use gid_t.
25691         * tests/test-getgroups.c (main): Likewise.
25692         * NEWS: Mention the signature change.
25693         * doc/posix-functions/getgroups.texi (getgroups): Mention the
25694         problem with signature.
25695         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
25696         GETGROUPS_T is still useful for setgroups.
25697
25698         getgroups, getugroups: provide stubs for mingw
25699         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
25700         * lib/getugroups.c (getugroups): Likewise.
25701         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
25702         function.  Modernize replacement scheme.
25703         (gl_PREREQ_GETGROUPS): Delete.
25704         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
25705         * modules/getgroups (configure.ac): Declare witness.
25706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
25707         * modules/unistd (Depends-on): Substitute witness.
25708         * lib/unistd.in.h (getgroups): Declare replacement.
25709
25710         getgroups: avoid calling exit
25711         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
25712         drop xalloc.
25713         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
25714         dependencies.
25715         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
25716         exiting, in the rare case of malloc failure.
25717
25718         getgroups: fix logic error
25719         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
25720         has more than 20 groups.
25721         * modules/getgroups-tests: New test.
25722         * tests/test-getgroups.c: New file.
25723
25724 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25725
25726         * tests/test-base64.c: Improve.
25727
25728 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25729
25730         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
25731         Blake <ebb9@byu.net>.
25732
25733 2009-11-13  Simon Josefsson  <simon@josefsson.org>
25734
25735         * tests/test-xvasprintf.c: Add %s%s related checks.
25736
25737 2009-11-12  Eric Blake  <ebb9@byu.net>
25738
25739         version-etc: match standards.texi style
25740         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
25741         and use <> only for URLs.
25742
25743 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
25744
25745         fts: do not fail on a submount during traversal
25746         * lib/fts.c (fts_build): Read the stat info again after opening
25747         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
25748         Original report at http://bugzilla.redhat.com/501848.
25749
25750 2009-11-12  Jim Meyering  <meyering@redhat.com>
25751
25752         bootstrap: sync from coreutils
25753         * build-aux/bootstrap (bootstrap_epilogue): New function.
25754         Use git_modules_config in one more place.  This make bootstrap's
25755         --gnulib-srcdir option more useful for testing.
25756
25757         bootstrap: generalize autoheader check
25758         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
25759         AC_CONFIG_HEADERS.
25760
25761 2009-11-11  Eric Blake  <ebb9@byu.net>
25762
25763         mkfifoat: use new modules for Solaris and BSD bugs
25764         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
25765         * lib/mkfifoat.c (mknodat): Split...
25766         * lib/mknodat.c (mknodat): ...into new file.
25767         * modules/mkfifoat (Files): Ship new file.
25768         (Depends-on): Add mkfifo, mknod.
25769         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
25770         (Depends-on): Add symlink.
25771         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
25772         redundant with test_mkfifo.h.
25773         (do_mkfifoat, do_mknodat): New helpers.
25774
25775         mknod: new module
25776         * modules/mknod: New file.
25777         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
25778         * lib/mknod.c (mknod): Likewise.
25779         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25780         defaults.
25781         * modules/sys_stat (Makefile.am): Substitute them.
25782         * lib/sys_stat.in.h (mknod): Declare replacement.
25783         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25784         Document it.
25785         * doc/posix-functions/mknod.texi (mknod): Likewise.
25786         * modules/mknod-tests: New test.
25787         * tests/test-mknod.c: Likewise.
25788
25789         mkfifo: new module
25790         * modules/mkfifo: New file.
25791         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25792         * lib/mkfifo.c (mkfifo): Likewise.
25793         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
25794         defaults.
25795         * modules/sys_stat (Makefile.am): Substitute them.
25796         * lib/sys_stat.in.h (mkfifo): Declare replacement.
25797         * MODULES.html.sh (Support for systems lacking POSIX:2008):
25798         Document it.
25799         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
25800         * modules/mkfifo-tests: New test.
25801         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
25802         from test-mkfifoat.c.
25803         * tests/test-mkfifo.c: New file.
25804
25805         readlink: detect FreeBSD bug
25806         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
25807         slash on symlink.
25808         * doc/posix-functions/readlink.texi (readlink): Document the bug.
25809         * tests/test-readlink.h (test_readlink): Enhance test.
25810
25811         symlink: detect FreeBSD bug
25812         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
25813         slash on symlink.
25814         * doc/posix-functions/symlink.texi (symlink): Document the bug.
25815         * tests/test-symlink.h (test_symlink): Enhance test.
25816
25817 2009-11-10  Eric Blake  <ebb9@byu.net>
25818
25819         link: detect FreeBSD bug
25820         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
25821         symlink.
25822         * doc/posix-functions/link.texi (link): Document the bug.
25823         * tests/test-link.h (test_link): Enhance test.
25824         * tests/test-linkat.c (main): Update caller.
25825
25826         unlink, remove: detect FreeBSD bug
25827         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
25828         slash on symlink.
25829         * doc/posix-functions/unlink.texi (unlink): Document the bug.
25830         * doc/posix-functions/remove.texi (remove): Likewise.
25831         * tests/test-unlink.h (test_unlink): Enhance test.
25832         * tests/test-remove.c (main): Likewise.
25833
25834 2009-11-09  Eric Blake  <ebb9@byu.net>
25835
25836         rename: detect FreeBSD bug
25837         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
25838         slash on symlink.
25839         * modules/renameat-tests (Depends-on): Add filenamecat.
25840         * tests/test-rename.h (test_rename): Allow one more errno.
25841         * tests/test-renameat.c (main): Likewise.
25842         * doc/posix-functions/rename.texi (rename): Document the bug.
25843
25844         open: detect FreeBSD bug
25845         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
25846         symlink.
25847         * doc/posix-functions/open.texi (open): Document the bug.
25848         * doc/posix-functions/utimes.texi (utimes): Likewise.
25849         * tests/test-open.h (test_open): Add parameters, and test symlink
25850         handling.
25851         * tests/test-open.c (main): Adjust caller.
25852         * tests/test-fcntl-safer.c (main): Likewise.
25853         * modules/open-tests (Depends-on): Add stdbool, symlink.
25854         * modules/fcntl-safer-tests (Depends-on): Likewise.
25855         * tests/test-openat.c (main): Add test-open tests.
25856
25857         stat: detect FreeBSD bug
25858         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
25859         symlink.
25860         * doc/posix-functions/stat.texi (stat): Document the bug.
25861         * tests/test-stat.h (test_stat_func): Add argument.
25862         * tests/test-stat.c (main): Adjust caller.
25863         * tests/test-fstatat.c (main): Likewise.
25864         * modules/stat-tests (Depends-on): Add stdbool, symlink.
25865         Reported by Jim Meyering.
25866
25867 2009-11-09  James Youngman  <jay@gnu.org>
25868
25869         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
25870         * lib/strftime.c: Correct placement of #include "ignore-value.h".
25871
25872 2009-11-08  Jim Meyering  <meyering@redhat.com>
25873
25874         utimens: remove invalid futimesat call
25875         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
25876         It used the file descriptor of the target file as the DIR_FD
25877         parameter and NULL as the file name.  That caused failure with
25878         errno == EFAULT on FreeBSD-8.0-rc2
25879
25880 2009-11-07  Eric Blake  <ebb9@byu.net>
25881
25882         fflush, freadseek: use fseeko, not fseek
25883         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
25884         (clear_ungetc_buffer): Avoid potential problems on large files.
25885         * lib/freadseek.c (freadseek): Likewise.
25886         * modules/freadseek (Depends-on): Add fseeko.
25887         * modules/fseek (configure.ac): Set a witness.
25888         * tests/test-fflush.c (main): Use fseeko.
25889         * tests/test-fpurge.c (fseek): Disable link warning.
25890         * tests/test-freadable.c (fseek): Likewise.
25891         * tests/test-freading.c (fseek): Likewise.
25892         * tests/test-fseeko.c (fseek): Likewise.
25893         * tests/test-ftell.c (fseek): Likewise.
25894         * tests/test-ftello.c (fseek): Likewise.
25895         * tests/test-fwritable.c (fseek): Likewise.
25896         * tests/test-fwriting.c (fseek): Likewise.
25897
25898 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25899
25900         * modules/memchr (Depends-on): Drop getpagesize dependency.
25901
25902 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25903
25904         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
25905         Reported by Ludovic Courtès.
25906         * build-aux/pmccabe2html: Improve example usage.
25907         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
25908
25909 2009-11-06  Jim Meyering  <meyering@redhat.com>
25910
25911         do-release-commit-and-tag: New module.
25912         Automate the release-commit and tag process.
25913         * build-aux/do-release-commit-and-tag: New script, from coreutils.
25914         * modules/do-release-commit-and-tag: New file.
25915         * MODULES.html.sh (Support for maintaining and releasing): Add it.
25916
25917 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25918
25919         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
25920         because test-select.c uses inet_pton.
25921
25922 2009-11-06  Simon Josefsson  <simon@josefsson.org>
25923
25924         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
25925         GETADDRINFO_LIB.  Bump serial number.
25926         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
25927         Suggested by Eric Blake <ebb9@byu.net>.
25928
25929 2009-11-05  Eric Blake  <ebb9@byu.net>
25930
25931         strtod: detect darwin bug
25932         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
25933         Reported by Leo Davis.
25934
25935         freopen-safer: new module
25936         * modules/freopen-safer: New module.
25937         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
25938         * lib/freopen-safer.c (freopen_safer): New file.
25939         * lib/stdio-safer.h (freopen_safer): New declaration.
25940         * lib/stdio--.h (freopen): New override.
25941         * MODULES.html.sh (File stream based Input/Output): Mention it.
25942         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
25943         freopen-safer module.
25944         * doc/posix-functions/stderr.texi (stderr): Likewise.
25945         * doc/posix-functions/stdin.texi (stdin): Likewise.
25946         * doc/posix-functions/stdout.texi (stdout): Likewise.
25947         * modules/freopen-safer-tests: New test.
25948         * tests/test-reopen-safer.c: New file.
25949
25950 2009-11-05  Jim Meyering  <meyering@redhat.com>
25951
25952         maint.mk: Prohibit inclusion of "close-stream.h" without use.
25953         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
25954
25955 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25956
25957         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
25958
25959 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25960
25961         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
25962
25963 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25964
25965         Fix link error.
25966         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25967         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25968
25969 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25970
25971         * tests/test-func.c: Also test value of __func__.
25972
25973 2009-11-05  Simon Josefsson  <simon@josefsson.org>
25974
25975         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
25976         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
25977
25978 2009-11-05  Bruno Haible  <bruno@clisp.org>
25979
25980         Fix link error.
25981         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
25982         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25983         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
25984
25985 2009-11-05  Bruno Haible  <bruno@clisp.org>
25986
25987         Tests for module 'inet_pton'.
25988         * modules/inet_pton-tests: New file.
25989         * tests/test-inet_pton.c: New file.
25990
25991 2009-11-05  Bruno Haible  <bruno@clisp.org>
25992
25993         Tests for module 'inet_ntop'.
25994         * modules/inet_ntop-tests: New file.
25995         * tests/test-inet_ntop.c: New file.
25996
25997 2009-11-04  Eric Blake  <ebb9@byu.net>
25998
25999         stdlib-safer: wrap all mkstemp variants
26000         * modules/mkostemp (configure.ac): Set witness.
26001         * modules/mkostemps (configure.ac): Likewise.
26002         * modules/mkstemps (configure.ac): Likewise.
26003         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
26004         (mkstemps_safer): Wrap more functions.
26005         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
26006         wrapping.
26007         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
26008         (mkstemps_safer): Implement the wrappers.
26009
26010         mkstemps, mkostemps: new modules
26011         * modules/mkostemps: New module.
26012         * modules/mkstemps: Likewise.
26013         * lib/mkostemps.c (mkostemps): New file.
26014         * lib/mkstemps.c (mkstemps): Likewise.
26015         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
26016         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
26017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
26018         * modules/stdlib (Makefile.am): Substitute them.
26019         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
26020         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
26021         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26022         * doc/gnulib.texi (Glibc stdlib.h): Include them.
26023         * MODULES.html.sh (File system functions): Mention them.
26024
26025         tempname: resync from glibc
26026         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
26027         same values for __GT_FILE as glibc.  Abort even when assertions
26028         are disabled.
26029         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
26030         match its value otherwise.  Allow idempotent inclusion.
26031         * lib/mkdtemp.c (mkdtemp): Adjust caller.
26032         * lib/mkostemp.c (mkostemp): Likewise.
26033         * lib/mkstemp.c (mkstemp): Likewise.
26034         * lib/tmpfile.c (tmpfile): Likewise.
26035         * NEWS: Document this.
26036
26037         utimens: fix use of futimens on older Linux
26038         * lib/utimens.c (fdutimens): Use updated, rather than original,
26039         timespec to avoid bug in older Linux kernel.
26040         Reported by Simon Josefsson.
26041
26042 2009-11-04  Bruno Haible  <bruno@clisp.org>
26043
26044         Make num_processors more flexible and consistent.
26045         * lib/nproc.h (enum nproc_query): New type.
26046         (num_processors): Add a 'query' argument.
26047         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
26048         (num_processors): Add a 'query' argument. Test the value of the
26049         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
26050         mingw, count the number of CPUs available for the current process.
26051         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
26052         Check for sched_getaffinity and sched_getaffinity_np.
26053         * modules/nproc (Depends-on): Add c-ctype, extensions.
26054         * NEWS: Mention the change.
26055
26056 2009-11-03  Bruno Haible  <bruno@clisp.org>
26057
26058         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
26059
26060 2009-11-03  Jim Meyering  <meyering@redhat.com>
26061
26062         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
26063         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
26064         if it is defined.
26065
26066 2009-11-02  Eric Blake  <ebb9@byu.net>
26067
26068         mktime, timegm: share common declaration
26069         * lib/mktime-internal.h: New file.
26070         * lib/mktime.c: Use it rather than open-coding a declaration.
26071         * lib/timegm.c: Likewise.
26072         * modules/mktime (Files): Ship it.
26073         * modules/timegm (Files): Likewise.
26074         Suggested by Bruno Haible.
26075
26076         test-update-copyright: update test to match script changes
26077         * tests/test-update-copyright.sh: Avoid hard-coding perl
26078         location.  Don't update *.bak created by earlier runs.
26079
26080 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
26081             Simon Josefsson  <simon@josefsson.org>
26082             Bruno Haible  <bruno@clisp.org>
26083
26084         Fix link error on Solaris 8.
26085         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
26086         also in libnsl. Define also INET_PTON_LIB.
26087         * modules/inet_pton (Link): New section.
26088
26089 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26090             Bruno Haible  <bruno@clisp.org>
26091
26092         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
26093         * modules/inet_ntop (Link): New section.
26094         Reported by Boyan Kasarov <bkasarov@gmail.com>.
26095
26096 2009-11-02  Eric Blake  <ebb9@byu.net>
26097
26098         maint: avoid compiler warnings in m4 macros
26099         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
26100         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
26101
26102 2009-11-02  Simon Josefsson  <simon@josefsson.org>
26103
26104         * m4/pmccabe2html.m4: Remove file.
26105         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
26106         function.  Change maintainer.
26107         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
26108         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
26109         Courtès).
26110
26111 2009-10-31  Eric Blake  <ebb9@byu.net>
26112
26113         fseeko: fix m4 regression
26114         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
26115         regression from 2009-10-27.
26116         Reported by Ralf Wildenhues.
26117
26118 2009-10-31  Jim Meyering  <meyering@redhat.com>
26119
26120         inttostr: aesthetics and improved (compile-time) safety
26121         Define inttype_is_signed rather than inttype_is_unsigned,
26122         since the sole use is via "#if inttype_is_signed".
26123         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
26124         inttype_is_unsigned.
26125         * lib/offtostr.c (inttype_is_signed): Likewise.
26126         * lib/uinttostr.c (inttype_is_signed): Likewise.
26127         * lib/umaxtostr.c (inttype_is_signed): Likewise.
26128         * lib/inttostr.c (inttostr): Use verify to cross-check the
26129         inttype_is_signed value and the signedness of the actual type.
26130         * modules/inttostr (Depends-on): Add verify.
26131
26132 2009-10-30  Eric Blake  <ebb9@byu.net>
26133
26134         build: avoid compiler warnings
26135         * lib/fchmodat.c (lchmod): Mark unused variables.
26136         * lib/getopt.c (_getopt_initialize): Likewise.
26137         * lib/mktime.c (__mktime_internal): Provide prototype.
26138         * lib/inttostr.c (inttostr): Avoid compiler warning even with
26139         older gcc that do not understand #pragma GCC diagnostic.
26140         * lib/uinttostr.c (inttype_is_unsigned): Define.
26141         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
26142
26143 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
26144
26145         stat: fix compilation on AIX
26146         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
26147         only see struct stat64.
26148
26149 2009-10-30  Eric Blake  <ebb9@byu.net>
26150
26151         exclude: make more robust
26152         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
26153         rather than masking a coding bug.
26154         Suggested by Bruno Haible.
26155
26156 2009-10-30  Jim Meyering  <meyering@redhat.com>
26157
26158         perl scripts: remove #!/usr/bin/perl in favor of more portable...
26159         Rather than putting #!/usr/bin/perl on the first line,
26160         start with a variant of what's recommended by "man perlrun" that
26161         invokes the first "perl" program from your shell's search path.
26162         * build-aux/gitlog-to-changelog: Replace #!... as above.
26163         Add a "Local Variables" perl mode setting.
26164         Prompted by a patch from Ludovic Courtès.
26165         Improved by Eric Blake.
26166         * build-aux/useless-if-before-free: Likewise.
26167         * build-aux/announce-gen: Likewise.
26168         * build-aux/update-copyright: Likewise.
26169
26170 2009-10-29  Eric Blake  <ebb9@byu.net>
26171
26172         filenamecat-lgpl: adjust clients
26173         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
26174         filenamecat.
26175         * modules/renameat (Depends-on): Likewise.
26176
26177         filenamecat: split into filenamecat-lgpl
26178         * modules/filenamecat-lgpl: New module.
26179         * modules/filenamecat (Files): Move library-safe files into
26180         filenamecat-lgpl.
26181         (Depends-on): Add filenamecat-lgpl.
26182         (configure.ac): Declare witness.
26183         * lib/filenamecat.h (file_name_concat): Only declare when using
26184         GPL module.
26185         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
26186         Move...
26187         * lib/filenamecat-lgpl.c: ...into new file.
26188         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
26189         (gl_FILE_NAME_CONCAT): Use it.
26190         * MODULES.html.sh (File system functions): Mention new module.
26191
26192         argp: avoid memory leak
26193         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
26194         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
26195         base_name, since the latter malloc()s and can call exit().
26196         Leak introduced 2006-07-03.
26197
26198         dirname-lgpl: adjust clients that don't need full dirname
26199         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
26200         * modules/filenamecat (Depends-on): Likewise.
26201         * modules/linkat (Depends-on): Likewise.
26202         * modules/mkancesdirs (Depends-on): Likewise.
26203         * modules/mkdir (Depends-on): Likewise.
26204         * modules/openat (Depends-on): Likewise.
26205         * modules/savewd (Depends-on): Likewise.
26206         * modules/rename (Depends-on): Likewise.
26207         (License): Relax license.
26208         * modules/mkdir-tests (Depends-on): Drop progname.
26209         (Makefile.am): Delete unneeded LDADD.
26210         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
26211
26212         dirname: split into dirname-lgpl
26213         * modules/dirname-lgpl: New module.
26214         * modules/dirname (Files): Move library-safe files into
26215         dirname-lgpl.
26216         (Depends-on): Add dirname-lgpl.
26217         (configure.ac): Declare witness.
26218         * modules/double-slash-root (License): Relax license.
26219         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
26220         module.
26221         * lib/dirname.c (dir_len, mdir_name): Move...
26222         * lib/dirname-lgpl.c: ...into new file.
26223         * lib/basename.c (last_component, base_len): Move...
26224         * lib/basename-lgpl.c: ...into new file.
26225         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
26226         (gl_DIRNAME): Use it.
26227         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
26228         Mention new module.
26229         * modules/dirname-tests (Depends-on): Add progname.
26230         * tests/test-dirname.c (program_name): Delete.
26231
26232         mkdir: make safe for libraries
26233         * modules/mkdir (Depends-on): Drop xalloc.
26234         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
26235         exit.
26236
26237         tests: avoid some compiler warnings
26238         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
26239         literals.
26240         * tests/test-memchr.c (main): Avoid type mismatch.
26241         * tests/test-arpa_inet.c (main): Avoid unused parameters.
26242         * tests/test-base64.c (main): Likewise.
26243         * tests/test-getdelim.c (main): Likewise.
26244         * tests/test-gethostname.c (main): Likewise.
26245         * tests/test-getline.c (main): Likewise.
26246         * tests/test-netinet_in.c (main): Likewise.
26247         * tests/test-select.c (open_server_socket, main): Likewise.
26248         * tests/test-select-stdin.c (main): Likewise.
26249         * tests/test-sockets.c (main): Likewise.
26250         * tests/test-strsignal.c (main): Likewise.
26251         * tests/test-sys_select.c (main): Likewise.
26252         * tests/test-sys_socket.c (main): Likewise.
26253         * tests/test-u64.c (main): Likewise.
26254         * tests/test-xfprintf-posix.c (main): Likewise.
26255         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
26256
26257         sockets: avoid compiler warning
26258         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
26259
26260         maint: detect usage(1) and other suspicious exits
26261         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
26262
26263 2009-10-29  Jim Meyering  <meyering@redhat.com>
26264
26265         timespec: long-to-int truncation could make timespec_cmp malfunction
26266         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
26267         a multiple of 2^32 nanoseconds as no difference.
26268
26269 2009-10-28  Jim Meyering  <meyering@redhat.com>
26270
26271         fprintftime: wrap macro code argument in "do {...} while(0)"
26272         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
26273         cpy macro must be a statement that can be followed by a semicolon.
26274         Now that the else clause contains a comment and is hence longer
26275         than one line, I require curly braces.  That in turn requires
26276         that we wrap this code block in the standard do...while(0).
26277
26278         fprintftime: remove stray semicolon from previous change
26279         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
26280
26281         fprintftime: avoid a warning about ignored fwrite return value
26282         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
26283         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
26284         that is unsafe.
26285         * modules/fprintftime (Depends-on): Add ignore-value.
26286
26287         exclude: avoid an unwarranted warning
26288         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
26289
26290 2009-10-27  Eric Blake  <ebb9@byu.net>
26291
26292         fseek: avoid compilation failure when fflush is replaced
26293         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
26294         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
26295         module is in use.
26296         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
26297         module is not in use; since REPLACE_FSEEK worked otherwise.
26298         (GNULIB_FTELLO): Likewise for ftell.
26299         Reported by Ian Beckwith and others.
26300
26301 2009-10-27  Bruno Haible  <bruno@clisp.org>
26302
26303         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
26304         Reported by Jim Meyering.
26305
26306 2009-10-27  Jim Meyering  <jim@meyering.net>
26307             Bruno Haible  <bruno@clisp.org>
26308
26309         Avoid warning despite dropping the return value of fwrite.
26310         * lib/unicodeio.c: Include ignore-value.h.
26311         (fwrite_success_callback): Explicitly ignore fwrite's return value.
26312         * modules/unicodeio (Depends-on): Add ignore-value.
26313
26314 2009-10-26  Eric Blake  <ebb9@byu.net>
26315
26316         areadlinkat: fix fallback path
26317         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
26318         pointer and zero.
26319
26320 2009-10-22  Pádraig Brady  <P@draigBrady.com>
26321
26322         Use a better IO block size for modern systems
26323         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
26324         * lib/md2.c: Likewise.
26325         * lib/md4.c: Likewise.
26326         * lib/md5.c: Likewise.
26327         * lib/sha1.c: Likewise.
26328         * lib/sha256.c: Likewise.
26329         * lib/sha512.c: Likewise.
26330
26331 2009-10-22  Eric Blake  <ebb9@byu.net>
26332
26333         tests: avoid several compiler warnings
26334         * tests/test-getcwd.c (main): Avoid buffer underflow.
26335         * tests/test-getdate.c (main): String literals are not safe with
26336         putenv, so use setenv.  Declare unused argument.
26337         * modules/getdate-tests (Depends-on): Add setenv.
26338         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
26339         problems with string literals in char *.
26340         * tests/test-hash.c (main): Avoid shadowing declaration.
26341         (insert_new): Treat string literals as char const *.
26342         * tests/test-getopt.h (test_getopt): Likewise.
26343         (getopt_loop): Alter types to minimize casting elsewhere.
26344         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
26345         (test_getopt_long_posix): Likewise.
26346         (do_getopt_long): Add wrapper to minimize casting.
26347         * tests/test-atexit.c (clear_temp_file): Use void.
26348         * tests/test-areadlink-with-size.c (main): Declare unused
26349         arguments.
26350         * tests/test-areadlink.c (main): Likewise.
26351         * tests/test-areadlinkat-with-size.c (main): Likewise.
26352         * tests/test-areadlinkat.c (main): Likewise.
26353         * tests/test-canonicalize-lgpl.c (main): Likewise.
26354         * tests/test-canonicalize.c (main): Likewise.
26355         * tests/test-dirent-safer.c (main): Likewise.
26356         * tests/test-dirname.c (main): Likewise.
26357         * tests/test-dup2.c (main): Likewise.
26358         * tests/test-fchdir.c (main): Likewise.
26359         * tests/test-fcntl-h.c (main): Likewise.
26360         * tests/test-fcntl-safer.c (main): Likewise.
26361         * tests/test-fdopendir.c (main): Likewise.
26362         * tests/test-fdutimensat.c (main): Likewise.
26363         * tests/test-fflush.c (main): Likewise.
26364         * tests/test-filenamecat.c (main): Likewise.
26365         * tests/test-filevercmp.c (main): Likewise.
26366         * tests/test-fopen-safer.c (main): Likewise.
26367         * tests/test-fopen.c (main): Likewise.
26368         * tests/test-fpending.c (main): Likewise.
26369         * tests/test-fpurge.c (main): Likewise.
26370         * tests/test-freading.c (main): Likewise.
26371         * tests/test-fstatat.c (main): Likewise.
26372         * tests/test-fsync.c (main): Likewise.
26373         * tests/test-futimens.c (main): Likewise.
26374         * tests/test-getndelim2.c (main): Likewise.
26375         * tests/test-gettimeofday.c (main): Likewise.
26376         * tests/test-getopt.c (main): Likewise.
26377         * tests/test-i-ring.c (main): Likewise.
26378         * tests/test-inttypes.c (main): Likewise.
26379         * tests/test-link.c (main): Likewise.
26380         * tests/test-lstat.c (main): Likewise.
26381         * tests/test-math.c (main): Likewise.
26382         * tests/test-md5.c (main): Likewise.
26383         * tests/test-memchr2.c (main): Likewise.
26384         * tests/test-memrchr.c (main): Likewise.
26385         * tests/test-mkdir.c (main): Likewise.
26386         * tests/test-mkdirat.c (main): Likewise.
26387         * tests/test-mkfifoat.c (main): Likewise.
26388         * tests/test-open.c (main): Likewise.
26389         * tests/test-openat-safer.c (main): Likewise.
26390         * tests/test-openat.c (main): Likewise.
26391         * tests/test-quotearg.c (main): Likewise.
26392         * tests/test-rawmemchr.c (main): Likewise.
26393         * tests/test-readlink.c (main): Likewise.
26394         * tests/test-remove.c (main): Likewise.
26395         * tests/test-rename.c (main): Likewise.
26396         * tests/test-renameat.c (main): Likewise.
26397         * tests/test-rmdir.c (main): Likewise.
26398         * tests/test-sha1.c (main): Likewise.
26399         * tests/test-signal.c (main): Likewise.
26400         * tests/test-sigaction.c (main): Likewise.
26401         * tests/test-stat.c (main): Likewise.
26402         * tests/test-stat-time.c (main): Likewise.
26403         * tests/test-stddef.c (main): Likewise.
26404         * tests/test-stdint.c (main): Likewise.
26405         * tests/test-stdio.c (main): Likewise.
26406         * tests/test-stdlib.c (main): Likewise.
26407         * tests/test-strchrnul.c (main): Likewise.
26408         * tests/test-strerror.c (main): Likewise.
26409         * tests/test-string.c (main): Likewise.
26410         * tests/test-strtod.c (main): Likewise.
26411         * tests/test-strverscmp.c (main): Likewise.
26412         * tests/test-symlink.c (main): Likewise.
26413         * tests/test-symlinkat.c (main): Likewise.
26414         * tests/test-sys_stat.c (main): Likewise.
26415         * tests/test-sys_time.c (main): Likewise.
26416         * tests/test-time.c (main): Likewise.
26417         * tests/test-unistd.c (main): Likewise.
26418         * tests/test-unlink.c (main): Likewise.
26419         * tests/test-unlinkat.c (main): Likewise.
26420         * tests/test-utimens.c (main): Likewise.
26421         * tests/test-utimensat.c (main): Likewise.
26422         * tests/test-version-etc.c (main): Likewise.
26423         * tests/test-wchar.c (main): Likewise.
26424         * tests/test-wctype.c (main): Likewise.
26425         * tests/test-xprintf-posix.c (main): Likewise.
26426         * tests/test-posixtm.c (main): Likewise.
26427         (STREQ): Delete unused macro.
26428         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
26429         shadowed variables.
26430         * tests/test-memchr.c (main): Likewise.
26431
26432 2009-10-21  Eric Blake  <ebb9@byu.net>
26433
26434         areadlinkat: avoid failure on older glibc
26435         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
26436         rather than mis-comparing 0 against FUNC_RESULT of char*.
26437
26438 2009-10-21  Bruno Haible  <bruno@clisp.org>
26439
26440         * modules/stpncpy (License): Relicense under LGPLv2+.
26441         Reported by David Lutterkort <lutter@redhat.com>.
26442
26443 2009-10-20  Eric Blake  <ebb9@byu.net>
26444
26445         utimensat: work around Solaris 9 bug
26446         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
26447         has trailing slash bugs.
26448         * tests/test-lutimens.h (test_lutimens): Enhance test.
26449         * tests/test-utimens.h (test_utimens): Likewise.
26450         * doc/posix-functions/utime.texi (utime): Enhance documentation.
26451         * doc/posix-functions/utimes.texi (utimes): Likewise.
26452         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26453         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
26454         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
26455         * doc/posix-functions/futimens.texi (futimens): Likewise.
26456
26457         fdutimensat: new module
26458         * modules/fdutimensat: New file.
26459         * lib/fdutimensat.c (fdutimensat): Likewise.
26460         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
26461         * MODULES.html.sh (File system functions): Mention module.
26462         * modules/fdutimensat-tests: New test.
26463         * tests/test-fdutimensat.c: Likewise.
26464
26465         doc: regenerate INSTALL
26466         * doc/INSTALL: Reflect recent autoconf update.
26467         * doc/INSTALL.ISO: Likewise.
26468         * doc/INSTALL.UTF-8: Likewise.
26469
26470 2009-10-20  Pádraig Brady  <P@draigBrady.com>
26471
26472         acl: warn if ACL support is not detected
26473         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
26474
26475 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
26476
26477         * lib/nproc.h: Add extern "C" block for C++.
26478
26479 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
26480             Bruno Haible  <bruno@clisp.org>
26481
26482         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
26483         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
26484         * doc/posix-functions/isalpha.texi: Likewise.
26485         * doc/posix-functions/isblank.texi: Likewise.
26486         * doc/posix-functions/iscntrl.texi: Likewise.
26487         * doc/posix-functions/isdigit.texi: Likewise.
26488         * doc/posix-functions/isgraph.texi: Likewise.
26489         * doc/posix-functions/islower.texi: Likewise.
26490         * doc/posix-functions/isprint.texi: Likewise.
26491         * doc/posix-functions/ispunct.texi: Likewise.
26492         * doc/posix-functions/isspace.texi: Likewise.
26493         * doc/posix-functions/isupper.texi: Likewise.
26494         * doc/posix-functions/isxdigit.texi: Likewise.
26495
26496 2009-10-18  Bruno Haible  <bruno@clisp.org>
26497
26498         Tests for module 'isblank'.
26499         * modules/isblank-tests: New file.
26500         * tests/test-isblank.c: New file.
26501
26502         New module 'isblank'.
26503         * lib/isblank.c: New file.
26504         * m4/isblank.m4: New file.
26505         * modules/isblank: New file.
26506         * doc/posix-functions/isblank.texi: Mention the new module.
26507
26508 2009-10-18  Bruno Haible  <bruno@clisp.org>
26509
26510         New module 'ctype'.
26511         * lib/ctype.in.h: New file.
26512         * m4/ctype.m4: New file.
26513         * modules/ctype: New file.
26514         * doc/posix-headers/ctype.texi: Mention the new module.
26515
26516 2009-10-18  Jim Meyering  <meyering@redhat.com>
26517
26518         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
26519         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
26520         right after its initialization, rather than farther down.
26521         Keeping these in close proximity makes it easier to ensure
26522         that each such variable is initialized.  E.g.,
26523
26524             LIB_CLOCK_GETTIME=
26525             AC_SUBST([LIB_CLOCK_GETTIME])
26526
26527         This change also increments these serial numbers.
26528         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
26529         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26531
26532 2009-10-18  Bruno Haible  <bruno@clisp.org>
26533
26534         Don't let environment variables perturb build.
26535         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
26536         (gl_PREREQ_GETHRXTIME): ... not here.
26537
26538 2009-10-18  Bruno Haible  <bruno@clisp.org>
26539
26540         Avoid symlink attack in localcharset module.
26541         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
26542         (O_NOFOLLOW): Define fallback.
26543         (get_charset_aliases): Don't open the file if it is a symbolic link.
26544         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
26545         gl_FCNTL_H.
26546         (gl_FCNTL_H): Require it.
26547         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
26548         * modules/localcharset (Files): Add m4/fcntl_h.m4.
26549         Reported by Fergal Glynn <fglynn@veracode.com>.
26550
26551 2009-10-18  Bruno Haible  <bruno@clisp.org>
26552
26553         Implement nproc for mingw.
26554         * lib/nproc.c: Include <windows.h>
26555         (num_processors): On native Windows platforms, try GetSystemInfo.
26556
26557 2009-10-18  Bruno Haible  <bruno@clisp.org>
26558
26559         Implement nproc for IRIX.
26560         * lib/nproc.c: Include <sys/sysmp.h>.
26561         (num_processors): On IRIX systems, try sysmp.
26562         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
26563
26564 2009-10-18  Bruno Haible  <bruno@clisp.org>
26565
26566         Implement nproc for HP-UX.
26567         * lib/nproc.c: Include <sys/pstat.h>
26568         (num_processors): On HP-UX systems, try pstat_getdynamic.
26569         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
26570         pstat_getdynamic.
26571
26572 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
26573             Bruno Haible  <bruno@clisp.org>
26574
26575         Implement nproc for NetBSD, OpenBSD.
26576         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
26577         (ARRAY_SIZE): New macro.
26578         (num_processors): On BSD systems, try sysctl of HW_NCPU.
26579         * m4/nproc.m4: New file.
26580         * modules/nproc (Files): Add m4/nproc.m4.
26581         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
26582         (Makefile.am): Instead, augment lib_SOURCES.
26583
26584 2009-10-18  Bruno Haible  <bruno@clisp.org>
26585
26586         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
26587         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
26588         sys/param.h.
26589
26590 2009-10-16  Eric Blake  <ebb9@byu.net>
26591
26592         utimensat: new module
26593         * modules/utimensat: New file.
26594         * lib/utimensat.c (utimensat): Likewise.
26595         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26596         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
26597         so we can work around Linux bugs.
26598         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26599         * modules/sys_stat (Makefile.am): Substitute them.
26600         * lib/sys_stat.in.h (utimensat): Declare it.
26601         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26602         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26603         * modules/utimensat-tests: New test.
26604         * tests/test-utimensat.c: Likewise.
26605
26606         utimens: let lutimens work on non-symlinks
26607         * lib/utimens.c (lutimens): Fall back to utimens rather than
26608         failing with ENOSYS, when file is not a symlink.
26609         (utimens): Reduce redirection.
26610         * tests/test-lutimens.h (test_lutimens): Update test to cover
26611         non-symlinks.
26612         * tests/test-utimens.h (test_utimens): Update test to cover
26613         symlinks.
26614         * tests/test-utimens.c (main): Update caller.
26615
26616         utimens: cache whether utimensat syscall works
26617         * lib/utimens.c (utimensat_works_really): New cache variable.
26618         (fdutimens, lutimens): Use it to avoid failing syscall.
26619
26620         test-stat-time, test-utimens: improve portability
26621         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
26622         ext4 on alpha, and for cygwin.
26623         * tests/test-utimens-common.h: New file.
26624         (nap): Factor delays into single function.
26625         * tests/test-lutimens.h (test_lutimens): Use new header.
26626         * tests/test-futimens.h (test_futimens): Likewise.
26627         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
26628         timestamps to occur from same machine, as was done previously for
26629         test_utimens.
26630         * modules/utimens-tests (Files): Ship new file.
26631         * modules/futimens-tests (Files): Likewise.
26632         Reported in part by Jim Meyering.
26633
26634         sys_stat: sort replacement declarations
26635         * lib/sys_stat.in.h: Sort declarations.
26636         * lib/futimens.c (futimens): Fix typo.
26637
26638 2009-10-15  Jim Meyering  <meyering@redhat.com>
26639
26640         don't let environment settings perturb build
26641         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
26642         could cause a configure-time and/or build-time malfunction.
26643         Typically, a configure-time function-in-library test is performed
26644         via code like this:
26645
26646           LIB_VAR=
26647           AC_SUBST([LIB_VAR])
26648           prefix_saved_LIBS=$LIBS
26649             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
26650                        [test "$ac_cv_search_FUNC" = "none required" ||
26651                         LIB_VAR=$ac_cv_search_FUNC])
26652           LIBS=$prefix_saved_LIBS
26653
26654         However, in each of the files affected by this change, the LIB_VAR=
26655         initialization was omitted.  Thus, when set in the environment, its
26656         value would propagate into generated Makefiles when FUNC is not found
26657         in LIB_NAME.
26658         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
26659         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
26660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26661
26662 2009-10-14  Eric Blake  <ebb9@byu.net>
26663
26664         fchdir: avoid infinite recursion in mingw
26665         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
26666         recursing.
26667
26668         test-stat-time: port to mingw
26669         * tests/test-stat-time.c (force_unlink): Return a value.
26670         (test_ctime) [W32]: Fix compilation error.
26671         (nap): Don't call usleep with too large an argument.  Use
26672         force_unlink.
26673         * doc/pastposix-functions/usleep.texi (usleep): Document the
26674         portability issue.
26675
26676 2009-10-13  Jim Meyering  <meyering@redhat.com>
26677
26678         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
26679         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
26680         * modules/pipe-filter-ii: Likewise.
26681         * modules/sys_socket-tests: Likewise.
26682         * modules/tsearch-tests: Likewise.
26683         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
26684         (check): Depend on it.
26685
26686 2009-10-12  Eric Blake  <ebb9@byu.net>
26687
26688         utimens-tests: port to NFS file systems
26689         * tests/test-utimens.h (test_utimens): Refactor utimecmp
26690         comparisons to avoid spurious failures from timestamp drift
26691         between NFS machines.
26692
26693 2009-10-12  Eric Blake  <ebb9@byu.net>
26694
26695         stat-time-tests: minor cleanups
26696         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
26697         * tests/test-stat-time.c (nap): Separate assignment from call.
26698         Suggested by Paolo Bonzini and Bruno Haible.
26699
26700         sys_stat: guarantee struct timespec
26701         * lib/sys_stat.in.h (includes): Always include <time.h>
26702         * modules/sys_stat (Depends-on): Add time.
26703         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
26704         mode_t permission values.
26705         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
26706         get at subsecond timestamps.
26707
26708 2009-10-10  Eric Blake  <ebb9@byu.net>
26709
26710         futimens: new module
26711         * modules/futimens: New file.
26712         * lib/futimens.c (futimens): Likewise.
26713         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
26714         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
26715         we can work around Linux bugs.
26716         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26717         * modules/sys_stat (Makefile.am): Substitute them.
26718         * lib/sys_stat.in.h (futimens): Declare it.
26719         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26720         * doc/posix-functions/futimens.texi (futimens): Likewise.
26721         * modules/futimens-tests: New test.
26722         * tests/test-futimens.c: Likewise.
26723
26724         utimens: introduce fdutimens
26725         * lib/utimens.h (fdutimens): New prototype.
26726         * lib/utimens.c (gl_futimens): Move guts...
26727         (fdutimens): ...to new interface.
26728         * tests/test-utimens.c (do_fdutimens): Use it.
26729
26730         utimens: add UTIME_NOW and UTIME_OMIT support
26731         * lib/utimens.c (validate_timespec, update_timespec): New helper
26732         functions.
26733         (gl_futimens, lutimens): Use them.
26734         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
26735         stdbool, sys_stat.
26736         (Link): Mention resulting library dependency.
26737         * modules/utimecmp (Link): Likewise.
26738         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
26739         (Makefile.am): Pick up library dependency.
26740         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
26741         definition.
26742         * tests/test-sys_stat.c: Test the definitions.
26743         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
26744         * NEWS: Document library dependency.
26745
26746         utimecmp: support symlink timestamps
26747         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
26748         hashing when possible.  Use pathconf when available.
26749         (SYSCALL_RESOLUTION): Recognize tighter resolution.
26750         * modules/utimecmp (Depends-on): Add lstat.
26751
26752         utimens: add lutimens interface
26753         * lib/utimens.c (lutimens): New function.
26754         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
26755         * lib/utimens.h (lutimens): Declare new interface.
26756         * tests/test-utimens.c (main): Enhance test.
26757         * tests/test-lutimens.h (test_lutimens): New file.
26758         * modules/utimens-tests (Files): Distribute it.
26759         (Depends-on): Add symlink.
26760         (configure.ac): Check for usleep.
26761
26762         utimens: validate futimens usage
26763         * lib/utimens.c (gl_futimens): Require valid fd up front, using
26764         fewer syscalls on failure later on.  Avoid compiler warning on
26765         mingw.
26766         * modules/utimens (Depends-on): Add dup2.
26767
26768         utimens: add test
26769         * modules/utimens-tests: New test.
26770         * tests/test-utimens.h: New file.
26771         * tests/test-futimens.h: Likewise.
26772         * tests/test-utimens.c: Likewise.
26773
26774         doc: mention timestamp portability issues
26775         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
26776         instead.
26777         * doc/posix-functions/utime.texi (utime): Likewise.
26778         * doc/posix-functions/utimes.texi (utimes): Likewise.
26779         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
26780         instead.
26781         * doc/posix-functions/futimens.texi (futimens): Mention utimens
26782         module.
26783         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
26784         Mention weakness with symlink timestamps.
26785         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
26786         to utimensat/futimens instead.
26787         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
26788
26789         test-dup2: enhance test
26790         * tests/test-dup2.c (main): Also check AT_FDCWD.
26791
26792         test-stat-time: avoid more spurious failures
26793         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
26794         xfs; and avoid race if the two timestamps cross quantization edge.
26795
26796         relocatable: prefer 'file system' over 'filesystem'
26797         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
26798         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
26799         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
26800         * doc/relocatable.texi (Enabling Relocatability): Likewise.
26801         * lib/relocatable.c (compute_curr_prefix): Likewise.
26802
26803 2009-10-10  Jim Meyering  <meyering@redhat.com>
26804
26805         stat-time-tests: check for the usleep function
26806         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
26807
26808 2009-10-10  Bruno Haible  <bruno@clisp.org>
26809
26810         * modules/xnanosleep: Put the Link section after the Include section.
26811
26812 2009-10-09  Eric Blake  <ebb9@byu.net>
26813
26814         dup2: work around FreeBSD 6.1 bug
26815         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
26816         * doc/posix-functions/dup2.texi (dup2): Document it.
26817         Reported by Nelson H. F. Beebe and Jim Meyering.
26818
26819         test-stat-time: port to buggy NFS clients
26820         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
26821         (test_ctime): Also skip test if mtime and ctime are skewed.
26822
26823         maint: prefer 'file system' over 'filesystem'
26824         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26825         * doc/posix-functions/lstat.texi (lstat): Likewise.
26826         * lib/file-has-acl.c (file_has_acl): Likewise.
26827         * lib/fwriteerror.c [TEST]: Likewise.
26828         * tests/test-areadlink.h (test_areadlink): Likewise.
26829         * tests/test-areadlinkat-with-size.c (main): Likewise.
26830         * tests/test-areadlinkat.c (main): Likewise.
26831         * tests/test-canonicalize-lgpl.c (main): Likewise.
26832         * tests/test-canonicalize.c (main): Likewise.
26833         * tests/test-fstatat.c (main): Likewise.
26834         * tests/test-linkat.c (main): Likewise.
26835         * tests/test-lstat.h (test_lstat_func): Likewise.
26836         * tests/test-mkdir.h (test_mkdir): Likewise.
26837         * tests/test-readlink.h (test_readlink): Likewise.
26838         * tests/test-remove.c (main): Likewise.
26839         * tests/test-rename.h (test_rename): Likewise.
26840         * tests/test-renameat.c (main): Likewise.
26841         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26842         * tests/test-symlink.h (test_symlink): Likewise.
26843         * tests/test-symlinkat.c (main): Likewise.
26844         * tests/test-unlink.h (test_unlink_func): Likewise.
26845         * tests/test-unlinkat.c (main): Likewise.
26846
26847         maint: make realtime library usage explicit
26848         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
26849         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
26850         * modules/settime (Link): Likewise.
26851         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
26852
26853         test-stat-time: speed up execution
26854         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
26855         warning on mingw.
26856         (nap): New helper function.
26857         (prepare_test): Use it to reduce sleep time.
26858         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
26859         execution.
26860         * modules/stat-time-tests (configure.ac): Check for usleep.
26861
26862 2009-10-09  Jim Meyering  <meyering@redhat.com>
26863
26864         selinux-h: always use getfilecon wrappers
26865         * lib/getfilecon.c: New file.
26866         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
26867         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
26868         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
26869         (fgetfilecon): Provide a stub.
26870         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
26871         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
26872         file unconditionally.
26873         When <selinux/selinux.h> is found, arrange to use wrappers.
26874         * modules/selinux-h (Files): Add getfilecon.c.
26875         (Makefile.am): Substitute include-next-related bits
26876         into the now-always-generated selinux/selinux.h file.
26877         * doc/glibc-functions/lgetfilecon.texi: New file.
26878         * doc/glibc-functions/fgetfilecon.texi: New file.
26879         * doc/glibc-functions/getfilecon.texi: New file.
26880         * doc/glibc-functions/getfilecon-desc.texi: New file.
26881         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
26882         which to pull in the new files.
26883         * MODULES.html.sh (Misc): Add selinux-h.
26884
26885 2009-10-08  Jim Meyering  <meyering@redhat.com>
26886
26887         unistd: fix comment typo
26888         * lib/unistd.in.h (euidaccess): Fix a comment typo.
26889
26890 2009-10-08  Eric Blake  <ebb9@byu.net>
26891
26892         areadlink: use SIZE_MAX consistently
26893         * modules/areadlink (Depends-on): Add stdint.
26894         * modules/areadlink-with-size (Depends-on): Likewise.
26895         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
26896         gives NULL; drop sys/types, since unistd gives size_t; and add
26897         stdint for SIZE_MAX.
26898         (SIZE_MAX): Rely on headers.
26899         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
26900         and add stdint.
26901         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
26902         (SIZE_MAX): Likewise.
26903         (INITIAL_BUF_SIZE): Turn into enum.
26904         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
26905
26906 2009-10-08  Jim Meyering  <meyering@redhat.com>
26907
26908         areadlinkat: avoid compilation failure
26909         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
26910         Fix typo in comment.
26911
26912 2009-10-07  Eric Blake  <ebb9@byu.net>
26913
26914         areadlinkat-with-size: new module
26915         * modules/areadlinkat-with-size: New module.
26916         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
26917         * lib/areadlink.h (areadlinkat): Declare it.
26918         * MODULES.html.sh (File system functions): Mention it.
26919         * modules/areadlinkat-with-size-tests: New test.
26920         * tests/test-areadlinkat-with-size.c: New file.
26921
26922         xreadlinkat: new module
26923         * modules/xreadlinkat: New module.
26924         * lib/xreadlinkat.c (xreadlinkat): New file.
26925         * lib/xreadlink.h (xreadlinkat): Declare it.
26926         * MODULES.html.sh (File system functions): Mention it.
26927
26928         areadlinkat: new module
26929         * lib/at-func.c (FUNC_FAIL): New define.
26930         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
26931         * modules/areadlinkat: New module.
26932         * lib/linkat.c (areadlinkat): Move...
26933         * lib/areadlinkat.c (areadlinkat): ...to new file.
26934         * lib/areadlink.h (areadlinkat): Declare it.
26935         * modules/linkat (Depends-on): Add areadlinkat.
26936         * MODULES.html.sh (File system functions): Mention it.
26937         * modules/areadlinkat-tests: New test.
26938         * tests/test-areadlinkat.c: New file.
26939
26940         areadlink, areadlink-with-size: add tests
26941         * modules/areadlink-tests: New test.
26942         * modules/areadlink-with-size-tests: Likewise.
26943         * tests/test-areadlink.h: New file.
26944         * tests/test-areadlink.c: Likewise.
26945         * tests/test-areadlink-with-size.c: Likewise.
26946
26947         maint: minor cleanups
26948         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
26949         _UNUSED_PARAMETER_ instead.
26950         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
26951         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
26952         * modules/linkat-tests (Files): Distribute test-link.h.
26953
26954         openat, utimens: whitespace cleanup
26955         * lib/openat.c: Prefer space throughout, rather than mix of 8
26956         spaces vs. tabs.
26957         * lib/at-func.c: Likewise.
26958         * lib/utimens.c: Likewise.
26959
26960         openat: avoid using wrong fd
26961         * lib/openat.c (openat_permissive): Reject user's fd if saving the
26962         working directory chooses same fd.
26963         * lib/at-func.c (AT_FUNC_NAME): Likewise.
26964
26965         mkdir, mkdirat: fix cygwin 1.5.x bug
26966         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
26967         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
26968         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
26969         bug.
26970         (gl_PREREQ_MKDIR): Delete unused macro.
26971         * modules/mkdir (Files): Track file rename.
26972         (configure.ac): Update macro name.
26973         * modules/openat (Depends-on): Add mkdir.
26974         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
26975
26976         mkdir, mkdirat: add tests
26977         * modules/mkdir-tests: New test.
26978         * tests/test-mkdir.h: New file.
26979         * tests/test-mkdir.c: Likewise.
26980         * tests/test-mkdirat.c: Likewise.
26981         * modules/openat-tests (Files): Add new files.
26982         (Makefile.am): Run new test.
26983
26984 2009-10-06  Eric Blake  <ebb9@byu.net>
26985
26986         doc: tweak *at function documentation
26987         * doc/posix-functions/faccessat.texi (faccessat): Mention
26988         known issue with replacement.
26989         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
26990         * doc/posix-functions/linkat.texi (linkat): Likewise.
26991         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26992         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26993         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26994         * doc/posix-functions/renameat.texi (renameat): Likewise.
26995         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26996
26997         openat: fix GNU/Hurd bug in unlinkat
26998         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
26999         broken.
27000         * doc/posix-functions/unlink.texi (unlink): Document this.
27001         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
27002
27003         fdopendir: fix GNU/Hurd bug
27004         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
27005         allowing non-directory fds.
27006         * lib/fdopendir.c (rpl_fdopendir): Work around it.
27007         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27008         * modules/dirent (Makefile.am): Substitute it.
27009         * lib/dirent.in.h (fdopendir): Declare replacement.
27010         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
27011         * tests/test-fdopendir.c (main): Test something other than
27012         /dev/null, since on Hurd that behaves like a directory.
27013
27014         test-symlink: port to GNU/Hurd
27015         * tests/test-symlink.h (test_symlink): Relax expected errno.
27016
27017         doc: tweak more cygwin information
27018         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
27019         now compatible with glibc.
27020         * doc/posix-functions/getopt.texi (getopt): Likewise.
27021
27022         getopt-gnu: add another test
27023         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
27024         guarantee behavior relied on by m4.
27025         * tests/test-getopt.c (main): Use it.
27026         * modules/getopt-posix-tests (Depends-on): Add setenv.
27027         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
27028
27029         getopt: fix compilation on darwin
27030         * lib/getopt.in.h (includes): Leave breadcrumbs during system
27031         include.
27032         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
27033         Reported by Ludovic Courtès.
27034
27035 2009-10-06  Bruno Haible  <bruno@clisp.org>
27036
27037         * modules/size_max (Description): Discourage its use.
27038         Reported by Simon Josefsson.
27039
27040 2009-10-06  Jim Meyering  <meyering@redhat.com>
27041
27042         linkat: avoid compilation failure
27043         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
27044
27045 2009-10-05  Eric Blake  <ebb9@byu.net>
27046
27047         linkat: support Linux 2.6.17
27048         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
27049         linkat on Linux, but allow cache variable override.
27050         * lib/linkat.c (rpl_linkat): Define override.
27051         * modules/linkat (Depends-on): Add symlinkat.
27052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
27053         * modules/unistd (Makefile.am): Substitute it.
27054         * lib/unistd.in.h (linkat): Declare replacement.
27055         Reported by Pádraig Brady.
27056
27057         quotearg: port test to systems with C.UTF-8 locale
27058         * tests/test-quotearg.c (struct result_strings): Add another
27059         member, differentiating between C.ASCII and C.UTF-8 handling.
27060         (compare_strings): Add parameter.
27061         (main): Adjust all callers.
27062
27063         getopt: avoid clash with FreeBSD _getopt_internal
27064         * lib/getopt.in.h (_getopt_internal): Override the name.
27065         * lib/getopt_int.h (includes): Pick up any overrides.
27066         Reported by Reuben Thomas.
27067
27068         hash: allow C89 compilation
27069         * lib/hash.c (check_tuning): Move declaration before statement.
27070         Reported by Reuben Thomas.
27071
27072 2009-10-05  Karl Berry  <karl@gnu.org>
27073
27074         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
27075
27076 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
27077             Bruno Haible  <bruno@clisp.org>
27078
27079         * lib/uname.c (uname): Use a table-driven algorithm to compute
27080         Windows NT versions.
27081
27082 2009-10-04  Bruno Haible  <bruno@clisp.org>
27083
27084         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
27085         program_invocation_short_name.
27086         * modules/progname (configure.ac): Test for presence of
27087         program_invocation_short_name.
27088         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
27089
27090 2009-10-04  Bruno Haible  <bruno@clisp.org>
27091
27092         * lib/progname.c (set_program_name): Fix comment.
27093         Reported by Jim Meyering.
27094
27095 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27096             Bruno Haible  <bruno@clisp.org>
27097
27098         * lib/uname.c: Include <string.h>.
27099         (uname): Do only one call to GetVersionEx in the common case.
27100
27101 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
27102             Bruno Haible  <bruno@clisp.org>
27103
27104         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
27105         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
27106         (uname): Add support for Windows CE and various non-x86 CPU types.
27107
27108 2009-10-03  Bruno Haible  <bruno@clisp.org>
27109
27110         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
27111         invocation to tests/configure.ac.
27112         Reported by Ian Beckwith <ianb@erislabs.net>.
27113
27114 2009-10-02  Eric Blake  <ebb9@byu.net>
27115
27116         fchdir: avoid compiler warning
27117         * lib/fchdir.c (canonicalize_file_name)
27118         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
27119
27120         test-open: support mingw errno values
27121         * tests/test-open.h (test_open): Relax test.
27122         * tests/test-fopen.h (test_fopen): Likewise.
27123         * tests/test-openat-safer.c (main): Likewise.
27124
27125         open: fix opening directory on mingw
27126         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
27127
27128         test-open: on GNU/Hurd, /dev/null is a directory
27129         * tests/test-fopen.h (main): Rename...
27130         (test_fopen): ...to this.  Use a guaranteed non-directory when
27131         confirming open behavior on trailing slash.
27132         * tests/test-openat-safer.c (main): Likewise.
27133         * tests/test-open.h (main): Likewise....
27134         (test_open): ...to this.
27135         * tests/test-fopen.c (main): Adjust caller.
27136         * tests/test-fopen-safer.c (main): Likewise.
27137         * tests/test-open.c (main): Likewise.
27138         * tests/test-fcntl-safer.c (main): Likewise.
27139         Reported by Samuel Thibault.
27140
27141         rename, fchdir: don't ignore chdir failure
27142         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
27143         * lib/rename.c (rpl_rename) [W32]: Likewise.
27144         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
27145         an empty destination directory if source cannot be renamed,
27146         although there is still possibility for failure.
27147         * doc/posix-functions/rename.texi (rename): Document the race.
27148         Reported by Jim Meyering.
27149
27150         maint: cleanup whitespace in recent commits
27151         * lib/rename.c (rpl_rename): Remove tabs.
27152         * tests/test-link.h (test_link): Likewise.
27153         * lib/fchdir.c (get_name): Likewise.
27154         Reported by Jim Meyering.
27155
27156 2009-10-02  Ben Pfaff  <blp@gnu.org>
27157
27158         relocatable-prog-wrapper: Add missing dependency on
27159         double-slash-root.
27160         * modules/relocatable-prog-wrapper: Add dependency.
27161         Reported by Ian Beckwith <ianb@erislabs.net>.
27162
27163 2009-10-02  Eric Blake  <ebb9@byu.net>
27164
27165         renameat: fix Solaris bugs
27166         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
27167         needed fixing.
27168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
27169         * modules/stdio (Makefile.am): Substitute it.
27170         * lib/stdio.in.h (renameat): Declare replacement.
27171         * lib/renameat.c (rpl_renameat): Implement fix.
27172
27173         renameat: new module
27174         * modules/renameat: New file.
27175         * lib/renameat.c (renameat): Likewise.
27176         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
27177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27178         * modules/stdio (Makefile.am): Substitute them.
27179         * lib/stdio.in.h (renameat): Declare it.
27180         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27181         * doc/posix-functions/renameat.texi (renameat): Likewise.
27182         * modules/renameat-tests: New test.
27183         * tests/test-renameat.c: Likewise.
27184
27185         rename: fix mingw bugs
27186         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
27187         directory overwrite bugs.
27188
27189         rename: fix another cygwin 1.5 bug
27190         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
27191         checks.
27192         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
27193         unnecessary cygwin workarounds.  Also work around bug with moving
27194         full directory onto an empty one.
27195         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
27196
27197         rename-dest-slash: merge into rename module
27198         * modules/rename-dest-slash (Status): Mark obsolete.
27199         (Depends-on): Add rename.
27200         (Files): Let rename do it all.
27201         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
27202         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
27203         * m4/rename-dest-slash.m4: ...so this file can be deleted.
27204         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
27205         * lib/rename.c (rpl_rename): Update comments.
27206
27207         rename: fix cygwin 1.5.x bugs
27208         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
27209         * lib/rename.c (rpl_rename): Work around them.
27210         * modules/rename (Depends-on): Add same-inode.
27211
27212         rename: fix Solaris 10 bug
27213         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27214         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
27215         was the only bug.
27216
27217         rename: fix Solaris 9 bug
27218         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
27219         on non-directory.  Avoid calling exit.
27220         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
27221         strdup.
27222         * modules/rename-tests (Depends-on): Drop lstat.
27223         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
27224         (gl_PREREQ_RENAME): Delete unused macro.
27225
27226         rename-dest-slash: fix NetBSD bug
27227         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
27228         links.
27229         * modules/rename-dest-slash (Depends-on): Add same-inode.
27230
27231         rename-tests: new test, exposes several platform bugs
27232         * modules/rename-tests: New file.
27233         * tests/test-rename.h: Likewise.
27234         * tests/test-rename.c: Likewise.
27235         * doc/posix-functions/rename.texi (rename): Improve documentation,
27236         including bugs that will eventually be fixed in gnulib.
27237
27238 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
27239
27240         * lib/uname.c: Include <stdlib.h>
27241         (uname): Assume version info is available.
27242
27243 2009-10-02  Jim Meyering  <meyering@redhat.com>
27244
27245         gnu-web-doc-update: correct --help output
27246         * build-aux/gnu-web-doc-update: Make --help output relevant.
27247
27248         gnu-web-doc-update: add standard options
27249         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
27250
27251         gnu-web-doc-update: New module.
27252         Use this script to automatically update the on-line web documentation
27253         for your GNU project at http://www.gnu.org/software/$pkg/manual/
27254         * modules/gnu-web-doc-update: New file, from coreutils.
27255         * build-aux/gnu-web-doc-update: New script.
27256
27257 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
27258
27259         link: LoadLibrary is not needed.
27260         * lib/link.c: Use GetModuleHandle.
27261
27262 2009-10-01  Eric Blake  <ebb9@byu.net>
27263
27264         getopt: bump serial number
27265         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
27266         change.
27267
27268         tests: tighten link, rmdir, and remove tests
27269         * tests/test-link.h (includes): No need to use <config.h> here.
27270         Clean up if directory hard link was created, otherwise test for
27271         trailing '.'.
27272         * tests/test-linkat.c (main): Simplify.
27273         * tests/test-remove.c (main): Enhance test for trailing '.'.
27274         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27275
27276 2009-10-01  Jim Meyering  <meyering@redhat.com>
27277
27278         maint.mk: requiring "make major" was annoying, for a "minor" release.
27279         What is intended is "stable", to contrast with alpha and beta,
27280         so require "make stable", not "make major".
27281         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
27282         (get_tool_versions): Likewise.
27283         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
27284
27285 2009-09-30  Ben Pfaff  <blp@gnu.org>
27286
27287         Fix broken build of replacement for Windows tmpfile().
27288         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
27289         flags argument added along with the 'mkostemp' module.
27290
27291 2009-09-28  Bruno Haible  <bruno@clisp.org>
27292
27293         Avoid identifier clash with POSIX function 'remove' defined as a macro.
27294         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
27295         to 'remove_elt'.
27296         (gl_list_remove): Update.
27297         * lib/gl_list.c (gl_list_remove): Update.
27298         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
27299         to 'remove_elt'.
27300         (gl_oset_remove): Update.
27301         * lib/gl_list.c (gl_oset_remove): Update.
27302         Reported by Eric Blake.
27303
27304 2009-09-28  Eric Blake  <ebb9@byu.net>
27305
27306         doc: mention yet more cygwin 1.7 status
27307         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
27308         cygwin.
27309         * doc/glibc-functions/execvpe.texi (execvpe): New file.
27310         * doc/gnulib.texi (Glibc unistd.h): Mention it.
27311
27312         argp: fix test failure
27313         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
27314         that are not upper-case.  Pass correct range to tolower.
27315
27316 2009-09-27  Jim Meyering  <meyering@redhat.com>
27317
27318         test-yesno: work around sparc-dash here-document infelicity
27319         Without this change, the literal \177 byte in a here document
27320         would make dash 0.5.5.1-3 access uninitialized memory.
27321         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
27322         Instead, use a marker, "@", and filter through tr to create the desired
27323         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
27324
27325 2009-09-27  Bruno Haible  <bruno@clisp.org>
27326
27327         Disable untested support for new flavours of ACLs on AIX.
27328         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
27329         progress.
27330         * lib/set-mode-acl.c (qset_acl): Likewise.
27331
27332 2008-12-07  Bruno Haible  <bruno@clisp.org>
27333
27334         Add support for new flavours of ACLs on AIX. (Untested.)
27335         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
27336         (file_has_acl): Add support for newer AIX.
27337         * lib/set-mode-acl.c (qset_acl): Likewise.
27338         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
27339         Rainer Tammer <tammer@tammer.net>.
27340
27341 2009-09-26  Eric Blake  <ebb9@byu.net>
27342
27343         argp: fix compilation of getopt
27344         * lib/getopt.in.h (includes): Use different guard than glibc.
27345         Reported by Sergey Poznyakoff.
27346
27347         doc: mention more cygwin 1.7 status
27348         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
27349         bug.
27350         * doc/posix-functions/execl.texi (execl): Likewise.
27351         * doc/posix-functions/execle.texi (execle): Likewise.
27352         * doc/posix-functions/execlp.texi (execlp): Likewise.
27353         * doc/posix-functions/execv.texi (execv): Likewise.
27354         * doc/posix-functions/execve.texi (execve): Likewise.
27355         * doc/posix-functions/execvp.texi (execvp): Likewise.
27356         * doc/glibc-functions/canonicalize_file_name.texi
27357         (canonicalize_file_name): Cygwin 1.7 now provides this.
27358         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
27359         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
27360         on AT_SYMLINK_NOFOLLOW.
27361
27362 2009-09-24  Eric Blake  <ebb9@byu.net>
27363
27364         test-linkat: make test more robust
27365         * tests/test-linkat.c (main): Avoid collision with EEXIST.
27366
27367         getopt: fix inclusion guards for cygwin
27368         * modules/getopt-posix (Depends-on): Add include-next.
27369         (Makefile.am): Substitute more items in replacement header.
27370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
27371         <getopt.h>.
27372         * lib/getopt.in.h (includes): Use split inclusion guard, and
27373         prefer <getopt.h> over include <unistd.h> when one is present.
27374         (option): Also override name of 'struct option'.
27375
27376         same-inode: revert prior change; it is not yet ready
27377         * NEWS: Undo mention of this change.
27378         * lib/same-inode.h (same-inode.h): Undo tri-state change.
27379         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27380         * lib/cycle-check.c (cycle_check): Likewise.
27381         * lib/same.c (same_name): Likewise.
27382         * lib/at-func2.c (at_func2): Likewise.
27383
27384 2009-09-23  Eric Blake  <ebb9@byu.net>
27385
27386         linkat: new module
27387         * modules/linkat: New file.
27388         * lib/at-func2.c (at_func2): Likewise.
27389         * lib/linkat.c (linkat): Likewise.
27390         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27391         * lib/openat-priv.h (at_func2): Add declaration.
27392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27393         * modules/unistd (Makefile.am): Substitute them.
27394         * lib/unistd.in.h (linkat): Declare it.
27395         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27396         * doc/posix-functions/linkat.texi (linkat): Likewise.
27397         * doc/posix-functions/link.texi (link): Tweak wording.
27398         * tests/test-link.c (main): Move guts...
27399         * tests/test-link.h (test_link): ...into new file.
27400         * modules/linkat-tests: New test.
27401         * tests/test-linkat.c: Likewise.
27402         * modules/link-tests (Files): Ship new file.
27403         (Depends-on): Add stdbool.
27404
27405         dirname: add library-safe mdir_name
27406         * lib/dirname.h (mdir_name): New prototype.
27407         * lib/dirname.c (dir_name): Move guts...
27408         (mdir_name): ...to new function that avoids xalloc_die.
27409
27410         fchdir: another mingw fix
27411         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
27412         * lib/fchdir.c (get_name): New helper method; skips canonicalize
27413         on mingw (where it has not yet been ported), and make it optional
27414         elsewhere.
27415         (_gl_register_fd): Use it.
27416
27417         same-inode: make SAME_INODE tri-state, to port to mingw
27418         * NEWS: Mention this change.
27419         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
27420         st_ino always being 0.
27421         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
27422         * lib/cycle-check.c (cycle_check): Likewise.
27423         * lib/same.c (same_name): Likewise.
27424
27425         lstat: avoid mingw compilation error
27426         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
27427         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
27428         lstat ourselves.
27429         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
27430         was adequate.
27431         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
27432         the checks for lstat.
27433         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
27434
27435         link: fix test failure on Solaris 9
27436         * lib/link.c (rpl_link): Don't assume link will catch bogus
27437         trailing slash on source.
27438
27439         test-symlinkat: enhance test
27440         * tests/test-readlink.c (main): Move guts...
27441         * tests/test-readlink.h (test_readlink): ...into new file.
27442         * tests/test-symlink.c (main): Move guts...
27443         * tests/test-symlink.h (test_symlink): ...into new file.
27444         * tests/test-symlinkat.c (main): Use new files for further
27445         coverage.
27446         (do_symlink, do_readlink): New helper functions.
27447         * modules/symlink-tests (Files): Ship new file.
27448         (Depends-on): Add stdbool.
27449         * modules/readlink-tests (Files): Ship new file.
27450         (Depends-on): Add stdbool.
27451         * modules/symlinkat-tests (Files): Use new files.
27452
27453 2009-09-23  Eric Blake  <ebb9@byu.net>
27454
27455         readlink: document portability issue with symlink length
27456         * doc/posix-functions/lstat.texi (lstat): Mention that some file
27457         systems have bogus st_size on symlinks, and mention the
27458         areadlink-with-size module.
27459         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
27460         * doc/posix-functions/readlink.texi (readlink): Mention the
27461         areadlink module, and ERANGE failure.
27462         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27463         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
27464
27465         readlink: fix Solaris 9 bug with trailing slash
27466         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
27467         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
27468         * doc/posix-functions/readlink.texi (readlink): Document this.
27469         * modules/readlink-tests: New test.
27470         * tests/test-readlink.c: Likewise.
27471
27472         readlink: fix cygwin 1.5.x bug with return type
27473         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
27474         * lib/unistd.in.h (readlink): Use ssize_t.
27475         * lib/readlink.c (readlink): Likewise.
27476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27477         * modules/unistd (Makefile.am): Substitute it.
27478         * lib/unistd.in.h (readlink): Declare replacement.
27479         * doc/posix-functions/readlink.texi (readlink): Document this.
27480
27481         symlink: use throughout gnulib
27482         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
27483         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
27484         symlink is not used.
27485         * modules/symlinkat (Depends-on): Add symlink.
27486         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27487         * modules/canonicalize-tests (Depends-on): Likewise.
27488         * modules/lstat-tests (Depends-on): Likewise.
27489         * modules/openat-tests (Depends-on): Likewise.
27490         * modules/remove-tests (Depends-on): Likewise.
27491         * modules/rmdir-tests (Depends-on): Likewise.
27492         * modules/unlink-tests (Depends-on): Likewise.
27493         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
27494         * tests/test-canonicalize.c (symlink): Likewise.
27495         * tests/test-fstatat.c (symlink): Likewise.
27496         * tests/test-lstat.c (symlink): Likewise.
27497         * tests/test-remove.c (symlink): Likewise.
27498         * tests/test-rmdir.c (symlink): Likewise.
27499         * tests/test-unlink.c (symlink): Likewise.
27500         * tests/test-unlinkat.c (symlink): Likewise.
27501
27502         symlink: new module, for Solaris 9 bug
27503         * modules/symlink: New file.
27504         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27505         * lib/symlink.c: Likewise.
27506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
27507         * modules/unistd (Makefile.am): Substitute them.
27508         * lib/unistd.in.h (symlink): Declare replacement.
27509         * MODULES.html.sh (File system functions): Mention it.
27510         * doc/posix-functions/symlink.texi (symlink): Likewise.
27511         * modules/symlink-tests: New test.
27512         * tests/test-symlink.c: Likewise.
27513
27514 2009-09-23  Bruno Haible  <bruno@clisp.org>
27515
27516         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
27517         when needed.
27518         Test case: gnulib-tool --import --with-tests atexit inttypes.
27519         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
27520
27521 2009-09-23  Bruno Haible  <bruno@clisp.org>
27522
27523         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
27524         subcommand, not in a subshell.
27525
27526 2009-09-22  Eric Blake  <ebb9@byu.net>
27527
27528         unistd: sort replacement declarations
27529         * lib/unistd.in.h: Sort declarations.
27530
27531         open, openat: minor optimization
27532         * lib/open.c (open): If open succeeded, len is non-zero.
27533         * lib/openat.c (rpl_openat): Likewise.
27534
27535         link-follow: ensure correct result
27536         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
27537         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
27538         distinguish between possible failures.
27539
27540 2009-09-21  Eric Blake  <ebb9@byu.net>
27541
27542         fts: avoid compiler warning
27543         * lib/fts.c (dirent_inode_sort_may_be_useful)
27544         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
27545
27546 2009-09-19  Bruno Haible  <bruno@clisp.org>
27547
27548         * lib/progreloc.c (canonicalize_file_name): New declaration.
27549
27550 2009-09-19  Eric Blake  <ebb9@byu.net>
27551
27552         link: fix quoting
27553         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
27554
27555         openat: fix openat bugs on Solaris 9
27556         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
27557         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
27558         * modules/openat (Depends-on): Add open.
27559         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
27560         * modules/fcntl-h (Makefile.am): Substitute it.
27561         * lib/fcntl.in.h (openat): Declare replacement.
27562         * doc/posix-functions/openat.texi (openat): Document this.
27563
27564         openat: move fstatat and unlinkat into correct files
27565         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
27566         compiled.
27567         * lib/openat.c (fstatat, unlinkat): Move...
27568         * lib/fstatat.c (fstatat): ...into correct files.
27569         * lib/unlinkat.c (unlinkat): Likewise.
27570
27571         openat: fix unlinkat bugs on Solaris 9
27572         * lib/unlinkat.c (unlinkat): New file.
27573         * modules/openat (Depends-on): Add unlink.
27574         (Files): Distribute it.
27575         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
27576         trailing slash behavior is broken.
27577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27578         * modules/unistd (Makefile.am): Substitute it.
27579         * lib/unistd.in.h (unlinkat): Declare replacement.
27580         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
27581
27582         openat: fix fstatat bugs on Solaris 9
27583         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
27584         stat.
27585         * doc/posix-functions/fstatat.texi (fstatat): Document this.
27586
27587         test-unlinkat: enhance test, to expose Solaris 9 bug
27588         * tests/test-unlink.c (main): Factor guts...
27589         * tests/test-unlink.h (test_rmdir_func): ...into new file.
27590         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
27591         * tests/test-rmdir.c (main): Adjust caller.
27592         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
27593         (unlinker): New helper function.
27594         (rmdirat): Enhance check.
27595         * modules/rmdir-tests (Depends-on): Add stdbool.
27596         * modules/unlink-tests (Depends-on): Likewise.
27597         (Files): Add test-unlink.h.
27598         * modules/openat-tests (Files): Likewise.
27599         (Depends-on): Add unlinkdir.
27600
27601         test-fstatat: new test, to expose Solaris 9 bugs
27602         * tests/test-stat.c (main): Factor guts...
27603         * tests/test-stat.h (test_stat_func): ...into new file.
27604         * tests/test-lstat.c (main): Factor guts...
27605         * tests/test-lstat.h (test_lstat_func): ...into new file.
27606         * tests/test-fstatat.c: New file.
27607         * modules/stat-tests (Files): Add test-stat.h.
27608         * modules/lstat-tests (Files): Add test-lstat.h.
27609         (Depends-on): Add stdbool.
27610         * modules/openat-tests (Depends-on): Add pathmax.
27611         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
27612         (Makefile.am): Run new test.
27613
27614         remove: new module, for mingw and Solaris 9 bugs
27615         * modules/remove: New file.
27616         * lib/remove.c: Likewise.
27617         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
27618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
27619         * modules/stdio (Makefile.am): Use them.
27620         * lib/stdio.in.h (remove): Declare replacement.
27621         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27622         * doc/posix-functions/remove.texi (remove): Likewise.
27623         * modules/remove-tests: New test.
27624         * tests/test-remove.c: Likewise.
27625
27626         unlink: new module, for Solaris 9 bug
27627         * modules/unlink: New file.
27628         * lib/unlink.c: Likewise.
27629         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
27631         * modules/unistd (Makefile.am): Use them.
27632         * lib/unistd.in.h (stat): Declare replacement.
27633         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27634         * doc/posix-functions/unlink.texi (unlink): Likewise.
27635         * modules/unlink-tests: New test.
27636         * tests/test-unlink.c: Likewise.
27637
27638         lstat: fix Solaris 9 bug
27639         * lib/lstat.c (lstat): Also check for trailing slash on
27640         non-symlink, non-directories.  Use stat module to simplify logic.
27641         * doc/posix-functions/lstat.texi (lstat): Document it.
27642         * modules/lstat-tests (Depends-on): Add errno, same-inode.
27643         (configure.ac): Check for symlink.
27644         * tests/test-lstat.c (main): Add more tests.
27645
27646         stat: add as dependency to other modules
27647         * modules/chown (Depends-on): Add stat.
27648         * modules/euidaccess (Depends-on): Likewise.
27649         * modules/fchdir (Depends-on): Likewise.
27650         * modules/isdir (Depends-on): Likewise.
27651         * modules/link (Depends-on): Likewise.
27652         * modules/lstat (Depends-on): Likewise.
27653         * modules/mkdir-p (Depends-on): Likewise.
27654         * modules/modechange (Depends-on): Likewise.
27655         * modules/open (Depends-on): Likewise.
27656         * modules/readlink (Depends-on): Likewise.
27657         * modules/same (Depends-on): Likewise.
27658
27659         stat: fix Solaris 9 bug
27660         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
27661         slash.
27662         * lib/stat.c (rpl_stat): Work around it.
27663         * doc/posix-functions/stat.texi (stat): Update documentation.
27664
27665         stat: new module, for mingw bug
27666         * modules/stat: New file.
27667         * lib/stat.c: Likewise.
27668         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
27670         * modules/sys_stat (Makefile.am): Use them.
27671         * lib/sys_stat.in.h (stat): Declare replacement.
27672         * lib/openat.c (fstatat): Deal with lstat and stat being function
27673         macros.
27674         * modules/openat (Depends-on): Add inline.
27675         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
27676         * doc/posix-functions/stat.texi (stat): Likewise.
27677         * modules/stat-tests: New test.
27678         * tests/test-stat.c: Likewise.
27679
27680 2009-09-19  Jim Meyering  <meyering@redhat.com>
27681
27682         syntax-check: detect unnecessary inclusion of canonicalize.h
27683         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
27684
27685 2009-09-19  Eric Blake  <ebb9@byu.net>
27686
27687         canonicalize-lgpl: adjust clients to use correct header
27688         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27689         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
27690         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
27691         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
27692         * lib/progreloc.c (includes): Likewise.
27693
27694 2009-09-19  Jim Meyering  <meyering@redhat.com>
27695
27696         test-posixtm.c: correct a comment
27697         * tests/test-posixtm.c: Correct first-line comment.
27698         Spotted by Eric Blake.
27699
27700 2009-09-16  Jim Meyering  <meyering@redhat.com>
27701
27702         posixtm-tests: make T const-correct; add a test case
27703         * tests/test-posixtm.c (T): Declare const.
27704         Add a test for -(2^31+1).
27705         Remove useless can-succeed-only-in-2002 test.
27706
27707         posixtm-tests: adjust the sole failing test
27708         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
27709         expected output matches what mktime now produces.  Cross-checked via
27710         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
27711
27712         posixtm: move #ifdef'd tests into a new module
27713         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
27714         * tests/test-posixtm.c: ... this new file.
27715         * modules/posixtm-tests: New module.
27716
27717 2009-09-19  Eric Blake  <ebb9@byu.net>
27718
27719         openat: simplify use of at-func.c
27720         * lib/at-func.c (includes): Include prerequisites here, to
27721         simplify requirements on client files.
27722         * lib/openat-priv.h: Add double-inclusion guard.
27723         * lib/faccessat.c (includes): Simplify.
27724         * lib/fchmodat.c (includes): Likewise.
27725         * lib/fchownat.c (includes): Likewise.
27726         * lib/mkdirat.c (includes): Likewise.
27727         * lib/mkfifoat.c (includes): Likewise.
27728         * lib/symlinkat.c (includes): Likewise.
27729
27730         openat: allow return of fd 0
27731         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
27732         * modules/save-cwd (Depends-on): Replace fcntl-safer with
27733         unistd-safer.
27734         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
27735         <fcntl.h>; this module does not leak fds.
27736         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
27737         must be allowed to return 0, leaving openat_safer to add the
27738         safety.
27739         (openat_permissive): Avoid writing to just-opened fd 2 if
27740         restoring the current directory fails.
27741         * lib/openat-die.c (openat_restore_fail): Add comment.
27742         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
27743         (save_cwd): Guarantee safe fd, but without use of open_safer.
27744         * tests/test-openat.c: New test.
27745         * modules/openat-tests (Files, Makefile.am): Distribute and build
27746         new file.
27747
27748         relocatable-prog-wrapper: fix build
27749         * modules/relocatable-prog-wrapper (Files): Update name of
27750         canonicalize m4 file, broken on 2009-09-17.
27751         Reported by emad hajjar <aleppos@hotmail.com>.
27752
27753 2009-09-19  Bruno Haible  <bruno@clisp.org>
27754
27755         * lib/safe-alloc.h: Use the standard header with GPL copyright.
27756         * lib/safe-alloc.c: Likewise.
27757         Reported by Ian Beckwith <ianb@erislabs.net>.
27758
27759 2009-09-18  Bruno Haible  <bruno@clisp.org>
27760
27761         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
27762         Reported by <erobles@sensacd.com.mx>.
27763
27764 2009-09-17  Eric Blake  <ebb9@byu.net>
27765
27766         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
27767         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
27768         slashes when checking if last component is missing.
27769         * tests/test-canonicalize.c (main): Test this.
27770
27771         canonicalize, canonicalize-lgpl: honor // if distinct from /
27772         * modules/canonicalize (Files): Add double-slash-root.m4.
27773         * modules/canonicalize-lgpl (Files): Likewise.
27774         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
27775         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
27776         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
27777         fallback definition.
27778         (canonicalize_filename_mode): Use it to protect //.
27779         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
27780         (__realpath): Likewise.
27781         * tests/test-canonicalize.c (main): Test this.
27782         * tests/test-canonicalize-lgpl.c (main): Likewise.
27783         * modules/canonicalize-tests (Depends-on): Add same-inode.
27784         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27785
27786         canonicalize-lgpl: fix glibc bug with trailing slash
27787         * m4/canonicalize-lgpl.m4: Move contents...
27788         * m4/canonicalize.m4: ...here.
27789         (gl_CANONICALIZE_LGPL): Factor realpath check...
27790         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
27791         glibc 2.3.5 bug, fixed 2005-04-27.
27792         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
27793         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
27794         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
27795         * modules/canonicalize-lgpl (Files): Manage file rename.
27796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27797         * modules/stdlib (Makefile.am): Substitute witness.
27798         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
27799         is needed.
27800         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
27801         replacement is required.
27802         * lib/canonicalize.c (canonicalize_file_name): Likewise.
27803         * doc/glibc-functions/canonicalize_file_name.texi
27804         (canonicalize_file_name): Document this.
27805         * doc/posix-functions/realpath.texi (realpath): Likewise.
27806
27807         canonicalize-lgpl: reject non-directory with trailing slash
27808         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
27809         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
27810         catches failures in glibc 2.3.5.
27811         * tests/test-canonicalize.c (main): Likewise.
27812
27813         canonicalize-lgpl: use native realpath if it works
27814         * lib/canonicalize-lgpl.c (realpath): Guard with
27815         FUNC_REALPATH_WORKS.
27816         * lib/stdlib.in.h (realpath): Make declaration optional based on
27817         HAVE_REALPATH.
27818         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
27819         native realpath works.
27820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
27821         * modules/stdlib (Makefile.am): Substitute witness.
27822
27823         canonicalize, canonicalize-lgpl: use <stdlib.h>
27824         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
27825         (Include): Mention <stdlib.h>.
27826         (configure.ac): Mention functions we provide.
27827         * modules/canonicalize (configure.ac): Likewise.
27828         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
27829         realpath if canonicalize_file_name is missing.
27830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
27831         * modules/stdlib (Makefile.am): Substitute witnesses.
27832         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
27833         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
27834         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
27835         * NEWS: Document this.
27836         * doc/glibc-functions/canonicalize_file_name.texi
27837         (canonicalize_file_name): Likewise.
27838         * doc/posix-functions/realpath.texi (realpath): Likewise.
27839         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
27840
27841         test-canonicalize: consolidate into single C program
27842         * tests/test-canonicalize.sh: Delete; move setup into...
27843         * tests/test-canonicalize.c (main): ...the program, making it
27844         easier to run in debugger.  Add some tests.
27845         * modules/canonicalize-tests (Files): Remove unused file.
27846         (Depends-on): Add progname.
27847         (configure.ac, Makefile.am): Simplify.
27848
27849         test-canonicalize-lgpl: consolidate into single C program
27850         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
27851         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
27852         easier to run in debugger.  Add some tests.
27853         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
27854         (configure.ac, Makefile.am): Simplify.
27855
27856         canonicalize: avoid resolvepath
27857         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
27858         unnecessary checks.
27859         * lib/canonicalize.c (includes): Simplify.
27860         (canonicalize_file_name): Drop resolvepath implementation.
27861         * modules/canonicalize (Depends-on): Drop filenamecat.
27862
27863         canonicalize: don't lose errno
27864         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
27865         over calls to free.
27866
27867         canonicalize: simplify errno handling
27868         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
27869         assignment.
27870
27871         canonicalize, canonicalize-lgpl: update module dependencies
27872         * modules/canonicalize (Depends-on): Add extensions, lstat,
27873         pathmax, stdlib.
27874         (Files): Drop pathmax.h.
27875         (configure.ac): Adjust macro name.
27876         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
27877         lstat, stdlib, sys_stat.
27878         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
27879         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
27880         extensions.
27881         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
27882         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
27883         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
27884         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
27885         declaration, if available.
27886         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
27887         we can rely on the readlink module.
27888         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
27889         (includes): Use <unistd.h> unconditionally.
27890
27891 2009-09-17  Eric Blake  <ebb9@byu.net>
27892
27893         maint: make Include sections of modules consistent
27894         * modules/alloca: Use only header name; no need to list #include.
27895         * modules/alloca-opt: Likewise.
27896         * modules/arpa_inet: Likewise.
27897         * modules/canon-host: Likewise.
27898         * modules/configmake: Likewise.
27899         * modules/dirent: Likewise.
27900         * modules/eealloc: Likewise.
27901         * modules/environ: Likewise.
27902         * modules/fchdir: Likewise.
27903         * modules/fcntl: Likewise.
27904         * modules/fcntl-h: Likewise.
27905         * modules/gethrxtime: Likewise.
27906         * modules/gettime: Likewise.
27907         * modules/ignore-value: Likewise.
27908         * modules/inet_ntop: Likewise.
27909         * modules/inet_pton: Likewise.
27910         * modules/inttypes: Likewise.
27911         * modules/isnand-nolibm: Likewise.
27912         * modules/isnanf-nolibm: Likewise.
27913         * modules/mbchar: Likewise.
27914         * modules/mbfile: Likewise.
27915         * modules/mbiter: Likewise.
27916         * modules/mbuiter: Likewise.
27917         * modules/netdb: Likewise.
27918         * modules/netinet_in: Likewise.
27919         * modules/nproc: Likewise.
27920         * modules/pagealign_alloc: Likewise.
27921         * modules/poll: Likewise.
27922         * modules/printf-frexp: Likewise.
27923         * modules/pthread: Likewise.
27924         * modules/putenv: Likewise.
27925         * modules/random_r: Likewise.
27926         * modules/relocatable-prog: Likewise.
27927         * modules/search: Likewise.
27928         * modules/select: Likewise.
27929         * modules/selinux-h: Likewise.
27930         * modules/settime: Likewise.
27931         * modules/signal: Likewise.
27932         * modules/size_max: Likewise.
27933         * modules/socklen: Likewise.
27934         * modules/ssize_t: Likewise.
27935         * modules/stdarg: Likewise.
27936         * modules/stdbool: Likewise.
27937         * modules/stddef: Likewise.
27938         * modules/stdint: Likewise.
27939         * modules/stdio: Likewise.
27940         * modules/stdlib: Likewise.
27941         * modules/string: Likewise.
27942         * modules/strings: Likewise.
27943         * modules/sys_file: Likewise.
27944         * modules/sys_ioctl: Likewise.
27945         * modules/sys_select: Likewise.
27946         * modules/sys_socket: Likewise.
27947         * modules/sys_stat: Likewise.
27948         * modules/sys_time: Likewise.
27949         * modules/sys_times: Likewise.
27950         * modules/sys_utsname: Likewise.
27951         * modules/sys_wait: Likewise.
27952         * modules/sysexits: Likewise.
27953         * modules/time: Likewise.
27954         * modules/times: Likewise.
27955         * modules/tmpfile: Likewise.
27956         * modules/trim: Likewise.
27957         * modules/unistd: Likewise.
27958         * modules/wchar: Likewise.
27959         * modules/wctype: Likewise.
27960
27961 2009-09-17  Bruno Haible  <bruno@clisp.org>
27962
27963         Make getdate.y compile on QNX and NetBSD 5 / i386.
27964         * m4/getdate.m4 (gl_GETDATE): Conditionally define
27965         TIME_T_FITS_IN_LONG_INT.
27966         * lib/getdate.y (long_time_t): New type.
27967         (relative_time): Change type of 'seconds' field to long_time_t.
27968         (get_date): Update types of local variables. Check against overflow
27969         during conversion from long_time_t to time_t.
27970         Reported by Matt Kraai <kraai@ftbfs.org>
27971         and Hasso Tepper <hasso@netbsd.org>.
27972
27973 2009-09-17  Bruno Haible  <bruno@clisp.org>
27974
27975         * modules/COPYING: Update copyright years.
27976         * modules/README: Likeiwse.
27977         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
27978         Reported by Ian Beckwith <ianb@erislabs.net>.
27979
27980 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27981
27982         * users.txt: Update references for gnuit package.
27983
27984 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
27985
27986         * m4/getdelim.m4: Fix typo in copyright line.
27987
27988 2009-09-17  Bruno Haible  <bruno@clisp.org>
27989
27990         * lib/atoll.c: Use the standard header with GPL copyright.
27991         * lib/argz.in.h: Likewise.
27992         * lib/glob.c: Likewise.
27993         * lib/glob-libc.h: Likewise.
27994         * lib/random_r.c: Likewise.
27995         * lib/siglist.h: Likewise.
27996         * lib/strsignal.c: Likewise.
27997         Reported by Ian Beckwith <ianb@erislabs.net>.
27998
27999 2009-09-17  Eric Blake  <ebb9@byu.net>
28000
28001         rmdir: ensure correct dependency order
28002         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
28003
28004 2009-09-17  Bruno Haible  <bruno@clisp.org>
28005
28006         Disable assertion that fails on NetBSD 5 / i386.
28007         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
28008         Reported by Sam Steingold <sds@gnu.org>
28009         and Hasso Tepper <hasso@netbsd.org>.
28010
28011 2009-09-16  Eric Blake  <ebb9@byu.net>
28012
28013         unlinkdir: port to mingw
28014         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
28015         on which no one can unlink a directory.
28016
28017         stdlib: sort witness names
28018         * modules/stdlib (Makefile.am): Sort replacements.
28019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
28020         * lib/stdlib.in.h: Likewise.
28021
28022         parse-duration-tests: avoid link failure
28023         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
28024         LIBINTL.
28025         Reported by Tom G. Christensen.
28026
28027         openat-tests: ensure unlinkat behaves like rmdir
28028         * tests/test-rmdir.c (main): Factor guts...
28029         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
28030         * modules/rmdir-tests (Files): Ship new file.
28031         * modules/openat-tests: New test.
28032         * tests/test-unlinkat.c: Likewise.
28033
28034         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
28035         * modules/rmdir-errno (Status, Notice): Now obsolete.
28036
28037         rmdir: work around cygwin 1.5.x and mingw bugs
28038         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
28039         * lib/rmdir.c (rmdir): Work around it.
28040         * modules/rmdir (Status, Notice): No longer obsolete.
28041         (Files): Add dos.m4.
28042         (Depends-on): Add unistd.
28043         (configure.ac): Set witnesses.
28044         (License): Relax to LGPLv2+.
28045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
28046         * modules/unistd (Makefile.am): Substitute witnesses.
28047         * lib/unistd.in.h (rmdir): Declare replacement.
28048         * doc/posix-functions/rmdir.texi (rmdir): Document this.
28049         * modules/rmdir-tests: New tests.
28050         * tests/test-rmdir.c: Likewise.
28051
28052 2009-09-15  Eric Blake  <ebb9@byu.net>
28053
28054         fchdir: improve use of replacement functions
28055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
28056         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
28057         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
28058         REPLACE_CLOSEDIR.
28059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
28060         * modules/sys_stat (Makefile.am): Substitute correct witness.
28061         * modules/dirent (Makefile.am): Likewise.
28062         * modules/unistd (Makefile.am): Likewise.
28063         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
28064         * lib/unistd.in.h (dup): Likewise.
28065         * lib/sys_stat.in.h (fstat): Likewise.
28066
28067         maint: ignore gnulib-tool temp files
28068         * .gitignore: Ignore files created during gnulib-tool --test.
28069
28070 2009-09-13  Jim Meyering  <meyering@redhat.com>
28071
28072         posixtm: don't reject a time that specify "60" as the number of seconds
28073         * lib/posixtm.c (posixtime): The code to reject invalid dates
28074         would also reject a time specified with the .60 suffix.
28075         But POSIX allows that, in order to accommodate leap seconds.
28076         So don't reject it.
28077         (main): Adjust tests accordingly.
28078         * modules/posixtm (Depends-on): Add stpcpy.
28079
28080 2009-09-11  Jim Meyering  <meyering@redhat.com>
28081
28082         announce-gen: include [$release_type] in emitted Subject:
28083         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
28084         e.g., [stable] in the emitted Subject: line.
28085
28086 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28087
28088         Remove obsolete macros from several modules.
28089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
28090         obsolete Autoconf macros with their modern counterparts.
28091         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
28092         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
28093         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
28094         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
28095         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
28096         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28097         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28098         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28099         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28100         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
28101         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28102         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28103         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
28104         * m4/sockets.m4 (gl_SOCKETS): Likewise.
28105         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
28106         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
28107         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28108         * m4/time_r.m4 (gl_TIME_R): Likewise.
28109         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28110         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
28111         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28112
28113         Fix copyright header in build-aux scripts.
28114         * build-aux/git-version-gen: Fix copyright header to match GPLv3
28115         recommendation.
28116         * build-aux/ncftpput-ftp: Likewise.
28117         * build-aux/update-copyright: Likewise.
28118
28119 2009-09-09  Eric Blake  <ebb9@byu.net>
28120
28121         test-link: allow Linux choice of errno
28122         * tests/test-link.c (main): Relax test for alternate error.
28123
28124         strndup: fix improper m4 caching
28125         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
28126         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
28127         (gl_PREREQ_STRNDUP): Delete.
28128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
28129         * modules/string (Makefile.am): Substitute it.
28130         * lib/string.in.h (strndup): Modernize prototype.
28131
28132         getcwd: port to mingw
28133         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
28134         different from the POSIX assumptions made throughout the getcwd
28135         module; fortunately, the mingw getcwd does not need replacement.
28136         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
28137         * modules/getcwd-tests: New test.
28138         * tests/test-getcwd.c: Likewise.
28139
28140         link: fix platform bugs
28141         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
28142         * lib/link.c (link): Work around them.  Fix related mingw bug.
28143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
28144         * modules/unistd (Makefile.am): Substitute it.
28145         * lib/unistd.in.h (link): Declare replacement.
28146         * doc/posix-functions/link.texi (link): Document this.
28147         * modules/link (Depends-on): Add strdup-posix, sys_stat.
28148
28149         test-link: consolidate into single C program, test more cases
28150         * tests/test-link.sh: Delete.
28151         * tests/test-link.c: Test more error conditions.  Exposes bugs on
28152         at least Cygwin and Solaris.
28153         * modules/link-tests (Files): Remove unused file.
28154         (Depends-on): Add errno, sys_stat.
28155         (Makefile.am): Simplify.
28156
28157 2009-09-08  Bruno Haible  <bruno@clisp.org>
28158
28159         Work around towlower, towupper bug on mingw.
28160         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
28161         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
28162         * doc/posix-functions/towlower.texi: Mention the mingw bug.
28163         * doc/posix-functions/towupper.texi: Likewise.
28164         Reported by Eric Blake.
28165
28166 2009-09-08  Jim Meyering  <meyering@redhat.com>
28167
28168         build: don't try to run autoheader if we don't use it
28169         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
28170         is not used in configure.ac.
28171
28172 2009-09-08  Eric Blake  <ebb9@byu.net>
28173
28174         euidaccess: fix compilation error
28175         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
28176
28177         rawmemchr: relax license
28178         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
28179         okay.
28180         Reported by Jim Meyering.
28181
28182         mkfifoat: new module
28183         * modules/mkfifoat: New file.
28184         * lib/mkfifoat.c: Likewise.
28185         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
28186         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
28187         * modules/sys_stat (Makefile.am): Use them.
28188         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
28189         * MODULES.html.sh (File system functions): Mention module.
28190         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
28191         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
28192         * modules/mkfifoat-tests: New test.
28193         * tests/test-mkfifoat.c: Likewise.
28194
28195         strchrnul: relax license
28196         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
28197         okay.
28198         Reported by Jim Meyering.
28199
28200 2009-09-08  Eric Blake  <ebb9@byu.net>
28201
28202         fstatat: fix compilation on Solaris
28203         * lib/fstatat.c (includes): Add fcntl.h.
28204         Reported by Pádraig Brady.
28205
28206 2009-09-07  Eric Blake  <ebb9@byu.net>
28207
28208         rename: modernize replacement
28209         * modules/rename (Depends-on): Add stdio.
28210         (configure.ac): Declare witness.
28211         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
28212         stdio take care of replacement.
28213         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28214         * modules/stdio (Makefile.am): Substitute them.
28215         * lib/stdio.in.h (rename): Declare replacement.
28216         * lib/rename.c (includes): Allow cross-compilation to non-windows
28217         machines.
28218         * doc/posix-functions/rename.texi (rename): Improve
28219         documentation.
28220
28221         stdio: sort witness names
28222         * modules/stdio (Makefile.am): Sort replacements.
28223         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28224         * lib/stdio.in.h: Likewise.
28225
28226         getcwd: minor cleanups
28227         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
28228         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
28229
28230         openat: provide more convenience names
28231         * modules/faccessat (configure.ac): Add C witness.
28232         * lib/unistd.in.h (readlinkat): Fix typo.
28233         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
28234         convenience wrappers.
28235         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
28236         wrappers in syntax checks.
28237
28238 2009-09-06  Eric Blake  <ebb9@byu.net>
28239
28240         doc: fix comments in recent patches
28241         * lib/faccessat.c: Mention correct function.
28242         * lib/fchmodat.c: Likewise.
28243         * lib/fchownat.c: Likewise.
28244         * lib/symlinkat.c: Likewise.
28245         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
28246         constants.
28247
28248         faccessat, symlinkat: continue cleanup of previous patch
28249         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
28250         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28251         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
28252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
28253         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
28254         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
28255         set.
28256
28257 2009-09-06  Bruno Haible  <bruno@clisp.org>
28258
28259         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
28260         (fstatat): Declare if GNULIB_FSTATAT is set.
28261         (mkdirat): Declare if GNULIB_MKDIRAT is set.
28262         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
28263         (unlinkat): Declare if GNULIB_UNLINKAT is set.
28264         * modules/fcntl-h (Files): Remove m4/openat.m4.
28265         * modules/sys_stat (Files): Remove m4/openat.m4.
28266         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
28267         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
28268         * modules/unistd (Files): Remove m4/openat.m4.
28269         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
28270         GNULIB_OPENAT.
28271         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
28272         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
28273         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
28274         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
28275         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
28276         gl_OPENAT_DEFAULTS.
28277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
28278         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
28279         Don't require gl_OPENAT_DEFAULTS.
28280         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
28281         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
28282         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
28283         (gl_OPENAT_DEFAULTS): Remove macro.
28284
28285 2009-09-06  Bruno Haible  <bruno@clisp.org>
28286
28287         * modules/openat (configure.ac): Remove unneeded witness.
28288
28289 2009-09-06  Bruno Haible  <bruno@clisp.org>
28290
28291         Set errno to ENOSYS when a function is entirely unsupported.
28292         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
28293         EOPNOTSUPP.
28294         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28295         * modules/chown (Depends-on): Remove errno.
28296
28297 2009-09-06  Bruno Haible  <bruno@clisp.org>
28298
28299         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
28300
28301 2009-09-06  Bruno Haible  <bruno@clisp.org>
28302
28303         * lib/sys_stat.in.h: Fix preprocessor command indentation.
28304
28305 2009-09-06  Ben Pfaff  <blp@gnu.org>
28306             Bruno Haible  <bruno@clisp.org>
28307
28308         Work around a glibc bug in strtok_r.
28309         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
28310         Undefine if UNDEFINE_STRTOK_R is set.
28311         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
28312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28313         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
28314         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
28315         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
28316         UNDEFINE_STRTOK_R.
28317         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
28318
28319 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28320
28321         exclude: minor fix
28322         * lib/exclude.c: Include wctype.h
28323
28324 2009-09-06  Akim Demaille  <demaille@gostai.com>
28325
28326         bootstrap: improve error message
28327         * build-aux/bootstrap (find_tool): Upon failure, report the list
28328         of candidates.
28329         Honor the initial value of the envvar.
28330
28331 2009-09-05  Eric Blake  <ebb9@byu.net>
28332
28333         symlinkat: new module
28334         * modules/symlinkat: New file.
28335         * lib/symlinkat.c: Likewise.
28336         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
28337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
28338         * modules/unistd (Makefile.am): Use them.
28339         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
28340         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
28341         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
28342         * MODULES.html.sh (File system functions): Mention module.
28343         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
28344         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28345         * modules/symlinkat-tests: New test.
28346         * tests/test-symlinkat.c: Likewise.
28347
28348         test-openat-safer: add more checks
28349         * tests/test-openat-safer.c (main): Check more code paths.
28350
28351 2009-09-05  Jim Meyering  <meyering@redhat.com>
28352
28353         syntax-check: detect unnecessary inclusion of openat.h
28354         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
28355
28356 2009-09-05  Bruno Haible  <bruno@clisp.org>
28357
28358         Support towlower, towupper.
28359         * doc/posix-functions/towlower.texi: Mention module wctype.
28360         * doc/posix-functions/towupper.texi: Likewise.
28361         * lib/wctype.in.h (towlower, towupper): New functions.
28362         * tests/test-wctype.c: Include stdio.h, stdlib.h.
28363         (ASSERT): New macro.
28364         (e): New variable.
28365         (main): Test also towlower, towupper. Test WEOF argument.
28366         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
28367
28368 2009-09-05  Bruno Haible  <bruno@clisp.org>
28369
28370         Fix conversion behaviour when the input is invalid.
28371         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
28372         mark occurring in first pass of indirect conversion.
28373         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
28374         input.
28375         Found by clang's static analyzer.
28376
28377 2009-09-05  Bruno Haible  <bruno@clisp.org>
28378
28379         * tests/test-striconveh.c (main): Test indirect conversion on platforms
28380         where direct conversion is possible.
28381
28382 2009-09-04  Eric Blake  <ebb9@byu.net>
28383
28384         openat: fail with ENOENT on empty name
28385         * lib/openat-proc.c (openat_proc_name): Special-case the empty
28386         buffer.
28387
28388         link-follow: fix logic bug in prior patch
28389         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
28390         reversed sense of yes and no in prior patch.  Avoid confusing
28391         compilation failure with desired semantics.
28392
28393         link-follow: accomodate mingw and cross-compilation
28394         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
28395         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
28396         cross-compilation results to -1, to make linkat easier to
28397         implement when cross-compiling.  Trivially support mingw.
28398         * modules/link-follow (configure.ac): Call new name.
28399         * NEWS: Mention this.
28400
28401 2009-09-03  Eric Blake  <ebb9@byu.net>
28402
28403         faccessat: compile replacement
28404         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
28405         needed.
28406
28407         fts: fix compilation error
28408         * lib/fts.c (includes): Re-add "openat.h", for
28409         openat_needs_fchdir.
28410
28411         faccessat: new module
28412         * modules/faccessat: New file.
28413         * lib/faccessat.c: Likewise.
28414         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
28415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28416         * modules/unistd (Makefile.am): Use it.
28417         * lib/unistd.in.h (faccessat): Declare it.
28418         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
28419         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
28420         * MODULES.html.sh (File system functions): Mention it.
28421         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
28422         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28423
28424         euidaccess: prefer POSIX over non-standard implementation
28425         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
28426         * lib/euidaccess.c (euidaccess): Use it if available.
28427
28428         openat: make template easier to use
28429         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
28430         AT_FUNC_F2 to be undefined.
28431         (VALIDATE_FLAG): New macro; use it to reject bad flags.
28432         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
28433         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
28434         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
28435         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
28436         Likewise.
28437         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
28438         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
28439         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
28440         Likewise.
28441
28442         openat: declare in POSIX headers
28443         * NEWS: Mention this.
28444         * modules/openat (configure.ac): Declare witnesses.
28445         (Depends-on): Add fcntl-h, sys_stat, unistd.
28446         (Include): Mention correct headers.
28447         * modules/fcntl-h (Depends-on): Add link-warning.
28448         (Files): Add openat.m4.
28449         (Makefile.am): Substitute witnesses.
28450         * modules/sys_stat (Files, Makefile.am): Likewise.
28451         * modules/unistd (Files, Makefile.am): Likewise.
28452         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
28453         (gl_OPENAT_DEFAULTS): New macro.
28454         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
28455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
28456         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
28457         (SYS_STAT_H): Remove unused variable.
28458         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
28459         * lib/fcntl--.h (includes): Remove unneeded header.
28460         * lib/openat-safer.c (includes): Likewise.
28461         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
28462         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
28463         appropriate headers.
28464         (__OPENAT_PREFIX): Delete.
28465         * lib/fcntl.in.h (openat): Provide declaration.
28466         (AT_FDCWD): Fix Solaris bug.
28467         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
28468         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
28469         * lib/fchmodat.c (includes):  Adjust to find declaration.
28470         * lib/fchownat.c (includes): Likewise.
28471         * lib/mkdirat.c (includes): Likewise.
28472         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
28473         still visible.
28474
28475 2009-09-02  Eric Blake  <ebb9@byu.net>
28476
28477         errno: use consistently
28478         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
28479         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
28480         * lib/canonicalize.c (ELOOP): Likewise.
28481         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
28482         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
28483         * lib/lchown.c (EOPNOTSUPP): Likewise.
28484         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
28485         * lib/savewd.c (ESTALE): Likewise.
28486         * lib/settime.c (ENOSYS): Likewise.
28487         * lib/utimens.c (ENOSYS): Likewise.
28488         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
28489         * lib/chdir-safer.c (ELOOP): Likewise.
28490         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
28491         * modules/c-stack (Depends-on): Add errno.
28492         * modules/canonicalize (Depends-on): Likewise.
28493         * modules/chdir-safer (Depends-on): Likewise.
28494         * modules/fdopendir (Depends-on): Likewise.
28495         * modules/inet_ntop (Depends-on): Likewise.
28496         * modules/inet_pton (Depends-on): Likewise.
28497         * modules/lchown (Depends-on): Likewise.
28498         * modules/openat (Depends-on): Likewise.
28499         * modules/savewd (Depends-on): Likewise.
28500         * modules/settime (Depends-on): Likewise.
28501         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
28502
28503         fts: avoid leaking fds
28504         * modules/fts (Depends-on): Add cloexec.
28505         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
28506         flag.
28507
28508         fts: make directory fds more robust
28509         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
28510         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
28511
28512         backupfile, chdir-long, fts, savedir: make safer
28513         * lib/backupfile.c (includes): Use "dirent--.h", since
28514         numbered_backup can write to stderr during readdir.
28515         * lib/savedir.c (includes): Likewise.
28516         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
28517         emulation can write to stderr on failure.
28518         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
28519         * lib/getcwd.c: Document why opendir_safer is unused.
28520         * lib/glob.c: Likewise.
28521         * lib/scandir.c: Likewise.
28522         * lib/openat-proc.c: Likewise, for open_safer.
28523         * modules/backupfile (Depends-on): Add dirent-safer.
28524         * modules/savedir (Depends-on): Likewise.
28525         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
28526         * modules/chdir-long (Depends-on): Add openat-safer.
28527
28528         openat-safer: new module
28529         * modules/openat-safer: New file.
28530         * lib/openat-safer.c: Likewise.
28531         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
28532         * lib/fcntl-safer.h (openat_safer): Declare.
28533         * lib/fcntl--.h (openat): Override.
28534         * MODULES.html.sh (File descriptor based I/O): Mention it.
28535         * lib/openat.h: Add double-inclusion guards.
28536         * lib/openat.c (includes): Only include "fcntl-safer.h", not
28537         "fcntl--.h", so we can implement openat.
28538         * modules/openat-safer-tests: New test.
28539         * tests/test-openat-safer.c: New file.
28540
28541         dirent-safer: new module
28542         * modules/dirent-safer: New file.
28543         * lib/dirent--.h: Likewise.
28544         * lib/dirent-safer.h: Likewise.
28545         * lib/opendir-safer.c: Likewise.
28546         * m4/dirent-safer.m4: Likewise.
28547         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
28548         * modules/dirent-safer-tests: New test.
28549         * tests/test-dirent-safer.c: New file.
28550         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
28551
28552         fdopendir: optimize on mingw
28553         * lib/unistd.in.h (_gl_directory_name): New prototype.
28554         * lib/fchdir.c (_gl_directory_name): Implement it.
28555         (fchdir): Use it to simplify implementation.
28556         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
28557         fchdir, when available, to avoid calling [f]chdir().
28558
28559         fdopendir: split into its own module
28560         * lib/openat.c (fdopendir): Move...
28561         * lib/fdopendir.c: ...into new file.
28562         * modules/fdopendir: New module.
28563         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
28564         * modules/openat (Depends-on): Add fdopendir.
28565         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
28566         fdopendir here.
28567         * modules/savedir (Depends-on): Only need fdopendir, not full
28568         openat.
28569         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
28570         * lib/openat.h (fdopendir): Drop prototype.
28571         * lib/dirent.in.h (fdopendir): Provide prototype.
28572         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
28573         * modules/dirent (Makefile.am): Substitute them.
28574         * MODULES.html.sh (File system functions): Mention it.
28575         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
28576         * modules/fdopendir-tests: New file.
28577         * tests/test-fdopendir.c: Likewise.
28578
28579         fchdir: use more consistent macro convention
28580         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
28581         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
28582         REPLACE_FCHDIR, rather than relying on config.h macros.
28583         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
28584         inside a single make-time REPLACE_FCHDIR block, rather than using
28585         the config.h FCHDIR_REPLACEMENT.
28586         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
28587         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
28588         Manage fstat replacement.
28589         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
28590         REPLACE_FCHDIR.
28591         * modules/sys_stat (Files): Add m4/unistd_h.m4.
28592         (Makefile.am): Substitute REPLACE_FCHDIR.
28593         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
28594         FCHDIR_REPLACEMENT.
28595         * lib/dup-safer.c (dup_safer): Likewise.
28596         * lib/dup2.c (rpl_dup2): Likewise.
28597         * lib/dup3.c (rpl_dup3): Likewise.
28598         * lib/open.c (rpl_open): Likewise.
28599
28600         fchdir: simplify error handling, and support dup3
28601         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
28602         stdbool, malloc-posix, realloc-posix.
28603         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
28604         (ensure_dirs_slot): Return false on allocation failure.
28605         (rpl_dup2): Delete.
28606         (_gl_register_dup): New function.
28607         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
28608         (_gl_register_fd): Close fd on allocation failure.
28609         * lib/fcntl.in.h (_gl_register_fd): Update signature.
28610         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
28611         prototype.
28612         (rpl_dup2_fchdir): Delete prototype.
28613         * lib/open.c (open): Update caller.
28614         * lib/dup2.c (dup2): Track fchdir metadata.
28615         * lib/dup3.c (dup3): Likewise.
28616         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
28617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
28618
28619 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28620
28621         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
28622         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
28623         don't pass arguments to AC_OUTPUT.
28624
28625 2009-09-02  Bruno Haible  <bruno@clisp.org>
28626
28627         * modules/mkdtemp (License): Relicense under LGPLv2+.
28628         Reported by Paolo Bonzini.
28629
28630 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28631
28632         Replace uses of obsolete autoconf macros in Jim's modules.
28633         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
28634         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
28635         can evoke a warning from autoconf when run with -Wobsolete
28636         enabled.  They were declared obsolete for good reasons (see
28637         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
28638         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
28639         should not continue using the deprecated macros.
28640         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
28641         obsolete Autoconf macros with modern counterparts.
28642         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28643         * m4/dos.m4 (gl_AC_DOS): Likewise.
28644         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
28645         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28646         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
28647         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
28648         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
28649         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
28650         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
28651         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
28652         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
28653         Likewise.
28654         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28655         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
28656         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
28657         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
28658         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28659         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
28660
28661 2009-09-01  Eric Blake  <ebb9@byu.net>
28662
28663         fchdir: fix off-by-one bug in previous patch
28664         * lib/fchdir.c (rpl_fstat): Use correct bounds.
28665         (_gl_unregister_fd): Delete useless if.
28666
28667 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
28668
28669         maint.mk: sort the list of syntax-check rules
28670         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
28671         easier to get a sense of progress when the rules are run sequentially
28672         and take a long time.
28673
28674 2009-09-01  Simon Josefsson  <simon@josefsson.org>
28675
28676         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
28677         * modules/netinet_in: Likewise.
28678         * modules/sys_file: Likewise.
28679         * modules/sys_ioctl: Likewise.
28680         * modules/sys_select: Likewise.
28681         * modules/sys_socket: Likewise.
28682         * modules/sys_stat: Likewise.
28683         * modules/sys_time: Likewise.
28684         * modules/sys_times: Likewise.
28685         * modules/sys_utsname: Likewise.
28686         * modules/sys_wait: Likewise.
28687
28688 2009-09-01  Jim Meyering  <meyering@redhat.com>
28689
28690         fts: help ensure that return values are not ignored
28691         * lib/fts_.h (__GNUC_PREREQ): Define.
28692         (__attribute_warn_unused_result__): Define.
28693         (fts_children, fts_close, fts_open, fts_read): Declare with
28694         __attribute_warn_unused_result__.
28695
28696         fts: fts_close now fails also when closing a dir file descriptor fails
28697         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
28698         and propagate to caller, along with errno.
28699
28700         announce-gen: correct formatting in --help output
28701         * build-aux/announce-gen (usage): Move the one-line description in
28702         --help output "up", to where it belongs, just after Usage:.
28703
28704 2009-08-31  Eric Blake  <ebb9@byu.net>
28705
28706         fchdir: port to mingw
28707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
28708         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
28709         opened, then use a substitute.
28710         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
28711         replacement.
28712         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
28713         (_gl_register_fd): No need to check stat if open already filters
28714         all directories.
28715         (fchdir): Fix error condition to match POSIX.
28716         * modules/fchdir (Depends-on): Add sys_stat.
28717         * doc/posix-functions/open.texi (open): Document the limitation.
28718         * modules/fchdir-tests: New file.
28719         * tests/test-fchdir.c: Likewise.
28720
28721         canonicalize: allow cross-testing from cygwin to mingw
28722         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
28723         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
28724         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
28725         Likewise.
28726         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
28727         target does not support symlinks.
28728         * tests/test-canonicalize-lgpl.sh: Likewise.
28729
28730         chown: avoid compilation warning on mingw
28731         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
28732         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
28733         mingw.
28734         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
28735         * modules/chown (Depends-on): Add errno.
28736
28737 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28738
28739         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
28740         command.
28741
28742 2009-08-31  Jim Meyering  <meyering@redhat.com>
28743
28744         canonicalize: remove useless initialization
28745         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
28746         initialization of local, "end".
28747
28748 2009-08-30  Bruno Haible  <bruno@clisp.org>
28749
28750         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
28751         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
28752         ENOSYS.
28753
28754 2009-08-30  Bruno Haible  <bruno@clisp.org>
28755
28756         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
28757         /usr/xpg4/bin/tr when it exists.
28758         * tests/test-pipe-filter-gi1.sh: Likewise.
28759
28760 2009-08-30  Bruno Haible  <bruno@clisp.org>
28761
28762         Work around deficient /usr/bin/id program on Solaris.
28763         * tests/test-file-has-acl.sh (ID): New variable.
28764         * tests/test-set-mode-acl.sh (ID): Likewise.
28765         * tests/test-copy-acl.sh (ID): Likewise.
28766         * tests/test-copy-file.sh (ID): Likewise.
28767
28768 2009-08-30  Bruno Haible  <bruno@clisp.org>
28769
28770         New module 'xstriconveh'.
28771         * lib/xstriconveh.h: New file.
28772         * lib/xstriconveh.c: New file.
28773         * modules/xstriconveh: New file.
28774
28775 2009-08-30  Bruno Haible  <bruno@clisp.org>
28776
28777         Make it easier to use mem_cd_iconveh.
28778         * lib/striconveh.h (iconveh_t): New type.
28779         (iconveh_open, iconveh_close): New declarations.
28780         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28781         with a single 'const iconveh_t *' argument.
28782         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
28783         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
28784         with a single 'const iconveh_t *' argument.
28785         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
28786         * tests/test-striconveh.c (main): Update.
28787         * NEWS: Mention the change.
28788
28789 2009-08-30  Bruno Haible  <bruno@clisp.org>
28790
28791         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
28792         problem.
28793
28794 2009-08-30  Bruno Haible  <bruno@clisp.org>
28795
28796         Work around iconv_open problem on Solaris.
28797         * lib/iconv_open-solaris.gperf: New file.
28798         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
28799         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
28800         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
28801         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
28802         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
28803         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
28804
28805 2009-08-29  Jim Meyering  <meyering@redhat.com>
28806
28807         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
28808         * top/maint.mk (cvs-check): Remove target; it was just an alias
28809         to the better-named vc-diff-check.
28810         (maintainer-distcheck): Remove rule.  It was used only from
28811         the (alpha/beta/major) target, and all of its commands but one
28812         were coreutils-specific.
28813         (vc-dist): Remove rule.
28814         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
28815         Run vc-diff-check, not vc-dist.
28816         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
28817
28818 2009-08-27  Bruno Haible  <bruno@clisp.org>
28819
28820         * tests/test-bitrotate.c (main): Remove test that uses a shift count
28821         of 0.
28822
28823 2009-08-27  Bruno Haible  <bruno@clisp.org>
28824
28825         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
28826         compilers.
28827         * doc/func.texi: Document the SunPRO C bug.
28828
28829 2009-08-27  Bruno Haible  <bruno@clisp.org>
28830
28831         Fix link error on Solaris.
28832         * tests/test-parse-duration.c (xstrdup): Remove function.
28833
28834 2009-08-26  Pádraig Brady  <P@draigbrady.com>
28835
28836         ignore-value: handle pointer types, too
28837         * lib/ignore-value.h (__attribute__): Remove definition.
28838         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
28839         of a more concise and more-often effective "(void) i" statement.
28840         (ignore_ptr): New function to suppress warnings from functions that
28841         return pointers, and to make it explicit that one function doesn't
28842         handle all cases.
28843
28844 2009-08-25  Bruno Haible  <bruno@clisp.org>
28845
28846         dup2: work around a Linux bug.
28847         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
28848         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
28849         * doc/posix-functions/dup2.texi: Mention the Linux bug.
28850         Reported by Simon Josefsson.
28851
28852 2009-08-25  Jim Meyering  <meyering@redhat.com>
28853
28854         libguestfs uses gnulib
28855         * users.txt: Add libguestfs.
28856
28857 2009-08-24  Eric Blake  <ebb9@byu.net>
28858
28859         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
28860         * lib/pipe2.c (includes): Add binary-io.h.
28861         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
28862
28863 2009-08-24  Bruno Haible  <bruno@clisp.org>
28864
28865         Tolerate declared but missing accept4 syscall.
28866         * lib/accept4.c (accept4): Invoke original accept4 function first, if
28867         available.
28868         * lib/sys_socket.in.h (accept4): If the function is already present,
28869         override it.
28870         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
28871         * modules/accept4 (Makefile.am): Compile accept4.c always.
28872         Reported by Paolo Bonzini and Eric Blake.
28873
28874 2009-08-23  Bruno Haible  <bruno@clisp.org>
28875
28876         New module 'accept4'.
28877         * lib/sys_socket.in.h (accept4): New declaration.
28878         * lib/accept4.c: New file.
28879         * m4/accept4.m4: New file.
28880         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28881         GNULIB_ACCEPT4, HAVE_ACCEPT4.
28882         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
28883         HAVE_ACCEPT4.
28884         * modules/accept4: New file.
28885         * doc/glibc-functions/accept4.texi: Mention the new module.
28886
28887 2009-08-24  Jim Meyering  <meyering@redhat.com>
28888
28889         progname: also set global program_invocation_name, when possible
28890         Before this change, a libtool-enabled program that calls glibc's
28891         error function would report the program name as
28892         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
28893         * modules/progname (configure.ac): Check for a declaration of
28894         program_invocation_name.
28895         * lib/progname.c:  Include <errno.h>.
28896         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
28897         Set program_invocation_name.
28898
28899 2009-08-23  Bruno Haible  <bruno@clisp.org>
28900
28901         * lib/dup3.c: Include <string.h>.
28902
28903 2009-08-23  Bruno Haible  <bruno@clisp.org>
28904
28905         * lib/dup3.c (dup3): Test only once whether the system actually exists.
28906         * lib/pipe2.c (pipe2): Likewise.
28907         Suggested by Eric Blake.
28908
28909 2009-08-23  Bruno Haible  <bruno@clisp.org>
28910
28911         Tolerate declared but missing dup3 syscall.
28912         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
28913         * lib/unistd.in.h (dup3): If the function is already present,
28914         override it.
28915         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
28916         * modules/dup3 (Makefile.am): Compile dup3.c always.
28917         Reported by Paolo Bonzini.
28918
28919 2009-08-23  Bruno Haible  <bruno@clisp.org>
28920
28921         Tolerate declared but missing pipe2 syscall.
28922         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
28923         available.
28924         * lib/unistd.in.h (pipe2): If the function is already present,
28925         override it.
28926         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
28927         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
28928         Reported by Paolo Bonzini.
28929
28930 2009-08-23  Bruno Haible  <bruno@clisp.org>
28931
28932         * lib/pipe2.c (pipe2): Move #ifs inside function.
28933
28934 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28935
28936         quotearg: document limitations of quote_these_too
28937         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
28938         those limitations are created.
28939         * lib/quotearg.h (set_char_quoting): Document that digits and
28940         letters that are special after backslash are not permitted.
28941         (quotearg_char): Cross-reference set_char_quoting documentation.
28942
28943 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
28944
28945         quotearg: implement custom_quoting_style
28946         * lib/quotearg.c: (struct quoting_options): Add left_quote and
28947         right_quote fields.
28948         (set_custom_quoting): New public function.
28949         (quotearg_buffer_restyled): Add left_quote and right_quote
28950         arguments, handle them very much like locale quoting, and update
28951         all uses.
28952         (quotearg_n_custom): New public function.
28953         (quotearg_n_custom_mem): New public function.
28954         (quotearg_custom): New public function.
28955         (quotearg_custom_mem): New public function.
28956         * lib/quotearg.h: Prototype and document new public functions.
28957         (enum quoting_style): For escape_quoting_style and
28958         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
28959         ignored even though they're otherwise like c_quoting_style.
28960         Add custom_quoting_style member and document with comparison to
28961         clocale_quoting_style.
28962         * tests/test-quotearg.c (custom_quotes): New array.
28963         (custom_results): New array.
28964         (main): Extend to test custom quoting.
28965
28966 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28967
28968         quotearg: fix right quote escaping when it's in quote_these_too
28969         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
28970         quote, be sure to prepend only one backslash.
28971         * tests/test-quotearg.c (use_quote_double_quotes): New function.
28972         (main): Test it.
28973
28974 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
28975
28976         quotearg-tests: test escaping of embedded locale quotes
28977         * tests/test-quotearg.c (struct result_strings): Add member for
28978         new input.
28979         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
28980         (inputs): Add new input.
28981         (results_g): Add expected results.
28982         (flag_results): Likewise.
28983         (locale_results): Likewise.
28984         (compare_strings): Check those.
28985
28986 2009-08-23  Bruno Haible  <bruno@clisp.org>
28987
28988         Tests for module 'dup3'.
28989         * modules/dup3-tests: New file.
28990         * tests/test-dup3.c: New file.
28991
28992         New module 'dup3'.
28993         * lib/unistd.in.h (dup3): New declaration.
28994         * lib/dup3.c: New file.
28995         * m4/dup3.m4: New file.
28996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
28997         HAVE_DUP3.
28998         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
28999         * modules/dup3: New file.
29000         * doc/glibc-functions/dup3.texi: Mention the new module.
29001
29002 2009-08-23  Bruno Haible  <bruno@clisp.org>
29003
29004         Tweak the dup2 test.
29005         * tests/test-dup2.c (main): Create the test file empty. Verify that an
29006         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
29007         the test file is still empty. Fix argument order of lseek.
29008
29009 2009-08-23  Bruno Haible  <bruno@clisp.org>
29010
29011         Avoid test link errors when the modules getopt-gnu, gettext are used.
29012         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
29013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29014
29015 2009-08-23  Bruno Haible  <bruno@clisp.org>
29016
29017         Fix getdtablesize() on mingw.
29018         * lib/getdtablesize.c (getdtablesize): Implement differently.
29019         * lib/unistd.in.h (getdtablesize): Improve comment.
29020
29021 2009-08-23  Bruno Haible  <bruno@clisp.org>
29022
29023         New module 'mkostemp'.
29024         Based on Ulrich Drepper's 2007-08-10 change in glibc.
29025         * lib/stdlib.in.h (mksotemp): New declaration.
29026         * lib/mkostemp.c: New file, from glibc with modifications.
29027         * lib/tempname.h (GT_FILE): Remove outdated comment.
29028         (gen_tempname): Add flags argument.
29029         * lib/tempname.c (__GT_BIGFILE): Remove macro.
29030         (__GT_FILE): Map to 1.
29031         (small_open, large_open): Remove macros.
29032         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
29033         * lib/mkstemp.c (mkstemp): Update.
29034         * lib/mkdtemp.c (mkdtemp): Likewise.
29035         * m4/mkostemp.m4: New file.
29036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
29037         HAVE_MKOSTEMP.
29038         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
29039         HAVE_MKOSTEMP.
29040         * modules/mkostemp: New file, based on modules/mkstemp.
29041         * doc/glibc-functions/mkostemp.texi: Mention the new module.
29042         * NEWS: Mention the change.
29043
29044 2009-08-23  Bruno Haible  <bruno@clisp.org>
29045
29046         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
29047         Reported by Eric Blake.
29048
29049 2009-08-23  Bruno Haible  <bruno@clisp.org>
29050
29051         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
29052         Reported by Eric Blake.
29053
29054 2009-08-23  Bruno Haible  <bruno@clisp.org>
29055
29056         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
29057         * modules/pipe2 (Depends-on): Likewise.
29058
29059 2009-08-23  Eric Blake  <ebb9@byu.net>
29060
29061         fcntl-h: add O_TTY_INIT support
29062         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
29063         * tests/test-fcntl-h.c (o): Test it.
29064         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29065
29066         fcntl-h: rename from fcntl, in preparation for fcntl(2)
29067         * modules/fcntl: Move <fcntl.h> header replacement...
29068         * modules/fcntl-h: ...to new name, so as not to collide with
29069         like-named function.
29070         * tests/test-fcntl.c: Rename...
29071         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
29072         * modules/fcntl-tests: Rename...
29073         * modules/fcntl-h-tests: ...to this.  Update test file name.
29074         * modules/chdir-long (Depends-on): Update clients.
29075         * modules/chdir-safer (Depends-on): Likewise.
29076         * modules/fcntl-safer (Depends-on): Likewise.
29077         * modules/fts (Depends-on): Likewise.
29078         * modules/mkancesdirs (Depends-on): Likewise.
29079         * modules/mkdir-p (Depends-on): Likewise.
29080         * modules/open (Depends-on): Likewise.
29081         * modules/savewd (Depends-on): Likewise.
29082         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
29083         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29084
29085 2009-08-22  Bruno Haible  <bruno@clisp.org>
29086
29087         * modules/binary-io (License): Relicense under LGPL.
29088         * modules/pipe2 (License): Likewise.
29089
29090 2009-08-22  Bruno Haible  <bruno@clisp.org>
29091
29092         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
29093         return value.
29094         * lib/pipe-filter-gi.c (filter_init): Likewise.
29095         Reported by Eric Blake.
29096
29097 2009-08-22  Bruno Haible  <bruno@clisp.org>
29098
29099         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
29100         * modules/pipe (Depends-on): Add pipe2.
29101
29102 2009-08-22  Bruno Haible  <bruno@clisp.org>
29103
29104         Tests for module 'pipe2'.
29105         * modules/pipe2-tests: New file.
29106         * tests/test-pipe2.c: New file.
29107
29108         New module 'pipe2'.
29109         * lib/unistd.in.h (pipe2): New declaration.
29110         * lib/pipe2.c: New file.
29111         * m4/pipe2.m4: New file.
29112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
29113         HAVE_PIPE2.
29114         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
29115         * modules/pipe2: New file.
29116         * doc/glibc-functions/pipe2.texi: Mention the new module.
29117
29118 2009-08-22  Bruno Haible  <bruno@clisp.org>
29119
29120         Reference some new glibc functions.
29121         * doc/glibc-functions/accept4.texi: New file.
29122         * doc/glibc-functions/dup3.texi: New file.
29123         * doc/glibc-functions/mkostemp.texi: New file.
29124         * doc/glibc-functions/pipe2.texi: New file.
29125         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
29126         (Glibc sys/socket.h): Refer to accept4.
29127         (Glibc unistd.h): Refer to dup3, pipe2.
29128         Reported by Eric Blake.
29129
29130 2009-08-22  Jim Meyering  <meyering@redhat.com>
29131             Bruno Haible  <bruno@clisp.org>
29132
29133         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
29134         This makes it so packages using automake-1.11's silent-rules option
29135         can print e.g., a single "GEN    configmake.h" line, rather than
29136         the 30+ statements that perform the job.  If you want to see the
29137         actual commands, you can still run "make V=1".
29138         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
29139         so that make output is abbreviated when those variables are defined
29140         appropriately.
29141         * modules/argz: Likewise.
29142         * modules/arpa_inet: Likewise.
29143         * modules/byteswap: Likewise.
29144         * modules/configmake: Likewise.
29145         * modules/dirent: Likewise.
29146         * modules/errno: Likewise.
29147         * modules/fcntl: Likewise.
29148         * modules/float: Likewise.
29149         * modules/fnmatch: Likewise.
29150         * modules/getopt-posix: Likewise.
29151         * modules/glob: Likewise.
29152         * modules/iconv_open: Likewise.
29153         * modules/inttypes: Likewise.
29154         * modules/localcharset: Likewise.
29155         * modules/locale: Likewise.
29156         * modules/math: Likewise.
29157         * modules/netdb: Likewise.
29158         * modules/netinet_in: Likewise.
29159         * modules/poll: Likewise.
29160         * modules/posix_spawnp-tests: Likewise.
29161         * modules/sched: Likewise.
29162         * modules/search: Likewise.
29163         * modules/selinux-h: Likewise.
29164         * modules/signal: Likewise.
29165         * modules/spawn: Likewise.
29166         * modules/stdarg: Likewise.
29167         * modules/stdbool: Likewise.
29168         * modules/stddef: Likewise.
29169         * modules/stdint: Likewise.
29170         * modules/stdio: Likewise.
29171         * modules/stdlib: Likewise.
29172         * modules/string: Likewise.
29173         * modules/strings: Likewise.
29174         * modules/sys_file: Likewise.
29175         * modules/sys_ioctl: Likewise.
29176         * modules/sys_select: Likewise.
29177         * modules/sys_socket: Likewise.
29178         * modules/sys_stat: Likewise.
29179         * modules/sys_time: Likewise.
29180         * modules/sys_times: Likewise.
29181         * modules/sys_utsname: Likewise.
29182         * modules/sys_wait: Likewise.
29183         * modules/sysexits: Likewise.
29184         * modules/time: Likewise.
29185         * modules/unistd: Likewise.
29186         * modules/wchar: Likewise.
29187         * modules/wctype: Likewise.
29188
29189 2009-08-22  Jim Meyering  <meyering@redhat.com>
29190
29191         announce-gen: detect write failure
29192         * build-aux/announce-gen: Add Coda at end.
29193         Remove equivalent-but-more-verbose block at top.
29194
29195 2009-08-19  Akim Demaille  <demaille@gostai.com>
29196
29197         bootstrap: --help to stdout.
29198         * bootstrap (usage): Don't send --help to stderr.
29199         Use a here doc instead of a long string.
29200
29201 2009-08-21  Eric Blake  <ebb9@byu.net>
29202
29203         test-popen-safer: split from test-popen
29204         * tests/test-popen.c (main): Move...
29205         * tests/test-popen.h: ...into new file.
29206         * tests/test-popen-safer2.c: New file.
29207         * modules/popen-tests (Files): Add test-popen.h.
29208         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
29209         Suggested by Bruno Haible.
29210
29211         test-fcntl-safer: split from test-open
29212         * tests/test-open.c (main): Move...
29213         * tests/test-open.h: ...into new file.
29214         * tests/test-fcntl-safer.c: New file.
29215         * modules/open-tests (Files): Add test-open.h.
29216         * modules/fcntl-safer-tests: New file.
29217         Suggested by Bruno Haible.
29218
29219         test-fopen-safer: split from test-fopen
29220         * tests/test-fopen.c (main): Move...
29221         * tests/test-fopen.h: ...into new file.
29222         * tests/test-fopen-safer.c: New file.
29223         * modules/fopen-tests (Files): Add test-fopen.h.
29224         * modules/fopen-safer-tests: New file.
29225         Suggested by Bruno Haible.
29226
29227 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29228
29229         popen-safer: test O_CLOEXEC at run-time.
29230         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
29231
29232 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
29233
29234         fcntl: move more flags to the header
29235         * lib/cloexec.c: Do not define FD_CLOEXEC here.
29236         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
29237         * lib/fcntl.in.h: Do both things here.
29238
29239 2009-08-21  Jim Meyering  <meyering@redhat.com>
29240
29241         consistently remove $@-t before redirecting to it
29242         * modules/argz: Remove $@-t and $@ before redirecting to the former.
29243         * modules/alloca-opt: Likewise.
29244         * modules/byteswap: Likewise.
29245         * modules/fnmatch: Likewise.
29246         * modules/getopt-posix: Likewise.
29247         * modules/glob: Likewise.
29248         * modules/poll: Likewise.
29249         * modules/posix_spawnp-tests: Likewise.
29250         * modules/sys_socket: Likewise.
29251         * modules/sysexits: Likewise.
29252
29253 2009-08-21  Eric Blake  <ebb9@byu.net>
29254
29255         popen: simplify access to original popen
29256         * lib/popen.c (rpl_popen): No need to worry about popen being a
29257         macro.
29258         Reported by Bruno Haible.
29259
29260 2009-08-20  Eric Blake  <ebb9@byu.net>
29261
29262         build: avoid some compiler warnings
29263         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
29264         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
29265         type.
29266         (new_exclude_segment, excluded_file_pattern_p)
29267         (excluded_file_name_p): Reduce scope.
29268         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
29269         old-style declaration.
29270
29271 2009-08-20  Simon Josefsson  <simon@josefsson.org>
29272
29273         * tests/test-exclude1.sh: Handle Windows EOL.
29274         * tests/test-exclude2.sh: Likewise.
29275         * tests/test-exclude3.sh: Likewise.
29276         * tests/test-exclude4.sh: Likewise.
29277         * tests/test-exclude5.sh: Likewise.
29278         * tests/test-exclude6.sh: Likewise.
29279         * tests/test-exclude7.sh: Likewise.
29280
29281 2009-08-19  Akim Demaille  <demaille@gostai.com>
29282
29283         bootstrap: find sha1sum when named gsha1sum.
29284         * bootstrap (find_tool): New.
29285         ($SHA1SUM): New.
29286         Use it.
29287
29288 2009-08-20  Jim Meyering  <meyering@redhat.com>
29289
29290         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
29291         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
29292         expression that converts "." in a file name to "\." in the resulting
29293         regexp.  Start with a dummy statement, so that prior shell variable
29294         definitions are expanded portably.  Reported by Simon Josefsson.
29295
29296 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
29297
29298         Fix polling for writeability of a screen buffer.
29299         * lib/poll.c: Distinguish input and screen buffers for the
29300         Win32 implementation.
29301         * lib/select.c: Likewise.
29302
29303 2009-08-19  Eric Blake  <ebb9@byu.net>
29304
29305         popen-safer: prevent popen from clobbering std descriptors
29306         * modules/popen-safer: New file.
29307         * lib/popen-safer.c: Likewise.
29308         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
29309         * lib/stdio--.h (popen): Provide override.
29310         * lib/stdio-safer.h (popen_safer): Provide declaration.
29311         * tests/test-popen.c (includes): Partially test this.
29312         * modules/popen-safer-tests: New file, for more tests.
29313         * tests/test-popen-safer.c: Likewise.
29314         * MODULES.html.sh (file stream based Input/Output): Mention it.
29315
29316         tests: test some of the *-safer modules
29317         * modules/fopen-safer (Depends-on): Add fopen.
29318         * modules/fcntl-safer (Depends-on): Add fcntl.
29319         * modules/stdlib-safer (Depends-on): Add stdlib.
29320         (configure.ac): Set indicator.
29321         * modules/unistd-safer (configure.ac): Likewise.
29322         * modules/tmpfile-safer (configure.ac): Likewise.
29323         (Depends-on): Add tmpfile.
29324         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
29325         active.
29326         * tests/test-fopen.c (includes): Test safer versions when they are
29327         in use.
29328         * tests/test-open.c (includes): Likewise.
29329
29330         popen: fix cygwin 1.5 bug when stdin closed
29331         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
29332         * modules/popen: New file.
29333         * modules/popen-tests: Likewise.
29334         * tests/test-popen.c: Likewise.
29335         * m4/popen.m4: Likewise.
29336         * lib/popen.c: Likewise.
29337         * lib/stdio.in.h (popen): New declaration.
29338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
29339         * modules/stdio (Makefile.am): Likewise.
29340         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
29341
29342 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
29343
29344         maint.mk: give full control over update-copyright exclusions
29345         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
29346         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
29347         (update-copyright): Don't force inclusion of top-level
29348         ChangeLog.  Don't force exclusion of all COPYING files, but make
29349         them the default exclusion instead.
29350
29351 2009-08-16  Bruno Haible  <bruno@clisp.org>
29352
29353         Fix test failures on Solaris 10.
29354         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
29355         tests when Solaris iconv() is used.
29356         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29357         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29358         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29359         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29360         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29361
29362 2009-08-16  Bruno Haible  <bruno@clisp.org>
29363
29364         Fix test failures on Solaris 10.
29365         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
29366         'tr' program and pass it as first argument.
29367         * tests/test-pipe-filter-gi1.sh: Likewise.
29368         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
29369         program as first argument.
29370         * tests/test-pipe-filter-gi1.c (main): Likewise.
29371
29372 2009-08-16  Eric Blake  <ebb9@byu.net>
29373
29374         fpurge: fix previous commits
29375         * modules/fpurge (Makefile.am): Make replacement conditional,
29376         partially reverting 2007-04-29 change; missed in previous
29377         attempt.
29378         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
29379         is missing.
29380
29381 2009-08-16  Bruno Haible  <bruno@clisp.org>
29382
29383         Clarify fpurge's effect on the file position.
29384         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
29385         * tests/test-fpurge.c (main): Make a second pass for checking the file
29386         position.
29387
29388 2009-08-16  Bruno Haible  <bruno@clisp.org>
29389
29390         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
29391         declaration of fpurge is missing.
29392         * tests/test-fpurge.c (main): Check that the file has not more contents
29393         than expected. Close the file before removing it.
29394
29395 2009-08-15  Eric Blake  <ebb9@byu.net>
29396
29397         fpurge: don't wrap working cygwin implementation
29398         * lib/fpurge.c (fpurge): Fix comment typo.
29399         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
29400         1.7 to avoid replacement.
29401         * tests/test-fpurge.c (main): Enhance test.
29402
29403 2009-08-15  Eric Blake  <ebb9@byu.net>
29404         and Jim Meyering  <meyering@redhat.com>
29405
29406         test-update-copyright: skip if perl is insufficient
29407         * tests/test-update-copyright.sh: Failure to run maintainer tool
29408         should not cause testsuite failure on cygwin 1.5.
29409
29410 2009-08-14  Eric Blake  <ebb9@byu.net>
29411
29412         doc: mention more functions added in cygwin 1.7.0
29413         * doc/posix-headers/limits.texi (limits.h): Update for recent
29414         cygwin additions.
29415         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
29416         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
29417         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
29418         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
29419         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
29420
29421 2009-08-14  Eric Blake  <ebb9@byu.net>
29422
29423         maint.mk: simplify update-copyright rule
29424         * top/maint.mk (update-copyright-local): Delete, and document how
29425         to do it in cfg.mk instead.
29426         (update-copyright-exclude-regexp): Delete, and document how to do
29427         it in .x-update-copyright instead.
29428         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
29429         exclude ChangeLog.
29430
29431 2009-08-14  Bruno Haible  <bruno@clisp.org>
29432
29433         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
29434
29435 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29436
29437         maint.mk: support update-copyright-env
29438         * top/maint.mk (update-copyright-env): Define place-holder.
29439         (update-copyright): Expand $(update-copyright-env) before
29440         invoking update-copyright.
29441
29442 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29443
29444         update-copyright: implement forced reformatting
29445         * build-aux/update-copyright: Implement and document
29446         UPDATE_COPYRIGHT_FORCE.
29447         * tests/test-update-copyright.sh: Test it.
29448
29449 2009-08-14  Eric Blake  <ebb9@byu.net>
29450         and Bruno Haible  <bruno@clisp.org>
29451
29452         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
29453         * tests/test-locale.c: Revert previous patch related to NULL.
29454         * tests/test-stdio.c: Likewise.
29455         * tests/test-stdlib.c: Likewise.
29456         * tests/test-string.c: Likewise.
29457         * tests/test-unistd.c: Likewise.
29458         * modules/time-tests (Depends-on): Add verify.
29459         * modules/wchar-tests (Depends-on): Likewise.
29460         * tests/test-time.c: Test for NULL compliance.
29461         * tests/test-wchar.c: Likewise.
29462         * modules/locale (Depends-on): Add stddef.
29463         * modules/stdio (Depends-on): Likewise.
29464         * modules/stdlib (Depends-on): Likewise.
29465         * modules/string (Depends-on): Likewise.
29466         * modules/time (Depends-on): Likewise.
29467         * modules/unistd (Depends-on): Likewise.
29468         * modules/wchar (Depends-on): Likewise.
29469         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
29470         * lib/stdlib.in.h (includes): Likewise.
29471         * lib/string.in.h (includes): Likewise.
29472         * lib/time.in.h (includes): Likewise.
29473         * lib/unistd.in.h (includes): Likewise.
29474         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
29475         replaced.
29476         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29477         * m4/stddef_h.m4: New file.
29478         * modules/stddef: Likewise.
29479         * lib/stddef.in.h: Likewise.
29480         * modules/stddef-tests: Likewise.
29481         * tests/test-stddef.c: Likewise.
29482         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
29483         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
29484         * doc/posix-headers/locale.texi (locale.h): Likewise.
29485         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
29486         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29487         * doc/posix-headers/string.texi (string.h): Likewise.
29488         * doc/posix-headers/time.texi (time.h): Likewise.
29489         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
29490         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
29491
29492 2009-08-14  Eric Blake  <ebb9@byu.net>
29493
29494         doc: improve git diff of texinfo files
29495         * .gitattributes: Add rule for *.texi files, with hint on how to
29496         use it.
29497         Copied from m4, and based on a report by Bruno Haible.
29498
29499 2009-08-14  Bruno Haible  <bruno@clisp.org>
29500
29501         Disable multithread support by default on Cygwin 1.5.x for real.
29502         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
29503
29504 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
29505
29506         update-copyright: much ado about intervals
29507         * build-aux/update-copyright: Implement and document
29508         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
29509         of copyright year intervals.
29510         Also, document UPDATE_COPYRIGHT_YEAR.
29511         * tests/test-update-copyright.sh: Test it.
29512
29513         update-copyright: convert 2-digit to 4-digit years
29514         * build-aux/update-copyright: Implement and document.
29515         * tests/test-update-copyright.sh: Update.
29516
29517 2009-08-14  Jim Meyering  <meyering@redhat.com>
29518
29519         test-exclude: avoid coreutils "make check" failure
29520         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
29521         just as in test-argmatch.c.
29522
29523 2009-08-13  Eric Blake  <ebb9@byu.net>
29524
29525         test-dup2: fix bad assumption
29526         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
29527         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
29528
29529         test-version-etc: fix CRLF portability issue
29530         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
29531         recognize \r.
29532         * tests/test-argp-version-etc-1.sh: Likewise.
29533
29534         getopt: update client modules
29535         * modules/argp (Depends-on): Use getopt-gnu.
29536         * modules/git-merge-changelog (Depends-on): Likewise.
29537         * modules/long-options (Depends-on): Likewise.
29538         * modules/xstrtol (Depends-on): Likewise.
29539
29540 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29541
29542         * tests/test-version-etc.sh: Don't fail on different
29543         project/version.  Don't fail on CRLF differences.  Rewrite to use
29544         multiple -e instead of multiple sed forks, suggested by Eric Blake
29545         <ebb9@byu.net>.
29546         * tests/test-argp-version-etc-1.sh: Likewise.
29547
29548 2009-08-13  Simon Josefsson  <simon@josefsson.org>
29549
29550         * tests/test-version-etc.sh: Don't fail on different
29551         project/version.
29552
29553 2009-08-12  Bruno Haible  <bruno@clisp.org>
29554
29555         Tests for modules 'getopt-posix', 'getopt-gnu'.
29556         * modules/getopt-posix-tests: New file.
29557         * tests/test-getopt.c: New file.
29558         * tests/test-getopt.h: New file.
29559         * tests/test-getopt_long.h: New file.
29560
29561         New modules 'getopt-posix', 'getopt-gnu'.
29562         * modules/getopt-gnu: New file, renamed from modules/getopt.
29563         * modules/getopt-posix: New file.
29564         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
29565         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
29566         (gl_GETOPT): Remove macro.
29567         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
29568         Disable the test against BSD systems that declare optreset. Test
29569         against mingw bug. Test against lack of support of optional arguments
29570         on many platforms.
29571         * doc/glibc-headers/getopt.texi: Update module name and list of
29572         relevant platforms.
29573         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
29574         'getopt-gnu' and more portability problems.
29575         * NEWS: Mention the changes.
29576
29577 2009-08-12  Bruno Haible  <bruno@clisp.org>
29578
29579         Ensure that optarg etc. get declared by <unistd.h>.
29580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
29581         AC_USE_SYSTEM_EXTENSIONS.
29582         * modules/getopt (Depends-on): Add 'extensions'.
29583
29584 2009-08-12  Bruno Haible  <bruno@clisp.org>
29585
29586         Avoid test link errors.
29587         * modules/pipe-filter-ii-tests (Makefile.am): Define
29588         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
29589         * modules/pipe-filter-gi-tests (Makefile.am): Define
29590         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
29591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29592
29593 2009-08-12  Bruno Haible  <bruno@clisp.org>
29594
29595         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
29596         gl_GETOPT_SUBSTITUTE before.
29597         (gl_GETOPT): Use it.
29598         * m4/argp.m4 (gl_ARGP): Update.
29599         Reported by Sergey Poznyakoff.
29600
29601         * m4/getopt.m4: Reorder macros.
29602         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
29603         (gl_GETOPT_SUBSTITUTE): Remove macro.
29604
29605 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29606
29607         Minor improvement in gitlog-to-changelog
29608
29609         * build-aux/gitlog-to-changelog: New option `--format' makes
29610         output format string configurable.
29611
29612 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
29613
29614         Optimize exclude: use hash tables for non-wildcard patterns.
29615
29616         * lib/exclude.c: Include hash.h and mbuiter.h
29617         (struct exclude_pattern, exclude_segment): New data types.
29618         (struct exclude): Rewrite.
29619         (fnmatch_pattern_has_wildcards): New function.
29620         (new_exclude_segment, free_exclude_segment): New functions.
29621         (excluded_file_pattern_p, excluded_file_name_p): New functions.
29622         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
29623         * lib/exclude.h (is_fnmatch_pattern): New prototype.
29624         * modules/exclude: Depend on hash and mbuiter.
29625
29626         * modules/exclude-tests: New file.
29627         * tests/test-exclude.c: New file.
29628         * tests/test-exclude1.sh: New file.
29629         * tests/test-exclude2.sh: New file.
29630         * tests/test-exclude3.sh: New file.
29631         * tests/test-exclude4.sh: New file.
29632         * tests/test-exclude5.sh: New file.
29633         * tests/test-exclude6.sh: New file.
29634         * tests/test-exclude7.sh: New file.
29635
29636 2009-08-12  Bruno Haible  <bruno@clisp.org>
29637
29638         Ensure that getopt() gets declared by <unistd.h>.
29639         * lib/unistd.in.h: Conditionally include getopt.h.
29640         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
29641         Set GNULIB_UNISTD_H_GETOPT.
29642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29643         GNULIB_UNISTD_H_GETOPT.
29644         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
29645
29646 2009-08-12  Bruno Haible  <bruno@clisp.org>
29647
29648         Clarify logic.
29649         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
29650         gl_replace_getopt instead of GETOPT_H.
29651
29652 2009-08-12  Bruno Haible  <bruno@clisp.org>
29653
29654         * m4/getopt.m4: Add comments.
29655
29656 2009-08-12  Bruno Haible  <bruno@clisp.org>
29657
29658         Disable multithread support by default on Cygwin 1.5.x.
29659         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
29660         set gl_use_threads=no if not specified otherwise.
29661
29662 2009-08-11  Bruno Haible  <bruno@clisp.org>
29663
29664         Avoid compilation error on NetBSD 5.0.
29665         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
29666         * tests/test-stdio.c: Likewise.
29667         * tests/test-stdlib.c: Likewise.
29668         * tests/test-string.c: Likewise.
29669         * tests/test-unistd.c: Likewise.
29670         Reported by Greg Troxel <gdt@ir.bbn.com>
29671         at <https://savannah.gnu.org/support/?106973>.
29672
29673 2009-08-11  Bruno Haible  <bruno@clisp.org>
29674
29675         * modules/dup2-tests (Depends-on): Remove close.
29676
29677         Undo 2009-07-19 commit.
29678         * modules/acl-tests (Depends-on): Remove close.
29679         * modules/binary-io-tests (Depends-on): Likewise.
29680         * modules/closein-tests (Depends-on): Likewise.
29681         * modules/flock-tests (Depends-on): Likewise.
29682         * modules/fsync-tests (Depends-on): Likewise.
29683         * modules/lseek-tests (Depends-on): Likewise.
29684         * modules/pipe-tests (Depends-on): Likewise.
29685         * modules/posix_spawn-tests (Depends-on): Likewise.
29686         * modules/posix_spawnp-tests (Depends-on): Likewise.
29687         * modules/stat-time-tests (Depends-on): Likewise.
29688         * modules/yesno-tests (Depends-on): Likewise.
29689
29690 2009-08-10  Bruno Haible  <bruno@clisp.org>
29691
29692         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
29693
29694 2009-08-10  Bruno Haible  <bruno@clisp.org>
29695
29696         Fix a gcc warning.
29697         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
29698
29699 2009-08-10  Bruno Haible  <bruno@clisp.org>
29700
29701         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
29702         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
29703         not only the first time.
29704         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
29705         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
29706         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
29707         is 1, not only the the first time.
29708
29709 2009-08-10  Bruno Haible  <bruno@clisp.org>
29710
29711         Make it possible to use module 'gethostname' without module 'close'.
29712         * lib/unistd.in.h (close): Evoke a link error only if
29713         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29715         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29716         * modules/unistd (Makefile.am): Substitute
29717         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29718         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
29719         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
29720         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29721         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29722         * modules/sys_ioctl (Makefile.am): Substitute
29723         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29724         * modules/socket (configure.ac): On native Windows, set
29725         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
29726         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
29727         Reported by Sam Steingold <sds@gnu.org>.
29728
29729 2009-08-10  Bruno Haible  <bruno@clisp.org>
29730
29731         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
29732         * modules/ioctl (configure.ac): Likewise.
29733
29734 2009-08-10  Bruno Haible  <bruno@clisp.org>
29735
29736         Avoid collision between gnulib wrapper and libintl wrapper.
29737         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
29738         already defined in intl/printf.c.
29739         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
29740         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
29741
29742 2009-08-09  Bruno Haible  <bruno@clisp.org>
29743
29744         Make <sys/select.h> really self-contained, also on Solaris 10.
29745         * lib/sys_select.in.h: Include <string.h>.
29746         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
29747         Solaris 10 problem.
29748         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
29749         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
29750         Reported by Jim Meyering.
29751
29752 2009-08-09  Bruno Haible  <bruno@clisp.org>
29753
29754         Avoid warnings from 'aclocal' that are due to a use of macro name
29755         AM_XGETTEXT_OPTION that is not defined in automake.
29756         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
29757         automake.
29758         * modules/error (configure.ac): Likewise.
29759         * modules/propername (configure.ac): Likewise.
29760         * modules/vasprintf (configure.ac): Likewise.
29761         * modules/verror (configure.ac): Likewise.
29762         * modules/xprintf (configure.ac): Likewise.
29763         * modules/xvasprintf (configure.ac): Likewise.
29764
29765 2009-08-08  Bruno Haible  <bruno@clisp.org>
29766
29767         Avoid compilation error in C++ mode.
29768         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
29769         Reported by Sam Steingold <sds@gnu.org>.
29770
29771 2009-08-08  Bruno Haible  <bruno@clisp.org>
29772
29773         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
29774         for the various Unix platforms.
29775         * doc/posix-headers/limits.texi: Update platforms list regarding
29776         HOST_NAME_MAX.
29777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29778
29779 2009-08-07  Jim Meyering  <meyering@redhat.com>
29780
29781         selinux-at: fix typo in a comment
29782         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
29783         Spotted by Paolo Bonzini.
29784
29785         selinux-at: remove redundant m4 code, add documentation
29786         * modules/selinux-at (configure.ac): Remove redundant code.
29787         LIB_SELINUX is already set via the dependent module, selinux-h.
29788         (Include): Add quotes around selinux-at.h.
29789         * lib/selinux-at.h: Add documentation.
29790         Reported by Bruno Haible in
29791         http://marc.info/?l=gnulib-bug&m=124958988300749
29792
29793 2009-08-07  Bruno Haible  <bruno@clisp.org>
29794
29795         Avoid link error on MacOS X 10.3 and 10.4.
29796         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
29797         on non-ELF systems.
29798         * lib/argp-pv.c (argp_program_version): Likewise.
29799         Reported by Simon Josefsson.
29800
29801 2009-08-07  Simon Josefsson  <simon@josefsson.org>
29802
29803         * tests/test-version-etc.sh: Use $EXEEXT.
29804
29805 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
29806
29807         update-copyright: update documentation to point to maint.mk
29808         * build-aux/update-copyright: Here.
29809
29810 2009-08-06  Jim Meyering  <meyering@redhat.com>
29811
29812         maint.mk: support update-copyright-local
29813         * top/maint.mk (update-copyright-local): Define place-holder.
29814         (update-copyright): Depend on $(update-copyright-local).
29815
29816 2009-08-06  Jim Meyering  <meyering@redhat.com>
29817
29818         selinux-at: new module
29819         Initially written for coreutils, this module will soon be
29820         used by findutils, too.
29821         * MODULES.html.sh [Misc]: Add selinux-at.
29822         * lib/selinux-at.h: New file, from coreutils.
29823         * lib/selinux-at.c: Likewise.
29824         * modules/selinux-at: Likewise.
29825         (License): Change from LGPL to GPL, since it depends
29826         on the GPL'd openat module.
29827
29828         doc: update README
29829         * README: Remove references to cogito.
29830         Remove cvs-repo-updating instructions from 2007.
29831         Don't imply that CVS is better if you have limited disk space.
29832
29833 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29834
29835         update-copyright: support C-style comments
29836         * build-aux/update-copyright: Implement and document.
29837         * tests/test-update-copyright.sh: Test.
29838
29839 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29840
29841         update-copyright: support omitted "(C)"
29842         * build-aux/update-copyright: Implement and document.  Also,
29843         allow variable whitespace before "(C)".
29844         * tests/test-update-copyright.sh: Test.
29845
29846 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29847
29848         update-copyright: don't trip on non-FSF copyright statements
29849         * build-aux/update-copyright: Fix so that the first correctly
29850         formatted FSF copyright statement is recognized no matter what
29851         appears before it.  Update documentation.
29852         * tests/test-update-copyright.sh: Test that.
29853
29854 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29855
29856         update-copyright: clean up code a little
29857         * build-aux/update-copyright: Append "_re" to the name of any
29858         variable holding a regular expression.
29859         Replace "old" and "new" with "stmt" in variable names.
29860         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
29861         handled correctly.
29862         Format code more consistently.
29863
29864 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
29865
29866         update-copyright-tests: improve portability
29867         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
29868         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
29869
29870 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29871
29872         update-copyright: support @copyright{} and &copy;
29873         * build-aux/update-copyright: Implement and document.
29874         * tests/test-update-copyright.sh: Test.
29875
29876 2009-08-04  Jim Meyering  <meyering@redhat.com>
29877
29878         update-copyright-tests: correctly test EOL=\r\n handling
29879         * tests/test-update-copyright.sh: Put \r at the end of some lines
29880         for the dos-eol tests.  Based on a patch by Joel E. Denny.
29881
29882         maint.mk: make update-copyright exclusion list more configurable
29883         * top/maint.mk (update-copyright): Default to excluding COPYING,
29884         but allow an override, in case someone does want to update that file.
29885
29886         maint.mk: don't update copyright date in COPYING
29887         * top/maint.mk (update-copyright): Exclude COPYING.
29888
29889         maint.mk: add a copyright-updating rule
29890         * top/maint.mk (update-copyright): New rule.
29891         Derived from coreutils/Makefile.am.
29892
29893         update-copyright: rename some variables
29894         * build-aux/update-copyright: Rename a few variables for clarity.
29895         Tweak syntax.  List Joel E. Denny as coauthor.
29896
29897 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
29898
29899         update-copyright: fix bug for 2-digit last year and add tests
29900         * build-aux/update-copyright: Fix bug.
29901         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
29902         specified.
29903         * modules/update-copyright-tests: New
29904         * tests/test-update-copyright.sh: New.
29905
29906 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29907
29908         update-copyright: handle leading tabs in line prefix
29909         * build-aux/update-copyright: Count leading tabs as 8 spaces
29910         when computing margin.  This helps with the formatting of
29911         ChangeLogs, for example.
29912         Fix documentation a little.
29913
29914 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29915
29916         update-copyright: support EOL=\r\n
29917         * build-aux/update-copyright: Implement that.
29918
29919 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
29920
29921         update-copyright: automatically format copyright statements
29922         * build-aux/update-copyright: Implement that.
29923         Also, be a little more predictable and safer by always failing
29924         when the full copyright format is not perfectly recognized as an
29925         unbroken whole.  Discussed at
29926         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
29927         Rewrite documentation.
29928
29929 2009-08-03  Bruno Haible  <bruno@clisp.org>
29930
29931         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
29932
29933 2009-08-02  Bruno Haible  <bruno@clisp.org>
29934
29935         Tests for module 'uname'.
29936         * modules/uname-tests: New file.
29937         * tests/test-uname.c: New file.
29938
29939         New module 'uname'.
29940         * lib/uname.c: New file.
29941         * m4/uname.m4: New file.
29942         * modules/uname: New file.
29943         * doc/posix-functions/uname.texi: Mention the new module.
29944
29945 2009-08-02  Bruno Haible  <bruno@clisp.org>
29946
29947         Tests for module 'sys_utsname'.
29948         * modules/sys_utsname-tests: New file.
29949         * tests/test-sys_utsname.c: New file.
29950
29951         New module 'sys_utsname'.
29952         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
29953         * m4/sys_utsname_h.m4: New file.
29954         * modules/sys_utsname: New file.
29955         * doc/posix-headers/sys_utsname.texi: Mention the new module.
29956
29957 2009-08-02  Bruno Haible  <bruno@clisp.org>
29958
29959         Implicitly initialize the sockets library.
29960         * lib/gethostname.c: Include sockets.h.
29961         (rpl_gethostname): Invoke gl_sockets_startup.
29962         * lib/socket.c: Include sockets.h.
29963         (rpl_socket): Invoke gl_sockets_startup.
29964         * modules/gethostname (Depends-on): Add sockets.
29965         * modules/socket (Depends-on): Likewise.
29966         * tests/test-poll.c: Don't include sockets.h.
29967         (main): Don't invoke gl_sockets_startup.
29968         * tests/test-select.c: Don't include sockets.h.
29969         (main): Don't invoke gl_sockets_startup.
29970
29971 2009-08-02  Bruno Haible  <bruno@clisp.org>
29972
29973         Allow multiple calls to gl_sockets_startup.
29974         * lib/sockets.c (initialized_sockets_version): New variable.
29975         (gl_sockets_startup): Do nothing if already called for this or a higher
29976         version.
29977         (gl_sockets_cleanup): Reset initialized_sockets_version.
29978
29979 2009-08-03  Simon Josefsson  <simon@josefsson.org>
29980
29981         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
29982         different project/version.
29983
29984 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
29985             Bruno Haible  <bruno@clisp.org>
29986
29987         Tests for module 'pipe-filter-gi'.
29988         * modules/pipe-filter-gi-tests: New file.
29989         * tests/test-pipe-filter-gi1.sh: New file.
29990         * tests/test-pipe-filter-gi1.c: New file.
29991         * tests/test-pipe-filter-gi2.sh: New file.
29992         * tests/test-pipe-filter-gi2-main.c: New file.
29993         * tests/test-pipe-filter-gi2-child.c: New file.
29994
29995         New module 'pipe-filter-gi'.
29996         * lib/pipe-filter-gi.c: New file.
29997         * modules/pipe-filter-gi: New file.
29998
29999 2009-08-02  Bruno Haible  <bruno@clisp.org>
30000             Paolo Bonzini  <bonzini@gnu.org>
30001
30002         Tests for module 'pipe-filter-ii'.
30003         * modules/pipe-filter-ii-tests: New file.
30004         * tests/test-pipe-filter-ii1.sh: New file.
30005         * tests/test-pipe-filter-ii1.c: New file.
30006         * tests/test-pipe-filter-ii2.sh: New file.
30007         * tests/test-pipe-filter-ii2-main.c: New file.
30008         * tests/test-pipe-filter-ii2-child.c: New file.
30009
30010         New module 'pipe-filter-ii'.
30011         * lib/pipe-filter.h: New file.
30012         * lib/pipe-filter-ii.c: New file.
30013         * lib/pipe-filter-aux.h: New file.
30014         * modules/pipe-filter-ii: New file.
30015
30016 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30017
30018         * lib/gc-libgcrypt.c: Change copyright to FSF.
30019         * lib/gc-gnulib.c: Likewise.
30020
30021 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
30022
30023         * lib/gethostname.c: Include limits.h.
30024
30025 2009-08-02  Simon Josefsson  <simon@josefsson.org>
30026             Bruno Haible  <bruno@clisp.org>
30027
30028         Ensure HOST_NAME_MAX as part of the gethostname module.
30029         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
30030         define also HOST_NAME_MAX.
30031         * tests/test-gethostname.c: Include <limits.h>.
30032         (main): Check also HOST_NAME_MAX.
30033         * doc/posix-headers/limits.texi: Document the mingw problem.
30034
30035 2009-08-02  Bruno Haible  <bruno@clisp.org>
30036
30037         * lib/gethostname.c (gethostname): Fix handling of large len argument.
30038         Add comments.
30039
30040 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30041
30042         * lib/gethostname.c: Add Windows wrapper.
30043         * m4/gethostname.m4: Look for gethostname in -lws2_32.
30044         * modules/gethostname: Depend on sys_socket & errno, for also
30045         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
30046         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
30047
30048 2009-07-31  Jim Meyering  <meyering@redhat.com>
30049
30050         getloadavg: fix symbol name in comment
30051         * lib/getloadavg.c: Correct a typo I introduced when adding
30052         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
30053         Matt Kraai spotted the problem.
30054
30055 2009-07-29  Matt Kraai  <mkraai@beckman.com>
30056
30057         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
30058         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
30059         code also if ! defined N_NAME_POINTER.
30060         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
30061         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
30062         but the n_name member is a 12-byte array.
30063
30064 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
30065
30066         update-copyright: generalize comment handling
30067         * build-aux/update-copyright: Handle copyright statements
30068         within more comment styles.
30069         Document usage.
30070         Report any file with an external copyright holder or parse failure.
30071
30072 2009-07-29  Jim Meyering  <meyering@redhat.com>
30073
30074         mktime: correct setting of REPLACE_MKTIME
30075         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
30076
30077         update-copyright: new module
30078         * modules/update-copyright: New file.
30079         * build-aux/update-copyright: New file.
30080         * MODULES.html.sh (maint+release support): Add update-copyright.
30081
30082 2009-07-27  Bruno Haible  <bruno@clisp.org>
30083
30084         Fix compilation error when <ctime> is used and mktime is replaced.
30085         * lib/time.in.h (mktime): New declaration.
30086         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
30087         REPLACE_MKTIME instead of defining mktime in config.h.
30088         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
30089         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
30090         Reported by Ross McFarland <rwmcfa1@neces.com>.
30091
30092 2009-07-27  Bruno Haible  <bruno@clisp.org>
30093
30094         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
30095         Reported by Matt Kraai <mkraai@beckman.com>.
30096
30097 2009-07-25  Jim Meyering  <meyering@redhat.com>
30098
30099         maint.mk: avoid warnings about missing files
30100         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
30101         diagnostic when .prev-version does not exist.
30102         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
30103         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
30104         nonexistent cfg.mk.
30105         Suggestions from Simon Josefsson.
30106
30107 2009-07-25  Bruno Haible  <bruno@clisp.org>
30108
30109         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
30110         defined as macros. Needed on QNX 6.4.1.
30111         Reported by Matt Kraai <mkraai@beckman.com>.
30112
30113 2009-07-23  Jim Meyering  <meyering@redhat.com>
30114
30115         maint.mk: invoke "make dist" with a working value of XZ_OPT
30116         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
30117
30118 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
30119
30120         Make fseeko.c compile on QNX.
30121         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
30122
30123 2009-07-22  Peter Simons  <simons@cryp.to>
30124
30125         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
30126         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
30127         * lib/md4.h: Likewise.
30128         * lib/md5.h: Likewise.
30129         * lib/sha1.h: Likewise.
30130         * lib/sha256.h: Likewise.
30131         * lib/sha512.h: Likewise.
30132
30133         tests-sha1: don't assign literal string to 'char *' variable
30134         * tests/test-sha1.c (main): Declare locals with "const" to match
30135         attributes of the right hand side.
30136
30137 2009-07-21  Eric Blake  <ebb9@byu.net>
30138
30139         dup2: fix more mingw problems
30140         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
30141         fd to itself.
30142         * doc/posix-functions/dup2.texi (dup2): Document the bug.
30143         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
30144         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
30145         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
30146         care of mingw bugs.
30147
30148 2009-07-21  Jim Meyering  <meyering@redhat.com>
30149
30150         vc-list-files: avoid failure when /bin/sh is dash
30151         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
30152         On some Debian based systems, /bin/sh is a symlink to dash, and running
30153         this command would omit the "/" following each 'tests' prefix:
30154           dash -x build-aux/vc-list-files -C . tests
30155         That is because bash and dash work differently:
30156           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
30157           bash ok
30158           dash odd
30159
30160 2009-07-21  Eric Blake  <ebb9@byu.net>
30161
30162         dup2-tests: test previous patch
30163         * modules/dup2-tests: New file.
30164         * tests/test-dup2.c: Likewise.
30165         * tests/test-open.c (main): Avoid unspecified behavior.
30166         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
30167         test.
30168
30169         dup2: work around mingw and cygwin 1.5 bug
30170         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
30171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30172         * modules/unistd (Makefile.am): Substitute it.
30173         * lib/unistd.in.h (dup2): Declare the replacement.
30174         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
30175         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
30176         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
30177         * modules/execute (Depends-on): Add dup2.
30178         * modules/fseterr (Depends-on): Likewise.
30179         * modules/pipe (Depends-on): Likewise.
30180         * modules/posix_spawn-internal (Depends-on): Likewise.
30181
30182 2009-07-21  Bruno Haible  <bruno@clisp.org>
30183
30184         * modules/.gitattributes: New file.
30185
30186 2009-07-20  Bruno Haible  <bruno@clisp.org>
30187
30188         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
30189         (main): Use it.
30190
30191 2009-07-20  Eric Blake  <ebb9@byu.net>
30192
30193         test-pipe: make a bit more robust.
30194         * tests/test-pipe.c (myerr): Allow error messages regardless of
30195         what we do to stderr.
30196         (test_pipe): Rearrange to avoid deadlock.
30197         (child_main): Try a larger read, to ensure we avoided deadlock.
30198         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
30199         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
30200         if misused.
30201
30202 2009-07-19  Jim Meyering  <meyering@redhat.com>
30203
30204         fts: avoid false-positive cycle-detection
30205         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
30206         for each new command line argument.
30207
30208 2009-07-19  Bruno Haible  <bruno@clisp.org>
30209
30210         Fix build error on mingw with the modules sys_select and unistd.
30211         * modules/acl-tests (Depends-on): Add close.
30212         * modules/binary-io-tests (Depends-on): Likewise.
30213         * modules/closein-tests (Depends-on): Likewise.
30214         * modules/flock-tests (Depends-on): Likewise.
30215         * modules/fsync-tests (Depends-on): Likewise.
30216         * modules/lseek-tests (Depends-on): Likewise.
30217         * modules/pipe-tests (Depends-on): Likewise.
30218         * modules/posix_spawn-tests (Depends-on): Likewise.
30219         * modules/posix_spawnp-tests (Depends-on): Likewise.
30220         * modules/stat-time-tests (Depends-on): Likewise.
30221         * modules/yesno-tests (Depends-on): Likewise.
30222
30223 2009-07-19  Bruno Haible  <bruno@clisp.org>
30224
30225         Unify conditionals.
30226         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
30227         macros, not at the compiler macros.
30228         * lib/pipe.c: Likewise.
30229         * lib/execute.c: Likewise.
30230         * lib/spawni.c: Likewise.
30231
30232 2009-07-19  Bruno Haible  <bruno@clisp.org>
30233
30234         Fix handling of closed stdin/stdout/stderr on mingw.
30235         * lib/w32spawn.h: Include unistd.h.
30236         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
30237         file descriptor with O_NOINHERIT flag.
30238         (fd_safer_noinherit): New function, based on fd-safer.c.
30239         (dup_safer_noinherit): New function, based on dup-safer.c.
30240         (undup_safer_noinherit): New function.
30241         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
30242         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
30243         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
30244         instead of fd_safer.
30245         * tests/test-pipe.c: Include <windows.h>.
30246         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
30247         result.
30248
30249         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
30250         from main.
30251         (test_pipe): Pass an extra argument for disambiguation.
30252         (main): Invoke parent_main or child_main.
30253
30254         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
30255         consistently.
30256
30257 2009-07-18  Eric Blake  <ebb9@byu.net>
30258
30259         test-pipe: fix mingw build
30260         * tests/test-pipe.c (main): Avoid fcntl on mingw.
30261
30262 2009-07-18  Bruno Haible  <bruno@clisp.org>
30263
30264         * modules/pipe-tests (Makefile.am): Fix typo.
30265
30266 2009-07-18  Eric Blake  <ebb9@byu.net>
30267
30268         error: fix mingw build
30269         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
30270         Reported by Bruno Haible.
30271
30272         error: avoid undefined use of stdout
30273         * lib/error.c (error, error_at_line): Check that fd 1 is open
30274         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
30275         is handling faults and the close_stdout module wants to report the
30276         detection of closed stdout as an error.
30277
30278 2009-07-17  Eric Blake  <ebb9@byu.net>
30279
30280         pipe: be robust in face of closed fds
30281         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
30282         should cause child to misbehave.
30283         * modules/pipe-tests: New module.
30284         * tests/test-pipe.c: New file.
30285         * tests/test-pipe.sh: New file.
30286         Reported by Akim Demaille.
30287
30288 2009-07-14  Bruno Haible  <bruno@clisp.org>
30289
30290         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
30291         Reported by anonymous kc.
30292
30293 2009-07-07  Jim Meyering  <meyering@redhat.com>
30294
30295         maint.mk: don't look for translatable strings in *.m4 or *.mk
30296         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
30297         when searching for translatable strings.
30298
30299 2009-07-05  Jim Meyering  <meyering@redhat.com>
30300
30301         remove superfluous parentheses in STREQ definition
30302         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
30303         * lib/getugroups.c (STREQ): Likewise.
30304         * lib/fnmatch.c (STREQ): Likewise.
30305         Spotted by Bruno Haible.
30306
30307 2009-07-04  Jim Meyering  <meyering@redhat.com>
30308
30309         argv-iter: new module
30310         * MODULES.html.sh: Add argv-iter.
30311         * lib/argv-iter.c, lib/argv-iter.h: New files.
30312         * modules/argv-iter: New file.
30313         * modules/argv-iter-tests: New file.
30314         * tests/test-argv-iter.c: Test it.
30315
30316 2009-07-04  Bruno Haible  <bruno@clisp.org>
30317
30318         Fix assertion.
30319         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
30320         contains more exact copies of a given entry than file2, leave the extra
30321         copies unpaired rather than aborting.
30322         Reported by Eric Blake.
30323
30324 2009-07-02  Bruno Haible  <bruno@clisp.org>
30325
30326         Speedup git-merge-changelog for git cherry-pick.
30327         * lib/git-merge-changelog.c (struct entries_mapping): New type.
30328         (entries_mapping_get): New function, extracted from compute_mapping.
30329         (entries_mapping_reverse_get): New function.
30330         (compute_mapping): Add a 'full' argument. Return the result in a
30331         'struct entries_mapping'.
30332         (main): Update. Access the mappings through entries_mapping_get.
30333         Reported by Eric Blake.
30334
30335 2009-07-02  Bruno Haible  <bruno@clisp.org>
30336
30337         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
30338         best_i.
30339
30340 2009-07-02  Bruno Haible  <bruno@clisp.org>
30341
30342         Speed up approximate search for matching ChangeLog entries.
30343         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
30344         argument. Call fstrcmp_bounded instead of fstrcmp.
30345         (compute_mapping, try_split_merged_entry, main): Update callers.
30346
30347 2009-07-02  Bruno Haible  <bruno@clisp.org>
30348
30349         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
30350
30351 2009-06-30  Bruno Haible  <bruno@clisp.org>
30352
30353         Reduce the number of uc_is_cased calls.
30354         * lib/unicase.h (casing_suffix_context_t): Add
30355         'first_char_except_ignorable' field.
30356         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
30357         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
30358         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
30359         Update initializer.
30360         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
30361         case-ignorable characters.
30362         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
30363         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
30364         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
30365         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
30366         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
30367
30368 2009-06-30  Bruno Haible  <bruno@clisp.org>
30369
30370         Tests for module 'unicase/ignorable'.
30371         * modules/unicase/ignorable-tests: New file.
30372         * tests/unicase/test-ignorable.c: New file, generated by
30373         gen-uni-tables.
30374
30375         Tests for module 'unicase/cased'.
30376         * modules/unicase/cased-tests: New file.
30377         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
30378         * tests/unicase/test-predicate-part1.h: New file, derived from
30379         tests/unictype/test-predicate-part1.h.
30380         * tests/unicase/test-predicate-part2.h: New file, same as
30381         tests/unictype/test-predicate-part2.h.
30382
30383         Fix evaluation of "Before C" condition of FINAL_SIGMA.
30384         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
30385         (output_casing_properties): New function.
30386         (main): Call it.
30387         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
30388         * lib/unicase/cased.c: Include unictype/bitmap.h.
30389         (uc_is_cased): Define through a bitmap lookup.
30390         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
30391         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
30392         (uc_is_case_ignorable): Define through a bitmap lookup.
30393         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
30394         lib/unictype/bitmap.h.
30395         (Depends-on): Add inline. Clean up.
30396         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
30397         lib/unictype/bitmap.h.
30398         (Depends-on): Add inline. Clean up.
30399         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
30400         recognition.
30401         * tests/unicase/test-u16-tolower.c (main): Likewise.
30402         * tests/unicase/test-u32-tolower.c (main): Likewise.
30403
30404 2009-06-30  Bruno Haible  <bruno@clisp.org>
30405
30406         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
30407         * lib/unicase/u16-casemap.c: Likewise.
30408         * lib/unicase/u32-casemap.c: Likewise.
30409
30410 2009-06-29  Bruno Haible  <bruno@clisp.org>
30411
30412         Define u32_casefold as a wrapper around u32_ct_casefold.
30413         * lib/unicase/u32-casefold.c: Update.
30414         * modules/unicase/u32-casefold (Depends-on): Add
30415         unicase/u32-ct-casefold, unicase/empty-prefix-context,
30416         unicase/empty-suffix-context. Clean up.
30417
30418         Define u16_casefold as a wrapper around u16_ct_casefold.
30419         * lib/unicase/u16-casefold.c: Update.
30420         * modules/unicase/u16-casefold (Depends-on): Add
30421         unicase/u16-ct-casefold, unicase/empty-prefix-context,
30422         unicase/empty-suffix-context. Clean up.
30423
30424         Define u8_casefold as a wrapper around u8_ct_casefold.
30425         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
30426         * lib/unicase/u8-casefold.c: Update.
30427         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
30428         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30429
30430         Define u32_totitle as a wrapper around u32_ct_totitle.
30431         * lib/unicase/u32-totitle.c: Update.
30432         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
30433         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30434
30435         Define u16_totitle as a wrapper around u16_ct_totitle.
30436         * lib/unicase/u16-totitle.c: Update.
30437         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
30438         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30439
30440         Define u8_totitle as a wrapper around u8_ct_totitle.
30441         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
30442         functions.
30443         (FUNC): Delegate to U_CT_TOTITLE.
30444         * lib/unicase/u8-totitle.c: Update.
30445         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
30446         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
30447
30448         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
30449         invocation.
30450         * modules/unicase/u32-tolower (Depends-on): Add
30451         unicase/empty-prefix-context, unicase/empty-suffix-context.
30452
30453         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
30454         invocation.
30455         * modules/unicase/u16-tolower (Depends-on): Add
30456         unicase/empty-prefix-context, unicase/empty-suffix-context.
30457
30458         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
30459         * modules/unicase/u8-tolower (Depends-on): Add
30460         unicase/empty-prefix-context, unicase/empty-suffix-context.
30461
30462         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
30463         invocation.
30464         * modules/unicase/u32-toupper (Depends-on): Add
30465         unicase/empty-prefix-context, unicase/empty-suffix-context.
30466
30467         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
30468         invocation.
30469         * modules/unicase/u16-toupper (Depends-on): Add
30470         unicase/empty-prefix-context, unicase/empty-suffix-context.
30471
30472         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
30473         * modules/unicase/u8-toupper (Depends-on): Add
30474         unicase/empty-prefix-context, unicase/empty-suffix-context.
30475
30476         New module 'unicase/u32-ct-casefold'.
30477         * lib/unicase/u32-ct-casefold.c: New file.
30478         * modules/unicase/u32-ct-casefold: New file.
30479
30480         New module 'unicase/u16-ct-casefold'.
30481         * lib/unicase/u16-ct-casefold.c: New file.
30482         * modules/unicase/u16-ct-casefold: New file.
30483
30484         New module 'unicase/u8-ct-casefold'.
30485         * lib/unicase/u8-ct-casefold.c: New file.
30486         * lib/unicase/u-ct-casefold.h: New file, derived from
30487         lib/unicase/u-casefold.h.
30488         * modules/unicase/u8-ct-casefold: New file.
30489
30490         New module 'unicase/u32-ct-totitle'.
30491         * lib/unicase/u32-ct-totitle.c: New file.
30492         * modules/unicase/u32-ct-totitle: New file.
30493
30494         New module 'unicase/u16-ct-totitle'.
30495         * lib/unicase/u16-ct-totitle.c: New file.
30496         * modules/unicase/u16-ct-totitle: New file.
30497
30498         New module 'unicase/u8-ct-totitle'.
30499         * lib/unicase/u8-ct-totitle.c: New file.
30500         * lib/unicase/u-ct-totitle.h: New file, derived from
30501         lib/unicase/u-totitle.h.
30502         * modules/unicase/u8-ct-totitle: New file.
30503
30504         New module 'unicase/u32-ct-tolower'.
30505         * lib/unicase/u32-ct-tolower.c: New file.
30506         * modules/unicase/u32-ct-tolower: New file.
30507
30508         New module 'unicase/u16-ct-tolower'.
30509         * lib/unicase/u16-ct-tolower.c: New file.
30510         * modules/unicase/u16-ct-tolower: New file.
30511
30512         New module 'unicase/u8-ct-tolower'.
30513         * lib/unicase/u8-ct-tolower.c: New file.
30514         * modules/unicase/u8-ct-tolower: New file.
30515
30516         New module 'unicase/u32-ct-toupper'.
30517         * lib/unicase/u32-ct-toupper.c: New file.
30518         * modules/unicase/u32-ct-toupper: New file.
30519
30520         New module 'unicase/u16-ct-toupper'.
30521         * lib/unicase/u16-ct-toupper.c: New file.
30522         * modules/unicase/u16-ct-toupper: New file.
30523
30524         New module 'unicase/u8-ct-toupper'.
30525         * lib/unicase/u8-ct-toupper.c: New file.
30526         * modules/unicase/u8-ct-toupper: New file.
30527
30528         Add context arguments to u*_casemap functions.
30529         * lib/unicase/unicasemap.h: Include unicase.h.
30530         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
30531         suffix_context arguments.
30532         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
30533         functions.
30534         (FUNC): Add prefix_context and suffix_context arguments. Use
30535         uc_is_cased and uc_is_case_ignorable.
30536         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
30537         * lib/unicase/u16-casemap.c: Likewise.
30538         * lib/unicase/u32-casemap.c: Likewise.
30539         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
30540         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30541         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
30542         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30543         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
30544         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
30545
30546         New module 'unicase/u32-suffix-context'.
30547         * lib/unicase/u32-suffix-context.c: New file.
30548         * modules/unicase/u32-suffix-context: New file.
30549
30550         New module 'unicase/u16-suffix-context'.
30551         * lib/unicase/u16-suffix-context.c: New file.
30552         * modules/unicase/u16-suffix-context: New file.
30553
30554         New module 'unicase/u8-suffix-context'.
30555         * lib/unicase/u8-suffix-context.c: New file.
30556         * lib/unicase/u-suffix-context.h: New file.
30557         * modules/unicase/u8-suffix-context: New file.
30558
30559         New module 'unicase/empty-suffix-context'.
30560         * lib/unicase/empty-suffix-context.c: New file.
30561         * modules/unicase/empty-suffix-context: New file.
30562
30563         New module 'unicase/u32-prefix-context'.
30564         * lib/unicase/u32-prefix-context.c: New file.
30565         * modules/unicase/u32-prefix-context: New file.
30566
30567         New module 'unicase/u16-prefix-context'.
30568         * lib/unicase/u16-prefix-context.c: New file.
30569         * modules/unicase/u16-prefix-context: New file.
30570
30571         New module 'unicase/u8-prefix-context'.
30572         * lib/unicase/u8-prefix-context.c: New file.
30573         * lib/unicase/u-prefix-context.h: New file.
30574         * lib/unicase/context.h: New file.
30575         * modules/unicase/u8-prefix-context: New file.
30576
30577         New module 'unicase/empty-prefix-context'.
30578         * lib/unicase/empty-prefix-context.c: New file.
30579         * modules/unicase/empty-prefix-context: New file.
30580
30581         New module 'unicase/ignorable'.
30582         * lib/unicase/ignorable.c: New file.
30583         * modules/unicase/ignorable: New file.
30584
30585         New module 'unicase/cased'.
30586         * lib/unicase/caseprop.h: New file.
30587         * lib/unicase/cased.c: New file.
30588         * modules/unicase/cased: New file.
30589
30590         New functions for case mapping of substrings.
30591         * lib/unicase.h (casing_prefix_context_t): New type.
30592         (unicase_empty_prefix_context): New variable.
30593         (u8_casing_prefix_context, u16_casing_prefix_context,
30594         u32_casing_prefix_context, u8_casing_prefixes_context,
30595         u16_casing_prefixes_context, u32_casing_prefixes_context): New
30596         declarations.
30597         (casing_suffix_context_t): New type.
30598         (unicase_empty_suffix_context): New variable.
30599         (u8_casing_suffix_context, u16_casing_suffix_context,
30600         u32_casing_suffix_context, u8_casing_suffixes_context,
30601         u16_casing_suffixes_context, u32_casing_suffixes_context,
30602         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
30603         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
30604         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
30605         declarations.
30606
30607 2009-06-28  Jim Meyering  <meyering@redhat.com>
30608
30609         boostrap: indent only with spaces
30610         * build-aux/bootstrap: Indent only with spaces, never TABs.
30611
30612         bootstrap: split long lines
30613         * build-aux/bootstrap: Keep line length < 80.
30614
30615         bootstrap: sync from coreutils
30616         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
30617         just as autoreconf does.  Verify a list of prerequisite
30618         package-name,version-number pairs if defined in bootstrap.conf.
30619         Refer to README-prereq, if prerequisites are not satisfied.
30620
30621 2009-06-27  Eric Blake  <ebb9@byu.net>
30622
30623         tests: add test for bogus NULL definition
30624         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
30625         * tests/test-stdlib.c: Likewise.
30626         * tests/test-string.c: Likewise.
30627         * tests/test-locale.c: Likewise.
30628         * tests/test-unistd.c: Likewise.
30629         * modules/stdio-tests (Depends-on): Add verify.
30630         * modules/stdlib-tests (Depends-on): Likewise.
30631         * modules/string-tests (Depends-on): Likewise.
30632         * modules/locale-tests (Depends-on): Likewise.
30633         * modules/unistd-tests (Depends-on): Likewise.
30634
30635 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
30636
30637         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
30638         self-explaining comment.
30639         * m4/selinux-selinux-h: Update serial.
30640         (gl_LIBSELINUX): New macro, adding a warning for missing development
30641         packages to code extracted from...
30642         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
30643         Add warning for missing development packages here, too.
30644
30645 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
30646
30647         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
30648
30649 2009-06-25  Eric Blake  <ebb9@byu.net>
30650
30651         version-etc: fix regression
30652         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
30653         gcc.
30654         (version_etc): Use it, to catch bugs with trailing NULL.
30655         * lib/version-etc.c (version_etc_arn): Delete unused argument.
30656         (version_etc_va): Fix logic bug.
30657         * modules/version-etc-tests: Add test.
30658         * tests/test-version-etc.c: New file.
30659         * tests/test-version-etc.sh: Likewise.
30660
30661 2009-06-25  Sam Steingold  <sds@gnu.org>
30662
30663         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
30664         mbtowc declaration.
30665
30666 2009-06-25  Eric Blake  <ebb9@byu.net>
30667
30668         fpurge: migrate into <stdio.h>
30669         * lib/fpurge.h: Delete...
30670         * lib/stdio.in.h (fpurge): ...and declare here, instead.
30671         * lib/fpurge.c (fpurge): Change declaring header.
30672         * modules/fpurge (Files): Drop deleted file.
30673         (Depends-on): Add stdio.
30674         (configure.ac): Set witness.
30675         * modules/stdio (Makefile.am): Support fpurge macros.
30676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30677         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
30678         * lib/fflush.c: Update client.
30679         * tests/test-fpurge.c: Likewise.
30680         * NEWS: Mention the change.
30681
30682 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30683
30684         * lib/argp-version-etc.c (program_authors): Add const
30685         qualifier.
30686         * lib/version-etc.c: Fix typos in the comments.
30687         * modules/argp-version-etc: Depends on version-etc.
30688
30689 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30690
30691         argp-version-etc: new module.
30692
30693         * lib/argp-version-etc.c: New file.
30694         * lib/argp-version-etc.h: New file.
30695         * modules/argp-version-etc: New file.
30696         * modules/argp-version-etc-tests: New file.
30697         * tests/test-argp-version-etc.c: New test.
30698         * tests/test-argp-version-etc-1.sh: New test.
30699
30700 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
30701
30702         Provide additional interfaces and documentation for version-etc
30703         module.
30704
30705         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
30706         interfaces.
30707         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
30708         prototypes.
30709
30710 2009-06-24  Bruno Haible  <bruno@clisp.org>
30711
30712         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
30713         HAVE_LIB${NAME} macro.
30714         Reported by Sam Steingold <sds@gnu.org>.
30715
30716 2009-06-23  Simon Josefsson  <simon@josefsson.org>
30717
30718         * modules/hash-tests (test_hash_LDADD): Link to libintl when
30719         needed.
30720
30721 2009-06-21  Bruno Haible  <bruno@clisp.org>
30722
30723         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
30724         work.
30725         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
30726         together with LIB${NAME}, LTLIB${NAME}.
30727         Reported by Sam Steingold <sds@gnu.org>.
30728
30729 2009-06-20  Jim Meyering  <meyering@redhat.com>
30730
30731         tests: make sc_require_test_exit_idiom more generic
30732         * top/maint.mk (Exit_witness_file): New overridable variable.
30733         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
30734         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
30735
30736 2009-06-19  Jim Meyering  <meyering@redhat.com>
30737
30738         hash: reverse order of src/dst parameters in an internal interface
30739         * lib/hash.c (transfer_entries): Reverse order of parameters to
30740         put DST before SRC.  Adjust callers.
30741
30742         tests: test-hash: avoid wholesale duplication
30743         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
30744         Instead, use a loop and add a single conditional.
30745
30746         tests: test-hash: allow seed selection via a command line argument
30747         * tests/test-hash.c (get_seed): New function.
30748         (main): Use it.
30749
30750 2009-06-19  Eric Blake  <ebb9@byu.net>
30751
30752         hash: avoid memory leak on allocation failure
30753         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
30754         failure.  Factor repeated algorithm...
30755         (transfer_entries): ...into new helper routine.
30756         (hash_delete): React to hash_rehash return value.
30757
30758         hash: reduce memory pressure in hash_rehash no-op case
30759         * lib/hash.c (next_prime): Avoid overflow.
30760         (hash_initialize): Factor bucket size computation...
30761         (compute_bucket_size): ...into new helper function.
30762         (hash_rehash): Use new function and open coding to reduce memory
30763         pressure, and avoid a memory leak in USE_OBSTACK code.
30764         Reported by Jim Meyering.
30765
30766 2009-06-18  Eric Blake  <ebb9@byu.net>
30767
30768         hash: make rotation more obvious
30769         * modules/hash (Depends-on): Add bitrotate and stdint.
30770         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
30771         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
30772         (SIZE_MAX): Rely on headers for definition.
30773         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
30774         (raw_hasher): Use rotr_sz.
30775         Suggested by Jim Meyering.
30776
30777         hash: fix memory leak in last patch
30778         * lib/hash.c (hash_rehash): Avoid memory leak.
30779
30780         hash: avoid no-op rehashing
30781         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
30782
30783         hash: provide default callback functions
30784         * lib/hash.c (raw_hasher, raw_comparator): New functions.
30785         (hash_initialize): Use them as defaults.
30786         * tests/test-hash.c (main): Test this.
30787
30788         hash: minor optimization
30789         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
30790         when possible.
30791         (hash_initialize): Document this promise.
30792         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
30793         * tests/test-hash.c (hash_compare_strings): Test this.
30794
30795 2009-06-18  Bruno Haible  <bruno@clisp.org>
30796
30797         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
30798         going to be replaced anyway.
30799
30800 2009-06-18  Bruno Haible  <bruno@clisp.org>
30801
30802         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
30803         in one place.
30804         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
30805         be replaced anyway.
30806
30807 2009-06-18  Eric Blake  <ebb9@byu.net>
30808
30809         hash: check for resize before insertion
30810         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
30811         threshold before insertion, so that a pathological hash_rehash
30812         that fills every bucket can still trigger another rehash.
30813
30814 2009-06-18  Jim Meyering  <meyering@redhat.com>
30815
30816         hash-tests: add a loop around the small tests
30817         * tests/test-hash.c (main): Repeat small tests with selected
30818         small initial table sizes.
30819
30820 2009-06-17  Eric Blake  <ebb9@byu.net>
30821
30822         hash: minor cleanups
30823         * lib/hash.h (hash_entry): Make opaque, by moving...
30824         * lib/hash.c (hash_entry): ...here.
30825         (hash_insert): Clarify restrictions on what can be inserted.
30826         (hash_get_next): Clarify when it is safe to remove an element
30827         during traversal.
30828         (check_tuning): Skip verification when tuning is known safe.
30829         (hash_initialize): Clarify restrictions on tuning.
30830
30831 2009-06-17  Jim Meyering  <jim@meyering.net>
30832         and Eric Blake  <ebb9@byu.net>
30833
30834         hash-tests: new module
30835         * modules/hash-tests: New file.
30836         * tests/test-hash.c: New file.
30837
30838 2009-06-17  Eric Blake  <ebb9@byu.net>
30839
30840         strstr-simple: document new module
30841         * MODULES.html.sh: Document new module.
30842
30843         strstr, strcasestr: replace on platforms with broken memchr
30844         * modules/strstr: Split into...
30845         * modules/strstr-simple: ...new module that does not care about
30846         performance, but does care about glibc bug.
30847         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
30848         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
30849         if platform memchr is broken, per Debian bug 521737.
30850         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
30851         memchr.
30852         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
30853         * doc/posix-functions/strstr.texi (strstr): Document the fix.
30854         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30855         * modules/mountlist (Depends-on): Add strstr-simple.
30856         * modules/gen-uni-tables (Depends-on): Likewise.
30857         * modules/argz (Depends-on): Add strstr.
30858
30859 2009-06-17  Bruno Haible  <bruno@clisp.org>
30860
30861         * modules/posix_spawn-internal (Depends-on): Add errno.
30862
30863 2009-06-17  Bruno Haible  <bruno@clisp.org>
30864
30865         Define missing ESTALE on Interix 3.5.
30866         * lib/errno.in.h (ESTALE): Assign a value if missing.
30867         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
30868         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
30869         missing.
30870         * doc/posix-headers/errno.texi: Mention the Interix bug.
30871         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
30872
30873 2009-06-15  Eric Blake  <ebb9@byu.net>
30874
30875         memchr, memchr2: add valgrind exception
30876         * lib/memchr.valgrind: New file.
30877         * lib/memchr2.valgrind: New file.
30878         * modules/memchr (Files): Distribute valgrind file.
30879         * modules/memchr2 (Files): Likewise.
30880
30881         docs: memchr is no longer obsolete
30882         * MODULES.html.sh: Move memchr from obsolete to string.h section.
30883         * lib/string.in.h (memchr): Simplify logic.
30884
30885 2009-06-14  Jim Meyering  <meyering@redhat.com>
30886
30887         link-follow: fix the "checking..." message to not mention trailing slash
30888         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
30889         never considered trailing slashes.
30890
30891 2009-06-14  Bruno Haible  <bruno@clisp.org>
30892
30893         * m4/memchr.m4: Mention also the bug on IA-64.
30894         * doc/posix-functions/memchr.texi: Likewise.
30895
30896 2009-06-12  Eric Blake  <ebb9@byu.net>
30897
30898         memchr: detect broken x86_64 and alpha implementations
30899         * modules/memchr-tests (Depends-on): Move mmap detection...
30900         * modules/memchr (Depends-on): ...here.
30901         (configure.ac): Set indicator.
30902         * lib/string.in.h (memchr): Declare replacement.
30903         * modules/string (Makefile.am): Trigger replacement.
30904         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
30905         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
30906         bugs.
30907         * doc/posix-functions/memchr.texi (memchr): Document the bug.
30908         * modules/getpagesize (License): Relax license.
30909
30910 2009-06-11  Bruno Haible  <bruno@clisp.org>
30911
30912         * lib/idpriv.h: Add more references.
30913
30914 2009-06-08  Bruno Haible  <bruno@clisp.org>
30915
30916         Tests for module 'idpriv-droptemp'.
30917         * modules/idpriv-droptemp-tests: New file.
30918         * tests/test-idpriv-droptemp.sh: New file.
30919         * tests/test-idpriv-droptemp.su.sh: New file.
30920         * tests/test-idpriv-droptemp.c: New file.
30921
30922         New module 'idpriv-droptemp'.
30923         * lib/idpriv-droptemp.c: New file.
30924         * modules/idpriv-droptemp: New file.
30925
30926 2009-06-08  Bruno Haible  <bruno@clisp.org>
30927
30928         Tests for module 'idpriv-drop'.
30929         * modules/idpriv-drop-tests: New file.
30930         * tests/test-idpriv-drop.sh: New file.
30931         * tests/test-idpriv-drop.su.sh: New file.
30932         * tests/test-idpriv-drop.c: New file.
30933
30934         New module 'idpriv-drop'.
30935         * lib/idpriv.h: New file.
30936         * lib-idpriv-drop.c: New file.
30937         * m4/idpriv.m4: New file.
30938         * modules/idpriv-drop: New file.
30939
30940 2009-06-08  Bruno Haible  <bruno@clisp.org>
30941
30942         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
30943         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30944         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30945         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30946         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30947         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30948         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30949
30950 2009-06-08  Eric Blake  <ebb9@byu.net>
30951
30952         test-strstr: use memory fence, when possible
30953         * tests/test-strstr.c (main): Use memory fence, in order to be
30954         more likely to trigger Debian bug 521737.
30955         * modules/strstr-tests (Files): Pull in additional files.
30956
30957         memchr: no longer obsolete, for wider field testing
30958         * modules/memchr (Status, Notice): Delete, this module is no
30959         longer obsolete.
30960         * modules/vasnprintf (Depends-on): Add memchr.
30961
30962 2009-06-07  Jim Meyering  <meyering@redhat.com>
30963
30964         hash: declare some functions with the warn_unused_result attribute
30965         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
30966
30967 2009-06-07  Bruno Haible  <bruno@clisp.org>
30968
30969         * tests/test-alignof.c: Don't test int64_t if it does not exist.
30970         Reported by Eric Blake.
30971
30972 2009-06-06  Eric Blake  <ebb9@byu.net>
30973
30974         test-alignof: fix typo with long double
30975         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
30976         compiler error.
30977
30978 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
30979
30980         Escape non-texinfo { and }s.
30981         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
30982         markup error.
30983
30984 2009-06-04  Jim Meyering  <meyering@redhat.com>
30985
30986         gitlog-to-changelog: don't infloop on an empty commit log
30987         * build-aux/gitlog-to-changelog: Warn about an empty log message.
30988         Reported by Boris Petersen <transacid@centerim.org>.
30989
30990 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
30991
30992         version-etc: extend for packagers
30993         Add three new configure options, intended for packagers:
30994           --with-packager="packager name"
30995           --with-packager-version="packager-specific version"
30996           --with-packager-bug-reports="packager bug reporting"
30997         An example with coreutils:
30998           $ ./configure \
30999             --with-packager=Gentoo \
31000             --with-packager-bug-report=http://bugs.gentoo.org/ \
31001             --with-packager-version="patchset 1.6"
31002           $ ./src/ls --version | head -n2
31003           ls (GNU coreutils) 7.1-dirty
31004           Packaged by Gentoo (patchset 1.6)
31005         Note that the bug reporting info via --help doesn't show up because
31006         coreutils uses its own custom emit_bug_reporting_address() implementation
31007         in src/system.h.  If it didn't, it'd look like:
31008           $ ./src/ls --help | tail -n4
31009           Report bugs to <bug-coreutils@gnu.org>.
31010           Report Gentoo bugs to <http://bugs.gentoo.org/>.
31011           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
31012           General help using GNU software: <http://www.gnu.org/gethelp/>.
31013         * lib/version-etc.c: Print new information, if provided.
31014         * m4/version-etc.m4: New file.
31015         * modules/version-etc (Files): Add m4/version-etc.m4.
31016         (configure.ac): Add gl_VERSION_ETC.
31017
31018 2009-05-31  Bruno Haible  <bruno@clisp.org>
31019
31020         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
31021         and 'int64_t'.
31022         * modules/alignof-tests (Dependencies): Add stdint.
31023         Reported by Eric Blake.
31024
31025 2009-05-31  Bruno Haible  <bruno@clisp.org>
31026
31027         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
31028         restriction due to compiler bugs.
31029         Reported by Eric Blake.
31030
31031 2009-05-31  Simon Josefsson  <simon@josefsson.org>
31032             Bruno Haible  <bruno@clisp.org>
31033
31034         Fix test-alignof failure.
31035         * lib/alignof.h (alignof_slot): New macro.
31036         (alignof_type): New macro, with the same semantics as the previous
31037         'alignof'.
31038         (alignof): Alias to alignof_slot.
31039         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
31040         check that the results are usable as constant expressions.
31041
31042 2009-05-31  Bruno Haible  <bruno@clisp.org>
31043
31044         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
31045         * tests/test-memchr.c (main): Check that memchr does not read past the
31046         first occurrence of the byte.
31047         * tests/test-strstr.c (main): Update comment.
31048         Suggested by Eric Blake.
31049
31050 2009-05-30  Bruno Haible  <bruno@clisp.org>
31051
31052         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
31053         detail how to use dumpbin.
31054         Reported by David Byron <dbyron@dbyron.com>.
31055
31056 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31057
31058         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
31059
31060 2009-06-02  Simon Josefsson  <simon@josefsson.org>
31061
31062         * m4/manywarnings.m4: Add GCC 4.4 warnings.
31063
31064 2009-05-28  Bruno Haible  <bruno@clisp.org>
31065
31066         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
31067         build-aux/ files.
31068
31069 2009-05-28  Simon Josefsson  <simon@josefsson.org>
31070
31071         * gnulib-tool (func_import): Transform license on build-aux/ files too.
31072
31073 2009-05-27  Simon Josefsson  <simon@josefsson.org>
31074
31075         * gnulib-tool (sed_transform_main_lib_file)
31076         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
31077         regexps.
31078
31079 2009-05-26  Simon Josefsson  <simon@josefsson.org>
31080
31081         * tests/test-strstr.c: Add another self-test.
31082         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
31083         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
31084
31085 2009-05-23  Bruno Haible  <bruno@clisp.org>
31086
31087         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
31088         change.
31089
31090 2009-05-21  Bruno Haible  <bruno@clisp.org>
31091
31092         Simplify use of mode_t varargs.
31093         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
31094         uses 'mode_t' or 'int'.
31095         * lib/openat.c (openat): Likewise.
31096         * lib/open-safer.c (open_safer): Likewise.
31097         * m4/mode_t.m4: New file.
31098         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
31099         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
31100         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
31101         * modules/open (Files): Add m4/mode_t.m4.
31102         * modules/openat (Files): Likewise.
31103         * modules/fcntl-safer (Files): Likewise.
31104         Suggested by Eric Blake.
31105
31106 2009-05-21  Pádraig Brady  <P@draigbrady.com>
31107
31108         * doc/glibc-functions/fallocate.texi: New file.
31109         * doc/gnulib.texi: Include it.
31110
31111 2009-05-21  Eric Blake  <ebb9@byu.net>
31112             Bruno Haible  <bruno@clisp.org>
31113
31114         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
31115         invocations.
31116         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31117
31118 2009-05-21  Eric Blake  <ebb9@byu.net>
31119             Bruno Haible  <bruno@clisp.org>
31120
31121         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
31122         include_next. Fix of 2008-11-20 commit.
31123         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
31124         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
31125         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
31126         NEXT_MATH_H.
31127         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
31128         instead of NEXT_MATH_H.
31129
31130 2009-05-21  Bruno Haible  <bruno@clisp.org>
31131
31132         Avoid redefinition warnings for SIZE_MAX.
31133         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
31134         Reported by Simon Josefsson.
31135
31136 2009-05-21  Bruno Haible  <bruno@clisp.org>
31137
31138         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
31139         AC_CACHE_VAL.
31140
31141 2009-05-20  Bruno Haible  <bruno@clisp.org>
31142
31143         Make zeroptr.h work on mingw.
31144         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
31145         mprotect.
31146         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
31147         * modules/memchr2-tests (configure.ac): Likewise.
31148         * modules/memcmp-tests (configure.ac): Likewise.
31149         * modules/memmem-tests (configure.ac): Likewise.
31150         * modules/memrchr-tests (configure.ac): Likewise.
31151         Reported by Simon Josefsson.
31152
31153 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31154
31155         * tests/test-glob.c: Include string.h for strcmp prototype.
31156
31157 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31158
31159         * modules/getdelim (Depends-on): Add explicit stdint, although it
31160         was implicitly already pulled in via realloc-posix.
31161         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
31162
31163 2009-05-20  Simon Josefsson  <simon@josefsson.org>
31164
31165         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
31166         G. Christensen" <tgc@jupiterrise.com>.
31167         * m4/sys_socket_h.m4: Check for sa_family_t.
31168         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
31169         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
31170         * tests/test-sys_socket.c: Check that sa_family_t works.
31171
31172 2009-05-18  Eric Blake  <ebb9@byu.net>
31173
31174         maint.mk: allow gnulib_dir in VPATH build
31175         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
31176
31177 2009-05-15  Jim Meyering  <meyering@redhat.com>
31178
31179         maint.mk: Give gnulib_dir a default definition.
31180         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
31181         Thus, most packages no longer need to specify this variable in cfg.mk
31182
31183 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
31184
31185         rename.m4: fix typos that would make non-mingw cross-configure fail
31186         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
31187
31188 2009-05-13  Eric Blake  <ebb9@byu.net>
31189
31190         mmap-anon: avoid out-of-order autoconf expansion
31191         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
31192         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
31193         * modules/memchr-tests (Depends-on): Add extensions.
31194         * modules/memchr2-tests (Depends-on): Add extensions.
31195         * modules/memcmp-tests (Depends-on): Add extensions.
31196         * modules/memmem-tests (Depends-on): Add extensions.
31197         * modules/memrchr-tests (Depends-on): Add extensions.
31198
31199 2009-05-13  Bruno Haible  <bruno@clisp.org>
31200
31201         Make some tests ISO C 99 compliant.
31202         * tests/zerosize-ptr.h: New file.
31203         * tests/test-memchr.c: Include zerosize-ptr.h.
31204         (main): Use a zero-size object pointer instead of NULL.
31205         * tests/test-memchr2.c: Include zerosize-ptr.h.
31206         (main): Use a zero-size object pointer instead of NULL.
31207         * tests/test-memcmp.c: Include zerosize-ptr.h.
31208         (main): Use a zero-size object pointer instead of NULL.
31209         * tests/test-memmem.c: Include zerosize-ptr.h.
31210         (main): Use a zero-size object pointer instead of NULL.
31211         * tests/test-memrchr.c: Include zerosize-ptr.h.
31212         (main): Use a zero-size object pointer instead of NULL.
31213         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
31214         m4/mmap-anon.m4.
31215         (Depends-on): Add getpagesize.
31216         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31217         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
31218         m4/mmap-anon.m4.
31219         (Depends-on): Add getpagesize.
31220         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31221         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
31222         m4/mmap-anon.m4.
31223         (Depends-on): Add getpagesize.
31224         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31225         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
31226         m4/mmap-anon.m4.
31227         (Depends-on): Add getpagesize.
31228         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31229         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
31230         m4/mmap-anon.m4.
31231         (Depends-on): Add getpagesize.
31232         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
31233
31234 2009-05-12  Bruno Haible  <bruno@clisp.org>
31235
31236         Tests for module 'alignof'.
31237         * modules/alignof-tests: New file.
31238         * tests/test-alignof.c: New file.
31239
31240 2009-05-12  Bruno Haible  <bruno@clisp.org>
31241
31242         Fix alignof macro.
31243         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
31244         vendor compilers that are always correct.
31245
31246 2009-05-12  Bruno Haible  <bruno@clisp.org>
31247
31248         Make the MAP_ANONYMOUS detection work on HP-UX 11.
31249         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
31250         not whether its fully works.
31251
31252 2009-05-12  Bruno Haible  <bruno@clisp.org>
31253
31254         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
31255
31256 2009-05-12  Jim Meyering  <meyering@redhat.com>
31257
31258         * top/maint.mk: Adjust backslash alignment.
31259
31260 2009-05-11  Simon Josefsson  <simon@josefsson.org>
31261
31262         * top/maint.mk: Make $(srcdir)/build-aux configurable.
31263
31264 2009-05-11  Eric Blake  <ebb9@byu.net>
31265
31266         argp: avoid undefined behavior
31267         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
31268         macros.
31269
31270 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31271
31272         * tests/test-vc-list-files-git.sh: Do git config of user.email and
31273         user.name to prevent git commit from complaining.
31274
31275 2009-05-10  Bruno Haible  <bruno@clisp.org>
31276
31277         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
31278         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
31279         it rewrites every file name only once.
31280         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
31281
31282 2009-05-08  Bruno Haible  <bruno@clisp.org>
31283
31284         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
31285         instead of 'max'.
31286
31287 2009-05-08  Simon Josefsson  <simon@josefsson.org>
31288
31289         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
31290         sockaddr_storage test.
31291
31292 2009-05-07  Simon Josefsson  <simon@josefsson.org>
31293
31294         * modules/sys_socket (Makefile.am): Substitute
31295         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
31296         * m4/sys_socket_h.m4: Check for sockaddr_storage.
31297         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
31298         * tests/test-sys_socket.c: Check sockaddr_storage.
31299
31300 2009-05-08  Bruno Haible  <bruno@clisp.org>
31301
31302         New module 'alignof'.
31303         * lib/alignof.h: New file.
31304         * modules/alignof: New file.
31305
31306 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31307             Bruno Haible  <bruno@clisp.org>
31308
31309         Fix test-file-has-acl on FreeBSD.
31310         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
31311         mask is implicitly added.
31312         * tests/test-file-has-acl.c: Include <signal.h>.
31313         (main): Terminate the test after 5 seconds.
31314         * modules/acl-tests (configure.ac): Check for alarm function.
31315
31316 2009-05-04  Bruno Haible  <bruno@clisp.org>
31317
31318         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
31319         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
31320         * modules/errno (configure.ac): Drop AC_REQUIRE.
31321         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
31322         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
31323
31324 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31325
31326         * modules/glob-tests: New module.
31327         * tests/test-glob.c: Add.
31328
31329 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31330
31331         * modules/fnmatch-tests: New module.
31332         * tests/test-fnmatch.c: Add.
31333
31334 2009-05-04  Eric Blake  <ebb9@byu.net>
31335
31336         maint: make the new no-submodule-changes rule VPATH-safe
31337         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
31338
31339 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31340             Bruno Haible  <bruno@clisp.org>
31341
31342         acl: Fix infinite loop on FreeBSD.
31343         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
31344         of return value from acl_get_entry.
31345         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
31346         Likewise.
31347
31348 2009-05-03  Bruno Haible  <bruno@clisp.org>
31349
31350         * lib/acl-internal.h (acl_entries): Clarify return value.
31351         * lib/acl_entries.c (acl_entries): Likewise.
31352
31353 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31354
31355         Bug fix in acl module.
31356         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
31357
31358 2009-05-03  Bruno Haible  <bruno@clisp.org>
31359
31360         Create gperf-generated file in the source dir, not in the build dir.
31361         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
31362         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
31363         * modules/unicase/locale-language (unicase/locale-languages.h):
31364         Likewise.
31365         * modules/unicase/special-casing (unicase/special-casing-table.h):
31366         Likewise.
31367         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
31368         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
31369         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
31370         Reported by Ralf Wildenhues.
31371
31372 2009-05-03  Bruno Haible  <bruno@clisp.org>
31373
31374         * modules/fnmatch (Description, configure.ac): Taken from
31375         fnmatch-posix.
31376         * modules/fnmatch-posix: Turn into a symbolic reference to the
31377         'fnmatch' module, and deprecate.
31378         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
31379
31380 2009-05-03  Bruno Haible  <bruno@clisp.org>
31381
31382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
31383         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
31384         Reported by Ralf Wildenhues.
31385
31386 2009-05-04  Simon Josefsson  <simon@josefsson.org>
31387
31388         * m4/fnmatch.m4: Fix fnmatch re-define.
31389
31390 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
31391
31392         priv-set: new module and tests; adapt write-any-file
31393         * lib/priv-set.c: New file.
31394         * lib/priv-set.h: New file.
31395         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
31396         * lib/write-any-file.c: Simplify by using priv-set module.
31397         * m4/priv-set.m4: New file.
31398         * modules/priv-set: New file.
31399         * modules/unlinkdir: Add dependency on priv-set module.
31400         * modules/write-any-file: Likewise.
31401
31402         Tests for module 'priv-set'.
31403         * modules/priv-set-tests: New file.
31404         * tests/test-priv-set.c: New file.
31405
31406 2009-05-03  Jim Meyering  <meyering@redhat.com>
31407             Bruno Haible  <bruno@clisp.org>
31408
31409         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
31410         use the converted UTF-8 variant of the name instead.
31411
31412 2009-05-03  Jim Meyering  <meyering@redhat.com>
31413
31414         tests: tighten some getdate tests
31415         * tests/test-getdate.c (main): Tighten tests: require equality,
31416         not just greater than.  Set TZ envvar to UTC0.
31417
31418 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31419
31420         getdate: correctly interpret "next monday" when run on a Monday
31421         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
31422         that e.g., "next tues" (when run on a tuesday) results in a date
31423         that is one week in the future, and not today's date.
31424         I.e., add a week when the wday is the same as the current one.
31425         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
31426         and earlier by Martin Bernreuther and Jan Minář.
31427         * tests/test-getdate.c (main): Check that "next DAY" is always in
31428         the future and that "last DAY" is always in the past.
31429
31430 2009-05-02  Jim Meyering  <meyering@redhat.com>
31431
31432         build: ensure that a release build fails when a submodule is unclean
31433         * top/maint.mk (no-submodule-changes): New rule.
31434         (alpha beta major): Depend on it.
31435
31436 2009-05-02  Bruno Haible  <bruno@clisp.org>
31437
31438         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
31439         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
31440         shell variable gl_fnmatch_required to detect which variant is
31441         requested.
31442         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
31443         gl_FUNC_FNMATCH_POSIX.
31444         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
31445         exclude fnmatch-posix.
31446
31447 2009-05-02  Bruno Haible  <bruno@clisp.org>
31448
31449         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
31450         * modules/mbsrtowcs (License): Change to LGPLv2+.
31451         * modules/strnlen1 (License): Likewise.
31452         Reported by Simon Josefsson.
31453
31454 2009-05-02  Bruno Haible  <bruno@clisp.org>
31455
31456         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
31457         "cross".
31458         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
31459         gnulib-tool was called with option --source-base=lib.
31460
31461 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31462
31463         Use automake *-local hooks without commands, for extensibility.
31464         * modules/localcharset (Makefile.am): Rename install-exec-local
31465         rule to install-exec-localcharset, and make it a prerequisite of
31466         install-exec-local.  Likewise, rename the uninstall-local rule to
31467         uninstall-localcharset, and make it a prerequisite of the former.
31468
31469 2009-05-01  Bruno Haible  <bruno@clisp.org>
31470
31471         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
31472         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31473         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
31474         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
31475         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
31476         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31477         m4/locale-zh.m4, m4/codeset.m4.
31478
31479         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
31480         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
31481         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
31482         m4/locale-zh.m4.
31483
31484         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
31485         REPLACE_WCRTOMB if mbstate_t must be replaced.
31486         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
31487         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
31488
31489 2009-05-01  Bruno Haible  <bruno@clisp.org>
31490
31491         Avoid compiler warnings when redefining macros defined by <libintl.h>.
31492         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
31493         dngettext, dcngettext, textdomain, bindtextdomain,
31494         bind_textdomain_codeset): Undefine before redefining.
31495
31496 2009-04-30  Bruno Haible  <bruno@clisp.org>
31497
31498         Fix bug introduced on 2009-04-25.
31499         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
31500         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
31501         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
31502         is defined.
31503         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
31504         is defined.
31505         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
31506         is defined.
31507         Reported by Elbert_Pol <elbert.pol@gmail.com>.
31508
31509 2009-04-28  Bruno Haible  <bruno@clisp.org>
31510
31511         Comment tweaks.
31512         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
31513         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
31514         * lib/unicase.h (u*_casexfrm): Likewise.
31515         Reported by Paolo Bonzini.
31516
31517 2009-04-28  Bruno Haible  <bruno@clisp.org>
31518
31519         Fix a compilation error.
31520         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
31521         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31522         Reported by Jim Meyering.
31523
31524 2009-04-27  Bruno Haible  <bruno@clisp.org>
31525
31526         New module 'libunistring'.
31527         * modules/libunistring: New file.
31528         * m4/libunistring.m4: New file.
31529         * MODULES.html.sh (Unicode string functions): Add it.
31530
31531 2009-04-27  Eric Blake  <ebb9@byu.net>
31532
31533         maint.mk: allow package-specific header to provide <config.h>
31534         * top/maint.mk (sc_require_config_h): New variable.
31535         (sc_require_config_h, sc_require_config_h_first): Use it.
31536
31537 2009-04-27  Simon Josefsson  <simon@josefsson.org>
31538
31539         * top/maint.mk (sc_avoid_if_before_free): Except
31540         useless-if-before-free script.
31541
31542 2009-04-27  Eric Blake  <ebb9@byu.net>
31543
31544         maintainer-makefile: depend on all required helper scripts
31545         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
31546         useless-if-before-free.
31547         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
31548         version, rather than assuming gnulib checkout is available.
31549         Reported by Simen Josefsson.
31550
31551 2009-04-26  Bruno Haible  <bruno@clisp.org>
31552
31553         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
31554         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
31555         "../" or "..".
31556
31557 2009-04-26  Bruno Haible  <bruno@clisp.org>
31558
31559         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
31560         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
31561         AC_LIB_HAVE_LINKFLAGS.
31562
31563 2009-04-26  Bruno Haible  <bruno@clisp.org>
31564
31565         Simplify calling convention of u*_conv_from_encoding.
31566         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
31567         u32_conv_from_encoding): Expect a resultbuf argument and return the
31568         result directly as a pointer.
31569         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
31570         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
31571         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
31572         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
31573         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
31574         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31575         Update.
31576         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
31577         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
31578         * lib/vasnprintf.c (VASNPRINTF): Update.
31579         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
31580         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
31581         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
31582         * NEWS: Mention the change.
31583
31584 2009-04-26  Bruno Haible  <bruno@clisp.org>
31585
31586         Simplify calling convention of u*_conv_to_encoding.
31587         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
31588         u32_conv_to_encoding): Expect a resultbuf argument and return the
31589         result directly as a pointer.
31590         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31591         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
31592         freeing scaled_offsets if mem_iconveha failed.
31593         * lib/unicase/u-casexfrm.h (FUNC): Update.
31594         * lib/uninorm/u-normxfrm.h (FUNC): Update.
31595         * lib/vasnprintf.c (VASNPRINTF): Update.
31596         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
31597         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
31598         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
31599         * NEWS: Mention the change.
31600
31601 2009-04-26  Bruno Haible  <bruno@clisp.org>
31602
31603         Avoid test failures on AIX and OSF/1.
31604         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
31605         malloc(0).
31606         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
31607         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
31608         Likewise.
31609         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
31610         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
31611         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
31612         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
31613         * doc/posix-functions/malloc.texi: Document the portability problem
31614         related to malloc(0).
31615
31616 2009-04-26  Bruno Haible  <bruno@clisp.org>
31617
31618         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
31619         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
31620         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
31621
31622 2009-04-25  Bruno Haible  <bruno@clisp.org>
31623
31624         Avoid link error when creating a namespace clean library.
31625         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
31626         as macro with arguments if already defined as an alias.
31627         * lib/signbitf.c (gl_signbitf): Don't undefine.
31628         * lib/signbitd.c (gl_signbitd): Don't undefine.
31629         * lib/signbitl.c (gl_signbitl): Don't undefine.
31630
31631 2009-04-25  Jim Meyering  <meyering@redhat.com>
31632
31633         vc-list-files: fix another quoting bug
31634         * build-aux/vc-list-files: Avoid sed backslash expansion
31635         of pathological directory names.
31636
31637 2009-04-25  Eric Blake  <ebb9@byu.net>
31638
31639         vc-list-files: fix shell quoting error
31640         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
31641         timestamp.
31642
31643 2009-04-25  Jim Meyering  <meyering@redhat.com>
31644
31645         vc-list-files: restore lost functionality with subdir argument
31646         * build-aux/vc-list-files: When given a non-"." sub-directory
31647         argument, substitute the $dir/ prefix back onto each resulting name.
31648         Otherwise, coreutils' root_tests check would fail.
31649
31650 2009-04-24  Eric Blake  <ebb9@byu.net>
31651
31652         vc-list-files: ignore git symlinks
31653         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
31654         than ls-files, to ignore git symlinks.
31655
31656         maint.mk: import improvements from m4
31657         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
31658         (move_if_change): Delete unused macro.
31659         (news-date-check, vc-diff-check): Support VPATH builds.
31660         (announcement): Likewise.  Split --bootstrap-tools list...
31661         (boostrap-tools): ...into separate list, which can be overridden
31662         in cfg.mk.
31663         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
31664         requiring dependency on useless-if-before-free module.
31665         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
31666         Support VPATH builds.
31667
31668 2009-04-24  Jim Meyering  <meyering@redhat.com>
31669
31670         maint.mk: remove coreutils-specific rules and variables
31671         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
31672         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
31673         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
31674
31675         maint.mk: remove obsolete rule
31676         * top/maint.mk (rel-check): Remove rule.
31677         (WGET, WGETFLAGS): Remove now-unused variables.
31678
31679 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31680
31681         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
31682         consistency.
31683
31684         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
31685         '$(PATH_SEPARATOR)' instead of ':'.
31686
31687 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31688
31689         * lib/getopt1.c (main): Use 'const' for static array.
31690
31691 2009-04-24  Simon Josefsson  <simon@josefsson.org>
31692
31693         * top/maint.mk: Sync with coreutils.
31694         * NEWS: Explain incompatibilities.
31695
31696 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31697             Bruno Haible  <bruno@clisp.org>
31698
31699         Fix cross-compilation results.
31700         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
31701         statement, as third argument of AC_TRY_RUN.
31702         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31703         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31704         Likewise.
31705         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31706         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
31707         Likewise.
31708         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31709         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
31710         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
31711
31712 2009-04-20  Bruno Haible  <bruno@clisp.org>
31713
31714         Avoid test failure on mingw.
31715         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
31716
31717 2009-04-20  Bruno Haible  <bruno@clisp.org>
31718
31719         Avoid compilation error on mingw.
31720         * modules/localename-tests (Depends-on): Add locale.
31721
31722 2009-04-19  Bruno Haible  <bruno@clisp.org>
31723
31724         Support for building a shared library on Windows platforms.
31725         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
31726         (main): Test the presence of UNINORM_NFC here.
31727         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
31728         (main): Test the presence of UNINORM_NFD here.
31729         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
31730         (main): Test the presence of UNINORM_NFKC here.
31731         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
31732         (main): Test the presence of UNINORM_NFKD here.
31733
31734 2009-04-19  Bruno Haible  <bruno@clisp.org>
31735
31736         Avoid a compiler warning.
31737         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
31738         Change type of variable 'sequence'.
31739
31740 2009-04-19  Bruno Haible  <bruno@clisp.org>
31741
31742         * modules/configmake (Makefile.am): When the contents of configmake.h
31743         does not change, arrange to preserve its modification time.
31744
31745 2009-04-17  Simon Josefsson  <simon@josefsson.org>
31746
31747         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
31748         gettext domain.
31749
31750 2009-04-16  Jim Meyering  <meyering@redhat.com>
31751
31752         useless-if-before-free: improve conversion code
31753         * build-aux/useless-if-before-free: Adjust code-in-comment to match
31754         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
31755
31756 2009-04-14  Bruno Haible  <bruno@clisp.org>
31757
31758         * modules/fcntl (Depends-on): Add extensions.
31759         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
31760
31761 2009-04-12  Ben Pfaff  <blp@gnu.org>
31762
31763         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
31764         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
31765
31766 2009-03-20  Ben Pfaff  <blp@gnu.org>
31767
31768         Make rename replace existing destinations on Windows.
31769         * m4/rename.m4: Add test for Mingw.
31770         * lib/rename.c: Add rename replacement that uses MoveFileEx with
31771         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
31772         * doc/posix-functions/rename.texi: Document.
31773
31774 2009-04-10  Bruno Haible  <bruno@clisp.org>
31775
31776         New include file "iconveh.h".
31777         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
31778         * lib/striconveh.h: Include it.
31779         (enum iconv_ilseq_handler): Remove definition.
31780         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
31781         striconveh.h.
31782         * lib/striconveha.c: Include striconveh.h.
31783         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
31784         * modules/striconveh (Files): Add lib/iconveh.h.
31785         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
31786         lib/striconveh.h.
31787
31788 2009-04-10  Bruno Haible  <bruno@clisp.org>
31789
31790         * lib/uniconv.h: Update comment.
31791
31792 2009-04-10  Bruno Haible  <bruno@clisp.org>
31793
31794         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
31795         always.
31796         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
31797         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31798         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31799         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
31800         "unistring-notinline.h", so that the function gets defined always.
31801         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
31802         * lib/unistr/u8-uctomb.c: Likewise.
31803         * lib/unistr/u16-mbtouc.c: Likewise.
31804         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31805         * lib/unistr/u16-uctomb.c: Likewise.
31806         * lib/unistr/u32-mbtouc.c: Likewise.
31807         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31808         * lib/unistr/u32-uctomb.c: Likewise.
31809
31810 2009-04-10  Bruno Haible  <bruno@clisp.org>
31811
31812         Mark 'utime' obsolete.
31813         * modules/utime (Status, Notice): New sections.
31814         Suggested by Jim Meyering.
31815
31816         Fix cross-compile guess for utime test.
31817         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
31818         autoconf.
31819         * doc/posix-functions/utime.texi: Give more precisions.
31820         Reported by Jan <ipif@ymail.com>.
31821
31822 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
31823
31824         filevercmp: correct today's change
31825         * lib/filevercmp.c: Also handle coreutils' test inputs.
31826         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
31827
31828         Fix regression in 'filevercmp' module. Thanks Sven Joachim
31829         for reporting it.
31830         * lib/filevercmp.c: Special handle for "", "." and "..".
31831         * tests/test-filevercmp.c: Enlarge the set suite.
31832
31833 2009-04-07  Jim Meyering  <meyering@redhat.com>
31834
31835         useless-if-before-free: show how to remove braced useless free, too
31836         * build-aux/useless-if-before-free: still only in a comment, though.
31837
31838 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
31839
31840         maint.mk: import changes to syntax-check macros from coreutils
31841         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
31842         Use them in the relevant macros.
31843
31844 2009-04-06  Bruno Haible  <bruno@clisp.org>
31845
31846         Fix unportable use of bit-fields.
31847         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
31848         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
31849         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
31850
31851 2009-04-06  Bruno Haible  <bruno@clisp.org>
31852
31853         Avoid test failures on AIX and OSF/1.
31854         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
31855         that malloc(0) = NULL.
31856         * tests/unicase/test-u8-tolower.c (check): Likewise.
31857         * tests/unicase/test-u8-totitle.c (check): Likewise.
31858         * tests/unicase/test-u8-toupper.c (check): Likewise.
31859         * tests/unicase/test-u16-casefold.c (check): Likewise.
31860         * tests/unicase/test-u16-tolower.c (check): Likewise.
31861         * tests/unicase/test-u16-totitle.c (check): Likewise.
31862         * tests/unicase/test-u16-toupper.c (check): Likewise.
31863         * tests/unicase/test-u32-casefold.c (check): Likewise.
31864         * tests/unicase/test-u32-tolower.c (check): Likewise.
31865         * tests/unicase/test-u32-totitle.c (check): Likewise.
31866         * tests/unicase/test-u32-toupper.c (check): Likewise.
31867         * tests/uninorm/test-u8-nfc.c (check): Likewise.
31868         * tests/uninorm/test-u8-nfd.c (check): Likewise.
31869         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
31870         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
31871         * tests/uninorm/test-u16-nfc.c (check): Likewise.
31872         * tests/uninorm/test-u16-nfd.c (check): Likewise.
31873         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
31874         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
31875         * tests/uninorm/test-u32-nfc.c (check): Likewise.
31876         * tests/uninorm/test-u32-nfd.c (check): Likewise.
31877         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
31878         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
31879
31880 2009-04-05  Bruno Haible  <bruno@clisp.org>
31881
31882         Work around an autoconf limitation.
31883         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
31884         comment line if it would be longer than 3 KB.
31885
31886 2009-04-05  Bruno Haible  <bruno@clisp.org>
31887
31888         Avoid test failure with libiconv-1.13.
31889         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
31890         of the expected test results.
31891
31892 2009-04-05  Bruno Haible  <bruno@clisp.org>
31893
31894         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
31895         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
31896         that it should be installed.
31897
31898 2009-04-05  Bruno Haible  <bruno@clisp.org>
31899
31900         * gnulib-tool: New option --copy-file.
31901         (func_usage): Document it.
31902         (func_dest_tmpfilename): Moved out of func_import.
31903         (func_add_file, func_update_file): New functions, extracted from
31904         func_import.
31905         (func_import): Update.
31906
31907 2009-04-05  Karl Berry  <karl@gnu.org>
31908
31909         * README: prominently mention gnulib-tool.
31910         Rearrange sections so getting the code is near the top.
31911
31912 2009-04-05  Bruno Haible  <bruno@clisp.org>
31913
31914         * lib/unicase.h: Mention u*_cmp2.
31915         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31916         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
31917         * lib/unicase/ulc-casecmp.c: Likewise.
31918         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
31919         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
31920         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
31921         unistr/u8-cmp.
31922         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
31923         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
31924         unistr/u16-cmp.
31925         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
31926         unistr/u32-cmp.
31927
31928         * lib/uninorm.h: Mention u*_cmp2.
31929         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
31930         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
31931         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
31932         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
31933         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
31934         unistr/u8-cmp.
31935         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
31936         unistr/u16-cmp.
31937         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
31938         unistr/u32-cmp.
31939
31940         New module 'unistr/u32-cmp2'.
31941         * lib/unistr/u32-cmp2.c: New file.
31942         * modules/unistr/u32-cmp2: New file.
31943
31944         New module 'unistr/u16-cmp2'.
31945         * lib/unistr/u16-cmp2.c: New file.
31946         * modules/unistr/u16-cmp2: New file.
31947
31948         New module 'unistr/u8-cmp2'.
31949         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
31950         * lib/unistr/u8-cmp2.c: New file.
31951         * lib/unistr/u-cmp2.h: New file.
31952         * modules/unistr/u8-cmp2: New file.
31953
31954 2009-04-05  Bruno Haible  <bruno@clisp.org>
31955
31956         * lib/unictype.h (uc_property_is_valid): New macro.
31957         * tests/unictype/test-pr_byname.c (main): Use it.
31958
31959         * lib/unistr.h: Doc fixes.
31960         * lib/uniconv.h: Doc fixes.
31961         * lib/unictype.h: Doc fixes.
31962
31963 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
31964
31965         Port coreutils 7.2 to Solaris 8.
31966
31967         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
31968         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
31969         for Solaris 8.  This is a bit of a hack, as it means it's the
31970         caller's responsibility to add -lnsl if needed, but most likely it
31971         won't be needed since only getaddrinfo uses this and getaddrinfo
31972         isn't needed on Solaris 8.
31973
31974         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
31975         problem to Solaris 8 encountered with coreutils 7.2, which
31976         resulted in a message "fnmatch.c:292: warning: passing argument 4
31977         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
31978         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
31979
31980 2009-04-03  Simon Josefsson  <simon@josefsson.org>
31981
31982         * m4/ld-version-script.m4: Add FIXME comment.
31983
31984 2009-04-02  Simon Josefsson  <simon@josefsson.org>
31985
31986         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
31987         SOVERSION variable.
31988
31989 2009-04-02  Bruno Haible  <bruno@clisp.org>
31990
31991         * Makefile (info, html, dvi, pdf): Combine the rules.
31992         Suggested by Jim Meyering.
31993
31994 2009-04-01  Bruno Haible  <bruno@clisp.org>
31995
31996         * Makefile (info, html, dvi, pdf): New targets.
31997         Reported by Reuben Thomas <rrt@sc3d.org>.
31998
31999 2009-04-01  Bruno Haible  <bruno@clisp.org>
32000
32001         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
32002         can be put into PATH.
32003         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
32004
32005 2009-04-01  Bruno Haible  <bruno@clisp.org>
32006
32007         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
32008
32009 2009-04-01  Bruno Haible  <bruno@clisp.org>
32010
32011         Rename module 'visibility'.
32012         * modules/lib-symbol-visibility: Renamed from modules/visibility.
32013         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
32014         * doc/gnulib.texi: Update.
32015         * MODULES.html.sh (Misc): Update.
32016         * NEWS: Mention the change.
32017
32018 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32019
32020         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
32021         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
32022         Eric Blake <ebb9@byu.net> for review.
32023         * MODULES.html.sh: Add lib-msvc-compat.
32024         * doc/gnulib.texi: Link to new section.
32025         * m4/ld-output-def.m4: New file.
32026         * doc/ld-output-def.texi: New file.
32027
32028 2009-04-01  Simon Josefsson  <simon@josefsson.org>
32029
32030         Rename ld-version-script to lib-symbol-versions.  Suggested by
32031         Bruno Haible <bruno@clisp.org>.
32032         * modules/ld-version-script: Renamed to lib-symbol-versions.
32033         * doc/ld-version-script.texi: Fix module name.
32034         * MODULES.html.sh: Add lib-symbol-versions.
32035
32036 2009-03-31  Simon Josefsson  <simon@josefsson.org>
32037
32038         * modules/u64-tests: New file.
32039         * tests/test-u64.c: New file.
32040
32041 2009-03-04  Simon Josefsson  <simon@josefsson.org>
32042
32043         * MODULES.html.sh: Mention u64.
32044         * modules/u64: New module.
32045         * modules/crypto/sha512: Depend on u64 module instead of providing
32046         u64.h.
32047
32048 2009-03-27  Eric Blake  <ebb9@byu.net>
32049
32050         test-strerror: make debugging EAI_SYSTEM easier
32051         * modules/getaddrinfo-tests (Depends-on): Add strerror.
32052         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
32053         failure was EAI_SYSTEM.
32054
32055 2009-03-25  Bruno Haible  <bruno@clisp.org>
32056
32057         Fix a problem with --enable-relocatable on Solaris 7.
32058         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
32059         since 2008-02-24.
32060
32061 2009-03-25  Eric Blake  <ebb9@byu.net>
32062
32063         test-sockets: avoid gcc warning
32064         * tests/test-sockets.c (main): Silence compiler warning.
32065
32066 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
32067
32068         New modules nproc, pthread, contributed by Glen Lenker.
32069
32070         * MODULES.html.sh: Add pthread, nproc.
32071         * lib/nproc.c: New file.
32072         * lib/nproc.h: New file.
32073         * lib/pthread.in.h: New file.
32074         * m4/pthread.m4: New file.
32075         * modules/nproc: New file.
32076         * modules/pthread: New file.
32077
32078 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32079
32080         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
32081         New variable.
32082
32083 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
32084
32085         filevercmp: handle simple~ and numbered.~3~ backup suffixes
32086         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
32087         * tests/test-filevercmp.c: Add tests for backup suffixes.
32088
32089 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32090
32091         * modules/stdlib (Depends-on): Add stdint, needed when defining
32092         struct random_data on, for example, HP-UX 10.20.  Reported by
32093         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32094
32095 2009-03-24  Simon Josefsson  <simon@josefsson.org>
32096
32097         * lib/readline.c (readline): Call fflush on stdout after printing
32098         prompt.
32099
32100 2009-03-20  Bruno Haible  <bruno@clisp.org>
32101
32102         Remove dependency from 'close' module to -lws2_32 on native Windows.
32103         * lib/close-hook.h: New file.
32104         * lib/close-hook.c: New file.
32105         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
32106         w32sock.h.
32107         (_gl_close_fd_maybe_socket): Remove function.
32108         (rpl_close): Invoke execute_all_close_hooks instead of
32109         _gl_close_fd_maybe_socket.
32110         * lib/sockets.c: Include close-hook.h, w32sock.h.
32111         (close_fd_maybe_socket): New function, essentially from lib/close.c.
32112         (close_sockets_hook): New variable.
32113         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
32114         (gl_sockets_cleanup): Unregister it.
32115         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
32116         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
32117         * modules/close-hook: New file.
32118         * modules/close (Files): Remove lib/w32sock.h.
32119         (Depends-on): Add close-hook.
32120         (Link): Remove section.
32121         * modules/sockets (Files): Add lib/w32sock.h.
32122         (Depends-on): Add close-hook.
32123         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
32124         invocation.
32125         * NEWS: Mention that LIB_CLOSE is gone.
32126
32127 2009-03-23  Eric Blake  <ebb9@byu.net>
32128
32129         signal-tests: test previous patch
32130         * tests/test-signal.c: New file.
32131         * modules/signal-tests: Likewise.
32132
32133         signal.h: always support 'volatile sig_atomic_t'
32134         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
32135         (gl_SIGNAL_H_DEFAULTS): Add a default.
32136         * modules/signal (Makefile.am): Substitute if needed.
32137         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
32138         users can blindly add volatile.
32139         * doc/posix-headers/signal.texi (signal.h): Document it.
32140         Reported by Matthew Woehlke.
32141
32142 2009-03-23  Jim Meyering  <meyering@redhat.com>
32143
32144         pathmax: PATH_MAX: use pathconf only when available
32145         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
32146         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
32147         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
32148         This avoids a link failure in a PSP cross-compilation environment
32149         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
32150
32151         * lib/vasnprintf.c (divide): Fix typo in comment.
32152
32153 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32154
32155         * gnulib-tool (func_filter_filelist): Fix comment.
32156
32157 2009-03-20  Bruno Haible  <bruno@clisp.org>
32158
32159         Make sockets.h self-contained.
32160         * lib/sockets.c: Include sockets.h first.
32161         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
32162
32163 2009-03-19  Eric Blake  <ebb9@byu.net>
32164
32165         doc: mention more functions added in cygwin 1.7.0
32166         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
32167         addition.
32168         * doc/posix-functions/log2f.texi: Likewise.
32169
32170 2009-03-19  Jim Meyering  <meyering@redhat.com>
32171
32172         fsusage: avoid syntax error due to statement-before-declaration
32173         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
32174         after all declarations.  Reported by Matthew Woehlke in
32175         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
32176
32177 2009-03-18  Eric Blake  <ebb9@byu.net>
32178
32179         build-aux/compile: sync from automake
32180         * build-aux/compile: New file, from automake.
32181         * config/srclist.txt: Mention build-aux/compile.
32182
32183 2009-03-17  Bruno Haible  <bruno@clisp.org>
32184
32185         * lib/git-merge-changelog.c: Fix typo in comment.
32186         Reported by Reuben Thomas <rrt@sc3d.org>.
32187
32188 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
32189
32190         * m4/regex.m4: update and improve help for
32191         --without-included-regex.
32192
32193 2009-03-17  Simon Josefsson  <simon@josefsson.org>
32194
32195         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
32196         failure on missing include files.
32197
32198 2009-03-17  Eric Blake  <ebb9@byu.net>
32199
32200         doc: mention more functions added in cygwin 1.7.0
32201         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
32202         addition.
32203         * doc/posix-functions/fwscanf.texi: Likewise.
32204         * doc/posix-functions/swprintf.texi: Likewise.
32205         * doc/posix-functions/swscanf.texi: Likewise.
32206         * doc/posix-functions/vfwprintf.texi: Likewise.
32207         * doc/posix-functions/vfwscanf.texi: Likewise.
32208         * doc/posix-functions/vswprintf.texi: Likewise.
32209         * doc/posix-functions/vswscanf.texi: Likewise.
32210         * doc/posix-functions/vwprintf.texi: Likewise.
32211         * doc/posix-functions/vwscanf.texi: Likewise.
32212         * doc/posix-functions/wcscasecmp.texi: Likewise.
32213         * doc/posix-functions/wcsdup.texi: Likewise.
32214         * doc/posix-functions/wcsftime.texi: Likewise.
32215         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32216         * doc/posix-functions/wprintf.texi: Likewise.
32217         * doc/posix-functions/wscanf.texi: Likewise.
32218         * doc/glibc-functions/gethostbyname2.texi: Likewise.
32219
32220 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32221
32222         maint.mk: really add $(AM_MAKEFLAGS)
32223         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
32224         was inadvertently omitted in the last commit.
32225         Spotted by Bruno Haible.
32226
32227         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
32228         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
32229         $(AM_MAKEFLAGS)' rather than plain `make'.
32230
32231         gnulib-tool: execute $MAKE not make
32232         * gnulib-tool: Default $MAKE to 'make'.
32233         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
32234         than make.  Initialize $MAKE in the do-autobuild script.
32235
32236         gnulib-tool: use $MAKE not make in generated files
32237         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
32238         make, in generated files.  Initialize $MAKE in the do-autobuild
32239         script.
32240
32241         * top/GNUmakefile (_have-git-version-gen): Fix typo.
32242
32243         GNUmakefile: disable parallelism only for multiple, recursive targets
32244         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
32245         additions in the Makefile.
32246         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
32247         by Automake.
32248         (.NOTPARALLEL): Only disable parallel builds if multiple targets
32249         are listed on the command line and at least one of them is
32250         listed in $(ALL_RECURSIVE_TARGETS).
32251
32252 2009-03-14  Bruno Haible  <bruno@clisp.org>
32253
32254         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
32255         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
32256         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
32257         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
32258         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
32259         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
32260         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
32261         unistr/u8-uctomb.
32262         * modules/unistr/u8-strchr (Depends-on): Likewise.
32263         * modules/unistr/u8-strrchr (Depends-on): Likewise.
32264         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
32265         unistr/u16-uctomb.
32266         * modules/unistr/u16-strchr (Depends-on): Likewise.
32267         * modules/unistr/u16-strrchr (Depends-on): Likewise.
32268
32269 2009-03-12  Bruno Haible  <bruno@clisp.org>
32270
32271         Work around select() bug on Interix 3.5.
32272         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
32273         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
32274         * m4/select.m4: New file.
32275         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
32276         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
32277         * modules/select (Files): Add m4/select.m4.
32278         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
32279         * modules/nanosleep (Depends-on): Add select.
32280         * modules/poll (Depends-on): Likewise.
32281         * doc/posix-functions/select.texi: Mention the Interix bug.
32282         Reported by Markus Duft <mduft@gentoo.org>.
32283
32284         * lib/select.c: Renamed from lib/winsock-select.c.
32285         * modules/select (Files): Add lib/select.c, remove
32286         lib/winsock-select.c.
32287         (configure.ac): Update.
32288
32289 2009-03-12  Jim Meyering  <meyering@redhat.com>
32290
32291         avoid gcc warnings about unused macro definitions
32292         * lib/readtokens.c (STREQ): Remove unused definition.
32293         * lib/xmalloc.c (SIZE_MAX): Likewise.
32294         * lib/openat-die.c (N_): Likewise.
32295         * lib/mountlist.c (SIZE_MAX): Remove definition.
32296         Instead, include <stdint.h>.
32297         * lib/readutmp.c: Likewise.
32298         * modules/readutmp (Depends-on): Add stdint.
32299         * modules/mountlist (Depends-on): Add stdint.
32300         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
32301
32302 2009-03-10  Bruno Haible  <bruno@clisp.org>
32303
32304         Tests for module 'mbmemcasecoll'.
32305         * modules/mbmemcasecoll-tests: New file.
32306         * tests/test-mbmemcasecoll1.sh: New file.
32307         * tests/test-mbmemcasecoll2.sh: New file.
32308         * tests/test-mbmemcasecoll3.sh: New file.
32309         * tests/test-mbmemcasecoll.c: New file.
32310
32311         New module 'mbmemcasecoll'.
32312         * lib/mbmemcasecoll.h: New file.
32313         * lib/mbmemcasecoll.c: New file.
32314         * modules/mbmemcasecoll: New file.
32315
32316         * tests/test-mbmemcasecmp.h: New file, extracted from
32317         tests/test-mbmemcasecmp.c.
32318         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
32319         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
32320         (main): Update.
32321         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
32322
32323 2009-03-09  Bruno Haible  <bruno@clisp.org>
32324
32325         Tests for module 'mbmemcasecmp'.
32326         * modules/mbmemcasecmp-tests: New file.
32327         * tests/test-mbmemcasecmp1.sh: New file.
32328         * tests/test-mbmemcasecmp2.sh: New file.
32329         * tests/test-mbmemcasecmp3.sh: New file.
32330         * tests/test-mbmemcasecmp.c: New file.
32331
32332         New module 'mbmemcasecmp'.
32333         * lib/mbmemcasecmp.h: New file.
32334         * lib/mbmemcasecmp.c: New file.
32335         * modules/mbmemcasecmp: New file.
32336
32337 2009-03-09  Bruno Haible  <bruno@clisp.org>
32338
32339         Tests for module 'unicase/ulc-casecoll'.
32340         * modules/unicase/ulc-casecoll-tests: New file.
32341         * tests/unicase/test-ulc-casecoll1.sh: New file.
32342         * tests/unicase/test-ulc-casecoll2.sh: New file.
32343         * tests/unicase/test-ulc-casecoll.c: New file.
32344
32345         New module 'unicase/ulc-casecoll'.
32346         * lib/unicase.h (ulc_casecoll): New declaration.
32347         * lib/unicase/ulc-casecoll.c: New file.
32348         * modules/unicase/ulc-casecoll: New file.
32349
32350         New module 'unicase/ulc-casexfrm'.
32351         * lib/unicase.h (ulc_casexfrm): New declaration.
32352         * lib/unicase/ulc-casexfrm.c: New file.
32353         * modules/unicase/ulc-casexfrm: New file.
32354
32355 2009-03-09  Bruno Haible  <bruno@clisp.org>
32356
32357         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
32358         invocations.
32359
32360         * m4/mbscasecmp.m4: Remove file.
32361         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
32362         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
32363
32364         * m4/mbscasestr.m4: Remove file.
32365         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
32366         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
32367
32368         * m4/mbschr.m4: Remove file.
32369         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
32370         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
32371
32372         * m4/mbscspn.m4: Remove file.
32373         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
32374         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
32375
32376         * m4/mbslen.m4: Remove file.
32377         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
32378         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
32379
32380         * m4/mbsncasecmp.m4: Remove file.
32381         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
32382         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
32383
32384         * m4/mbsnlen.m4: Remove file.
32385         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
32386         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
32387
32388         * m4/mbspbrk.m4: Remove file.
32389         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
32390         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
32391
32392         * m4/mbspcasecmp.m4: Remove file.
32393         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
32394         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
32395
32396         * m4/mbsrchr.m4: Remove file.
32397         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
32398         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
32399
32400         * m4/mbssep.m4: Remove file.
32401         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
32402         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
32403
32404         * m4/mbsspn.m4: Remove file.
32405         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
32406         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
32407
32408         * m4/mbsstr.m4: Remove file.
32409         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
32410         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
32411
32412         * m4/mbstok_r.m4: Remove file.
32413         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
32414         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
32415
32416         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
32417
32418         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
32419         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
32420
32421         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
32422
32423 2009-03-08  Bruno Haible  <bruno@clisp.org>
32424
32425         Tests for module 'unicase/ulc-casecmp'.
32426         * modules/unicase/ulc-casecmp-tests: New file.
32427         * tests/unicase/test-ulc-casecmp1.sh: New file.
32428         * tests/unicase/test-ulc-casecmp2.sh: New file.
32429         * tests/unicase/test-ulc-casecmp.c: New file.
32430
32431         New module 'unicase/ulc-casecmp'.
32432         * lib/unicase.h (ulc_casecmp): New declaration.
32433         * lib/unicase/ulc-casecmp.c: New file.
32434         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
32435         'const SRC_UNIT *'.
32436         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
32437         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
32438         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
32439         * modules/unicase/ulc-casecmp: New file.
32440
32441         Tests for module 'unicase/u32-is-cased'.
32442         * modules/unicase/u32-is-cased-tests: New file.
32443         * tests/unicase/test-u32-is-cased.c: New file.
32444
32445         Tests for module 'unicase/u16-is-cased'.
32446         * modules/unicase/u16-is-cased-tests: New file.
32447         * tests/unicase/test-u16-is-cased.c: New file.
32448
32449         Tests for module 'unicase/u8-is-cased'.
32450         * modules/unicase/u8-is-cased-tests: New file.
32451         * tests/unicase/test-u8-is-cased.c: New file.
32452         * tests/unicase/test-is-cased.h: New file.
32453
32454         New module 'unicase/u32-is-cased'.
32455         * lib/unicase/u32-is-cased.c: New file.
32456         * modules/unicase/u32-is-cased: New file.
32457
32458         New module 'unicase/u16-is-cased'.
32459         * lib/unicase/u16-is-cased.c: New file.
32460         * modules/unicase/u16-is-cased: New file.
32461
32462         New module 'unicase/u8-is-cased'.
32463         * lib/unicase/u8-is-cased.c: New file.
32464         * lib/unicase/u-is-cased.h: New file.
32465         * modules/unicase/u8-is-cased: New file.
32466
32467         Tests for module 'unicase/u32-is-casefolded'.
32468         * modules/unicase/u32-is-casefolded-tests: New file.
32469         * tests/unicase/test-u32-is-casefolded.c: New file.
32470
32471         Tests for module 'unicase/u16-is-casefolded'.
32472         * modules/unicase/u16-is-casefolded-tests: New file.
32473         * tests/unicase/test-u16-is-casefolded.c: New file.
32474
32475         Tests for module 'unicase/u8-is-casefolded'.
32476         * modules/unicase/u8-is-casefolded-tests: New file.
32477         * tests/unicase/test-u8-is-casefolded.c: New file.
32478         * tests/unicase/test-is-casefolded.h: New file.
32479
32480         New module 'unicase/u32-is-casefolded'.
32481         * lib/unicase/u32-is-casefolded.c: New file.
32482         * modules/unicase/u32-is-casefolded: New file.
32483
32484         New module 'unicase/u16-is-casefolded'.
32485         * lib/unicase/u16-is-casefolded.c: New file.
32486         * modules/unicase/u16-is-casefolded: New file.
32487
32488         New module 'unicase/u8-is-casefolded'.
32489         * lib/unicase/u8-is-casefolded.c: New file.
32490         * modules/unicase/u8-is-casefolded: New file.
32491
32492         Tests for module 'unicase/u32-is-titlecase'.
32493         * modules/unicase/u32-is-titlecase-tests: New file.
32494         * tests/unicase/test-u32-is-titlecase.c: New file.
32495
32496         Tests for module 'unicase/u16-is-titlecase'.
32497         * modules/unicase/u16-is-titlecase-tests: New file.
32498         * tests/unicase/test-u16-is-titlecase.c: New file.
32499
32500         Tests for module 'unicase/u8-is-titlecase'.
32501         * modules/unicase/u8-is-titlecase-tests: New file.
32502         * tests/unicase/test-u8-is-titlecase.c: New file.
32503         * tests/unicase/test-is-titlecase.h: New file.
32504
32505         New module 'unicase/u32-is-titlecase'.
32506         * lib/unicase/u32-is-titlecase.c: New file.
32507         * modules/unicase/u32-is-titlecase: New file.
32508
32509         New module 'unicase/u16-is-titlecase'.
32510         * lib/unicase/u16-is-titlecase.c: New file.
32511         * modules/unicase/u16-is-titlecase: New file.
32512
32513         New module 'unicase/u8-is-titlecase'.
32514         * lib/unicase/u8-is-titlecase.c: New file.
32515         * modules/unicase/u8-is-titlecase: New file.
32516
32517         Tests for module 'unicase/u32-is-lowercase'.
32518         * modules/unicase/u32-is-lowercase-tests: New file.
32519         * tests/unicase/test-u32-is-lowercase.c: New file.
32520
32521         Tests for module 'unicase/u16-is-lowercase'.
32522         * modules/unicase/u16-is-lowercase-tests: New file.
32523         * tests/unicase/test-u16-is-lowercase.c: New file.
32524
32525         Tests for module 'unicase/u8-is-lowercase'.
32526         * modules/unicase/u8-is-lowercase-tests: New file.
32527         * tests/unicase/test-u8-is-lowercase.c: New file.
32528         * tests/unicase/test-is-lowercase.h: New file.
32529
32530         New module 'unicase/u32-is-lowercase'.
32531         * lib/unicase/u32-is-lowercase.c: New file.
32532         * modules/unicase/u32-is-lowercase: New file.
32533
32534         New module 'unicase/u16-is-lowercase'.
32535         * lib/unicase/u16-is-lowercase.c: New file.
32536         * modules/unicase/u16-is-lowercase: New file.
32537
32538         New module 'unicase/u8-is-lowercase'.
32539         * lib/unicase/u8-is-lowercase.c: New file.
32540         * modules/unicase/u8-is-lowercase: New file.
32541
32542         Tests for module 'unicase/u32-is-uppercase'.
32543         * modules/unicase/u32-is-uppercase-tests: New file.
32544         * tests/unicase/test-u32-is-uppercase.c: New file.
32545
32546         Tests for module 'unicase/u16-is-uppercase'.
32547         * modules/unicase/u16-is-uppercase-tests: New file.
32548         * tests/unicase/test-u16-is-uppercase.c: New file.
32549
32550         Tests for module 'unicase/u8-is-uppercase'.
32551         * modules/unicase/u8-is-uppercase-tests: New file.
32552         * tests/unicase/test-u8-is-uppercase.c: New file.
32553         * tests/unicase/test-is-uppercase.h: New file.
32554
32555         New module 'unicase/u32-is-uppercase'.
32556         * lib/unicase/u32-is-uppercase.c: New file.
32557         * modules/unicase/u32-is-uppercase: New file.
32558
32559         New module 'unicase/u16-is-uppercase'.
32560         * lib/unicase/u16-is-uppercase.c: New file.
32561         * modules/unicase/u16-is-uppercase: New file.
32562
32563         New module 'unicase/u8-is-uppercase'.
32564         * lib/unicase/u8-is-uppercase.c: New file.
32565         * modules/unicase/u8-is-uppercase: New file.
32566
32567         New module 'unicase/u32-is-invariant'.
32568         * lib/unicase/u32-is-invariant.c: New file.
32569         * modules/unicase/u32-is-invariant: New file.
32570
32571         New module 'unicase/u16-is-invariant'.
32572         * lib/unicase/u16-is-invariant.c: New file.
32573         * modules/unicase/u16-is-invariant: New file.
32574
32575         New module 'unicase/u8-is-invariant'.
32576         * lib/unicase/u8-is-invariant.c: New file.
32577         * lib/unicase/invariant.h: New file.
32578         * lib/unicase/u-is-invariant.h: New file.
32579         * modules/unicase/u8-is-invariant: New file.
32580
32581         Tests for module 'unicase/u32-casecoll'.
32582         * modules/unicase/u32-casecoll-tests: New file.
32583         * tests/unicase/test-u32-casecoll.c: New file.
32584
32585         Tests for module 'unicase/u16-casecoll'.
32586         * modules/unicase/u16-casecoll-tests: New file.
32587         * tests/unicase/test-u16-casecoll.c: New file.
32588
32589         Tests for module 'unicase/u8-casecoll'.
32590         * modules/unicase/u8-casecoll-tests: New file.
32591         * tests/unicase/test-u8-casecoll.c: New file.
32592
32593         New module 'unicase/u32-casecoll'.
32594         * lib/unicase/u32-casecoll.c: New file.
32595         * modules/unicase/u32-casecoll: New file.
32596
32597         New module 'unicase/u16-casecoll'.
32598         * lib/unicase/u16-casecoll.c: New file.
32599         * modules/unicase/u16-casecoll: New file.
32600
32601         New module 'unicase/u8-casecoll'.
32602         * lib/unicase/u8-casecoll.c: New file.
32603         * lib/unicase/u-casecoll.h: New file.
32604         * modules/unicase/u8-casecoll: New file.
32605
32606         New module 'unicase/u32-casexfrm'.
32607         * lib/unicase/u32-casexfrm.c: New file.
32608         * modules/unicase/u32-casexfrm: New file.
32609
32610         New module 'unicase/u16-casexfrm'.
32611         * lib/unicase/u16-casexfrm.c: New file.
32612         * modules/unicase/u16-casexfrm: New file.
32613
32614         New module 'unicase/u8-casexfrm'.
32615         * lib/unicase/u8-casexfrm.c: New file.
32616         * lib/unicase/u-casexfrm.h: New file.
32617         * modules/unicase/u8-casexfrm: New file.
32618
32619         Tests for module 'unicase/u32-casecmp'.
32620         * modules/unicase/u32-casecmp-tests: New file.
32621         * tests/unicase/test-u32-casecmp.c: New file.
32622
32623         Tests for module 'unicase/u16-casecmp'.
32624         * modules/unicase/u16-casecmp-tests: New file.
32625         * tests/unicase/test-u16-casecmp.c: New file.
32626
32627         Tests for module 'unicase/u8-casecmp'.
32628         * modules/unicase/u8-casecmp-tests: New file.
32629         * tests/unicase/test-u8-casecmp.c: New file.
32630         * tests/unicase/test-casecmp.h: New file.
32631
32632         New module 'unicase/u32-casecmp'.
32633         * lib/unicase/u32-casecmp.c: New file.
32634         * modules/unicase/u32-casecmp: New file.
32635
32636         New module 'unicase/u16-casecmp'.
32637         * lib/unicase/u16-casecmp.c: New file.
32638         * modules/unicase/u16-casecmp: New file.
32639
32640         New module 'unicase/u8-casecmp'.
32641         * lib/unicase/u8-casecmp.c: New file.
32642         * lib/unicase/u-casecmp.h: New file.
32643         * modules/unicase/u8-casecmp: New file.
32644
32645         Tests for module 'unicase/u32-casefold'.
32646         * modules/unicase/u32-casefold-tests: New file.
32647         * tests/unicase/test-u32-casefold.c: New file.
32648
32649         Tests for module 'unicase/u16-casefold'.
32650         * modules/unicase/u16-casefold-tests: New file.
32651         * tests/unicase/test-u16-casefold.c: New file.
32652
32653         Tests for module 'unicase/u8-casefold'.
32654         * modules/unicase/u8-casefold-tests: New file.
32655         * tests/unicase/test-u8-casefold.c: New file.
32656
32657         New module 'unicase/u32-casefold'.
32658         * lib/unicase/u32-casefold.c: New file.
32659         * modules/unicase/u32-casefold: New file.
32660
32661         New module 'unicase/u16-casefold'.
32662         * lib/unicase/u16-casefold.c: New file.
32663         * modules/unicase/u16-casefold: New file.
32664
32665         New module 'unicase/u8-casefold'.
32666         * lib/unicase/u8-casefold.c: New file.
32667         * lib/unicase/u-casefold.h: New file.
32668         * modules/unicase/u8-casefold: New file.
32669
32670         New module 'unicase/tocasefold'.
32671         * lib/unicase/casefold.h: New file.
32672         * lib/unicase/tocasefold.c: New file.
32673         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
32674         * modules/unicase/tocasefold: New file.
32675
32676         Tests for module 'unicase/u32-totitle'.
32677         * modules/unicase/u32-totitle-tests: New file.
32678         * tests/unicase/test-u32-totitle.c: New file.
32679
32680         Tests for module 'unicase/u16-totitle'.
32681         * modules/unicase/u16-totitle-tests: New file.
32682         * tests/unicase/test-u16-totitle.c: New file.
32683
32684         Tests for module 'unicase/u8-totitle'.
32685         * modules/unicase/u8-totitle-tests: New file.
32686         * tests/unicase/test-u8-totitle.c: New file.
32687
32688         New module 'unicase/u32-totitle'.
32689         * lib/unicase/u32-totitle.c: New file.
32690         * modules/unicase/u32-totitle: New file.
32691
32692         New module 'unicase/u16-totitle'.
32693         * lib/unicase/u16-totitle.c: New file.
32694         * modules/unicase/u16-totitle: New file.
32695
32696         New module 'unicase/u8-totitle'.
32697         * lib/unicase/u8-totitle.c: New file.
32698         * lib/unicase/u-totitle.h: New file.
32699         * modules/unicase/u8-totitle: New file.
32700
32701         Tests for module 'unicase/u32-tolower'.
32702         * modules/unicase/u32-tolower-tests: New file.
32703         * tests/unicase/test-u32-tolower.c: New file.
32704
32705         Tests for module 'unicase/u16-tolower'.
32706         * modules/unicase/u16-tolower-tests: New file.
32707         * tests/unicase/test-u16-tolower.c: New file.
32708
32709         Tests for module 'unicase/u8-tolower'.
32710         * modules/unicase/u8-tolower-tests: New file.
32711         * tests/unicase/test-u8-tolower.c: New file.
32712
32713         New module 'unicase/u32-tolower'.
32714         * lib/unicase/u32-tolower.c: New file.
32715         * modules/unicase/u32-tolower: New file.
32716
32717         New module 'unicase/u16-tolower'.
32718         * lib/unicase/u16-tolower.c: New file.
32719         * modules/unicase/u16-tolower: New file.
32720
32721         New module 'unicase/u8-tolower'.
32722         * lib/unicase/u8-tolower.c: New file.
32723         * modules/unicase/u8-tolower: New file.
32724
32725         Tests for module 'unicase/u32-toupper'.
32726         * modules/unicase/u32-toupper-tests: New file.
32727         * tests/unicase/test-u32-toupper.c: New file.
32728
32729         Tests for module 'unicase/u16-toupper'.
32730         * modules/unicase/u16-toupper-tests: New file.
32731         * tests/unicase/test-u16-toupper.c: New file.
32732
32733         Tests for module 'unicase/u8-toupper'.
32734         * modules/unicase/u8-toupper-tests: New file.
32735         * tests/unicase/test-u8-toupper.c: New file.
32736
32737         New module 'unicase/u32-toupper'.
32738         * lib/unicase/u32-toupper.c: New file.
32739         * modules/unicase/u32-toupper: New file.
32740
32741         New module 'unicase/u16-toupper'.
32742         * lib/unicase/u16-toupper.c: New file.
32743         * modules/unicase/u16-toupper: New file.
32744
32745         New module 'unicase/u8-toupper'.
32746         * lib/unicase/u8-toupper.c: New file.
32747         * modules/unicase/u8-toupper: New file.
32748
32749         New module 'unicase/u32-casemap'.
32750         * lib/unicase/u32-casemap.c: New file.
32751         * modules/unicase/u32-casemap: New file.
32752
32753         New module 'unicase/u16-casemap'.
32754         * lib/unicase/u16-casemap.c: New file.
32755         * modules/unicase/u16-casemap: New file.
32756
32757         New module 'unicase/u8-casemap'.
32758         * lib/unicase/unicasemap.h: New file.
32759         * lib/unicase/u8-casemap.c: New file.
32760         * lib/unicase/u-casemap.h: New file.
32761         * modules/unicase/u8-casemap: New file.
32762
32763         New module 'unicase/special-casing'.
32764         * lib/unicase/special-casing.h: New file.
32765         * lib/unicase/special-casing.c: New file.
32766         * lib/unicase/special-casing-table.gperf: New file, generated by
32767         gen-uni-tables.c.
32768         * modules/unicase/special-casing: New file.
32769
32770         Tests for module 'unicase/locale-language'.
32771         * modules/unicase/locale-language-tests: New file.
32772         * tests/unicase/test-locale-language.sh: New file.
32773         * tests/unicase/test-locale-language.c: New file.
32774
32775         New module 'unicase/locale-language'.
32776         * lib/unicase/locale-language.c: New file.
32777         * lib/unicase/locale-languages.gperf: New file.
32778         * modules/unicase/locale-language: New file.
32779
32780         Generate more tables for case conversion and case folding.
32781         * lib/gen-uni-tables.c (SCC_*): New enum items.
32782         (struct special_casing_rule): New type.
32783         (casing_rules, num_casing_rules, allocated_casing_rules): New
32784         variables.
32785         (add_casing_rule, fill_casing_rules): New functions.
32786         (struct casefold_rule): New type.
32787         (casefolding_rules, num_casefolding_rules,
32788         allocated_casefolding_rules): New variables.
32789         (fill_casefolding_rules): New function.
32790         (unicode_casefold): New variable.
32791         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
32792         sort_casing_rules, output_casing_rules): New functions.
32793         (main): Accept to more arguments: SpecialCasing.txt and
32794         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
32795         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
32796         Output mapping for casefolding.
32797
32798         * lib/unicase.h: Include stdbool.h, uninorm.h.
32799         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
32800         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
32801         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
32802         arguments.
32803         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
32804         resultp arguments.
32805         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
32806         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
32807         resultp arguments.
32808         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
32809         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
32810         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
32811         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
32812         declarations.
32813         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
32814
32815 2009-03-08  Bruno Haible  <bruno@clisp.org>
32816
32817         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32818         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
32819         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
32820         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32821
32822 2009-03-07  Bruno Haible  <bruno@clisp.org>
32823
32824         Adjust u*_normcmp, u*_normcoll API.
32825         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
32826         u16_normcoll, u32_normcoll): Change failure conventions.
32827         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
32828         errno and return -1.
32829         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
32830
32831 2009-03-07  Bruno Haible  <bruno@clisp.org>
32832
32833         Tests for module 'uninorm/u32-normcoll'.
32834         * modules/uninorm/u32-normcoll-tests: New file.
32835         * tests/uninorm/test-u32-normcoll.c: New file.
32836
32837         Tests for module 'uninorm/u16-normcoll'.
32838         * modules/uninorm/u16-normcoll-tests: New file.
32839         * tests/uninorm/test-u16-normcoll.c: New file.
32840
32841         Tests for module 'uninorm/u8-normcoll'.
32842         * modules/uninorm/u8-normcoll-tests: New file.
32843         * tests/uninorm/test-u8-normcoll.c: New file.
32844
32845 2009-03-07  Bruno Haible  <bruno@clisp.org>
32846
32847         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
32848         tests/uninorm/test-u32-normcmp.c.
32849         * tests/uninorm/test-u32-normcmp.c: Include it.
32850         (test_nonascii): New function, extracted from main. Add some more
32851         tests.
32852         (main): Invoke test_ascii and test_nonascii.
32853         * modules/uninorm/u32-normcmp-tests (Files): Add
32854         tests/uninorm/test-u32-normcmp.h.
32855         (Depends-on): Remove uninorm/u32-normcmp.
32856
32857         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
32858         tests/uninorm/test-u16-normcmp.c.
32859         * tests/uninorm/test-u16-normcmp.c: Include it.
32860         (test_nonascii): New function, extracted from main. Add some more
32861         tests.
32862         (main): Invoke test_ascii and test_nonascii.
32863         * modules/uninorm/u16-normcmp-tests (Files): Add
32864         tests/uninorm/test-u16-normcmp.h.
32865         (Depends-on): Remove uninorm/u16-normcmp.
32866
32867         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
32868         tests/uninorm/test-u8-normcmp.c.
32869         * tests/uninorm/test-u8-normcmp.c: Include it.
32870         (test_nonascii): New function, extracted from main. Add some more
32871         tests.
32872         (main): Invoke test_ascii and test_nonascii.
32873         * modules/uninorm/u8-normcmp-tests (Files): Add
32874         tests/uninorm/test-u8-normcmp.h.
32875         (Depends-on): Remove uninorm/u8-normcmp.
32876
32877 2009-03-07  Bruno Haible  <bruno@clisp.org>
32878
32879         New module 'uninorm/u32-normcoll'.
32880         * lib/uninorm/u32-normcoll.c: New file.
32881         * modules/uninorm/u32-normcoll: New file.
32882
32883         New module 'uninorm/u16-normcoll'.
32884         * lib/uninorm/u16-normcoll.c: New file.
32885         * modules/uninorm/u16-normcoll: New file.
32886
32887         New module 'uninorm/u8-normcoll'.
32888         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
32889         declarations.
32890         * lib/uninorm/u8-normcoll.c: New file.
32891         * lib/uninorm/u-normcoll.h: New file.
32892         * modules/uninorm/u8-normcoll: New file.
32893
32894         New module 'uninorm/u32-normxfrm'.
32895         * lib/uninorm/u32-normxfrm.c: New file.
32896         * modules/uninorm/u32-normxfrm: New file.
32897
32898         New module 'uninorm/u16-normxfrm'.
32899         * lib/uninorm/u16-normxfrm.c: New file.
32900         * modules/uninorm/u16-normxfrm: New file.
32901
32902         New module 'uninorm/u8-normxfrm'.
32903         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
32904         declarations.
32905         * lib/uninorm/u8-normxfrm.c: New file.
32906         * lib/uninorm/u-normxfrm.h: New file.
32907         * modules/uninorm/u8-normxfrm: New file.
32908
32909 2009-03-07  Bruno Haible  <bruno@clisp.org>
32910
32911         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
32912         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
32913         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
32914
32915 2009-03-07  Bruno Haible  <bruno@clisp.org>
32916
32917         New module 'memxfrm'.
32918         * lib/memxfrm.h: New file.
32919         * lib/memxfrm.c: New file.
32920         * modules/memxfrm: New file.
32921
32922 2009-03-07  Bruno Haible  <bruno@clisp.org>
32923
32924         New module 'memcmp2'.
32925         * lib/memcmp2.h: New file.
32926         * lib/memcmp2.c: New file.
32927         * modules/memcmp2: New file.
32928
32929 2009-03-07  Bruno Haible  <bruno@clisp.org>
32930
32931         Tests for module 'uninorm/decomposing-form'.
32932         * modules/uninorm/decomposing-form-tests: New file.
32933         * tests/uninorm/test-decomposing-form.c: New file.
32934
32935         New module 'uninorm/decomposing-form'.
32936         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
32937         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
32938         Add 'decomposing_variant' field.
32939         * lib/uninorm/decomposing-form.c: New file.
32940         * lib/uninorm/nfc.c (uninorm_nfc): Update.
32941         * lib/uninorm/nfd.c (uninorm_nfd): Update.
32942         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
32943         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
32944         * modules/uninorm/decomposing-form: New file.
32945         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
32946         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
32947
32948 2009-03-07  Bruno Haible  <bruno@clisp.org>
32949
32950         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
32951         strings.
32952
32953 2009-03-06  Bruno Haible  <bruno@clisp.org>
32954
32955         Tests for module 'uninorm/u32-normcmp'.
32956         * tests/uninorm/test-u32-normcmp.c: New file.
32957         * modules/uninorm/u32-normcmp-tests: New file.
32958
32959         Tests for module 'uninorm/u16-normcmp'.
32960         * tests/uninorm/test-u16-normcmp.c: New file.
32961         * modules/uninorm/u16-normcmp-tests: New file.
32962
32963         Tests for module 'uninorm/u8-normcmp'.
32964         * tests/uninorm/test-u8-normcmp.c: New file.
32965         * modules/uninorm/u8-normcmp-tests: New file.
32966
32967         New module 'uninorm/u32-normcmp'.
32968         * lib/uninorm/u32-normcmp.c: New file.
32969         * modules/uninorm/u32-normcmp: New file.
32970
32971         New module 'uninorm/u16-normcmp'.
32972         * lib/uninorm/u16-normcmp.c: New file.
32973         * modules/uninorm/u16-normcmp: New file.
32974
32975         New module 'uninorm/u8-normcmp'.
32976         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
32977         declarations.
32978         * lib/uninorm/u8-normcmp.c: New file.
32979         * lib/uninorm/u-normcmp.h: New file.
32980         * modules/uninorm/u8-normcmp: New file.
32981
32982 2009-03-06  Bruno Haible  <bruno@clisp.org>
32983
32984         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
32985         Reported by Eric Blake.
32986
32987 2009-03-06  Eric Blake  <ebb9@byu.net>
32988             Bruno Haible  <bruno@clisp.org>
32989
32990         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
32991         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
32992         condition.
32993         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32994         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
32995         condition.
32996         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
32997
32998 2009-03-06  Eric Blake  <ebb9@byu.net>
32999
33000         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
33001         to avoid compiler warnings.
33002         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
33003
33004 2009-03-05  Bruno Haible  <bruno@clisp.org>
33005
33006         * tests/test-ftell.c (main): Disable test beyond end of file on
33007         FreeMiNT.
33008         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33009
33010 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
33011
33012         * lib/filevercmp.c: Move hidden files up in ordering.
33013         * tests/test-filevercmp.c: Add tests for hidden files.
33014
33015 2009-03-04  Bruno Haible  <bruno@clisp.org>
33016
33017         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
33018         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
33019         AM_CFLAGS.
33020         Reported by Simon Josefsson.
33021
33022 2009-03-03  Bruno Haible  <bruno@clisp.org>
33023
33024         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
33025         Reported by Simon Josefsson.
33026
33027         * doc/ld-version-script.texi: Update node reference.
33028
33029 2009-03-03  Bruno Haible  <bruno@clisp.org>
33030
33031         * modules/visibility (License): Change to 'unlimited'.
33032         Suggested by Simon Josefsson.
33033
33034 2009-03-03  Jim Meyering  <meyering@redhat.com>
33035
33036         unlinkdir: cannot_unlink_dir may modify process state
33037         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
33038         it's neither thread-safe nor appropriate for use in a library.
33039
33040 2009-03-03  Eric Blake  <ebb9@byu.net>
33041
33042         test-closein: silence test under Darwin
33043         * tests/test-closein.sh: Ignore stderr from cat, since we don't
33044         care if it dies from EPIPE or EBADF.
33045
33046 2009-03-03  Bruno Haible  <bruno@clisp.org>
33047
33048         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
33049         earlier.
33050         * doc/visibility.texi: Fix @node and @section.
33051
33052 2009-03-03  Simon Josefsson  <simon@josefsson.org>
33053
33054         * doc/gnulib.texi: Link to sections for ld version script and
33055         visibility.
33056         * doc/visibility.texi: Add @node and @section.
33057         * modules/ld-version-script: New module.
33058         * m4/ld-version-script.m4: New file.
33059         * doc/ld-version-script.texi: New file.
33060
33061 2009-03-02  David Lutterkort  <lutter@redhat.com>
33062
33063         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
33064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33065
33066 2009-03-02  Bruno Haible  <bruno@clisp.org>
33067
33068         * doc/visibility.texi: Mention libtool's -export-symbols option.
33069
33070 2009-03-02  Jim Meyering  <meyering@redhat.com>
33071
33072         announce-gen: new option: --no-print-checksums
33073         * build-aux/announce-gen (usage): Describe it.
33074         (print_checksums): Print a newline here, not in the [*] footnote.
33075         (main): Honor it.
33076
33077 2009-03-01  Bruno Haible  <bruno@clisp.org>
33078
33079         Use socklen_t in the native Windows replacements prototypes.
33080         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
33081         instead of 'int'.
33082         * lib/getsockopt.c (rpl_getsockopt): Likewise.
33083         * lib/setsockopt.c (rpl_setsockopt): Likewise.
33084         * modules/getsockopt (Depends-on): Add socklen.
33085         * modules/setsockopt (Depends-on): Add socklen.
33086
33087 2009-03-01  Bruno Haible  <bruno@clisp.org>
33088
33089         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
33090         least 4.2.
33091
33092 2009-03-01  Eric Blake  <ebb9@byu.net>
33093             Bruno Haible  <bruno@clisp.org>
33094
33095         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
33096         error messages.
33097         * lib/wait-process.c (wait_subprocess): Omit error message about
33098         deadly signal sent to the child of termsigp != NULL.
33099
33100 2009-03-01  Eric Blake  <ebb9@byu.net>
33101
33102         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
33103
33104 2009-03-01  Bruno Haible  <bruno@clisp.org>
33105
33106         Avoid a gcc warning.
33107         * tests/test-sched.c (b): Make global.
33108         Reported by Eric Blake.
33109
33110 2009-01-19  Martin Lambers  <marlam@marlam.de>
33111
33112         Provide POSIX semantics for socket timeout options on W32.
33113         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
33114         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
33115         * modules/setsockopt: Depend on sys_time module for struct timeval.
33116         * modules/getsockopt: Depend on sys_time module for struct timeval.
33117
33118 2009-03-01  Simon Josefsson  <simon@josefsson.org>
33119
33120         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
33121         __USE_GNU, for consistency with netdb.in.h.
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/fseeko.c (rpl_fseeko): Complete last commit.
33128         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33129
33130 2009-03-01  Bruno Haible  <bruno@clisp.org>
33131
33132         More support for FreeMiNT.
33133         * lib/fpurge.c (fpurge): Correct last commit.
33134         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33135
33136 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33137
33138         Fix unportable awk script in vc-list-files.
33139         * build-aux/vc-list-files: In the replacement awk script, use
33140         substr with a second argument of 1, not zero.
33141         Report by Simon Josefsson.
33142
33143 2009-02-28  Bruno Haible  <bruno@clisp.org>
33144
33145         More support for FreeMiNT.
33146         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
33147         to FreeMiNT today.
33148         * lib/fwriting.c (fwriting): Likewise.
33149         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
33150
33151 2009-02-28  Bruno Haible  <bruno@clisp.org>
33152
33153         * tests/test-freadseek.c (main): Disable test beyond end of file on
33154         FreeMiNT.
33155         * tests/test-ftello.c (main): Likewise.
33156         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
33157
33158 2009-02-28  Bruno Haible  <bruno@clisp.org>
33159
33160         Add tentative support for FreeMiNT.
33161         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
33162         * lib/fpurge.c (fpurge): Likewise.
33163         * lib/freadable.c (freadable): Likewise.
33164         * lib/freading.c (freading): Likewise.
33165         * lib/freadptr.c (freadptr): Likewise.
33166         * lib/freadseek.c (freadptrinc): Likewise.
33167         * lib/fseeko.c (rpl_fseeko): Likewise.
33168         * lib/fseterr.c (fseterr): Likewise.
33169         * lib/fwritable.c (fwritable): Likewise.
33170         * lib/fwriting.c (fwriting): Likewise.
33171         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
33172         Hourihane.
33173         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33174
33175 2009-02-28  Bruno Haible  <bruno@clisp.org>
33176
33177         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
33178         SIGCHLD.
33179         Reported by Jim Meyering.
33180
33181 2009-02-28  Bruno Haible  <bruno@clisp.org>
33182
33183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
33184         Mention the results of these tests on various platforms.
33185         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
33186         order.
33187         * doc/posix-functions/printf.texi: Likewise.
33188         * doc/posix-functions/snprintf.texi: Likewise.
33189         * doc/posix-functions/sprintf.texi: Likewise.
33190         * doc/posix-functions/vfprintf.texi: Likewise.
33191         * doc/posix-functions/vprintf.texi: Likewise.
33192         * doc/posix-functions/vsnprintf.texi: Likewise.
33193         * doc/posix-functions/vsprintf.texi: Likewise.
33194         * doc/glibc-functions/obstack_printf.texi: Likewise.
33195         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33196
33197 2009-02-28  Bruno Haible  <bruno@clisp.org>
33198
33199         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
33200         Reported by Loïc Minier <lool@dooz.org>.
33201
33202 2009-02-27  Bruno Haible  <bruno@clisp.org>
33203
33204         * gnulib-tool (func_import): Make the sed expression used to create the
33205         sed script for updating the .gitignore file POSIX compliant.
33206         Reported by Eric Blake.
33207
33208 2009-02-27  Bruno Haible  <bruno@clisp.org>
33209
33210         * gnulib-tool (sed): Don't alias as "sed --posix".
33211         Reported by Eric Blake.
33212
33213 2009-02-27  Bruno Haible  <bruno@clisp.org>
33214
33215         Avoid test link errors.
33216         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
33217         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
33218         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
33219         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
33220         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33221
33222 2009-02-27  Bruno Haible  <bruno@clisp.org>
33223
33224         Avoid spurious "(cached)" in configure output.
33225         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
33226         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
33227         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33228         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33229         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33230         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
33231         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33232         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
33233         Reported by Eric Blake.
33234
33235 2009-02-27  Eric Blake  <ebb9@byu.net>
33236
33237         printf: fix regression in previous patch
33238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
33239
33240 2009-02-27  Bruno Haible  <bruno@clisp.org>
33241
33242         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
33243         value.
33244         * lib/stdint.in.h: Likewise.
33245         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
33246
33247 2009-02-27  Eric Blake  <ebb9@byu.net>
33248
33249         doc: mention more functions added in cygwin 1.7.0
33250         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
33251         addition.
33252         * doc/posix-functions/open_wmemstream.texi: Likewise.
33253         * doc/posix-functions/wcsnlen.texi: Likewise.
33254         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33255         * doc/posix-functions/wcstod.texi: Likewise.
33256         * doc/posix-functions/wcstof.texi: Likewise.
33257         * doc/posix-functions/wcstoimax.texi: Likewise.
33258         * doc/posix-functions/wcstok.texi: Likewise.
33259         * doc/posix-functions/wcstoumax.texi: Likewise.
33260
33261         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
33262         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
33263         * doc/posix-functions/fprintf.texi: Update.
33264         * doc/posix-functions/printf.texi: Update.
33265         * doc/posix-functions/snprintf.texi: Update.
33266         * doc/posix-functions/sprintf.texi: Update.
33267         * doc/posix-functions/vfprintf.texi: Update.
33268         * doc/posix-functions/vprintf.texi: Update.
33269         * doc/posix-functions/vsnprintf.texi: Update.
33270         * doc/posix-functions/vsprintf.texi: Update.
33271         * doc/glibc-functions/obstack_printf.texi: Update.
33272         * doc/glibc-functions/obstack_vprintf.texi: Update.
33273
33274 2009-02-26  Eric Blake  <ebb9@byu.net>
33275
33276         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
33277         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
33278         compilation bug by using runtime conversion.
33279         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33280         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
33281         * modules/ceill-tests (Files): Use nan.h.
33282         * modules/floorl-tests (Files): Likewise.
33283         * modules/frexpl-tests (Files): Likewise.
33284         * modules/isnanl-tests (Files): Likewise.
33285         * modules/ldexpl-tests (Files): Likewise.
33286         * modules/roundl-tests (Files): Likewise.
33287         * modules/truncl-tests (Files): Likewise.
33288         * tests/test-ceill.c (main): Use a working NaN.
33289         * tests/test-floorl.c (main): Likewise.
33290         * tests/test-frexpl.c (main): Likewise.
33291         * tests/test-isnan.c (test_long_double): Likewise.
33292         * tests/test-isnanl.h (main): Likewise.
33293         * tests/test-ldexpl.h (main): Likewise.
33294         * tests/test-roundl.h (main): Likewise.
33295         * tests/test-truncl.h (main): Likewise.
33296         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
33297
33298 2009-02-26  Eric Blake  <ebb9@byu.net>
33299             Bruno Haible  <bruno@clisp.org>
33300
33301         Work around a *printf bug with %ls on Solaris.
33302         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
33303         precision is specified, sprintf stops converting the wide string
33304         argument when the number of bytes that have been produced by this
33305         conversion equals or exceeds the precision.
33306         * doc/posix-functions/fprintf.texi: Update.
33307         * doc/posix-functions/printf.texi: Update.
33308         * doc/posix-functions/snprintf.texi: Update.
33309         * doc/posix-functions/sprintf.texi: Update.
33310         * doc/posix-functions/vfprintf.texi: Update.
33311         * doc/posix-functions/vprintf.texi: Update.
33312         * doc/posix-functions/vsnprintf.texi: Update.
33313         * doc/posix-functions/vsprintf.texi: Update.
33314         * doc/glibc-functions/obstack_printf.texi: Update.
33315         * doc/glibc-functions/obstack_vprintf.texi: Update.
33316
33317 2009-02-26  Eric Blake  <ebb9@byu.net>
33318
33319         stdlib: favor compiler check of random.h
33320         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
33321         to avoid an ObjC random.h installed by Swarm.
33322
33323 2009-02-26  Bruno Haible  <bruno@clisp.org>
33324
33325         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
33326         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
33327         Reported by Gary V. Vaughan <gary@gnu.org>.
33328
33329 2009-02-26  Bruno Haible  <bruno@clisp.org>
33330
33331         Fix *printf behaviour regarding the %ls directive.
33332         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
33333         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
33334         NEED_PRINTF_DIRECTIVE_LS.
33335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
33336         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33337         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33338         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
33339         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
33340         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
33341         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
33342         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33344         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33345         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33346         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
33347         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33349         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33350         * doc/posix-functions/fprintf.texi: Update.
33351         * doc/posix-functions/printf.texi: Update.
33352         * doc/posix-functions/snprintf.texi: Update.
33353         * doc/posix-functions/sprintf.texi: Update.
33354         * doc/posix-functions/vfprintf.texi: Update.
33355         * doc/posix-functions/vprintf.texi: Update.
33356         * doc/posix-functions/vsnprintf.texi: Update.
33357         * doc/posix-functions/vsprintf.texi: Update.
33358         * doc/glibc-functions/obstack_printf.texi: Update.
33359         * doc/glibc-functions/obstack_vprintf.texi: Update.
33360         Reported by Eric Blake.
33361
33362 2009-02-25  Bruno Haible  <bruno@clisp.org>
33363
33364         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
33365         with known value.
33366         Reported by Gary V. Vaughan <gary@gnu.org>.
33367
33368 2009-02-25  Bruno Haible  <bruno@clisp.org>
33369
33370         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
33371         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
33372         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
33373         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
33374         Reported by Gary V. Vaughan <gary@gnu.org>.
33375
33376 2009-02-25  Bruno Haible  <bruno@clisp.org>
33377
33378         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
33379         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
33380         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
33381         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
33382         Reported by Gary V. Vaughan <gary@gnu.org>.
33383
33384 2009-02-25  Eric Blake  <ebb9@byu.net>
33385
33386         tests: skip fseek/ftell tests if ungetc is broken
33387         * m4/ungetc.m4: New file.
33388         * modules/fseek-tests: Split test, so ungetc dependency is
33389         separate from rest of test.
33390         * modules/fseeko-tests: Likewise.
33391         * modules/ftell-tests: Likewise.
33392         * modules/ftello-tests: Likewise.
33393         * tests/test-fseek.c (main): Isolate ungetc dependency.
33394         * tests/test-fseeko.c (main): Likewise.
33395         * tests/test-ftell.c (main): Likewise.
33396         * tests/test-ftello.c (main): Likewise.
33397         * tests/test-fseek2.sh: New file.
33398         * tests/test-fseeko2.sh: Likewise.
33399         * tests/test-ftell2.sh: Likewise.
33400         * tests/test-ftello2.sh: Likewise.
33401
33402 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
33403
33404         test-getaddrinfo: fix usage of skip return code 77
33405         * tests/test-gettaddrinfo.c: Return skip code 77 only
33406         for first occurance of skip (4x77 is not 77)
33407
33408 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
33409
33410         strtod: avoid C99 decl-after-statement
33411         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
33412
33413 2009-02-24  Eric Blake  <ebb9@byu.net>
33414
33415         strtod: detect HP-UX 11.31 bug
33416         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
33417         Reported by Gary V. Vaughan.
33418
33419 2009-02-23  Bruno Haible  <bruno@clisp.org>
33420
33421         Fix invalid read past end of memory block.
33422         * lib/vasnprintf.c (DCHAR_SET): Define.
33423         (local_wcslen): Define only when needed.
33424         (local_strnlen, local_wcsnlen): New functions.
33425         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
33426         directives that involve a conversion ourselves.
33427         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
33428         wcsnlen, mbrtowc, wcrtomb.
33429         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
33430         * tests/test-vasprintf-posix.c (test_function): Likewise.
33431         * tests/test-snprintf-posix.h (test_function): Likewise.
33432         * tests/test-sprintf-posix.h (test_function): Likewise.
33433         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33434
33435 2009-02-22  Bruno Haible  <bruno@clisp.org>
33436
33437         Implement new clarified decomposition of Hangul syllables.
33438         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
33439         of type LTV, return only a pairwise decomposition.
33440         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
33441         Likewise.
33442         * tests/uninorm/test-decomposition.c (main): Updated expected result.
33443         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
33444         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
33445
33446 2009-02-22  Bruno Haible  <bruno@clisp.org>
33447
33448         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
33449         zero-length results and shrink excess allocated memory.
33450         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
33451         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
33452         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
33453         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
33454         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
33455         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
33456         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
33457         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
33458         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
33459         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
33460         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
33461         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
33462
33463 2009-02-21  Bruno Haible  <bruno@clisp.org>
33464
33465         * doc/gnulib.texi: Include safe-alloc.texi earlier.
33466         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
33467         spaces after a period. Put a space between a macro name and its
33468         argument list. Trivial rewordings.
33469         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
33470         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
33471         (main): Return 0 explicitly.
33472
33473 2009-02-21  Bruno Haible  <bruno@clisp.org>
33474
33475         Tests for module 'uninorm/filter'.
33476         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
33477         * modules/uninorm/filter-tests: New file.
33478
33479         New module 'uninorm/filter'.
33480         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
33481         uninorm_filter_flush, uninorm_filter_free): New declarations.
33482         * lib/uninorm/uninorm-filter.c: New file.
33483         * modules/uninorm/filter: New file.
33484
33485 2009-02-21  Bruno Haible  <bruno@clisp.org>
33486
33487         Tests for module 'uninorm/nfkc'.
33488         * tests/uninorm/test-nfkc.c: New file.
33489         * tests/uninorm/test-u8-nfkc.c: New file.
33490         * tests/uninorm/test-u16-nfkc.c: New file.
33491         * tests/uninorm/test-u32-nfkc.c: New file.
33492         * tests/uninorm/test-u32-nfkc-big.sh: New file.
33493         * tests/uninorm/test-u32-nfkc-big.c: New file.
33494         * modules/uninorm/nfkc-tests: New file.
33495
33496         New module 'uninorm/nfkc'.
33497         * lib/uninorm/nfkc.c: New file.
33498         * modules/uninorm/nfkc: New file.
33499
33500         Tests for module 'uninorm/nfkd'.
33501         * tests/uninorm/test-nfkd.c: New file.
33502         * tests/uninorm/test-u8-nfkd.c: New file.
33503         * tests/uninorm/test-u16-nfkd.c: New file.
33504         * tests/uninorm/test-u32-nfkd.c: New file.
33505         * tests/uninorm/test-u32-nfkd-big.sh: New file.
33506         * tests/uninorm/test-u32-nfkd-big.c: New file.
33507         * modules/uninorm/nfkd-tests: New file.
33508
33509         New module 'uninorm/nfkd'.
33510         * lib/uninorm/nfkd.c: New file.
33511         * modules/uninorm/nfkd: New file.
33512
33513         Tests for module 'uninorm/nfc'.
33514         * tests/uninorm/test-nfc.c: New file.
33515         * tests/uninorm/test-u8-nfc.c: New file.
33516         * tests/uninorm/test-u16-nfc.c: New file.
33517         * tests/uninorm/test-u32-nfc.c: New file.
33518         * tests/uninorm/test-u32-nfc-big.sh: New file.
33519         * tests/uninorm/test-u32-nfc-big.c: New file.
33520         * modules/uninorm/nfc-tests: New file.
33521
33522         New module 'uninorm/nfc'.
33523         * lib/uninorm/nfc.c: New file.
33524         * modules/uninorm/nfc: New file.
33525
33526         Tests for module 'uninorm/nfd'.
33527         * tests/uninorm/test-nfd.c: New file.
33528         * tests/uninorm/test-u8-nfd.c: New file.
33529         * tests/uninorm/test-u16-nfd.c: New file.
33530         * tests/uninorm/test-u32-nfd.c: New file.
33531         * tests/uninorm/test-u32-nfd-big.sh: New file.
33532         * tests/uninorm/test-u32-nfd-big.c: New file.
33533         * tests/uninorm/test-u32-normalize-big.h: New file.
33534         * tests/uninorm/test-u32-normalize-big.c: New file.
33535         * tests/uninorm/NormalizationTest.txt: New file, created from
33536         Unicode 5.1.0 NormalizationTest.txt.
33537         * modules/uninorm/nfd-tests: New file.
33538
33539         New module 'uninorm/nfd'.
33540         * lib/uninorm/nfd.c: New file.
33541         * modules/uninorm/nfd: New file.
33542
33543         New module 'uninorm/u32-normalize'.
33544         * lib/uninorm/u32-normalize.c: New file.
33545         * modules/uninorm/u32-normalize: New file.
33546
33547         New module 'uninorm/u16-normalize'.
33548         * lib/uninorm/u16-normalize.c: New file.
33549         * modules/uninorm/u16-normalize: New file.
33550
33551         New module 'uninorm/u8-normalize'.
33552         * lib/uninorm/u8-normalize.c: New file.
33553         * lib/uninorm/normalize-internal.h: New file.
33554         * lib/uninorm/u-normalize-internal.h: New file.
33555         * modules/uninorm/u8-normalize: New file.
33556
33557         New module 'uninorm/decompose-internal'.
33558         * lib/uninorm/decompose-internal.c: New file.
33559         * modules/uninorm/decompose-internal: New file.
33560
33561         Tests for module 'uninorm/composition'.
33562         * tests/uninorm/test-composition.c: New file.
33563         * modules/uninorm/composition-tests: New file.
33564
33565         New module 'uninorm/composition'.
33566         * lib/uninorm/composition.c: New file.
33567         * lib/uninorm/composition-table.gperf: New file, generated by
33568         gen-uni-tables.
33569         * modules/uninorm/composition: New file.
33570
33571         Tests for module 'uninorm/compat-decomposition'.
33572         * tests/uninorm/test-compat-decomposition.c: New file.
33573         * modules/uninorm/compat-decomposition-tests: New file.
33574
33575         New module 'uninorm/compat-decomposition'.
33576         * lib/uninorm/decompose-internal.h: New file.
33577         * lib/uninorm/compat-decomposition.c: New file.
33578         * modules/uninorm/compat-decomposition: New file.
33579
33580         Tests for module 'uninorm/canonical-decomposition'.
33581         * tests/uninorm/test-canonical-decomposition.c: New file.
33582         * modules/uninorm/canonical-decomposition-tests: New file.
33583
33584         New module 'uninorm/canonical-decomposition'.
33585         * lib/uninorm/canonical-decomposition.c: New file.
33586         * modules/uninorm/canonical-decomposition: New file.
33587
33588         Tests for module 'uninorm/decomposition'.
33589         * tests/uninorm/test-decomposition.c: New file.
33590         * modules/uninorm/decomposition-tests: New file.
33591
33592         New module 'uninorm/decomposition'.
33593         * lib/uninorm/decomposition.c: New file.
33594         * modules/uninorm/decomposition: New file.
33595
33596         New module 'uninorm/decomposition-table'.
33597         * lib/uninorm/decomposition-table.h: New file.
33598         * lib/uninorm/decomposition-table.c: New file.
33599         * lib/uninorm/decomposition-table1.h: New file, generated by
33600         gen-uni-tables.
33601         * lib/uninorm/decomposition-table2.h: New file, generated by
33602         gen-uni-tables.
33603         * modules/uninorm/decomposition-table: New file.
33604
33605         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
33606         (UC_DECOMP_*): New enumeration items.
33607         (get_decomposition): New function.
33608         (struct decomp_table): New type.
33609         (output_decomposition, output_decomposition_tables): New functions.
33610         (unicode_composition_exclusions): New variable.
33611         (fill_composition_exclusions, debug_output_composition_tables): New
33612         functions.
33613         (main): Accept one more argument. Invoke fill_composition_exclusions.
33614         Output decomposition and composition tables.
33615
33616         New module 'uninorm/base'.
33617         * lib/uninorm.h: New file.
33618         * lib/unictype.h: Update comment.
33619         * modules/uninorm/base: New file.
33620
33621 2009-02-21  David Lutterkort  <lutter@redhat.com>
33622
33623         Tests for module 'safe-alloc'.
33624         * tests/test-safe-alloc.c: New file.
33625         * modules/safe-alloc-tests: New file.
33626
33627         New module 'safe-alloc'.
33628         * lib/safe-alloc.h: New file.
33629         * lib/safe-alloc.c: New file.
33630         * m4/safe-alloc.m4: New file.
33631         * modules/safe-alloc: New file.
33632         * doc/safe-alloc.texi: New file.
33633         * doc/gnulib.texi: Include it.
33634         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
33635         safe-alloc.
33636
33637 2009-02-18  Bruno Haible  <bruno@clisp.org>
33638
33639         Fix link error on non-glibc systems.
33640         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
33641         variable.
33642         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33643
33644 2009-02-18  Jim Meyering  <meyering@redhat.com>
33645
33646         fts: avoid used-uninitialized error due to recent change
33647         * lib/fts.c (fts_read): Guard uses of the new member,
33648         parent->fts_n_dirs_remaining, since it's not relevant for
33649         the parent of a directory specified on the command-line.
33650
33651 2009-02-17  James Youngman  <jay@gnu.org>
33652             Bruno Haible  <bruno@clisp.org>
33653
33654         * m4/include_next.m4: Reformulate comment.
33655
33656 2009-02-16  Jim Meyering  <meyering@redhat.com>
33657
33658         fts: add #if guards so that the fts_lgpl module still builds
33659         * lib/fts.c: Guard just-added hash-table-using parts with
33660         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
33661         Reported by Simon Josefsson.
33662
33663 2009-02-15  Bruno Haible  <bruno@clisp.org>
33664
33665         * modules/array-mergesort-tests: New file.
33666         * tests/test-array-mergesort.c: New file.
33667
33668         New module 'array-mergesort'.
33669         * modules/array-mergesort: New file.
33670         * lib/array-mergesort.h: New file.
33671
33672 2009-02-15  Bruno Haible  <bruno@clisp.org>
33673
33674         Fix 2009-02-07 commit.
33675         * lib/gen-uni-tables.c (output_predicate, output_category,
33676         output_combclass, output_bidi_category, output_decimal_digit,
33677         output_digit, output_numeric, output_mirror, output_scripts,
33678         output_ident_category, output_simple_mapping): Fix format directives.
33679         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
33680
33681 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
33682
33683         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
33684         fixes are available from IBM.
33685
33686 2009-02-13  Jim Meyering  <meyering@redhat.com>
33687
33688         fts: arrange not to stat non-directories in more cases
33689         This makes GNU find (when it doesn't need to stat each file)
33690         *much* more efficient at traversing reiserfs file systems.
33691         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
33692         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
33693         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
33694         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
33695         (leaf_optimization_applies): New function.
33696         (LCO_hash, LCO_compare): New helper functions.
33697         (link_count_optimize_ok): New function.
33698         (fts_stat): Initialize new member (if dir).
33699         (fts_read): Decrement parent's fts_n_dirs_remaining count if
33700         we've just stat'ed a directory.  Skip the stat call when possible.
33701         ---
33702         Note this AFS-related exchange:
33703         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
33704         and note find's pioctl call in find/fstype.c.
33705         But that is necessary only if you want to enable the
33706         optimization for AFS, and for now, I don't.
33707
33708         fts: move a function definition "up" (no semantic change)
33709         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
33710         "up" to precede upcoming use of a related function.
33711
33712 2009-02-11  Jim Meyering  <meyering@redhat.com>
33713
33714         fts: correct internal computation of nlinks (optimization-related)
33715         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
33716         whether the current entry is a directory, so don't test it.
33717
33718 2009-02-10  Bruno Haible  <bruno@clisp.org>
33719
33720         Tests for module 'uniwbrk/ulc-wordbreaks'.
33721         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
33722         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
33723         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
33724
33725         Tests for module 'uniwbrk/u32-wordbreaks'.
33726         * modules/uniwbrk/u32-wordbreaks-tests: New file.
33727         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
33728
33729         Tests for module 'uniwbrk/u16-wordbreaks'.
33730         * modules/uniwbrk/u16-wordbreaks-tests: New file.
33731         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
33732
33733         Tests for module 'uniwbrk/u8-wordbreaks'.
33734         * modules/uniwbrk/u8-wordbreaks-tests: New file.
33735         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
33736
33737 2009-02-10  Bruno Haible  <bruno@clisp.org>
33738
33739         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
33740         property.
33741         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
33742         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
33743         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
33744
33745 2009-02-10  Simon Josefsson  <simon@josefsson.org>
33746
33747         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
33748         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
33749
33750 2009-02-10  Bruno Haible  <bruno@clisp.org>
33751
33752         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
33753         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
33754         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
33755         * lib/unilbrk/u8-possible-linebreaks.c: Update.
33756         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
33757         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
33758
33759 2009-02-09  Simon Josefsson  <simon@josefsson.org>
33760
33761         * lib/sockets.h (gl_fd_to_handle): New function.
33762
33763         * tests/test-sockets.c: Call gl_fd_to_handle.
33764
33765 2009-02-09  Bruno Haible  <bruno@clisp.org>
33766
33767         * doc/havelib.texi: Document the conventions on bi-arch systems.
33768
33769 2009-02-08  Bruno Haible  <bruno@clisp.org>
33770
33771         Document the AC_LIB_LINKFLAGS macro.
33772         * doc/havelib.texi: New file, mostly written on 2005-05-24.
33773         * doc/gnulib.texi: Include it.
33774
33775 2009-02-08  Bruno Haible  <bruno@clisp.org>
33776
33777         Fix wrong order of sections, compared to TOC.
33778         * doc/gnulib.texi: Include relocatable-maint.texi after the
33779         "Regular expressions" node, not before.
33780
33781 2009-02-08  Bruno Haible  <bruno@clisp.org>
33782
33783         Tests for module 'unicase/totitle'.
33784         * modules/unicase/totitle-tests: New file.
33785
33786         Tests for module 'unicase/tolower'.
33787         * modules/unicase/tolower-tests: New file.
33788
33789         Tests for module 'unicase/toupper'.
33790         * modules/unicase/toupper-tests: New file.
33791         * tests/unicase/test-mapping-part1.h: New file.
33792         * tests/unicase/test-mapping-part2.h: New file.
33793
33794         New module 'unicase/totitle'.
33795         * modules/unicase/totitle: New file.
33796         * lib/unicase/totitle.c: New file.
33797
33798         New module 'unicase/tolower'.
33799         * modules/unicase/tolower: New file.
33800         * lib/unicase/tolower.c: New file.
33801
33802         New module 'unicase/toupper'.
33803         * modules/unicase/toupper: New file.
33804         * lib/unicase/toupper.c: New file.
33805         * lib/unicase/simple-mapping.h: New file.
33806
33807         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
33808         (mapping_table): New structure.
33809         (output_simple_mapping): New function.
33810         (main): Invoke output_simple_mapping_test and output_simple_mapping.
33811         * modules/gen-uni-tables (Description): Update.
33812         * lib/unicase/toupper.h: New file, automatically generated by
33813         gen-uni-tables.
33814         * lib/unicase/tolower.h: New file, automatically generated by
33815         gen-uni-tables.
33816         * lib/unicase/totitle.h: New file, automatically generated by
33817         gen-uni-tables.
33818         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
33819         gen-uni-tables.
33820         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
33821         gen-uni-tables.
33822         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
33823         gen-uni-tables.
33824
33825         New module 'unicase/base'.
33826         * modules/unicase/base: New file.
33827         * lib/unicase.h: New file.
33828
33829 2009-02-08  Bruno Haible  <bruno@clisp.org>
33830
33831         New module 'uniwbrk/ulc-wordbreaks'.
33832         * modules/uniwbrk/ulc-wordbreaks: New file.
33833         * lib/uniwbrk/ulc-wordbreaks.c: New file.
33834
33835         New module 'uniwbrk/u32-wordbreaks'.
33836         * modules/uniwbrk/u32-wordbreaks: New file.
33837         * lib/uniwbrk/u32-wordbreaks.c: New file.
33838
33839         New module 'uniwbrk/u16-wordbreaks'.
33840         * modules/uniwbrk/u16-wordbreaks: New file.
33841         * lib/uniwbrk/u16-wordbreaks.c: New file.
33842
33843         New module 'uniwbrk/u8-wordbreaks'.
33844         * modules/uniwbrk/u8-wordbreaks: New file.
33845         * lib/uniwbrk/u8-wordbreaks.c: New file.
33846         * lib/uniwbrk/u-wordbreaks.h: New file.
33847
33848         New module 'uniwbrk/table'.
33849         * modules/uniwbrk/table: New file.
33850         * lib/uniwbrk/wbrktable.h: New file.
33851         * lib/uniwbrk/wbrktable.c: New file.
33852
33853         New module 'uniwbrk/wordbreak-property'.
33854         * modules/uniwbrk/wordbreak-property: New file.
33855         * lib/uniwbrk/wordbreak-property.c: New file.
33856
33857         * lib/gen-uni-tables.c (WBP_*): New enum items.
33858         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
33859         (unicode_org_wbp): New variable.
33860         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
33861         New functions.
33862         (wbp_table): New structure.
33863         (output_wbp, output_wbrk_tables): New functions.
33864         (main): Accept additional argument. Invoke fill_org_wbp,
33865         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
33866         output_wbrk_tables.
33867         * modules/gen-uni-tables (Description): Update.
33868         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
33869         gen-uni-tables.
33870
33871         New module 'uniwbrk/base'.
33872         * modules/uniwbrk/base: New file.
33873         * lib/uniwbrk.h: New file.
33874
33875 2009-02-08  Bruno Haible  <bruno@clisp.org>
33876
33877         Update to Unicode 5.1.0.
33878         * lib/gen-uni-tables.c (is_property_alphabetic): Include
33879         U+2185..U+2188.
33880         (is_property_default_ignorable_code_point): Don't include characters
33881         of category Cc or Cs and not-a-characters.
33882         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
33883         U+0D79, U+109E, U+109F, U+A60C.
33884         * lib/unictype/bidi_of.h: Regenerated.
33885         * lib/unictype/blocks.h: Regenerated.
33886         * lib/unictype/categ_C.h: Regenerated.
33887         * lib/unictype/categ_Cf.h: Regenerated.
33888         * lib/unictype/categ_Cn.h: Regenerated.
33889         * lib/unictype/categ_L.h: Regenerated.
33890         * lib/unictype/categ_Ll.h: Regenerated.
33891         * lib/unictype/categ_Lm.h: Regenerated.
33892         * lib/unictype/categ_Lo.h: Regenerated.
33893         * lib/unictype/categ_Lu.h: Regenerated.
33894         * lib/unictype/categ_M.h: Regenerated.
33895         * lib/unictype/categ_Mc.h: Regenerated.
33896         * lib/unictype/categ_Me.h: Regenerated.
33897         * lib/unictype/categ_Mn.h: Regenerated.
33898         * lib/unictype/categ_N.h: Regenerated.
33899         * lib/unictype/categ_Nd.h: Regenerated.
33900         * lib/unictype/categ_Nl.h: Regenerated.
33901         * lib/unictype/categ_No.h: Regenerated.
33902         * lib/unictype/categ_P.h: Regenerated.
33903         * lib/unictype/categ_Pd.h: Regenerated.
33904         * lib/unictype/categ_Pe.h: Regenerated.
33905         * lib/unictype/categ_Pf.h: Regenerated.
33906         * lib/unictype/categ_Pi.h: Regenerated.
33907         * lib/unictype/categ_Po.h: Regenerated.
33908         * lib/unictype/categ_Ps.h: Regenerated.
33909         * lib/unictype/categ_S.h: Regenerated.
33910         * lib/unictype/categ_Sk.h: Regenerated.
33911         * lib/unictype/categ_Sm.h: Regenerated.
33912         * lib/unictype/categ_So.h: Regenerated.
33913         * lib/unictype/categ_of.h: Regenerated.
33914         * lib/unictype/combining.h: Regenerated.
33915         * lib/unictype/ctype_alnum.h: Regenerated.
33916         * lib/unictype/ctype_alpha.h: Regenerated.
33917         * lib/unictype/ctype_graph.h: Regenerated.
33918         * lib/unictype/ctype_lower.h: Regenerated.
33919         * lib/unictype/ctype_print.h: Regenerated.
33920         * lib/unictype/ctype_punct.h: Regenerated.
33921         * lib/unictype/ctype_upper.h: Regenerated.
33922         * lib/unictype/decdigit.h: Regenerated.
33923         * lib/unictype/digit.h: Regenerated.
33924         * lib/unictype/mirror.h: Regenerated.
33925         * lib/unictype/numeric.h: Regenerated.
33926         * lib/unictype/pr_alphabetic.h: Regenerated.
33927         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
33928         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
33929         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
33930         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
33931         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
33932         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
33933         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
33934         * lib/unictype/pr_combining.h: Regenerated.
33935         * lib/unictype/pr_dash.h: Regenerated.
33936         * lib/unictype/pr_decimal_digit.h: Regenerated.
33937         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
33938         * lib/unictype/pr_deprecated.h: Regenerated.
33939         * lib/unictype/pr_diacritic.h: Regenerated.
33940         * lib/unictype/pr_extender.h: Regenerated.
33941         * lib/unictype/pr_format_control.h: Regenerated.
33942         * lib/unictype/pr_grapheme_base.h: Regenerated.
33943         * lib/unictype/pr_grapheme_extend.h: Regenerated.
33944         * lib/unictype/pr_grapheme_link.h: Regenerated.
33945         * lib/unictype/pr_id_continue.h: Regenerated.
33946         * lib/unictype/pr_id_start.h: Regenerated.
33947         * lib/unictype/pr_ideographic.h: Regenerated.
33948         * lib/unictype/pr_ignorable_control.h: Regenerated.
33949         * lib/unictype/pr_lowercase.h: Regenerated.
33950         * lib/unictype/pr_math.h: Regenerated.
33951         * lib/unictype/pr_numeric.h: Regenerated.
33952         * lib/unictype/pr_other_alphabetic.h: Regenerated.
33953         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
33954         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
33955         * lib/unictype/pr_other_id_continue.h: Regenerated.
33956         * lib/unictype/pr_other_lowercase.h: Regenerated.
33957         * lib/unictype/pr_other_math.h: Regenerated.
33958         * lib/unictype/pr_punctuation.h: Regenerated.
33959         * lib/unictype/pr_sentence_terminal.h: Regenerated.
33960         * lib/unictype/pr_soft_dotted.h: Regenerated.
33961         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
33962         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
33963         * lib/unictype/pr_unified_ideograph.h: Regenerated.
33964         * lib/unictype/pr_uppercase.h: Regenerated.
33965         * lib/unictype/pr_xid_continue.h: Regenerated.
33966         * lib/unictype/pr_xid_start.h: Regenerated.
33967         * lib/unictype/pr_zero_width.h: Regenerated.
33968         * lib/unictype/scripts.h: Regenerated.
33969         * lib/unictype/scripts_byname.gperf: Regenerated.
33970         * lib/unictype/sy_java_ident.h: Regenerated.
33971         * lib/unilbrk/lbrkprop1.h: Regenerated.
33972         * lib/unilbrk/lbrkprop2.h: Regenerated.
33973         * tests/unictype/test-categ_C.c: Regenerated.
33974         * tests/unictype/test-categ_Cf.c: Regenerated.
33975         * tests/unictype/test-categ_Cn.c: Regenerated.
33976         * tests/unictype/test-categ_L.c: Regenerated.
33977         * tests/unictype/test-categ_Ll.c: Regenerated.
33978         * tests/unictype/test-categ_Lm.c: Regenerated.
33979         * tests/unictype/test-categ_Lo.c: Regenerated.
33980         * tests/unictype/test-categ_Lu.c: Regenerated.
33981         * tests/unictype/test-categ_M.c: Regenerated.
33982         * tests/unictype/test-categ_Mc.c: Regenerated.
33983         * tests/unictype/test-categ_Me.c: Regenerated.
33984         * tests/unictype/test-categ_Mn.c: Regenerated.
33985         * tests/unictype/test-categ_N.c: Regenerated.
33986         * tests/unictype/test-categ_Nd.c: Regenerated.
33987         * tests/unictype/test-categ_Nl.c: Regenerated.
33988         * tests/unictype/test-categ_No.c: Regenerated.
33989         * tests/unictype/test-categ_P.c: Regenerated.
33990         * tests/unictype/test-categ_Pd.c: Regenerated.
33991         * tests/unictype/test-categ_Pe.c: Regenerated.
33992         * tests/unictype/test-categ_Pf.c: Regenerated.
33993         * tests/unictype/test-categ_Pi.c: Regenerated.
33994         * tests/unictype/test-categ_Po.c: Regenerated.
33995         * tests/unictype/test-categ_Ps.c: Regenerated.
33996         * tests/unictype/test-categ_S.c: Regenerated.
33997         * tests/unictype/test-categ_Sk.c: Regenerated.
33998         * tests/unictype/test-categ_Sm.c: Regenerated.
33999         * tests/unictype/test-categ_So.c: Regenerated.
34000         * tests/unictype/test-ctype_alnum.c: Regenerated.
34001         * tests/unictype/test-ctype_alpha.c: Regenerated.
34002         * tests/unictype/test-ctype_graph.c: Regenerated.
34003         * tests/unictype/test-ctype_lower.c: Regenerated.
34004         * tests/unictype/test-ctype_print.c: Regenerated.
34005         * tests/unictype/test-ctype_punct.c: Regenerated.
34006         * tests/unictype/test-ctype_upper.c: Regenerated.
34007         * tests/unictype/test-decdigit.h: Regenerated.
34008         * tests/unictype/test-digit.h: Regenerated.
34009         * tests/unictype/test-numeric.h: Regenerated.
34010         * tests/unictype/test-pr_alphabetic.c: Regenerated.
34011         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
34012         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
34013         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
34014         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
34015         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
34016         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
34017         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
34018         * tests/unictype/test-pr_combining.c: Regenerated.
34019         * tests/unictype/test-pr_dash.c: Regenerated.
34020         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
34021         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
34022         * tests/unictype/test-pr_deprecated.c: Regenerated.
34023         * tests/unictype/test-pr_diacritic.c: Regenerated.
34024         * tests/unictype/test-pr_extender.c: Regenerated.
34025         * tests/unictype/test-pr_format_control.c: Regenerated.
34026         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
34027         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
34028         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
34029         * tests/unictype/test-pr_id_continue.c: Regenerated.
34030         * tests/unictype/test-pr_id_start.c: Regenerated.
34031         * tests/unictype/test-pr_ideographic.c: Regenerated.
34032         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
34033         * tests/unictype/test-pr_lowercase.c: Regenerated.
34034         * tests/unictype/test-pr_math.c: Regenerated.
34035         * tests/unictype/test-pr_numeric.c: Regenerated.
34036         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
34037         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
34038         Regenerated.
34039         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
34040         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
34041         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
34042         * tests/unictype/test-pr_other_math.c: Regenerated.
34043         * tests/unictype/test-pr_punctuation.c: Regenerated.
34044         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
34045         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
34046         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
34047         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
34048         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
34049         * tests/unictype/test-pr_uppercase.c: Regenerated.
34050         * tests/unictype/test-pr_xid_continue.c: Regenerated.
34051         * tests/unictype/test-pr_xid_start.c: Regenerated.
34052         * tests/unictype/test-pr_zero_width.c: Regenerated.
34053
34054         Update to Unicode 5.1.0.
34055         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
34056         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
34057         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
34058         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
34059         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
34060         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
34061         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
34062         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
34063         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
34064         (nonspacing_table_ind): Update.
34065         * tests/uniwidth/test-uc_width2.sh: Update expected result.
34066
34067         Update to Unicode 5.1.0.
34068         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
34069         code transform.
34070         * lib/uniname/uniname.c (unicode_character_name,
34071         unicode_name_character): Add the range 0x1Fxxx to the code transform.
34072         * lib/uniname/uninames.h: Regenerated.
34073         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
34074
34075 2009-02-07  Bruno Haible  <bruno@clisp.org>
34076
34077         Merge gen-ctype and gen-lbrk into a single program.
34078         * lib/gen-uni-tables.c: New file, incorporating
34079         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
34080         Add directory prefixes to the names of the generated files.
34081         * lib/unictype/gen-ctype.c: Remove file.
34082         * lib/unilbrk/gen-lbrk.c: Remove file.
34083         * modules/gen-uni-tables: New file.
34084         * modules/unictype/gen-ctype: Remove file.
34085         * modules/unilbrk/gen-lbrk: Remove file.
34086
34087 2009-02-07  Bruno Haible  <bruno@clisp.org>
34088
34089         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
34090
34091         New module 'unistr/u32-strcoll'.
34092         * modules/unistr/u32-strcoll: New file.
34093         * lib/unistr/u32-strcoll.c: New file.
34094
34095         New module 'unistr/u16-strcoll'.
34096         * modules/unistr/u16-strcoll: New file.
34097         * lib/unistr/u16-strcoll.c: New file.
34098
34099         New module 'unistr/u8-strcoll'.
34100         * modules/unistr/u8-strcoll: New file.
34101         * lib/unistr/u8-strcoll.c: New file.
34102         * lib/unistr/u-strcoll.h: New file.
34103
34104 2009-02-07  Bruno Haible  <bruno@clisp.org>
34105
34106         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
34107         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34108         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
34109         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
34110         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
34111         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
34112
34113 2009-02-07  Bruno Haible  <bruno@clisp.org>
34114
34115         Make 64-bit clean.
34116         * lib/unictype/gen-ctype.c (output_predicate, output_category,
34117         output_combclass, output_bidi_category, output_decimal_digit,
34118         output_digit, output_numeric, output_mirror, output_scripts,
34119         output_ident_category): Use proper width specifier in format strings.
34120
34121 2009-02-07  Bruno Haible  <bruno@clisp.org>
34122
34123         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
34124         failure behaviour.
34125
34126 2009-02-07  Jim Meyering  <meyering@redhat.com>
34127
34128         regex: avoid compilation failure with upcoming gcc-4.4
34129         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
34130         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
34131         "... error: integer overflow in preprocessor expression".
34132
34133 2009-02-05  Ben Pfaff  <blp@gnu.org>
34134
34135         Fix link errors on Windows when close module is used.
34136         * modules/close: Add $(LIB_CLOSE) to Link section.
34137         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
34138         $(LIB_CLOSE) on Windows.
34139
34140 2009-02-05  Jim Meyering  <meyering@redhat.com>
34141
34142         still avoid unused-parameter warnings, but do it cleanly
34143         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
34144         (get_fs_usage): Cast to void instead.
34145         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
34146         (dev_from_mount_options, read_file_system_list): Cast to void.
34147         Prompted by Bruno Haible.
34148
34149 2009-02-04  Jim Meyering  <meyering@redhat.com>
34150
34151         fsusage.c: correct copyright year
34152         * lib/fsusage.c: Reflect year in which the change is pushed into
34153
34154         avoid misc. warnings
34155         * lib/fsusage.c (UNUSED_PARAM): Define.
34156         (get_fs_usage): Mark parameter "disk" as unused.
34157         * lib/getugroups.c (getgrent): Use "void" in prototype.
34158         * lib/mountlist.c: Mark unused parameters.
34159         (read_file_system_list): Declare a local with "const".
34160         * lib/nanosleep.c (getnow): Declare static.
34161         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
34162
34163         dirfd: set errno upon failure
34164         * lib/dirfd.c: Include <errno.h>.
34165         Set errno to ENOTSUP when returning -1.
34166         * modules/dirfd (Depends-on): Add errno.
34167         Suggested by John Kodis <kodis@comcast.net>.
34168
34169 2009-02-01  Bruno Haible  <bruno@clisp.org>
34170
34171         Don't assume sizeof (long) >= sizeof (void *).
34172         * lib/memcmp.c: Include stdint.h.
34173         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
34174         srcp2 to 'const byte *'.
34175         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
34176         types to uintptr_t.
34177         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
34178         * modules/memcmp (Depends-on): Add stdint.
34179         Reported by Ozkan Sezer <sezeroz@gmail.com>.
34180
34181 2009-01-30  Eric Blake  <ebb9@byu.net>
34182
34183         fix more require-before-expand issues
34184         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
34185         expand, AC_PROG_AWK.
34186         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
34187
34188 2009-01-28  Eric Blake  <ebb9@byu.net>
34189
34190         version-etc: use consistent URL formatting
34191         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
34192         Improve formatting.  Use fputs for string without %.
34193
34194 2009-01-28  Jim Meyering  <meyering@redhat.com>
34195
34196         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
34197         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
34198         "underquoted definition of NAME" from autoconf-2.59.
34199
34200 2009-01-28  Bruno Haible  <bruno@clisp.org>
34201
34202         * doc/gnulib.texi: Add "Obsolete modules" to index.
34203
34204 2009-01-28  Jim Meyering  <meyering@redhat.com>
34205
34206         useless-if-before-free: recognize more variants
34207         * build-aux/useless-if-before-free: Also recognize e.g.,
34208         if (NULL != p) free (p);
34209
34210 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
34211
34212         test-getaddrinfo: skip (don't fail) this test when there's no network
34213         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
34214         on the presumption that it means you lack network access.
34215
34216 2009-01-26  Jim Meyering  <meyering@redhat.com>
34217
34218         fflush: avoid warnings on modern systems
34219         * lib/fflush.c (rpl_fflush): Move declarations of locals,
34220         pos and result, into scopes where they're used.
34221
34222 2009-01-26  Eric Blake  <ebb9@byu.net>
34223
34224         Silence warning reintroduced by recent extensions patch.
34225         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
34226         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
34227         autoconf.
34228
34229         Backport improved autoconf semantics of AC_DEFUN_ONCE.
34230         * m4/00gnulib.m4: New file.
34231         * gnulib-tool (func_get_filelist): Always use it.
34232         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
34233         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
34234
34235 2009-01-25  Bruno Haible  <bruno@clisp.org>
34236
34237         Make test-quotearg work on MacOS X and AIX.
34238         * tests/test-quotearg.sh: New file.
34239         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
34240         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
34241         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
34242         include <libintl.h>.
34243         (fake_locale): Remove variable.
34244         (gettext, dgettext, dcgettext): Remove functions.
34245         (main): Instead of setting a fake locale, set a real locale. Call
34246         textdomain and bindtextdomain.
34247         * modules/quotearg-tests (Files): Add the new files.
34248         (Depends-on): Add gettext, setenv, unsetenv.
34249         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
34250         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
34251         Augment TESTS_ENVIRONMENT.
34252
34253 2009-01-25  Bruno Haible  <bruno@clisp.org>
34254
34255         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
34256         fr_FR.ISO8859-1 locale on MacOS X.
34257         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
34258         ja_JP.eucJP locale on MacOS X.
34259         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
34260         zh_CN.GB18030 locale on MacOS X.
34261
34262 2009-01-25  Bruno Haible  <bruno@clisp.org>
34263
34264         Avoid link errors on MacOS X 10.3.
34265         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
34266         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34267
34268 2009-01-25  Bruno Haible  <bruno@clisp.org>
34269
34270         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34271         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
34272         * modules/pipe (Files): Remove m4/posix_spawn.m4.
34273         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34274         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
34275         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34276         posix_spawnattr_init, posix_spawnattr_setsigmask,
34277         posix_spawnattr_setflags, posix_spawnattr_destroy.
34278
34279         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
34280         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
34281         * modules/execute (Files): Remove m4/posix_spawn.m4.
34282         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
34283         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
34284         posix_spawnattr_init, posix_spawnattr_setsigmask,
34285         posix_spawnattr_setflags, posix_spawnattr_destroy.
34286
34287 2009-01-25  Bruno Haible  <bruno@clisp.org>
34288
34289         * lib/glthread/threadlib.c: Include <stdlib.h>.
34290
34291 2009-01-25  Bruno Haible  <bruno@clisp.org>
34292
34293         * lib/glthread/threadlib.c (dummy): New declaration.
34294
34295 2009-01-25  Bruno Haible  <bruno@clisp.org>
34296
34297         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
34298         multibyte characters also for the GB18030 encoding. Don't crash when
34299         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
34300
34301 2009-01-25  Bruno Haible  <bruno@clisp.org>
34302
34303         Avoid redefining 'struct random_data' on OSF/1 5.1.
34304         * lib/stdlib.in.h: Include <random.h> if it exists.
34305         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
34306         HAVE_RANDOM_H. Include <random.h> when testing whether
34307         'struct random_data' exists.
34308         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
34309
34310 2009-01-25  Bruno Haible  <bruno@clisp.org>
34311
34312         Don't install charset.alias on MacOS X >= 10.3.
34313         * lib/localcharset.c (DARWIN7): New macro.
34314         (get_charset_aliases): Hardcode the result for Darwin7.
34315         * modules/localcharset (install-exec-local): Don't install
34316         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
34317
34318 2009-01-25  Bruno Haible  <bruno@clisp.org>
34319
34320         Don't install charset.alias on mingw and Cygwin.
34321         * modules/localcharset (install-exec-local): Don't install
34322         charset.alias on mingw and Cygwin, if the file does not yet exist.
34323         The result for these platforms is hardcoded in localcharset.c.
34324
34325 2009-01-25  Bruno Haible  <bruno@clisp.org>
34326
34327         Make it possible again to use AC_GNU_SOURCE together with gnulib.
34328         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
34329         before requiring AC_USE_SYSTEM_EXTENSIONS.
34330
34331 2009-01-25  Jim Meyering  <meyering@redhat.com>
34332
34333         c-strtod: avoid warnings
34334         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
34335         "assignment discards qualifiers from pointer target type" warnings.
34336
34337 2009-01-24  Bruno Haible  <bruno@clisp.org>
34338
34339         Add support for non-UTF-8 locales on MacOS X.
34340         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
34341         canonical encodings. For Darwin 7 and newer, don't map traditional
34342         encodings to UTF-8.
34343         Reported by Vincent Lefevre <vincent@vinc17.org>
34344         at <http://savannah.gnu.org/bugs/?25235>.
34345
34346 2009-01-24  Bruno Haible  <bruno@clisp.org>
34347
34348         * doc/gnulib.texi (Obsolete modules): New section.
34349         Reported by Mike Frysinger <vapier@gentoo.org>.
34350
34351 2009-01-24  Bruno Haible  <bruno@clisp.org>
34352
34353         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
34354         (%.dvi): New rule.
34355
34356 2009-01-24  Bruno Haible  <bruno@clisp.org>
34357
34358         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
34359         Reported by Eric Blake.
34360
34361 2009-01-24  Bruno Haible  <bruno@clisp.org>
34362
34363         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
34364         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
34365         Reported by Gary V. Vaughan <gary@gnu.org>.
34366
34367 2009-01-24  Bruno Haible  <bruno@clisp.org>
34368
34369         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
34370
34371 2009-01-23  Bruno Haible  <bruno@clisp.org>
34372
34373         Make c-strtod, c-strtold usable in libraries.
34374         * lib/c-strtod.c: Include string.h instead of xalloc.h.
34375         (C_STRTOD): Call strdup instead of xstrdup.
34376         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
34377         * modules/c-strtold (Depends-on): Likewise.
34378         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
34379         * NEWS: Mention the change.
34380         Reported by Michael Gold <mgold@ncf.ca>.
34381
34382 2009-01-23  Jim Meyering  <meyering@redhat.com>
34383
34384         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
34385         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
34386         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
34387
34388 2009-01-23  Simon Josefsson  <simon@josefsson.org>
34389
34390         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
34391         GNU CoreUtils.
34392         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
34393         * modules/version-etc (Description): Update.
34394
34395 2009-01-22  Bruno Haible  <bruno@clisp.org>
34396
34397         Cache the C locale object.
34398         * lib/c-strtod.c (c_locale_cache): New variable.
34399         (c_locale): New function.
34400         (C_STRTOD): Use it, and don't call freelocale.
34401         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
34402         Suggested by Paolo Bonzini.
34403
34404 2009-01-21  Bruno Haible  <bruno@clisp.org>
34405
34406         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
34407         conditions other than overflow.
34408
34409 2009-01-21  Bruno Haible  <bruno@clisp.org>
34410
34411         * lib/c-strtod.c: Include errno.h.
34412         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
34413         value from STRTOD_L and STRTOD.
34414
34415 2009-01-21  Bruno Haible  <bruno@clisp.org>
34416         and Jim Meyering  <meyering@redhat.com>
34417
34418         nanosleep: skip configure test (fail it) for apple universal builds
34419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
34420         universal builds, assume that nanosleep does not work.
34421         * modules/nanosleep (Depends-on): Add multiarch.
34422
34423         mktime: skip configure test (fail it) for apple universal builds
34424         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
34425         universal builds, assume that mktime does not work.
34426         * modules/mktime (Depends-on): Add multiarch.
34427
34428 2009-01-21  Eric Blake  <ebb9@byu.net>
34429
34430         multiarch: avoid expand-before-require warning
34431         * modules/multiarch (configure.ac): Require, rather than expand,
34432         gl_MULTIARCH.
34433         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
34434         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
34435         enforce that all clients require it.  Partial reversion of
34436         2008-12-29 patch.
34437
34438         error: avoid expand-before-require warning
34439         * modules/errno (configure.ac): Require, rather than expand,
34440         gl_HEADER_ERRNO_H.
34441         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
34442         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
34443         enforce that all clients require it.
34444
34445         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
34446         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
34447         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
34448         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
34449
34450 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
34451
34452         Revert:
34453         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34454
34455         regex: do not depend on obsolete modules.
34456         * modules/regex: Remove memcmp and memmove.
34457
34458 2009-01-20  Bruno Haible  <bruno@clisp.org>
34459
34460         Make the 'link' module link on Windows NT 4.
34461         * lib/link.c (_WIN32_WINNT): Don't define.
34462         (CreateHardLinkFuncType): New type.
34463         (CreateHardLinkFunc, initialized): New variables.
34464         (initialize): New function.
34465         (link): Invoke CreateHardLink indirectly through the function pointer.
34466
34467 2009-01-20  Bruno Haible  <bruno@clisp.org>
34468
34469         Fix compilation failure on mingw.
34470         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
34471
34472 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
34473
34474         * doc/c-strtod.texi: Mention a couple of restrictions.
34475
34476 2009-01-20  Jim Meyering  <meyering@redhat.com>
34477
34478         gettimeofday: move more declarations out of functions
34479         * lib/gettimeofday.c: Move extern declarations of tzset and
34480         gmtime out of containing functions.  Prompted by Bruno Haible.
34481
34482 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
34483
34484         regex: do not depend on obsolete modules.
34485         * modules/regex: Remove memcmp and memmove.
34486
34487 2009-01-19  Bruno Haible  <bruno@clisp.org>
34488
34489         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34490         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
34491         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34492         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
34493         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
34494
34495 2009-01-19  Bruno Haible  <bruno@clisp.org>
34496
34497         * tests/test-link.c: Include <errno.h>.
34498         (main): Exit with code 77 when a hard link cannot be created due to
34499         the file system.
34500         * tests/test-link.sh: Skip test when a hard link cannot be created due
34501         to the file system.
34502         Suggested by Eric Blake.
34503
34504 2009-01-19  Martin Lambers  <marlam@marlam.de>
34505
34506         * modules/link-tests: New file.
34507         * tests/test-link.sh: New file.
34508         * tests/test-link.c: New file.
34509
34510 2009-01-19  Eric Blake  <ebb9@byu.net>
34511
34512         doc: mention another function added in cygwin 1.7.0
34513         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
34514         Another new function in cygwin 1.7.
34515
34516 2009-01-19  Bruno Haible  <bruno@clisp.org>
34517
34518         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
34519         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
34520         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
34521         gl_BIGENDIAN, not AC_C_BIGENDIAN.
34522         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
34523         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
34524         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
34525         * m4/md4.m4 (gl_MD4): Likewise.
34526         * m4/md5.m4 (gl_MD5): Likewise.
34527         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
34528         * m4/sha1.m4 (gl_SHA1): Likewise.
34529         * m4/sha256.m4 (gl_SHA256): Likewise.
34530         * m4/sha512.m4 (gl_SHA512): Likewise.
34531
34532 2009-01-19  Bruno Haible  <bruno@clisp.org>
34533
34534         * modules/uniname/uniname-tests (Depends-on): Add progname.
34535         * tests/uniname/test-uninames.c: Include progname.h.
34536         (main): Call set_program_name.
34537
34538         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
34539         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
34540         (main): Call set_program_name.
34541
34542         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
34543         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
34544         (main): Call set_program_name.
34545
34546         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
34547         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
34548         (main): Call set_program_name.
34549
34550         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
34551         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
34552         (main): Call set_program_name.
34553
34554         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
34555         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
34556         (main): Call set_program_name.
34557
34558         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
34559         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
34560         (main): Call set_program_name.
34561
34562         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
34563         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
34564         (main): Call set_program_name.
34565
34566         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
34567         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
34568         (main): Call set_program_name.
34569
34570 2009-01-19  Eric Blake  <ebb9@byu.net>
34571
34572         test-unistd: test previous patch
34573         * tests/test-unistd.c: Test *_FILENO macros.
34574
34575         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
34576         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34577         Guarantee a definition.
34578         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
34579         * modules/unistd-safer (Depends-on): Add dependency on unistd.
34580         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
34581         * lib/dup-safer.c (STDERR_FILENO): Likewise.
34582         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34583         Likewise.
34584         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
34585         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
34586         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
34587         Likewise.
34588         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
34589         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
34590         (STDERR_FILENO): Likewise.
34591         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
34592         (STDERR_FILENO): Likewise.
34593         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
34594         (STDERR_FILENO): Likewise.
34595         Reported by Elbert Pol.
34596
34597 2009-01-19  Eric Blake  <ebb9@byu.net>
34598
34599         doc: mention more functions added in cygwin 1.7.0
34600         * doc/posix-functions/abort.texi (abort): Update wording related
34601         to cygwin.
34602         * doc/posix-functions/daylight.texi (daylight): Likewise.
34603         * doc/posix-functions/optarg.texi (optarg): Likewise.
34604         * doc/posix-functions/optarg.texi (opterr): Likewise.
34605         * doc/posix-functions/optarg.texi (optind): Likewise.
34606         * doc/posix-functions/optarg.texi (optopt): Likewise.
34607         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
34608         worked in 1.5.x, and was withdrawn in 1.7.
34609         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
34610         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
34611         cygwin versions.
34612         * doc/posix-functions/perror.texi (perror): Likewise.
34613         * doc/posix-functions/printf.texi (printf): Likewise.
34614         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
34615         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
34616         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34617         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34618         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
34619         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
34620         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
34621         Likewise.
34622         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
34623         Likewise.
34624         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
34625         this function.
34626         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
34627         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
34628         Likewise.
34629         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
34630         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
34631         * doc/posix-functions/confstr.texi (confstr): Likewise.
34632         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
34633         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
34634         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
34635         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
34636         * doc/posix-functions/fputws.texi (fputws): Likewise.
34637         * doc/posix-functions/fwide.texi (fwide): Likewise.
34638         * doc/posix-functions/getwc.texi (getwc): Likewise.
34639         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
34640         * doc/posix-functions/putwc.texi (putwc): Likewise.
34641         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
34642         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
34643         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
34644         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
34645         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
34646         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
34647         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
34648         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
34649         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
34650         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
34651         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
34652
34653 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34654
34655         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
34656         * lib/ioctl.c: Include <sys/ioctl.h>.
34657
34658 2009-01-19  Simon Josefsson  <simon@josefsson.org>
34659
34660         * modules/getdate-tests (Depends-on): Add progname.
34661         * tests/test-getdate.c: Use progname module, to avoid link errors
34662         on non-glibc systems.
34663
34664 2009-01-18  Simon Josefsson  <simon@josefsson.org>
34665
34666         * modules/filenamecat-tests (Depends-on): Add progname.
34667         * modules/fstrcmp-tests (Depends-on): Likewise.
34668
34669         * tests/test-filenamecat.c: Use progname module, to avoid link
34670         errors on non-glibc systems.
34671         * tests/test-fstrcmp.c: Likewise.
34672
34673 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
34674
34675         gettimeofday: avoid warning: nested extern declaration of 'localtime'
34676         * lib/gettimeofday.c: Move extern declaration out of function.
34677
34678 2009-01-18  Bruno Haible  <bruno@clisp.org>
34679
34680         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
34681         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
34682         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
34683
34684 2009-01-18  Bruno Haible  <bruno@clisp.org>
34685
34686         * lib/strftime.c (MEMPCPY): Remove unused macro.
34687         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
34688
34689 2009-01-18  Martin Lambers  <marlam@marlam.de>
34690
34691         New module 'link'.
34692         * lib/unistd.in.h (link): New declaration.
34693         * lib/link.c: New file.
34694         * m4/link.m4: New file.
34695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
34696         HAVE_LINK.
34697         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
34698         * modules/link: New file.
34699         * doc/posix-functions/link.texi: Mention the new module.
34700
34701 2009-01-18  Bruno Haible  <bruno@clisp.org>
34702
34703         * tests/test-avltree_list.c (main): Call set_program_name.
34704         * tests/test-avltree_oset.c (main): Likewise.
34705         * tests/test-obstack-printf.c: Include progname.h.
34706         (main): Call set_program_name.
34707         * tests/test-quotearg.c: Include progname.h.
34708         (main): Call set_program_name.
34709         * tests/test-xmemdup0.c: Include progname.h.
34710         (main): Call set_program_name.
34711
34712 2009-01-18  Bruno Haible  <bruno@clisp.org>
34713
34714         New module 'alphasort'.
34715         * lib/dirent.in.h (alphasort): New declaration.
34716         * lib/alphasort.c: New file, from glibc with modifications.
34717         * m4/alphasort.m4: New file.
34718         * modules/alphasort: New file.
34719         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
34720         HAVE_ALPHASORT.
34721         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
34722         HAVE_ALPHASORT.
34723         * doc/posix-functions/alphasort.texi: Mention the new module and the
34724         portability problems.
34725
34726 2009-01-18  Bruno Haible  <bruno@clisp.org>
34727
34728         New module 'scandir'.
34729         * lib/dirent.in.h (scandir): New declaration.
34730         * lib/scandir.c: New file, from glibc with modifications.
34731         * m4/scandir.m4: New file.
34732         * modules/scandir: New file.
34733         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
34734         HAVE_SCANDIR.
34735         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
34736         HAVE_SCANDIR.
34737         * doc/posix-functions/scandir.texi: Mention the new module and the
34738         portability problems.
34739
34740 2009-01-17  Bruno Haible  <bruno@clisp.org>
34741
34742         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
34743         Update documentation.
34744         (func_remove_suffix): Escape all dots in the suffix. Update
34745         documentation.
34746         (func_filter_filelist): Update documentation.
34747         Reported by Ralf Wildenhues.
34748
34749 2009-01-17  Bruno Haible  <bruno@clisp.org>
34750
34751         * modules/dprintf-posix-tests: New file.
34752         * tests/test-dprintf-posix.sh: New file.
34753         * tests/test-dprintf-posix.c: New file.
34754
34755         New modules 'dprintf', 'dprintf-posix'.
34756         * lib/stdio.in.h (dprintf): New declaration.
34757         * lib/dprintf.c: New file.
34758         * m4/dprintf.m4: New file.
34759         * m4/dprintf-posix.m4: New file.
34760         * modules/dprintf: New file.
34761         * modules/dprintf-posix: New file.
34762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
34763         HAVE_DPRINTF, REPLACE_DPRINTF.
34764         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
34765         HAVE_DPRINTF, REPLACE_DPRINTF.
34766         * doc/posix-functions/dprintf.texi: Mention the new modules.
34767
34768 2009-01-17  Bruno Haible  <bruno@clisp.org>
34769
34770         * modules/vdprintf-posix-tests: New file.
34771         * tests/test-vdprintf-posix.sh: New file.
34772         * tests/test-vdprintf-posix.c: New file.
34773
34774         New modules 'vdprintf', 'vdprintf-posix'.
34775         * lib/stdio.in.h (vdprintf): New declaration.
34776         * lib/vdprintf.c: New file.
34777         * m4/vdprintf.m4: New file.
34778         * m4/vdprintf-posix.m4: New file.
34779         * modules/vdprintf: New file.
34780         * modules/vdprintf-posix: New file.
34781         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
34782         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34783         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
34784         HAVE_VDPRINTF, REPLACE_VDPRINTF.
34785         * doc/posix-functions/vdprintf.texi: Mention the new modules.
34786
34787 2009-01-17  Bruno Haible  <bruno@clisp.org>
34788
34789         Fix replacement of fopen on mingw.
34790         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
34791         mingw.
34792
34793 2009-01-17  Bruno Haible  <bruno@clisp.org>
34794
34795         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
34796         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
34797
34798 2009-01-17  Bruno Haible  <bruno@clisp.org>
34799
34800         Avoid test-fflush2.sh failure on mingw.
34801         * tests/test-fflush2.c: Include binary-io.h.
34802         (main): Put standard input into binary mode.
34803         * modules/fflush-tests (Depends-on): Add binary-io.
34804
34805 2009-01-17  Bruno Haible  <bruno@clisp.org>
34806
34807         * lib/wchar.in.h: In another particular situation, include only the
34808         system's <wchar.h> file.
34809         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
34810         Reported by Albert Chin-A-Young <china@thewrittenword.com>
34811         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
34812
34813 2009-01-17  Bruno Haible  <bruno@clisp.org>
34814
34815         Support for stripping executables in --enable-relocatable.
34816         * build-aux/install-reloc: Expect one more argument, or an environment
34817         variable RELOC_STRIP_PROG. If set, strip the destination program and
34818         its wrapper.
34819         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
34820         RELOC_STRIP_PROG.
34821         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
34822         to set RELOCATABLE_STRIP.
34823         * NEWS: Mention the new Makefile requirement.
34824
34825 2009-01-17  Bruno Haible  <bruno@clisp.org>
34826
34827         * build-aux/install-reloc: Remove debugging information left over by
34828         C compiler on MacOS X.
34829
34830 2009-01-17  Bruno Haible  <bruno@clisp.org>
34831
34832         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
34833         * lib/progreloc.c (find_executable): Fix type of pointer passed to
34834         _NSGetExecutablePath.
34835
34836 2009-01-16  Jim Meyering  <meyering@redhat.com>
34837
34838         strerror: avoid warnings about discarding "const"
34839         * lib/strerror.c (rpl_strerror): Instead of returning a const
34840         string from each and every "case", use a variable, and add a single
34841         cast after the switch.
34842
34843 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
34844
34845         * lib/arpa_inet.in.h: Add extern "C" block for C++.
34846
34847 2009-01-16  Bruno Haible  <bruno@clisp.org>
34848
34849         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
34850         array initializer syntax that also works in C++ mode.
34851         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34852
34853 2009-01-16  Jim Meyering  <meyering@redhat.com>
34854
34855         poll: suppress a warning
34856         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
34857         to ignore "...unsigned expression < 0 is always false" warnings.
34858
34859 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
34860
34861         poll: remove declarations of unused variables
34862         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
34863         sockbuf and optlen.
34864
34865 2009-01-15  Bruno Haible  <bruno@clisp.org>
34866
34867         Make fflush-after-ungetc POSIX compliant on BSD systems.
34868         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
34869         (clear_ungetc_buffer): Implement also for other systems.
34870         (rpl_fflush): On glibc systems, invoke
34871         clear_ungetc_buffer_preserving_position. Otherwise, invoke
34872         clear_ungetc_buffer after fetching the stream's position, not before.
34873
34874 2009-01-15  Bruno Haible  <bruno@clisp.org>
34875
34876         Make fflush-after-ungetc POSIX compliant on glibc systems.
34877         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
34878         after ungetc.
34879         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
34880         (rpl_fflush): On glibc systems, simply call the system's fflush
34881         function after clearing the ungetc buffer.
34882         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
34883         Instead, lseek only to the end of file, then use the system's fseeko
34884         for the rest. On glibc systems, reset the EOF indicator bit.
34885
34886 2009-01-15  Jim Meyering  <meyering@redhat.com>
34887
34888         openmp.m4: revert quote-adding change, for portability to older autoconf
34889         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
34890         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
34891         Simon Josefsson noticed the problem when using autoconf-2.61.
34892
34893 2009-01-15  Bruno Haible  <bruno@clisp.org>
34894
34895         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
34896         * tests/test-fflush2.c (ASSERT): Always fail.
34897         (main): Add two tests for fflush() after ungetc(), taking into account
34898         the Austin Group's clarification.
34899         Suggested by Eric Blake.
34900
34901 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
34902
34903         mktime.m4: remove K&R-style function prototypes
34904         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
34905         for the Sun C++ compiler.
34906
34907 2009-01-14  Bruno Haible  <bruno@clisp.org>
34908
34909         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
34910         while including <wchar.h>.
34911         * lib/wchar.in.h: In two particular situations on HP-UX, include only
34912         the system's <wchar.h> file.
34913         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34914
34915 2009-01-14  Bruno Haible  <bruno@clisp.org>
34916
34917         * m4/csharp.m4: Don't mention gettext on the serial number line.
34918         * m4/csharpexec.m4: Likewise.
34919         * m4/eaccess.m4: Likewise.
34920         * m4/javaexec.m4: Likewise.
34921         * m4/sig_atomic_t.m4: Likewise.
34922         * m4/tmpdir.m4: Likewise.
34923         * m4/intldir.m4: Bump gettext version.
34924         * m4/lib-ld.m4: Likewise.
34925
34926 2009-01-14  Bruno Haible  <bruno@clisp.org>
34927
34928         * lib/progname.c (set_program_name): Add more comments.
34929         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34930
34931 2009-01-14  Simon Josefsson  <simon@josefsson.org>
34932
34933         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
34934         were sys/stat.h does not define it.
34935
34936 2009-01-14  Jim Meyering  <meyering@redhat.com>
34937
34938         many *.m4 files: improve m4 quoting
34939         99% of this change was performed by running the following commands:
34940         git ls-files | grep '\.m4$' | xargs perl -pi \
34941           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
34942           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34943           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
34944           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
34945         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
34946         The remainder were to add Copyright dates, increment serial numbers,
34947         undo some changes in comments, exclude m4/intl.m4, and add quotes
34948         around the "1" in ",1" where the unusual spacing prohibited the
34949         above regexps from doing the job.  For more details, see
34950         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
34951         * m4/acl.m4: Modified.
34952         * m4/afs.m4: Likewise.
34953         * m4/alloca.m4: Likewise.
34954         * m4/argp.m4: Likewise.
34955         * m4/argz.m4: Likewise.
34956         * m4/atexit.m4: Likewise.
34957         * m4/bison-i18n.m4: Likewise.
34958         * m4/bison.m4: Likewise.
34959         * m4/byteswap.m4: Likewise.
34960         * m4/c-stack.m4: Likewise.
34961         * m4/c-strtod.m4: Likewise.
34962         * m4/calloc.m4: Likewise.
34963         * m4/canonicalize-lgpl.m4: Likewise.
34964         * m4/chown.m4: Likewise.
34965         * m4/clock_time.m4: Likewise.
34966         * m4/codeset.m4: Likewise.
34967         * m4/copy-file.m4: Likewise.
34968         * m4/csharp.m4: Likewise.
34969         * m4/csharpcomp.m4: Likewise.
34970         * m4/csharpexec.m4: Likewise.
34971         * m4/d-ino.m4: Likewise.
34972         * m4/d-type.m4: Likewise.
34973         * m4/dirfd.m4: Likewise.
34974         * m4/double-slash-root.m4: Likewise.
34975         * m4/eaccess.m4: Likewise.
34976         * m4/eealloc.m4: Likewise.
34977         * m4/environ.m4: Likewise.
34978         * m4/errno_h.m4: Likewise.
34979         * m4/euidaccess.m4: Likewise.
34980         * m4/execute.m4: Likewise.
34981         * m4/fatal-signal.m4: Likewise.
34982         * m4/fchdir.m4: Likewise.
34983         * m4/fcntl_h.m4: Likewise.
34984         * m4/fileblocks.m4: Likewise.
34985         * m4/filenamecat.m4: Likewise.
34986         * m4/findprog.m4: Likewise.
34987         * m4/flexmember.m4: Likewise.
34988         * m4/fnmatch.m4: Likewise.
34989         * m4/fopen.m4: Likewise.
34990         * m4/fpending.m4: Likewise.
34991         * m4/fprintf-posix.m4: Likewise.
34992         * m4/free.m4: Likewise.
34993         * m4/frexp.m4: Likewise.
34994         * m4/frexpl.m4: Likewise.
34995         * m4/fsusage.m4: Likewise.
34996         * m4/ftruncate.m4: Likewise.
34997         * m4/gc-camellia.m4: Likewise.
34998         * m4/gc-random.m4: Likewise.
34999         * m4/gc.m4: Likewise.
35000         * m4/getaddrinfo.m4: Likewise.
35001         * m4/getcwd-abort-bug.m4: Likewise.
35002         * m4/getcwd-path-max.m4: Likewise.
35003         * m4/getdate.m4: Likewise.
35004         * m4/getdomainname.m4: Likewise.
35005         * m4/getgroups.m4: Likewise.
35006         * m4/gethostname.m4: Likewise.
35007         * m4/gethrxtime.m4: Likewise.
35008         * m4/getline.m4: Likewise.
35009         * m4/getloadavg.m4: Likewise.
35010         * m4/getndelim2.m4: Likewise.
35011         * m4/getpass.m4: Likewise.
35012         * m4/gettext.m4: Likewise.
35013         * m4/gettime.m4: Likewise.
35014         * m4/gettimeofday.m4: Likewise.
35015         * m4/gnulib-common.m4: Likewise.
35016         * m4/group-member.m4: Likewise.
35017         * m4/host-os.m4: Likewise.
35018         * m4/iconv.m4: Likewise.
35019         * m4/iconv_open.m4: Likewise.
35020         * m4/inet_ntop.m4: Likewise.
35021         * m4/inet_pton.m4: Likewise.
35022         * m4/inline.m4: Likewise.
35023         * m4/intldir.m4: Likewise.
35024         * m4/intlmacosx.m4: Likewise.
35025         * m4/intmax.m4: Likewise.
35026         * m4/intmax_t.m4: Likewise.
35027         * m4/inttypes.m4: Likewise.
35028         * m4/inttypes_h.m4: Likewise.
35029         * m4/inttypes-pri.m4: Likewise.
35030         * m4/isapipe.m4: Likewise.
35031         * m4/isnand.m4: Likewise.
35032         * m4/isnanf.m4: Likewise.
35033         * m4/isnanl.m4: Likewise.
35034         * m4/javacomp.m4: Likewise.
35035         * m4/javaexec.m4: Likewise.
35036         * m4/jm-winsz1.m4: Likewise.
35037         * m4/jm-winsz2.m4: Likewise.
35038         * m4/lchown.m4: Likewise.
35039         * m4/lcmessage.m4: Likewise.
35040         * m4/ldexpl.m4: Likewise.
35041         * m4/lib-ld.m4: Likewise.
35042         * m4/lib-link.m4: Likewise.
35043         * m4/libsigsegv.m4: Likewise.
35044         * m4/link-follow.m4: Likewise.
35045         * m4/localcharset.m4: Likewise.
35046         * m4/locale-fr.m4: Likewise.
35047         * m4/locale-ja.m4: Likewise.
35048         * m4/locale-tr.m4: Likewise.
35049         * m4/locale-zh.m4: Likewise.
35050         * m4/lock.m4: Likewise.
35051         * m4/longlong.m4: Likewise.
35052         * m4/ls-mntd-fs.m4: Likewise.
35053         * m4/lstat.m4: Likewise.
35054         * m4/malloc.m4: Likewise.
35055         * m4/mathl.m4: Likewise.
35056         * m4/mbrtowc.m4: Likewise.
35057         * m4/mbstate_t.m4: Likewise.
35058         * m4/mbswidth.m4: Likewise.
35059         * m4/memchr.m4: Likewise.
35060         * m4/memcmp.m4: Likewise.
35061         * m4/memcpy.m4: Likewise.
35062         * m4/memmem.m4: Likewise.
35063         * m4/memmove.m4: Likewise.
35064         * m4/mempcpy.m4: Likewise.
35065         * m4/memrchr.m4: Likewise.
35066         * m4/memset.m4: Likewise.
35067         * m4/minmax.m4: Likewise.
35068         * m4/mkdir-slash.m4: Likewise.
35069         * m4/mkdtemp.m4: Likewise.
35070         * m4/mktime.m4: Likewise.
35071         * m4/mmap-anon.m4: Likewise.
35072         * m4/mountlist.m4: Likewise.
35073         * m4/nanosleep.m4: Likewise.
35074         * m4/nls.m4: Likewise.
35075         * m4/nocrash.m4: Likewise.
35076         * m4/open.m4: Likewise.
35077         * m4/openat.m4: Likewise.
35078         * m4/openmp.m4: Likewise.
35079         * m4/pathmax.m4: Likewise.
35080         * m4/perl.m4: Likewise.
35081         * m4/physmem.m4: Likewise.
35082         * m4/pipe.m4: Likewise.
35083         * m4/po.m4: Likewise.
35084         * m4/poll.m4: Likewise.
35085         * m4/posixtm.m4: Likewise.
35086         * m4/posixver.m4: Likewise.
35087         * m4/printf-frexp.m4: Likewise.
35088         * m4/printf-frexpl.m4: Likewise.
35089         * m4/printf-posix.m4: Likewise.
35090         * m4/printf-posix-rpl.m4: Likewise.
35091         * m4/printf.m4: Likewise.
35092         * m4/progtest.m4: Likewise.
35093         * m4/putenv.m4: Likewise.
35094         * m4/readline.m4: Likewise.
35095         * m4/readlink.m4: Likewise.
35096         * m4/readutmp.m4: Likewise.
35097         * m4/realloc.m4: Likewise.
35098         * m4/regex.m4: Likewise.
35099         * m4/relocatable.m4: Likewise.
35100         * m4/relocatable-lib.m4: Likewise.
35101         * m4/rename-dest-slash.m4: Likewise.
35102         * m4/rename.m4: Likewise.
35103         * m4/rmdir-errno.m4: Likewise.
35104         * m4/rmdir.m4: Likewise.
35105         * m4/roundf.m4: Likewise.
35106         * m4/roundl.m4: Likewise.
35107         * m4/rpmatch.m4: Likewise.
35108         * m4/save-cwd.m4: Likewise.
35109         * m4/selinux-selinux-h.m4: Likewise.
35110         * m4/setenv.m4: Likewise.
35111         * m4/settime.m4: Likewise.
35112         * m4/sig2str.m4: Likewise.
35113         * m4/sig_atomic_t.m4: Likewise.
35114         * m4/signalblocking.m4: Likewise.
35115         * m4/signbit.m4: Likewise.
35116         * m4/sigpipe.m4: Likewise.
35117         * m4/sockets.m4: Likewise.
35118         * m4/sockpfaf.m4: Likewise.
35119         * m4/st_dm_mode.m4: Likewise.
35120         * m4/stat-time.m4: Likewise.
35121         * m4/stdbool.m4: Likewise.
35122         * m4/stdint.m4: Likewise.
35123         * m4/stdint_h.m4: Likewise.
35124         * m4/stpcpy.m4: Likewise.
35125         * m4/stpncpy.m4: Likewise.
35126         * m4/strcase.m4: Likewise.
35127         * m4/strchrnul.m4: Likewise.
35128         * m4/strcspn.m4: Likewise.
35129         * m4/strdup.m4: Likewise.
35130         * m4/strftime.m4: Likewise.
35131         * m4/strndup.m4: Likewise.
35132         * m4/strnlen.m4: Likewise.
35133         * m4/strpbrk.m4: Likewise.
35134         * m4/strptime.m4: Likewise.
35135         * m4/strsep.m4: Likewise.
35136         * m4/strtod.m4: Likewise.
35137         * m4/strtoimax.m4: Likewise.
35138         * m4/strtok_r.m4: Likewise.
35139         * m4/strtol.m4: Likewise.
35140         * m4/strtoll.m4: Likewise.
35141         * m4/strtoul.m4: Likewise.
35142         * m4/strtoull.m4: Likewise.
35143         * m4/strtoumax.m4: Likewise.
35144         * m4/strverscmp.m4: Likewise.
35145         * m4/threadlib.m4: Likewise.
35146         * m4/timegm.m4: Likewise.
35147         * m4/tm_gmtoff.m4: Likewise.
35148         * m4/tmpdir.m4: Likewise.
35149         * m4/tmpfile.m4: Likewise.
35150         * m4/tzset.m4: Likewise.
35151         * m4/uintmax_t.m4: Likewise.
35152         * m4/unlinkdir.m4: Likewise.
35153         * m4/unlocked-io.m4: Likewise.
35154         * m4/uptime.m4: Likewise.
35155         * m4/userspec.m4: Likewise.
35156         * m4/utimbuf.m4: Likewise.
35157         * m4/utime.m4: Likewise.
35158         * m4/utimes-null.m4: Likewise.
35159         * m4/utimes.m4: Likewise.
35160         * m4/vararrays.m4: Likewise.
35161         * m4/vasnprintf.m4: Likewise.
35162         * m4/vfprintf-posix.m4: Likewise.
35163         * m4/vprintf-posix.m4: Likewise.
35164         * m4/wait-process.m4: Likewise.
35165         * m4/wchar_t.m4: Likewise.
35166         * m4/wint_t.m4: Likewise.
35167         * m4/write-any-file.m4: Likewise.
35168         * m4/yield.m4: Likewise.
35169
35170 2009-01-13  Bruno Haible  <bruno@clisp.org>
35171
35172         Avoid test-copy-file.sh failures when ACL support insufficient.
35173         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
35174         TESTS_ENVIRONMENT.
35175         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
35176         Reported by Jim Meyering.
35177
35178 2009-01-13  Bruno Haible  <bruno@clisp.org>
35179
35180         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
35181         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
35182         * modules/unistdio/u8-printf-parse (Files): Likewise.
35183         * modules/unistdio/u32-printf-parse (Files): Likewise.
35184         * modules/unistdio/ulc-printf-parse (Files): Likewise.
35185
35186 2009-01-13  Simon Josefsson  <simon@josefsson.org>
35187
35188         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
35189         and m4/inttypes_h.m4 too.
35190
35191 2009-01-12  Eric Blake  <ebb9@byu.net>
35192
35193         tests: IRIX 6.2 cc can't compile -0.0 into .data
35194         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
35195         rather than at compile-time.
35196         * tests/test-floorl.c (minus_zero): Likewise.
35197         * tests/test-frexpl.c (minus_zero): Likewise.
35198         * tests/test-isnan.c (minus_zerol): Likewise.
35199         * tests/test-isnanl.h (minus_zero): Likewise.
35200         * tests/test-ldexpl.c (minus_zero): Likewise.
35201         * tests/test-roundl.c (minus_zero): Likewise.
35202         * tests/test-signbit.c (minus_zerol): Likewise.
35203         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35204         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35205         * tests/test-truncl.c (minus_zero): Likewise.
35206         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35207         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35208         Reported by Tom G. Christensen and Nelson H. F. Beebe.
35209
35210 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35211
35212         regex: fix glibc bug 9697
35213         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
35214         handling.
35215
35216 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35217
35218         regex: fix glibc bug 697
35219         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
35220         being NULL also if there are no backreferences.
35221
35222 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
35223
35224         regex: merge glibc changes
35225         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
35226         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
35227         re_string_skip_chars, re_string_reconstruct): Likewise.
35228         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
35229
35230 2009-01-07  Jim Meyering  <meyering@redhat.com>
35231
35232         poll: filter through cppi
35233         * lib/poll.c: Indent cpp directives to reflect nesting.
35234
35235 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
35236
35237         poll: don't return uninitialized
35238         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
35239
35240 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
35241
35242         avoid compile failure on AIX 6.1
35243         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
35244         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
35245
35246 2009-01-04  Jim Meyering  <meyering@redhat.com>
35247
35248         remove duplicate inclusion of <stdio.h>
35249         * tests/test-fprintf-posix.c: Likewise.
35250         * tests/test-printf-posix.c: Likewise.
35251         * tests/test-snprintf-posix.c: Likewise.
35252         * tests/test-sprintf-posix.c: Likewise.
35253         * tests/test-vasprintf-posix.c: Likewise.
35254         * tests/test-vfprintf-posix.c: Likewise.
35255         * tests/test-vprintf-posix.c: Likewise.
35256         * tests/test-vsnprintf-posix.c: Likewise.
35257         * tests/test-vsprintf-posix.c: Likewise.
35258
35259 2009-01-03  Jim Meyering  <meyering@redhat.com>
35260
35261         gnulib-tool: fix sed-based filtering
35262         * gnulib-tool (func_filter_filelist): Remove extra backslash
35263         in sed_fff_filter definition.
35264
35265 2009-01-02  Jim Meyering  <meyering@redhat.com>
35266
35267         strftime: avoid compilation failure on Solaris 2.6
35268         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
35269         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
35270         Don't #define mbrlen or mbsinit, since now they're guaranteed to
35271         be available.  Reported by Tom G. Christensen.  Details in
35272         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
35273
35274 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35275             Bruno Haible  <bruno@clisp.org>
35276
35277         Speed up gnulib-tool by doing more string processing through shell
35278         built-ins.
35279         * gnulib-tool (fast_func_append): New variable.
35280         (func_remove_prefix, func_remove_suffix): New functions.
35281         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
35282         (func_filter_filelist): New function.
35283         (func_get_dependencies): Use func_remove_suffix instead of sed.
35284         (func_get_automake_snippet): Use func_filter_filelist instead of a
35285         subshell and sed invocation.
35286
35287 2009-01-01  Bruno Haible  <bruno@clisp.org>
35288
35289         Fix a security bug.
35290         * gnulib-tool (func_import, import, update): Don't allow the characters
35291         '"', '$', '`', '\' in macro arguments that become part of commands that
35292         are evaluated.
35293
35294 2009-01-01  Bruno Haible  <bruno@clisp.org>
35295
35296         * gnulib-tool (func_reset_sigpipe): Add more comments.
35297
35298 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35299
35300         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
35301         func_emit_tests_Makefile_am, func_import): Abort loops early if we
35302         already know the answer.
35303
35304 2009-01-01  Jim Meyering  <meyering@redhat.com>
35305
35306         * lib/version-etc.c (version_etc_va): Update copyright year.
35307
35308 2008-12-30  Bruno Haible  <bruno@clisp.org>
35309
35310         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
35311         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
35312         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
35313
35314 2008-12-29  Eric Blake  <ebb9@byu.net>
35315
35316         multiarch: avoid autoconf AC_REQUIRE bug
35317         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
35318         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
35319         2.63 and older.
35320         Reported by Bruno Haible, and analyzed in
35321         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
35322
35323 2008-12-29  Bruno Haible  <bruno@clisp.org>
35324
35325         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
35326         files in subdirectories correctly.
35327         Reported by Ralf Wildenhues.
35328
35329 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35330
35331         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
35332         rather than 'join FILE -', for Solaris join.
35333
35334 2008-12-29  Bruno Haible  <bruno@clisp.org>
35335
35336         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
35337         quoting.
35338         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
35339         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
35340         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
35341         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
35342         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
35343         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
35344         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
35345         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
35346         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35347         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
35348         * m4/nls.m4 (AM_NLS): Likewise.
35349         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
35350         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
35351         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
35352         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
35353         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
35354         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
35355         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
35356         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
35357         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
35358         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35359         * m4/xsize.m4 (gl_XSIZE): Likewise.
35360         Suggested by Jim Meyering.
35361
35362 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35363
35364         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
35365         * lib/parse-duration.c: use a switch instead of cascading if's.
35366
35367 2008-12-29  Eric Blake  <ebb9@byu.net>
35368
35369         wchar.h: supply WEOF on Irix 5.3
35370         * lib/wchar.in.h (wint_t): Also supply WEOF.
35371         * lib/wctype.in.h (wint_t): Likewise.
35372         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
35373         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
35374         Reported by Tom G. Christensen.
35375
35376 2008-12-26  Bruno Haible  <bruno@clisp.org>
35377
35378         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
35379         i486, i586, i686.
35380
35381 2008-12-26  Bruno Haible  <bruno@clisp.org>
35382
35383         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
35384
35385 2008-12-26  Bruno Haible  <bruno@clisp.org>
35386
35387         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
35388         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
35389         not __STDC_CONSTANT_MACROS.
35390         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35391
35392 2008-12-25  Bruno Haible  <bruno@clisp.org>
35393
35394         Add support for universal builds to vasnprintf.
35395         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
35396         universal builds, guess no.
35397         * modules/vasnprintf-posix (Depends-on): Add multiarch.
35398         * modules/vasprintf-posix (Depends-on): Likewise.
35399         * modules/fprintf-posix (Depends-on): Likewise.
35400         * modules/vfprintf-posix (Depends-on): Likewise.
35401         * modules/snprintf-posix (Depends-on): Likewise.
35402         * modules/vsnprintf-posix (Depends-on): Likewise.
35403         * modules/sprintf-posix (Depends-on): Likewise.
35404         * modules/vsprintf-posix (Depends-on): Likewise.
35405         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35406         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35407         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35408         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35409         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35410         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35411         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35412
35413         Add support for universal builds to <inttypes.h>.
35414         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
35415         _SCNu64_PREFIX): In Apple
35416         universal builds, define directly, using _LP64.
35417         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
35418         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
35419         * modules/inttypes (Depends-on): Add multiarch.
35420         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35421
35422         Add support for universal builds to <stdint.h>.
35423         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
35424         universal builds, define directly, using _LP64.
35425         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
35426         Apple universal builds, don't test for the size and suffix of ptrdiff_t
35427         and size_t.
35428         * modules/stdint (Depends-on): Add multiarch.
35429         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
35430
35431         New module 'multiarch'.
35432         * modules/multiarch: New file.
35433         * m4/multiarch.m4: New file.
35434
35435 2008-12-25  Bruno Haible  <bruno@clisp.org>
35436
35437         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
35438
35439 2008-12-25  Bruno Haible  <bruno@clisp.org>
35440
35441         * modules/btowc (License): Relicense under LGPLv2+.
35442         * modules/mbsinit (License): Likewise.
35443         * modules/mbrtowc (License): Likewise.
35444         * modules/wcrtomb (License): Likewise.
35445         * modules/streq (License): Likewise.
35446         Reported by David Lutterkort <lutter@redhat.com>.
35447
35448 2008-12-23  Bruno Haible  <bruno@clisp.org>
35449
35450         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
35451
35452 2008-12-23  Bruno Haible  <bruno@clisp.org>
35453
35454         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
35455         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
35456         GETADDRINFO_LIB, not in LIBS.
35457         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
35458         * modules/canon-host (Link): Likewise.
35459         * NEWS: Mention the change.
35460         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
35461         GETADDRINFO_LIB.
35462
35463 2008-12-22  Bruno Haible  <bruno@clisp.org>
35464
35465         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
35466         * doc/posix-functions/iswalpha_l.texi: Likewise.
35467         * doc/posix-functions/iswblank_l.texi: Likewise.
35468         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35469         * doc/posix-functions/iswctype_l.texi: Likewise.
35470         * doc/posix-functions/iswdigit_l.texi: Likewise.
35471         * doc/posix-functions/iswgraph_l.texi: Likewise.
35472         * doc/posix-functions/iswlower_l.texi: Likewise.
35473         * doc/posix-functions/iswprint_l.texi: Likewise.
35474         * doc/posix-functions/iswpunct_l.texi: Likewise.
35475         * doc/posix-functions/iswspace_l.texi: Likewise.
35476         * doc/posix-functions/iswupper_l.texi: Likewise.
35477         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35478         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
35479         * doc/posix-functions/open_wmemstream.texi: Likewise.
35480         * doc/posix-functions/swscanf.texi: Likewise.
35481         * doc/posix-functions/towctrans_l.texi: Likewise.
35482         * doc/posix-functions/towlower.texi: Likewise.
35483         * doc/posix-functions/towlower_l.texi: Likewise.
35484         * doc/posix-functions/towupper.texi: Likewise.
35485         * doc/posix-functions/towupper_l.texi: Likewise.
35486         * doc/posix-functions/vfwprintf.texi: Likewise.
35487         * doc/posix-functions/vfwscanf.texi: Likewise.
35488         * doc/posix-functions/vswscanf.texi: Likewise.
35489         * doc/posix-functions/vwprintf.texi: Likewise.
35490         * doc/posix-functions/vwscanf.texi: Likewise.
35491         * doc/posix-functions/wcpcpy.texi: Likewise.
35492         * doc/posix-functions/wcpncpy.texi: Likewise.
35493         * doc/posix-functions/wcscasecmp.texi: Likewise.
35494         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
35495         * doc/posix-functions/wcscoll_l.texi: Likewise.
35496         * doc/posix-functions/wcsdup.texi: Likewise.
35497         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35498         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
35499         * doc/posix-functions/wcsnlen.texi: Likewise.
35500         * doc/posix-functions/wcsnrtombs.texi: Likewise.
35501         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35502         * doc/posix-functions/wctrans_l.texi: Likewise.
35503         * doc/posix-functions/wctype_l.texi: Likewise.
35504         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
35505         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
35506         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
35507         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
35508         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
35509         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
35510         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
35511         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
35512         * doc/glibc-functions/wcschrnul.texi: Likewise.
35513         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35514         * doc/glibc-functions/wcstod_l.texi: Likewise.
35515         * doc/glibc-functions/wcstof_l.texi: Likewise.
35516         * doc/glibc-functions/wcstol_l.texi: Likewise.
35517         * doc/glibc-functions/wcstold_l.texi: Likewise.
35518         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35519         * doc/glibc-functions/wcstoq.texi: Likewise.
35520         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35521         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35522         * doc/glibc-functions/wcstouq.texi: Likewise.
35523         * doc/glibc-functions/wmempcpy.texi: Likewise.
35524
35525 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
35526             Eric Blake  <ebb9@byu.net>
35527             Paolo Bonzini  <bonzini@gnu.org>
35528             Bruno Haible  <bruno@clisp.org>
35529
35530         Make c-stack work on Haiku.
35531         * lib/c-stack.c (SA_ONSTACK): Define fallback.
35532         (c_stack_action): Use SA_ONSTACK flag.
35533
35534 2008-12-22  Bruno Haible  <bruno@clisp.org>
35535
35536         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
35537
35538 2008-12-22  Bruno Haible  <bruno@clisp.org>
35539
35540         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
35541         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
35542         being overridden.
35543         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
35544         New macros.
35545         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
35546         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
35547         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
35548         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
35549
35550 2008-12-22  Bruno Haible  <bruno@clisp.org>
35551
35552         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
35553         from test code.
35554
35555 2008-12-22  Eric Blake  <ebb9@byu.net>
35556
35557         Avoid gcc warnings on cygwin.
35558         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
35559         Avoid unused variable.
35560         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
35561         Likewise.
35562
35563 2008-12-22  Bruno Haible  <bruno@clisp.org>
35564
35565         Remove HAVE_MBRTOWC conditionals.
35566         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
35567         (mbscasecmp): Assume mbrtowc function.
35568         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
35569         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
35570         * lib/mbschr.c: Include mbuiter.h unconditionally.
35571         (mbschr): Assume mbrtowc function.
35572         * lib/mbscspn.c: Include mbuiter.h unconditionally.
35573         (mbscspn): Assume mbrtowc function.
35574         * lib/mbslen.c: Include mbuiter.h unconditionally.
35575         (mbslen): Assume mbrtowc function.
35576         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
35577         (mbsncasecmp): Assume mbrtowc function.
35578         * lib/mbsnlen.c: Include mbiter.h unconditionally.
35579         (mbsnlen): Assume mbrtowc function.
35580         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
35581         (mbspbrk): Assume mbrtowc function.
35582         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
35583         (mbspcasecmp): Assume mbrtowc function.
35584         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
35585         (mbsrchr): Assume mbrtowc function.
35586         * lib/mbssep.c: Include mbuiter.h unconditionally.
35587         (mbssep): Assume mbrtowc function.
35588         * lib/mbsspn.c: Include mbuiter.h unconditionally.
35589         (mbsspn): Assume mbrtowc function.
35590         * lib/mbsstr.c: Include mbuiter.h unconditionally.
35591         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
35592         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
35593         (mbstok_r): Assume mbrtowc function.
35594         * lib/propername.c: Include mbuiter.h unconditionally.
35595         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
35596         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
35597         (trim2): Assume mbrtowc function.
35598         * lib/mbswidth.c (mbsinit): Remove fallback definition.
35599         (mbsnwidth): Assume mbrtowc function.
35600         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
35601         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
35602         fallback definitions.
35603         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
35604
35605 2008-12-22  Bruno Haible  <bruno@clisp.org>
35606
35607         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
35608
35609 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
35610
35611         * modules/regex: Request emulations for the mb*/wc* functions we need.
35612         * m4/regex.m4: Don't look for those functions here.
35613         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
35614
35615 2008-12-22  Bruno Haible  <bruno@clisp.org>
35616
35617         * modules/fnmatch (Depends-on): Remove duplicated dependency.
35618
35619 2008-12-21  Bruno Haible  <bruno@clisp.org>
35620
35621         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
35622         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
35623         (Include): Remove conditionalization.
35624         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
35625         (Include): Remove conditionalization.
35626         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
35627         (Include): Remove conditionalization.
35628         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
35629         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35630         * NEWS: Mention the change.
35631         Reported by Alan Hourihane <alanh@fairlite.co.uk>
35632         via Sergey Poznyakoff <gray@gnu.org.ua>.
35633
35634 2008-12-21  Bruno Haible  <bruno@clisp.org>
35635
35636         * MODULES.html.sh (Extended multibyte and wide character utilities
35637         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
35638         wcrtomb, wcsrtombs.
35639         (Support for systems lacking POSIX:2008): Add accept, bind, close,
35640         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
35641         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
35642         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
35643
35644 2008-12-21  Bruno Haible  <bruno@clisp.org>
35645
35646         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
35647
35648 2008-12-21  Bruno Haible  <bruno@clisp.org>
35649
35650         * modules/wcsnrtombs-tests: New file.
35651         * tests/test-wcsnrtombs1.sh: New file.
35652         * tests/test-wcsnrtombs2.sh: New file.
35653         * tests/test-wcsnrtombs3.sh: New file.
35654         * tests/test-wcsnrtombs4.sh: New file.
35655         * tests/test-wcsnrtombs.c: New file.
35656
35657         New module 'wcsnrtombs'.
35658         * lib/wchar.in.h (wcsnrtombs): New declaration.
35659         * lib/wcsnrtombs.c: New file.
35660         * lib/wcsrtombs-state.c: New file.
35661         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
35662         (internal_state): Remove variable.
35663         * m4/wcsnrtombs.m4: New file.
35664         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
35665         compilation units.
35666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
35667         HAVE_WCSNRTOMBS.
35668         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
35669         HAVE_WCSNRTOMBS.
35670         * modules/wcsnrtombs: New file.
35671         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
35672         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
35673
35674 2008-12-21  Bruno Haible  <bruno@clisp.org>
35675
35676         * modules/wcsrtombs-tests: New file.
35677         * tests/test-wcsrtombs1.sh: New file.
35678         * tests/test-wcsrtombs2.sh: New file.
35679         * tests/test-wcsrtombs3.sh: New file.
35680         * tests/test-wcsrtombs4.sh: New file.
35681         * tests/test-wcsrtombs.c: New file.
35682
35683         New module 'wcsrtombs'.
35684         * lib/wchar.in.h (wcsrtombs): New declaration.
35685         * lib/wcsrtombs.c: New file.
35686         * m4/wcsrtombs.m4: New file.
35687         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
35688         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35689         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
35690         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
35691         * modules/wcsrtombs: New file.
35692         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
35693         bugs.
35694
35695 2008-12-21  Bruno Haible  <bruno@clisp.org>
35696
35697         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
35698         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
35699         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
35700         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
35701         if not correct.
35702         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
35703         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
35704         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35705         m4/locale-zh.m4, m4/codeset.m4.
35706         * doc/posix-functions/wcrtomb.texi: Document the bug.
35707
35708 2008-12-21  Bruno Haible  <bruno@clisp.org>
35709
35710         Work around a btowc() bug on IRIX 6.5.
35711         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
35712         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
35713         REPLACE_WTOBC if not.
35714         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
35715         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
35716         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
35717
35718 2008-12-21  Bruno Haible  <bruno@clisp.org>
35719
35720         * modules/wcrtomb-tests: New file.
35721         * tests/test-wcrtomb.sh: New file.
35722         * tests/test-wcrtomb.c: New file.
35723
35724         New module 'wcrtomb'.
35725         * lib/wchar.in.h (wcrtomb): New declaration.
35726         * lib/wcrtomb.c: New file.
35727         * m4/wcrtomb.m4: New file.
35728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
35729         HAVE_WCRTOMB.
35730         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
35731         HAVE_WCRTOMB.
35732         * modules/wcrtomb: New file.
35733         * doc/posix-functions/wcrtomb.texi: Mention the new module.
35734
35735 2008-12-21  Bruno Haible  <bruno@clisp.org>
35736
35737         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
35738         * modules/mbsrtowcs (Files): Likewise.
35739         * modules/wctob (Files): Likewise.
35740         * modules/c-strcase-tests (Files): Likewise.
35741         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35742         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35743         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35744         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35745         * modules/vasnprintf-posix-tests (Files): Likewise.
35746
35747 2008-12-21  William Pursell  <bill.pursell@gmail.com>
35748
35749         gitlog-to-changelog: pass all command-line arguments to git-log
35750         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
35751         it is sometimes convenient to filter the commits in various ways.
35752         gitlog-to-changelog only allows --since to specify a start date,
35753         but git-log itself supports many other filtering mechanisms.
35754         At the moment, I want to filter by branch name.  Rather than
35755         adding a --branch option to gitlog-to-changelog, it seems more
35756         flexible to simply pass all options directly to git-log and let
35757         git do the work.  Notice that this effectively makes --since a
35758         redundant option for gitlog-to-changelog, but removing it would
35759         require current usage to change since calls would then require
35760         an additional '--'.
35761
35762 2008-12-21  Bruno Haible  <bruno@clisp.org>
35763
35764         * modules/mbsnrtowcs-tests: New file.
35765         * tests/test-mbsnrtowcs1.sh: New file.
35766         * tests/test-mbsnrtowcs2.sh: New file.
35767         * tests/test-mbsnrtowcs3.sh: New file.
35768         * tests/test-mbsnrtowcs4.sh: New file.
35769         * tests/test-mbsnrtowcs.c: New file.
35770
35771         New module 'mbsnrtowcs'.
35772         * lib/wchar.in.h (mbsnrtowcs): New declaration.
35773         * lib/mbsnrtowcs.c: New file.
35774         * lib/mbsrtowcs-state.c: New file.
35775         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
35776         (internal_state): Remove variable.
35777         * m4/mbsnrtowcs.m4: New file.
35778         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
35779         compilation units.
35780         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
35781         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35782         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
35783         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
35784         * modules/mbsnrtowcs: New file.
35785         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
35786         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
35787         portability problem.
35788
35789 2008-12-21  Bruno Haible  <bruno@clisp.org>
35790
35791         Work around mbsrtowcs bug.
35792         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
35793         (gl_FUNC_MBSRTOWCS): Invoke it.
35794         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35795         m4/locale-zh.m4.
35796         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
35797
35798 2008-12-21  Bruno Haible  <bruno@clisp.org>
35799
35800         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
35801
35802 2008-12-21  Bruno Haible  <bruno@clisp.org>
35803
35804         Update doc for AIX.
35805         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
35806         16-bit wchar_t type.
35807         * doc/posix-functions/btowc.texi: Likewise.
35808         * doc/posix-functions/fgetwc.texi: Likewise.
35809         * doc/posix-functions/fgetws.texi: Likewise.
35810         * doc/posix-functions/fputwc.texi: Likewise.
35811         * doc/posix-functions/fputws.texi: Likewise.
35812         * doc/posix-functions/fwide.texi: Likewise.
35813         * doc/posix-functions/fwprintf.texi: Likewise.
35814         * doc/posix-functions/fwscanf.texi: Likewise.
35815         * doc/posix-functions/getwchar.texi: Likewise.
35816         * doc/posix-functions/getwc.texi: Likewise.
35817         * doc/posix-functions/iswalnum.texi: Likewise.
35818         * doc/posix-functions/iswalpha.texi: Likewise.
35819         * doc/posix-functions/iswblank.texi: Likewise.
35820         * doc/posix-functions/iswcntrl.texi: Likewise.
35821         * doc/posix-functions/iswctype.texi: Likewise.
35822         * doc/posix-functions/iswdigit.texi: Likewise.
35823         * doc/posix-functions/iswgraph.texi: Likewise.
35824         * doc/posix-functions/iswlower.texi: Likewise.
35825         * doc/posix-functions/iswprint.texi: Likewise.
35826         * doc/posix-functions/iswpunct.texi: Likewise.
35827         * doc/posix-functions/iswspace.texi: Likewise.
35828         * doc/posix-functions/iswupper.texi: Likewise.
35829         * doc/posix-functions/iswxdigit.texi: Likewise.
35830         * doc/posix-functions/mbrtowc.texi: Likewise.
35831         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35832         * doc/posix-functions/mbstowcs.texi: Likewise.
35833         * doc/posix-functions/mbtowc.texi: Likewise.
35834         * doc/posix-functions/putwchar.texi: Likewise.
35835         * doc/posix-functions/putwc.texi: Likewise.
35836         * doc/posix-functions/swprintf.texi: Likewise.
35837         * doc/posix-functions/tolower.texi: Likewise.
35838         * doc/posix-functions/toupper.texi: Likewise.
35839         * doc/posix-functions/towctrans.texi: Likewise.
35840         * doc/posix-functions/ungetwc.texi: Likewise.
35841         * doc/posix-functions/vswprintf.texi: Likewise.
35842         * doc/posix-functions/wcrtomb.texi: Likewise.
35843         * doc/posix-functions/wcscat.texi: Likewise.
35844         * doc/posix-functions/wcschr.texi: Likewise.
35845         * doc/posix-functions/wcscmp.texi: Likewise.
35846         * doc/posix-functions/wcscoll.texi: Likewise.
35847         * doc/posix-functions/wcscpy.texi: Likewise.
35848         * doc/posix-functions/wcscspn.texi: Likewise.
35849         * doc/posix-functions/wcsftime.texi: Likewise.
35850         * doc/posix-functions/wcslen.texi: Likewise.
35851         * doc/posix-functions/wcsncat.texi: Likewise.
35852         * doc/posix-functions/wcsncmp.texi: Likewise.
35853         * doc/posix-functions/wcsncpy.texi: Likewise.
35854         * doc/posix-functions/wcspbrk.texi: Likewise.
35855         * doc/posix-functions/wcsrchr.texi: Likewise.
35856         * doc/posix-functions/wcsrtombs.texi: Likewise.
35857         * doc/posix-functions/wcsspn.texi: Likewise.
35858         * doc/posix-functions/wcsstr.texi: Likewise.
35859         * doc/posix-functions/wcstod.texi: Likewise.
35860         * doc/posix-functions/wcstof.texi: Likewise.
35861         * doc/posix-functions/wcstoimax.texi: Likewise.
35862         * doc/posix-functions/wcstok.texi: Likewise.
35863         * doc/posix-functions/wcstold.texi: Likewise.
35864         * doc/posix-functions/wcstoll.texi: Likewise.
35865         * doc/posix-functions/wcstol.texi: Likewise.
35866         * doc/posix-functions/wcstombs.texi: Likewise.
35867         * doc/posix-functions/wcstoull.texi: Likewise.
35868         * doc/posix-functions/wcstoul.texi: Likewise.
35869         * doc/posix-functions/wcstoumax.texi: Likewise.
35870         * doc/posix-functions/wcswidth.texi: Likewise.
35871         * doc/posix-functions/wcsxfrm.texi: Likewise.
35872         * doc/posix-functions/wctob.texi: Likewise.
35873         * doc/posix-functions/wctomb.texi: Likewise.
35874         * doc/posix-functions/wctrans.texi: Likewise.
35875         * doc/posix-functions/wctype.texi: Likewise.
35876         * doc/posix-functions/wcwidth.texi: Likewise.
35877         * doc/posix-functions/wmemchr.texi: Likewise.
35878         * doc/posix-functions/wmemcmp.texi: Likewise.
35879         * doc/posix-functions/wmemcpy.texi: Likewise.
35880         * doc/posix-functions/wmemmove.texi: Likewise.
35881         * doc/posix-functions/wmemset.texi: Likewise.
35882         * doc/posix-functions/wprintf.texi: Likewise.
35883         * doc/posix-functions/wscanf.texi: Likewise.
35884
35885 2008-12-21  Bruno Haible  <bruno@clisp.org>
35886
35887         Update doc for HP-UX 11.11.
35888         * doc/posix-functions/btowc.texi: Clarify that the function is missing
35889         in HP-UX version 11.00, not in all versions of HP-UX 11.
35890         * doc/posix-functions/fwide.texi: Likewise.
35891         * doc/posix-functions/fwprintf.texi: Likewise.
35892         * doc/posix-functions/fwscanf.texi: Likewise.
35893         * doc/posix-functions/inet_ntop.texi: Likewise.
35894         * doc/posix-functions/inet_pton.texi: Likewise.
35895         * doc/posix-functions/mbrlen.texi: Likewise.
35896         * doc/posix-functions/mbrtowc.texi: Likewise.
35897         * doc/posix-functions/mbsinit.texi: Likewise.
35898         * doc/posix-functions/mbsrtowcs.texi: Likewise.
35899         * doc/posix-functions/swprintf.texi: Likewise.
35900         * doc/posix-functions/swscanf.texi: Likewise.
35901         * doc/posix-functions/towctrans.texi: Likewise.
35902         * doc/posix-functions/vfwprintf.texi: Likewise.
35903         * doc/posix-functions/vswprintf.texi: Likewise.
35904         * doc/posix-functions/vwprintf.texi: Likewise.
35905         * doc/posix-functions/wcrtomb.texi: Likewise.
35906         * doc/posix-functions/wcsrtombs.texi: Likewise.
35907         * doc/posix-functions/wcsstr.texi: Likewise.
35908         * doc/posix-functions/wctob.texi: Likewise.
35909         * doc/posix-functions/wctrans.texi: Likewise.
35910         * doc/posix-functions/wmemchr.texi: Likewise.
35911         * doc/posix-functions/wmemcmp.texi: Likewise.
35912         * doc/posix-functions/wmemcpy.texi: Likewise.
35913         * doc/posix-functions/wmemmove.texi: Likewise.
35914         * doc/posix-functions/wmemset.texi: Likewise.
35915         * doc/posix-functions/wprintf.texi: Likewise.
35916         * doc/posix-functions/wscanf.texi: Likewise.
35917
35918 2008-12-21  Bruno Haible  <bruno@clisp.org>
35919
35920         Work around a portability problem.
35921         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
35922         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
35923
35924 2008-12-20  Bruno Haible  <bruno@clisp.org>
35925
35926         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
35927         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
35928         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
35929         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
35930         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
35931
35932         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
35933         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
35934         set.
35935         (GNULIB_defined_mbstate_t): New macro.
35936         (mbsinit): Redefine if REPLACE_MBSINIT is set.
35937         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
35938         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
35939         reuses the system's mbrtowc function but works around the bugs.
35940         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
35941         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
35942         macros.
35943         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
35944         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
35945         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
35946         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
35947         REPLACE_MBSINIT if mbsinit needs to be overridden.
35948         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
35949         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35950         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
35951         REPLACE_MBSINIT, REPLACE_MBRTOWC.
35952         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
35953         m4/locale-zh.m4.
35954         (Depends): Add mbsinit.
35955         * modules/mbsinit (Depends): Add mbrtowc.
35956         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
35957
35958 2008-12-20  Bruno Haible  <bruno@clisp.org>
35959
35960         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
35961         so that there are no conversion errors on AIX.
35962         * tests/test-mbsrtowcs.c (main): LIkewise.
35963
35964 2008-12-20  Bruno Haible  <bruno@clisp.org>
35965
35966         Work around wctob bug on Solaris <= 9.
35967         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
35968         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
35969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
35970         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
35971         * modules/wctob (Files): Add m4/locale-fr.m4.
35972         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
35973
35974 2008-12-20  Bruno Haible  <bruno@clisp.org>
35975
35976         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
35977         /dev/null.
35978         * tests/test-select-in.sh: Likewise.
35979         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35980
35981 2008-12-20  Bruno Haible  <bruno@clisp.org>
35982
35983         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
35984         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
35985         Cygwin 1.5.x.
35986
35987 2008-12-20  Bruno Haible  <bruno@clisp.org>
35988
35989         Ensure mbstate_t is defined on HP-UX 11.11.
35990         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
35991         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
35992         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
35993         AC_USE_SYSTEM_EXTENSIONS.
35994         * modules/fnmatch (Depends-on): Add extensions.
35995         * modules/mbrlen (Depends-on): Likewise.
35996         * modules/mbrtowc (Depends-on): Likewise.
35997         * modules/mbsinit (Depends-on): Likewise.
35998         * modules/mbsrtowcs (Depends-on): Likewise.
35999         * modules/mbswidth (Depends-on): Likewise.
36000         * modules/quotearg (Depends-on): Likewise.
36001         * modules/strftime (Depends-on): Likewise.
36002
36003 2008-12-20  Bruno Haible  <bruno@clisp.org>
36004
36005         Ensure wctob is declared on IRIX 6.5.
36006         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
36007         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
36008         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
36009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
36010         of HAVE_WCTOB.
36011         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
36012         HAVE_WCTOB.
36013         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
36014
36015 2008-12-19  Bruno Haible  <bruno@clisp.org>
36016
36017         * modules/mbsrtowcs-tests: New file.
36018         * tests/test-mbsrtowcs1.sh: New file.
36019         * tests/test-mbsrtowcs2.sh: New file.
36020         * tests/test-mbsrtowcs3.sh: New file.
36021         * tests/test-mbsrtowcs4.sh: New file.
36022         * tests/test-mbsrtowcs.c: New file.
36023
36024         New module 'mbsrtowcs'.
36025         * lib/wchar.in.h (mbsrtowcs): New declaration.
36026         * lib/mbsrtowcs.c: New file.
36027         * m4/mbsrtowcs.m4: New file.
36028         * modules/mbsrtowcs: New file.
36029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
36030         HAVE_MBSRTOWCS.
36031         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
36032         HAVE_MBSRTOWCS.
36033         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
36034
36035 2008-12-19  Bruno Haible  <bruno@clisp.org>
36036
36037         New module 'mbrlen'.
36038         * lib/wchar.in.h (mbrlen): New declaration.
36039         * lib/mbrlen.c: New file.
36040         * m4/mbrlen.m4: New file.
36041         * modules/mbrlen: New file.
36042         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
36043         HAVE_MBRLEN.
36044         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
36045         HAVE_MBRLEN.
36046         * doc/posix-functions/mbrlen.texi: Document the new module.
36047
36048 2008-12-19  Bruno Haible  <bruno@clisp.org>
36049
36050         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
36051         * modules/mbrtowc (Depends-on): Add verify.
36052         Suggested by Paul Eggert.
36053
36054 2008-12-18  Bruno Haible  <bruno@clisp.org>
36055
36056         * modules/mbsinit-tests: New file.
36057         * tests/test-mbsinit.sh: New file.
36058         * tests/test-mbsinit.c: New file.
36059
36060 2008-12-18  Bruno Haible  <bruno@clisp.org>
36061
36062         * modules/mbrtowc-tests: New file.
36063         * tests/test-mbrtowc1.sh: New file.
36064         * tests/test-mbrtowc2.sh: New file.
36065         * tests/test-mbrtowc3.sh: New file.
36066         * tests/test-mbrtowc4.sh: New file.
36067         * tests/test-mbrtowc.c: New file.
36068
36069         New module 'mbrtowc'.
36070         * lib/wchar.in.h (mbstate_t): Override when the system does not have
36071         mbsinit and mbrtowc.
36072         (mbrtowc): New declaration.
36073         * lib/mbrtowc.c: New file.
36074         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
36075         * modules/mbrtowc: New file.
36076         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
36077         HAVE_MBRTOWC.
36078         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
36079         HAVE_MBRTOWC.
36080         * doc/posix-functions/mbrtowc.texi: Document the new module.
36081
36082 2008-12-18  Bruno Haible  <bruno@clisp.org>
36083
36084         New module 'wctob'.
36085         * lib/wchar.in.h (wctob): New declaration.
36086         * lib/wctob.c: New file.
36087         * m4/wctob.m4: New file.
36088         * modules/wctob: New file.
36089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
36090         HAVE_WCTOB.
36091         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
36092         * doc/posix-functions/wctob.texi: Document the new module.
36093
36094 2008-12-18  Bruno Haible  <bruno@clisp.org>
36095
36096         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
36097         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
36098
36099 2008-12-18  Simon Josefsson  <simon@josefsson.org>
36100
36101         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
36102         G. Christensen" <tgc@jupiterrise.com>.
36103
36104         * lib/flock.c: Need to include errno.h.  Reported by "Tom
36105         G. Christensen" <tgc@jupiterrise.com>.
36106
36107         * lib/flock.c: Need to include string.h.  Reported by "Tom
36108         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
36109         <ebb9@byu.net>.
36110
36111 2008-12-18  Bruno Haible  <bruno@clisp.org>
36112
36113         * m4/locale-ja.m4: New file, from GNU gettext.
36114
36115 2008-12-17  Bruno Haible  <bruno@clisp.org>
36116
36117         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
36118         Suggested by Eric Blake.
36119
36120 2008-12-17  Bruno Haible  <bruno@clisp.org>
36121
36122         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
36123
36124 2008-12-17  Bruno Haible  <bruno@clisp.org>
36125
36126         * lib/mbsinit.c: Include verify.h. Verify an assumption.
36127         * modules/mbsinit (Depends-on): Add verify.
36128         Suggested by Paul Eggert.
36129
36130 2008-12-17  Bruno Haible  <bruno@clisp.org>
36131
36132         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
36133         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
36134         gl_FUNC_MBRTOWC.
36135         * m4/mbiter.m4 (gl_MBITER): LIkewise.
36136         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
36137         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
36138         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
36139         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
36140         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
36141         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
36142         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
36143         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
36144         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
36145         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
36146         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
36147         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
36148         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
36149         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
36150         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36151         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
36152         * modules/trim (configure.ac): Likewise.
36153
36154 2008-12-17  Bruno Haible  <bruno@clisp.org>
36155
36156         * modules/btowc-tests: New file.
36157         * tests/test-btowc1.sh: New file.
36158         * tests/test-btowc2.sh: New file.
36159         * tests/test-btowc.c: New file.
36160
36161         New module 'btowc'.
36162         * lib/wchar.in.h (btowc): New declaration.
36163         * lib/btowc.c: New file.
36164         * m4/btowc.m4: New file.
36165         * modules/btowc: New file.
36166         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
36167         HAVE_BTOWC.
36168         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
36169         * doc/posix-functions/btowc.texi: Document the new module.
36170
36171 2008-12-17  Bruno Haible  <bruno@clisp.org>
36172
36173         New module 'mbsinit'.
36174         * lib/wchar.in.h (mbsinit): New declaration.
36175         * lib/mbsinit.c: New file.
36176         * m4/mbsinit.m4: New file.
36177         * modules/mbsinit: New file.
36178         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
36179         HAVE_MBSINIT.
36180         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
36181         HAVE_MBSINIT.
36182         * doc/posix-functions/mbsinit.texi: Document the new module.
36183
36184 2008-12-16  Bruno Haible  <bruno@clisp.org>
36185
36186         * lib/unistd.in.h: Add comment.
36187         * tests/test-environ.c: Don't include <stdlib.h>.
36188
36189 2008-12-16  Bruno Haible  <bruno@clisp.org>
36190
36191         * lib/parse-duration.h (parse_duration): Document return value
36192         convention.
36193         * lib/parse-duration.c: Include specification header first. Add
36194         comments.
36195         (_): Remove macro.
36196         (parse_year_month_day, parse_hour_minute_second): Move side effects
36197         outside of strchr call.
36198         (parse_non_iso8601): Move side effects outside of isspace call.
36199         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
36200         call.
36201
36202 2008-12-16  Bruno Haible  <bruno@clisp.org>
36203
36204         * tests/test-parse-duration.sh: Produce no output when the test
36205         succeeds.
36206
36207 2008-12-16  Bruno Haible  <bruno@clisp.org>
36208
36209         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
36210         expressions.
36211
36212 2008-12-15  Bruno Haible  <bruno@clisp.org>
36213
36214         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
36215         * doc/glibc-functions/flistxattr.texi: Likewise.
36216         * doc/glibc-functions/fopencookie.texi: Likewise.
36217         * doc/glibc-functions/fremovexattr.texi: Likewise.
36218         * doc/glibc-functions/fsetxattr.texi: Likewise.
36219         * doc/glibc-functions/getxattr.texi: Likewise.
36220         * doc/glibc-functions/lgetxattr.texi: Likewise.
36221         * doc/glibc-functions/listxattr.texi: Likewise.
36222         * doc/glibc-functions/llistxattr.texi: Likewise.
36223         * doc/glibc-functions/lremovexattr.texi: Likewise.
36224         * doc/glibc-functions/lsetxattr.texi: Likewise.
36225         * doc/glibc-functions/removexattr.texi: Likewise.
36226         * doc/glibc-functions/setxattr.texi: Likewise.
36227         * doc/posix-functions/open_memstream.texi: Likewise.
36228
36229 2008-12-15  Eric Blake  <ebb9@byu.net>
36230
36231         Update doc for cygwin 1.7.
36232         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
36233         functions.
36234         * doc/posix-functions/fchmodat.texi: Likewise.
36235         * doc/posix-functions/fchownat.texi: Likewise.
36236         * doc/posix-functions/fdopendir.texi: Likewise.
36237         * doc/posix-functions/fmemopen.texi: Likewise.
36238         * doc/posix-functions/freeaddrinfo.texi: Likewise.
36239         * doc/posix-functions/fstatat.texi: Likewise.
36240         * doc/posix-functions/futimens.texi: Likewise.
36241         * doc/posix-functions/gai_strerror.texi: Likewise.
36242         * doc/posix-functions/getaddrinfo.texi: Likewise.
36243         * doc/posix-functions/getnameinfo.texi: Likewise.
36244         * doc/posix-functions/if_freenameindex.texi: Likewise.
36245         * doc/posix-functions/if_indextoname.texi: Likewise.
36246         * doc/posix-functions/if_nameindex.texi: Likewise.
36247         * doc/posix-functions/if_nametoindex.texi: Likewise.
36248         * doc/posix-functions/insque.texi: Likewise.
36249         * doc/posix-functions/linkat.texi: Likewise.
36250         * doc/posix-functions/llrint.texi: Likewise.
36251         * doc/posix-functions/llrintf.texi: Likewise.
36252         * doc/posix-functions/llrintl.texi: Likewise.
36253         * doc/posix-functions/lockf.texi: Likewise.
36254         * doc/posix-functions/lrintl.texi: Likewise.
36255         * doc/posix-functions/mkdirat.texi: Likewise.
36256         * doc/posix-functions/mkfifoat.texi: Likewise.
36257         * doc/posix-functions/mknodat.texi: Likewise.
36258         * doc/posix-functions/mq_close.texi: Likewise.
36259         * doc/posix-functions/mq_getattr.texi: Likewise.
36260         * doc/posix-functions/mq_notify.texi: Likewise.
36261         * doc/posix-functions/mq_open.texi: Likewise.
36262         * doc/posix-functions/mq_receive.texi: Likewise.
36263         * doc/posix-functions/mq_send.texi: Likewise.
36264         * doc/posix-functions/mq_setattr.texi: Likewise.
36265         * doc/posix-functions/mq_timedreceive.texi: Likewise.
36266         * doc/posix-functions/mq_timedsend.texi: Likewise.
36267         * doc/posix-functions/mq_unlink.texi: Likewise.
36268         * doc/posix-functions/open_memstream.texi: Likewise.
36269         * doc/posix-functions/openat.texi: Likewise.
36270         * doc/posix-functions/posix_fadvise.texi: Likewise.
36271         * doc/posix-functions/posix_fallocate.texi: Likewise.
36272         * doc/posix-functions/posix_madvise.texi: Likewise.
36273         * doc/posix-functions/posix_memalign.texi: Likewise.
36274         * doc/posix-functions/posix_openpt.texi: Likewise.
36275         * doc/posix-functions/readlinkat.texi: Likewise.
36276         * doc/posix-functions/remque.texi: Likewise.
36277         * doc/posix-functions/renameat.texi: Likewise.
36278         * doc/posix-functions/rintl.texi: Likewise.
36279         * doc/posix-functions/sem_unlink.texi: Likewise.
36280         * doc/posix-functions/shm_open.texi: Likewise.
36281         * doc/posix-functions/shm_unlink.texi: Likewise.
36282         * doc/posix-functions/signgam.texi: Likewise.
36283         * doc/posix-functions/sigset.texi: Likewise.
36284         * doc/posix-functions/stpcpy.texi: Likewise.
36285         * doc/posix-functions/stpncpy.texi: Likewise.
36286         * doc/posix-functions/strerror.texi: Likewise.
36287         * doc/posix-functions/strtod.texi: Likewise.
36288         * doc/posix-functions/symlinkat.texi: Likewise.
36289         * doc/posix-functions/unlinkat.texi: Likewise.
36290         * doc/posix-functions/utimensat.texi: Likewise.
36291         * doc/glibc-functions/bindresvport.texi: Likewise.
36292         * doc/glibc-functions/dn_expand.texi: Likewise.
36293         * doc/glibc-functions/exp10.texi: Likewise.
36294         * doc/glibc-functions/exp10f.texi: Likewise.
36295         * doc/glibc-functions/fgetxattr.texi: Likewise.
36296         * doc/glibc-functions/flistxattr.texi: Likewise.
36297         * doc/glibc-functions/fopencookie.texi: Likewise.
36298         * doc/glibc-functions/freeifaddrs.texi: Likewise.
36299         * doc/glibc-functions/fremovexattr.texi: Likewise.
36300         * doc/glibc-functions/fsetxattr.texi: Likewise.
36301         * doc/glibc-functions/getifaddrs.texi: Likewise.
36302         * doc/glibc-functions/getxattr.texi: Likewise.
36303         * doc/glibc-functions/lgetxattr.texi: Likewise.
36304         * doc/glibc-functions/listxattr.texi: Likewise.
36305         * doc/glibc-functions/llistxattr.texi: Likewise.
36306         * doc/glibc-functions/lremovexattr.texi: Likewise.
36307         * doc/glibc-functions/lsetxattr.texi: Likewise.
36308         * doc/glibc-functions/pow10.texi: Likewise.
36309         * doc/glibc-functions/pow10f.texi: Likewise.
36310         * doc/glibc-functions/rcmd_af.texi: Likewise.
36311         * doc/glibc-functions/removexattr.texi: Likewise.
36312         * doc/glibc-functions/res_init.texi: Likewise.
36313         * doc/glibc-functions/res_mkquery.texi: Likewise.
36314         * doc/glibc-functions/res_query.texi: Likewise.
36315         * doc/glibc-functions/res_querydomain.texi: Likewise.
36316         * doc/glibc-functions/res_send.texi: Likewise.
36317         * doc/glibc-functions/rresvport_af.texi: Likewise.
36318         * doc/glibc-functions/setxattr.texi: Likewise.
36319         * doc/glibc-functions/strcasestr.texi: Likewise.
36320
36321 2008-12-15  Bruno Haible  <bruno@clisp.org>
36322
36323         Fix compilation error on OSF/1 4.0.
36324         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
36325         <sys/time.h>, simply delegate to the system header.
36326         Reported by Daniel Richard G. <oss@teragram.com>.
36327
36328 2008-12-15  Bruno Haible  <bruno@clisp.org>
36329
36330         * doc/posix-functions/openat.texi: Mention the 'openat' module.
36331         * doc/posix-functions/fchmodat.texi: Likewise.
36332         * doc/posix-functions/fchownat.texi: Likewise.
36333         * doc/posix-functions/fdopendir.texi: Likewise.
36334         * doc/posix-functions/fstatat.texi: Likewise.
36335         * doc/posix-functions/mkdirat.texi: Likewise.
36336         * doc/posix-functions/unlinkat.texi: Likewise.
36337
36338 2008-12-14  Bruno Haible  <bruno@clisp.org>
36339
36340         Update doc for POSIX:2008.
36341         * doc/posix-functions/faccessat.texi: New file.
36342         * doc/posix-functions/fchmodat.texi: New file.
36343         * doc/posix-functions/fchownat.texi: New file.
36344         * doc/posix-functions/fdopendir.texi: New file.
36345         * doc/posix-functions/fstatat.texi: New file.
36346         * doc/posix-functions/futimens.texi: New file.
36347         * doc/posix-functions/linkat.texi: New file.
36348         * doc/posix-functions/mkdirat.texi: New file.
36349         * doc/posix-functions/mkfifoat.texi: New file.
36350         * doc/posix-functions/mknodat.texi: New file.
36351         * doc/posix-functions/open_wmemstream.texi: New file.
36352         * doc/posix-functions/openat.texi: New file.
36353         * doc/posix-functions/psiginfo.texi: New file.
36354         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
36355         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
36356         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
36357         * doc/posix-functions/readlinkat.texi: New file.
36358         * doc/posix-functions/renameat.texi: New file.
36359         * doc/posix-functions/strerror_l.texi: New file.
36360         * doc/posix-functions/symlinkat.texi: New file.
36361         * doc/posix-functions/unlinkat.texi: New file.
36362         * doc/posix-functions/utimensat.texi: New file.
36363         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36364
36365 2008-12-14  Bruno Haible  <bruno@clisp.org>
36366
36367         Update doc for POSIX:2008.
36368         * doc/posix-functions/alphasort.texi: Renamed from
36369         doc/glibc-functions/alphasort.texi.
36370         * doc/posix-functions/dirfd.texi: Renamed from
36371         doc/glibc-functions/dirfd.texi.
36372         * doc/posix-functions/dprintf.texi: Renamed from
36373         doc/glibc-functions/dprintf.texi.
36374         * doc/posix-functions/duplocale.texi: Renamed from
36375         doc/glibc-functions/duplocale.texi.
36376         * doc/posix-functions/fexecve.texi: Renamed from
36377         doc/glibc-functions/fexecve.texi.
36378         * doc/posix-functions/fmemopen.texi: Renamed from
36379         doc/glibc-functions/fmemopen.texi.
36380         * doc/posix-functions/freelocale.texi: Renamed from
36381         doc/glibc-functions/freelocale.texi.
36382         * doc/posix-functions/getdate_err.texi: Renamed from
36383         doc/glibc-functions/getdate_err.texi.
36384         * doc/posix-functions/isalnum_l.texi: Renamed from
36385         doc/glibc-functions/isalnum_l.texi.
36386         * doc/posix-functions/isalpha_l.texi: Renamed from
36387         doc/glibc-functions/isalpha_l.texi.
36388         * doc/posix-functions/isblank_l.texi: Renamed from
36389         doc/glibc-functions/isblank_l.texi.
36390         * doc/posix-functions/iscntrl_l.texi: Renamed from
36391         doc/glibc-functions/iscntrl_l.texi.
36392         * doc/posix-functions/isdigit_l.texi: Renamed from
36393         doc/glibc-functions/isdigit_l.texi.
36394         * doc/posix-functions/isgraph_l.texi: Renamed from
36395         doc/glibc-functions/isgraph_l.texi.
36396         * doc/posix-functions/islower_l.texi: Renamed from
36397         doc/glibc-functions/islower_l.texi.
36398         * doc/posix-functions/isprint_l.texi: Renamed from
36399         doc/glibc-functions/isprint_l.texi.
36400         * doc/posix-functions/ispunct_l.texi: Renamed from
36401         doc/glibc-functions/ispunct_l.texi.
36402         * doc/posix-functions/isspace_l.texi: Renamed from
36403         doc/glibc-functions/isspace_l.texi.
36404         * doc/posix-functions/isupper_l.texi: Renamed from
36405         doc/glibc-functions/isupper_l.texi.
36406         * doc/posix-functions/iswalnum_l.texi: Renamed from
36407         doc/glibc-functions/iswalnum_l.texi.
36408         * doc/posix-functions/iswalpha_l.texi: Renamed from
36409         doc/glibc-functions/iswalpha_l.texi.
36410         * doc/posix-functions/iswblank_l.texi: Renamed from
36411         doc/glibc-functions/iswblank_l.texi.
36412         * doc/posix-functions/iswcntrl_l.texi: Renamed from
36413         doc/glibc-functions/iswcntrl_l.texi.
36414         * doc/posix-functions/iswctype_l.texi: Renamed from
36415         doc/glibc-functions/iswctype_l.texi.
36416         * doc/posix-functions/iswdigit_l.texi: Renamed from
36417         doc/glibc-functions/iswdigit_l.texi.
36418         * doc/posix-functions/iswgraph_l.texi: Renamed from
36419         doc/glibc-functions/iswgraph_l.texi.
36420         * doc/posix-functions/iswlower_l.texi: Renamed from
36421         doc/glibc-functions/iswlower_l.texi.
36422         * doc/posix-functions/iswprint_l.texi: Renamed from
36423         doc/glibc-functions/iswprint_l.texi.
36424         * doc/posix-functions/iswpunct_l.texi: Renamed from
36425         doc/glibc-functions/iswpunct_l.texi.
36426         * doc/posix-functions/iswspace_l.texi: Renamed from
36427         doc/glibc-functions/iswspace_l.texi.
36428         * doc/posix-functions/iswupper_l.texi: Renamed from
36429         doc/glibc-functions/iswupper_l.texi.
36430         * doc/posix-functions/iswxdigit_l.texi: Renamed from
36431         doc/glibc-functions/iswxdigit_l.texi.
36432         * doc/posix-functions/isxdigit_l.texi: Renamed from
36433         doc/glibc-functions/isxdigit_l.texi.
36434         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
36435         doc/glibc-functions/mbsnrtowcs.texi.
36436         * doc/posix-functions/mkdtemp.texi: Renamed from
36437         doc/glibc-functions/mkdtemp.texi.
36438         * doc/posix-functions/newlocale.texi: Renamed from
36439         doc/glibc-functions/newlocale.texi.
36440         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
36441         doc/glibc-functions/nl_langinfo_l.texi.
36442         * doc/posix-functions/open_memstream.texi: Renamed from
36443         doc/glibc-functions/open_memstream.texi.
36444         * doc/posix-functions/opterr.texi: Renamed from
36445         doc/glibc-functions/opterr.texi.
36446         * doc/posix-functions/optind.texi: Renamed from
36447         doc/glibc-functions/optind.texi.
36448         * doc/posix-functions/optopt.texi: Renamed from
36449         doc/glibc-functions/optopt.texi.
36450         * doc/posix-functions/psignal.texi: Renamed from
36451         doc/glibc-functions/psignal.texi.
36452         * doc/posix-functions/scandir.texi: Renamed from
36453         doc/glibc-functions/scandir.texi.
36454         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
36455         doc/glibc-functions/sched_get_priority_min.texi.
36456         * doc/posix-functions/signgam.texi: Renamed from
36457         doc/glibc-functions/signgam.texi.
36458         * doc/posix-functions/stpcpy.texi: Renamed from
36459         doc/glibc-functions/stpcpy.texi.
36460         * doc/posix-functions/stpncpy.texi: Renamed from
36461         doc/glibc-functions/stpncpy.texi.
36462         * doc/posix-functions/strcasecmp_l.texi: Renamed from
36463         doc/glibc-functions/strcasecmp_l.texi.
36464         * doc/posix-functions/strcoll_l.texi: Renamed from
36465         doc/glibc-functions/strcoll_l.texi.
36466         * doc/posix-functions/strfmon_l.texi: Renamed from
36467         doc/glibc-functions/strfmon_l.texi.
36468         * doc/posix-functions/strftime_l.texi: Renamed from
36469         doc/glibc-functions/strftime_l.texi.
36470         * doc/posix-functions/strncasecmp_l.texi: Renamed from
36471         doc/glibc-functions/strncasecmp_l.texi.
36472         * doc/posix-functions/strndup.texi: Renamed from
36473         doc/glibc-functions/strndup.texi.
36474         * doc/posix-functions/strnlen.texi: Renamed from
36475         doc/glibc-functions/strnlen.texi.
36476         * doc/posix-functions/strsignal.texi: Renamed from
36477         doc/glibc-functions/strsignal.texi.
36478         * doc/posix-functions/strxfrm_l.texi: Renamed from
36479         doc/glibc-functions/strxfrm_l.texi.
36480         * doc/posix-functions/timer_gettime.texi: Renamed from
36481         doc/glibc-functions/timer_gettime.texi.
36482         * doc/posix-functions/tolower_l.texi: Renamed from
36483         doc/glibc-functions/tolower_l.texi.
36484         * doc/posix-functions/toupper_l.texi: Renamed from
36485         doc/glibc-functions/toupper_l.texi.
36486         * doc/posix-functions/towctrans_l.texi: Renamed from
36487         doc/glibc-functions/towctrans_l.texi.
36488         * doc/posix-functions/towlower_l.texi: Renamed from
36489         doc/glibc-functions/towlower_l.texi.
36490         * doc/posix-functions/towupper_l.texi: Renamed from
36491         doc/glibc-functions/towupper_l.texi.
36492         * doc/posix-functions/uselocale.texi: Renamed from
36493         doc/glibc-functions/uselocale.texi.
36494         * doc/posix-functions/vdprintf.texi: Renamed from
36495         doc/glibc-functions/vdprintf.texi.
36496         * doc/posix-functions/wcpcpy.texi:
36497         Renamed from doc/glibc-functions/wcpcpy.texi.
36498         * doc/posix-functions/wcpncpy.texi: Renamed from
36499         doc/glibc-functions/wcpncpy.texi.
36500         * doc/posix-functions/wcscasecmp.texi: Renamed from
36501         doc/glibc-functions/wcscasecmp.texi.
36502         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
36503         doc/glibc-functions/wcscasecmp_l.texi.
36504         * doc/posix-functions/wcscoll_l.texi: Renamed from
36505         doc/glibc-functions/wcscoll_l.texi.
36506         * doc/posix-functions/wcsdup.texi: Renamed from
36507         doc/glibc-functions/wcsdup.texi.
36508         * doc/posix-functions/wcsncasecmp.texi: Renamed from
36509         doc/glibc-functions/wcsncasecmp.texi.
36510         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
36511         doc/glibc-functions/wcsncasecmp_l.texi.
36512         * doc/posix-functions/wcsnlen.texi: Renamed from
36513         doc/glibc-functions/wcsnlen.texi.
36514         * doc/posix-functions/wcsnrtombs.texi: Renamed from
36515         doc/glibc-functions/wcsnrtombs.texi.
36516         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
36517         doc/glibc-functions/wcsxfrm_l.texi.
36518         * doc/posix-functions/wctrans_l.texi: Renamed from
36519         doc/glibc-functions/wctrans_l.texi.
36520         * doc/posix-functions/wctype_l.texi: Renamed from
36521         doc/glibc-functions/wctype_l.texi.
36522         * doc/gnulib.texi (Function Substitutes): Add these subsections.
36523         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
36524         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
36525         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
36526         these subsections.
36527         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
36528         Remove sections.
36529
36530 2008-12-14  Bruno Haible  <bruno@clisp.org>
36531
36532         Update doc for POSIX:2008.
36533         * doc/posix-functions/*.texi: Update URL of POSIX specification.
36534
36535 2008-12-14  Bruno Haible  <bruno@clisp.org>
36536
36537         Update doc for POSIX:2008.
36538         * doc/pastposix-functions/bcmp.texi: Renamed from
36539         doc/posix-functions/bcmp.texi.
36540         * doc/pastposix-functions/bcopy.texi: Renamed from
36541         doc/posix-functions/bcopy.texi.
36542         * doc/pastposix-functions/bsd_signal.texi: Renamed from
36543         doc/posix-functions/bsd_signal.texi.
36544         * doc/pastposix-functions/bzero.texi: Renamed from
36545         doc/posix-functions/bzero.texi.
36546         * doc/pastposix-functions/ecvt.texi: Renamed from
36547         doc/posix-functions/ecvt.texi.
36548         * doc/pastposix-functions/fcvt.texi: Renamed from
36549         doc/posix-functions/fcvt.texi.
36550         * doc/pastposix-functions/ftime.texi: Renamed from
36551         doc/posix-functions/ftime.texi.
36552         * doc/pastposix-functions/gcvt.texi: Renamed from
36553         doc/posix-functions/gcvt.texi.
36554         * doc/pastposix-functions/getcontext.texi: Renamed from
36555         doc/posix-functions/getcontext.texi.
36556         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
36557         doc/posix-functions/gethostbyaddr.texi.
36558         * doc/pastposix-functions/gethostbyname.texi: Renamed from
36559         doc/posix-functions/gethostbyname.texi.
36560         * doc/pastposix-functions/getwd.texi: Renamed from
36561         doc/posix-functions/getwd.texi.
36562         * doc/pastposix-functions/h_errno.texi: Renamed from
36563         doc/posix-functions/h_errno.texi.
36564         * doc/pastposix-functions/index.texi: Renamed from
36565         doc/posix-functions/index.texi.
36566         * doc/pastposix-functions/makecontext.texi: Renamed from
36567         doc/posix-functions/makecontext.texi.
36568         * doc/pastposix-functions/mktemp.texi: Renamed from
36569         doc/posix-functions/mktemp.texi.
36570         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
36571         doc/posix-functions/pthread_attr_getstackaddr.texi.
36572         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
36573         doc/posix-functions/pthread_attr_setstackaddr.texi.
36574         * doc/pastposix-functions/rindex.texi: Renamed from
36575         doc/posix-functions/rindex.texi.
36576         * doc/pastposix-functions/scalb.texi: Renamed from
36577         doc/posix-functions/scalb.texi.
36578         * doc/pastposix-functions/setcontext.texi: Renamed from
36579         doc/posix-functions/setcontext.texi.
36580         * doc/pastposix-functions/swapcontext.texi: Renamed from
36581         doc/posix-functions/swapcontext.texi.
36582         * doc/pastposix-functions/ualarm.texi: Renamed from
36583         doc/posix-functions/ualarm.texi.
36584         * doc/pastposix-functions/usleep.texi: Renamed from
36585         doc/posix-functions/usleep.texi.
36586         * doc/pastposix-functions/vfork.texi: Renamed from
36587         doc/posix-functions/vfork.texi.
36588         * doc/pastposix-functions/wcswcs.texi: Renamed from
36589         doc/posix-functions/wcswcs.texi.
36590         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
36591         (Function Substitutes): Update.
36592
36593 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36594
36595         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
36596         m4/strerror.m4.
36597
36598 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36599             Bruno Haible  <bruno@clisp.org>
36600
36601         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
36602
36603 2008-12-13  Bruno Haible  <bruno@clisp.org>
36604
36605         * modules/strtoull (Depends-on): Remove unistd.
36606
36607 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36608
36609         * modules/strtoull (Depends-on): Add stdlib.
36610
36611 2008-12-11  Simon Josefsson  <simon@josefsson.org>
36612
36613         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
36614
36615 2008-12-10  Jim Meyering  <meyering@redhat.com>
36616
36617         gl_ASSERT: don't say assertions are disabled when they're not
36618         * m4/assert.m4 (gl_ASSERT): Do not make configure report
36619         "checking whether to enable assertions... no", when they are in
36620         fact enabled.  This is solely a bug in the output of configure.
36621         In spite of saying "no", NDEBUG was not defined in that case.
36622         Also, as noted by Eric Blake, leave assertions enabled upon
36623         --enable-assert=INVALID.
36624
36625 2008-12-10  Bruno Haible  <bruno@clisp.org>
36626
36627         Change MODULES.html to refer to POSIX:2008 where possible.
36628         * MODULES.html.sh (POSIX2008_URL): New variable.
36629         (posix_headers): Remove sys/timeb, ucontext.
36630         (posix2001_headers): New variable.
36631         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
36632         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
36633         index, makecontext, mktemp, pthread_attr_getstackaddr,
36634         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
36635         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
36636         (posix2001_functions): New variable.
36637         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
36638         otherwise.
36639
36640 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36641
36642         add missing include to parse-duration.c
36643         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
36644         * modules/parse-duration (Depends-on): Add xalloc.
36645
36646         fix sed script reading maint.mk
36647         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
36648         (syntax-check-rules): Use it.
36649
36650 2008-12-09  Bruno Haible  <bruno@clisp.org>
36651
36652         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
36653         MacOS X 10.4/PowerPC.
36654         Reported by Simon Josefsson.
36655
36656 2008-12-08  Jim Meyering  <meyering@redhat.com>
36657
36658         work around mingw's lack of some S_IF definitions
36659         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
36660         Reported by Simon Josefsson.
36661
36662 2008-12-08  Bruno Haible  <bruno@clisp.org>
36663
36664         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
36665         applied to variables. Needed on MacOS X 10.4/PowerPC.
36666         Reported by Simon Josefsson.
36667
36668 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
36669         and Eric Blake  <ebb9@byu.net>
36670
36671         assert: honor --enable-assert
36672         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
36673         order to honor --enable-assert, rather than treating it as a
36674         synonym for --disable-assert.
36675
36676 2008-12-08  Jim Meyering  <meyering@redhat.com>
36677
36678         * lib/posixtm.c: Remove now-useless declaration of mktime.
36679
36680         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
36681
36682 2008-12-07  Bruno Haible  <bruno@clisp.org>
36683
36684         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
36685         test_once): Mark functions as static.
36686         * tests/test-tls.c (test_tls): Likewise.
36687
36688 2008-12-07  Bruno Haible  <bruno@clisp.org>
36689
36690         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
36691         iconv_register_autodetect.
36692
36693 2008-12-07  Jim Meyering  <meyering@redhat.com>
36694
36695         posixtm.c: avoid a warning
36696         * lib/posixtm.c (posixtime): Don't initialize tm0.
36697         It's no longer needed to placate gcc4's -Wuninitialized,
36698         and the attempt to placate would elicit a new warning.
36699
36700         unicodeio.c: mark unused parameters
36701         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36702         (fallback_failure_callback): Likewise.
36703
36704 2008-12-07  Bruno Haible  <bruno@clisp.org>
36705
36706         * gnulib-tool (func_create_testdir): When building the tests
36707         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
36708         Reported by Simon Josefsson.
36709
36710 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36711
36712         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
36713
36714 2008-12-06  Bruno Haible  <bruno@clisp.org>
36715
36716         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
36717         Suggested by Eric Blake.
36718
36719 2008-12-06  Bruno Haible  <bruno@clisp.org>
36720
36721         Fix a c-stack test failure on MacOS X.
36722         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
36723         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
36724         handler for SIGBUS as well.
36725         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
36726         install a signal handler for SIGBUS as well.
36727         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
36728
36729 2008-12-06  Bruno Haible  <bruno@clisp.org>
36730
36731         Advocacy documentation.
36732         * doc/gnulib-intro.texi (Benefits): New section.
36733         * doc/gnulib.texi: Update.
36734
36735 2008-12-06  Bruno Haible  <bruno@clisp.org>
36736
36737         Document the 'manywarnings' module.
36738         * doc/manywarnings.texi: New file.
36739         * doc/gnulib.texi: Include it.
36740
36741 2008-12-05  Eric Blake  <ebb9@byu.net>
36742
36743         tests: silence some gcc warnings
36744         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
36745         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
36746         type mismatches.
36747
36748 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36749             Bruno Haible  <bruno@clisp.org>
36750
36751         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
36752
36753 2008-11-29  Jim Meyering  <meyering@redhat.com>
36754
36755         unicodeio.c: mark unused parameters
36756         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
36757         (fallback_failure_callback): Likewise.
36758
36759         fts: fix a thinko
36760         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
36761         (set_stat_type): Return S_IF*-valued "type" directly.
36762         Prompted by James Youngman's spotting a related bug.
36763         Confirmed by further testing through find.
36764
36765         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
36766         * lib/fts.c (D_TYPE): Define.
36767         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
36768         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
36769         (s_ifmt_shift_bits): New function.
36770         (set_stat_type): New function.
36771         (fts_build): When not calling fts_stat, call set_stat_type
36772         to propagate dirent.d_type info to fts_read caller.
36773         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
36774         fts_statp->st_mode type information may be valid.
36775
36776 2008-11-28  Simon Josefsson  <simon@josefsson.org>
36777
36778         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
36779         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
36780         <sds@gnu.org>.
36781
36782 2008-11-20  Bruno Haible  <bruno@clisp.org>
36783
36784         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
36785         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
36786         INCLUDE_NEXT.
36787         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
36788         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
36789         * modules/math (Makefile.am): Substitute
36790         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
36791         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36792
36793 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36794             Bruno Haible  <bruno@clisp.org>
36795
36796         * lib/stdint.in.h: Define all type macros so that their expansion is
36797         a single typedef'ed token. Fixes a compilation failure in Boost which
36798         does "using ::int8_t;".
36799
36800 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36801
36802         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
36803         gl_MANYWARN_ALL_GCC.
36804         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
36805         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
36806         * modules/manywarnings: New file.
36807         * MODULES.html.sh: Mention manywarnings module.
36808
36809 2008-11-18  Bruno Haible  <bruno@clisp.org>
36810
36811         * doc/gnulib-tool.texi (Unit tests): New section.
36812
36813 2008-11-18  Simon Josefsson  <simon@josefsson.org>
36814
36815         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
36816         paths like 'lib/po/foo.po'.
36817
36818 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36819
36820         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
36821         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
36822
36823 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36824
36825         * m4/warnings.m4: Use CPPFLAGS to really check whether the
36826         parameter works.
36827
36828 2008-11-17  Simon Josefsson  <simon@josefsson.org>
36829
36830         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
36831
36832 2008-11-17  Bruce Korb  <bkorb@gnu.org>
36833
36834         * modules/parse-duration-tests: New file.
36835         * tests/test-parse-duration.sh: New file.
36836         * tests/test-parse-duration.c: New file.
36837
36838         New module 'parse-duration'.
36839         * lib/parse-duration.h: New file.
36840         * lib/parse-duration.c: New file.
36841         * modules/parse-duration: New file.
36842
36843 2008-11-17  Bruno Haible  <bruno@clisp.org>
36844
36845         * tests/test-select-out.sh: Comment out the first pipe test.
36846         Reported by Simon Josefsson.
36847
36848 2008-11-17  Bruno Haible  <bruno@clisp.org>
36849
36850         * modules/getaddrinfo (Depends-on): Add servent, hostent.
36851         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
36852         gl_HOSTENT.
36853
36854 2008-11-17  Bruno Haible  <bruno@clisp.org>
36855
36856         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
36857         -lnetwork and -lnet. Needed for Haiku and BeOS.
36858
36859 2008-11-16  Bruno Haible  <bruno@clisp.org>
36860
36861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
36862
36863 2008-11-16  Bruno Haible  <bruno@clisp.org>
36864
36865         Avoid test failure on Haiku.
36866         * tests/test-fsync.c: Include <errno.h>.
36867         (main): Don't require that fsync (0) fails.
36868
36869 2008-11-15  Bruno Haible  <bruno@clisp.org>
36870
36871         New module 'hostent'.
36872         * modules/hostent: New file.
36873         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
36874
36875 2008-11-15  Bruno Haible  <bruno@clisp.org>
36876
36877         New module 'servent'.
36878         * modules/servent: New file.
36879         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
36880
36881 2008-11-15  Bruno Haible  <bruno@clisp.org>
36882
36883         Avoid generating same test program with two different rules.
36884         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
36885         test-frexp to test-frexp-nolibm.
36886         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
36887         test-frexpl to test-frexpl-nolibm.
36888
36889 2008-11-15  Bruno Haible  <bruno@clisp.org>
36890
36891         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
36892         $(FREXPL_LIBM).
36893
36894 2008-11-15  Bruno Haible  <bruno@clisp.org>
36895
36896         * lib/netdb.in.h: Activate the definitions also when the system's
36897         <netdb.h> has 'struct addrinfo'.
36898         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
36899         EAI_OVERFLOW or AI_NUMERICSERV.
36900         * doc/posix-headers/netdb.texi: Document the problem.
36901
36902 2008-11-15  Bruno Haible  <bruno@clisp.org>
36903
36904         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
36905
36906         Make the 'sched' module work on platforms where <sched.h> exists but
36907         is incomplete (such as Haiku).
36908         * lib/sched.in.h; Include the system's <sched.h> if it exists.
36909         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
36910         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
36911         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
36912         HAVE_STRUCT_SCHED_PARAM.
36913         * modules/sched (Depends-on): Add include_next.
36914         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
36915         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
36916         * doc/posix-headers/sched.texi: Document the issue.
36917
36918 2008-11-13  Jim Meyering  <meyering@redhat.com>
36919
36920         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
36921         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
36922         test would fail due to the difference in the Report bugs to ...
36923         line.  The expected address is empty, "<>", while the actual
36924         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
36925
36926 2008-11-12  Bruno Haible  <bruno@clisp.org>
36927
36928         lstat: don't compile lstat.c on systems lacking lstat
36929         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
36930         which don't have lstat; this is handled by lib/sys_stat.in.h already.
36931         Reported by Daniel P. Berrange via Jim Meyering.
36932
36933 2008-11-12  Jim Meyering  <meyering@redhat.com>
36934
36935         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
36936
36937 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36938
36939         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
36940         instead.
36941
36942 2008-11-12  Bruno Haible  <bruno@clisp.org>
36943
36944         * lib/unicodeio.c: Include unistr.h.
36945         (utf8_wctomb): Remove function.
36946         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
36947
36948 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36949
36950         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
36951         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
36952         <bruno@clisp.org>.
36953         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
36954
36955 2008-11-12  Simon Josefsson  <simon@josefsson.org>
36956
36957         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
36958         * doc/gnulib.texi: Add section for warnings.
36959
36960 2008-11-11  Bruno Haible  <bruno@clisp.org>
36961
36962         * lib/sockets.h: Add a comment.
36963
36964 2008-11-11  Karl Berry  <karl@gnu.org>
36965
36966         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
36967
36968 2008-11-11  Eric Blake  <ebb9@byu.net>
36969
36970         fdl.texi: avoid git symlinks
36971         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
36972
36973 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36974
36975         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
36976
36977 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36978
36979         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
36980         (gl_WARN_ADD): Substitute $2 if literal.
36981
36982 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36983
36984         * m4/warning.m4: Remove.
36985
36986 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
36987
36988         * m4/warnings.m4: Almost complete rewrite. :-)
36989
36990 2008-11-10  Simon Josefsson  <simon@josefsson.org>
36991
36992         * modules/warnings: New module.
36993         * m4/warnings.m4: New file.
36994         * MODULES.html.sh: Mention warnings module.
36995         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
36996         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36997
36998 2008-11-10  Eric Blake  <ebb9@byu.net>
36999
37000         fdl.texi: make a symlink to the latest version
37001         * doc/standards.texi: Revert today's earlier change.
37002         * doc/fdl-1.2.texi: Rename from old fdl.texi...
37003         * doc/fdl.texi: ...and replace this with a symlink to the newer
37004         fdl-1.3.texi.
37005
37006 2008-11-10  Bruno Haible  <bruno@clisp.org>
37007
37008         * tests/test-select-fd.c (main): Accept the result file name as fourth
37009         argument.
37010         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
37011         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
37012
37013 2008-11-10  Bruno Haible  <bruno@clisp.org>
37014
37015         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
37016         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
37017         as autoconf-substituted macros.
37018         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
37019         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
37020         gl_NETDB_H_DEFAULTS. Set these variables.
37021         * modules/netdb (Makefile.am): Substitute these variables.
37022
37023 2008-11-10  Eric Blake  <ebb9@byu.net>
37024
37025         standards.texi: include correct file for FDL 1.3
37026         * doc/standards.texi (GNU Free Documentation License): Change
37027         include file to pull in FDL 1.3, not 1.2.
37028
37029         fdl.texi: revert accidental change to license
37030         * doc/fdl.texi: This is FDL 1.2, not 1.3.
37031
37032 2008-11-10  Bruno Haible  <bruno@clisp.org>
37033
37034         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
37035         cross-compiling guesses also when the native compile gives no result.
37036
37037 2008-11-10  Bruno Haible  <bruno@clisp.org>
37038
37039         * lib/spawni.c (__spawni): Force variable into the stack.
37040
37041 2008-11-10  Bruno Haible  <bruno@clisp.org>
37042
37043         Add support for Haiku.
37044         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
37045         glibc and BeOS, but also on Haiku.
37046         * lib/fpurge.c (fpurge): Likewise.
37047         * lib/freadable.c (freadable): Likewise.
37048         * lib/freadahead.c (freadahead): Likewise.
37049         * lib/freading.c (freading): Likewise.
37050         * lib/freadptr.c (freadptr): Likewise.
37051         * lib/freadseek.c (freadptrinc): Likewise.
37052         * lib/fseeko.c (rpl_fseeko): Likewise.
37053         * lib/fseterr.c (fseterr): Likewise.
37054         * lib/fwritable.c (fwritable): Likewise.
37055         * lib/fwriting.c (fwriting): Likewise.
37056         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
37057
37058 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37059
37060         * lib/config.charset: Treat Haiku like BeOS.
37061
37062 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
37063
37064         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
37065         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
37066
37067 2008-11-08  Bruno Haible  <bruno@clisp.org>
37068
37069         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
37070         AC_CACHE_CHECK.
37071
37072 2008-11-08  Bruno Haible  <bruno@clisp.org>
37073
37074         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
37075
37076 2008-11-08  Bruno Haible  <bruno@clisp.org>
37077
37078         * tests/test-select-fd.c: New file.
37079         * tests/test-select-in.sh: New file.
37080         * tests/test-select-out.sh: New file.
37081         * tests/test-select-stdin.c: New file.
37082         * modules/select-tests (Files): Add the new files.
37083         (Depends-on): Add gettimeofday.
37084         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
37085         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
37086         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
37087
37088 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
37089             Bruno Haible  <bruno@clisp.org>
37090
37091         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
37092
37093 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
37094
37095         * build-aux/pmccabe2html: Added support for C++ source files.
37096
37097 2008-11-05  Ben Pfaff  <blp@gnu.org>
37098
37099         Fix lib/close.c build on Windows.
37100         * modules/close (Files): Add lib/w32sock.h.
37101
37102 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
37103
37104         Accept Bison's NEWS format.
37105         * build-aux/announce-gen (print_news_deltas): Tweak
37106         $re_prefix.
37107
37108 2008-11-04  Bruno Haible  <bruno@clisp.org>
37109
37110         * modules/random_r (Maintainer): Add glibc.
37111
37112 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37113
37114         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
37115         by karl@freefriends.org (Karl Berry).
37116         * doc/alloca.texi: Likewise.
37117         * doc/c-ctype.texi: Likewise.
37118         * doc/c-strcase.texi: Likewise.
37119         * doc/c-strcaseeq.texi: Likewise.
37120         * doc/c-strcasestr.texi: Likewise.
37121         * doc/c-strstr.texi: Likewise.
37122         * doc/c-strtod.texi: Likewise.
37123         * doc/c-strtold.texi: Likewise.
37124         * doc/ctime.texi: Likewise.
37125         * doc/error.texi: Likewise.
37126         * doc/fdl.texi: Likewise.
37127         * doc/gcd.texi: Likewise.
37128         * doc/getdate.texi: Likewise.
37129         * doc/gnulib-intro.texi: Likewise.
37130         * doc/gnulib-tool.texi: Likewise.
37131         * doc/gnulib.texi: Likewise.
37132         * doc/inet_ntoa.texi: Likewise.
37133         * doc/maintain.texi: Likewise.
37134         * doc/make-stds.texi: Likewise.
37135         * doc/quote.texi: Likewise.
37136         * doc/regexprops-generic.texi: Likewise.
37137         * doc/standards.texi: Likewise.
37138         * doc/verify.texi: Likewise.
37139         * doc/visibility.texi: Likewise.
37140         * doc/gnulib.texi (GNU Free Documentation License): Include
37141         fdl-1.3.texi instead of fdl.texi.
37142
37143 2008-11-04  Simon Josefsson  <simon@josefsson.org>
37144
37145         * doc/fdl-1.3.texi: New file, from
37146         <http://www.gnu.org/licenses/fdl-1.3.texi>.
37147         * modules/fdl-1.3: Add.
37148         * MODULES.html.sh: Add fdl-1.3.
37149
37150 2008-11-03  Bruno Haible  <bruno@clisp.org>
37151
37152         Make determination of absolute name of header file work with AIX xlc.
37153         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
37154         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
37155         preprocessing.
37156         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
37157         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
37158
37159 2008-11-03  Simon Josefsson  <simon@josefsson.org>
37160
37161         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
37162         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
37163         <ludo@gnu.org>.
37164
37165 2008-11-02  Bruno Haible  <bruno@clisp.org>
37166
37167         Mark 'strpbrk' obsolete.
37168         * modules/strpbrk (Status, Notice): New sections.
37169         * modules/strtok_r (Depends-on): Add strpbrk.
37170
37171 2008-11-02  Bruno Haible  <bruno@clisp.org>
37172
37173         Mark 'strdup' obsolete.
37174         * modules/strdup (Status, Notice): New sections.
37175         * modules/findprog (Depends-on): Add strdup.
37176         * modules/getaddrinfo (Depends-on): Likewise.
37177         * modules/localename (Depends-on): Likewise.
37178         * modules/relocatable-lib (Depends-on): Likewise.
37179         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
37180         * modules/relocatable-prog (Depends-on): Likewise.
37181         * modules/trim (Depends-on): Likewise.
37182         * modules/unictype/gen-ctype (Depends-on): Likewise.
37183         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37184
37185 2008-11-02  Bruno Haible  <bruno@clisp.org>
37186
37187         Mark 'strcspn' obsolete.
37188         * modules/strcspn (Status, Notice): New sections.
37189
37190 2008-11-02  Bruno Haible  <bruno@clisp.org>
37191
37192         Mark 'rmdir' obsolete.
37193         * modules/rmdir (Status, Notice): New sections.
37194         * modules/clean-temp (Depends-on): Add rmdir.
37195         * modules/openat (Depends-on): Likewise.
37196
37197 2008-11-02  Bruno Haible  <bruno@clisp.org>
37198
37199         Mark 'raise' obsolete.
37200         * modules/raise (Status, Notice): New sections.
37201         (Include): Specify <signal.h>.
37202         * modules/stdio (Depends-on): Add raise.
37203         * modules/write (Depends-on): Likewise.
37204
37205 2008-11-02  Bruno Haible  <bruno@clisp.org>
37206
37207         Mark 'memset' obsolete.
37208         * modules/memset (Status, Notice): New sections.
37209
37210 2008-11-02  Bruno Haible  <bruno@clisp.org>
37211
37212         Mark 'memmove' obsolete.
37213         * modules/memmove (Status, Notice): New sections.
37214         * modules/argp (Depends-on): Add memmove.
37215         * modules/argz (Depends-on): Likewise.
37216         * modules/canonicalize (Depends-on): Likewise.
37217         * modules/canonicalize-lgpl (Depends-on): Likewise.
37218         * modules/fts (Depends-on): Likewise.
37219         * modules/getcwd (Depends-on): Likewise.
37220         * modules/human (Depends-on): Likewise.
37221         * modules/regex (Depends-on): Likewise.
37222         * modules/striconveh (Depends-on): Likewise.
37223         * modules/trim (Depends-on): Likewise.
37224         * modules/unistr/u8-move (Depends-on): Likewise.
37225         * modules/unistr/u16-move (Depends-on): Likewise.
37226         * modules/unistr/u32-move (Depends-on): Likewise.
37227
37228 2008-11-02  Bruno Haible  <bruno@clisp.org>
37229
37230         Mark 'memcpy' obsolete.
37231         * modules/memcpy (Status, Notice): New sections.
37232
37233 2008-11-02  Bruno Haible  <bruno@clisp.org>
37234
37235         Mark 'memcmp' obsolete.
37236         * modules/memcmp (Status, Notice): New sections.
37237         * modules/argmatch (Depends-on): Add memchr.
37238         * modules/backupfile (Depends-on): Likewise.
37239         * modules/c-strcasestr (Depends-on): Likewise.
37240         * modules/crypto/des (Depends-on): Likewise.
37241         * modules/csharpcomp (Depends-on): Likewise.
37242         * modules/fnmatch (Depends-on): Likewise.
37243         * modules/git-merge-changelog (Depends-on): Likewise.
37244         * modules/isnand (Depends-on): Likewise.
37245         * modules/isnand-nolibm (Depends-on): Likewise.
37246         * modules/isnanf (Depends-on): Likewise.
37247         * modules/isnanf-nolibm (Depends-on): Likewise.
37248         * modules/isnanl (Depends-on): Likewise.
37249         * modules/isnanl-nolibm (Depends-on): Likewise.
37250         * modules/mbchar (Depends-on): Likewise.
37251         * modules/memcoll (Depends-on): Likewise.
37252         * modules/quotearg (Depends-on): Likewise.
37253         * modules/regex (Depends-on): Likewise.
37254         * modules/relocatable-prog (Depends-on): Likewise.
37255         * modules/same (Depends-on): Likewise.
37256         * modules/signbit (Depends-on): Likewise.
37257         * modules/strcasestr-simple (Depends-on): Likewise.
37258         * modules/unictype/gen-ctype (Depends-on): Likewise.
37259         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
37260         * modules/uniname/uniname (Depends-on): Likewise.
37261         * modules/unistr/u8-cmp (Depends-on): Likewise.
37262
37263 2008-11-02  Bruno Haible  <bruno@clisp.org>
37264
37265         Mark 'memchr' obsolete.
37266         * modules/memchr (Status, Notice): New sections.
37267         * modules/argp (Depends-on): Add memchr.
37268         * modules/base64 (Depends-on): Likewise.
37269         * modules/c-strcasestr (Depends-on): Likewise.
37270         * modules/chdir-long (Depends-on): Likewise.
37271         * modules/fnmatch (Depends-on): Likewise.
37272         * modules/getsubopt (Depends-on): Likewise.
37273         * modules/git-merge-changelog (Depends-on): Likewise.
37274         * modules/glob (Depends-on): Likewise.
37275         * modules/strcasestr-simple (Depends-on): Likewise.
37276         * modules/strnlen (Depends-on): Likewise.
37277
37278 2008-11-02  Bruno Haible  <bruno@clisp.org>
37279
37280         Mark 'atexit' obsolete.
37281         * modules/atexit (Status, Notice): New sections.
37282         * modules/chdir-long (Depends-on): Add atexit.
37283         * modules/wait-process (Depends-on): Likewise.
37284
37285 2008-11-02  Bruno Haible  <bruno@clisp.org>
37286
37287         * gnulib-tool: New option --with-obsolete.
37288         (func_usage): Document it.
37289         (func_modules_transitive_closure): Drop obsolete dependencies if
37290         incobsolete is not true.
37291         (func_import): Read and save the incobsolete variable to the cache.
37292
37293 2008-11-02  Bruno Haible  <bruno@clisp.org>
37294
37295         * modules/TEMPLATE-EXTENDED: New field 'Status'.
37296         * gnulib-tool: New option --extract-status.
37297         (func_usage): Document it.
37298         (sed_extract_prog): Recognize it.
37299         (func_get_status): New function.
37300
37301 2008-10-30  Simon Josefsson  <simon@josefsson.org>
37302
37303         * modules/sockets (License): Change from LGPL to LGPLv2+.
37304
37305 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37306
37307         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
37308
37309 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37310
37311         * MODULES.html.sh (Support for systems lacking POSIX:2001):
37312         Mention times and sys_times.
37313         * modules/sys_times, modules/sys_times-tests: New modules.
37314         * modules/times, modules/times-tests: Likewise
37315         * m4/sys_times_h.m4: New file.
37316         * lib/sys_times.in.h: Likewise
37317         * lib/times.c: Likewise.
37318         * tests/test-sys_times.c: Likewise.
37319         * tests/test-times.c: Likewise.
37320         * doc/posix-headers/sys_times.texi: Update.
37321         * doc/posix-functions/times.texi: Update.
37322
37323 2008-10-28  Jim Meyering  <meyering@redhat.com>
37324
37325         * modules/tempname (Depends-on): Add lstat.
37326
37327         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
37328
37329 2008-10-28  Simon Josefsson  <simon@josefsson.org>
37330
37331         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
37332         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
37333         using idiom used elsewhere in gnulib.
37334
37335 2008-10-27  Jim Meyering  <meyering@redhat.com>
37336
37337         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
37338
37339 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37340
37341         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
37342         TESTS_ENVIRONMENT, for shell scripts that needs to call built
37343         programs.
37344         * tests/test-argp-2.sh: Use $EXEEXT when needed.
37345
37346 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37347
37348         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
37349
37350 2008-10-27  Bruno Haible  <bruno@clisp.org>
37351
37352         * tests/test-lstat.c: Include <stdio.h>.
37353
37354 2008-10-27  Simon Josefsson  <simon@josefsson.org>
37355
37356         * modules/lstat-tests: New module.
37357         * tests/test-lstat.c: New file.
37358
37359 2008-10-26  Jim Meyering  <meyering@redhat.com>
37360
37361         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
37362
37363 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37364             Bruno Haible  <bruno@clisp.org>
37365
37366         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
37367         * modules/configmake (Include): Add a note that the include must come
37368         after all system headers.
37369         * lib/javaversion.c: Include configmake.h after all other includes.
37370
37371 2008-10-26  Bruno Haible  <bruno@clisp.org>
37372
37373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
37374         HAVE_STRUCT_RANDOM_DATA to 1.
37375         (gl_STDLIB_H): Simplify.
37376
37377 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37378
37379         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
37380         substitute HAVE_STRUCT_RANDOM_DATA.
37381         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
37382         random_data.
37383         * modules/stdlib (Makefile.am): Substitute
37384         HAVE_STRUCT_RANDOM_DATA.
37385
37386 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37387
37388         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
37389         * doc/gnulib-intro.texi (Copyright): Likewise.
37390
37391 2008-10-26  Simon Josefsson  <simon@josefsson.org>
37392
37393         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
37394         findings.
37395
37396 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
37397             Bruno Haible  <bruno@clisp.org>
37398
37399         * lib/unistd.in.h: Include <winsock2.h>.
37400         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
37401         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
37402         Provide dummy declarations.
37403         (gethostname): Override.
37404         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
37405         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
37406         gl_PREREQ_SYS_H_WINSOCK2.
37407         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
37408         * doc/posix-functions/gethostname.texi: More details.
37409
37410 2008-10-25  Bruno Haible  <bruno@clisp.org>
37411
37412         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
37413         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
37414         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
37415
37416         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
37417         here ...
37418         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
37419         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
37420         gl_UNISTD_H_DEFAULTS.
37421
37422 2008-10-25  Eric Blake  <ebb9@byu.net>
37423
37424         signbit: avoid spurious compiler failure
37425         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
37426         declarations inside function.
37427
37428 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37429             Bruno Haible  <bruno@clisp.org>
37430
37431         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
37432         * modules/random_r (Depends-on): Add stdint.
37433
37434 2008-10-24  Bruno Haible  <bruno@clisp.org>
37435
37436         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
37437         Eggert.
37438         * modules/strerror (License): Likewise.
37439
37440 2008-10-24  Jim Meyering  <meyering@redhat.com>
37441
37442         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
37443         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
37444
37445 2008-10-24  Eric Blake  <ebb9@byu.net>
37446
37447         getgroups: fix compilation when getgroups is available
37448         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
37449         but with <config.h> override of getgroups disabled.
37450
37451 2008-10-24  Simon Josefsson  <simon@josefsson.org>
37452
37453         * doc/gnulib.texi (Header files): Add note about C++ problems.
37454         Explained by Bruno Haible <bruno@clisp.org>.
37455
37456 2008-10-23  Bruno Haible  <bruno@clisp.org>
37457
37458         Define a dummy SA_NODEFER macro on Interix.
37459         * lib/signal.in.h (SA_NODEFER): Define fallback.
37460         Reported by Aleksey Cheusov <cheusov@tut.by> via
37461         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
37462
37463 2008-10-23  Bruno Haible  <bruno@clisp.org>
37464
37465         * modules/freadahead (License): Change to LGPLv2+.
37466         Suggested by Simon Josefsson.
37467
37468 2008-10-23  Jim Meyering  <meyering@redhat.com>
37469
37470         random_r: new module
37471         * modules/random_r: New file.
37472         * m4/random_r.m4: New file.
37473         * lib/random_r.c: New file, from glibc.
37474         * modules/random_r-tests: New file.
37475         * tests/test-random_r.c: New file.
37476         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
37477          Declare.
37478         (RAND_MAX): Define.
37479         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
37480         * modules/stdlib: Substitute them, too.
37481         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
37482         * doc/glibc-functions/initstate_r.texi: Mention the new module.
37483         * doc/glibc-functions/random_r.texi: Likewise.
37484         * doc/glibc-functions/setstate_r.texi: Likewise.
37485         * doc/glibc-functions/srandom_r.texi: Likewise.
37486         * config/srclist.txt: Mention it.
37487
37488 2008-10-23  David Lutterkort  <lutter@redhat.com>
37489
37490         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
37491         link requirement
37492
37493 2008-10-23  Jim Meyering  <meyering@redhat.com>
37494
37495         selinux-h: mark parameters of stub functions as intentionally unused
37496         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
37497         * lib/se-context.in.h: Likewise.
37498
37499 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37500
37501         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
37502
37503 2008-10-22  Simon Josefsson  <simon@josefsson.org>
37504
37505         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
37506
37507 2008-10-22  Eric Blake  <ebb9@byu.net>
37508
37509         glthread/thread: avoid compiler warning
37510         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
37511         Add unreachable abort to silence compiler.
37512
37513 2008-10-22  Eric Blake  <ebb9@byu.net>
37514
37515         netdb: also supply struct addrinfo for cygwin 1.5.x
37516         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
37517         older cygwin.
37518         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
37519         cygwin.
37520         * doc/posix-headers/netdb.texi (netdb.h): Document this.
37521
37522 2008-10-22  Bruno Haible  <bruno@clisp.org>
37523
37524         * users.txt: Update entry about pspp.
37525
37526 2008-10-21  Bruno Haible  <bruno@clisp.org>
37527
37528         Simplification.
37529         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
37530         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
37531
37532         Simplification.
37533         * lib/ioctl.c (ioctl): Don't undefine.
37534         * lib/socket.c (socket): Don't undefine.
37535
37536         Remove unused module indicator macros.
37537         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
37538         GNULIB_$1 as a C macro.
37539
37540         * doc/posix-functions/close.texi: Undo last change.
37541         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
37542         Windows platforms.
37543
37544 2008-10-21  Bruno Haible  <bruno@clisp.org>
37545
37546         Add gethostname() declaration to <unistd.h>.
37547         * lib/unistd.in.h (gethostname): New declaration.
37548         * lib/gethostname.c: Include <unistd.h>.
37549         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
37550         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
37551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
37552         and HAVE_GETHOSTNAME.
37553         * modules/gethostname (Depends-on): Add unistd.
37554         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37555         (Include): Specify <unistd.h>.
37556         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
37557         HAVE_GETHOSTNAME.
37558         * tests/test-gethostname.c: Include <unistd.h> first.
37559
37560 2008-10-21  Bruno Haible  <bruno@clisp.org>
37561
37562         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
37563         * modules/select-tests (Depends-on): Likewise.
37564         Reported by Simon Josefsson.
37565
37566 2008-10-21  Simon Josefsson  <simon@josefsson.org>
37567
37568         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
37569         * lib/accept.c: New file, based on winsock.c.
37570         * lib/bind.c: New file, based on winsock.c.
37571         * lib/connect.c: New file, based on winsock.c.
37572         * lib/getpeername.c: New file, based on winsock.c.
37573         * lib/getsockname.c: New file, based on winsock.c.
37574         * lib/getsockopt.c: New file, based on winsock.c.
37575         * lib/ioctl.c: New file, based on winsock.c.
37576         * lib/listen.c: New file, based on winsock.c.
37577         * lib/recv.c: New file, based on winsock.c.
37578         * lib/recvfrom.c: New file, based on winsock.c.
37579         * lib/send.c: New file, based on winsock.c.
37580         * lib/sendto.c: New file, based on winsock.c.
37581         * lib/setsockopt.c: New file, based on winsock.c.
37582         * lib/shutdown.c: New file, based on winsock.c.
37583         * lib/socket.c: New file, based on winsock.c.
37584         * lib/w32sock.h: New file, based on winsock.c.
37585         * lib/winsock.c: Remove file.
37586         * modules/accept: Likewise.
37587         * modules/bind: Likewise.
37588         * modules/connect: Likewise.
37589         * modules/getpeername: Likewise.
37590         * modules/getsockname: Likewise.
37591         * modules/getsockopt: Likewise.
37592         * modules/ioctl: Likewise.
37593         * modules/listen: Likewise.
37594         * modules/recv: Likewise.
37595         * modules/recvfrom: Likewise.
37596         * modules/send: Likewise.
37597         * modules/sendto: Likewise.
37598         * modules/setsockopt: Likewise.
37599         * modules/shutdown: Likewise.
37600         * modules/socket: Use socket.c instead of winsock.c.
37601         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
37602         * doc/posix-functions/accept.texi: Doc fix.
37603         * doc/posix-functions/bind.texi: Doc fix.
37604         * doc/posix-functions/close.texi: Doc fix.
37605         * doc/posix-functions/connect.texi: Doc fix.
37606         * doc/posix-functions/getpeername.texi: Doc fix.
37607         * doc/posix-functions/getsockname.texi: Doc fix.
37608         * doc/posix-functions/getsockopt.texi: Doc fix.
37609         * doc/posix-functions/ioctl.texi: Doc fix.
37610         * doc/posix-functions/listen.texi: Doc fix.
37611         * doc/posix-functions/recv.texi: Doc fix.
37612         * doc/posix-functions/recvfrom.texi: Doc fix.
37613         * doc/posix-functions/send.texi: Doc fix.
37614         * doc/posix-functions/sendto.texi: Doc fix.
37615         * doc/posix-functions/setsockopt.texi: Doc fix.
37616         * doc/posix-functions/shutdown.texi: Doc fix.
37617         * doc/posix-functions/socket.texi: Doc fix.
37618
37619 2008-10-20  Bruno Haible  <bruno@clisp.org>
37620
37621         Take into account the role of SIGABRT_COMPAT on Windows 2008.
37622         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
37623         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
37624         as an alias for SIGABRT.
37625         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
37626         (sigaction): Map it to SIGABRT.
37627         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
37628
37629 2008-10-20  Bruno Haible  <bruno@clisp.org>
37630
37631         * lib/fts.c: Don't include lstat.h.
37632         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
37633
37634         Move the lstat() declaration to <sys/stat.h>.
37635         * lib/lstat.h: Remove file.
37636         * lib/sys_stat.in.h: Add special invocation convention.
37637         (lstat): New declaration.
37638         * lib/lstat.c (orig_lstat): New function.
37639         (rpl_lstat): Use orig_lstat instead of lstat.
37640         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
37641         AC_C_INLINE. Set REPLACE_LSTAT.
37642         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
37643         and REPLACE_LSTAT.
37644         * modules/lstat (Files): Remove lib/lstat.h.
37645         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37646         (Include): Specify <sys/stat.h> instead of lstat.h.
37647         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
37648         REPLACE_LSTAT.
37649         * NEWS: Mention the change.
37650
37651 2008-10-20  Bruno Haible  <bruno@clisp.org>
37652
37653         * modules/posix_spawn-tests: New file.
37654         * tests/test-posix_spawn3.c: New file.
37655
37656 2008-10-20  Bruno Haible  <bruno@clisp.org>
37657
37658         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
37659         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37660         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
37661         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
37662         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
37663
37664 2008-10-20  Bruno Haible  <bruno@clisp.org>
37665
37666         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
37667         of posix_spawn on AIX 5.3.
37668
37669 2008-10-20  Bruno Haible  <bruno@clisp.org>
37670
37671         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
37672
37673 2008-10-20  Bruno Haible  <bruno@clisp.org>
37674
37675         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
37676         of AC_LANG_PROGRAM.
37677
37678 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37679
37680         * lib/netdb.in.h: Don't define GNU specific constants until they
37681         are supported or needed.  Reported by Bruno Haible
37682         <bruno@clisp.org>.
37683
37684 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37685
37686         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
37687
37688 2008-10-20  Simon Josefsson  <simon@josefsson.org>
37689
37690         * lib/getaddrinfo.h: Remove file.
37691         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
37692         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
37693         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
37694         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
37695         * modules/netdb: Substitute GNULIB_GETADDRINFO.
37696         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
37697         * tests/test-getaddrinfo.c: Likewise.
37698         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
37699         * NEWS: Mention change.
37700
37701 2008-10-19  Bruno Haible  <bruno@clisp.org>
37702
37703         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
37704
37705 2008-10-19  Bruno Haible  <bruno@clisp.org>
37706
37707         * lib/wait-process.c: Include simply <sys/wait.h>.
37708         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
37709         WIFSTOPPED): Remove fallback definitions.
37710         * modules/wait-process (Depends-on): Add sys_wait.
37711
37712         New module 'sys_wait'.
37713         * modules/sys_wait: New file.
37714         * lib/sys_wait.in.h: New file, partially copied from
37715         lib/wait-process.c.
37716         * m4/sys_wait_h.m4: New file.
37717         * doc/posix-headers/sys_wait.texi: Mention the new module.
37718
37719 2008-10-19  Bruno Haible  <bruno@clisp.org>
37720
37721         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
37722
37723 2008-10-19  Bruno Haible  <bruno@clisp.org>
37724
37725         Assume that waitpid() fills an 'int' status, not a 'union wait'.
37726         * lib/wait-process.c (WAIT_T): Remove type.
37727         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
37728         (wait_subprocess): Update.
37729
37730 2008-10-19  Bruno Haible  <bruno@clisp.org>
37731
37732         New module 'atoll'.
37733         * modules/atoll: New file.
37734         * lib/stdlib.in.h (atoll): New declaration.
37735         * lib/atoll.c: New file, from glibc with modifications.
37736         * m4/atoll.m4: New file.
37737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
37738         HAVE_ATOLL.
37739         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
37740         * doc/posix-functions/atoll.texi: Mention the new module.
37741
37742 2008-10-19  Bruno Haible  <bruno@clisp.org>
37743
37744         Add strtoull() declaration to <stdlib.h>.
37745         * lib/stdlib.in.h (strtoull): New declaration.
37746         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37747         Set HAVE_STRTOULL.
37748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
37749         HAVE_STRTOULL.
37750         * modules/strtoull (Depends-on): Add stdlib.
37751         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37752         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
37753         HAVE_STRTOULL.
37754
37755 2008-10-19  Bruno Haible  <bruno@clisp.org>
37756
37757         Add strtoll() declaration to <stdlib.h>.
37758         * lib/stdlib.in.h (strtoll): New declaration.
37759         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
37760         Set HAVE_STRTOLL.
37761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
37762         HAVE_STRTOLL.
37763         * modules/strtoll (Depends-on): Add stdlib.
37764         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37765         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
37766
37767 2008-10-19  Bruno Haible  <bruno@clisp.org>
37768
37769         * modules/bcopy (Depends-on): Add strings.
37770         (Include): Specify <strings.h>.
37771
37772 2008-10-19  Bruno Haible  <bruno@clisp.org>
37773
37774         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
37775
37776 2008-10-19  Bruno Haible  <bruno@clisp.org>
37777
37778         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
37779         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
37780         mingw.
37781
37782 2008-10-19  Bruno Haible  <bruno@clisp.org>
37783
37784         * lib/atanl.c: Don't include isnanl.h.
37785         * lib/cosl.c: Likewise.
37786         * lib/ldexpl.c: Likewise.
37787         * lib/logl.c: Likewise.
37788         * lib/sinl.c: Likewise.
37789         * lib/sqrtl.c: Likewise.
37790         * lib/tanl.c: Likewise.
37791
37792         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
37793         * lib/isnanf.h: Remove file.
37794         * lib/isnand.h: Remove file.
37795         * lib/isnanl.h: Remove file.
37796         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
37797         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
37798         macros.
37799         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
37800         HAVE_ISNANF, don't define it as a C macro.
37801         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
37802         HAVE_ISNAND, don't define it as a C macro.
37803         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
37804         HAVE_ISNANL, don't define it as a C macro.
37805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
37806         HAVE_ISNAN[FDL].
37807         * modules/isnanf (Files): Remove lib/isnanf.h.
37808         (Depends-on): Add math.
37809         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37810         (Include): Specify <math.h> instead of isnanf.h.
37811         * modules/isnand (Files): Remove lib/isnand.h.
37812         (Depends-on): Add math.
37813         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37814         (Include): Specify <math.h> instead of isnand.h.
37815         * modules/isnanl (Files): Remove lib/isnanl.h.
37816         (Depends-on): Add math.
37817         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
37818         (Include): Specify <math.h> instead of isnanl.h.
37819         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
37820         HAVE_ISNAN[FDL].
37821         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
37822         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
37823         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
37824         * NEWS: Mention the change.
37825
37826 2008-10-18  Bruno Haible  <bruno@clisp.org>
37827
37828         Add getusershell(), setusershell(), endusershell() declarations to
37829         <unistd.h>.
37830         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
37831         declarations.
37832         * lib/getusershell.c: Include unistd.h.
37833         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
37834         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37835         HAVE_GETUSERSHELL.
37836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
37837         and HAVE_GETUSERSHELL.
37838         * modules/getusershell (Depends-on): Add unistd, extensions.
37839         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37840         (Include): Specify <unistd.h>.
37841         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
37842         HAVE_GETUSERSHELL.
37843
37844 2008-10-18  Bruno Haible  <bruno@clisp.org>
37845
37846         Add a getloadavg() declaration to <stdlib.h>.
37847         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
37848         getloadavg declaration.
37849         (getloadavg): New declaration.
37850         * lib/getloadavg.c: Include <stdlib.h> first.
37851         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
37852         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
37853         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
37854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
37855         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37856         * modules/getloadavg (Depends-on): Add stdlib, extensions.
37857         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37858         (Include): Specify <stdlib.h>.
37859         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
37860         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
37861
37862 2008-10-18  Bruno Haible  <bruno@clisp.org>
37863
37864         * lib/dirchownmod.c: Don't include lchmod.h.
37865
37866         Move the lchmod() declaration to <sys/stat.h>.
37867         * lib/lchmod.h: Remove file.
37868         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
37869         (lchmod): New declaration, moved here from lib/lchown.h.
37870         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
37871         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
37872         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
37873         and HAVE_LCHMOD.
37874         * modules/lchmod (Files): Remove lib/lchmod.h.
37875         (Depends-on): Add sys_stat, extensions.
37876         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
37877         (Include): Specify <sys/stat.h> instead of lchmod.h.
37878         * modules/sys_stat (Depends-on): Add link-warning.
37879         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
37880         definition of GL_LINK_WARNING.
37881         * NEWS: Mention the change.
37882
37883 2008-10-18  Bruno Haible  <bruno@clisp.org>
37884
37885         * lib/fchdir.c: Don't include dirfd.h.
37886         * lib/fts.c: Likewise.
37887         * lib/getcwd.c: Likewise.
37888         * lib/glob.c: Likewise.
37889
37890         Move the dirfd() declaration to <dirent.h>.
37891         * lib/dirfd.h: Remove file.
37892         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
37893         (dirfd): New declaration.
37894         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
37895         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
37896         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
37897         HAVE_DECL_DIRFD.
37898         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
37899         HAVE_DECL_DIRFD.
37900         * modules/dirfd (Files): Remove lib/dirfd.h.
37901         (Depends-on): Add dirent, extensions.
37902         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
37903         (Include): Specify <dirent.h> instead of dirfd.h.
37904         * modules/dirent (Depends-on): Add link-warning.
37905         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
37906         definition of GL_LINK_WARNING.
37907         * NEWS: Mention the change.
37908
37909 2008-10-18  Bruno Haible  <bruno@clisp.org>
37910
37911         Move the euidaccess() declaration to <unistd.h>.
37912         * lib/euidaccess.h: Remove file.
37913         * lib/unistd.in.h (euidaccess): New declaration.
37914         * lib/euidaccess.c: Don't include euidaccess.h.
37915         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
37916         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
37917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
37918         and HAVE_EUIDACCESS.
37919         * modules/euidaccess (Files): Remove lib/euidaccess.h.
37920         (Depends-on): Add unistd.
37921         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37922         (Include): Specify <unistd.h> instead of euidaccess.h.
37923         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
37924         HAVE_EUIDACCESS.
37925         * NEWS: Mention the change.
37926
37927 2008-10-18  Bruno Haible  <bruno@clisp.org>
37928
37929         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
37930
37931         Move the getdomainname() declaration to <unistd.h>.
37932         * lib/getdomainname.h: Remove file.
37933         * lib/unistd.in.h (getdomainname): New declaration.
37934         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
37935         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
37936         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
37937         HAVE_GETDOMAINNAME.
37938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37939         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
37940         * modules/getdomainname (Files): Remove lib/getdomainname.h.
37941         (Depends-on): Add unistd, extensions.
37942         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37943         (Includes): Specify <unistd.h> instead of getdomainname.h.
37944         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
37945         HAVE_GETDOMAINNAME.
37946         * NEWS: Mention the change.
37947
37948 2008-10-18  Bruno Haible  <bruno@clisp.org>
37949
37950         * modules/dirent: New file.
37951         * m4/dirent_h.m4: New file.
37952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
37953         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
37954         * modules/fchdir (Files): Remove lib/dirent.in.h.
37955         (Depends-on): Add dirent.
37956         (Makefile.am): Move rules to modules/dirent.
37957         * doc/posix-headers/dirent.texi: Mention the new module.
37958
37959 2008-10-18  Bruno Haible  <bruno@clisp.org>
37960
37961         Avoid -Wunused-parameter warnings in public gnulib header files.
37962         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
37963         macro.
37964         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
37965
37966 2008-10-18  Bruno Haible  <bruno@clisp.org>
37967
37968         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
37969         * doc/glibc-functions/error.texi: Mention the module 'error'.
37970         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
37971         * doc/glibc-functions/getdomainname.texi: Mention the module
37972         'getdomainname'.
37973         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
37974         * doc/glibc-functions/getpagesize.texi: Mention the module
37975         'getpagesize'.
37976         * doc/glibc-functions/getusershell.texi: Mention the module
37977         'getusershell'.
37978         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
37979         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
37980         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
37981         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
37982         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
37983         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
37984         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
37985         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
37986         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
37987         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
37988         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
37989         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
37990         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
37991         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
37992
37993 2008-10-17  Bruno Haible  <bruno@clisp.org>
37994
37995         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
37996         HP-UX and IRIX, use -0.0L.
37997         * tests/test-ceill.c (minus_zero): Likewise.
37998         * tests/test-floorl.c (minus_zero): Likewise.
37999         * tests/test-frexpl.c (minus_zero): Likewise.
38000         * tests/test-isnan.c (minus_zerol): Likewise.
38001         * tests/test-isnanl.h (minus_zero): Likewise.
38002         * tests/test-ldexpl.c (minus_zero): Likewise.
38003         * tests/test-roundl.c (minus_zero): Likewise.
38004         * tests/test-signbit.c (minus_zerol): Likewise.
38005         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38006         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38007         * tests/test-truncl.c (minus_zero): Likewise.
38008         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38009         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38010         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
38011         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38012
38013 2008-10-17  Bruno Haible  <bruno@clisp.org>
38014
38015         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
38016         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
38017         that it gets activated only for gcc >= 3.0.
38018         * lib/dirent.in.h: Likewise.
38019         * lib/errno.in.h: Likewise.
38020         * lib/fcntl.in.h: Likewise.
38021         * lib/float.in.h: Likewise.
38022         * lib/iconv.in.h: Likewise.
38023         * lib/inttypes.in.h: Likewise.
38024         * lib/locale.in.h: Likewise.
38025         * lib/math.in.h: Likewise.
38026         * lib/netdb.in.h: Likewise.
38027         * lib/netinet_in.in.h: Likewise.
38028         * lib/search.in.h: Likewise.
38029         * lib/signal.in.h: Likewise.
38030         * lib/spawn.in.h: Likewise.
38031         * lib/stdarg.in.h: Likewise.
38032         * lib/stdint.in.h: Likewise.
38033         * lib/stdio.in.h: Likewise.
38034         * lib/stdlib.in.h: Likewise.
38035         * lib/string.in.h: Likewise.
38036         * lib/strings.in.h: Likewise.
38037         * lib/sys_file.in.h: Likewise.
38038         * lib/sys_ioctl.in.h: Likewise.
38039         * lib/sys_select.in.h: Likewise.
38040         * lib/sys_socket.in.h: Likewise.
38041         * lib/sys_stat.in.h: Likewise.
38042         * lib/sys_time.in.h: Likewise.
38043         * lib/sysexits.in.h: Likewise.
38044         * lib/time.in.h: Likewise.
38045         * lib/unistd.in.h: Likewise.
38046         * lib/wchar.in.h: Likewise.
38047         * lib/wctype.in.h: Likewise.
38048         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38049
38050 2008-10-17  Jim Meyering  <meyering@redhat.com>
38051
38052         ignore-value: don't depend on inline module
38053         * modules/ignore-value (Depends-on): Remove 'inline'.
38054         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
38055         Suggestion from Bruno Haible.
38056
38057 2008-10-17  Bruno Haible  <bruno@clisp.org>
38058
38059         New implementation of condition variables for Win32.
38060         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
38061         (gl_linked_waitqueue_t): New type.
38062         (gl_cond_t): Use it.
38063         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
38064         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
38065         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
38066         (glthread_cond_init_func, glthread_cond_wait_func,
38067         glthread_cond_timedwait_func, glthread_cond_signal_func,
38068         glthread_cond_broadcast_func, glthread_cond_destroy_func):
38069         Reimplemented on the basis of gl_linked_waitqueue_t.
38070         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
38071         gl_waitqueue_t.
38072         (gl_rwlock_t): Update.
38073         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
38074
38075 2008-10-17  Simon Josefsson  <simon@josefsson.org>
38076
38077         * modules/recvfrom (Depends-on): Add dependency on getpeername.
38078         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38079
38080 2008-10-17  Jim Meyering  <meyering@redhat.com>
38081
38082         ignore-value: new module
38083         * modules/ignore-value: New file.
38084         * lib/ignore-value.h: New file.
38085         * MODULES.html.sh (Compiler warning management): New section,
38086         just for this module.  More to come.
38087
38088 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38089
38090         open-safer.c: avoid 'signed and unsigned in conditional...' warning
38091         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
38092         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
38093
38094 2008-10-16  Jim Meyering  <meyering@redhat.com>
38095
38096         openat-die.c: avoid 'no previous prototype' warning
38097         * lib/openat-die.c: Include "openat.h".
38098         Reported by Reuben Thomas <rrt@sc3d.org>.
38099
38100 2008-10-16  Simon Josefsson  <simon@josefsson.org>
38101
38102         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
38103         * lib/netdb.in.h: Fix typo.
38104         Reported by Bruno Haible  <bruno@clisp.org>
38105
38106         * lib/netdb.in.h: Include sys/socket.h for platforms without
38107         netdb.h, to get structures like hostent on MinGW.
38108         * modules/netdb (Depends-on): Add sys_socket.
38109
38110 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38111
38112         * modules/netdb, modules/netdb-tests: New file.
38113         * m4/netdb_h.m4: New file.
38114         * lib/netdb.in.h: Add, currently just an empty file pending
38115         definitions.
38116         * tests/test-netdb.c: New file.
38117         * doc/posix-headers/netdb.texi: Mention that we replace it if
38118         needed.
38119         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38120         netdb.
38121
38122 2008-10-15  Simon Josefsson  <simon@josefsson.org>
38123
38124         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
38125         with code.
38126
38127 2008-10-13  Bruno Haible  <bruno@clisp.org>
38128
38129         * lib/glthread/cond.c (glthread_cond_wait_func,
38130         glthread_cond_timedwait_func): Add a comment.
38131
38132 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38133
38134         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
38135         * tests/test-select.c: Likewise,
38136
38137 2008-10-13  Bruno Haible  <bruno@clisp.org>
38138
38139         * lib/glthread/cond.c (glthread_cond_wait_func,
38140         glthread_cond_timedwait_func): Fix variable name.
38141         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38142
38143 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
38144
38145         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
38146         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
38147         struct sockaddr.sa_len.
38148         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
38149
38150 2008-10-13  Simon Josefsson  <simon@josefsson.org>
38151
38152         * build-aux/pmccabe2html: Add css and css_url parameters.
38153
38154 2008-10-12  Bruno Haible  <bruno@clisp.org>
38155
38156         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
38157         calling aclx_get.
38158         Reported by Rainer Tammer <tammer@tammer.net>.
38159
38160 2008-10-12  Bruno Haible  <bruno@clisp.org>
38161
38162         Use msvcrt aware primitives for creation/termination of Win32 threads.
38163         * lib/glthread/thread.c: Include <process.h>.
38164         (glthread_create_func): Use _beginthreadex instead of CreateThread.
38165         (wrapper_func): Update signature.
38166         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
38167
38168 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
38169             Bruno Haible  <bruno@clisp.org>
38170
38171         Provide a Win32 implementation of the 'cond' module.
38172         * lib/glthread/cond.h [USE_WIN32]: New implementation.
38173         * lib/glthread/cond.c (glthread_cond_init_func,
38174         glthread_cond_wait_func, glthread_cond_timedwait_func,
38175         glthread_cond_signal_func, glthread_cond_broadcast_func,
38176         glthread_cond_destroy_func) [USE_WIN32]: New functions.
38177         * modules/cond (Dependencies): Add gettimeofday.
38178
38179 2008-10-11  Bruno Haible  <bruno@clisp.org>
38180
38181         Make sleep work on older versions of mingw.
38182         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
38183         only whether it exists.
38184         * doc/posix-functions/sleep.texi: Mention the problem with older
38185         versions of mingw.
38186
38187 2008-10-11  Bruno Haible  <bruno@clisp.org>
38188
38189         New module 'shutdown'.
38190         * modules/shutdown: New file.
38191         * lib/sys_socket.in.h (shutdown): New declaration.
38192         * lib/winsock.c (shutdown): New function.
38193         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38194         GNULIB_SHUTDOWN.
38195         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
38196         * doc/posix-functions/shutdown.texi: Document the new module.
38197
38198 2008-10-11  Jim Meyering  <meyering@redhat.com>
38199
38200         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
38201
38202 2008-10-11  Bruno Haible  <bruno@clisp.org>
38203
38204         New module 'fclose'.
38205         * modules/fclose: New file.
38206         * lib/stdio.in.h (fclose): New declaration.
38207         * lib/fclose.c: New file.
38208         * m4/fclose.m4: New file.
38209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
38210         REPLACE_FCLOSE.
38211         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
38212         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
38213         REPLACE_FCLOSE.
38214         * modules/close (Depends-on): fclose.
38215         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
38216
38217 2008-10-11  Bruno Haible  <bruno@clisp.org>
38218
38219         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
38220         set errno and don't call _close.
38221
38222 2008-10-10  Bruno Haible  <bruno@clisp.org>
38223
38224         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
38225         ACL, not afterwards. Fixes test failure on Cygwin.
38226
38227 2008-10-09  Ben Pfaff  <blp@gnu.org>
38228
38229         * build-aux/announce-gen: Fix gnulib version related part of usage
38230         message.  Die with a useful error message if no tarballs are
38231         found.
38232
38233 2008-10-10  Jim Meyering  <meyering@redhat.com>
38234
38235         bootstrap: use git's --depth=N option only if it's supported
38236         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
38237         recognize the --depth option.  Reported by Pádraig Brady.
38238
38239 2008-10-09  Bruno Haible  <bruno@clisp.org>
38240
38241         New module 'ioctl'.
38242         * modules/ioctl: New file.
38243         * lib/sys_socket.in.h (ioctl): Remove declaration.
38244         * lib/winsock.c: Include <sys/ioctl.h>.
38245         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
38246         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
38247         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
38248         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
38249         * doc/posix-functions/ioctl.texi: Mention the new module.
38250
38251 2008-10-09  Bruno Haible  <bruno@clisp.org>
38252
38253         New module 'sys_ioctl'.
38254         * lib/sys_ioctl.in.h: New file.
38255         * m4/sys_ioctl_h.m4: New file.
38256         * modules/sys_ioctl: New file.
38257         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
38258
38259 2008-10-09  Bruno Haible  <bruno@clisp.org>
38260
38261         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
38262         * lib/winsock.c: Include <stdarg.h>.
38263         (rpl_ioctl): Change to second argument 'int' and then varargs.
38264
38265 2008-10-09  Bruno Haible  <bruno@clisp.org>
38266
38267         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
38268         when the sys_socket module is present and the system has <winsock2.h>.
38269
38270 2008-10-09  Bruno Haible  <bruno@clisp.org>
38271
38272         * doc/posix-functions/close.texi: Mention module 'close' instead of
38273         module 'sys_socket'.
38274
38275 2008-10-09  Bruno Haible  <bruno@clisp.org>
38276
38277         * doc/glibc-headers/sys_ioctl.texi: New file.
38278         * doc/gnulib.texi: Include it.
38279
38280 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38281             Bruno Haible  <bruno@clisp.org>
38282
38283         Combine the two replacements of 'close'.
38284         * lib/sys_socket.in.h (close): Define to a reminder to include
38285         <unistd.h>.
38286         (_gl_close_fd_maybe_socket): New declaration.
38287         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
38288         * lib/winsock.c (close): Remove undefinition.
38289         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
38290         needed for the gnulib module 'close'.
38291         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
38292         define to an error symbol or to a warning, if suitable.
38293         * lib/close.c: Include <sys/socket.h>.
38294         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
38295         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
38296         UNISTD_H_HAVE_WINSOCK2_H.
38297         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
38298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38299         UNISTD_H_HAVE_WINSOCK2_H.
38300         * modules/sys_socket (Files): Add m4/unistd_h.m4.
38301         (configure.ac): Set a module indicator.
38302         (Makefile.am): Substitute GNULIB_CLOSE.
38303         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
38304         * modules/poll-tests (Depends-on): Add close.
38305         * modules/select-tests (Depends-on): Likewise.
38306
38307 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38308             Bruno Haible  <bruno@clisp.org>
38309
38310         New module 'close'.
38311         * modules/close: New file.
38312         * lib/unistd.in.h (close): Move declaration out of the
38313         FCHDIR_REPLACEMENT scope.
38314         (_gl_unregister_fd): New declaration.
38315         * lib/close.c: New file.
38316         * lib/fchdir.c (rpl_close): Remove function.
38317         * m4/close.m4: New file.
38318         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38319         close.
38320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
38321         REPLACE_CLOSE.
38322         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
38323         REPLACE_CLOSE.
38324         * modules/fchdir (Depends-on): Add close.
38325
38326 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38327             Bruno Haible  <bruno@clisp.org>
38328
38329         * lib/fcntl.in.h (open): Simplify conditionals.
38330         (_gl_register_fd): New declaration.
38331         * lib/fchdir.c (rpl_open): Remove function.
38332         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
38333         also.
38334         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
38335         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
38336         open.
38337
38338 2008-10-09  Jim Meyering  <meyering@redhat.com>
38339
38340         GNUmakefile: use the more name-space-friendly "_version"
38341         * top/GNUmakefile (_dummy): Update.
38342         (_version): Rename from "version".
38343
38344 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38345             Bruno Haible  <bruno@clisp.org>
38346
38347         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
38348         rpl_close.
38349         (_gl_register_fd): New function, extracted from rpl_open.
38350         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
38351         (rpl_open, rpl_opendir): Use _gl_register_fd.
38352
38353 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
38354
38355         Fix organization of 'open' replacement.
38356         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
38357         (gl_FUNC_OPEN): Use it.
38358         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
38359
38360 2008-10-08  Bruno Haible  <bruno@clisp.org>
38361
38362         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
38363
38364 2008-10-08  Simon Josefsson  <simon@josefsson.org>
38365
38366         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
38367         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
38368         listen).
38369
38370 2008-10-08  Eric Blake  <ebb9@byu.net>
38371
38372         GNUmakefile: add 'make version' target
38373         * top/GNUmakefile (_curr-ver): Split version update rules...
38374         (version): ...into a target.
38375
38376 2008-10-07  Bruno Haible  <bruno@clisp.org>
38377
38378         Use a more portable replacement expression for -0.0L.
38379         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
38380         instead of -0.0L. Fix m4 quotation.
38381
38382         * tests/test-signbit.c: Include <float.h>.
38383         (minus_zero): New variable.
38384         (test_signbitl): Use minus_zero instead of -zero.
38385         * modules/signbit-tests (Depends-on): Add float.
38386
38387         * tests/test-ceill.c: Include <float.h>.
38388         (zero): Remove variable.
38389         (minus_zero): New variable.
38390         (main): Use minus_zero instead of -zero.
38391         * modules/ceill-tests (Depends-on): Add float.
38392
38393         * tests/test-floorl.c: Include <float.h>.
38394         (zero): Remove variable.
38395         (minus_zero): New variable.
38396         (main): Use minus_zero instead of -zero.
38397         * modules/floorl-tests (Depends-on): Add float.
38398
38399         * tests/test-roundl.c: Include <float.h>.
38400         (zero): Remove variable.
38401         (minus_zero): New variable.
38402         (main): Use minus_zero instead of -zero.
38403         * modules/roundl-tests (Depends-on): Add float.
38404
38405         * tests/test-truncl.c: Include <float.h>.
38406         (zero): Remove variable.
38407         (minus_zero): New variable.
38408         (main): Use minus_zero instead of -zero.
38409         * modules/truncl-tests (Depends-on): Add float.
38410
38411         * tests/test-frexpl.c (zero): Remove variable.
38412         (minus_zero): New variable.
38413         (main): Use minus_zero instead of -zero.
38414         * modules/frexpl-tests (Depends-on): Add float.
38415
38416         * tests/test-isnan.c (zerol): Remove variable.
38417         (minus_zerol): New variable.
38418         (test_long_double): Use minus_zerol instead of -zerol.
38419         * modules/isnan-tests (Depends-on): Add float.
38420
38421         * tests/test-isnanl.h (zero): Remove variable.
38422         (minus_zero): New variable.
38423         (main): Use minus_zero instead of -zero.
38424         * modules/isnanl-nolibm-tests (Depends-on): Add float.
38425         * modules/isnanl-tests (Depends-on): Add float.
38426
38427         * tests/test-ldexpl.c (zero): Remove variable.
38428         (minus_zero): New variable.
38429         (main): Use minus_zero instead of -zero.
38430         * modules/ldexpl-tests (Depends-on): Add float.
38431
38432         * tests/test-snprintf-posix.h (zerol): Remove variable.
38433         (minus_zerol): New variable.
38434         (test_function): Use minus_zerol instead of -zerol.
38435         * modules/snprintf-posix-tests (Depends-on): Add float.
38436         * modules/vsnprintf-posix-tests (Depends-on): Add float.
38437
38438         * tests/test-sprintf-posix.h (zerol): Remove variable.
38439         (minus_zerol): New variable.
38440         (test_function): Use minus_zerol instead of -zerol.
38441         * modules/sprintf-posix-tests (Depends-on): Add float.
38442         * modules/vsprintf-posix-tests (Depends-on): Add float.
38443
38444         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
38445         (minus_zerol): New variable.
38446         (test_function): Use minus_zerol instead of -zerol.
38447         * modules/vasnprintf-posix-tests (Depends-on): Add float.
38448
38449         * tests/test-vasprintf-posix.c (zerol): Remove variable.
38450         (minus_zerol): New variable.
38451         (test_function): Use minus_zerol instead of -zerol.
38452         * modules/vasprintf-posix-tests (Depends-on): Add float.
38453
38454 2008-10-07  Simon Josefsson  <simon@josefsson.org>
38455
38456         * MODULES.html.sh (Support for building documentation): Mention
38457         pmccabe2html.  Sort entries.
38458
38459         Add pmccabe2html module, from gnupdf.
38460         * build-aux/pmccabe.css: New file.
38461         * build-aux/pmccabe2html: New file.
38462         * m4/pmccabe2html.m4: New file.
38463         * modules/pmccabe2html: New file.
38464
38465 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
38466
38467         flock: new module
38468         * MODULES.html.sh: Add to list of modules.
38469         * lib/flock.c: flock implementation for Windows and Unix systems
38470         which have fcntl.
38471         * doc/glibc-functions/flock.texi: Update documentation.
38472         * lib/sys_file.in.h: <sys/file.h> header file.
38473         * m4/flock.m4: M4 macros.
38474         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
38475         * modules/flock: flock module.
38476         * modules/flock-tests: flock tests module.
38477         * modules/sys_file: sys/file.h module.
38478         * tests/test-flock.c: test suite for flock.
38479
38480 2008-10-06  Jim Meyering  <meyering@redhat.com>
38481
38482         bootstrap: check for LT_INIT more portably still ;-)
38483         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
38484         Spotted by Bruno Haible.
38485
38486 2008-10-06  Eric Blake  <ebb9@byu.net>
38487
38488         test-signbit: avoid tripping Irix cc bug on -0.0L
38489         * tests/test-signbit.c (minus_zerol): Delete, and replace with
38490         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
38491         entire testsuite consistent and avoids an Irix 6.2 bug.
38492
38493 2008-10-05  Bruno Haible  <bruno@clisp.org>
38494             Jim Meyering  <jim@meyering.net>
38495
38496         Add an option for ignoring EPIPE during close_stdout.
38497         * lib/closeout.h: Include <stdbool.h>.
38498         (close_stdout_set_ignore_EPIPE): New declaration.
38499         * lib/closeout.c: Include <stdbool.h>.
38500         (ignore_EPIPE): New variable.
38501         (close_stdout_set_ignore_EPIPE): New function.
38502         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
38503         * lib/close-stream.c (close_stream): Mention the possible EPIPE
38504         failure.
38505         * modules/closeout (Depends-on): Add stdbool.
38506
38507 2008-10-05  Bruno Haible  <bruno@clisp.org>
38508
38509         * modules/accept: New file.
38510         * modules/bind: New file.
38511         * modules/connect: New file.
38512         * modules/getpeername: New file.
38513         * modules/getsockname: New file.
38514         * modules/getsockopt: New file.
38515         * modules/listen: New file.
38516         * modules/recv: New file.
38517         * modules/recvfrom: New file.
38518         * modules/send: New file.
38519         * modules/sendto: New file.
38520         * modules/setsockopt: New file.
38521         * modules/socket: New file.
38522         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
38523         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
38524         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
38525         the particular module is requested. Add a link warning when the
38526         particular module is not requested.
38527         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
38528         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
38529         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
38530         the particular module is requested.
38531         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
38532         gl_SYS_SOCKET_H_DEFAULTS): New macros.
38533         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
38534         * modules/sys_socket (Depends-on): Add link-warning.
38535         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
38536         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
38537         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
38538         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
38539         GL_LINK_WARNING.
38540         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
38541         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
38542         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
38543         * doc/posix-functions/getpeername.texi: Mention the new module
38544         'getpeername'.
38545         * doc/posix-functions/getsockname.texi: Mention the new module
38546         'getsockname'.
38547         * doc/posix-functions/getsockopt.texi: Mention the new module
38548         'getsockopt'.
38549         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
38550         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
38551         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
38552         * doc/posix-functions/send.texi: Mention the new module 'send'.
38553         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
38554         * doc/posix-functions/setsockopt.texi: Mention the new module
38555         'setsockopt'.
38556         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
38557         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
38558         listen, connect, accept.
38559         * modules/select-tests (Depends-on): Likewise.
38560
38561 2008-10-05  Bruno Haible  <bruno@clisp.org>
38562
38563         * lib/winsock.c (strerror): Remove unused #undef.
38564         (rpl_close): Remove unused local variable.
38565
38566         * modules/sys_socket (Depends-on); Add errno.
38567
38568 2008-10-05  Bruno Haible  <bruno@clisp.org>
38569
38570         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
38571         (select): Add a link warning when the 'select' module is not used.
38572         * modules/sys_select (Depends-on): Add link-warning.
38573         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
38574         Suggested by Paolo Bonzini.
38575
38576 2008-10-05  Jim Meyering  <meyering@redhat.com>
38577
38578         bootstrap: check for LT_INIT more portably
38579         * build-aux/bootstrap: Avoid using grep -E, since it's not
38580         portable enough.  Suggestion from Bruno Haible.
38581
38582 2008-10-05  Bruno Haible  <bruno@clisp.org>
38583
38584         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
38585         as being fixed by gnulib.
38586
38587 2008-10-05  Bruno Haible  <bruno@clisp.org>
38588
38589         * modules/select-tests: New file, mostly copied from
38590         modules/sys_select-tests.
38591         * tests/test-select.c: New file, mostly copied from
38592         tests/test-sys_select.c.
38593         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
38594         * modules/sys_select-tests (Depends-on): Remove all dependencies.
38595         (Makefile.am): Remove test_sys_select_LDADD.
38596
38597         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
38598         to an undefined symbol, for an error message.
38599         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
38600         (gl_SYS_SELECT_H_DEFAULTS): New macro.
38601         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
38602         winsock-select.c here.
38603         * modules/sys_select (Files): Remove lib/winsock-select.c.
38604         (Depends-on): Remove alloca.
38605         (Makefile.am): Substitute GNULIB_SELECT.
38606         * modules/select: New file.
38607         * doc/posix-functions/select.texi: Update.
38608
38609 2008-10-05  Bruno Haible  <bruno@clisp.org>
38610
38611         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
38612         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
38613         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
38614         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
38615         getdtablesize.
38616         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38617         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38618
38619 2008-10-05  Bruno Haible  <bruno@clisp.org>
38620
38621         * modules/getdtablesize-tests: New file.
38622         * tests/test-getdtablesize.c: New file.
38623
38624         New module 'getdtablesize'.
38625         * lib/unistd.in.h (getdtablesize): New declaration.
38626         * lib/getdtablesize.c: New file.
38627         * m4/getdtablesize.m4: New file.
38628         * modules/getdtablesize: New file.
38629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38630         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
38631         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
38632         HAVE_GETDTABLESIZE.
38633         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
38634
38635 2008-10-05  Bruno Haible  <bruno@clisp.org>
38636
38637         * modules/sched (Makefile.am): Fix typo.
38638         Reported by Simon Josefsson.
38639
38640 2008-10-05  Jim Meyering  <meyering@redhat.com>
38641
38642         bootstrap: check for LT_INIT, too
38643         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
38644         are deprecated.  Suggestion from Ralf Wildenhues.
38645
38646 2008-10-05  Bruno Haible  <bruno@clisp.org>
38647
38648         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
38649         overriding them by ours.
38650         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
38651
38652 2008-10-05  Jim Meyering  <meyering@redhat.com>
38653
38654         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
38655         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
38656         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
38657
38658 2008-10-04  Bruno Haible  <bruno@clisp.org>
38659
38660         * modules/dup2 (License): Change to LGPLv2+.
38661         * modules/sleep (License): Likewise.
38662         * modules/perror (License): Likewise.
38663         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
38664         Blake.
38665         * modules/signal (License): Likewise.
38666         * modules/sigprocmask (License): Likewise.
38667         * modules/raise (License): Change to LGPLv2+, with approval by Jim
38668         Meyering.
38669
38670 2008-10-04  Bruno Haible  <bruno@clisp.org>
38671
38672         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
38673         Reported by Rainer Tammer <tammer@tammer.net>.
38674
38675 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
38676             Bruno Haible  <bruno@clisp.org>
38677
38678         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
38679         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
38680         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
38681
38682 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
38683
38684         filevercmp: new module
38685         * lib/filevercmp.h: New function filevercmp comparing version strings.
38686         * lib/filevercmp.c: Implementation of filevercmp function.
38687         * modules/filevercmp: Module metadata.
38688         * tests/test-filevercmp.c: Unit test for new module.
38689         * modules/filevercmp-tests: Unit test metadata.
38690         * MODULES.html.sh: Add filevercmp module.
38691
38692 2008-10-03  Bruno Haible  <bruno@clisp.org>
38693
38694         * lib/c-ctype.h: Add comment.
38695         Reported by Jim Meyering.
38696
38697 2008-10-02  Bruno Haible  <bruno@clisp.org>
38698
38699         * modules/posix_spawn-internal (Depends-on): Add 'open'.
38700
38701 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38702
38703         * build-aux/bootstrap: Allow renaming bootstrap, and change the
38704         name of bootstrap.conf accordingly.
38705
38706 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38707
38708         * build-aux/bootstrap: Install git-merge-changelog configuration
38709         items into .gitconfig if needed.
38710
38711 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
38712
38713         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
38714         git repository, and initialize/update it accordingly.
38715
38716 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
38717
38718         * modules/fsync-tests: New file.
38719         * tests/test-fsync.c: New file.
38720
38721         New module 'fsync'.
38722         * lib/fsync.c: New file.
38723         * m4/fsync.m4: New file.
38724         * modules/fsync: New file.
38725         * lib/unistd.in.h (fsync): New declaration.
38726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
38727         GNULIB_FSYNC and HAVE_FSYNC.
38728         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
38729         * MODULES.html.sh (posix_functions): Add fsync.
38730         * doc/posix-functions/fsync.texi: Mention the new module.
38731
38732 2008-10-02  Jim Meyering  <meyering@redhat.com>
38733
38734         fts.c: sync with similar code from coreutils' remove.c
38735         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
38736         Guard also with "#if defined __linux__", since for now at least,
38737         this code is Linux-kernel-specific.
38738
38739 2008-10-02  Jim Meyering  <meyering@redhat.com>
38740
38741         fts: bug fixes
38742         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
38743         Include <sys/vfs.h>, not <sys/statfs.h>.
38744
38745         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
38746         Include <sys/vfs.h>, not <sys/statfs.h>.
38747
38748 2008-10-01  Bruno Haible  <bruno@clisp.org>
38749
38750         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
38751         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
38752         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
38753         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
38754         * doc/posix-functions/posix_spawnp.texi: Likewise.
38755         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
38756         whether posix_spawn actually works.
38757         * m4/pipe.m4 (gl_PIPE): Likewise.
38758         * modules/execute (Files): Add m4/posix_spawn.m4.
38759         * modules/pipe (Files): Add m4/posix_spawn.m4.
38760         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
38761
38762 2008-10-01  Jim Meyering  <meyering@redhat.com>
38763
38764         remove trailing spaces
38765         * NEWS: Likewise.
38766         * lib/poll.c (poll): Likewise.
38767         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
38768         * lib/winsock.c (rpl_close): Likewise.
38769         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
38770         * modules/yield: Likewise.
38771         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
38772         * tests/test-sys_select.c (connect_to_socket): Likewise.
38773
38774         fts.c: adjust a new interface to be more generally useful
38775         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
38776         (fts_build): Adjust caller.
38777
38778 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38779
38780         * modules/cond-tests: New file.
38781         * tests/test-cond.c: New file.
38782
38783 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38784             Bruno Haible  <bruno@clisp.org>
38785
38786         * modules/cond (Dependencies): Add errno, time.
38787         * lib/glthread/cond.h: Include <time.h>.
38788         (gl_cond_define, gl_cond_define_initialized): Use the same definition
38789         across platforms.
38790
38791 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38792             Bruno Haible  <bruno@clisp.org>
38793
38794         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
38795
38796 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38797             Bruno Haible  <bruno@clisp.org>
38798
38799         * modules/tls-tests (Depends-on): Add thread, yield.
38800         (configure.ac): Remove all checks.
38801         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
38802         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38803         gl_thread_self): Remove definitions. Include glthread/thread.h and
38804         glthread/yield.h instead.
38805         (test_tls): Pass an additional NULL argument to gl_thread_join.
38806
38807 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38808             Bruno Haible  <bruno@clisp.org>
38809
38810         * modules/lock-tests (Depends-on): Add thread, yield.
38811         (configure.ac): Remove all checks.
38812         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
38813         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
38814         gl_thread_self): Remove definitions. Include glthread/thread.h and
38815         glthread/yield.h instead.
38816         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
38817         additional NULL argument to gl_thread_join.
38818
38819 2008-09-30  Bruno Haible  <bruno@clisp.org>
38820
38821         Fix the Win32 implementation of the 'thread' module.
38822         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
38823         pointer type.
38824         (gl_thread_self): Invoke gl_thread_self_func.
38825         (gl_thread_self_func): New declaration.
38826         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
38827         (do_init_self_key, init_self_key): New functions.
38828         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
38829         Remove some fields.
38830         (running_threads, running_lock): Remove variables.
38831         (get_current_thread_handle): New function.
38832         (gl_thread_self_func, wrapper_func, glthread_create_func,
38833         glthread_join_func, gl_thread_exit_func): Largely rewritten and
38834         simplified.
38835
38836 2008-09-30  Bruno Haible  <bruno@clisp.org>
38837
38838         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
38839         files.
38840
38841 2008-09-30  Jim Meyering  <meyering@redhat.com>
38842
38843         fts.m4: correct the test for statfs.f_type
38844         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
38845         when checking for statfs.f_type.
38846
38847 2008-09-15  Simon Josefsson  <simon@josefsson.org>
38848
38849         tests: avoid some compiler warnings
38850         * tests/test-memchr.c (main): Pass NULL indirectly.
38851         * tests/test-getdate.c (main): Remove unused variable 'ret'.
38852
38853 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
38854
38855         getdate.y: disallow countable dayshifts like "4 yesterday ago"
38856         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
38857         exactly specified dayshifts.
38858         (dayshift): New rule.
38859         (rel): Add dayshift.
38860         (relative_time_table) [tomorrow, yesterday, today, now]:
38861         Use tDAY_SHIFT in place of tDAY_UNIT.
38862         * tests/test-getdate.c: Add tests for now-disallowed countable
38863         dayshifts, e.g., "4 yesterday ago".
38864
38865 2008-09-29  Bruno Haible  <bruno@clisp.org>
38866
38867         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
38868         * tests/test-posix_spawn1.in.sh: Renamed from
38869         tests/test-posix_spawn.in.sh.
38870         * tests/test-posix_spawn2.c: New file.
38871         * tests/test-posix_spawn2.in.sh: New file.
38872         * modules/posix_spawnp-tests (Files): Update.
38873         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
38874
38875 2008-09-29  Bruno Haible  <bruno@clisp.org>
38876
38877         Propagate effects of putenv/setenv/unsetenv to child processes.
38878         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
38879         * lib/pipe.c (create_pipe): Likewise.
38880
38881 2008-09-29  Bruno Haible  <bruno@clisp.org>
38882
38883         Enable use of shell scripts as executables in mingw.
38884         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
38885         run the program as a shell script.
38886         * lib/pipe.c (create_pipe): Likewise.
38887         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
38888         resulting array.
38889
38890 2008-09-29  Eric Blake  <ebb9@byu.net>
38891
38892         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
38893
38894 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
38895
38896         * doc/posix-functions/accept.texi: Update mingw problems.
38897         * doc/posix-functions/bind.texi: Update mingw problems.
38898         * doc/posix-functions/close.texi: Update mingw problems.
38899         * doc/posix-functions/connect.texi: Update mingw problems.
38900         * doc/posix-functions/getpeername.texi: Update mingw problems.
38901         * doc/posix-functions/getsockname.texi: Update mingw problems.
38902         * doc/posix-functions/getsockopt.texi: Update mingw problems.
38903         * doc/posix-functions/ioctl.texi: Update mingw problems.
38904         * doc/posix-functions/listen.texi: Update mingw problems.
38905         * doc/posix-functions/recv.texi: Update mingw problems.
38906         * doc/posix-functions/recvfrom.texi: Update mingw problems.
38907         * doc/posix-functions/select.texi: Update mingw problems.
38908         * doc/posix-functions/send.texi: Update mingw problems.
38909         * doc/posix-functions/sendto.texi: Update mingw problems.
38910         * doc/posix-functions/setsockopt.texi: Update mingw problems.
38911         * doc/posix-functions/socket.texi: Update mingw problems.
38912
38913 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
38914             Bruno Haible  <bruno@clisp.org>
38915
38916         * lib/sys_select.in.h: Include sys/time.h.
38917         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
38918         * modules/sys_select: Depend on sys_time.
38919         * tests/test-sys_select.c: Test that sys/select.h defines struct
38920         timeval fully.
38921
38922 2008-09-29  Bruno Haible  <bruno@clisp.org>
38923
38924         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
38925         * lib/sys_select.in.h: Likewise.
38926
38927 2008-09-29  Bruno Haible  <bruno@clisp.org>
38928
38929         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
38930
38931 2008-09-29  Bruno Haible  <bruno@clisp.org>
38932
38933         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
38934         Set LIBSOCKET instead of augmenting LIBS.
38935         * modules/sockets (Link): New section.
38936         * modules/sockets-tests (test_sockets_LDADD): New variable.
38937         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
38938         * modules/poll-tests (test_poll_LDADD): New variable.
38939         * NEWS: Document the change.
38940
38941 2008-09-29  Bruno Haible  <bruno@clisp.org>
38942
38943         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
38944         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
38945         ARPA_INET_H directly.
38946         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38947
38948 2008-09-28  Bruno Haible  <bruno@clisp.org>
38949
38950         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
38951         from gl_HEADER_SYS_SOCKET.
38952         (gl_HEADER_SYS_SOCKET): Invoke it.
38953         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38954
38955 2008-09-28  Bruno Haible  <bruno@clisp.org>
38956
38957         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
38958         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
38959         Needed on OSF/1 4.0.
38960
38961 2008-09-28  Bruno Haible  <bruno@clisp.org>
38962
38963         Override open more carefully.
38964         * lib/open.c (orig_open): New function.
38965         (rpl_open): Use orig_open instead of open.
38966         * lib/fcntl.in.h: Add special invocation convention.
38967         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
38968         (gl_FUNC_OPEN): Invoke it.
38969
38970         Override freopen more carefully.
38971         * lib/freopen.c (orig_freopen): New function.
38972         (rpl_freopen): Use orig_freopen instead of freopen.
38973         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
38974         (gl_FUNC_FREOPEN): Invoke it.
38975
38976         Override fopen more carefully.
38977         * lib/fopen.c (orig_fopen): New function.
38978         (rpl_fopen): Use orig_fopen instead of fopen.
38979         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
38980         (gl_FUNC_FOPEN): Invoke it.
38981         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
38982
38983 2008-09-28  Bruno Haible  <bruno@clisp.org>
38984
38985         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
38986         SIGPIPE.
38987
38988 2008-09-28  Bruno Haible  <bruno@clisp.org>
38989
38990         * tests/test-sigaction.c (handler, main): Disable the check whether
38991         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
38992         glibc systems with LinuxThreads.
38993
38994 2008-09-28  Bruno Haible  <bruno@clisp.org>
38995
38996         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
38997
38998         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
38999         with AIX xlc.
39000         * lib/fcntl.in.h (open): Likewise.
39001         Reported by Rainer Tammer <tammer@tammer.net>.
39002
39003 2008-09-28  Bruno Haible  <bruno@clisp.org>
39004
39005         * modules/posix_spawnp-tests: New file.
39006         * tests/test-posix_spawn.c: New file.
39007         * tests/test-posix_spawn.in.sh: New file.
39008
39009         New module 'posix_spawnp'.
39010         * modules/posix_spawnp: New file.
39011         * lib/spawnp.c: New file, from GNU libc with modifications.
39012         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
39013
39014         New module 'posix_spawn'.
39015         * modules/posix_spawn: New file.
39016         * lib/spawn.c: New file, from GNU libc with modifications.
39017         * doc/posix-functions/posix_spawn.texi: Mention the new module.
39018
39019         New module 'posix_spawnattr_destroy'.
39020         * modules/posix_spawnattr_destroy: New file.
39021         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
39022         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
39023         module.
39024
39025         New module 'posix_spawnattr_setsigmask'.
39026         * modules/posix_spawnattr_setsigmask: New file.
39027         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
39028         modifications.
39029         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
39030         new module.
39031
39032         New module 'posix_spawnattr_getsigmask'.
39033         * modules/posix_spawnattr_getsigmask: New file.
39034         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
39035         modifications.
39036         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
39037         new module.
39038
39039         New module 'posix_spawnattr_setsigdefault'.
39040         * modules/posix_spawnattr_setsigdefault: New file.
39041         * lib/spawnattr_setdefault.c: New file, from GNU libc with
39042         modifications.
39043         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
39044         new module.
39045
39046         New module 'posix_spawnattr_getsigdefault'.
39047         * modules/posix_spawnattr_getsigdefault: New file.
39048         * lib/spawnattr_getdefault.c: New file, from GNU libc with
39049         modifications.
39050         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
39051         new module.
39052
39053         New module 'posix_spawnattr_setschedpolicy'.
39054         * modules/posix_spawnattr_setschedpolicy: New file.
39055         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
39056         modifications.
39057         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
39058         new module.
39059
39060         New module 'posix_spawnattr_getschedpolicy'.
39061         * modules/posix_spawnattr_getschedpolicy: New file.
39062         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
39063         modifications.
39064         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
39065         new module.
39066
39067         New module 'posix_spawnattr_setschedparam'.
39068         * modules/posix_spawnattr_setschedparam: New file.
39069         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
39070         modifications.
39071         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
39072         new module.
39073
39074         New module 'posix_spawnattr_getschedparam'.
39075         * modules/posix_spawnattr_getschedparam: New file.
39076         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
39077         modifications.
39078         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
39079         new module.
39080
39081         New module 'posix_spawnattr_setpgroup'.
39082         * modules/posix_spawnattr_setpgroup: New file.
39083         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
39084         modifications.
39085         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
39086         module.
39087
39088         New module 'posix_spawnattr_getpgroup'.
39089         * modules/posix_spawnattr_getpgroup: New file.
39090         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
39091         modifications.
39092         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
39093         module.
39094
39095         New module 'posix_spawnattr_setflags'.
39096         * modules/posix_spawnattr_setflags: New file.
39097         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
39098         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
39099         module.
39100
39101         New module 'posix_spawnattr_getflags'.
39102         * modules/posix_spawnattr_getflags: New file.
39103         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
39104         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
39105         module.
39106
39107         New module 'posix_spawnattr_init'.
39108         * modules/posix_spawnattr_init: New file.
39109         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
39110         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
39111         module.
39112
39113         New module 'posix_spawn_file_actions_destroy'.
39114         * modules/posix_spawn_file_actions_destroy: New file.
39115         * lib/spawn_faction_destroy.c: New file, from GNU libc with
39116         modifications.
39117         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
39118         the new module.
39119
39120         New module 'posix_spawn_file_actions_addopen'.
39121         * modules/posix_spawn_file_actions_addopen: New file.
39122         * lib/spawn_faction_addopen.c: New file, from GNU libc with
39123         modifications.
39124         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
39125         the new module.
39126
39127         New module 'posix_spawn_file_actions_adddup2'.
39128         * modules/posix_spawn_file_actions_adddup2: New file.
39129         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
39130         modifications.
39131         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
39132         the new module.
39133
39134         New module 'posix_spawn_file_actions_addclose'.
39135         * modules/posix_spawn_file_actions_addclose: New file.
39136         * lib/spawn_faction_addclose.c: New file, from GNU libc with
39137         modifications.
39138         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
39139         the new module.
39140
39141         New module 'posix_spawn_file_actions_init'.
39142         * modules/posix_spawn_file_actions_init: New file.
39143         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
39144         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
39145         new module.
39146
39147         New module 'posix_spawn-internal'.
39148         * modules/posix_spawn-internal: New file.
39149         * lib/spawn_int.h: New file, from GNU libc with modifications.
39150         * lib/spawni.c: New file, from GNU libc with modifications.
39151         * m4/posix_spawn.m4: New file.
39152
39153         New module 'spawn'.
39154         * modules/spawn: New file.
39155         * lib/spawn.in.h: New file, from GNU libc with modifications.
39156         * m4/spawn_h.m4: New file.
39157         * doc/posix-headers/spawn.texi: Mention the new module.
39158
39159 2008-09-28  Bruno Haible  <bruno@clisp.org>
39160
39161         * modules/sched-tests: New file.
39162         * tests/test-sched.c: New file.
39163
39164         New module 'sched'.
39165         * modules/sched: New file.
39166         * lib/sched.in.h: New file.
39167         * m4/sched_h.m4: New file.
39168         * doc/posix-headers/sched.texi: Mention the new module.
39169
39170 2008-09-27  Eric Blake  <ebb9@byu.net>
39171
39172         Fix previous patch, and tweak references to $0.
39173         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
39174         (func_version, func_gnulib_dir): Don't call this program
39175         gnulib-tool.
39176         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
39177         with using $0 in function.
39178         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
39179         (func_fatal_error): Reuse the name the user invoked us with.
39180
39181 2008-09-27  Bruno Haible  <bruno@clisp.org>
39182
39183         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
39184         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
39185         (gl_ICONV_H): Not here.
39186         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
39187         instead of assigning ICONV_H directly.
39188
39189         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
39190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
39191         WCHAR_H directly.
39192
39193 2008-09-27  Bruno Haible  <bruno@clisp.org>
39194
39195         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
39196         * modules/arpa_inet (Depends-on): Add link-warning.
39197         (Makefile.am): Insert the definition of GL_LINK-WARNING.
39198         * modules/unistd (Makefile.am): Likewise.
39199
39200 2008-09-26  Bruno Haible  <bruno@clisp.org>
39201
39202         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
39203         variables.
39204         (func_version): Essentially copied from gnulib-tool.
39205         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
39206         func_readlink): Copied from gnulib-tool.
39207
39208 2008-09-26  Bruno Haible  <bruno@clisp.org>
39209
39210         * gnulib-tool (func_version): Change directory to $gnulib_dir before
39211         invoking git-version-gen.
39212
39213 2008-09-26  Bruno Haible  <bruno@clisp.org>
39214
39215         * posix-modules: Update to directory names changed on 2008-01-19.
39216         Remove commas in output before splitting into words. No more need to
39217         avoid 'ftruncate' since 2007-02-19.
39218
39219 2008-09-26  Bruno Haible  <bruno@clisp.org>
39220
39221         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
39222
39223 2008-09-26  Bruno Haible  <bruno@clisp.org>
39224
39225         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
39226         * modules/fwriteerror (Depends-on): Add errno.
39227
39228 2008-09-26  Bruno Haible  <bruno@clisp.org>
39229
39230         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
39231         * tests/test-vc-list-files-cvs.sh: Likewise.
39232
39233 2008-09-26  Bruno Haible  <bruno@clisp.org>
39234
39235         * doc/posix-headers/sys_resource.texi: Reorder items.
39236
39237 2008-09-26  Jim Meyering  <meyering@redhat.com>
39238
39239         fts: tweak inode comparison function
39240         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
39241         inode numbers, as documented.
39242
39243         fts: sort dirent entries on inode number before traversing
39244         This avoids a quadratic, seek-related performance penalty when
39245         operating on a directory containing many entries (measurable at 10k;
39246         3.5 hours at 2 million entries with a cold cache) on certain types
39247         of file systems, including ext3 and ext4, but not tmpfs.
39248         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
39249         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
39250         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
39251         (fs_handles_readdir_ordered_dirents_efficiently): New function.
39252         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
39253         (fts_build): Set the stat.st_ino member from D_INO.
39254         If it is likely to be useful, sort dirent entries on inode number.
39255
39256         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
39257         and the struct statfs.f_type member.
39258         * modules/fts (Depends-on): Add d-ino.
39259
39260 2008-09-26  Bruno Haible  <bruno@clisp.org>
39261
39262         * modules/sigpipe-die (Depends-on): Add sigpipe.
39263
39264         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
39265         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
39266         and GNULIB_STDIO_H_SIGPIPE are set.
39267         * lib/stdio-write.c: New file.
39268         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
39269         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39270         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39271         REPLACE_STDIO_WRITE_FUNCS.
39272         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
39273         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39274         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39275         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39276         * modules/stdio (Files): Add lib/stdio-write.c.
39277         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
39278         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
39279         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
39280         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
39281         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
39282         REPLACE_FPRINTF_POSIX.
39283         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
39284         REPLACE_PRINTF_POSIX.
39285         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
39286         REPLACE_VFPRINTF_POSIX.
39287         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
39288         REPLACE_VPRINTF_POSIX.
39289         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
39290         SIGPIPE issue.
39291         * doc/posix-functions/fputc.texi: Likewise.
39292         * doc/posix-functions/fputs.texi: Likewise.
39293         * doc/posix-functions/fwrite.texi: Likewise.
39294         * doc/posix-functions/printf.texi: Likewise.
39295         * doc/posix-functions/putc.texi: Likewise.
39296         * doc/posix-functions/putchar.texi: Likewise.
39297         * doc/posix-functions/puts.texi: Likewise.
39298         * doc/posix-functions/vfprintf.texi: Likewise.
39299         * doc/posix-functions/vprintf.texi: Likewise.
39300
39301         * modules/safe-write (Depends-on): Add write.
39302
39303         * modules/sigpipe-tests: New file.
39304         * tests/test-sigpipe.c: New file.
39305         * tests/test-sigpipe.sh: New file.
39306
39307         * modules/write: New file.
39308         * lib/unistd.in.h: Include <sys/types.h>.
39309         (write): New declaration.
39310         * lib/write.c: New file.
39311         * m4/write.m4: New file.
39312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39313         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
39314         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
39315         GNULIB_WRITE, REPLACE_WRITE.
39316         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
39317         and the SIGPIPE issue.
39318
39319         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
39320         (raise): New declaration.
39321         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
39322         (ext_signal): New function.
39323         (rpl_raise): New function.
39324         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
39325         GNULIB_SIGNAL_H_SIGPIPE.
39326         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
39327         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
39328
39329         * modules/sigpipe: New file.
39330         * m4/sigpipe.m4: New file.
39331
39332 2008-09-25  Derek Price  <derek@ximbiot.com>
39333             Bruno Haible  <bruno@clisp.org>
39334
39335         * gnulib-tool (func_import): Report all license incompatibilities, not
39336         just the first one.
39337
39338 2008-09-25  Bruno Haible  <bruno@clisp.org>
39339
39340         * gnulib-tool (func_import): When computing the edits, consider not
39341         only the Makefile.ams that exist but also those that will be generated.
39342
39343 2008-09-25  Simon Josefsson  <simon@josefsson.org>
39344
39345         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
39346         fixes gnulib-tool --test warning about duplicate dependency.
39347
39348 2008-09-25  Bruno Haible  <bruno@clisp.org>
39349
39350         * gnulib-tool: Don't ask the user to perform edits in the generated
39351         Makefile.ams.
39352         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
39353         apply to the Makefile.am being generated.
39354         (func_emit_tests_Makefile_am): Execute edits that apply to the
39355         Makefile.am being generated.
39356         (func_import): Setup list of Makefile.am edits before emitting the
39357         Makefile.ams, not at the end.
39358         (func_create_testdir): Update.
39359         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39360
39361 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39362
39363         * gnulib-tool (func_import): Store the --tests-base option in the
39364         comment in gnulib-cache.m4.
39365
39366 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
39367
39368         * NEWS: Document increased portability that sys_select now provides.
39369
39370         * lib/sys_select.in.h: Install select wrapper.
39371         * lib/sys_socket.in.h: Use more descriptive name when there is no
39372         select wrapper.
39373         * lib/winsock-select.c: New.
39374         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
39375         Require gl_HEADER_SYS_SOCKET.
39376         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
39377         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
39378         * tests/test-sys_select.c: Add functional tests.
39379
39380 2008-09-24  Eric Blake  <ebb9@byu.net>
39381
39382         open, fopen: close fd leak in last patch
39383         * lib/open.c (rpl_open): Close fd before returning error.
39384         * lib/fopen.c (rpl_fopen): Close fd before returning error.
39385         * doc/posix-functions/open.texi (open): Document that Irix also
39386         has the bug.
39387         * doc/posix-functions/fopen.texi (fopen): Likewise.
39388         Reported by Paolo Bonzini.
39389
39390 2008-09-24  Bruno Haible  <bruno@clisp.org>
39391
39392         Ensure that a filename ending in a slash cannot be used to access a
39393         non-directory.
39394         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
39395         to check whether it's really a directory.
39396         * lib/fopen.c: Include fcntl.h, unistd.h.
39397         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
39398         and fdopen().
39399         * modules/fopen (Depends-on): Add unistd.
39400         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
39401         * tests/test-fopen.c (main): Likewise.
39402         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
39403         * doc/posix-functions/fopen.texi: Likewise.
39404         Reported by Eric Blake.
39405
39406 2008-09-23  Eric Blake  <ebb9@byu.net>
39407
39408         c-stack: avoid compiler optimizations when provoking overflow
39409         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
39410         recursion harder to optimize, to ensure a stack overflow occurs.
39411         * tests/test-c-stack.c (recurse): Likewise.
39412         Borrowed from libsigsegv.
39413
39414         c-stack: work around Irix sigaltstack bug
39415         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
39416         whether sigaltstack uses wrong end of stack_t (copied in part from
39417         libsigsegv).
39418         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
39419         Irix bug, without requiring an over-allocation.
39420         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
39421         bug.
39422
39423         fopen: document mingw bug on directories
39424         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
39425         not allowing a stream visiting a directory, even though reading
39426         from such a stream is not portable.
39427
39428 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39429
39430         * lib/poll.c: Rewrite.
39431         * modules/poll: Depend on alloca.
39432
39433 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39434
39435         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
39436         instead define prototypes for a full set of wrappers.  Ensure
39437         that Cygwin does not use the compatibility code, which is only
39438         for MinGW.
39439         * lib/winsock.c: New.
39440         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
39441         * modules/sys_socket: Add lib/winsock.c.
39442
39443         * modules/poll-tests: Add errno and perror.
39444         * tests/test-poll.c: Use ioctl, not ioctlsocket.
39445
39446 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
39447
39448         * tests/test-poll.c: Downgrade minimum needed Winsock version.
39449
39450 2008-09-23  Bruno Haible  <bruno@clisp.org>
39451
39452         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
39453         * doc/glibc-functions/*: Likewise.
39454
39455 2008-09-23  Simon Josefsson  <simon@josefsson.org>
39456
39457         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
39458         success.
39459
39460 2008-09-22  Eric Blake  <ebb9@byu.net>
39461             Bruno Haible  <bruno@clisp.org>
39462
39463         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
39464         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
39465         supply %A but mishandle pseudo-NaN.
39466         Reported by Simon Josefsson.
39467
39468 2008-09-21  Bruno Haible  <bruno@clisp.org>
39469
39470         * tests/test-lock.c (main): Tweak skip message.
39471         * tests/test-tls.c (main): Likewise.
39472
39473 2008-09-21  Bruno Haible  <bruno@clisp.org>
39474
39475         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
39476         whether 'struct sigaction' has sa_sigaction here...
39477         (gl_PREREQ_SIG_HANDLER_H): ... not here.
39478         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
39479
39480 2008-09-21  Bruno Haible  <bruno@clisp.org>
39481
39482         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
39483         section.
39484         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
39485         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
39486         the new section.
39487         (Support for obsolete systems lacking POSIX:2001): New section.
39488         (String handling <string.h>): Move strdup to the new section.
39489         Suggested by Simon Josefsson and Paolo Bonzini.
39490
39491 2008-09-21  Bruno Haible  <bruno@clisp.org>
39492
39493         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
39494         exponents in %e and %g results on 'long double'. Needed for mingw's
39495         improved *printf functions.
39496         * tests/test-vasprintf-posix.c (test_function): Likewise.
39497         * tests/test-snprintf-posix.h (test_function): Likewise.
39498         * tests/test-sprintf-posix.h (test_function): Likewise.
39499         Reported by Eric Blake.
39500
39501 2008-09-21  Bruno Haible  <bruno@clisp.org>
39502
39503         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
39504         * tests/test-sprintf-posix.h (test_function): Likewise.
39505
39506 2008-09-21  Bruno Haible  <bruno@clisp.org>
39507
39508         * modules/getpass (Depends-on): Add strdup-posix.
39509
39510         New module 'strdup-posix'.
39511         * modules/strdup-posix: New file.
39512         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
39513         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
39514         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39515         REPLACE_STRDUP.
39516         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
39517         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
39518         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39519         strdup-posix.
39520
39521         * modules/strdup (Depends-on): Remove malloc-posix.
39522
39523 2008-09-20  Bruno Haible  <bruno@clisp.org>
39524
39525         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
39526         Wildenhues.
39527
39528 2008-09-20  Bruno Haible  <bruno@clisp.org>
39529
39530         Ensure that wint_t gets defined on IRIX 5.3.
39531         * lib/wchar.in.h (wint_t): Define if not defined by the system.
39532         * lib/wctype.in.h (wint_t): Likewise.
39533         (__wctype_wint_t): Remove type.
39534         (isw*): Use wint_t instead of __wctype_wint_t.
39535         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
39536         * modules/wchar (Files): Add m4/wint_t.m4.
39537         (Makefile.am): Substitute HAVE_WINT_T.
39538         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
39539         * tests/test-wctype.c: Check that wint_t is defined.
39540         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
39541         * doc/posix-headers/wctype.texi: Likewise.
39542         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39543
39544 2008-09-18  Bruno Haible  <bruno@clisp.org>
39545
39546         * gnulib-tool (func_exit): Update comment.
39547
39548 2008-09-18  Simon Josefsson  <simon@josefsson.org>
39549
39550         * modules/getaddrinfo (Depends-on): Remove strdup, this module
39551         assumes strdup exists and does not depend on strdup to return
39552         ENOMEM on out of memory conditions.
39553
39554 2008-09-18  Bruno Haible  <bruno@clisp.org>
39555
39556         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
39557         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
39558         digits for the exponent.
39559
39560 2008-09-18  Jim Meyering  <meyering@redhat.com>
39561             Bruno Haible  <bruno@clisp.org>
39562
39563         * lib/vasnprintf.c (decimal_point_char): Define also if
39564         NEED_PRINTF_INFINITE_LONG_DOUBLE.
39565
39566 2008-09-16  Bruno Haible  <bruno@clisp.org>
39567         and Eric Blake  <ebb9@byu.net>
39568
39569         vasnprintf: support Irix 5.3
39570         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
39571         that mishandle long double infinity.
39572         Reported by Tom G. Christensen.
39573
39574 2008-09-16  Bruno Haible  <bruno@clisp.org>
39575
39576         * doc/glibc-functions/scandir.texi: Mention the function is missing on
39577         Solaris 9.
39578         * doc/glibc-functions/alphasort.texi: Likewise.
39579         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
39580
39581 2008-09-16  Jim Meyering  <meyering@redhat.com>
39582
39583         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
39584         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
39585         a umask modification leak out of a subshell.  Otherwise, the
39586         opensolaris /bin/sh would be accepted and thus cause unwarranted
39587         failures in the coreutils test suite.
39588
39589 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
39590
39591         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
39592         to succeed.
39593
39594 2008-09-16  Jim Meyering  <meyering@redhat.com>
39595
39596         avoid spurious test failure when library is built without ACL support
39597         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
39598         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
39599         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
39600         * tests/test-copy-acl.sh: Likewise.
39601
39602 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39603
39604         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
39605         based on character occurrence counts.
39606
39607 2008-09-15  Eric Blake  <ebb9@byu.net>
39608
39609         tests: avoid some compiler warnings
39610         * tests/test-memchr.c (main): Pass NULL indirectly.
39611         * tests/test-closein.c (main): Avoid unused variable.
39612
39613 2008-09-15  Bruno Haible  <bruno@clisp.org>
39614
39615         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
39616         are missing on OpenBSD 4.0 individually.
39617         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39618
39619 2008-09-15  Bruno Haible  <bruno@clisp.org>
39620
39621         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
39622         * doc/posix-functions/strerror.texi: Mention also Cygwin.
39623         * doc/posix-functions/perror.texi: Likewise.
39624         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
39625         is missing.
39626         Reported by Eric Blake.
39627
39628         * lib/errno.in.h: Use replacement values >= 2000.
39629         Reported by Eric Blake.
39630
39631 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39632
39633         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
39634         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
39635         limit.
39636         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
39637         compareseq was aborted.
39638
39639 2008-09-14  Bruno Haible  <bruno@clisp.org>
39640
39641         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
39642         yvec_edit_count.
39643         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
39644         (fstrcmp_bounded): Simplify result computation accordingly.
39645
39646 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39647
39648         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
39649         (fstrcmp): Define in terms of fstrcmp_bounded.
39650         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
39651         lower_bound argument.
39652         Return quickly if the result is certainly < lower_bound.
39653         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
39654
39655 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39656
39657         * lib/diffseq.h (EARLY_ABORT): New macro.
39658         (compareseq): Change return type to bool. Return true when EARLY_ABORT
39659         evaluates to true.
39660
39661 2008-09-14  Bruno Haible  <bruno@clisp.org>
39662
39663         * modules/perror-tests: New file.
39664         * tests/test-perror.sh: New file.
39665         * tests/test-perror.c: New file.
39666
39667         New module 'perror'.
39668         * lib/stdio.in.h (perror): New declaration.
39669         * lib/perror.c: New file.
39670         * m4/perror.m4: New file.
39671         * modules/perror: New file.
39672         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
39673         * doc/posix-functions/perror.texi: Mention the perror module.
39674         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
39675         REPLACE_PERROR.
39676         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
39677         REPLACE_PERROR.
39678
39679 2008-09-14  Bruno Haible  <bruno@clisp.org>
39680
39681         * modules/stdio (Makefile.am): Reorder to match the order in
39682         lib/stdio.in.h.
39683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39684
39685 2008-09-13  Bruno Haible  <bruno@clisp.org>
39686
39687         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
39688
39689 2008-09-13  Bruno Haible  <bruno@clisp.org>
39690
39691         Extend strerror to cover the added errno values.
39692         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
39693         (rpl_strerror): Provide error messages for the added errno values and
39694         for the WSA* values.
39695         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
39696         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
39697         strerror.
39698         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
39699         * modules/strerror (Depends-on): Add errno.
39700         * doc/posix-functions/strerror.texi: Document the change.
39701         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
39702         and EOVERFLOW.
39703
39704 2008-09-13  Bruno Haible  <bruno@clisp.org>
39705
39706         * modules/EOVERFLOW: Remove file.
39707         * m4/eoverflow.m4: Remove file.
39708         * modules/EOVERFLOW-tests: Remove file.
39709         * tests/test-EOVERFLOW.c: Remove file.
39710         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
39711         * modules/ftell (Depends-on): Likewise.
39712         * modules/getdelim (Depends-on): Likewise.
39713         * modules/getugroups (Depends-on): Likewise.
39714         * modules/poll (Depends-on): Likewise.
39715         * modules/snprintf (Depends-on): Likewise.
39716         * modules/sprintf-posix (Depends-on): Likewise.
39717         * modules/vasnprintf (Depends-on): Likewise.
39718         * modules/vasprintf (Depends-on): Likewise.
39719         * modules/vfprintf-posix (Depends-on): Likewise.
39720         * modules/vsnprintf (Depends-on): Likewise.
39721         * modules/vsprintf-posix (Depends-on): Likewise.
39722         * modules/xvasprintf (Depends-on): Likewise.
39723         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39724         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
39725         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
39726         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
39727         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39728         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
39729         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
39730         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
39731         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39732         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
39733         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
39734         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
39735         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39736         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
39737         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
39738         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
39739         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39740         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
39741         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
39742         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
39743         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39744         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
39745         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
39746         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
39747         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
39748         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39749         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
39750         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
39751         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
39752         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
39753         * MODULES.html.sh: Remove EOVERFLOW.
39754         * NEWS: Mention the change.
39755
39756 2008-09-13  Bruno Haible  <bruno@clisp.org>
39757
39758         * modules/errno-tests: New file.
39759         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
39760
39761         * lib/errno.in.h: New file.
39762         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
39763         * modules/errno: New file.
39764         * doc/posix-headers/errno.texi: Update documentation.
39765         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
39766
39767 2008-09-13  Bruno Haible  <bruno@clisp.org>
39768
39769         * tests/test-poll.c: Use #if for native Windows, rather than testing
39770         __MSVCRT__.
39771
39772 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39773             Bruno Haible  <bruno@clisp.org>
39774
39775         * lib/glob.c: Don't include <pwd.h> on native Windows.
39776         (WINDOWS32): New macro.
39777         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
39778
39779 2008-09-13  Bruno Haible  <bruno@clisp.org>
39780
39781         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
39782         (ETIMEDOUT): Remove macro.
39783         (glthread_cond_timedwait_multithreaded): New declaration.
39784         (glthread_cond_timedwait): Use it.
39785         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
39786         (glthread_cond_timedwait_multithreaded): New function.
39787
39788 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39789
39790         * modules/poll-tests: Do not check for io.h.
39791         * tests/test-poll.c: Check for __MSVCRT__ instead.
39792
39793 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39794
39795         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
39796         * modules/poll-tests: Add inet_pton, stdbool, sockets.
39797         * tests/test-poll.c: Use them.  Use _pipe on Windows.
39798
39799 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
39800
39801         * modules/poll-tests: New.
39802         * tests/test-poll.c: New.
39803
39804 2008-09-12  Eric Blake  <ebb9@byu.net>
39805
39806         frexp: test for NetBSD failure on -0.0
39807         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
39808         not all, bugs from NetBSD 3.0 have been fixed.
39809         * doc/posix-functions/frexp.texi (frexp): Document bug.
39810         Reported by Thomas Klausner.
39811
39812         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
39813         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
39814         literal -0.0.
39815         Reported by Jonathan C. Patschke <jp@centtech.com>.
39816
39817 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39818
39819         * lib/glthread/cond.h: Use dummy implementation also if
39820         USE_WIN32_THREADS.
39821
39822 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39823
39824         * modules/fnmatch-posix (License): Change to LGPLv2+.
39825         * modules/fnmatch-gnu (License): Likewise.
39826
39827 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39828
39829         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
39830
39831 2008-09-11  Jim Meyering  <meyering@redhat.com>
39832
39833         * users.txt: Add gtk-vnc.
39834
39835 2008-09-08  Simon Josefsson  <simon@josefsson.org>
39836
39837         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
39838         rotate amounts.
39839
39840         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
39841         required for 16-bit and 8-bit rotates.
39842         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
39843         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
39844         UINT8_MAX instead of hard-coded constants.
39845         Suggested by Paul Eggert.
39846
39847 2008-09-07  Bruno Haible  <bruno@clisp.org>
39848
39849         * tests/test-striconveh.c (main): Check behaviour when converting from
39850         UTF-7.
39851
39852         Make striconveh work better with stateful encodings.
39853         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
39854         that iconv does not increment the inptr when returning -1/EINVAL.
39855
39856 2008-09-07  Bruno Haible  <bruno@clisp.org>
39857
39858         * build-aux/config.rpath: Update according to libtool-2.2.6.
39859         * build-aux/config.libpath: Likewise.
39860
39861 2008-09-06  Bruno Haible  <bruno@clisp.org>
39862
39863         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
39864         * lib/freadptr.c (freadptr): Likewise.
39865         * lib/freadseek.c (freadptrinc): Likewise.
39866         Reported by Simon Josefsson.
39867
39868 2008-09-06  Bruno Haible  <bruno@clisp.org>
39869
39870         * modules/freadptr (License): Change to LGPLv2+.
39871         * modules/freadseek (License): Likewise.
39872         Suggested by Eric Blake.
39873
39874         * modules/memchr2 (License): Change to LGPLv2+.
39875         Approved by Eric Blake.
39876
39877 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39878             Bruno Haible  <bruno@clisp.org>
39879
39880         Make gnulib-tool work with native 'sed' on AIX.
39881         * gnulib-tool (sed_noop): New variable.
39882         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
39883         func_add_or_update, func_create_testdir): Use it to initialize sed
39884         script variables.
39885         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39886
39887 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
39888             Bruno Haible  <bruno@clisp.org>
39889
39890         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
39891         also works after #include directives.
39892
39893 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
39894
39895         getdate.y: reject an out-of-range timezone value
39896         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
39897         the range [-24...+24].  When specified with only one or two digits,
39898         * tests/test-getdate.c: Tests for the fix.
39899         * doc/getdate.texi: Document this change.
39900
39901 2008-09-03  Bruno Haible  <bruno@clisp.org>
39902
39903         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
39904
39905 2008-09-02  Simon Josefsson  <simon@josefsson.org>
39906
39907         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
39908         <bruce.korb@gmail.com> with ideas from Ben Pfaff
39909         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
39910         Blake <ebb9@byu.net>.
39911
39912         * tests/test-bitrotate.c: Add more test vectors.
39913
39914 2008-09-02  Eric Blake  <ebb9@byu.net>
39915
39916         vasnprintf-posix: handle large precision via %.*d
39917         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
39918         when handling it ourselves.
39919         * tests/test-vasnprintf-posix.c (test_function): Add test.
39920         * tests/test-snprintf-posix.h (test_function): Likewise.
39921         * tests/test-sprintf-posix.h (test_function): Likewise.
39922         * tests/test-vasprintf-posix.c (test_function): Likewise.
39923         Reported by Alain Guibert.
39924
39925 2008-09-01  Eric Blake  <ebb9@byu.net>
39926
39927         c-stack: make configure-time check more robust
39928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
39929         successful sigaction call.
39930         Reported by Tom G. Christensen.
39931
39932 2008-09-01  Bruno Haible  <bruno@clisp.org>
39933
39934         New module 'findprog-lgpl'.
39935         * modules/findprog-lgpl: New file.
39936         * lib/findprog-lgpl.c: New file.
39937         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
39938         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
39939         to decide whether to use strdup or xstrdup, concatenated_filename or
39940         xconcatenated_filename.
39941
39942 2008-09-01  Bruno Haible  <bruno@clisp.org>
39943
39944         Split module 'concat-filename' into 'concat-filename' (LGPL) and
39945         'xconcat-filename' (GPL).
39946         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
39947         (License): Change to LGPLv2+.
39948         * modules/xconcat-filename: New file.
39949         * lib/concat-filename.h (concatenated_filename): Change specification.
39950         (xconcatenated_filename): New declaration.
39951         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
39952         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
39953         memory situations.
39954         * lib/xconcat-filename.c: New file.
39955         * NEWS: Mention the change.
39956         * lib/findprog.c: Include concat-filename.h, not filename.h.
39957         (find_in_path): Use xconcatenated_filename instead of
39958         concatenated_filename.
39959         * lib/javacomp.c: Include concat-filename.h, not filename.h.
39960         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
39961         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
39962         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
39963         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
39964         instead of concatenated_filename.
39965         * lib/javaexec.c: Include concat-filename.h, not filename.h.
39966         (execute_java_class): Use xconcatenated_filename instead of
39967         concatenated_filename.
39968         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
39969         * modules/javacomp (Depends-on): Likewise.
39970         * modules/javaexec (Depends-on): Likewise.
39971
39972 2008-09-01  Bruno Haible  <bruno@clisp.org>
39973
39974         Split module 'filename' into 'filename' and 'concat-filename'.
39975         * modules/filename: Keep only lib/filename.h.
39976         (License): Change to LGPLv2+.
39977         * modules/concat-filename: New file, extracted from modules/filename.
39978         * lib/filename.h (concatenated_filename): Remove declaration.
39979         * lib/concat-filename.h: New file, extracted from lib/filename.h.
39980         * lib/concat-filename.c: Include concat-filename.h.
39981         * NEWS: Mention the change.
39982
39983 2008-09-01  Simon Josefsson  <simon@josefsson.org>
39984
39985         * lib/bitrotate.h (rotl8, rotr8): Add.
39986
39987         * modules/bitrotate (configure.ac): Need
39988         AC_REQUIRE([AC_C_INLINE]).
39989         (Description): Mention stdint.h.  Reported by Bruno Haible
39990         <bruno@clisp.org>.
39991
39992         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
39993         Paolo Bonzini <bonzini@gnu.org>.
39994
39995 2008-08-31  Bruno Haible  <bruno@clisp.org>
39996
39997         Assume Solaris specific bi-arch conventions on Solaris systems.
39998         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
39999         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
40000         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
40001         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
40002         like acl_libdirstem.
40003         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
40004         acl_libdirstem.
40005         * NEWS: Mention the change.
40006         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
40007
40008 2008-08-31  Jim Meyering  <meyering@redhat.com>
40009
40010         * lib/strftime.h: Add comments describing the two added arguments.
40011
40012         remove duplicate #include directives
40013         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
40014         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
40015
40016 2008-08-31  Bruno Haible  <bruno@clisp.org>
40017
40018         New module 'sigpipe-die'.
40019         * modules/sigpipe-die: New file.
40020         * lib/sigpipe-die.h: New file.
40021         * lib/sigpipe-die.c: New file.
40022         * MODULES.html.sh (Signal handling): Add sigpipe-die.
40023
40024 2008-08-31  Bruno Haible  <bruno@clisp.org>
40025
40026         Don't override previously installed signal handlers.
40027         * lib/fatal-signal.c (saved_sigactions): New variable.
40028         (uninstall_handlers): Reset the signal to the saved handler, not
40029         to SIG_DFL (except when ignored).
40030         (install_handlers): Save the previous handlers.
40031
40032 2008-08-30  Bruno Haible  <bruno@clisp.org>
40033
40034         * gnulib-tool (func_reset_sigpipe): New function.
40035         (func_get_automake_snippet, func_modules_transitive_closure,
40036         func_import): Invoke it before a join command that reads from stdin,
40037         to avoid "echo: write error: Broken pipe" error messages on stderr.
40038         Reported by Sam Steingold <sds@gnu.org>.
40039
40040 2008-08-30  Bruno Haible  <bruno@clisp.org>
40041
40042         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
40043         Code copied from m4/open.m4.
40044         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
40045         access and the filename ends in a slash. Code copied from lib/open.c.
40046         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
40047         * tests/test-fopen.c (main): Check against bug with trailing slash.
40048
40049 2008-08-29  Bruno Haible  <bruno@clisp.org>
40050
40051         Avoid some "gcc -pedantic" warnings.
40052         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
40053         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
40054         * lib/dirent.in.h: Likewise.
40055         * lib/fcntl.in.h: Likewise.
40056         * lib/float.in.h: Likewise.
40057         * lib/iconv.in.h: Likewise.
40058         * lib/inttypes.in.h: Likewise.
40059         * lib/locale.in.h: Likewise.
40060         * lib/math.in.h: Likewise.
40061         * lib/netinet_in.in.h: Likewise.
40062         * lib/search.in.h: Likewise.
40063         * lib/signal.in.h: Likewise.
40064         * lib/stdarg.in.h: Likewise.
40065         * lib/stdint.in.h: Likewise.
40066         * lib/stdio.in.h: Likewise.
40067         * lib/stdlib.in.h: Likewise.
40068         * lib/string.in.h: Likewise.
40069         * lib/strings.in.h: Likewise.
40070         * lib/sys_select.in.h: Likewise.
40071         * lib/sys_socket.in.h: Likewise.
40072         * lib/sys_stat.in.h: Likewise.
40073         * lib/sys_time.in.h: Likewise.
40074         * lib/sysexits.in.h: Likewise.
40075         * lib/time.in.h: Likewise.
40076         * lib/unistd.in.h: Likewise.
40077         * lib/wchar.in.h: Likewise.
40078         * lib/wctype.in.h: Likewise.
40079         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
40080         * modules/fchdir (Makefile.am): Likewise.
40081         * modules/fcntl (Makefile.am): Likewise.
40082         * modules/float (Makefile.am): Likewise.
40083         * modules/iconv_open (Makefile.am): Likewise.
40084         * modules/inttypes (Makefile.am): Likewise.
40085         * modules/locale (Makefile.am): Likewise.
40086         * modules/math (Makefile.am): Likewise.
40087         * modules/netinet_in (Makefile.am): Likewise.
40088         * modules/search (Makefile.am): Likewise.
40089         * modules/signal (Makefile.am): Likewise.
40090         * modules/stdarg (Makefile.am): Likewise.
40091         * modules/stdint (Makefile.am): Likewise.
40092         * modules/stdio (Makefile.am): Likewise.
40093         * modules/stdlib (Makefile.am): Likewise.
40094         * modules/string (Makefile.am): Likewise.
40095         * modules/strings (Makefile.am): Likewise.
40096         * modules/sys_select (Makefile.am): Likewise.
40097         * modules/sys_socket (Makefile.am): Likewise.
40098         * modules/sys_stat (Makefile.am): Likewise.
40099         * modules/sys_time (Makefile.am): Likewise.
40100         * modules/sysexits (Makefile.am): Likewise.
40101         * modules/time (Makefile.am): Likewise.
40102         * modules/unistd (Makefile.am): Likewise.
40103         * modules/wchar (Makefile.am): Likewise.
40104         * modules/wctype (Makefile.am): Likewise.
40105         Reported by Reuben Thomas <rrt@sc3d.org>.
40106
40107 2008-08-29  Bruno Haible  <bruno@clisp.org>
40108
40109         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
40110         any more.
40111
40112 2008-08-29  Simon Josefsson  <simon@josefsson.org>
40113
40114         * MODULES.html.sh (Misc): Add bitrotate.
40115
40116         * modules/bitrotate: New file.
40117
40118         * lib/bitrotate.h: New file.
40119
40120         * modules/bitrotate-tests: New file.
40121
40122         * tests/test-bitrotate.c: New file.
40123
40124         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
40125         on the bitrotate module.
40126
40127         * lib/arctwo.c: Use new bitrotate module.
40128
40129 2008-08-29  Jim Meyering  <meyering@redhat.com>
40130
40131         bootstrap: merge changes from coreutils
40132         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
40133         of copied files.  Remove a kludge, now that this is fixed.
40134         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
40135         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
40136         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
40137
40138 2008-08-29  Bruno Haible  <bruno@clisp.org>
40139
40140         * MODULES.html.sh: Remove --cvs-urls option.
40141
40142 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
40143
40144         maint.mk: adjust to file name change
40145         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
40146
40147 2008-08-28  Jim Meyering  <meyering@redhat.com>
40148
40149         * modules/getndelim2 (License): Relicense to LGPLv2+.
40150         Approved by Richard Stallman for the version of 1995, and by
40151         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
40152
40153 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
40154
40155         * lib/getdelim.c (flockfile, funlockfile): Make all of them
40156         dummy if one is not available.  Do not touch them if
40157         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
40158         (getc_maybe_unlocked): New.
40159         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
40160
40161 2008-08-26  Eric Blake  <ebb9@byu.net>
40162
40163         doc/INSTALL: resync from autoconf
40164         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
40165         (INSTALL_PRELUDE): Delete; this is done more efficiently by
40166         moving...
40167         * install.texi [!autoconf]: ...here.  Resync from autoconf.
40168         * INSTALL: Regenerate.
40169         * INSTALL.ISO: New file.
40170         * INSTALL.UTF-8: Likewise.
40171
40172 2008-08-26  Jim Meyering  <meyering@redhat.com>
40173
40174         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
40175         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
40176         these definitions conditional, so that they may be overridden, too.
40177
40178 2008-08-26  Bruno Haible  <bruno@clisp.org>
40179
40180         Generate INSTALL file variants with prettier quotes.
40181         * doc/Makefile (INSTALL_PRELUDE): New macro.
40182         (INSTALL): Use it.
40183         (INSTALL.ISO, INSTALL.UTF-8): New rules.
40184
40185 2008-08-26  Bruno Haible  <bruno@clisp.org>
40186
40187         Run makeinfo in an English locale.
40188         * doc/Makefile (MAKEINFO): New variable.
40189
40190 2008-08-26  Bruno Haible  <bruno@clisp.org>
40191
40192         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
40193         Suggested by Eric Blake.
40194
40195 2008-08-25  Bruno Haible  <bruno@clisp.org>
40196
40197         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
40198
40199 2008-08-25  Eric Blake  <ebb9@byu.net>
40200
40201         c-stack: test that stack overflow can be caught
40202         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
40203         that platform allows handling stack overflow; at least OS/2 EMX
40204         has sigaltstack, but crashes before transferring control to
40205         handler on stack overflow.
40206         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
40207         check for HAVE_STACK_OVERFLOW_HANDLING.
40208         Reported by Elbert Pol.
40209
40210 2008-08-25  Bruno Haible  <bruno@clisp.org>
40211
40212         * doc/posix-functions/strftime.texi: Fix description of strftime
40213         module.
40214
40215 2008-08-24  Bruno Haible  <bruno@clisp.org>
40216
40217         * tests/uniwidth/test-uc_width2.c: New file.
40218         * tests/uniwidth/test-uc_width2.sh: New file.
40219         * modules/uniwidth/width-tests (Files): Add the new files.
40220         (TESTS): Add uniwidth/test-uc_width2.sh.
40221         (TESTS_ENVIRONMENT): New variable.
40222         (check_PROGRAMS): Add test-uc_width2.
40223         (test_uc_width2_SOURCES): New variable.
40224
40225         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
40226         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
40227         not 0x00AB.
40228         Reported by Alexander V. Lukyanov <lav@netis.ru>.
40229
40230 2008-08-22  Eric Blake  <ebb9@byu.net>
40231
40232         test-lock, test-tls: mention why a test is skipped
40233         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
40234         skipped.
40235         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
40236
40237         count-one-bits: relax license
40238         * modules/count-one-bits (License): Relicense to LGPLv2+.
40239         Suggested by Ludovic Courtès, approved by Ben Pfaff.
40240
40241 2008-08-22  Andreas Schwab  <schwab@suse.de>
40242
40243         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
40244         Remove spurious space in assignment.
40245
40246 2008-08-21  Simon Josefsson  <simon@josefsson.org>
40247
40248         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
40249         Paul Eggert <eggert@CS.UCLA.EDU>.
40250
40251 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
40252
40253         * modules/gettext: Add m4/threadlib.m4.
40254
40255 2008-08-19  Eric Blake  <ebb9@byu.net>
40256
40257         test-c-stack: fix compilation failure on FreeBSD 5.0
40258         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
40259         headers before <sys/resource.h>.
40260         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
40261         the bug.
40262         Reported by Nelson H. F. Beebe.
40263
40264         strverscmp: migrate from "strverscmp.h" to <string.h>
40265         * modules/string (Makefile.am): Add new hooks.
40266         * modules/strverscmp (Files): Remove strverscmp.h.
40267         (Depends-on): Add string.
40268         (configure.ac): Add indicator.
40269         (Include): Mention new header.
40270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
40271         defaults.
40272         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
40273         results.
40274         * lib/strverscmp.h: Delete.
40275         * lib/string.in.h (strverscmp): Provide declaration, when needed.
40276         * tests/test-strverscmp.c (includes): Adjust client.
40277         * lib/check-version.c (includes): Likewise.
40278         * NEWS: Document the change.
40279
40280         strverscmp: add unit test
40281         * modules/strverscmp-tests: New file.
40282         * tests/test-strverscmp.c: Likewise.
40283
40284 2008-08-19  Simon Josefsson  <simon@josefsson.org>
40285
40286         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
40287         regarding Windows crypto stuff, from Mono.
40288
40289 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
40290
40291         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
40292         if present, for intel RND.  Return error on failures.
40293
40294 2008-08-18  Ben Pfaff  <blp@gnu.org>
40295
40296         gitlog-to-changelog: give better diagnostic for failed pipe-open
40297         * build-aux/gitlog-to-changelog: Improve error message: suggest
40298         that the version of Git may be too old.
40299
40300 2008-08-18  Simon Josefsson  <simon@josefsson.org>
40301
40302         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
40303         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
40304
40305 2008-08-18  Bruno Haible  <bruno@clisp.org>
40306
40307         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
40308         pthread_in_use().
40309
40310 2008-08-18  Bruno Haible  <bruno@clisp.org>
40311
40312         * lib/glthread/threadlib.c: Include <pthread.h>.
40313
40314 2008-08-18  Bruno Haible  <bruno@clisp.org>
40315
40316         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
40317         glthread_recursive_lock_* macros.
40318         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
40319         Fix syntax error.
40320
40321 2008-08-18  Bruno Haible  <bruno@clisp.org>
40322
40323         * lib/glthread/thread.c: Avoid forcing a context switch right after
40324         thread creation.
40325
40326 2008-08-17  Bruno Haible  <bruno@clisp.org>
40327
40328         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
40329         * lib/glthread/thread.h: Provide Win32 specific implementation.
40330         * modules/thread (Files): Add lib/glthread/thread.c.
40331         (Depends-on): Add lock.
40332         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
40333
40334 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40335
40336         New module 'yield'.
40337         * modules/yield: New file.
40338         * lib/glthread/yield.h: New file.
40339         * m4/yield.m4: New file.
40340         * MODULES.html.sh (Multithreading): Add yield.
40341
40342 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40343
40344         New module 'thread'.
40345         * modules/thread: New file.
40346         * lib/glthread/thread.h: New file.
40347         * m4/thread.m4: New file.
40348         * MODULES.html.sh (Multithreading): Add thread.
40349
40350 2008-08-17  Bruno Haible  <bruno@clisp.org>
40351
40352         * lib/glthread/lock.h: Include <stdlib.h> always.
40353         * lib/glthread/tls.h: Likewise.
40354         * lib/glthread/cond.h: Likewise.
40355
40356 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40357
40358         New module 'cond'.
40359         * modules/cond: New file.
40360         * lib/glthread/cond.h: New file.
40361         * lib/glthread/cond.c: New file.
40362         * m4/cond.m4: New file.
40363         * MODULES.html.sh (Multithreading): Add cond.
40364
40365 2008-08-16  Eric Blake  <ebb9@byu.net>
40366
40367         c-stack: fix regression on Irix 5.3 from 2008-06-21
40368         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
40369         sa_sigaction...
40370         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
40371         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
40372         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
40373         * modules/signal (Makefile.am): Use the value.
40374         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
40375         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
40376         * doc/posix-headers/signal.texi (signal.h): Document this
40377         portability issue.
40378         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
40379         Reported by Tom G. Christensen.
40380
40381 2008-08-17  Bruno Haible  <bruno@clisp.org>
40382
40383         New module 'threadlib'.
40384         * modules/threadlib: New file.
40385         * lib/glthread/threadlib.c: New file, extracted from
40386         lib/glthread/lock.c.
40387         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
40388         functions.
40389         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
40390         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
40391         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
40392         macros.
40393         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
40394         (gl_DISABLE_THREADS): Remove macro.
40395         * modules/lock (Files): Remove build-aux/config.rpath.
40396         (Depends-on): Remove havelib. Add threadlib.
40397         (configure.ac-early): Remove section.
40398         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
40399         * modules/tls (Depends-on): Remove lock. Add threadlib.
40400         (Link): New section, copied from threadlib.
40401         * MODULES.html.sh (Multithreading): Add threadlib.
40402
40403 2008-08-14  Bruno Haible  <bruno@clisp.org>
40404
40405         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
40406         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
40407         glthread_rwlock_unlock, glthread_rwlock_destroy,
40408         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
40409         glthread_recursive_lock_destroy): Define as macros always.
40410         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
40411         glthread_lock_lock.
40412         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
40413         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
40414         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
40415         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
40416         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
40417         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
40418         (glthread_recursive_lock_lock_func): Renamed from
40419         glthread_recursive_lock_lock.
40420         (glthread_recursive_lock_unlock_func): Renamed from
40421         glthread_recursive_lock_unlock.
40422         (glthread_recursive_lock_destroy_func): Renamed from
40423         glthread_recursive_lock_destroy.
40424
40425 2008-08-14  Bruno Haible  <bruno@clisp.org>
40426
40427         * lib/glthread/lock.h: Renamed from lib/lock.h.
40428         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
40429         * lib/glthread/tls.h: Renamed from lib/tls.h.
40430         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
40431         * lib/fstrcmp.c: Update includes.
40432         * lib/strsignal.c: Update includes.
40433         * modules/lock (Files, Makefile.am): Update.
40434         (Include): Change to "glthread/lock.h".
40435         * modules/tls (Files, Makefile.am): Update.
40436         (Include): Change to "glthread/tls.h".
40437         * tests/test-lock.c: Update includes.
40438         * tests/test-tls.c: Update includes.
40439         * NEWS: Mention the renamed header files.
40440
40441 2008-08-11  Jim Meyering  <meyering@redhat.com>
40442
40443         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
40444
40445 2008-08-11  Eric Blake  <ebb9@byu.net>
40446
40447         test-c-stack: avoid C99-ism
40448         * tests/test-c-stack.c (main): Fix whitespace, move declaration
40449         before statement.
40450         Reported by Alain Guibert.
40451
40452 2008-08-10  Jim Meyering  <meyering@redhat.com>
40453
40454         ensure that return value of uinttostr et al are not ignored
40455         * lib/inttostr.h (__GNUC_PREREQ): Define.
40456         (__attribute_warn_unused_result__): Define.
40457         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
40458
40459 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
40460
40461         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
40462         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
40463
40464 2008-08-07  Jim Meyering  <meyering@redhat.com>
40465
40466         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
40467
40468         * modules/mkstemp (License): Relicense under LGPLv2+.
40469         * modules/tempname (License): Likewise.
40470
40471 2008-08-06  Bruno Haible  <bruno@clisp.org>
40472
40473         * lib/poll.c (poll): Further micro-optimization.
40474
40475 2008-08-06  Jim Meyering  <meyering@redhat.com>
40476
40477         inet_pton.c: use locale-independent tolower
40478         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
40479         (inet_pton6): Use c_tolower rather than tolower.
40480         * modules/inet_pton (Depends-on): Add c-ctype.
40481
40482 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
40483
40484         * lib/poll.c (poll): Avoid division when timeout is 0, cache
40485         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
40486
40487 2008-08-06  Jim Meyering  <meyering@redhat.com>
40488
40489         * modules/inet_pton (License): Relicense under LGPLv2+.
40490
40491 2008-08-03  Bruno Haible  <bruno@clisp.org>
40492
40493         Additional non-aborting API for lock and tls.
40494         * lib/lock.h: Include <errno.h>.
40495         (glthread_lock_init): New macro/function.
40496         (gl_lock_init): Define as wrapper around glthread_lock_init.
40497         (glthread_lock_lock): New macro/function.
40498         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
40499         (glthread_lock_unlock): New macro/function.
40500         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
40501         (glthread_lock_destroy): New macro/function.
40502         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
40503         (glthread_rwlock_init): New macro/function.
40504         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
40505         (glthread_rwlock_rdlock): New macro/function.
40506         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
40507         (glthread_rwlock_wrlock): New macro/function.
40508         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
40509         (glthread_rwlock_unlock): New macro/function.
40510         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
40511         (glthread_rwlock_destroy): New macro/function.
40512         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
40513         (glthread_recursive_lock_init): New macro/function.
40514         (gl_recursive_lock_init): Define as wrapper around
40515         glthread_recursive_lock_init.
40516         (glthread_recursive_lock_lock): New macro/function.
40517         (gl_recursive_lock_lock): Define as wrapper around
40518         glthread_recursive_lock_lock.
40519         (glthread_recursive_lock_unlock): New macro/function.
40520         (gl_recursive_lock_unlock): Define as wrapper around
40521         glthread_recursive_lock_unlock.
40522         (glthread_recursive_lock_destroy): New macro/function.
40523         (gl_recursive_lock_destroy): Define as wrapper around
40524         glthread_recursive_lock_destroy.
40525         (glthread_once): New macro/function.
40526         (gl_once): Define as wrapper around glthread_once.
40527         Update function declarations.
40528         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
40529         glthread_rwlock_init. Return error code.
40530         (glthread_rwlock_rdlock_multithreaded): Renamed from
40531         glthread_rwlock_rdlock. Return error code.
40532         (glthread_rwlock_wrlock_multithreaded): Renamed from
40533         glthread_rwlock_wrlock. Return error code.
40534         (glthread_rwlock_unlock_multithreaded): Renamed from
40535         glthread_rwlock_unlock. Return error code.
40536         (glthread_rwlock_destroy_multithreaded): Renamed from
40537         glthread_rwlock_destroy. Return error code.
40538         (glthread_recursive_lock_init_multithreaded): Renamed from
40539         glthread_recursive_lock_init. Return error code.
40540         (glthread_recursive_lock_lock_multithreaded): Renamed from
40541         glthread_recursive_lock_lock. Return error code.
40542         (glthread_recursive_lock_unlock_multithreaded): Renamed from
40543         glthread_recursive_lock_unlock. Return error code.
40544         (glthread_recursive_lock_destroy_multithreaded): Renamed from
40545         glthread_recursive_lock_destroy. Return error code.
40546         (glthread_once_call): Make static.
40547         (glthread_once_multithreaded): Renamed from glthread_once.
40548         * lib/tls.h: Include <errno.h>.
40549         (glthread_tls_key_init): New macro/function.
40550         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
40551         (glthread_tls_set): New macro/function.
40552         (gl_tls_set): Define as wrapper around glthread_tls_set.
40553         (glthread_tls_key_destroy): New macro/function.
40554         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
40555         Update function declarations.
40556         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
40557         glthread_tls_get.
40558         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
40559
40560 2008-08-04  Eric Blake  <ebb9@byu.net>
40561
40562         gnumakefile: use space, not TAB, outside of targets
40563         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
40564
40565 2008-08-02  Jim Meyering  <meyering@redhat.com>
40566
40567         getdate.y: avoid locale-dependent date parsing failure
40568         In Turkish locales, getdate would fail to recognize keywords
40569         containing a lowercase "i".  The solution is not to rely on
40570         locale-sensitive case-conversion.
40571         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
40572         (lookup_word): Use c_toupper in place of toupper.
40573         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
40574         Reported by Vefa Bicakci <bicave@superonline.com> in
40575         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
40576         * modules/getdate (Depends-on): Add c-ctype.
40577
40578 2008-08-02  Bruno Haible  <bruno@clisp.org>
40579
40580         * gnulib-tool (func_import): When updating or creating a .gitignore
40581         file, prepend each added line with a slash, and ignore leading slashes
40582         from the existing lines.
40583         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40584
40585 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40586
40587         Portability fix for GNU make 3.79.1.
40588         * top/GNUmakefile: Avoid 'else COND', which older GNU make
40589         versions do not understand.
40590
40591 2008-08-01  Bruno Haible  <bruno@clisp.org>
40592
40593         Work around bug of HP-UX 10.20 cc with -0.0 literal.
40594         * tests/test-isnanf.h (zero): New variable.
40595         (main): Avoid literal -0.0f.
40596         * tests/test-isnand.h (zero): New variable.
40597         (main): Avoid literal -0.0.
40598         * tests/test-isnanl.h (zero): New variable.
40599         (main): Avoid literal -0.0L.
40600         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
40601         (test_float, test_double, test_long_double): Avoid literals -0.0f,
40602         -0.0, -0.0L.
40603         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
40604         (test_signbitd): Avoid literal -0.0.
40605         (test_signbitl): Avoid literal -0.0L.
40606         * tests/test-ceilf1.c (zero): New variable.
40607         (main): Avoid literal -0.0f.
40608         * tests/test-ceill.c (zero): New variable.
40609         (main): Avoid literal -0.0L.
40610         * tests/test-floorf1.c (zero): New variable.
40611         (main): Avoid literal -0.0f.
40612         * tests/test-floorl.c (zero): New variable.
40613         (main): Avoid literal -0.0L.
40614         * tests/test-roundf1.c (zero): New variable.
40615         (main): Avoid literal -0.0f.
40616         * tests/test-round1.c (zero): New variable.
40617         (main): Avoid literal -0.0.
40618         * tests/test-roundl.c (zero): New variable.
40619         (main): Avoid literal -0.0L.
40620         * tests/test-truncf1.c (zero): New variable.
40621         (main): Avoid literal -0.0f.
40622         * tests/test-trunc1.c (zero): New variable.
40623         (main): Avoid literal -0.0.
40624         * tests/test-truncl.c (zero): New variable.
40625         (main): Avoid literal -0.0L.
40626         * tests/test-frexp.c (zero): New variable.
40627         (main): Avoid literal -0.0.
40628         * tests/test-frexpl.c (zero): New variable.
40629         (main): Avoid literal -0.0L.
40630         * tests/test-ldexpl.c (zero): New variable.
40631         (main): Avoid literal -0.0L.
40632         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40633         (zerod, zerol): New variables.
40634         (test_function): Avoid literals -0.0, -0.0L.
40635         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
40636         (zerod, zerol): New variables.
40637         (test_function): Avoid literals -0.0, -0.0L.
40638         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40639         (zerod, zerol): New variables.
40640         (test_function): Avoid literals -0.0, -0.0L.
40641         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
40642         (zerod, zerol): New variables.
40643         (test_function): Avoid literals -0.0, -0.0L.
40644         * tests/test-strtod.c (zero): New variable.
40645         (main): Avoid literal -0.0.
40646         Reported by Jonathan C. Patschke <jp@centtech.com>.
40647
40648 2008-07-31  Jim Meyering  <meyering@redhat.com>
40649
40650         sha256.h: correct definition of SHA224_DIGEST_SIZE
40651         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
40652         Reported by Paulie Pena IV <paulie4@gmail.com>.
40653         Define as 224 / 8, rather than as a literal.
40654         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
40655         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
40656         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
40657
40658 2008-07-31  Bruno Haible  <bruno@clisp.org>
40659
40660         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
40661         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
40662         Reported by Jonathan Patschke <jp@centtech.com>.
40663
40664 2008-07-31  Bruno Haible  <bruno@clisp.org>
40665
40666         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
40667         Reported by Paolo Bonzini <bonzini@gnu.org>.
40668
40669 2008-07-30  Eric Blake  <ebb9@byu.net>
40670
40671         test-strtod: allow compilation without -lm
40672         * tests/test-strtod.c (main): Avoid link dependence on fabs.
40673         Reported by Dennis Clarke <blastwave@gmail.com>.
40674
40675 2008-07-28  Jim Meyering  <meyering@redhat.com>
40676
40677         bootstrap: work also when there are no .po files in po/
40678         * build-aux/bootstrap (update_po_files): Complete the change
40679         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
40680
40681 2008-07-27  Jim Meyering  <meyering@redhat.com>
40682
40683         * users.txt: Add zile.
40684
40685 2008-07-26  Ben Pfaff  <blp@gnu.org>
40686
40687         Add missing dependencies on new m4/exponent[fdl].m4 files.
40688         * modules/isnanf-nolibm: Add m4/exponentf.m4.
40689         * modules/isnand-nolibm: Add m4/exponentd.m4.
40690         * modules/isnanl-nolibm: Add m4/exponentl.m4.
40691         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
40692         m4/isnan[fdl].m4, because the macros actually used moved.
40693         Reported by Jim Meyering.
40694
40695 2008-07-14  Ben Pfaff  <blp@gnu.org>
40696
40697         Add isinf module.
40698         * lib/isinf.c: New file.
40699         * lib/math.in.h: Define isinf macro if we have decided to replace
40700         it.
40701         * m4/isinf.m4: New file.
40702         * m4/math_h.m4: Initialize and substitute variables for isinf
40703         module.
40704         * modules/isinf: New file.
40705         * modules/isinf-tests: New file.
40706         * modules/math: Add substitutions for new module.
40707         * tests/test-isinf.c: New file.
40708         * doc/posix-functions/isinf.texi: Mention new module.
40709         * MODULES.html.sh: Mention new module.
40710
40711 2008-07-14  Ben Pfaff  <blp@gnu.org>
40712
40713         Factor out some macros for use by additional modules.
40714         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
40715         exponentf.m4.
40716         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
40717         exponentd.m4.
40718         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
40719         file exponentl.m4.
40720         * m4/exponentf.m4: New file.
40721         * m4/exponentd.m4: New file.
40722         * m4/exponentl.m4: New file.
40723         * modules/isnanf: Use new file m4/exponentf.m4.
40724         * modules/isnand: Use new file m4/exponentd.m4.
40725         * modules/isnanl: Use new file m4/exponentl.m4.
40726
40727 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
40728
40729         mktime.c: normalize tp->tm_isdst value to -1/0/1.
40730         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
40731         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
40732         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
40733
40734         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
40735         readlink on platforms without PATH_MAX.
40736
40737 2008-07-21  Eric Blake  <ebb9@byu.net>
40738
40739         Warn, not fail, on stale version.
40740         * top/GNUmakefile (_curr-ver): Tone down previous patch.
40741
40742         Don't allow installation with stale devel version number.
40743         * top/GNUmakefile (_is-install-target): New macro.
40744         (_curr-ver): Forbid installation with stale version number.
40745
40746 2008-07-20  Bruno Haible  <bruno@clisp.org>
40747
40748         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
40749         TESTS_ENVIRONMENT.
40750         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
40751
40752 2008-07-20  Bruno Haible  <bruno@clisp.org>
40753
40754         * lib/c-stack.h (c_stack_action): Add documentation.
40755         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
40756
40757 2008-07-20  Bruno Haible  <bruno@clisp.org>
40758
40759         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
40760         * modules/readlink (License): Likewise.
40761
40762 2008-07-17  Eric Blake  <ebb9@byu.net>
40763
40764         * modules/c-stack (Link): Fix typo.
40765
40766         Make c-stack use libsigsegv, when available.
40767         * modules/c-stack (Depends-on): Add libsigsegv.
40768         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
40769         needed.
40770         * lib/c-stack.c (SIGSTKSZ): Define fallback.
40771         (segv_handler, overflow_handler, c_stack_action)
40772         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
40773         implementation when libsigsegv is available, but only when using
40774         the library is necessary.
40775         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
40776         comment, explaining why XSI check fails on Linux.
40777         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
40778         * tests/test-c-stack2.sh: Tweak skip message.
40779         * NEWS: Document new link-time requirements.
40780
40781 2008-07-16  Eric Blake  <ebb9@byu.net>
40782
40783         c-stack: Expose false positives when not using libsigsegv.
40784         * modules/c-stack-tests (Files): Expand test.
40785         * tests/test-c-stack.c (main): Add means to conditionally trigger
40786         non-overflow SIGSEGV.
40787         * tests/test-c-stack2.sh: New file.
40788
40789 2008-07-14  Bruno Haible  <bruno@clisp.org>
40790
40791         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
40792         Reported by Eric Blake.
40793
40794 2008-07-14  Sam Steingold  <sds@gnu.org>
40795             Bruno Haible  <bruno@clisp.org>
40796
40797         New module libsigsegv.
40798         * modules/libsigsegv: New file.
40799         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
40800         modifications.
40801         * MODULES.html.sh (Signal handling): New section.
40802
40803 2008-07-14  Bruno Haible  <bruno@clisp.org>
40804
40805         * modules/unictype/ctype-* (Description): Add the word "function".
40806         Improves the resulting doc in MODULES.html.
40807
40808 2008-07-12  Ben Pfaff  <blp@gnu.org>
40809
40810         Add longlong module.
40811         * modules/longlong: New file.
40812
40813 2008-07-12  Bruno Haible  <bruno@clisp.org>
40814
40815         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
40816         to empty.
40817
40818 2008-07-10  Ben Pfaff  <blp@gnu.org>
40819
40820         Add isnan module.
40821         * doc/posix-functions/isnan.texi: Mention new module.
40822         * lib/math.in.h: Define isnan macro if we have decided to replace
40823         it.
40824         * m4/isnan.m4: New file.
40825         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
40826         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
40827         also.
40828         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
40829         redundancy.
40830         * m4/math_h.m4: Initialize and substitute variables for isnan
40831         module.
40832         * modules/isnan: New file.
40833         * modules/isnan-tests: New file.
40834         * modules/math: Add substitutions for new module.
40835         * tests/test-isnan.c: New file.
40836         * MODULES.html.sh: Mention new module.
40837
40838 2008-07-10  Ben Pfaff  <blp@gnu.org>
40839
40840         Add isnanf module.
40841         * lib/isnanf.m4: New file.
40842         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
40843         (gl_HAVE_ISNANF_IN_LIBM): New macro.
40844         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
40845         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
40846         * modules/isnanf: New file.
40847         * modules/isnanf-tests: New file.
40848         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
40849         files.
40850         * tests/test-isnanf-nolibm.c: factored most of its contents into
40851         new file tests/test-isnanf.h.
40852         * tests/test-isnanf.h: New file.
40853         * tests/test-isnanf.c: New file.
40854         * MODULES.html.sh: Mention new module.
40855         * doc/glibc-functions/isnanf.texi: Mention new module.
40856
40857 2008-07-10  Ben Pfaff  <blp@gnu.org>
40858
40859         Add isnand module.
40860         * lib/isnand.h: New file.
40861         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
40862         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
40863         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
40864         functionality also.
40865         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
40866         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
40867         (gl_HAVE_ISNAND_IN_LIBM): New macro.
40868         * modules/isnand: New file.
40869         * modules/isnand-tests: New file.
40870         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
40871         files.
40872         * tests/test-isnand-nolibm.c: factored most of its contents into
40873         new file tests/test-isnand.h.
40874         * tests/test-isnand.h: New file.
40875         * tests/test-isnand.c: New file.
40876         * MODULES.html.sh: Mention new module.
40877
40878 2008-07-10  Ben Pfaff  <blp@gnu.org>
40879
40880         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
40881         * lib/isnand.h: Rename lib/isnand-nolibm.h.
40882         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
40883         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
40884         * modules/isnanf-nolibm: Update references to renamed files.
40885         * modules/isnand-nolibm: Likewise.
40886         * modules/isnanf-nolibm-tests: Likewise.
40887         * modules/isnand-nolibm-tests: Likewise.
40888         * lib/frexp.c: Likewise.
40889         * lib/isfinite.c: Likewise.
40890         * lib/signbitd.c: Likewise.
40891         * lib/signbitf.c: Likewise.
40892         * lib/vasnprintf.c: Likewise.
40893         * tests/test-ceilf1.c: Likewise.
40894         * tests/test-ceilf2.c: Likewise.
40895         * tests/test-floorf1.c: Likewise.
40896         * tests/test-floorf2.c: Likewise.
40897         * tests/test-frexp.c: Likewise.
40898         * tests/test-round1.c: Likewise.
40899         * tests/test-round2.c: Likewise.
40900         * tests/test-roundf1.c: Likewise.
40901         * tests/test-strtod.c: Likewise.
40902         * tests/test-trunc1.c: Likewise.
40903         * tests/test-trunc2.c: Likewise.
40904         * tests/test-truncf1.c: Likewise.
40905         * tests/test-truncf2.c: Likewise.
40906         * NEWS: Mention the renamed header files.
40907
40908 2008-07-11  Jim Meyering  <meyering@redhat.com>
40909
40910         vc-list-files: make the last-resort awk code more portable
40911         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
40912         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
40913         does not support it.
40914
40915 2008-07-10  Eric Blake  <ebb9@byu.net>
40916
40917         Work with tar's bootstrap.
40918         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
40919         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
40920         an m4 comment.
40921
40922 2008-07-09  Jim Meyering  <meyering@redhat.com>
40923
40924         posix-shell.m4: fix typo that made this test malfunction
40925         * m4/posix-shell.m4: Remove capitalization in variable name.
40926
40927 2008-07-08  Bruno Haible  <bruno@clisp.org>
40928
40929         * m4/onceonly.m4: Update comments.
40930         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40931
40932 2008-07-04  Jim Meyering  <meyering@redhat.com>
40933
40934         * users.txt: Add vc-dwim.
40935         (bison, coreutils): Use the gitweb URL.
40936
40937 2008-07-03  Jim Meyering  <meyering@redhat.com>
40938
40939         * users.txt: Add libffcall.  From Sam Steingold.
40940
40941 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
40942
40943         getdate.y: do not ignore TZ with relative day, month or year offset
40944         * lib/getdate.y (get_date): Move the tz-handling block to follow the
40945         relative-date-handling, since otherwise, the latter would clobber the
40946         sole output (an updated Start value) of the tz-handling block.
40947         * tests/test-getdate.c: Tests for the fix
40948
40949 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40950
40951         Recognize 'foo_LIBRARIES += libgnu.a'.
40952         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
40953         makefile snippet has already specified an installation location,
40954         also using '+='.
40955
40956 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
40957
40958         getdate.y: factor out common actions
40959         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
40960         Use them in place of open-coded actions.
40961
40962 2008-07-01  Simon Josefsson  <simon@josefsson.org>
40963
40964         Add self-test for getdate module.
40965         * modules/getdate-tests: New file.
40966         * tests/test-getdate.c: New file.
40967
40968 2008-06-29  Bruno Haible  <bruno@clisp.org>
40969
40970         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
40971         .gitignore.
40972         Reported by Sylvain Beucler <beuc@beuc.net>.
40973
40974 2008-06-29  Bruno Haible  <bruno@clisp.org>
40975
40976         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
40977         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
40978
40979 2008-06-29  Bruno Haible  <bruno@clisp.org>
40980
40981         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
40982         EXTRA_DIST.
40983         Reported by Sylvain Beucler <beuc@beuc.net>.
40984
40985 2008-06-26  Jim Meyering  <meyering@redhat.com>
40986
40987         make several modules depend on the "open" module
40988         This provides slightly increased consistency when opening-for-write
40989         the name of a non-directory spelled with a trailing slash.
40990         * modules/chdir-safer: Likewise.
40991         * modules/chown: Likewise.
40992         * modules/clean-temp: Likewise.
40993         * modules/copy-file: Likewise.
40994         * modules/fchdir: Likewise.
40995         * modules/fcntl-safer: Likewise.
40996         * modules/pipe: Likewise.
40997         * modules/utime: Likewise.
40998         Prompted by Eric Blake and Bruno Haible.
40999
41000 2008-06-24  Andreas Schwab  <schwab@suse.de>
41001
41002         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
41003         literals can be used as initializers for global variables.
41004
41005 2008-06-23  Eric Blake  <ebb9@byu.net>
41006
41007         Make gnulib-cache.m4 easier to diff.
41008         * gnulib-tool (func_import): Allow newlines when reading cached
41009         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
41010
41011 2008-06-23  Bruno Haible  <bruno@clisp.org>
41012
41013         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
41014         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
41015         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
41016         m4/signalblocking.m4.
41017         (gl_PREREQ_SIGACTION): Don't invoke it.
41018         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
41019         gl_PREREQ_SIG_HANDLER_H.
41020         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41021         Don't check for sigaction here.
41022
41023 2008-06-23  Bruno Haible  <bruno@clisp.org>
41024
41025         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
41026         (install_handlers): Don't set the SA_RESETHAND flag.
41027
41028 2008-06-23  Bruno Haible  <bruno@clisp.org>
41029
41030         * m4/sigaction.m4: Comment fixes.
41031         * lib/signal.in.h: Likewise.
41032
41033 2008-06-23  Eric Blake  <ebb9@byu.net>
41034
41035         Fix typo.
41036         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
41037
41038         Avoid SA_ namespace.
41039         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
41040         Reported by Ralf Wildenhues.
41041
41042         Avoid test failure due to SA_RESTORER.
41043         * tests/test-sigaction.c (SA_MASK): New macro.
41044         (main): Avoid failing due to extension flags being set.
41045         Reported by Jim Meyering.
41046
41047         Revert use of sig-handler.h in sigprocmask.c.
41048         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
41049         it requires the existence of struct sigaction.
41050         * lib/sigprocmask.c (handler_t): Restore typedef.
41051         (rpl_signal, old_handlers): Use local type.
41052
41053 2008-06-22  Bruno Haible  <bruno@clisp.org>
41054
41055         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
41056         conditionally.
41057         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41058
41059 2008-06-22  Bruno Haible  <bruno@clisp.org>
41060
41061         * doc/posix-functions/siginterrupt.texi: Move note.
41062
41063         * lib/signal.in.h (SA_RESTART): New macro.
41064         * lib/sigaction.c: Update comment.
41065
41066         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
41067
41068         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
41069         (gl_PREREQ_SIGPROCMASK): Invoke it.
41070         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
41071
41072         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
41073
41074         * lib/sigprocmask.c: Update a comment.
41075
41076 2008-06-21  Eric Blake  <ebb9@byu.net>
41077
41078         Use sigaction module rather than signal().
41079         * modules/c-stack (Depends-on): Add sigaction.
41080         * modules/fatal-signal (Depends-on): Likewise.
41081         * modules/nanosleep (Depends-on): Likewise.
41082         * modules/sigprocmask (Files): Add sig-handler.h.
41083         * modules/sigaction (Files): Likewise.
41084         * lib/sig-handler.h (get_handler): New file, suggested by Paul
41085         Eggert.
41086         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
41087         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
41088         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
41089         (init_fatal_signals): Likewise.
41090         * lib/nanosleep.c (rpl_nanosleep): Likewise.
41091         (siginterrupt): Delete fallback.
41092         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
41093         instead.
41094         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
41095         siginterrupt.
41096
41097         New module sigaction, for mingw.
41098         * modules/sigaction: New module...
41099         * modules/sigaction-tests: ...and its test.
41100         * m4/sigaction.m4: New file.
41101         * lib/sigaction.c: Likewise.
41102         * tests/test-sigaction.c: Likewise.
41103         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
41104         * modules/signal (Makefile.am): Likewise.
41105         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
41106         needed.
41107         * doc/posix-headers/signal.texi (signal.h): Mention provided
41108         types.
41109         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
41110         that sigaction is preferable.
41111         * doc/posix-functions/sigaction.texi (sigaction): Mention new
41112         module.
41113         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41114         sigaction.
41115
41116         Improve robustness of sigprocmask by overriding signal.
41117         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
41118         is in use.
41119         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
41120         (SIGKILL, SIGSTOP): Provide fallbacks.
41121         (rpl_signal): Implement.
41122         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
41123         signal can be called inside handlers.
41124
41125         Fix nanosleep module on mingw.
41126         * modules/nanosleep (Depends-on): Add sys_select.
41127         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
41128
41129         Fix licensing of sigprocmask.
41130         * modules/raise (License): Relicense as LGPL.
41131
41132 2008-06-21  Bruno Haible  <bruno@clisp.org>
41133
41134         * lib/propername.c (proper_name_utf8): Don't use the transliterated
41135         result if it contains question marks.
41136         Reported by Michael Geng <linux@michaelgeng.de>.
41137
41138 2008-06-19  Bruno Haible  <bruno@clisp.org>
41139
41140         Fix CVS-ism.
41141         * doc/gnulib.texi: Include updated-stamp.texi.
41142         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
41143         (updated-stamp.texi): New rule.
41144         (gnulib.info): Depend on it.
41145         * doc/.gitignore: Add updated-stamp.texi.
41146         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
41147
41148 2008-06-19  Bruno Haible  <bruno@clisp.org>
41149
41150         * doc/Makefile (gnulib.info): Update and simplify dependencies.
41151         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41152
41153 2008-06-19  Eric Blake  <ebb9@byu.net>
41154
41155         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
41156         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
41157         Reported by Stepan Kasal.
41158
41159 2008-06-18  Bruno Haible  <bruno@clisp.org>
41160
41161         * lib/fatal-signal.c (init_fatal_signals): Add comment.
41162         Reported by Eric Blake.
41163
41164 2008-06-18  Eric Blake  <ebb9@byu.net>
41165
41166         Work around cygwin 1.5.25 strsignal bug.
41167         * tests/test-strsignal.c: Allow for const char *.
41168         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
41169
41170 2008-06-18  Simon Josefsson  <simon@josefsson.org>
41171
41172         * users.txt: Update URL to article and add author/date
41173         information.
41174
41175 2008-06-17  Bruno Haible  <bruno@clisp.org>
41176
41177         New macro gl_DISABLE_THREADS.
41178         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
41179         if the user did not pass --enable-threads or --disable-threads option.
41180         (gl_DISABLE_THREADS): New macro.
41181         Reported by Eric Blake <ebb9@byu.net>.
41182
41183 2008-06-17  Bruno Haible  <bruno@clisp.org>
41184
41185         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
41186         when the macro ignores it.
41187         Based on a patch by Eric Blake <ebb9@byu.net>.
41188
41189 2008-06-17  Bruno Haible  <bruno@clisp.org>
41190
41191         * modules/tls (License): Change to LGPLv2+.
41192         Reported by Eric Blake.
41193
41194 2008-06-17  Eric Blake  <ebb9@byu.net>
41195
41196         Simplify c-stack prerequisites.
41197         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
41198         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
41199         no longer requires <ucontext.h> to exist.  Optimize setrlimit
41200         check.
41201         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
41202         <sys/resource.h>.
41203
41204         Move c-stack test into testsuite.
41205         * modules/c-stack-tests: New file.
41206         * lib/c-stack.c [DEBUG]: Move test program...
41207         * tests/test-c-stack.c: ...into this new file.  Skip rather than
41208         fail test if sigaltstack is lacking.
41209         * tests/test-c-stack.sh: New driver file.
41210
41211 2008-06-16  Eric Blake  <ebb9@byu.net>
41212
41213         Use raise module consistently.
41214         * modules/fatal-signal (Depends-on): Add raise.
41215         * modules/sigprocmask (Depends-on): Likewise.
41216         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
41217         * lib/sigprocmask.c (sigprocmask): Likewise.
41218         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
41219         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
41220
41221         Fix compliance bug in sigpending.
41222         * lib/sigprocmask.c (sigpending): Return pending array via
41223         parameter, not return value.
41224
41225 2008-06-14  Eric Blake  <ebb9@byu.net>
41226
41227         Improve obstack-printf test code.
41228         * tests/test-obstack-printf.c (test_function): Fix comment, and
41229         simplify usage of obstack_* in macros.  Add a test for coverage.
41230         Reported by Bruno Haible.
41231
41232 2008-06-14  Bruno Haible  <bruno@clisp.org>
41233
41234         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
41235         array size as a constant, not as a const variable.
41236         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
41237         AC_USE_SYSTEM_EXTENSIONS.
41238         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41239         Test whether the obstack_printf function actually exists.
41240         * modules/obstack-printf (Depends-on): Add extensions.
41241         (Include): Remove obstack.h.
41242         * modules/obstack-printf-posix (Depends-on): Add extensions.
41243         (Include): Remove obstack.h.
41244
41245 2008-06-13  Eric Blake  <ebb9@byu.net>
41246
41247         Add obstack-printf and obstack-printf-posix modules.
41248         * modules/obstack-printf: New file.
41249         * modules/obstack-printf-posix: Likewise.
41250         * MODULES.html.sh (Misc): Mention them.
41251         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41252         Likewise.
41253         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41254         Likewise.
41255         * modules/stdio (Makefile.am): Accomodate new modules.
41256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41257         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
41258         Declare.
41259         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
41260         functions.
41261         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
41262         (gl_REPLACE_OBSTACK_PRINTF): New macros
41263         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
41264         * tests/test-obstack-printf.c: New file.
41265         * modules/obstack-printf-tests: Likewise.
41266         * modules/obstack-printf-posix-tests: Likewise.
41267
41268 2008-06-11  Bruno Haible  <bruno@clisp.org>
41269
41270         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
41271         * lib/open.c: Include errno.h.
41272         (open): Fail when attempting to write to a file that has a trailing
41273         slash.
41274         * tests/test-open.c (main): Test against trailing slash bug.
41275         * doc/posix-functions/open.texi: Mention the trailing slash bug.
41276
41277 2008-06-10  Bruno Haible  <bruno@clisp.org>
41278
41279         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
41280         for $? to work inside the trap command, with various /bin/sh-s.
41281         * tests/test-vc-list-files-cvs.sh: Likewise.
41282
41283 2008-06-10  Bruno Haible  <bruno@clisp.org>
41284
41285         * lib/acl-internal.h: Don't include gettext.h here.
41286         * lib/set-mode-acl.c: Include gettext.h here.
41287         * lib/copy-acl.c: Likewise.
41288
41289 2008-06-10  Bruno Haible  <bruno@clisp.org>
41290
41291         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
41292         * lib/wait-process.c (wait_subprocess): Likewise.
41293         * lib/execute.h (execute): Add termsigp argument.
41294         * lib/execute.c (execute): Likewise.
41295         * lib/csharpcomp.c (compile_csharp_using_pnet,
41296         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
41297         * lib/csharpexec.c (execute_csharp_using_pnet,
41298         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
41299         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
41300         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
41301         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
41302         is_jikes_present): Update.
41303         * lib/javaexec.c (execute_java_class): Update.
41304         * lib/javaversion.c (execute_and_read_line): Update.
41305         * NEWS: Document the changes.
41306         Reported by Eric Blake.
41307
41308 2008-06-10  Eric Blake  <ebb9@byu.net>
41309
41310         Add missing include.
41311         * tests/test-strstr.c (includes): Add <signal.h>.
41312         * tests/test-strcasestr.c (includes): Likewise.
41313         * tests/test-memmem.c (includes): Likewise.
41314
41315 2008-06-10  Bruno Haible  <bruno@clisp.org>
41316
41317         * lib/wait-process.c (wait_subprocess): Add an assertion.
41318
41319 2008-06-10  Bruno Haible  <bruno@clisp.org>
41320
41321         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
41322
41323 2008-06-10  Bruno Haible  <bruno@clisp.org>
41324
41325         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
41326         using alarm().
41327         * tests/test-strcasestr.c (main): Likewise.
41328         * tests/test-strstr.c (main): Likewise.
41329
41330 2008-06-09  Bruno Haible  <bruno@clisp.org>
41331
41332         Work around the Solaris 10 ACE ACLs ABI change.
41333         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
41334         declare if ACL_NO_TRIVIAL is present.
41335         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
41336         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
41337         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
41338         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
41339         define if ACL_NO_TRIVIAL is present.
41340         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
41341         and use the current ABI.
41342         (file_has_acl): Use same #if condition as elsewhere.
41343         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
41344         in use, and use the current ABI.
41345         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
41346         Reported by Jim Meyering.
41347
41348 2008-06-09  Eric Blake  <ebb9@byu.net>
41349
41350         Work around environments that (stupidly) ignore SIGALRM.
41351         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
41352         before using alarm().
41353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41354         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41355         Reported by Ian Beckwith <ianb@erislabs.net>.
41356
41357         Produce autobuild blurb earlier in log.
41358         * modules/autobuild (configure.ac-early): Move AB_INIT here.
41359
41360 2008-06-09  Jim Meyering  <meyering@redhat.com>
41361         and OndÅ™ej Vašík  <ovasik@redhat.com>
41362
41363         utimens.c: correct kernel bug work-around
41364         OndÅ™ej Vašík found that the invalid return value of 280 indicates
41365         failure, not success, and the kernel bug we're trying to work
41366         around affects not just the utimensat call, but also the fallback
41367         futimens call.
41368         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
41369         not success.
41370         [HAVE_FUTIMENS]: Use the same work-around, here.
41371
41372 2008-06-09  Jim Meyering  <meyering@redhat.com>
41373
41374         add more guards around definition of ACE_-related code
41375         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
41376         ALLOW and ACE_OWNER are also defined.
41377
41378 2008-06-08  Bruno Haible  <bruno@clisp.org>
41379
41380         * lib/acl-internal.h: Add me as co-author.
41381         * lib/file-has-acl.c: Likewise.
41382         * lib/set-mode-acl.c: Likewise.
41383         * lib/copy-acl.c: Likewise.
41384
41385 2008-06-08  Bruno Haible  <bruno@clisp.org>
41386
41387         Add support for AIX ACLs.
41388         * lib/acl-internal.h (acl_nontrivial): New declaration.
41389         * lib/file-has-acl.c (acl_nontrivial): New function.
41390         (file_has_acl): Add implementation using AIX 4 ACL API.
41391         * lib/set-mode-acl.c (qset_acl): Likewise.
41392         * lib/copy-acl.c (qcopy_acl): Likewise.
41393
41394 2008-06-08  Bruno Haible  <bruno@clisp.org>
41395
41396         Add support for HP-UX ACLs.
41397         * lib/acl-internal.h (acl_nontrivial): New declaration.
41398         * lib/file-has-acl.c (acl_nontrivial): New function.
41399         (file_has_acl): Add implementation using HP-UX 11 ACL API.
41400         * lib/set-mode-acl.c (qset_acl): Likewise.
41401         * lib/copy-acl.c (qcopy_acl): Likewise.
41402
41403 2008-06-08  Bruno Haible  <bruno@clisp.org>
41404
41405         Add support for Cygwin ACLs.
41406         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
41407         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
41408         the chmod_or_fchmod call.
41409         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
41410
41411 2008-06-08  Bruno Haible  <bruno@clisp.org>
41412
41413         Fix bug with setuid modes in Solaris 10+ code.
41414         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
41415         succeeded, when the mode contains some special bits.
41416
41417 2008-06-08  Bruno Haible  <bruno@clisp.org>
41418
41419         Add support for Solaris 7..10 ACLs.
41420         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
41421         declarations.
41422         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
41423         functions.
41424         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
41425         * lib/set-mode-acl.c (qset_acl): Likewise.
41426         * lib/copy-acl.c (qcopy_acl): Likewise.
41427
41428 2008-06-08  Bruno Haible  <bruno@clisp.org>
41429
41430         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
41431         declaration.
41432         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
41433         (acl_access_nontrivial): Remove MacOS X case.
41434         (file_has_acl): Use acl_extended_nontrivial.
41435         * lib/copy-acl.c (qcopy_acl): Likewise.
41436
41437 2008-06-08  Bruno Haible  <bruno@clisp.org>
41438
41439         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
41440
41441 2008-06-08  Jim Meyering  <meyering@redhat.com>
41442
41443         * modules/acl (Maintainer): Add Bruno Haible.
41444
41445 2008-06-07  Bruno Haible  <bruno@clisp.org>
41446
41447         Improve support for Tru64 ACLs.
41448         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
41449         ACL on OSF/1.
41450
41451 2008-06-07  Bruno Haible  <bruno@clisp.org>
41452
41453         Add support for MacOS X ACLs.
41454         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
41455         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
41456         * lib/set-mode-acl.c (qset_acl): Likewise.
41457         * lib/copy-acl.c (qcopy_acl): Likewise.
41458
41459 2008-06-07  Bruno Haible  <bruno@clisp.org>
41460
41461         Fix memory leak introduced on 2008-05-22.
41462         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
41463         use.
41464
41465 2008-06-07  Bruno Haible  <bruno@clisp.org>
41466
41467         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
41468         to construct an empty ACL.
41469
41470 2008-06-07  Bruno Haible  <bruno@clisp.org>
41471
41472         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
41473         precisely.
41474         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
41475
41476 2008-06-07  Bruno Haible  <bruno@clisp.org>
41477
41478         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
41479         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
41480
41481 2008-06-07  Bruno Haible  <bruno@clisp.org>
41482
41483         * doc/posix-functions/_setjmp.texi: Explain the use of this function
41484         regardless of POSIX.
41485         * doc/posix-functions/_longjmp.texi: Likewise.
41486         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
41487         SystemV platform in this case.
41488
41489 2008-06-06  Eric Blake  <ebb9@byu.net>
41490
41491         Document abort() bugs.
41492         * doc/posix-functions/abort.texi (abort): Mention anomalies.
41493
41494         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
41495         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
41496         sigsetjmp.
41497         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
41498         siglongjmp, but only as a macro.
41499         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
41500         is obsolete.
41501         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
41502
41503         Tweak documentation to cover cygwin argz bugs.
41504         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
41505         argz bug fix; no code change needed since no cygwin releases
41506         occurred between the last fix and the bug being tested.
41507         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
41508         module and recently fixed cygwin bugs.
41509         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
41510         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
41511         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
41512         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
41513         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
41514         Likewise.
41515         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
41516         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
41517         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
41518         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
41519         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
41520         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
41521         Likewise.
41522
41523         Avoid gcc warning on cygwin.
41524         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
41525         !ACL_NO_TRIVIAL]: Avoid unused variable.
41526
41527 2008-06-05  Eric Blake  <ebb9@byu.net>
41528
41529         Be tolerant of UNKNOWN version in gnulib-tool test dir.
41530         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
41531         git-version-gen fails to come up with a version.
41532         Reported by Simon Josefsson.
41533
41534 2008-06-05  Jim Meyering  <meyering@redhat.com>
41535             Paul Eggert  <eggert@cs.ucla.edu>
41536
41537         utimens.c: work around a probable Linux kernel bug
41538         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
41539         appears to be a kernel bug that causes utimensat to return 280
41540         instead of 0, indicating success.
41541
41542 2008-06-04  Bruno Haible  <bruno@clisp.org>
41543
41544         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
41545         2008-06-01 commit.
41546
41547 2008-06-04  Bruno Haible  <bruno@clisp.org>
41548
41549         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
41550         * lib/file-has-acl.c (acl_access_nontrivial): New function.
41551         (file_has_acl): Use it. Save errno afterwards.
41552         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
41553
41554 2008-06-03  Bruno Haible  <bruno@clisp.org>
41555
41556         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
41557         draft code. Simplify #ifs.
41558         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
41559         Put Solaris code after POSIX-draft code. Fix comments regarding
41560         Solaris 10, HP-UX. Mention Cygwin.
41561         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
41562
41563 2008-06-03  Eric Blake  <ebb9@byu.net>
41564
41565         Provide fallback for older kernels.
41566         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
41567         Provide runtime fallback if kernel lacks support.
41568         Reported by Mike Frysinger.
41569
41570 2008-06-02  Bruno Haible  <bruno@clisp.org>
41571
41572         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
41573         it exists.
41574
41575 2008-06-02  Bruno Haible  <bruno@clisp.org>
41576
41577         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
41578         * lib/copy-acl.c (qcopy_acl): Update comment.
41579
41580 2008-06-02  Bruno Haible  <bruno@clisp.org>
41581
41582         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
41583         like ACL APIs.
41584
41585 2008-06-02  Bruno Haible  <bruno@clisp.org>
41586
41587         * tests/test-file-has-acl.sh: Use different code for Cygwin.
41588         * tests/test-set-mode-acl.sh: Likewise.
41589         * tests/test-copy-acl.sh: Likewise.
41590         * tests/test-copy-file.sh: Likewise.
41591
41592 2008-06-02  Bruno Haible  <bruno@clisp.org>
41593
41594         * tests/test-file-has-acl.sh: Remove unused code.
41595
41596 2008-06-01  Bruno Haible  <bruno@clisp.org>
41597
41598         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
41599         (copy_acl): Just a wrapper around qcopy_acl that emits the error
41600         messages.
41601         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
41602
41603 2008-06-01  Bruno Haible  <bruno@clisp.org>
41604
41605         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
41606         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
41607         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
41608         APIs.
41609         * modules/acl-tests (configure.ac): Remove tests now contained in
41610         m4/acl.m4.
41611
41612 2008-06-02  Jim Meyering  <meyering@redhat.com>
41613
41614         announce-gen: use a better key-server host name
41615         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
41616         it may be more consistently reliable.  Suggested by Werner Koch
41617         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
41618
41619 2008-06-01  Bruno Haible  <bruno@clisp.org>
41620
41621         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
41622         Reported by Voroskoi Andras <voroskoi@gmail.com>.
41623
41624 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
41625
41626         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
41627
41628 2008-06-01  Bruno Haible  <bruno@clisp.org>
41629
41630         New ACL tests.
41631         * tests/test-file-has-acl.sh: New file.
41632         * tests/test-file-has-acl.c: New file.
41633         * tests/test-set-mode-acl.sh: New file.
41634         * tests/test-set-mode-acl.c: New file.
41635         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
41636         * tests/test-copy-acl.c: New file.
41637         * modules/acl-tests: New file, based on modules/copy-file-tests.
41638         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
41639         (Depends-on): Add acl-tests.
41640         (configure.ac): Remove checks.
41641         (Makefile.am): Don't create test-sameacls program here any more.
41642
41643 2008-06-01  Bruno Haible  <bruno@clisp.org>
41644
41645         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
41646         * tests/test-sameacls.c: Include progname.h.
41647         (main): Invoke set_program_name. Portability fixes for MacOS X,
41648         Solaris, HP-UX.
41649
41650 2008-06-01  Bruno Haible  <bruno@clisp.org>
41651
41652         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
41653         function.
41654         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
41655
41656 2008-06-01  Bruno Haible  <bruno@clisp.org>
41657
41658         * modules/rpmatch (Depends-on): Add strdup.
41659
41660 2008-06-01  Bruno Haible  <bruno@clisp.org>
41661
41662         * lib/pipe.c: Include unistd-safer.h.
41663         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
41664         * modules/pipe (Depends-on): Add unistd-safer.
41665
41666 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41667
41668         * modules/autobuild (configure.ac): Call AB_INIT.
41669
41670 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41671
41672         * tests/test-getaddrinfo.c: Don't print debug messages by default.
41673         Suggested by Bruno Haible <bruno@clisp.org>.
41674
41675 2008-05-30  Simon Josefsson  <simon@josefsson.org>
41676
41677         * tests/test-base64.c: Cast size_t to unsigned long when invoking
41678         printf.  Use %lu instead of %d.  Reported by Bruno Haible
41679         <bruno@clisp.org>.
41680
41681 2008-05-29  Eric Blake  <ebb9@byu.net>
41682
41683         Prefer new POSIX 200x interfaces over futimesat.
41684         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
41685         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
41686         when available.
41687         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
41688
41689 2008-05-28  Bruno Haible  <bruno@clisp.org>
41690
41691         * modules/stpcpy (License): Change to LGPLv2+.
41692         Requested by David Lutterkort <dlutter@redhat.com>.
41693
41694 2008-05-27  Bruno Haible  <bruno@clisp.org>
41695
41696         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
41697         current mingw.
41698         Reported by Jose E. Marchesi <jemarch@gnu.org>.
41699
41700 2008-05-27  Bruno Haible  <bruno@clisp.org>
41701
41702         * modules/iconv_open (Link): New section, from module 'iconv'.
41703         * modules/striconv (Link): Likewise.
41704         * modules/striconveh (Link): Likewise.
41705         * modules/xstriconv (Link): Likewise.
41706         * modules/unicodeio (Link): Likewise.
41707         * modules/propername (Link): Likewise.
41708         Reported by Jim Meyering.
41709
41710 2008-05-26  Jim Meyering  <meyering@redhat.com>
41711
41712         sha256: do not artificially restrict buffer length to be < 2^32
41713         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
41714         uint32_t to size_t.
41715         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
41716         to match.
41717
41718         avoid unaligned access errors, e.g., on sparc
41719         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
41720         direct access through a possibly-unaligned uint64* pointer.
41721         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
41722         direct access through a possibly-unaligned uint32* pointer.
41723         Prompted by this patch from Tom "spot" Callaway:
41724         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
41725
41726         sha512.c: fix typo in comment
41727         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
41728
41729 2008-05-25  Bruno Haible  <bruno@clisp.org>
41730
41731         * lib/set-mode-acl.c: Renamed from lib/acl.c.
41732         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
41733         (Makefile.am): Update lib_SOURCES.
41734
41735 2008-05-25  Bruno Haible  <bruno@clisp.org>
41736
41737         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
41738
41739 2008-05-25  Jim Meyering  <meyering@redhat.com>
41740
41741         useless-if-before-free: freed expr may have white-space differences
41742         * build-aux/useless-if-before-free: Recognize cases in which the
41743         freed expression differs from the tested one in embedded white
41744         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
41745         $1 was used, so we can't make any regexp shy.  Improved tests now
41746         detect this.
41747
41748         useless-if-before-free: accept white space in the expression.
41749         * build-aux/useless-if-before-free: For now, any white space
41750         in the expression must be identical in the free argument.
41751
41752         useless-if-before-free: efficiency tweak
41753         * build-aux/useless-if-before-free: Make the expression-matching
41754         regexp "shy".
41755         Make the *outer* regexp shy, not the expr-matching one.
41756
41757         update code-in-comment to accept cast of free arg
41758         * build-aux/useless-if-before-free: Update regexp.
41759
41760 2008-05-25  Bruno Haible  <bruno@clisp.org>
41761
41762         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
41763         * modules/copy-file-tests (Files, Makefile.am): Update.
41764         * tests/test-copy-file.c (func_test_copy): Update.
41765
41766 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
41767
41768         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
41769
41770 2008-05-23  Bruno Haible  <bruno@clisp.org>
41771
41772         Improve support for ACLs on OSF/1.
41773         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
41774         Remove fallback for unknown flavors of ACLs.
41775
41776 2008-05-22  Bruno Haible  <bruno@clisp.org>
41777
41778         Add support for ACLs on OSF/1.
41779         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
41780         replacements.
41781         (acl_free_text): New macro fallback.
41782         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
41783         acl_free.
41784         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
41785         acl_free_text function. Require AC_C_INLINE.
41786
41787 2008-05-22  Bruno Haible  <bruno@clisp.org>
41788
41789         Make copy_acl work on MacOS X 10.5.
41790         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
41791         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
41792         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
41793         If MODE_INSIDE_ACL, don't assume that every system has the same text
41794         representation for ACLs as FreeBSD.
41795         * lib/copy-acl.c (copy_acl): Add support for platforms with
41796         !MODE_INSIDE_ACL.
41797         * lib/file-has-acl.c (file_has_acl): Likewise.
41798         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
41799         FreeBSD, MacOS X, or IRIX, respectively.
41800
41801 2008-05-22  Bruno Haible  <bruno@clisp.org>
41802
41803         * lib/acl.h: Don't include <sys/acl.h>.
41804         (GETACLCNT): Move fallback to lib/acl-internal.h.
41805         * lib/acl-internal.h: Include <sys/acl.h> here.
41806         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
41807
41808 2008-05-22  Bruno Haible  <bruno@clisp.org>
41809
41810         Split off copy_acl function to separate file.
41811         * lib/copy-acl.c: New file, extracted from lib/acl.c.
41812         * lib/acl.c (copy_acl): Moved function to separate file.
41813         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
41814         * modules/acl (Files): Add lib/copy-acl.c.
41815         (Makefiles.am): Augment lib_SOURCES.
41816
41817 2008-05-22  Bruno Haible  <bruno@clisp.org>
41818
41819         * modules/copy-file-tests: New file.
41820         * tests/test-copy-file.sh: New file.
41821         * tests/test-copy-file.c: New file.
41822         * tests/test-copy-file-sameacls.c: New file.
41823
41824 2008-05-22  Eric Blake  <ebb9@byu.net>
41825
41826         Avoid gcc warning.
41827         * tests/test-memcmp.c (main): Pass NULL indirectly.
41828
41829 2008-05-21  Bruno Haible  <bruno@clisp.org>
41830
41831         Add reference doc about ACLs.
41832         * doc/acl-resources.txt: New file.
41833         * doc/acl-cygwin.txt: New file.
41834
41835 2008-05-21  Bruno Haible  <bruno@clisp.org>
41836
41837         Avoid one more warning from gcc.
41838         * lib/vasnprintf.c (IF_LINT): Update comments.
41839         (VASNPRINTF): Use it also for the 'prefix' array initializer.
41840
41841 2008-05-21  Jim Meyering  <meyering@redhat.com>
41842
41843         avoid a warning from gcc
41844         * lib/vasnprintf.c (IF_LINT): Define.
41845         (scale10_round_decimal_long_double):
41846         Use it to avoid a "may be used uninitialized" warning.
41847         (scale10_round_decimal_double): Likewise.
41848
41849 2008-05-21  Simon Josefsson  <simon@josefsson.org>
41850
41851         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
41852         declared.
41853
41854 2008-05-20  Bruno Haible  <bruno@clisp.org>
41855
41856         * tests/test-memcmp.c (main): Test also the sign of the result. Test
41857         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
41858
41859 2008-05-20  Simon Josefsson  <simon@josefsson.org>
41860
41861         * modules/memcmp-tests: New file.
41862         * tests/test-memcmp.c: New file.
41863
41864 2008-05-19  Bruno Haible  <bruno@clisp.org>
41865
41866         * modules/propername (Notice, configure.ac): Put quoted "..." into
41867         --keyword option.
41868         * lib/propername.h: Update comments accordingly.
41869         Reported by Eric Blake.
41870
41871 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
41872
41873         * modules/getpass-gnu (Depends-on): Add fseeko.
41874
41875 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41876
41877         * modules/base64-tests: New file.
41878
41879 2008-05-19  Bo Borgerson <gigabo@gmail.com>
41880
41881         * lib/base64.c (base64_decode_ctx): If a decode context structure
41882         was passed in use it to ignore newlines.  If a context structure
41883         was _not_ passed in, continue to treat newlines as garbage (this
41884         is the historical behavior).  Formerly base64_decode.
41885         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41886         takes a decode context structure.
41887         * lib/base64.h (base64_decode): Macro for four-argument calls.
41888         (base64_decode_alloc): Likewise.
41889         * lib/base64.c (base64_decode_ctx): If a decode context structure
41890         was passed in use it to ignore newlines.  If a context structure
41891         was _not_ passed in, continue to treat newlines as garbage (this
41892         is the historical behavior).  Formerly base64_decode.
41893         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
41894         takes a decode context structure.
41895         * lib/base64.h (base64_decode): Macro for four-argument calls.
41896         (base64_decode_alloc): Likewise.
41897
41898 2008-05-19  Jim Meyering  <meyering@redhat.com>
41899
41900         avoid a warning from gcc
41901         * lib/trim.c (IF_LINT): Define.
41902         (trim2): Use it to avoid a "may be used uninitialized" warning.
41903
41904         Fix doc typo.
41905         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
41906
41907 2008-05-19  Bruno Haible  <bruno@clisp.org>
41908
41909         * doc/glibc-functions/getpass.texi: Document limits of other
41910         implementations.
41911
41912 2008-05-19  Simon Josefsson  <simon@josefsson.org>
41913             Bruno Haible <bruno@clisp.org>
41914
41915         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
41916
41917 2008-05-18  Bruno Haible  <bruno@clisp.org>
41918
41919         * modules/propername: New file, from GNU gettext.
41920         * lib/propername.h: New file, from GNU gettext.
41921         * lib/propername.c: New file, from GNU gettext.
41922         * MODULES.html.sh (Internationalization functions): Add propername.
41923
41924 2008-05-16  Jim Meyering  <meyering@redhat.com>
41925             Bruno Haible  <bruno@clisp.org>
41926
41927         Avoid some warnings from "gcc -Wshadow".
41928         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
41929
41930 2008-05-15  Eric Blake  <ebb9@byu.net>
41931
41932         Extend previous patch to cygwin 1.7.0.
41933         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
41934         fast implementation in cygwin >= 1.7.0.
41935         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41936         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41937
41938 2008-05-15  Bruno Haible  <bruno@clisp.org>
41939
41940         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
41941         implementation in glibc >= 2.9.
41942         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41944
41945 2008-05-15  Bruno Haible  <bruno@clisp.org>
41946
41947         * MODULES.html.sh (Internationalization functions): Remove linebreak.
41948         (Unicode string functions): Add unilbrk/*.
41949         Reported by Karl Berry.
41950
41951 2008-05-15  Eric Blake  <ebb9@byu.net>
41952
41953         Fix violation of <stdbool.h> replacement in regex.
41954         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
41955         * lib/regexec.c (re_search_internal): Likewise.
41956         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
41957
41958 2008-05-15  Jim Meyering  <meyering@redhat.com>
41959
41960         avoid distracting test output when git or cvs is not found
41961         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
41962         * tests/test-vc-list-files-git.sh: Likewise.
41963
41964 2008-05-15  Eric Blake  <ebb9@byu.net>
41965
41966         Glibc finally accepted the memmem speedup code, bugzilla #5514.
41967         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
41968         glibc version.
41969         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
41970         * doc/posix-functions/strstr.texi (strstr): Likewise.
41971         * lib/str-two-way.h (MAX): Sychronize with glibc.
41972
41973 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
41974
41975         * lib/regcomp.c (optimize_utf8): Add a note on why we test
41976         opr.ctx_type.
41977         (calc_first): Initialize constraint field.
41978         (duplicate_node_closure): Use it instead of special casing ANCHORS.
41979         Fix grammar.
41980         (duplicate_node): Merge constraint field for all node types.
41981         (calc_eclosure_iter): Look at constraint field for all node types.
41982         * lib/regex_internal.c (create_cd_newstate): Don't look at
41983         opr.ctx_type.
41984
41985 2008-05-14  Bruno Haible  <bruno@clisp.org>
41986
41987         Help GCC to do better code generation.
41988         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
41989         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
41990         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
41991         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
41992         Declare with attribute 'malloc' if supported.
41993
41994 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
41995
41996         use "echo STR|wc -c" rather than unportable "expr length STR"
41997         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
41998         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
41999
42000 2008-05-14  Jim Meyering  <meyering@redhat.com>
42001
42002         use dd ibs=$n count=1 ... rather than less-portable head -c$n
42003         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
42004         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
42005         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
42006         via Collin Lasse.
42007
42008 2008-05-14  Eric Blake  <ebb9@byu.net>
42009
42010         Avoid quadratic growth in gl_LIBSOURCES.
42011         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
42012         Suggested by Bruno Haible.
42013
42014         Test xmemdup0.
42015         * modules/xmemdup0-tests: New file.
42016         * tests/test-xmemdup0.c: Likewise.
42017
42018 2008-05-13  Eric Blake  <ebb9@byu.net>
42019
42020         Split xmemdup0 into its own module.
42021         * modules/xmemdup0: New file.
42022         * lib/xmemdup0.h: Likewise.
42023         * lib/xmemdup0.c: Likewise.
42024         * MODULES.html.sh (Memory management functions): Add xmemdup0.
42025         * lib/xalloc.h (xmemdup0): Remove.
42026         * lib/xmalloc.c (xmemdup0): Likewise.
42027
42028 2008-05-13  Eric Blake  <ebb9@byu.net>
42029             Bruno Haible  <bruno@clisp.org>
42030
42031         Reduce number of forks required during autoconf.
42032         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
42033         and gl_LIBSOURCES_DIR.
42034         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
42035         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
42036         m4_syscmd per file.
42037         <m4_foreach_w>: Move...
42038         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
42039
42040 2008-05-13  Eric Blake  <ebb9@byu.net>
42041
42042         * gnulib-tool: Fix various comment typos.
42043
42044 2008-05-12  Bruno Haible  <bruno@clisp.org>
42045
42046         Tailor the linebreaking algorithm.
42047         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
42048
42049 2008-05-12  Bruno Haible  <bruno@clisp.org>
42050
42051         Update to Unicode 5.0.0.
42052         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42053         LBP_JV, LBP_JT. Redistribute values.
42054         (unilbrk_table): Change size.
42055         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
42056         Unicode TR#14 rev. 22.
42057         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
42058         LBP_JV, LBP_JT. Redistribute values.
42059         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
42060         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
42061         Update.
42062         * lib/unilbrk/lbrkprop1.h: Regenerated.
42063         * lib/unilbrk/lbrkprop2.h: Regenerated.
42064         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
42065         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
42066         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
42067         Likewise.
42068         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
42069         Likewise.
42070         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
42071         result.
42072         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42073         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42074         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
42075         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
42076         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
42077         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
42078
42079 2008-05-11  Bruno Haible  <bruno@clisp.org>
42080
42081         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
42082
42083 2008-05-11  Bruno Haible  <bruno@clisp.org>
42084
42085         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
42086         * modules/unilbrk/gen-lbrk: New file.
42087
42088 2008-05-11  Bruno Haible  <bruno@clisp.org>
42089
42090         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
42091         * m4/sha512.m4 (gl_SHA512): Likewise.
42092
42093 2008-05-11  Jim Meyering  <meyering@redhat.com>
42094
42095         New modules: crypto/sha256, crypto/sha512 (from coreutils)
42096         * modules/crypto/sha256: New file.
42097         * modules/crypto/sha512: Likewise.
42098         * lib/sha256.c: Likewise.
42099         * lib/sha256.h: Likewise.
42100         * lib/sha512.c: Likewise.
42101         * lib/sha512.h: Likewise.
42102         * lib/u64.h: Likewise.
42103         * m4/sha256.m4: Likewise.
42104         * m4/sha512.m4: Likewise.
42105         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
42106
42107 2008-05-10  Bruno Haible  <bruno@clisp.org>
42108
42109         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
42110         (Input/Output <stdio.h>): Add xprintf.
42111         (Signal handling <signal.h>): Add strsignal.
42112         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
42113         (Core language properties): Add func.
42114         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
42115         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
42116         strings.
42117         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
42118         (Input/output): New section.
42119         (File system functions): Add openat-die, stat-macros.
42120         (Networking functions): Add sockets.
42121         (Unicode string functions): Add unictype/*.
42122         (Support for building libraries and executables): Add gperf.
42123         (Support for building documentation): Add agpl-3.0.
42124         (Misc): Add nocrash.
42125
42126 2008-05-10  Bruno Haible  <bruno@clisp.org>
42127
42128         * modules/unictype/gen-ctype: New file.
42129
42130 2008-05-10  Jim Meyering  <meyering@redhat.com>
42131
42132         Make chdir-safer.c more efficient on a system with no symlinks.
42133         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
42134         also if ELOOP is zero.  Suggested by Bruno Haible.
42135
42136         Make chdir-safer.c slightly safer.
42137         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
42138         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
42139
42140         Avoid compile failure on systems without ELOOP (like mingw).
42141         * lib/chdir-safer.c (ELOOP): Define if not already defined.
42142         Reported by Bruno Haible.
42143
42144 2008-05-10  Bruno Haible  <bruno@clisp.org>
42145
42146         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
42147         (is_utf8_encoding): Use a case-insensitive comparison.
42148         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
42149         streq.
42150
42151 2008-05-10  Bruno Haible  <bruno@clisp.org>
42152
42153         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
42154         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
42155         * lib/unilbrk/ulc-common.h (iconv_string_length,
42156         iconv_string_keeping_offsets): Remove declarations.
42157         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
42158         Don't include <iconv.h>, streq.h, xsize.h.
42159         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
42160         conversion.
42161         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
42162         <iconv.h>, streq.h, xsize.h.
42163         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
42164         conversion.
42165         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
42166         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
42167         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
42168         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
42169
42170 2008-05-10  Bruno Haible  <bruno@clisp.org>
42171
42172         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
42173         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
42174
42175         * modules/unilbrk/u32-width-linebreaks-tests: New file.
42176         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
42177
42178         * modules/unilbrk/u16-width-linebreaks-tests: New file.
42179         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
42180
42181         * modules/unilbrk/u8-width-linebreaks-tests: New file.
42182         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
42183
42184         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
42185         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
42186
42187         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
42188         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
42189
42190         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
42191         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
42192
42193         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
42194         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
42195
42196 2008-05-10  Bruno Haible  <bruno@clisp.org>
42197
42198         Split up 'linebreak' module.
42199         * lib/unilbrk.h: New file, based on lib/linebreak.h.
42200         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
42201         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
42202         modifications.
42203         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
42204         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
42205         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
42206         lib/linebreak.c.
42207         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
42208         lib/linebreak.c.
42209         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
42210         lib/linebreak.c.
42211         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
42212         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
42213         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
42214         lib/linebreak.c.
42215         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
42216         lib/linebreak.c.
42217         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
42218         lib/linebreak.c.
42219         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
42220         lib/linebreak.c.
42221         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
42222         lib/linebreak.c.
42223         * modules/unilbrk/base: New file.
42224         * modules/unilbrk/tables: New file.
42225         * modules/unilbrk/u8-possible-linebreaks: New file.
42226         * modules/unilbrk/u16-possible-linebreaks: New file.
42227         * modules/unilbrk/u32-possible-linebreaks: New file.
42228         * modules/unilbrk/ulc-common: New file.
42229         * modules/unilbrk/ulc-possible-linebreaks: New file.
42230         * modules/unilbrk/u8-width-linebreaks: New file.
42231         * modules/unilbrk/u16-width-linebreaks: New file.
42232         * modules/unilbrk/u32-width-linebreaks: New file.
42233         * modules/unilbrk/ulc-width-linebreaks: New file.
42234         * lib/linebreak.h: Remove file.
42235         * lib/linebreak.c: Remove file.
42236         * m4/linebreak.m4: Remove file.
42237         * modules/linebreak: Remove file.
42238         * NEWS: Mention the changes.
42239
42240 2008-05-09  Eric Blake  <ebb9@byu.net>
42241
42242         Add xmemdup0.
42243         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
42244         implementation.
42245         * lib/xmalloc.c (xmemdup0): New C implementation.
42246
42247 2008-05-08  Bruno Haible  <bruno@clisp.org>
42248
42249         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
42250
42251 2008-05-07  Eric Blake  <ebb9@byu.net>
42252
42253         Support cross-compilation of <wctype.h>.
42254         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
42255         AC_CACHE_CHECK.
42256
42257 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
42258
42259         * build-aux/vc-list-files: Add support for bzr.
42260
42261 2008-05-03  Jim Meyering  <meyering@redhat.com>
42262
42263         avoid failed assertion with tight malloc
42264         * tests/test-getndelim2.c: Correct an off-by-one assertion.
42265
42266 2008-05-03  Simon Josefsson  <simon@josefsson.org>
42267
42268         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
42269         are needed from arpa/inet.h.
42270         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
42271         Reported by Bruno Haible.
42272
42273 2008-05-02  Jim Meyering  <meyering@redhat.com>
42274
42275         avoid compilation error on FreeBSD 6
42276         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
42277
42278 2008-05-01  Jim Meyering  <meyering@redhat.com>
42279
42280         useless-if-before-free: correct --help's exit status description
42281         * build-aux/useless-if-before-free (usage): Like grep, exit 0
42282         for one or more matches, etc.  Reported by Bruno Haible.
42283
42284         vc-list-files: make the stand-alone gnulib test work
42285         * modules/vc-list-files-tests (configure.ac):
42286         Define and AC_SUBST abs_aux_dir.
42287         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
42288         $(abs_top_srcdir) to each script and having each of them
42289         duplicate the work of setting PATH, set PATH here, using
42290         the new variable, abs_aux_dir instead.
42291         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
42292         * tests/test-vc-list-files-git.sh: Likewise.
42293         Reported by Bruno Haible.
42294
42295 2008-05-01  Bruno Haible  <bruno@clisp.org>
42296
42297         * lib/getndelim2.c (getndelim2): Fix newsize computation during
42298         reallocation. Rename 'done' to 'found_delimiter'.
42299
42300 2008-05-01  Jim Meyering  <meyering@redhat.com>
42301
42302         vc-list-files: accommodate /bin/sh like the one from Solaris 10
42303         * build-aux/vc-list-files: Use `...`, not $(...).
42304
42305 2008-04-30  Jim Meyering  <meyering@redhat.com>
42306
42307         add tests for vc-list-files
42308         * modules/vc-list-files-tests: New module.
42309         * tests/test-vc-list-files-cvs.sh: New file.
42310         * tests/test-vc-list-files-git.sh: New file.
42311
42312         avoid a warning from gcc
42313         * lib/getndelim2.c (IF_LINT): Define.
42314         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
42315
42316         vc-list-files: work properly with build-aux/cvsu, too
42317         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
42318         to all cvs-based clauses.
42319
42320         vc-list-files: work properly in the CVS+awk case, too
42321         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
42322
42323         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
42324         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
42325         take more than one file argument, so .  Add quotes, just in case $dir
42326         ever contains a shell meta-character.  Prompted by Soren Hansen in
42327         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
42328
42329 2008-04-29  Eric Blake  <ebb9@byu.net>
42330
42331         Optimize getndelim2 to use block operations when possible.
42332         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
42333         freadseek, and memchr2.
42334         * lib/getndelim2.c (getndelim2): Use them for block reads.
42335
42336 2008-04-29  Bruno Haible  <bruno@clisp.org>
42337
42338         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
42339         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42340         * modules/inet_ntop (Depends-on): Add extensions.
42341         * modules/inet_pton (Depends-on): Likewise.
42342         Reported by Simon Josefsson.
42343
42344 2008-04-29  Jim Meyering  <meyering@redhat.com>
42345
42346         When the is more than one match in a block, match all of them.
42347         * build-aux/useless-if-before-free: Iterate through each block
42348         until there are no more matches.
42349
42350         Fix broken useless-if-before-free script.
42351         * build-aux/useless-if-before-free: Fix typo: missing "?" after
42352         the expression to match cast of argument to free-like function.
42353
42354 2008-04-29  Eric Blake  <ebb9@byu.net>
42355
42356         Use new header.
42357         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
42358
42359 2008-04-29  Jim Meyering  <meyering@redhat.com>
42360
42361         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
42362         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
42363         by gnulib to exist and to declare e.g., inet_ntop.
42364         Don't include "inet_ntop.h", now removed.
42365
42366         * m4/arpa_inet_h.m4: Remove trailing blanks.
42367
42368 2008-04-29  Eric Blake  <ebb9@byu.net>
42369
42370         Silence valgrind on safe reads beyond potential array bounds.
42371         * lib/rawmemchr.valgrind: New file.
42372         * lib/strchrnul.valgrind: Likewise.
42373         * modules/rawmemchr (Files): Distribute new file.
42374         * modules/strchrnul (Files): Likewise.
42375         Suggested by Bruno Haible.
42376
42377 2008-04-29  Bruno Haible  <bruno@clisp.org>
42378
42379         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
42380         (inet_ntop, inet_pton): Change portability warning's wording.
42381         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
42382         Invoke gl_CHECK_NEXT_HEADERS.
42383         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
42384         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
42385         set ARPA_INET_H.
42386         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42387         * modules/arpa_inet (Description): No longer only for systems that
42388         lack it.
42389         (Depends-on): Add include_next.
42390         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
42391         HAVE_ARPA_INET_H.
42392
42393 2008-04-29  Jim Meyering  <meyering@redhat.com>
42394
42395         * modules/mkdir (License): Re-license as LGPLv2+.
42396
42397 2008-04-29  Bruno Haible  <bruno@clisp.org>
42398
42399         * modules/rawmemchr (Maintainer): Set to Eric.
42400         * modules/strchrnul (Maintainer): Likewise.
42401
42402 2008-04-29  Simon Josefsson  <simon@josefsson.org>
42403
42404         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
42405         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
42406
42407         * modules/arpa_inet (arpa/inet.h): Use them.
42408
42409 2008-04-28  Eric Blake  <ebb9@byu.net>
42410
42411         Test getndelim2.
42412         * modules/getndelim2-tests: New file.
42413         * tests/test-getndelim2.c: Likewise.
42414         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
42415         stream.
42416         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
42417
42418         * MODULES.html.sh: Document new module.
42419
42420 2008-04-20  Bruno Haible  <bruno@clisp.org>
42421
42422         * lib/c-stack.c (die): Use raise.
42423         * modules/c-stack (Depends-on): Add raise.
42424
42425 2008-04-28  Bruno Haible  <bruno@clisp.org>
42426
42427         Expect rpmatch to be declared.
42428         * lib/yesno.c (rpmatch): Remove declaration.
42429
42430         Declare rpmatch.
42431         * lib/stdlib.in.h (rpmatch): New declaration.
42432         * lib/rpmatch.c: Include <stdlib.h> first.
42433         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
42434         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
42435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
42436         HAVE_RPMATCH.
42437         * modules/rpmatch (Depends-on): Add stdlib, extensions.
42438         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
42439         (Include): Set to <stdlib.h>.
42440         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
42441         HAVE_RPMATCH.
42442         * NEWS: Document the change.
42443
42444 2008-04-28  Bruno Haible  <bruno@clisp.org>
42445
42446         Change rpmatch to use nl_langinfo when appropriate.
42447         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
42448         (N_): New macro.
42449         (localized_pattern): New function/macro.
42450         (try): Remove match, nomatch arguments. Copy the pattern into safe
42451         memory before caching it.
42452         (rpmatch): Use localized_pattern. Add translator comments.
42453         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
42454         Suggested by Eric Blake.
42455         * modules/rpmatch (Depends-on): Add stdbool.
42456
42457 2008-04-28  Eric Blake  <ebb9@byu.net>
42458
42459         Add rawmemchr module, matching glibc.
42460         * modules/string (Makefile.am): New indicator.
42461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
42462         * lib/string.in.h (rawmemchr): Declare when appropriate.
42463         * modules/rawmemchr: New file.
42464         * m4/rawmemchr.m4: Likewise.
42465         * lib/rawmemchr.c: Likewise.
42466         * modules/rawmemchr-tests: Likewise.
42467         * tests/test-rawmemchr.c: Likewise.
42468         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
42469         module.
42470         * modules/strchrnul (Depends-on): Add rawmemchr.
42471         * lib/strchrnul.c (strchrnul): Optimize a corner case.
42472
42473         Whitespace cleanup.
42474         * tests/test-strchrnul.c: Reindent.
42475         * lib/strchrnul.c: Likewise.
42476
42477         Optimize and test strchrnul.
42478         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
42479         * modules/strchrnul-tests: New file.
42480         * tests/test-strchrnul.c: Likewise.
42481
42482         Remove intprops dependency.
42483         * modules/memchr (Depends-on): Remove intprops.
42484         * modules/memrchr (Depends-on): Likewise.
42485         * modules/memchr2 (Depends-on): Likewise.
42486         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
42487         * lib/memrchr.c (__memrchr): Likewise.
42488         * lib/memrchr2.c (memchr2): Likewise.
42489         Reported by Simon Josefsson.
42490
42491 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42492
42493         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
42494         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42495
42496 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42497
42498         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
42499
42500         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
42501
42502         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
42503
42504         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
42505         declarations.
42506         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
42507
42508         * m4/inet_pton.m4: Don't check for header files.
42509
42510         * m4/inet_ntop.m4: Don't check for header files.
42511
42512 2008-04-28  Simon Josefsson  <simon@josefsson.org>
42513
42514         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
42515         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
42516         trigger for cygwin).
42517         Reported by Bruno Haible  <bruno@clisp.org>.
42518
42519 2008-04-28  Bruno Haible  <bruno@clisp.org>
42520
42521         * doc/posix-functions/strdup.texi: Mention mingw problem.
42522
42523 2008-04-27  Bruno Haible  <bruno@clisp.org>
42524
42525         * modules/stat-time-tests (Depends-on): Add sleep.
42526         * tests/test-stat-time.c (force_unlink): New function.
42527         (cleanup): Use it.
42528         (test_mtime): Remove the ctime related tests.
42529         (test_ctime): New function, containing the ctime related tests.
42530         (main): Call test_ctime, except on native Windows platforms.
42531
42532 2008-04-27  Bruno Haible  <bruno@clisp.org>
42533
42534         * lib/rpmatch.c (rpmatch): Add some comments.
42535         Reported by James Youngman <jay@gnu.org>.
42536
42537 2008-04-27  Bruno Haible  <bruno@clisp.org>
42538
42539         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
42540         quiet NaNs.
42541
42542 2008-04-27  Bruno Haible  <bruno@clisp.org>
42543
42544         Make test-yesno.sh work on mingw.
42545         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
42546         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
42547         (main): Set stdin to binary mode.
42548         * modules/yesno-tests (Depends-on): Add binary-io.
42549
42550 2008-04-27  Bruno Haible  <bruno@clisp.org>
42551
42552         Fix 'isfinite' on x86, x86_64, ia64 platforms.
42553         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
42554         argument that lie outside the IEEE 854 domain.
42555         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
42556         (gl_ISFINITE): Use it.
42557         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
42558
42559 2008-04-27  Bruno Haible  <bruno@clisp.org>
42560
42561         Allow local renaming in config.h.
42562         * lib/memrchr.c (memrchr): Don't undefine outside libc.
42563
42564 2008-04-27  Bruno Haible  <bruno@clisp.org>
42565
42566         * lib/memchr.c (__memchr): Change type of 'i'.
42567         * lib/memchr2.c (memchr2): Likewise.
42568
42569 2008-04-26  Eric Blake  <ebb9@byu.net>
42570         and Bruno Haible  <bruno@clisp.org>
42571
42572         Optimize and test memrchr.
42573         * modules/memrchr (Depends-on): Add intprops.
42574         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
42575         * modules/memrchr-tests: New file.
42576         * tests/test-memrchr.c: New file.
42577
42578 2008-04-26  Bruno Haible  <bruno@clisp.org>
42579
42580         Add tentative support for DragonFly BSD.
42581         * lib/stdio-impl.h: Add macros for DragonFly BSD.
42582         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
42583         fp.
42584         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42585         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
42586         * lib/fpurge.c (fpurge): Likewise.
42587         * lib/freadable.c (freaadable): Likewise.
42588         * lib/freadahead.c (freadahead): Likewise.
42589         * lib/freading.c (freading): Likewise.
42590         * lib/freadptr.c (freadptr): Likewise.
42591         * lib/freadseek.c (freadptrinc): Likewise.
42592         * lib/fseeko.c (fseeko): Likewise.
42593         * lib/fseterr.c (fseterr): Likewise.
42594         * lib/fwritable.c (fwritable): Likewise.
42595         * lib/fwriting.c (fwriting): Likewise.
42596
42597 2008-04-26  Bruno Haible  <bruno@clisp.org>
42598
42599         * lib/stdio-impl.h: New file.
42600         * lib/fbufmode.c: Include stdio-impl.h.
42601         (fbufmode): Use fp_, remove redundant #defines.
42602         * lib/fflush.c: Include stdio-impl.h.
42603         (clear_ungetc_buffer): Remove redundant #defines.
42604         * lib/fpurge.c: Include stdio-impl.h.
42605         (fpurge): Remove redundant #defines.
42606         * lib/freadable.c: Include stdio-impl.h.
42607         (freadable): Remove redundant #defines.
42608         * lib/freadahead.c: Include stdio-impl.h.
42609         (freadahead): Remove redundant #defines.
42610         * lib/freading.c: Include stdio-impl.h.
42611         (freading): Remove redundant #defines.
42612         * lib/freadptr.c: Include stdio-impl.h.
42613         (freadptr): Remove redundant #defines.
42614         * lib/freadseek.c: Include stdio-impl.h.
42615         (freadptrinc): Remove redundant #defines.
42616         * lib/fseeko.c: Include stdio-impl.h.
42617         (rpl_fseeko): Remove redundant #defines.
42618         * lib/fseterr.c: Include stdio-impl.h.
42619         (fseterr): Remove redundant #defines.
42620         * lib/fwritable.c: Include stdio-impl.h.
42621         (fwritable: Remove redundant #defines.
42622         * lib/fwriting.c: Include stdio-impl.h.
42623         (fwriting): Remove redundant #defines.
42624         * modules/fbufmode (Files): Add lib/stdio-impl.h.
42625         * modules/fflush (Files): Likewise.
42626         * modules/fpurge (Files): Likewise.
42627         * modules/freadable (Files): Likewise.
42628         * modules/freadahead (Files): Likewise.
42629         * modules/freading (Files): Likewise.
42630         * modules/freadptr (Files): Likewise.
42631         * modules/freadseek (Files): Likewise.
42632         * modules/fseeko (Files): Likewise.
42633         * modules/fseterr (Files): Likewise.
42634         * modules/fwritable (Files): Likewise.
42635         * modules/fwriting (Files): Likewise.
42636
42637 2008-04-26  Bruno Haible  <bruno@clisp.org>
42638
42639         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
42640         restore_seek_optimization, update_fpos_cache): New functions, extracted
42641         from rpl_fflush.
42642         (rpl_fflush): Use them.
42643         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
42644         (gl_REPLACE_FFLUSH): Use it.
42645
42646 2008-04-26  Bruno Haible  <bruno@clisp.org>
42647
42648         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
42649         on Solaris.
42650         * tests/test-xstrtoimax.sh: Likewise.
42651         * tests/test-xstrtoumax.sh: Likewise.
42652         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42653
42654 2008-04-26  Bruno Haible  <bruno@clisp.org>
42655
42656         * modules/memchr-tests: New file.
42657         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
42658
42659 2008-04-26  Eric Blake  <ebb9@byu.net>
42660             Bruno Haible  <bruno@clisp.org>
42661
42662         * lib/memchr.c: Include intprops.h.
42663         (__memchr): Optimize parallel detection of matching bytes. Rename local
42664         variables. Add explanatory comments.
42665
42666 2008-04-26  Bruno Haible  <bruno@clisp.org>
42667
42668         Fix module 'memchr', broken since 2000-10-28.
42669         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
42670
42671 2008-04-26  Bruno Haible  <bruno@clisp.org>
42672
42673         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
42674         comments.
42675
42676 2008-04-25  Eric Blake  <ebb9@byu.net>
42677
42678         Use native fstatat on cygwin 1.7.0.
42679         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
42680         first.
42681
42682 2008-04-23  Eric Blake  <ebb9@byu.net>
42683
42684         Improve memchr2 performance.
42685         * lib/memchr2.c (memchr2): Further optimize parallel detection of
42686         NUL bytes.
42687         * modules/memchr2 (Depends-on): Use intprops.h.
42688
42689 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42690
42691         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
42692         an inline function instead of a CPP macro.  Patch by Ben Pfaff
42693         <blp@cs.stanford.edu>.
42694
42695 2008-04-23  Simon Josefsson  <simon@josefsson.org>
42696
42697         * lib/arpa_inet.in.h: New file.
42698
42699         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
42700         (Makefile.am): Sed in substitute header file.
42701
42702         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
42703         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
42704
42705         * modules/inet_ntop (configure.ac): Use
42706         gl_ARPA_INET_MODULE_INDICATOR.
42707
42708         * modules/inet_pton (configure.ac): Use
42709         gl_ARPA_INET_MODULE_INDICATOR.
42710
42711 2008-04-22  Jim Meyering  <meyering@redhat.com>
42712
42713         * modules/verify (License): Re-license as LGPLv2+.
42714
42715 2008-04-22  Simon Josefsson  <simon@josefsson.org>
42716
42717         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
42718         parameter to void* as per POSIX standard (MinGW uses char*).
42719
42720 2008-04-21  Bruno Haible  <bruno@clisp.org>
42721
42722         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
42723         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
42724         Define to replacements if REPLACE_ISWCNTRL is 1.
42725         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
42726         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
42727         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
42728         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
42729         what it fixes.
42730         * doc/posix-functions/iswalpha.texi: Likewise.
42731         * doc/posix-functions/iswblank.texi: Likewise.
42732         * doc/posix-functions/iswcntrl.texi: Likewise.
42733         * doc/posix-functions/iswdigit.texi: Likewise.
42734         * doc/posix-functions/iswgraph.texi: Likewise.
42735         * doc/posix-functions/iswlower.texi: Likewise.
42736         * doc/posix-functions/iswprint.texi: Likewise.
42737         * doc/posix-functions/iswpunct.texi: Likewise.
42738         * doc/posix-functions/iswspace.texi: Likewise.
42739         * doc/posix-functions/iswupper.texi: Likewise.
42740         * doc/posix-functions/iswxdigit.texi: Likewise.
42741         Reported by Alain Guibert.
42742
42743 2008-04-21  Bruno Haible  <bruno@clisp.org>
42744
42745         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
42746         Patch by Alain Guibert.
42747
42748 2008-04-21  Bruno Haible  <bruno@clisp.org>
42749
42750         Fix test failures on mingw.
42751         * tests/test-xstrtol.c (print_no_progname): New function.
42752         (main): Install it in error_print_progname hook.
42753         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
42754         * tests/test-xstrtoimax.sh: Likewise.
42755         * tests/test-xstrtoumax.sh: Likewise.
42756
42757 2008-04-21  Bruno Haible  <bruno@clisp.org>
42758
42759         Fix test failure on mingw.
42760         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
42761
42762 2008-04-21  Bruno Haible  <bruno@clisp.org>
42763
42764         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
42765         Actually assign a value.
42766
42767 2008-04-20  Bruno Haible  <bruno@clisp.org>
42768
42769         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
42770         take 2.
42771         * lib/canonicalize.c (canonicalize_file_name): Elide if the
42772         'canonicalize-lgpl' module is also used.
42773         * lib/canonicalize-lgpl.c: Undo last change.
42774         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
42775
42776 2008-04-20  Bruno Haible  <bruno@clisp.org>
42777
42778         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
42779         config.h. Provide _mkdir based fallback for mingw.
42780         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
42781         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
42782         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
42783         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
42784         rather than defining mkdir in config.h.
42785         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
42786         (gl_SYS_STAT_H_DEFAULTS): New macro.
42787         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
42788         HAVE_IO_H any more.
42789         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
42790         HAVE_DECL_MKDIR and HAVE_IO_H.
42791
42792 2008-04-20  Bruno Haible  <bruno@clisp.org>
42793
42794         * lib/isapipe.c: Port to native Windows platforms.
42795
42796 2008-04-20  Bruno Haible  <bruno@clisp.org>
42797
42798         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
42799
42800 2008-04-21  Eric Blake  <ebb9@byu.net>
42801
42802         Work around preprocessors that don't handle UINTMAX_MAX.
42803         * lib/memchr2.c (memchr2): Avoid embedded #if.
42804         Reported by Alain Guibert, fix suggested by Bruno Haible.
42805
42806 2008-04-21  Simon Josefsson  <simon@josefsson.org>
42807
42808         * doc/posix-functions/strftime.texi (strftime): Explain better
42809         Windows incompatibility.  Suggested by Micah Cowan
42810         <micah@cowan.name>.
42811
42812 2008-04-20  Bruno Haible  <bruno@clisp.org>
42813
42814         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
42815         unistr/u8-mblen.
42816
42817 2008-04-20  Bruno Haible  <bruno@clisp.org>
42818
42819         Fix test failure on platforms with non-GNU iconv.
42820         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
42821         (U_TO_U8): Use it, rather than u16_to_u8.
42822         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
42823         units at the end of the input string.
42824         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
42825
42826 2008-04-20  Bruno Haible  <bruno@clisp.org>
42827
42828         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
42829         when the resulting length is 0.
42830         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
42831
42832 2008-04-20  Bruno Haible  <bruno@clisp.org>
42833
42834         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
42835         works.
42836         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
42837
42838 2008-04-20  Bruno Haible  <bruno@clisp.org>
42839
42840         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
42841         * modules/tsearch-tests (configure.ac): Test for initstate function.
42842
42843 2008-04-20  Bruno Haible  <bruno@clisp.org>
42844
42845         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
42846         for nlink_t if missing.
42847         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
42848
42849 2008-04-19  Bruno Haible  <bruno@clisp.org>
42850
42851         Work around snprintf bug on Linux libc5.
42852         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
42853         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42854         gl_SNPRINTF_SIZE1.
42855         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42856         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
42857         that test failed.
42858         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
42859         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
42860         * modules/snprintf (Files): Add m4/printf.m4.
42861         * modules/vsnprintf (Files): Likewise.
42862         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
42863         * doc/posix-functions/vsnprintf.texi: Likewise.
42864
42865 2008-04-19  Bruno Haible  <bruno@clisp.org>
42866
42867         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
42868         from 0.0058 to less than 10^-7.
42869
42870 2008-04-19  Bruno Haible  <bruno@clisp.org>
42871
42872         Fix rounding when a precision is given.
42873         * lib/vasnprintf.c (is_borderline): New function.
42874         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
42875         9...9x.
42876         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
42877         %e, %g.
42878         * tests/test-vasprintf-posix.c (test_function): Likewise.
42879         * tests/test-snprintf-posix.h (test_function): Likewise.
42880         * tests/test-sprintf-posix.h (test_function): Likewise.
42881         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
42882         * tests/test-printf-posix.h (test_function): Likewise.
42883         * tests/test-printf-posix.output: Update.
42884         Reported by John Darrington <john@darrington.wattle.id.au> via
42885         Ben Pfaff <blp@cs.stanford.edu>.
42886
42887 2008-04-18  Simon Josefsson  <simon@josefsson.org>
42888
42889         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
42890         Suggested by Bruno Haible <bruno@clisp.org>.
42891
42892 2008-04-17  Bruno Haible  <bruno@clisp.org>
42893
42894         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
42895         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
42896         implementation.
42897         Patch by Bruce Merry <bmerry@gmail.com>.
42898
42899 2008-04-17  Simon Josefsson  <simon@josefsson.org>
42900
42901         * doc/posix-functions/strftime.texi (strftime): Mention that %e
42902         doesn't work under Windows.
42903
42904 2008-04-16  Bruno Haible  <bruno@clisp.org>
42905
42906         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
42907         New macros.
42908         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
42909         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
42910         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
42911         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
42912         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
42913         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
42914         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
42915         macros.
42916         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
42917         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
42918         Northern Sotho, Uighur.
42919
42920 2008-04-16  Bruno Haible  <bruno@clisp.org>
42921
42922         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
42923         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
42924         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
42925         Reported by Daniel Bergström <daniel@octocode.com>.
42926
42927 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
42928             Bruno Haible  <bruno@clisp.org>
42929
42930         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
42931         function.
42932         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
42933         New functions, mostly extracted from gl_locale_name_default.
42934         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
42935
42936 2008-04-16  Eric Blake  <ebb9@byu.net>
42937
42938         Adjust strtod detection to catch glibc 2.7 bug.
42939         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
42940         Reported by John Gatewood Ham.
42941
42942 2008-04-16  Bruno Haible  <bruno@clisp.org>
42943
42944         Add tentative support for Linux libc5.
42945         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
42946         * lib/fpurge.c (fpurge): Likewise.
42947         * lib/freadable.c (freadable): Likewise.
42948         * lib/freadahead.c (freadahead): Likewise.
42949         * lib/freading.c (freading): Likewise.
42950         * lib/freadptr.c (freadptr): Likewise.
42951         * lib/freadseek.c (freadptrinc): Likewise.
42952         * lib/fseeko.c (rpl_fseeko): Likewise.
42953         * lib/fseterr.c (fseterr): Likewise.
42954         * lib/fwritable.c (fwritable): Likewise.
42955         * lib/fwriting.c (fwriting): Likewise.
42956         Reported by Alain Guibert <alguibert+bts@free.fr>.
42957
42958 2008-04-15  Bruno Haible  <bruno@clisp.org>
42959
42960         * modules/mathl (configure.ac): Define module indicator.
42961
42962 2008-04-15  Bruno Haible  <bruno@clisp.org>
42963
42964         * lib/logl.c (logl): Remove unused variables.
42965
42966 2008-04-15  Bruno Haible  <bruno@clisp.org>
42967
42968         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
42969         fails.
42970
42971 2008-04-15  Bruno Haible  <bruno@clisp.org>
42972
42973         * lib/trim.c (trim2): Fix argument of isspace() macro.
42974
42975 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
42976
42977         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
42978         to 0.
42979         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
42980
42981 2008-04-14  Bruno Haible  <bruno@clisp.org>
42982
42983         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
42984         AC_LANG_PROGRAM argument.
42985         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
42986         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
42987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42988         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
42989         * m4/math_h.m4 (gl_MATH_H): Likewise.
42990         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
42991         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42992         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
42993         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
42994         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42995         * m4/regex.m4 (gl_REGEX): Likewise.
42996         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
42997         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
42998         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42999         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
43000         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
43001         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
43002         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
43003         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
43004
43005 2008-04-14  Jim Meyering  <meyering@redhat.com>
43006
43007         test-strtod: fix typos: s/abs/fabs/
43008         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
43009
43010 2008-04-13  Bruno Haible  <bruno@clisp.org>
43011
43012         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
43013         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
43014         module is also used and while not building the reloc-wrapper.
43015
43016 2008-04-13  Bruno Haible  <bruno@clisp.org>
43017
43018         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
43019
43020 2008-04-13  Bruno Haible  <bruno@clisp.org>
43021
43022         Fix AIX compilation failure introduced on 2008-04-02.
43023         * tests/test-frexp.c (exp): Undefine before redefining.
43024         * tests/test-frexpl.c (exp): Likewise.
43025
43026 2008-04-13  Bruno Haible  <bruno@clisp.org>
43027
43028         Work around a HP-UX stdio bug.
43029         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
43030         * tests/test-ftello.c (main): Likewise.
43031         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
43032         * doc/posix-functions/ftello.texi: Likewise.
43033
43034 2008-04-13  Bruno Haible  <bruno@clisp.org>
43035
43036         Make test-signbit pass on HP-UX/hppa.
43037         * tests/test-signbit.c (minus_zerol): New variable.
43038         (test_signbitl): Use it.
43039
43040 2008-04-13  Bruno Haible  <bruno@clisp.org>
43041
43042         Make truncl work on OSF/1 4.0.
43043         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
43044         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43045         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
43046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
43047         HAVE_DECL_TRUNCL.
43048         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
43049         HAVE_DECL_TRUNCL.
43050         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
43051
43052 2008-04-13  Bruno Haible  <bruno@clisp.org>
43053
43054         * lib/unictype.h: Remove trailing comma from enumeration definitions.
43055
43056 2008-04-13  Bruno Haible  <bruno@clisp.org>
43057
43058         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
43059         expression, so as to avoid HP-UX 11 cc compiler bug.
43060
43061 2008-04-13  Bruno Haible  <bruno@clisp.org>
43062
43063         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
43064
43065 2008-04-13  Bruno Haible  <bruno@clisp.org>
43066
43067         * lib/git-merge-changelog.c: Remove empty declaration outside of
43068         functions.
43069
43070 2008-04-13  Bruno Haible  <bruno@clisp.org>
43071
43072         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
43073
43074 2008-04-13  Bruno Haible  <bruno@clisp.org>
43075
43076         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
43077         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
43078         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
43079         also if it exists but lacks definitions of the SHUT_* macros.
43080         * modules/sys_socket (Description): Update.
43081         Reported by Elbert Pol <e.pol@chello.nl>.
43082
43083 2008-04-13  Bruno Haible  <bruno@clisp.org>
43084
43085         * lib/localcharset.c (OS2): Don't redefine if already defined.
43086         Reported by Elbert Pol <e.pol@chello.nl>.
43087
43088 2008-04-13  Bruno Haible  <bruno@clisp.org>
43089
43090         * lib/binary-io.h [__EMX__]: Include <io.h>.
43091         Reported by Elbert Pol <e.pol@chello.nl>.
43092
43093 2008-04-12  Bruno Haible  <bruno@clisp.org>
43094
43095         * lib/fpucw.h: Enable the definitions also for x86_64.
43096         Needed for NetBSD/x86_64.
43097         Reported by Thomas Klausner <tk@giga.or.at>.
43098
43099 2008-04-12  Bruno Haible  <bruno@clisp.org>
43100
43101         * tests/test-strtod.c: Include isnand.h.
43102         (main): Use isnand instead of isnan.
43103         Reported by Jim Meyering.
43104
43105 2008-04-12  Bruno Haible  <bruno@clisp.org>
43106
43107         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
43108         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
43109
43110 2008-04-12  Jim Meyering  <meyering@redhat.com>
43111
43112         * m4/math_h.m4 (gl_MATH_H): Fix typos.
43113
43114 2008-04-12  Bruno Haible  <bruno@clisp.org>
43115
43116         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
43117         Reported by Elbert Pol <e.pol@chello.nl>.
43118
43119 2008-04-12  Eric Blake  <ebb9@byu.net>
43120
43121         Work around Solaris 10 math.h bug.
43122         * m4/math_h.m4 (gl_MATH_H): Check for bug.
43123         (gl_MATH_H_DEFAULTS): Set up default.
43124         * modules/math (Makefile.am): Replace new indicators.
43125         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
43126         * tests/test-math.c (main): Test this.
43127         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
43128         * doc/posix-headers/math.texi (math.h): Mention bug.
43129         Reported by Nelson H. F. Beebe and Jim Meyering.
43130
43131 2008-04-11  Bruno Haible  <bruno@clisp.org>
43132
43133         Adapt to future versions of Apple GCC.
43134         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
43135         Reported by Peter O'Gorman <peter@pogma.com>.
43136
43137 2008-04-11  Bruno Haible  <bruno@clisp.org>
43138
43139         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
43140
43141 2008-04-11  Bruno Haible  <bruno@clisp.org>
43142
43143         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
43144
43145         * modules/getaddrinfo-tests (Makefile.am): Define
43146         test_getaddrinfo_LDADD.
43147
43148 2008-04-11  Bruno Haible  <bruno@clisp.org>
43149
43150         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
43151         (init): Fix syntax error.
43152         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
43153         is declared.
43154
43155 2008-04-11  Bruno Haible  <bruno@clisp.org>
43156
43157         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
43158         * modules/glob (Depends-on): Add stdbool.
43159
43160 2008-04-11  Bruno Haible  <bruno@clisp.org>
43161
43162         * lib/trim.c: Include <string.h>.
43163
43164 2008-04-11  Eric Blake  <ebb9@byu.net>
43165
43166         Avoid compile failure on OS/2.
43167         * lib/regex_internal.h (internal_function): Disable optimization
43168         on OS/2 (__EMX__), where it caused compiler error.
43169         Reported by Elbert Pol.
43170
43171 2008-04-11  Bruno Haible  <bruno@clisp.org>
43172
43173         Flush the standard error stream before aborting. Needed on mingw.
43174         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
43175         * tests/test-array_list.c (ASSERT): Likewise.
43176         * tests/test-array_oset.c (ASSERT): Likewise.
43177         * tests/test-avltree_list.c (ASSERT): Likewise.
43178         * tests/test-avltree_oset.c (ASSERT): Likewise.
43179         * tests/test-avltreehash_list.c (ASSERT): Likewise.
43180         * tests/test-binary-io.c (ASSERT): Likewise.
43181         * tests/test-byteswap.c (ASSERT): Likewise.
43182         * tests/test-c-ctype.c (ASSERT): Likewise.
43183         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
43184         * tests/test-c-strcasestr.c (ASSERT): Likewise.
43185         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
43186         * tests/test-c-strstr.c (ASSERT): Likewise.
43187         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
43188         * tests/test-canonicalize.c (ASSERT): Likewise.
43189         * tests/test-carray_list.c (ASSERT): Likewise.
43190         * tests/test-ceilf1.c (ASSERT): Likewise.
43191         * tests/test-ceilf2.c (ASSERT): Likewise.
43192         * tests/test-ceill.c (ASSERT): Likewise.
43193         * tests/test-count-one-bits.c (ASSERT): Likewise.
43194         * tests/test-fbufmode.c (ASSERT): Likewise.
43195         * tests/test-fflush2.c (ASSERT): Likewise.
43196         * tests/test-floorf1.c (ASSERT): Likewise.
43197         * tests/test-floorf2.c (ASSERT): Likewise.
43198         * tests/test-floorl.c (ASSERT): Likewise.
43199         * tests/test-fopen.c (ASSERT): Likewise.
43200         * tests/test-fpending.c (ASSERT): Likewise.
43201         * tests/test-fprintf-posix.c (ASSERT): Likewise.
43202         * tests/test-fpurge.c (ASSERT): Likewise.
43203         * tests/test-freadable.c (ASSERT): Likewise.
43204         * tests/test-freadahead.c (ASSERT): Likewise.
43205         * tests/test-freading.c (ASSERT): Likewise.
43206         * tests/test-freadptr.c (ASSERT): Likewise.
43207         * tests/test-freadptr2.c (ASSERT): Likewise.
43208         * tests/test-freadseek.c (ASSERT): Likewise.
43209         * tests/test-freopen.c (ASSERT): Likewise.
43210         * tests/test-frexp.c (ASSERT): Likewise.
43211         * tests/test-frexpl.c (ASSERT): Likewise.
43212         * tests/test-fseek.c (ASSERT): Likewise.
43213         * tests/test-fseeko.c (ASSERT): Likewise.
43214         * tests/test-fstrcmp.c (ASSERT): Likewise.
43215         * tests/test-ftell.c (ASSERT): Likewise.
43216         * tests/test-ftello.c (ASSERT): Likewise.
43217         * tests/test-func.c (ASSERT): Likewise.
43218         * tests/test-fwritable.c (ASSERT): Likewise.
43219         * tests/test-fwriting.c (ASSERT): Likewise.
43220         * tests/test-getdelim.c (ASSERT): Likewise.
43221         * tests/test-getline.c (ASSERT): Likewise.
43222         * tests/test-i-ring.c (ASSERT): Likewise.
43223         * tests/test-iconv-utf.c (ASSERT): Likewise.
43224         * tests/test-iconv.c (ASSERT): Likewise.
43225         * tests/test-isfinite.c (ASSERT): Likewise.
43226         * tests/test-isnand.c (ASSERT): Likewise.
43227         * tests/test-isnanf.c (ASSERT): Likewise.
43228         * tests/test-isnanl.h (ASSERT): Likewise.
43229         * tests/test-ldexpl.c (ASSERT): Likewise.
43230         * tests/test-linked_list.c (ASSERT): Likewise.
43231         * tests/test-linkedhash_list.c (ASSERT): Likewise.
43232         * tests/test-localename.c (ASSERT): Likewise.
43233         * tests/test-lseek.c (ASSERT): Likewise.
43234         * tests/test-mbscasecmp.c (ASSERT): Likewise.
43235         * tests/test-mbscasestr1.c (ASSERT): Likewise.
43236         * tests/test-mbscasestr2.c (ASSERT): Likewise.
43237         * tests/test-mbscasestr3.c (ASSERT): Likewise.
43238         * tests/test-mbscasestr4.c (ASSERT): Likewise.
43239         * tests/test-mbschr.c (ASSERT): Likewise.
43240         * tests/test-mbscspn.c (ASSERT): Likewise.
43241         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
43242         * tests/test-mbspbrk.c (ASSERT): Likewise.
43243         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
43244         * tests/test-mbsrchr.c (ASSERT): Likewise.
43245         * tests/test-mbsspn.c (ASSERT): Likewise.
43246         * tests/test-mbsstr1.c (ASSERT): Likewise.
43247         * tests/test-mbsstr2.c (ASSERT): Likewise.
43248         * tests/test-mbsstr3.c (ASSERT): Likewise.
43249         * tests/test-memchr2.c (ASSERT): Likewise.
43250         * tests/test-memmem.c (ASSERT): Likewise.
43251         * tests/test-open.c (ASSERT): Likewise.
43252         * tests/test-printf-frexp.c (ASSERT): Likewise.
43253         * tests/test-printf-frexpl.c (ASSERT): Likewise.
43254         * tests/test-printf-posix.c (ASSERT): Likewise.
43255         * tests/test-quotearg.c (ASSERT): Likewise.
43256         * tests/test-rbtree_list.c (ASSERT): Likewise.
43257         * tests/test-rbtree_oset.c (ASSERT): Likewise.
43258         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
43259         * tests/test-round1.c (ASSERT): Likewise.
43260         * tests/test-roundf1.c (ASSERT): Likewise.
43261         * tests/test-roundl.c (ASSERT): Likewise.
43262         * tests/test-signbit.c (ASSERT): Likewise.
43263         * tests/test-sleep.c (ASSERT): Likewise.
43264         * tests/test-snprintf-posix.c (ASSERT): Likewise.
43265         * tests/test-snprintf.c (ASSERT): Likewise.
43266         * tests/test-sprintf-posix.c (ASSERT): Likewise.
43267         * tests/test-stat-time.c (ASSERT): Likewise.
43268         * tests/test-strcasestr.c (ASSERT): Likewise.
43269         * tests/test-strerror.c (ASSERT): Likewise.
43270         * tests/test-striconv.c (ASSERT): Likewise.
43271         * tests/test-striconveh.c (ASSERT): Likewise.
43272         * tests/test-striconveha.c (ASSERT): Likewise.
43273         * tests/test-strsignal.c (ASSERT): Likewise.
43274         * tests/test-strstr.c (ASSERT): Likewise.
43275         * tests/test-strtod.c (ASSERT): Likewise.
43276         * tests/test-trunc1.c (ASSERT): Likewise.
43277         * tests/test-trunc2.c (ASSERT): Likewise.
43278         * tests/test-truncf1.c (ASSERT): Likewise.
43279         * tests/test-truncf2.c (ASSERT): Likewise.
43280         * tests/test-truncl.c (ASSERT): Likewise.
43281         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
43282         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
43283         * tests/test-vasnprintf.c (ASSERT): Likewise.
43284         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
43285         * tests/test-vasprintf.c (ASSERT): Likewise.
43286         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
43287         * tests/test-vprintf-posix.c (ASSERT): Likewise.
43288         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
43289         * tests/test-vsnprintf.c (ASSERT): Likewise.
43290         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
43291         * tests/test-wcwidth.c (ASSERT): Likewise.
43292         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
43293         * tests/test-xprintf-posix.c (ASSERT): Likewise.
43294         * tests/test-xvasprintf.c (ASSERT): Likewise.
43295         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
43296         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
43297         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
43298         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
43299         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
43300         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
43301         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
43302         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
43303         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
43304         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
43305         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
43306         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
43307         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
43308         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
43309         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
43310         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
43311         * tests/unictype/test-block_list.c (ASSERT): Likewise.
43312         * tests/unictype/test-block_of.c (ASSERT): Likewise.
43313         * tests/unictype/test-block_test.c (ASSERT): Likewise.
43314         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
43315         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
43316         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
43317         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
43318         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
43319         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
43320         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
43321         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
43322         * tests/unictype/test-combining.c (ASSERT): Likewise.
43323         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
43324         * tests/unictype/test-digit.c (ASSERT): Likewise.
43325         * tests/unictype/test-mirror.c (ASSERT): Likewise.
43326         * tests/unictype/test-numeric.c (ASSERT): Likewise.
43327         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
43328         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
43329         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
43330         * tests/unictype/test-scripts.c (ASSERT): Likewise.
43331         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
43332         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
43333         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
43334         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
43335         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
43336         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
43337         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
43338         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
43339         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
43340         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
43341         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
43342         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
43343         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
43344         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
43345         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
43346         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
43347         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
43348         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
43349         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
43350         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
43351         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
43352         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
43353         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
43354         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
43355         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
43356         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
43357         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
43358         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
43359         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
43360         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
43361         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
43362         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
43363         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
43364         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
43365         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
43366         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
43367         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
43368         Reported by Eric Blake.
43369
43370 2008-04-11  Bruno Haible  <bruno@clisp.org>
43371
43372         * lib/wchar.in.h: Tweak comment.
43373
43374 2008-04-11  Bruno Haible  <bruno@clisp.org>
43375
43376         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
43377         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
43378         gl_COMMON.
43379         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
43380
43381 2008-04-11  Bruno Haible  <bruno@clisp.org>
43382
43383         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
43384
43385 2008-04-11  Simon Josefsson  <simon@josefsson.org>
43386
43387         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
43388         of attempting to use non-existing /dev/*random.  Based on patch
43389         from Adam Strzelecki <ono@java.pl> in
43390         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
43391
43392 2008-04-08  Bruno Haible  <bruno@clisp.org>
43393
43394         Add tentative support for emx+gcc.
43395         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
43396         * lib/fpurge.c (fpurge): Likewise.
43397         * lib/freadable.c (freadable): Likewise.
43398         * lib/freadahead.c (freadahead): Likewise.
43399         * lib/freading.c (freading): Likewise.
43400         * lib/freadptr.c (freadptr): Likewise.
43401         * lib/freadseek.c (freadptrinc): Likewise.
43402         * lib/fseeko.c (rpl_fseeko): Likewise.
43403         * lib/fseterr.c (fseterr): Likewise.
43404         * lib/fwritable.c (fwritable): Likewise.
43405         * lib/fwriting.c (fwriting): Likewise.
43406         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
43407
43408 2008-04-09  Eric Blake  <ebb9@byu.net>
43409
43410         Avoid some autoconf warnings.
43411         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
43412         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
43413         * m4/afs.m4 (gl_AFS): Likewise.
43414         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
43415         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
43416         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43417         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
43418         (gl_INTEGER_TYPE_SUFFIX): Likewise.
43419         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
43420         (AC_CHECK_DECLS_ONCE): Likewise.
43421         Rename file...
43422         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
43423         gnulib-tool requires autoconf 2.59 or better.
43424         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
43425
43426 2008-04-08  Eric Blake  <ebb9@byu.net>
43427
43428         Use 'git describe --match' if present (added in git 1.5.5).
43429         * build-aux/git-version-gen: Limit result to tags that match 'v*'
43430         if possible.
43431
43432 2008-04-08  Bruno Haible  <bruno@clisp.org>
43433
43434         Add tentative support for OpenServer.
43435         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
43436         _ptr, _cnt.
43437         * lib/fpurge.c (fpurge): Likewise.
43438         * lib/freadable.c (freadable): Likewise.
43439         * lib/freadahead.c (freadahead): Likewise.
43440         * lib/freading.c (freading): Likewise.
43441         * lib/freadptr.c (freadptr): Likewise.
43442         * lib/freadseek.c (freadptrinc): Likewise.
43443         * lib/fseeko.c (rpl_fseeko): Likewise.
43444         * lib/fseterr.c (fseterr): Likewise.
43445         * lib/fwritable.c (fwritable): Likewise.
43446         * lib/fwriting.c (fwriting): Likewise.
43447         Reported by Roger Cornelius <rac@tenzing.org> and
43448         Brian K. White <brian@aljex.com>.
43449
43450 2008-04-06  Jim Meyering  <meyering@redhat.com>
43451
43452         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
43453
43454 2008-04-06  Bruno Haible  <bruno@clisp.org>
43455
43456         Avoid possible error with non-ASCII bytes in UTF-8 locales.
43457         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
43458         * tests/test-printf-posix.sh: Likewise.
43459         * tests/test-vfprintf-posix.sh: Likewise.
43460         * tests/test-vprintf-posix.sh: Likewise.
43461         * tests/test-xprintf-posix.sh: Likewise.
43462
43463 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43464
43465         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
43466         hide error from 'ls', needed on OS/2.
43467         Report by Elbert Pol <elbert.pol@gmail.com>.
43468
43469 2008-04-04  Eric Blake  <ebb9@byu.net>
43470
43471         Make test-fseeko.c failures meaningful.
43472         * tests/test-fseeko.c: Print line number on failure.
43473         * tests/test-fseek.c: Likewise.
43474         Reported by Nelson H. F. Beebe.
43475
43476         Improve strtod bug detection check.
43477         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
43478         required for Solaris 10.
43479         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
43480
43481 2008-04-04  Bruno Haible  <bruno@clisp.org>
43482
43483         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
43484         by m4/setenv.m4.
43485
43486 2008-04-03  Eric Blake  <ebb9@byu.net>
43487
43488         Ensure sane .version contents.
43489         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
43490         version string.
43491         * build-aux/git-version-gen: Improve documentation.
43492
43493         Make GNU make output nicer.
43494         * top/GNUmakefile [!_have-Makefile]: Add dependency on
43495         MAKECMDGOALS to enforce message for all command line targets.  Set
43496         srcdir for use in maint.mk.
43497
43498         Another maintainer tweak.
43499         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
43500         a target that regenerates version.
43501
43502 2008-04-03  Jim Meyering  <meyering@redhat.com>
43503
43504         vc-list-files: don't cause coreutils "make po-check" failure
43505         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
43506
43507 2008-04-03  Eric Blake  <ebb9@byu.net>
43508
43509         Allow VPATH usage of vc-list-files.
43510         * build-aux/vc-list-files (scriptversion): Add timestamp.
43511         (options): Add --help, --version, -C.
43512         (CVS): Support installed cvsu.
43513
43514 2008-04-02  Bruno Haible  <bruno@clisp.org>
43515
43516         Avoid some "statement with no effect" warnings from gcc.
43517         * tests/test-wctype.c (main): Explicitly ignore unused values.
43518         Reported by Jim Meyering.
43519
43520 2008-04-02  Jim Meyering  <meyering@redhat.com>
43521
43522         Avoid some warnings from "gcc -Wshadow".
43523         * tests/test-frexp.c (exp): Define to a different identifier.
43524         * tests/test-frexpl.c (exp): Likewise.
43525
43526 2008-04-03  Jim Meyering  <meyering@redhat.com>
43527
43528         bootstrap: remove dangling *.[ch] symlinks from lib
43529         * build-aux/bootstrap [dangling symlink removal]: Move find's
43530         -depth option to precede all others, to avoid a warning.
43531         Remove *.[ch] files too, and from "$source_base" (usually lib/).
43532
43533 2008-04-02  Bruno Haible  <bruno@clisp.org>
43534
43535         Avoid some warnings from "gcc -Wshadow".
43536         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
43537         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
43538         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
43539         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
43540         Reported by Jim Meyering.
43541
43542 2008-04-01  Bruno Haible  <bruno@clisp.org>
43543
43544         Fix test to work on IRIX 6.5 with cc.
43545         * tests/test-math.c (numeric_equal): New function.
43546         (main): Use it.
43547
43548 2008-04-01  Bruno Haible  <bruno@clisp.org>
43549
43550         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
43551
43552 2008-04-01  Bruno Haible  <bruno@clisp.org>
43553
43554         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
43555         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43556         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
43557         (Depends-on): Remove math.
43558
43559         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
43560         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43561         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
43562         (Depends-on): Remove math.
43563
43564         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
43565         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43566         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
43567         (Depends-on): Remove math.
43568         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
43569         (Depends-on): Remove math.
43570
43571         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
43572         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
43573         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
43574         (Depends-on): Remove math.
43575         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
43576         (Depends-on): Remove math.
43577
43578         * tests/test-round1.c: Include nan.h.
43579         (main): Use NaNd instead of NAN.
43580         * modules/round-tests (Files): Add tests/nan.h.
43581
43582         * tests/test-trunc1.c: Include nan.h.
43583         (main): Use NaNd instead of NAN.
43584         * modules/trunc-tests (Files): Add tests/nan.h.
43585
43586         * tests/test-roundf1.c: Include nan.h.
43587         (main): Use NaNf instead of NAN.
43588         * modules/roundf-tests (Files): Add tests/nan.h.
43589
43590         * tests/test-truncf1.c: Include nan.h.
43591         (main): Use NaNf instead of NAN.
43592         * modules/truncf-tests (Files): Add tests/nan.h.
43593
43594         * tests/test-ceilf1.c: Include nan.h.
43595         (main): Use NaNf instead of NAN.
43596         * modules/ceilf-tests (Files): Add tests/nan.h.
43597
43598         * tests/test-floorf1.c: Include nan.h.
43599         (main): Use NaNf instead of NAN.
43600         * modules/floorf-tests (Files): Add tests/nan.h.
43601
43602         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
43603         (main): Use NaNf instead of NAN.
43604         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
43605
43606         * tests/test-isnand.c: Include nan.h instead of <math.h>.
43607         (main): Use NaNd instead of NAN.
43608         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
43609
43610         * tests/test-frexp.c: Include nan.h.
43611         (main): Use NaNd instead of NAN.
43612         * modules/frexp-tests (Files): Add tests/nan.h.
43613
43614         * lib/isnan.c: Don't include <math.h>.
43615         (FUNC): Don't use NAN macro.
43616         * modules/isnand-nolibm (Depends-on): Remove math.
43617         * modules/isnanf-nolibm (Depends-on): Remove math.
43618         * modules/isnanl (Depends-on): Remove math.
43619         * modules/isnanl-nolibm (Depends-on): Remove math.
43620
43621         * tests/nan.h: New file.
43622
43623 2008-04-01  Eric Blake  <ebb9@byu.net>
43624
43625         Fix typos.
43626         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
43627         values to be the right type.
43628
43629         For now, cater to gnulib strtod inaccuracies.
43630         * tests/test-strtod.c (main): Allow 1-ulp error on expected
43631         fractional results.  While not as nice from a QoI perspective, it
43632         is a quicker patch than correctly implementing decimal to binary
43633         rounding.
43634
43635 2008-03-31  Eric Blake  <ebb9@byu.net>
43636
43637         Guarantee a definition of NAN.
43638         * lib/math.in.h (NAN): Define if missing.
43639         * tests/test-math.c (main): Test it.
43640         * doc/posix-headers/math.texi (math.h): Document this.
43641         * lib/isnan.c (rpl_isnand): Use it.
43642         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
43643         * tests/test-floorf1.c (NaN): Likewise.
43644         * tests/test-frexp.c (NaN): Likewise.
43645         * tests/test-isnand.c (NaN): Likewise.
43646         * tests/test-isnanf.c (NaN): Likewise.
43647         * tests/test-round1.c (NaN): Likewise.
43648         * tests/test-roundf1.c (NaN): Likewise.
43649         * tests/test-snprintf-posix.h (NaN): Likewise.
43650         * tests/test-sprintf-posix.h (NaN): Likewise.
43651         * tests/test-trunc1.c (NaN): Likewise.
43652         * tests/test-truncf1.c (NaN): Likewise.
43653         * tests/test-vasnprintf-posix.c (NaN): Likewise.
43654         * tests/test-vasprintf-posix.c (NaN): Likewise.
43655         * modules/isnand-nolibm (Depends-on): Add math.
43656         * modules/isnanf-nolibm (Depends-on): Likewise.
43657         * modules/isnanl (Depends-on): Likewise.
43658         * modules/isnanl-nolibm (Depends-on): Likewise.
43659         * modules/snprintf-posix-tests (Depends-on): Likewise.
43660         * modules/sprintf-posix-tests (Depends-on): Likewise.
43661         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
43662         * modules/vsprintf-posix-tests (Depends-on): Likewise.
43663         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
43664         * modules/vasprintf-posix-tests (Depends-on): Likewise.
43665
43666 2008-03-31  Bruno Haible  <bruno@clisp.org>
43667
43668         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
43669         * doc/posix-functions/strtod.texi: Likewise.
43670
43671 2008-03-31  Bruno Haible  <bruno@clisp.org>
43672
43673         * tests/test-strtod.c (main): Don't use C99 syntax.
43674
43675 2008-03-31  Bruno Haible  <bruno@clisp.org>
43676
43677         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
43678         Reported by Eric Blake.
43679
43680 2008-03-31  Jim Meyering  <meyering@redhat.com>
43681
43682         Don't compare actual signbit return values.
43683         * tests/test-strtod.c (main): Rather, compare only their
43684         zero/non-zero nature.
43685
43686 2008-03-31  Eric Blake  <ebb9@byu.net>
43687
43688         More strtod documentation.
43689         * doc/posix-functions/strtod.texi (strtod): Interpret more test
43690         failures as distinct bugs.
43691
43692 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43693
43694         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
43695         Problem reported by Erik Benada in
43696         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
43697
43698 2008-03-30  Bruno Haible  <bruno@clisp.org>
43699
43700         * tests/test-strtod.c: Add comments about which assertion fails on which
43701         platform.
43702         * doc/posix-functions/strtod.texi: Add info about many more platforms.
43703
43704 2008-03-30  Eric Blake  <ebb9@byu.net>
43705
43706         Test signbit behavior on zeros.
43707         * tests/test-signbit.c (test_signbitf): Add tests for zero.
43708         (test_signbitd, test_signbitl): Likewise.
43709
43710         More strtod touchups.
43711         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
43712         sign of negative underflow, for now.  Use .5, not .1.
43713         * doc/posix-functions/strtod.texi (strtod): Mention these
43714         limitations.
43715         Reported by Jim Meyering.
43716
43717 2008-03-30  Bruno Haible  <bruno@clisp.org>
43718
43719         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
43720         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
43721
43722 2008-03-30  Bruno Haible  <bruno@clisp.org>
43723
43724         Avoid failure when attempting to return empty iconv results on some
43725         platforms.
43726         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
43727         allocation, don't report ENOMEM when the resulting string is empty.
43728
43729 2008-03-30  Bruno Haible  <bruno@clisp.org>
43730
43731         Fix buffer overrun.
43732         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
43733         Don't consider the width for tmp_length. Check count against tmp_length
43734         before doing the padding. Ensure enough allocation during padding.
43735
43736 2008-03-30  Eric Blake  <ebb9@byu.net>
43737
43738         strtod touchups.
43739         * lib/strtod.c (strtod): Avoid compiler warnings.
43740         Reported by Jim Meyering.
43741
43742 2008-03-30  Bruno Haible  <bruno@clisp.org>
43743
43744         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
43745         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
43746         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
43747         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
43748         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
43749         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
43750         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
43751         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
43752
43753         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
43754         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
43755         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
43756         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
43757         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
43758         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
43759         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
43760         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
43761
43762         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
43763         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
43764         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
43765         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
43766         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
43767         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
43768         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
43769         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
43770
43771         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
43772         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
43773
43774         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
43775         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
43776
43777         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
43778         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
43779
43780         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
43781         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
43782         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
43783
43784         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
43785         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
43786         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
43787
43788         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
43789         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
43790         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
43791
43792         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
43793         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
43794         * modules/vasprintf (Depends-on): Add EOVERFLOW.
43795
43796         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
43797         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
43798         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
43799         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
43800         (Depends-on): Add EOVERFLOW.
43801         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
43802         (Depends-on): Add EOVERFLOW.
43803         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43804         (Depends-on): Add EOVERFLOW.
43805         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
43806         (Depends-on): Add EOVERFLOW.
43807         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43808         (Depends-on): Add EOVERFLOW.
43809         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
43810         (Depends-on): Add EOVERFLOW.
43811         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43812         (Depends-on): Add EOVERFLOW.
43813         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
43814         (Depends-on): Add EOVERFLOW.
43815
43816         * lib/sprintf.c (EOVERFLOW): Remove fallback.
43817         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
43818         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
43819
43820         * lib/snprintf.c (EOVERFLOW): Remove fallback.
43821         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
43822         * modules/snprintf (Depends-on): Add EOVERFLOW.
43823
43824         * lib/poll.c (EOVERFLOW): Remove fallback.
43825         * modules/poll (Depends-on): Add EOVERFLOW.
43826
43827         * lib/getugroups.c (EOVERFLOW): Remove fallback.
43828         * modules/getugroups (Depends-on): Add EOVERFLOW.
43829
43830         * lib/getdelim.c (EOVERFLOW): Remove fallback.
43831         * modules/getdelim (Depends-on): Add EOVERFLOW.
43832
43833         * lib/ftell.c (EOVERFLOW): Remove fallback.
43834         * modules/ftell (Depends-on): Add EOVERFLOW.
43835
43836         * lib/fprintf.c (EOVERFLOW): Remove fallback.
43837         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
43838         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
43839
43840         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
43841
43842         * modules/EOVERFLOW-tests: New file.
43843         * tests/test-EOVERFLOW.c: New file.
43844
43845         * modules/EOVERFLOW: New file.
43846         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
43847
43848 2008-03-30  Bruno Haible  <bruno@clisp.org>
43849
43850         Fix bug introduced on 2007-06-10.
43851         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
43852         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
43853
43854 2008-03-30  Bruno Haible  <bruno@clisp.org>
43855
43856         Improve freadseek's efficiency after ungetc.
43857         * lib/freadseek.c: Include freadahead.h.
43858         (freadptrinc): New function, extracted from freadseek.
43859         (freadseek): Use it in a loop. Use freadahead to determine the number
43860         of loop iterations.
43861         * modules/freadseek (Depends-on): Add freadahead.
43862         (configure.ac): Require AC_C_INLINE.
43863
43864 2008-03-30  Bruno Haible  <bruno@clisp.org>
43865
43866         * lib/freadseek.c (freadseek): Don't ignore the return value of
43867         freadptr.
43868
43869 2008-03-29  Eric Blake  <ebb9@byu.net>
43870
43871         Add hex float support.
43872         * modules/strtod (Depends-on): Add c-ctype.
43873         (Link): Mention POW_LIB.
43874         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
43875         whitespace between 'e' and exponent.
43876         * tests/test-strtod.c (main): Enable hex float tests.
43877         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
43878         now provides.
43879
43880         Document various strtod bugs, with some fixes.
43881         * doc/posix-functions/strtod.texi (strtod): Document bugs with
43882         "-0x", "inf", "nan", and hex constants.
43883         * doc/posix-functions/atof.texi (atof): Likewise.
43884         * modules/stdlib (Makefile.am): Support strtod.
43885         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43886         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
43887         detect additional strtod bugs.
43888         * lib/stdlib.in.h (rpl_strtod): Add declarations.
43889         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
43890         bool where appropriate.  Parse 'inf' and 'nan'.
43891         * tests/test-strtod.c: New file.
43892         * modules/strtod (Depends-on): Add stdbool, stdlib.
43893         (configure.ac): Turn on module indicator.
43894         * modules/strtod-tests: New module.
43895
43896 2008-03-29  Eric Blake  <ebb9@byu.net>
43897
43898         Fix ftell on mingw.
43899         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
43900         * modules/ftell-tests (Depends-on): Add binary-io.
43901         * modules/ftello-tests (Depends-on): Likewise.
43902         * tests/test-ftell.c (main): Enhance test to cover behavior after
43903         ungetc.  Enforce binary mode.
43904         * tests/test-ftello.c (main): Likewise.
43905
43906         Pass test-freadseek on cygwin.
43907         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
43908         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
43909         ungetc buffer.
43910
43911         * tests/test-fflush2.c (main): Fix typo.
43912
43913 2008-03-29  Bruno Haible  <bruno@clisp.org>
43914
43915         * tests/test-fflush2.c (main): Temporarily disable the contents of
43916         this test.
43917         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
43918         Reported by Eric Blake.
43919
43920 2008-03-28  Simon Josefsson  <simon@josefsson.org>
43921
43922         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
43923         (GC_SHA224_DIGEST_SIZE): Add.
43924
43925         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
43926         (gc_hash_digest_length): Likewise.
43927         (gc_hash_buffer): Likewise.
43928
43929 2008-03-25  Bruno Haible  <bruno@clisp.org>
43930
43931         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
43932         detail which gettext release to use.
43933         Reported by Simon Josefsson.
43934
43935 2008-03-26  Jim Meyering  <meyering@redhat.com>
43936
43937         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
43938         * modules/gnumakefile (clean-GNUmakefile): Also, use
43939         test ... && ... || : syntax rather than if-then ... fi.
43940
43941         gnumakefile: Don't double-quote-expand $(VPATH) value.
43942         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
43943
43944 2008-03-24  Eric Blake  <ebb9@byu.net>
43945
43946         Alter GNUmakefile to install into top directory.
43947         * modules/maintainer-makefile: Split, and add dependency...
43948         * modules/gnumakefile: to this new module.
43949         * build-aux/GNUmakefile: Move...
43950         * top/GNUmakefile: ...here.
43951         * build-aux/maint.mk: Move...
43952         * top/maint.mk: ...here.
43953         * MODULES.html.sh (Support for maintaining...): Document new
43954         module.
43955
43956 2008-03-23  Bruno Haible  <bruno@clisp.org>
43957
43958         * gnulib-tool: New options --vc-files, --no-vc-files.
43959         (func_usage): Document them.
43960         (vc_files): New variable.
43961         (func_import): Consider vc_files.
43962         (func_create_testdir): Set vc_files to empty.
43963         Suggested by Jim Meyering and Karl Berry.
43964
43965 2008-03-23  Bruno Haible  <bruno@clisp.org>
43966
43967         Fix regex compilation error on HP-UX 11.
43968         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
43969         * modules/regex (Files): Add m4/mbstate_t.m4.
43970         Reported by Ton Voon <ton.voon@altinity.com>.
43971
43972 2008-03-23  Bruno Haible  <bruno@clisp.org>
43973
43974         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
43975
43976 2008-03-23  Eric Blake  <ebb9@byu.net>
43977             Bruno Haible  <bruno@clisp.org>
43978
43979         Install files from top/ in the destination directory.
43980         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
43981         augmentation also for the files from top/.
43982         (func_import, func_create_testdir): Rewrite file names:
43983         top/filename -> filename.
43984
43985 2008-03-23  Bruno Haible  <bruno@clisp.org>
43986
43987         Tweak "gnulib --version" output.
43988         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
43989
43990 2008-03-23  Bruno Haible  <bruno@clisp.org>
43991
43992         Tweak "gnulib --version" output.
43993         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
43994         rather than contents of ChangeLog, when possible.
43995
43996 2008-03-21  Eric Blake  <ebb9@byu.net>
43997
43998         More --version tweaks.
43999         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
44000         date of last ChangeLog entry.
44001
44002 2008-03-21  Jim Meyering  <meyering@redhat.com>
44003
44004         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
44005
44006 2008-03-20  Eric Blake  <ebb9@byu.net>
44007
44008         VPATH fix.
44009         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
44010
44011 2008-03-20  Simon Josefsson  <simon@josefsson.org>
44012
44013         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
44014         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
44015
44016 2008-03-20  Eric Blake  <ebb9@byu.net>
44017
44018         Sync GNUmakefile with coreutils.
44019         * build-aux/GNUmakefile (have-Makefile): Rename...
44020         (_have-Makefile): ...to this, for namespace consideration.
44021         (GNUmakefile.cfg): Include, if present.
44022         (_autoreconf): Define a default.
44023         (_is-dist-target): New rule for rebuilds to pick up intra-release
44024         version.
44025         (maint-cfg.mk): Rename...
44026         (cfg.mk): ...to this.
44027
44028 2008-03-18  Jim Meyering  <meyering@redhat.com>
44029
44030         New script and module: mktempd
44031         * MODULES.html.sh (maint+release support): Add mktempd.
44032         * build-aux/mktempd: New file.
44033         * modules/mktempd: New file.
44034
44035 2008-03-15  Jim Meyering  <meyering@redhat.com>
44036
44037         Undo last change.
44038         * lib/sha1.c, lib/md5.c: 63 != ~63.
44039         Reported by Andreas Schwab.
44040
44041         sha1.c, md5.c: Hoist a redundant expression.
44042         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
44043         "ctx->buflen" only once, before calling *_process_block.
44044         * lib/md5.c (md5_process_bytes): Likewise.
44045
44046 2008-03-14  Eric Blake  <ebb9@byu.net>
44047
44048         Bump copyright year in files generated by gnulib-tool.
44049         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
44050         gnulib-tool, rather than hard-coding it.
44051
44052         Fix 'gnulib-tool --version' output to work with git.
44053         * gnulib-tool (func_gnulib_dir): New function, extracted from...
44054         (startup): ...here.
44055         (func_version): Use it to invoke git-version-gen, rather than
44056         relying on CVS keyword expansion.  Modernize wording.
44057         (cvsdatestamp, last_checkin_date, version): Kill unused
44058         variables.
44059
44060 2008-03-12  Jim Meyering  <meyering@redhat.com>
44061
44062         Recognize optional cast of the argument to free.
44063         * build-aux/useless-if-before-free: Update regexps.
44064
44065         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
44066
44067 2008-03-11  Bruno Haible  <bruno@clisp.org>
44068
44069         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
44070         by a single package.
44071         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
44072         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
44073         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
44074         Reported by Sam Steingold <sds@gnu.org>.
44075
44076 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44077
44078         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
44079         repositories.
44080
44081 2008-03-11  Bruno Haible  <bruno@clisp.org>
44082
44083         Avoid conflicts between local macro definitions.
44084         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44085         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
44086
44087 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
44088             Bruno Haible  <bruno@clisp.org>
44089
44090         Make va_copy work with some version of xlc on AIX 5.1.
44091         * lib/stdarg.in.h: New file.
44092         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
44093         On AIX, use a <stdarg.h> file substitute.
44094         * modules/stdarg (Files): Add lib/stdarg.in.h.
44095         (Depends-on): Add include_next.
44096         (Makefile.am): Build a stdarg.h substitute if requested.
44097         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
44098
44099 2008-03-10  Bruno Haible  <bruno@clisp.org>
44100
44101         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
44102         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44103         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44104
44105 2008-03-10  Bruno Haible  <bruno@clisp.org>
44106
44107         * modules/stdlib (Depends-on): Add include_next, remove
44108         absolute-header.
44109
44110 2008-03-09  Bruno Haible  <bruno@clisp.org>
44111
44112         * lib/freadahead.h (freadahead): Document more precisely.
44113         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
44114         the sum of both buffer sizes.
44115         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
44116         * NEWS: Document the change.
44117
44118 2008-03-09  Bruno Haible  <bruno@clisp.org>
44119
44120         Extend freadptr to return also the buffer size.
44121         * lib/freadptr.h (freadptr): Add sizep argument.
44122         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
44123         (freadptr): Add sizep argument. Determine buffer size like freadahead
44124         does.
44125         * tests/test-freadptr.c: Don't include freadahead.h.
44126         (main): Adapt for new calling convention of freadptr.
44127         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
44128         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
44129         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
44130         tests/test-freadptr2.sh.
44131         (Depends): Remove freadahead.
44132         (TESTS): Add test-freadptr2.sh.
44133         (check_PROGRAMS): Add test-freadptr2.
44134
44135 2008-03-09  Bruno Haible  <bruno@clisp.org>
44136
44137         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
44138         Report and solution by Simon Josefsson.
44139
44140 2008-03-06  Bruno Haible  <bruno@clisp.org>
44141
44142         Make fflush after ungetc work on BSD platforms.
44143         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
44144         * tests/test-fflush2.c: New file.
44145         * tests/test-fflush2.sh: New file.
44146         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
44147         tests/test-fflush2.c.
44148         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
44149         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
44150
44151 2008-03-06  Eric Blake  <ebb9@byu.net>
44152
44153         Likewise for ftello.
44154         * modules/ftello (Dependencies): Add extensions.
44155         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
44156
44157 2008-03-06  Bruno Haible  <bruno@clisp.org>
44158
44159         * modules/fseeko (Dependencies): Add extensions.
44160         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
44161         Needed on glibc systems.
44162
44163 2008-03-06  Bruno Haible  <bruno@clisp.org>
44164
44165         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
44166         email address.
44167         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44168
44169 2008-03-06  Bruno Haible  <bruno@clisp.org>
44170
44171         * users.txt: Add libgnupdf.
44172
44173 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
44174
44175         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
44176         (Header File Substitutes, Function Substitutes,
44177         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
44178         (Build robot for gnulib): Fix typo.
44179
44180 2008-03-06  Bruno Haible  <bruno@clisp.org>
44181
44182         * doc/gnulib-tool.texi (VCS Issues): Small updates.
44183         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44184
44185 2008-03-06  Bruno Haible  <bruno@clisp.org>
44186
44187         * doc/func.texi: New file, extracted from doc/gnulib.texi.
44188         * doc/gnulib.texi: Include it.
44189
44190 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44191
44192         * modules/func (License): Change license to unlimited; there was
44193         no LGPL parts in the module anyway.
44194
44195 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44196
44197         * modules/__func__: Renamed to modules/func.
44198         * modules/__func__-tests: Renamed to modules/func-tests.
44199         * tests/test-__func__.c: Renamed to tests/test-func.c.
44200         * m4/__func__.m4: Renamed to m4/func.m4.
44201         * doc/gnulib.texi (__func__): Section renamed to func.
44202         Suggested by Eric Blake <ebb9@byu.net>.
44203
44204 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44205
44206         * doc/gnulib.texi (__func__): Use C99 terminology when talking
44207         about __func__.  Make example self-contained.  Suggested by Eric
44208         Blake <ebb9@byu.net>.
44209
44210         * tests/test-__func__.c (main): Avoid extraneous () around __func.
44211         Suggested by Eric Blake <ebb9@byu.net>.
44212
44213 2008-03-06  Simon Josefsson  <simon@josefsson.org>
44214
44215         * modules/__func__: New file.
44216         * modules/__func__-tests: New file.
44217         * tests/test-__func__.c: New file.
44218         * m4/__func__.m4: New file.
44219         * doc/gnulib.texi (__func__): Document __func__ module.
44220
44221 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44222
44223         * modules/byteswap (License): Re-license as LGPLv2+.
44224
44225 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44226
44227         * doc/Makefile: Add pdf target.
44228
44229 2008-03-05  Simon Josefsson  <simon@josefsson.org>
44230
44231         * modules/inline (License): Use 'unlimited', since there are only
44232         *.m4 files in this module.
44233
44234 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44235             Bruno Haible  <bruno@clisp.org>
44236
44237         Add support for HP C 7.1 on OpenVMS 8.3.
44238         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
44239
44240 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
44241
44242         Update VMS specifics.
44243         * lib/getopt.c [VMS]: Remove include of unixlib.h.
44244
44245 2008-03-02  Jim Meyering  <meyering@redhat.com>
44246
44247         Remove the last dependency on the "free" module.
44248         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
44249         Reported by Bob Proulx.
44250
44251         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
44252
44253         Remove useless "if" tests before free.  Deprecate "free" module.
44254         * doc/posix-functions/free.texi: Mention that this
44255         module is no longer useful.
44256         * modules/free (Notice): Say this module is obsolete.
44257         * modules/readutmp (Depends-on): Remove free.
44258         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
44259         * lib/putenv.c (putenv): Likewise.
44260         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
44261         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
44262         * tests/test-c-strcasestr.c (main): Likewise.
44263         * tests/test-c-strstr.c (main): Likewise.
44264         * tests/test-mbscasestr1.c (main): Likewise.
44265         * tests/test-mbscasestr2.c (main): Likewise.
44266         * tests/test-mbsstr1.c (main): Likewise.
44267         * tests/test-mbsstr2.c (main): Likewise.
44268         * tests/test-memmem.c (main): Likewise.
44269         * tests/test-strcasestr.c (main): Likewise.
44270         * tests/test-striconv.c (main): Likewise.
44271         * tests/test-striconveh.c (main): Likewise.
44272         * tests/test-striconveha.c (main): Likewise.
44273         * tests/test-strstr.c (main): Likewise.
44274
44275         * build-aux/git-version-gen: Adjust a comment and the Usage string.
44276
44277         bootstrap: sync from coreutils again
44278         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
44279
44280 2008-03-01  Jim Meyering  <meyering@redhat.com>
44281
44282         bootstrap: sync from coreutils
44283         * build-aux/bootstrap (update_po_files): Copy a .po file into place
44284         also when the target doesn't exist.
44285
44286 2008-03-01  Eric Blake  <ebb9@byu.net>
44287
44288         Fix bugs in last patch.
44289         * lib/memchr2.c (memchr2): Fix typo.
44290         * tests/test-memchr2.c: Test previous bug, and don't use GNU
44291         extension.
44292         Reported by Bruce Korb.
44293
44294         New module 'memchr2'.
44295         * modules/memchr2: New file.
44296         * modules/memchr2-tests: Likewise.
44297         * lib/memchr2.h: Likewise.
44298         * lib/memchr2.c: Likewise, based on memchr.c.
44299         * tests/test-memchr2.c: New test.
44300         * MODULES.html.sh (String handling): Add memchr2.
44301
44302 2008-02-29  Bruno Haible  <bruno@clisp.org>
44303
44304         * modules/freadseek-tests: New file.
44305         * tests/test-freadseek.sh: New file.
44306         * tests/test-freadseek.c: New file.
44307
44308         New module 'freadseek'.
44309         * modules/freadseek: New file.
44310         * lib/freadseek.h: New file.
44311         * lib/freadseek.c: New file.
44312         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
44313
44314 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
44315
44316         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
44317         wydawca.
44318
44319         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
44320         program_invocation_name and program_invocation_short_name are
44321         present.
44322
44323 2008-02-28  Bruno Haible  <bruno@clisp.org>
44324
44325         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
44326         * tests/test-freadptr.sh: Also test non-seekable stdin.
44327
44328 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
44329
44330         * build-aux/bootstrap (source_base, m4_base)
44331         (doc_base, tests_base): New variables.
44332         (gnulib_tool_options): Do not hardcode base directories, use
44333         the above variables instead.
44334
44335 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
44336
44337         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
44338
44339 2008-02-28  Bruno Haible  <bruno@clisp.org>
44340
44341         * modules/freadptr-tests: New file.
44342         * tests/test-freadptr.sh: New file.
44343         * tests/test-freadptr.c: New file.
44344
44345         New module 'freadptr'.
44346         * modules/freadptr: New file.
44347         * lib/freadptr.h: New file.
44348         * lib/freadptr.c: New file.
44349         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
44350
44351 2008-02-26  Karl Berry  <karl@freefriends.org>
44352
44353         Sync from Libtool:
44354         * libltdl/argz.c (argz_add, argz_count): New functions.
44355         * libltdl/argz.in.h: Declare them.
44356         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
44357
44358 2008-02-22  Bruno Haible  <bruno@clisp.org>
44359
44360         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
44361         is a pointer type.  Needed for HP-UX 10.
44362         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
44363         * doc/posix-functions/gmtime_r.texi: Likewise.
44364         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
44365
44366 2008-02-24  Bruno Haible  <bruno@clisp.org>
44367
44368         * modules/environ-tests: New file.
44369         * tests/test-environ.c: New file.
44370
44371         New module 'environ'.
44372         * modules/environ: New file.
44373         * lib/unistd.in.h (environ): New declaration.
44374         * m4/environ.m4: New file.
44375         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
44376         after use.
44377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
44378         HAVE_DECL_ENVIRON.
44379         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
44380         HAVE_DECL_ENVIRON.
44381         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
44382         wrong claim that 'environ' is missing on some systems.
44383         * modules/execute (Depends-on): Add environ.
44384         * lib/execute.c (environ): Remove fallback declaration.
44385         * modules/pipe (Depends-on): Add environ.
44386         * lib/pipe.c (environ): Remove fallback declaration.
44387         * modules/setenv (Depends-on): Add environ.
44388         * lib/setenv.c (environ): Remove fallback declaration.
44389         * modules/unsetenv (Depends-on): Add environ.
44390         * lib/unsetenv.c (environ): Remove fallback declaration.
44391         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
44392         m4/environ.m4.
44393         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
44394         (gl_PREREQ_UNSETENV): Likewise.
44395
44396 2008-02-24  Bruno Haible  <bruno@clisp.org>
44397
44398         * doc/posix-functions/environ.texi: Document the MacOS X problem.
44399
44400 2008-02-20  Bob Proulx  <bob@proulx.com>
44401
44402         Enable use of older two part flavor 'git describe'.
44403         * build-aux/git-version-gen: If using the older two part flavor of
44404         git version then recreate the third part now present in the
44405         newer three part flavor of git describe.
44406
44407 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
44408
44409         * lib/fts.c (fts_build): Typo correction to comment.
44410
44411 2008-02-17  Bruno Haible  <bruno@clisp.org>
44412
44413         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
44414         generating no-op conflicts.
44415
44416 2008-02-17  Bruno Haible  <bruno@clisp.org>
44417
44418         Speed up by 10%.
44419         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
44420         result_entries, rather than an index-based loop.
44421
44422 2008-02-17  Bruno Haible  <bruno@clisp.org>
44423
44424         Speed up by 25%.
44425         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
44426         'hashcode_cached'.
44427         (entry_create): New function.
44428         (entry_hashcode): Use the cached hashcode if possible.
44429         (read_changelog_file, try_split_merged_entry): Use entry_create.
44430
44431 2008-02-17  Bruno Haible  <bruno@clisp.org>
44432
44433         Speed up from O(n^2) to O(n) for long ChangeLog files.
44434         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
44435         (read_changelog_file): Change implementation of entries_reversed list
44436         to rbtreehash.
44437         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
44438
44439 2008-02-17  Bruno Haible  <bruno@clisp.org>
44440
44441         New option --split-merged-entry.
44442         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
44443         (find_paragraph_end, try_split_merged_entry): New functions.
44444         (long_options): Add option --split-merged-entry.
44445         (usage): Document option --split-merged-entry.
44446         (main): Implement option --split-merged-entry.
44447         Reported by Eric Blake.
44448
44449 2008-02-17  Bruno Haible  <bruno@clisp.org>
44450
44451         * lib/git-merge-changelog.c: Include c-strstr.h.
44452         (main): Support the "git pull --rebase" situation.
44453         * modules/git-merge-changelog (Depends-on): Add c-strstr.
44454         Reported by Eric Blake.
44455
44456 2008-02-16  Eric Blake  <ebb9@byu.net>
44457
44458         Avoid doubling \ in common case of "c-maybe" quoting style.
44459         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
44460         eliding outer quotes.
44461         * lib/quotearg.h: Document this.
44462         * tests/test-quotearg.c (result_strings, inputs, results_g)
44463         (flag_results, locale_results): Test it by adding a new string to
44464         each test group.
44465         (compare_strings): Test new string.
44466
44467 2008-02-13  Eric Blake  <ebb9@byu.net>
44468
44469         Avoid trigraph quoting in default output.
44470         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
44471         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
44472         unless explicitly requested.
44473         * tests/test-quotearg.c (flag_results, main): Add additional tests.
44474
44475 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
44476
44477         Don't rely on signed integer overflowing to negative value.
44478         * lib/getugroups.c (getugroups): Include <limits.h>.
44479         Instead, compare against INT_MAX, and increment only if the test passes.
44480
44481 2008-02-13  Jim Meyering  <meyering@redhat.com>
44482         and Eric Blake  <ebb9@byu.net>
44483
44484         Avoid shadowing warning and compile errors on Linux.
44485         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
44486         forwarding macros on Linux.
44487         (dcgettext): Define a stub, for Linux.
44488         (results_g, main): Avoid warnings.
44489
44490 2008-02-12  Eric Blake  <ebb9@byu.net>
44491
44492         Silence warning in last patch.
44493         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
44494
44495         Quotearg part 4: add tests, fix c-maybe colon quoting.
44496         * lib/quotearg.h: Improve documentation.
44497         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
44498         escapes when adding outer quotes.  When quoting trigraphs, use
44499         valid C notation.  When quoting NUL, omit extra characters if next
44500         character is not digit.  Alter prototype.
44501         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
44502         callers.
44503         * modules/quotearg-tests: New module.
44504         * tests/test-quotearg.c: New test.
44505
44506 2008-02-07  Eric Blake  <ebb9@byu.net>
44507
44508         Quotearg part 3: add flag to control outer quote elision.
44509         * lib/quotearg.h (c_maybe_quoting_style): New style.
44510         (enum quoting_flags): Better documentation of flags.
44511         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
44512         c-maybe style.
44513         (quotearg_buffer_restyled): Handle new flag to elide outer
44514         quotes.
44515
44516         Quotearg part 2: add flag that can control NUL elision.
44517         * lib/quotearg.h (set_quoting_flags): New prototype.
44518         * lib/quotearg.c (struct quoting_options): Add flag field.
44519         (set_quoting_flags): New function.
44520         (quotearg_buffer_restyled): Add flags parameter.
44521         (quotearg_alloc_mem): Set the flag if length cannot be returned.
44522         (quotearg_n_options): Set the flag, since length cannot be
44523         returned.
44524         (quoting_options_from_style): Default flags correctly.
44525
44526         Quotearg part 1: more wrappers, restore quotearg_char state.
44527         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
44528         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
44529         (quotearg_colon_mem): New wrappers.
44530         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
44531         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
44532         functions.
44533         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
44534         (quotearg_colon_mem): New functions.
44535
44536 2008-02-11  Bruno Haible  <bruno@clisp.org>
44537
44538         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
44539         library in the current directory: it does not work with parallel make.
44540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44541
44542 2008-02-11  Bruno Haible  <bruno@clisp.org>
44543
44544         * .gitattributes: New file.
44545
44546 2008-02-11  Jim Meyering  <meyering@redhat.com>
44547
44548         useless-if-before-free: Fix reversed exit values.
44549         * build-aux/useless-if-before-free: Use correct values
44550         for EXIT_MATCH and EXIT_NO_MATCH.
44551
44552         * build-aux/useless-if-before-free: Close stdout carefully.
44553
44554 2008-02-10  Bruno Haible  <bruno@clisp.org>
44555
44556         New module 'git-merge-changelog'.
44557         * modules/git-merge-changelog: New file.
44558         * lib/git-merge-changelog.c: New file.
44559
44560 2008-02-10  Jim Meyering  <meyering@redhat.com>
44561
44562         useless-if-before-free: New option: --list (-l).
44563
44564         useless-if-before-free: Don't exit immediately upon open failure.
44565         * build-aux/useless-if-before-free: Exit 2 for errors.
44566         Upon failure to open a file, don't exit immediately.
44567         Rather, just warn and continue with any remaining files.
44568
44569 2008-02-10  Bruno Haible  <bruno@clisp.org>
44570
44571         New abstract list operation 'node_set_value'.
44572         * lib/gl_list.h (gl_list_node_set_value): New function.
44573         (struct gl_list_implementation): New field node_set_value.
44574         * lib/gl_list.c (gl_list_node_set_value): New function.
44575         * lib/gl_array_list.c (gl_array_node_set_value): New function.
44576         (gl_array_list_implementation): Update.
44577         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
44578         (gl_carray_list_implementation): Update.
44579         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
44580         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
44581         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
44582         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
44583         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
44584         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
44585         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
44586         Update.
44587         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
44588         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
44589         (gl_sublist_list_implementation): Update.
44590
44591 2008-02-10  Bruno Haible  <bruno@clisp.org>
44592
44593         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
44594         Needed when ELEMENT is #defined to 'some_type *'.
44595
44596 2008-02-10  Jim Meyering  <meyering@redhat.com>
44597
44598         New script and module: useless-if-before-free
44599         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
44600         * build-aux/useless-if-before-free: New file.
44601         * modules/useless-if-before-free: New file.
44602
44603         * build-aux/gitlog-to-changelog: Use committer date, not author date.
44604
44605         xstrtol_error: Fix typo.
44606         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
44607         s/exit_failure/exit_status/.
44608
44609 2008-02-09  Jim Meyering  <meyering@redhat.com>
44610
44611         New script and module: gitlog-to-changelog
44612         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
44613         * modules/gitlog-to-changelog: New file.
44614         * build-aux/gitlog-to-changelog: New file.
44615
44616 2008-02-08  Jim Meyering  <meyering@redhat.com>
44617
44618         Avoid two "parameter unused" warnings.
44619         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
44620         Mark "st" as used.
44621
44622         Use "git COMMAND", not "git-COMMAND".
44623         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
44624         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
44625         * build-aux/git-version-gen: Use "git status", not "git-status".
44626
44627 2008-02-07  Bruno Haible  <bruno@clisp.org>
44628
44629         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
44630         Avoids a crash on Windows Vista.
44631         Reported by Adam Strzelecki <ono@java.pl> via
44632         Simon Josefsson <simon@josefsson.org>.
44633
44634 2008-02-06  Bruno Haible  <bruno@clisp.org>
44635
44636         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
44637         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
44638         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
44639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
44640         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44641         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44642         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
44643         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
44644         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44645         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44646         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44647         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44648         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44649         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44650         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44651         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
44652         left-adjust flag.
44653         * tests/test-snprintf-posix.h (test_function): Likewise.
44654         * tests/test-sprintf-posix.h (test_function): Likewise.
44655         * tests/test-vasprintf-posix.c (test_function): Likewise.
44656         * doc/posix-functions/fprintf.texi: Update.
44657         * doc/posix-functions/printf.texi: Update.
44658         * doc/posix-functions/snprintf.texi: Update.
44659         * doc/posix-functions/sprintf.texi: Update.
44660         * doc/posix-functions/vfprintf.texi: Update.
44661         * doc/posix-functions/vprintf.texi: Update.
44662         * doc/posix-functions/vsnprintf.texi: Update.
44663         * doc/posix-functions/vsprintf.texi: Update.
44664         Reported by Peter Fales <psfales@alcatel-lucent.com>.
44665
44666 2008-02-06  Bruno Haible  <bruno@clisp.org>
44667
44668         Fix bug introduced on 2008-01-26.
44669         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
44670
44671 2008-02-06  Bruno Haible  <bruno@clisp.org>
44672
44673         Fix bug introduced on 2007-06-10.
44674         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
44675         !NEED_PRINTF_FLAG_ZERO.
44676
44677 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
44678
44679         getloadavg: use libperfstat on AIX5
44680         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
44681
44682 2008-02-03  Bruno Haible  <bruno@clisp.org>
44683
44684         * lib/diffseq.h: Add comments about required #includes.
44685         Reported by Michael Biggs <gnulib@doubleplum.net>.
44686
44687 2008-02-01  Bruno Haible  <bruno@clisp.org>
44688
44689         * users.txt: Add gnuit.
44690
44691 2008-01-31  Bruno Haible  <bruno@clisp.org>
44692
44693         * lib/md4.c (set_uint32): Mark as inline.
44694         * lib/md5.c (set_uint32): Likewise.
44695         * lib/sha1.c (set_uint32): Likewise.
44696         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
44697         * m4/md5.m4 (gl_MD5): Likewise.
44698         * m4/sha1.m4 (gl_SHA1): Likewise.
44699
44700 2008-01-31  Jim Meyering  <meyering@redhat.com>
44701
44702         Use "sizeof VAR", rather than a literal "4".
44703         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
44704         * lib/md4.c (md4_read_ctx): Likewise.
44705         * lib/sha1.c (sha1_read_ctx): Likewise.
44706
44707 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44708
44709         * tests/test-sha1.c: New file, based on test-md5.c.
44710
44711         * modules/crypto/sha1-tests: New file.
44712
44713 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44714
44715         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
44716
44717 2008-01-31  Jim Meyering  <meyering@redhat.com>
44718
44719         Prefer "sizeof v" over the equivalent "4".
44720         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
44721         * lib/md5.c (set_uint32): Likewise.
44722         * lib/sha1.c (set_uint32): Likewise.
44723
44724 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44725
44726         * lib/sha1.c (set_uint32): Mark function as static.
44727
44728 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44729
44730         md2: clarify comments to say that alignment is not required.
44731         * lib/md2.h: Remove warning about alignment in comment.
44732         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
44733         never been required.
44734
44735 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44736
44737         md4: adapt alignment constraint fix from sha1.
44738         * lib/md4.c (set_uint32): New function, from sha1.c
44739         (md4_read_ctx): Use it.
44740         (md4_finish_ctx): Doc fix.
44741         * lib/md4.h: Doc fix.
44742
44743 2008-01-31  Simon Josefsson  <simon@josefsson.org>
44744
44745         md5: adapt alignment constraint fix from sha1.
44746         * lib/md5.c (set_uint32): New function, from sha1.c
44747         (md5_read_ctx): Use it.
44748         (md5_finish_ctx): Doc fix.
44749         * lib/md5.h: Doc fix.
44750
44751 2008-01-30  Peter Palfrader  <weasel@debian.org>
44752
44753         sha1: remove the result buffer alignment constraint
44754         * lib/sha1.c (set_uint32): New function.
44755         (sha1_read_ctx): Rewrite to remove the result buffer alignment
44756         constraint.
44757         (sha1_finish_ctx): Remove comment warning about alignment constraint.
44758         * lib/sha1.h: Likewise.
44759
44760 2008-01-30  Andreas Schwab  <schwab@suse.de>
44761             Bruno Haible  <bruno@clisp.org>
44762
44763         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
44764         correct definition of LDBL_MIN_EXP.
44765
44766 2008-01-30  Karl Berry  <karl@gnu.org>
44767
44768         * config/srclist-update: try to preserve x bit on updates.
44769         * config/srclistvars.sh: update for karl.
44770
44771 2008-01-29  Jim Meyering  <meyering@redhat.com>
44772
44773         vasnprintf.c: Avoid warning about unused label
44774         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
44775         "overflow" label definition and associated code with the
44776         same cpp condition that guards the sole use of that label.
44777
44778 2008-01-26  Bruno Haible  <bruno@clisp.org>
44779
44780         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
44781         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
44782         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
44783         * lib/isnanl-nolibm.h (isnanl): Likewise.
44784         Reported by Paul Eggert <eggert@cs.ucla.edu>.
44785
44786 2008-01-26  Bruno Haible  <bruno@clisp.org>
44787
44788         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
44789         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
44790
44791 2008-01-26  Bruno Haible  <bruno@clisp.org>
44792
44793         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
44794         GCC >= 4.0 built-in.
44795         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
44796
44797 2008-01-26  Bruno Haible  <bruno@clisp.org>
44798
44799         Rename isnan, applicable to 'double' only, to isnand.
44800         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
44801         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
44802         (configure.ac): Update.
44803         (Include): Replace "isnan.h" with "isnand.h".
44804         * m4/isnand.m4: Renamed from m4/isnan.m4.
44805         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
44806         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
44807         instead of isnan.c.
44808         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
44809         instead of HAVE_ISNAN_IN_LIBC.
44810         (isnand): Renamed from isnan.
44811         * lib/isnand.c: New file.
44812         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
44813         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
44814         (Makefile.am): Update.
44815         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
44816         Include isnand.h instead of isnan.h.
44817         (main): Test isnand instead of isnan.
44818         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
44819         isnan-nolibm.
44820         * modules/frexp (Depends-on): Likewise.
44821         * modules/frexp-tests (Depends-on): Likewise.
44822         * modules/frexp-nolibm (Depends-on): Likewise.
44823         * modules/frexp-nolibm-tests (Depends-on): Likewise.
44824         * modules/isfinite (Depends-on): Likewise.
44825         * modules/round-tests (Depends-on): Likewise.
44826         * modules/signbit (Depends-on): Likewise.
44827         * modules/signbit-tests (Depends-on): Likewise.
44828         * modules/snprintf-posix (Depends-on): Likewise.
44829         * modules/sprintf-posix (Depends-on): Likewise.
44830         * modules/trunc-tests (Depends-on): Likewise.
44831         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44832         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44833         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44834         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44835         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44836         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44837         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44838         * modules/vasnprintf-posix (Depends-on): Likewise.
44839         * modules/vasprintf-posix (Depends-on): Likewise.
44840         * modules/vfprintf-posix (Depends-on): Likewise.
44841         * modules/vsnprintf-posix (Depends-on): Likewise.
44842         * modules/vsprintf-posix (Depends-on): Likewise.
44843         * lib/frexp.c: Include isnand.h instead of isnan.h.
44844         (ISNAN): Set to isnand instead of isnan.
44845         * lib/isfinite.c: Include isnand.h instead of isnan.h.
44846         (gl_isfinited): Use isnand instead of isnan.
44847         * lib/signbitd.c: Include isnand.h instead of isnan.h.
44848         (gl_signbitd): Use isnand instead of isnan.
44849         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
44850         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
44851         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
44852         (main): Use isnand instead of isnan.
44853         * tests/test-round1.c: Include isnand.h.
44854         (main): Use isnand instead of isnan.
44855         * tests/test-round2.c: Include isnand.h instead of isnan.h.
44856         (ISNAN): Set to isnand instead of isnan.
44857         * tests/test-trunc1.c: Include isnand.h.
44858         (main): Use isnand instead of isnan.
44859         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
44860         (equal): Use isnand instead of isnan.
44861         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
44862         isnand-nolibm.
44863         * NEWS: Mention the change.
44864
44865 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44866             Bruno Haible  <bruno@clisp.org>
44867
44868         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
44869         the GCC builtins for signbits are present and set
44870         REPLACE_SIGNBIT_USING_GCC if so.
44871         * lib/math.in.h (signbit): Define using GCC builtins if
44872         REPLACE_SIGNBIT_USING_GCC is set.
44873         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
44874         REPLACE_SIGNBIT_USING_GCC.
44875         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
44876
44877 2008-01-25  Jim Meyering  <meyering@redhat.com>
44878
44879         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
44880         * lib/poll.c: Include <config.h>, not "config.h".
44881         * tests/test-getaddrinfo.c: Likewise.
44882
44883 2008-01-25  Simon Josefsson  <simon@josefsson.org>
44884
44885         * modules/sockets-tests: New file.
44886
44887 2008-01-24  Simon Josefsson  <simon@josefsson.org>
44888
44889         * modules/sockets: New module, can be used to call WSA_Startup and
44890         WSA_Cleanup when needed.
44891
44892         * lib/sockets.h, lib/sockets.c: New files.
44893
44894         * m4/sockets.m4: New file.
44895
44896         * tests/test-sockets.c: New file.
44897
44898 2008-01-19  Bruno Haible  <bruno@clisp.org>
44899
44900         * doc/posix-headers: Renamed from doc/headers.
44901         * doc/posix-functions: Renamed from doc/functions.
44902         * doc/gnulib.texi: Update.
44903
44904 2008-01-19  Bruno Haible  <bruno@clisp.org>
44905
44906         * doc/glibc-functions/strcasestr.texi: Include contents of
44907         doc/functions/strcasestr.texi, fixing the list of platforms.
44908         * doc/functions/strcasestr.texi: Remove file.
44909
44910 2008-01-19  Bruno Haible  <bruno@clisp.org>
44911
44912         * doc/glibc-functions/memmem.texi: Include contents of
44913         doc/functions/memmem.texi.
44914         * doc/functions/memmem.texi: Remove file.
44915
44916 2008-01-18  Bruno Haible  <bruno@clisp.org>
44917
44918         * doc/glibc-functions/*.texi: New files.
44919         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
44920         to use the new files.
44921
44922 2008-01-17  Bruno Haible  <bruno@clisp.org>
44923
44924         * tests/test-gethostname.c (main): Fix printf statement.
44925
44926 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44927
44928         * modules/gethostname-tests: New file.
44929
44930         * tests/test-gethostname.c: New file.
44931
44932 2008-01-17  Simon Josefsson  <simon@josefsson.org>
44933
44934         * lib/gethostname.c: Include string.h unconditionally, strncpy is
44935         used by the UNAME case.  Reported by Bruno Haible
44936         <bruno@clisp.org>.
44937
44938 2008-01-17  Eric Blake  <ebb9@byu.net>
44939
44940         Convert c-strcasestr to be more efficient.
44941         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
44942         (Depends-on): Add c-strcase, remove malloca, strnlen.
44943         * tests/test-c-strcasestr.c (main): Enhance test.
44944         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
44945
44946 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
44947
44948         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
44949         Use it in creating po/Makevars.
44950
44951 2008-01-15  Simon Josefsson  <simon@josefsson.org>
44952
44953         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
44954         Applications that requires it should initialize libgcrypt
44955         manually.
44956
44957 2008-01-16  Simon Josefsson  <simon@josefsson.org>
44958
44959         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
44960
44961 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
44962
44963         Fix problem with getdate on mingw32 reported by Simon Josefsson
44964         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
44965         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
44966         tzname", when deciding whether to declare tzname.
44967         * lib/strftime.c (tzname): Likewise.
44968
44969 2008-01-15  Bruno Haible  <bruno@clisp.org>
44970
44971         Work around a MacOS X 10.5 bug in frexpl().
44972         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
44973         * doc/functions/frexpl.texi: Document the bug.
44974         Reported by Elias Pipping <pipping@gentoo.org>.
44975
44976 2008-01-14  Eric Blake  <ebb9@byu.net>
44977
44978         Touch up previous patch.
44979         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
44980         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
44981
44982         Convert strcasestr module to use Two-Way algorithm.
44983         * modules/strcasestr-simple: New module, based on the old
44984         strcasestr, but with Two-Way rather than KMP.
44985         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
44986         * lib/string.in.h (rpl_strcasestr): Declare.
44987         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
44988         performance.
44989         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
44990         * modules/string (Makefile.am): Support strcasestr.
44991         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44992         * modules/strcasestr-tests (Depends-on): Check for alarm.
44993         * tests/test-strcasestr.c: Augment test.
44994         * lib/str-two-way.h: Clean up stray macro.
44995         * NEWS: Document new module.
44996         * MODULES.html.sh (string handling): Likewise.
44997         * doc/functions/strcasestr.texi: New file.
44998         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
44999         here, since it is not a POSIX function.
45000
45001 2008-01-14  Colin Watson  <cjwatson@debian.org>
45002             Bruno Haible  <bruno@clisp.org>
45003
45004         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
45005         works fine; if not, set REPLACE_STRSIGNAL.
45006         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
45007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45008         REPLACE_STRSIGNAL.
45009         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
45010         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
45011         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
45012
45013 2008-01-14  Bruno Haible  <bruno@clisp.org>
45014
45015         * modules/strsignal (Include): Change to <string.h>.
45016
45017 2008-01-14  Colin Watson  <cjwatson@debian.org>
45018
45019         * modules/argp (Notice): Add a notice recommending to change
45020         XGETTEXT_OPTIONS.
45021         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
45022
45023 2008-01-13  Colin Watson  <cjwatson@debian.org>
45024
45025         * modules/strsignal-tests: New file.
45026         * tests/test-strsignal.c: New file.
45027
45028         * lib/strsignal.c: New file, from glibc with modifications.
45029         * lib/siglist.h: New file, from glibc with modifications.
45030         * lib/string.in.h (strsignal): New declaration.
45031         * m4/strsignal.m4: New file.
45032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45033         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
45034         * modules/strsignal: New file.
45035         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
45036         HAVE_DECL_STRSIGNAL.
45037
45038 2008-01-13  Bruno Haible  <bruno@clisp.org>
45039
45040         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
45041         locale encoding is not ASCII. Needed for OpenBSD 4.0.
45042         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45043         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45044
45045 2008-01-13  Bruno Haible  <bruno@clisp.org>
45046
45047         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
45048         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
45049         * lib/argp.h (__attribute__): Likewise.
45050         * lib/c-stack.c (__attribute__): Likewise.
45051         * lib/error.h (__attribute__): Likewise.
45052         * lib/fts.c (__attribute__): Likewise.
45053         * lib/openat.h (__attribute__): Likewise.
45054         * lib/stdio.in.h (__attribute__): Likewise.
45055         * lib/string.in.h (__attribute__): Likewise.
45056         * lib/utimens.c (__attribute__): Likewise.
45057         * lib/vasnprintf.h (__attribute__): Likewise.
45058         * lib/xalloc.h (__attribute__): Likewise.
45059         * lib/xprintf.h (__attribute__): Likewise.
45060         * lib/xstrtol.h (__attribute__): Likewise.
45061         * lib/xvasprintf.h (__attribute__): Likewise.
45062
45063 2008-01-12  Bruno Haible  <bruno@clisp.org>
45064
45065         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
45066         * doc/glibc-headers/a.out.texi: New file.
45067         * doc/glibc-headers/aliases.texi: New file.
45068         * doc/glibc-headers/alloca.texi: New file.
45069         * doc/glibc-headers/ar.texi: New file.
45070         * doc/glibc-headers/argp.texi: New file.
45071         * doc/glibc-headers/argz.texi: New file.
45072         * doc/glibc-headers/byteswap.texi: New file.
45073         * doc/glibc-headers/crypt.texi: New file.
45074         * doc/glibc-headers/endian.texi: New file.
45075         * doc/glibc-headers/envz.texi: New file.
45076         * doc/glibc-headers/err.texi: New file.
45077         * doc/glibc-headers/error.texi: New file.
45078         * doc/glibc-headers/execinfo.texi: New file.
45079         * doc/glibc-headers/fpu_control.texi: New file.
45080         * doc/glibc-headers/fstab.texi: New file.
45081         * doc/glibc-headers/fts.texi: New file.
45082         * doc/glibc-headers/getopt.texi: New file.
45083         * doc/glibc-headers/ieee754.texi: New file.
45084         * doc/glibc-headers/ifaddrs.texi: New file.
45085         * doc/glibc-headers/libintl.texi: New file.
45086         * doc/glibc-headers/mcheck.texi: New file.
45087         * doc/glibc-headers/mntent.texi: New file.
45088         * doc/glibc-headers/obstack.texi: New file.
45089         * doc/glibc-headers/paths.texi: New file.
45090         * doc/glibc-headers/printf.texi: New file.
45091         * doc/glibc-headers/pty.texi: New file.
45092         * doc/glibc-headers/resolv.texi: New file.
45093         * doc/glibc-headers/shadow.texi: New file.
45094         * doc/glibc-headers/sysexits.texi: New file.
45095         * doc/glibc-headers/ttyent.texi: New file.
45096
45097 2008-01-12  Jim Meyering  <meyering@redhat.com>
45098
45099         announce-gen: emit Gnulib's git-based version string.
45100         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
45101         New option --gnulib-version=V, where V is expected to be
45102         the output of running git describe in the gnulib directory.
45103         (get_tool_versions): Request feedback on xdelta.  I suspect it's
45104         not useful, and plan to stop publishing an xdelta file with each
45105         coreutils release.
45106
45107         * build-aux/announce-gen: Also check for lzma-compressed files.
45108
45109 2008-01-11  Bruno Haible  <bruno@clisp.org>
45110
45111         * tests/test-memmem.c (main): Increase maximum allowed time.
45112         * tests/test-strstr.c (main): Likewise.
45113
45114 2008-01-11  Bruno Haible  <bruno@clisp.org>
45115
45116         * doc/functions/memmem.texi: Add more precisions about platforms.
45117         * doc/functions/strstr.texi: Likewise.
45118
45119 2008-01-10  Eric Blake  <ebb9@byu.net>
45120
45121         * m4/strstr.m4: Delete cruft from copy-n-paste.
45122         Reported by Bruno Haible.
45123
45124 2008-01-10  Bruno Haible  <bruno@clisp.org>
45125
45126         Make c-strstr rely on strstr.
45127         * lib/c-strstr.c: Don't include str-kmp.h.
45128         (c_strstr): Define in terms of strstr.
45129         * modules/c-strstr (Files): Remove lib/str-kmp.h.
45130         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
45131
45132 2008-01-10  Bruno Haible  <bruno@clisp.org>
45133
45134         * doc/gnulib.texi (String Functions in C Locale): New section.
45135         * doc/c-ctype.texi: New file.
45136         * doc/c-strcase.texi: New file.
45137         * doc/c-strcaseeq.texi: New file.
45138         * doc/c-strcasestr.texi: New file.
45139         * doc/c-strstr.texi: New file.
45140         * doc/c-strtod.texi: New file.
45141         * doc/c-strtold.texi: New file.
45142
45143 2008-01-10  Eric Blake  <ebb9@byu.net>
45144
45145         * lib/relocatable.h: Fix a comment.
45146
45147 2008-01-10  Eric Blake  <ebb9@byu.net>
45148
45149         Share two-way algorithm.
45150         * lib/str-two-way.h: New file, merged from...
45151         * lib/memmem.c: ...here...
45152         * lib/strstr.c: ...and here.
45153         * modules/memmem (Files): Use it.
45154         * modules/strstr (Files): Likewise.
45155
45156         Avoid quadratic strstr implementations.
45157         * lib/strstr.c: New file.
45158         * m4/strstr.m4: Likewise.
45159         * modules/strstr: Likewise.
45160         * modules/strstr-tests: Likewise.
45161         * tests/test-strstr.c: Likewise.
45162         * lib/string.in.h (rpl_strstr): Declare.
45163         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
45164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
45165         * modules/string (Makefile.am): Likewise.
45166         * MODULES.html.sh (string handling): Mention new module.
45167         * doc/functions/strstr.texi (strstr): Document the bug.
45168
45169 2008-01-10  Bruno Haible  <bruno@clisp.org>
45170
45171         * lib/relocatable.h (relocate): State whether result is freshly
45172         allocated or not.
45173         * lib/relocatable.c (relocate): Return a freshly allocated string
45174         instead of a pointer to a privately held string.
45175         Reported by Sylvain Beucler <beuc@gnu.org>.
45176
45177 2008-01-10  Colin Watson  <cjwatson@debian.org>
45178
45179         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
45180         s/S_ISNLK/S_ISLNK/.
45181
45182 2008-01-09  Bruno Haible  <bruno@clisp.org>
45183
45184         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
45185         and other files.
45186         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
45187         if it's only a guess.
45188         * modules/memmem: Simplify by depending on memmem-simple.
45189
45190 2008-01-09  Bruno Haible  <bruno@clisp.org>
45191
45192         Work around OpenBSD 4.0 tdelete() bug.
45193         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
45194         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
45195         macros and don't redefine the enum values.
45196         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
45197         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
45198         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
45199
45200 2008-01-09  Bruno Haible  <bruno@clisp.org>
45201
45202         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
45203         (main): Don't perform the tests if setlocale did not install a UTF-8
45204         locale. Needed on OpenBSD 4.0.
45205         * modules/wcwidth-tests (Depends-on): Add localcharset.
45206
45207 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45208
45209         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
45210         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
45211         * NEWS: announce this.
45212         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
45213
45214 2008-01-09  Simon Josefsson  <simon@josefsson.org>
45215         and Eric Blake  <ebb9@byu.net>
45216
45217         Add memmem-simple module.
45218         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
45219         (gl_FUNC_MEMMEM): Separate performance from presence checks.
45220         * modules/memmem-simple: New file.
45221         * modules/memmem (Description): Tweak.
45222         * MODULES.html.sh (string handling): Mention new module.
45223         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
45224         addressed by memmem-simple.
45225         * NEWS: Document the difference.
45226
45227 2008-01-09  Eric Blake  <ebb9@byu.net>
45228
45229         Give gcc some memmem optimization hints.
45230         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
45231         (strcasestr): Declare as pure.
45232         * modules/memmem (Maintainer): Claim my implementation.
45233
45234 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45235
45236         Support AIX 6.1 and higher.
45237         * build-aux/config.libpath: Likewise.
45238         * build-aux/config.rpath: Likewise.
45239
45240 2008-01-08  Jim Meyering  <meyering@redhat.com>
45241             Bruno Haible  <bruno@clisp.org>
45242
45243         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
45244         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
45245         Reported by Peter Fales in
45246         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
45247
45248 2008-01-08  Bruno Haible  <bruno@clisp.org>
45249
45250         * modules/unictype/category-of (Depends-on): Add
45251         unictype/category-none.
45252         * modules/unictype/category-and-tests (Depends-on): Add
45253         unictype/category-{L,N,Lu,Nd}.
45254         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
45255         * modules/unictype/category-or-tests (Depends-on): Add
45256         unictype/category-{L,N}.
45257         * modules/unictype/category-name-tests (Depends-on): Add
45258         unictype/category-{Z,Nl}.
45259         Reported by Simon Josefsson.
45260
45261 2008-01-08  Bruno Haible  <bruno@clisp.org>
45262
45263         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
45264         convention better.
45265         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
45266         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
45267         Reported by Peter Miller <millerp@canb.auug.org.au>.
45268
45269 2008-01-08  Eric Blake  <ebb9@byu.net>
45270
45271         Rewrite memmem to guarantee linear complexity without malloc.
45272         * lib/memmem.c (memmem): Use Two-Way rather than
45273         Knuth-Morris-Pratt, to allow O(1) space usage.
45274         (critical_factorization, two_way_short_needle)
45275         (two_way_long_needle): New functions.
45276         (knuth_morris_pratt): Delete.
45277         * modules/memmem (Depends-on): No longer need malloca or stdbool.
45278         Add stdint.
45279         * tests/test-memmem.c (main): Add tests for periodic needle and
45280         sublinear performance.
45281         * doc/functions/memmem.texi (memmem): Document other deficiencies
45282         in cygwin and older glibc.
45283
45284 2008-01-08  Bruno Haible  <bruno@clisp.org>
45285
45286         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
45287         augmentation.
45288
45289 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
45290
45291         Add a configure time option: --disable-acl.
45292         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
45293         AC_ARG_ENABLE(acl).
45294
45295 2008-01-06  Simon Josefsson  <simon@josefsson.org>
45296
45297         * tests/test-localename.c: Don't include obsolete "setenv.h".
45298
45299         * modules/localename-tests (Depends-on): Need unsetenv.
45300
45301 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45302
45303         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
45304
45305 2008-01-06  Colin Watson  <cjwatson@debian.org>
45306
45307         * users.txt: Add man-db.
45308
45309 2008-01-07  Bruno Haible  <bruno@clisp.org>
45310
45311         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
45312         previous section name.
45313
45314 2008-01-07  Bruno Haible  <bruno@clisp.org>
45315
45316         * lib/progname.c (set_program_name): Don't strip off a leading
45317         "lt-" prefix outside a .libs directory.
45318         Suggested by Paul Eggert.
45319
45320 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
45321             Bruno Haible  <bruno@clisp.org>
45322
45323         Improve memory cleanup in 'relocatable' module.
45324         * lib/relocatable.h (compute_curr_prefix): Change return type to
45325         'char *'.
45326         * lib/relocatable.c (compute_curr_prefix): Change return type to
45327         'char *'. Free curr_installdir after use.
45328         (relocate): Free curr_prefix_better after use.
45329         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
45330
45331 2008-01-01  Bruno Haible  <bruno@clisp.org>
45332
45333         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
45334         failure on older glibc systems.
45335         Reported by Peter Fales <psfales@alcatel-lucent.com>.
45336
45337 2008-01-05  Eric Blake  <ebb9@byu.net>
45338
45339         Avoid quadratic system memmem.
45340         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
45341         Reported by Ralf Wildenhues.
45342
45343         Fix memmem test for mingw.
45344         * modules/memmem-tests (configure.ac): Check for alarm.
45345         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
45346         it.
45347         * doc/functions/memmem.texi: New file.
45348         * doc/gnulib.texi (Function Substitutes): Add memmem.
45349         Reported by Bruno Haible.
45350
45351 2008-01-04  Bruno Haible  <bruno@clisp.org>
45352
45353         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
45354         Require gl_HEADER_STRINGS_H_DEFAULTS, not
45355         gl_HEADER_STRING_H_DEFAULTS.
45356
45357 2008-01-04  Eric Blake  <ebb9@byu.net>
45358
45359         Shorten duration of memmem test.
45360         * tests/test-memmem.c (main): Use alarm to declare failure if test
45361         is taking too long.
45362         Reported by Ralf Wildenhues.
45363
45364 2007-12-21  Simon Josefsson  <simon@josefsson.org>
45365
45366         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
45367         string, needed by strerror.
45368
45369 2008-01-03  Colin Watson  <cjwatson@debian.org>
45370             Bruno Haible  <bruno@clisp.org>
45371
45372         * doc/gnulib-tool.texi (Localization): New section.
45373
45374 2008-01-02  Bruno Haible  <bruno@clisp.org>
45375
45376         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
45377         variables to 'unsigned char *' type.
45378         Reported by Paul Eggert.
45379
45380 2008-01-02  Jim Meyering  <jim@meyering.net>
45381
45382         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
45383
45384 2007-12-31  Jim Meyering  <jim@meyering.net>
45385
45386         Avoid use of private FTS type name.
45387         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
45388
45389 2007-12-30  Karl Berry  <karl@gnu.org>
45390
45391         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
45392         work around defect in Texinfo and/or the standalone Info browser.
45393
45394 2007-12-30  Bruno Haible  <bruno@clisp.org>
45395
45396         Unify 5 copies of the KMP code.
45397         * lib/str-kmp.h: New file.
45398         * lib/c-strcasestr.c: Include str-kmp.h.
45399         (knuth_morris_pratt): Remove function.
45400         (c_strcasestr): Update.
45401         * lib/c-strstr.c: Include str-kmp.h.
45402         (knuth_morris_pratt): Remove function.
45403         (c_strcasestr): Update.
45404         * lib/mbscasestr.c: Include str-kmp.h.
45405         (knuth_morris_pratt_unibyte): Remove function.
45406         * lib/mbsstr.c: Include str-kmp.h.
45407         (knuth_morris_pratt_unibyte): Remove function.
45408         * lib/strcasestr.c: Include str-kmp.h.
45409         (knuth_morris_pratt): Remove function.
45410         (strcasestr): Update.
45411         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
45412         * modules/c-strstr (Files): Likewise.
45413         * modules/mbscasestr (Files): Likewise.
45414         * modules/mbsstr (Files): Likewise.
45415         * modules/strcasestr (Files): Likewise.
45416         Suggested by Paul Eggert.
45417
45418 2007-12-30  Bruno Haible  <bruno@clisp.org>
45419
45420         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
45421         defined.
45422
45423 2007-12-30  Bruno Haible  <bruno@clisp.org>
45424
45425         * lib/xmalloca.h: Include xalloc.h.
45426         (xnmalloca): New macro.
45427
45428 2007-12-30  Bruno Haible  <bruno@clisp.org>
45429
45430         * lib/malloca.h (nmalloca): New macro.
45431         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
45432         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
45433         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
45434         knuth_morris_pratt_multibyte): Likewise.
45435         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
45436         knuth_morris_pratt_multibyte): Likewise.
45437         * lib/memmem.c (knuth_morris_pratt): Likewise.
45438         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
45439
45440 2007-12-25  Bruno Haible  <bruno@clisp.org>
45441
45442         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
45443         * lib/glob.c: Don't include openat.h.
45444         (link_exists2_p): Add back the code that deals with the
45445         !GLOB_ALTDIRFUNC case.
45446         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
45447         let it do the filename concatenation.
45448         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
45449         * modules/glob (Depends-on): Remove openat.
45450
45451 2007-12-31  Bruno Haible  <bruno@clisp.org>
45452
45453         * modules/dirfd (License): Change to LGPLv2+.
45454         Approved by Jim Meyering.
45455
45456 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45457
45458         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
45459         when multiplying M by sizeof (size_t).
45460
45461 2007-12-10  Martin Lambers  <marlam@marlam.de>
45462
45463         Override getpagesize on mingw.
45464         * lib/getpagesize.c: New file.
45465         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
45466         * modules/getpagesize (Files): Add lib/getpagesize.c.
45467         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
45468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45469         REPLACE_GETPAGESIZE.
45470         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
45471
45472 2007-12-25  Bruno Haible  <bruno@clisp.org>
45473
45474         * modules/localcharset (Notice): New field.
45475         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
45476         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
45477
45478 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45479             Bruno Haible  <bruno@clisp.org>
45480
45481         Avoid using the syntax symbol() in formatted documentation.
45482         * MODULES.html.sh (func_module): When replacing symbol() with a
45483         hyperlink, remove the parentheses. Show an error if some remain.
45484         Recognize and render the '...' syntax.
45485         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
45486         Rework. Add paragraph about GCC's inlining.
45487         * doc/alloca.texi: Likewise.
45488         * doc/error.texi: Remove parentheses from symbol reference.
45489         * doc/gnulib-intro.texi: Likewise.
45490         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
45491         * modules/fnmatch (Description): Reword to say "the ... function".
45492         * modules/full-read (Description): Likewise.
45493         * modules/full-write (Description): Likewise.
45494         * modules/safe-read (Description): Likewise.
45495         * modules/safe-write (Description): Likewise.
45496         * modules/strchrnul (Description): Likewise.
45497         * modules/trim (Description): Likewise.
45498         * modules/error (Description): Remove parentheses from symbol
45499         references.
45500         * modules/verror (Description): Likewise.
45501         Reported by Karl Berry.
45502
45503 2007-12-25  Bruno Haible  <bruno@clisp.org>
45504
45505         Fixup after 2007-10-16 commit.
45506         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
45507
45508 2007-12-24  Bruno Haible  <bruno@clisp.org>
45509
45510         Make --enable-relocatable work with DESTDIR.
45511         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
45512         to compute installdir from destprog.
45513         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
45514         also set the RELOC_DESTDIR variable.
45515         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45516
45517 2007-12-24  Bruno Haible  <bruno@clisp.org>
45518
45519         Fix link error due to xalloc_die().
45520         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
45521         of xreadlink.
45522         * lib/relocwrapper.c: Update comments.
45523         * build-aux/install-reloc: Remove xreadlink.c from file list.
45524         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
45525         xreadlink.c.
45526         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45527
45528 2007-12-24  Bruno Haible  <bruno@clisp.org>
45529
45530         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
45531         * lib/setenv.h: Remove file.
45532         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
45533         lib/setenv.h.
45534         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
45535         (Depends-on): Add stdlib.
45536         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
45537         gl_FUNC_UNSETENV.
45538         (Include): Replace setenv.h with <stdlib.h>.
45539         * modules/unsetenv: New file.
45540         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
45541         * lib/unsetenv.c: Include <stdlib.h> first.
45542         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
45543         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
45544         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
45545         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
45546         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
45547         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
45549         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
45550         * doc/functions/unsetenv.texi: Update.
45551         * modules/xsetenv (Depends-on): Add unsetenv.
45552         * modules/getdate (Depends-on): Likewise.
45553         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
45554         * lib/xsetenv.c: Don't include setenv.h.
45555         * lib/getdate.y: Likewise.
45556         * lib/relocwrapper.c: Likewise.
45557         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
45558         (Depends-on): Add stdlib.
45559         * NEWS: Mention the changes.
45560         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
45561
45562 2007-12-23  Bruno Haible  <bruno@clisp.org>
45563
45564         * lib/memmem.c (memmem): Use lowercase variable names. Tab
45565         indentation.
45566
45567 2007-12-23  Bruno Haible  <bruno@clisp.org>
45568
45569         * lib/c-strcasestr.c: Add more comments.
45570         * lib/c-strstr.c: Likewise.
45571         * lib/mbscasestr.c: Likewise.
45572         * lib/mbsstr.c: Likewise.
45573         * lib/strcasestr.c: Likewise.
45574         * lib/memmem.c: Likewise.
45575
45576 2007-12-23  Bruno Haible  <bruno@clisp.org>
45577
45578         * tests/test-memmem.c: Include <string.h> first.
45579
45580 2007-12-22  Bruno Haible  <bruno@clisp.org>
45581
45582         * gnulib-tool (func_create_testdir): Change $auxdir while generating
45583         the contents of $testsbase.
45584         Reported by Ralf Wildenhues.
45585
45586 2007-12-22  Bruno Haible  <bruno@clisp.org>
45587
45588         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
45589         two variables local_ldadd_before, local_ldadd_last.
45590
45591 2007-12-20  Eric Blake  <ebb9@byu.net>
45592
45593         Work around circular library issue when cross-compiling.
45594         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
45595         that progname.o does not need to pull in rpl_memcmp.
45596
45597 2007-12-19  Eric Blake  <ebb9@byu.net>
45598
45599         Fix memmem to avoid O(n^2) worst-case complexity.
45600         * lib/memmem.c (knuth_morris_pratt): New function.
45601         (memmem): Use it if first few naive iterations fail.
45602         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
45603         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
45604         * modules/memchr (License): Likewise.
45605         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
45606         malloca.
45607         * tests/test-memmem.c: Rewrite, borrowing ideas from
45608         test-mbsstr1.c; the old version wouldn't even compile!
45609         * modules/memmem-tests: New file.
45610         * lib/string.in.h (rpl_memmem): Add declaration.
45611         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
45612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
45613         REPLACE_MEMMEM.
45614
45615 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
45616
45617         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
45618         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
45619         before any system include files, and undef after them all.  This
45620         should fix a problem on VMS reported by John E. Malmberg in
45621         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
45622
45623 2007-12-17  Eric Blake  <ebb9@byu.net>
45624
45625         Revert addition of verify, for BSD/OS.
45626         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
45627         can't handle large files, for the sake of obsolete platforms.
45628         * modules/fseeko (Depends-on): Remove verify.
45629         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
45630         * doc/functions/ftello.texi (ftello): Likewise.
45631         * doc/functions/fgetpos.texi (fgetpos): Likewise.
45632         Reported by Larry Jones.
45633
45634 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
45635
45636         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
45637         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
45638
45639 2007-12-17  Jim Meyering  <meyering@redhat.com>
45640
45641         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
45642         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
45643         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
45644         * modules/getcwd (Depends-on): Add openat.
45645         Reported by Petr Salinger.
45646
45647 2007-12-17  Bruno Haible  <bruno@clisp.org>
45648
45649         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
45650         avoid a segmentation fault of the configure test on x86_64 systems.
45651
45652 2007-12-15  Jim Meyering  <meyering@redhat.com>
45653
45654         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
45655
45656 2007-12-13  Eric Blake  <ebb9@byu.net>
45657
45658         Another fseek test.
45659         * tests/test-fseek.c (main): Also test ungetc handling.
45660         * tests/test-fseeko.c (main): Likewise.
45661         * modules/fseeko (Depends-on): Add verify.
45662         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
45663         large.
45664         Reported by Larry Jones.
45665
45666         Fix fseeko on mingw.
45667         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
45668         seek.
45669
45670         Beef up fseek tests.
45671         * tests/test-fseek.c (main): Also test eof handling.
45672         * tests/test-fseeko.c (main): Likewise.
45673         Reported by Larry Jones.
45674
45675 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
45676
45677         Fix fseeko on BSD-based platforms.
45678         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
45679         successful seek.
45680
45681 2007-12-12  Eric Blake  <ebb9@byu.net>
45682
45683         Allow circular dependency of separate libtests.a
45684         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
45685         when use_libtests.
45686
45687 2007-12-11  Eric Blake  <ebb9@byu.net>
45688
45689         Fix bug with -0.0L in previous patch.
45690         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
45691         * tests/test-isnan.c (main): Also test on zeroes.
45692         * tests/test-isnanf.c (main): Likewise.
45693         * tests/test-isnanl.h (main): Likewise.
45694
45695         Detect pseudo-denormals on x86 even when cross-compiling.
45696         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
45697         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
45698         invalid bit patterns that happen to satisfy ==.
45699
45700         Avoid link failures with separate libtests.a.
45701         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
45702         last, to satisfy circular dependencies.
45703
45704 2007-12-11  Eric Blake  <ebb9@byu.net>
45705         and Bruno Haible  <bruno@clisp.org>
45706
45707         Fix OpenBSD 4.0 <float.h> handling of long double.
45708         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
45709         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
45710         * doc/headers/float.texi (float.h): Document OpenBSD bug.
45711
45712 2007-12-11  Jim Meyering  <meyering@redhat.com>
45713
45714         * users.txt: Add libvirt.
45715
45716         Support versions of autoconf prior to 2.59c.
45717         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
45718         if it is not already defined.
45719
45720 2007-12-09  Bruno Haible  <bruno@clisp.org>
45721
45722         Let 'gnulib-tool --import' collect sources needed for the tests in
45723         tests/ rather than in lib/.
45724         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
45725         argument. If true, add rules to generate libtests.a, and put libtests.a
45726         into $(LDADD). Consider source files in subdirectories and set
45727         uses_subdirs.
45728         (func_emit_initmacro_start, func_emit_initmacro_end,
45729         func_emit_initmacro_done): Pass all arguments explicitly.
45730         (func_import): Determine two module lists main_modules,
45731         testsrelated_modules. Determine use_libtests. Determine two variables
45732         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
45733         instead of just sed_transform_lib_file. Determine two variables
45734         main_files and testsrelated_files. Compute 'files' as the union of
45735         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
45736         func_add_or_update. In the generated gnulib-comp.m4, collect the
45737         object files for tests/ in different variables than those for lib/.
45738         Substitute LIBTESTS_LIBDEPS.
45739         (func_create_testdir): Combine the uses_subdirs results from
45740         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
45741
45742 2007-12-09  Bruno Haible  <bruno@clisp.org>
45743
45744         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
45745         the build-aux directory.
45746
45747 2007-12-09  Bruno Haible  <bruno@clisp.org>
45748
45749         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
45750         introduced on 2006-09-09.
45751
45752 2007-12-07  Jim Meyering  <meyering@redhat.com>
45753
45754         Let these macros work also with autoconf-2.59.
45755         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
45756         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
45757         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45758
45759 2007-12-06  Jim Meyering  <meyering@redhat.com>
45760
45761         Avoid a configure-time syntax error in gl_FUNC_ACL.
45762         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
45763         function in each branch, before testing the cache variable.
45764
45765 2007-12-04  Eric Blake  <ebb9@byu.net>
45766
45767         Make scripts executable.
45768         * build-aux/config.guess: Add execute permissions.
45769         * build-aux/config.sub: Likewise.
45770         * build-aux/gendocs.sh: Likewise.
45771
45772         Fix frexp on mingw.
45773         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
45774         cross-compiling.
45775         * doc/functions/frexp.texi (frexp): Document the bug.
45776
45777         Make cygwin fseeko check more reliable.
45778         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
45779         version numbers, rather than unrelated feature check.
45780         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
45781         * doc/functions/ftello.texi (ftello): Likewise.
45782         Reported by Bruno Haible.
45783
45784         * m4/strerror.m4: Bump version number.
45785
45786 2007-12-03  Bruno Haible  <bruno@clisp.org>
45787
45788         * doc/functions/mprotect.texi: Mention the mingw problem.
45789
45790 2007-12-03  Eric Blake  <ebb9@byu.net>
45791
45792         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
45793         REPLACE_STRERROR is initialized before this macro.
45794
45795 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
45796
45797         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
45798         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
45799         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
45800         put -lsec in even for programs other than 'ls'.  This fixes a problem
45801         for gettext reported by Bruno Haible in
45802         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
45803         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
45804         Add support for Solaris 10.  This isn't efficient, but should get the
45805         job done for now.
45806
45807 2007-12-03  James Youngman  <jay@gnu.org>
45808
45809         * doc/regexprops-generic.texi: change "an close-group" to "a
45810         close-group" and "illegal" to "not allowed".
45811
45812 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45813
45814         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
45815         pr_byname.h. Needed for the rare case when the maintainer has done
45816         "make maintainer-clean" in the source directory and then attempts a
45817         build outside the source directory.
45818         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
45819         scripts_byname.h.
45820
45821 2007-12-02  Martin Lambers <marlam@marlam.de>
45822             Bruno Haible  <bruno@clisp.org>
45823
45824         * lib/getpagesize.h: Remove file.
45825         * lib/unistd.in.h: Include declaration of getpagesize here.
45826         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
45827         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
45828         HAVE_SYS_PARAM_H.
45829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
45830         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45831         * modules/getpagesize (Files): Remove lib/getpagesize.h.
45832         (Depends-on): Add unistd.
45833         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45834         (Include): Use <unistd.h> instead of getpagesize.h.
45835         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
45836         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
45837         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
45838         gl_GETPAGESIZE invocation, already handled by module dependency.
45839         * lib/pagealign_alloc.c: Don't include getpagesize.h.
45840
45841 2007-12-02  Bruno Haible  <bruno@clisp.org>
45842
45843         * modules/strings-tests: New file.
45844         * tests/test-strings.c: New file.
45845
45846         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
45847         * lib/strings.in.h: New file.
45848         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
45849         * m4/strings_h.m4: New file.
45850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
45851         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
45852         * modules/strings: New file.
45853         * modules/string (Makefile.am): Update.
45854         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
45855         Reported by Karl Berry.
45856
45857 2007-12-01  Eric Blake  <ebb9@byu.net>
45858
45859         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
45860         accomodate fix in cygwin 1.5.25.
45861
45862 2007-12-01  Jim Meyering  <meyering@redhat.com>
45863
45864         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
45865         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
45866         that would inhibit utf8-optimization of a regexp containing line-
45867         or buffer-anchors, e.g., `^', `$'.
45868
45869 2007-11-30  Bruno Haible  <bruno@clisp.org>
45870
45871         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
45872         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
45873         glthread_recursive_lock_init.
45874         * lib/lock.c (glthread_recursive_lock_init)
45875         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
45876         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45877
45878 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
45879
45880         New function qset_acl, like set_acl but with syscall semantics.
45881         * lib/acl.h (qset_acl): New decl.
45882         * lib/acl.c (qset_acl): New function.
45883         (set_acl): Use new function.  Use more-consistent diagnostics.
45884
45885 2007-11-28  Jim Meyering  <meyering@redhat.com>
45886
45887         * modules/physmem (License): Change from GPL to LGPLv2+.
45888
45889 2007-11-26  Bruno Haible  <bruno@clisp.org>
45890
45891         * lib/vasnprintf.c (decode_long_double): Don't abort if the
45892         'long double' type has excess precision.
45893         Reported by Jim Meyering in
45894         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
45895
45896 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45897
45898         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
45899         Sync from <http://gnu.org/licenses>.
45900         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
45901         with license text from same location.
45902         * doc/maintain.texi, doc/standards.texi:  Sync from
45903         <http://savannah.gnu.org/projects/gnustandards>.
45904
45905 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
45906         and Jim Meyering  <meyering@redhat.com>
45907
45908         Adjust getdate' grammar to accept a slightly more regular language.
45909         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
45910         Before, the former was rejected.
45911         * lib/getdate.y (digits_to_date_time): New function, factored
45912         out of ...
45913         (number): ...here.  Just call digits_to_date_time.
45914         (hybrid): New non-terminal to handle an <unsigned number,
45915         signed relative offset> sequence consistently.
45916
45917 2007-11-18  Jim Meyering  <meyering@redhat.com>
45918
45919         Pull my changes from coreutils:
45920         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
45921         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
45922         use of $gnulib_tool_option_extras, so that it's separated from the
45923         preceding argument.
45924
45925         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
45926         * build-aux/bootstrap (cp_mark_as_generated): Create any required
45927         parent destination directories before copying a file into place.
45928
45929 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45930
45931         bootstrap: work also with 4-argument variant of AC_INIT
45932         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
45933
45934 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45935
45936         Port test-getaddrinfo to Solaris.
45937         Problem reported by Bruno Haible in
45938         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
45939         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
45940         explanation of setting 'hints'.
45941         Don't reject an implementation merely because it returns EAI_SERVICE.
45942         (EAI_SERVICE): Define to 0 if not defined.
45943
45944 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45945
45946         The license of gnu-make and posix-shell is now "GPLed build tool".
45947         * modules/gnu-make (License): Likewise.
45948         * modules/posix-shell (License): Likewise.
45949
45950         New module posix-shell, for determining a POSIX shell
45951         or perhaps something that is close enough to a POSIX shell.
45952         * m4/posix-shell.m4: New file.
45953         * modules/posix-shell: New file.
45954
45955         * MODULES.html.sh: Mention new module.
45956
45957         New module gnu-make, for determining whether we're using GNU Make.
45958         * m4/gnu-make.m4: New file.
45959         * modules/gnu-make: New file.
45960         * MODULES.html.sh: Mention new module.
45961
45962 2007-11-14  Jim Meyering  <meyering@redhat.com>
45963
45964         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
45965         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
45966         use this macro to create a function _definition_.
45967         Remove useless "#undef ARGMATCH_DIE".
45968
45969 2007-11-14  Bruno Haible  <bruno@clisp.org>
45970
45971         * lib/config.charset: Update for OpenBSD 4.1.
45972         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
45973
45974 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
45975
45976         Document 64-bit #if problems in stdint.texi.
45977         * doc/headers/stdint.texi (stdint.h): Mention problems with
45978         64-bit-#if, and how to work around them.
45979
45980         Don't insist on 'long long int' support in the preprocessor.  It
45981         breaks too many things.  For example, PRIdMAX still uses a 'long
45982         long int' format with the latest Sun compiler, even though
45983         HAVE_LONG_LONG_INT isn't defined due to that compiler's
45984         preprocessor problem.  This causes the latest coreutils to dump
45985         core on Solaris 10 sparc with the Sun C compiler.
45986         Instead, fix the 2007-10-16 problem in a different way, by evaluating
45987         the troublesome expressions at configure-time, not at #if-time.
45988         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
45989         preprocessor.
45990         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
45991         compile-time C checks, done at 'configure'-time.
45992         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
45993         * modules/inttypes (Makefile): Substitute the new symbols that
45994         gl_INTTYPES_H now generates.
45995         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
45996
45997 2007-11-12  Bruno Haible  <bruno@clisp.org>
45998
45999         Tests for Unicode character classification functions.
46000
46001         * modules/unictype/bidicategory-byname-tests: New file.
46002         * modules/unictype/bidicategory-name-tests: New file.
46003         * modules/unictype/bidicategory-of-tests: New file.
46004         * modules/unictype/bidicategory-test-tests: New file.
46005         * modules/unictype/block-list-tests: New file.
46006         * modules/unictype/block-of-tests: New file.
46007         * modules/unictype/block-test-tests: New file.
46008         * modules/unictype/category-C-tests: New file.
46009         * modules/unictype/category-Cc-tests: New file.
46010         * modules/unictype/category-Cf-tests: New file.
46011         * modules/unictype/category-Cn-tests: New file.
46012         * modules/unictype/category-Co-tests: New file.
46013         * modules/unictype/category-Cs-tests: New file.
46014         * modules/unictype/category-L-tests: New file.
46015         * modules/unictype/category-Ll-tests: New file.
46016         * modules/unictype/category-Lm-tests: New file.
46017         * modules/unictype/category-Lo-tests: New file.
46018         * modules/unictype/category-Lt-tests: New file.
46019         * modules/unictype/category-Lu-tests: New file.
46020         * modules/unictype/category-M-tests: New file.
46021         * modules/unictype/category-Mc-tests: New file.
46022         * modules/unictype/category-Me-tests: New file.
46023         * modules/unictype/category-Mn-tests: New file.
46024         * modules/unictype/category-N-tests: New file.
46025         * modules/unictype/category-Nd-tests: New file.
46026         * modules/unictype/category-Nl-tests: New file.
46027         * modules/unictype/category-No-tests: New file.
46028         * modules/unictype/category-P-tests: New file.
46029         * modules/unictype/category-Pc-tests: New file.
46030         * modules/unictype/category-Pd-tests: New file.
46031         * modules/unictype/category-Pe-tests: New file.
46032         * modules/unictype/category-Pf-tests: New file.
46033         * modules/unictype/category-Pi-tests: New file.
46034         * modules/unictype/category-Po-tests: New file.
46035         * modules/unictype/category-Ps-tests: New file.
46036         * modules/unictype/category-S-tests: New file.
46037         * modules/unictype/category-Sc-tests: New file.
46038         * modules/unictype/category-Sk-tests: New file.
46039         * modules/unictype/category-Sm-tests: New file.
46040         * modules/unictype/category-So-tests: New file.
46041         * modules/unictype/category-Z-tests: New file.
46042         * modules/unictype/category-Zl-tests: New file.
46043         * modules/unictype/category-Zp-tests: New file.
46044         * modules/unictype/category-Zs-tests: New file.
46045         * modules/unictype/category-and-not-tests: New file.
46046         * modules/unictype/category-and-tests: New file.
46047         * modules/unictype/category-byname-tests: New file.
46048         * modules/unictype/category-name-tests: New file.
46049         * modules/unictype/category-none-tests: New file.
46050         * modules/unictype/category-of-tests: New file.
46051         * modules/unictype/category-or-tests: New file.
46052         * modules/unictype/category-test-withtable-tests: New file.
46053         * modules/unictype/combining-class-tests: New file.
46054         * modules/unictype/ctype-alnum-tests: New file.
46055         * modules/unictype/ctype-alpha-tests: New file.
46056         * modules/unictype/ctype-blank-tests: New file.
46057         * modules/unictype/ctype-cntrl-tests: New file.
46058         * modules/unictype/ctype-digit-tests: New file.
46059         * modules/unictype/ctype-graph-tests: New file.
46060         * modules/unictype/ctype-lower-tests: New file.
46061         * modules/unictype/ctype-print-tests: New file.
46062         * modules/unictype/ctype-punct-tests: New file.
46063         * modules/unictype/ctype-space-tests: New file.
46064         * modules/unictype/ctype-upper-tests: New file.
46065         * modules/unictype/ctype-xdigit-tests: New file.
46066         * modules/unictype/decimal-digit-tests: New file.
46067         * modules/unictype/digit-tests: New file.
46068         * modules/unictype/mirror-tests: New file.
46069         * modules/unictype/numeric-tests: New file.
46070         * modules/unictype/property-alphabetic-tests: New file.
46071         * modules/unictype/property-ascii-hex-digit-tests: New file.
46072         * modules/unictype/property-bidi-arabic-digit-tests: New file.
46073         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
46074         * modules/unictype/property-bidi-block-separator-tests: New file.
46075         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
46076         * modules/unictype/property-bidi-common-separator-tests: New file.
46077         * modules/unictype/property-bidi-control-tests: New file.
46078         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
46079         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
46080         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
46081         * modules/unictype/property-bidi-european-digit-tests: New file.
46082         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
46083         * modules/unictype/property-bidi-left-to-right-tests: New file.
46084         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
46085         * modules/unictype/property-bidi-other-neutral-tests: New file.
46086         * modules/unictype/property-bidi-pdf-tests: New file.
46087         * modules/unictype/property-bidi-segment-separator-tests: New file.
46088         * modules/unictype/property-bidi-whitespace-tests: New file.
46089         * modules/unictype/property-byname-tests: New file.
46090         * modules/unictype/property-combining-tests: New file.
46091         * modules/unictype/property-composite-tests: New file.
46092         * modules/unictype/property-currency-symbol-tests: New file.
46093         * modules/unictype/property-dash-tests: New file.
46094         * modules/unictype/property-decimal-digit-tests: New file.
46095         * modules/unictype/property-default-ignorable-code-point-tests: New file.
46096         * modules/unictype/property-deprecated-tests: New file.
46097         * modules/unictype/property-diacritic-tests: New file.
46098         * modules/unictype/property-extender-tests: New file.
46099         * modules/unictype/property-format-control-tests: New file.
46100         * modules/unictype/property-grapheme-base-tests: New file.
46101         * modules/unictype/property-grapheme-extend-tests: New file.
46102         * modules/unictype/property-grapheme-link-tests: New file.
46103         * modules/unictype/property-hex-digit-tests: New file.
46104         * modules/unictype/property-hyphen-tests: New file.
46105         * modules/unictype/property-id-continue-tests: New file.
46106         * modules/unictype/property-id-start-tests: New file.
46107         * modules/unictype/property-ideographic-tests: New file.
46108         * modules/unictype/property-ids-binary-operator-tests: New file.
46109         * modules/unictype/property-ids-trinary-operator-tests: New file.
46110         * modules/unictype/property-ignorable-control-tests: New file.
46111         * modules/unictype/property-iso-control-tests: New file.
46112         * modules/unictype/property-join-control-tests: New file.
46113         * modules/unictype/property-left-of-pair-tests: New file.
46114         * modules/unictype/property-line-separator-tests: New file.
46115         * modules/unictype/property-logical-order-exception-tests: New file.
46116         * modules/unictype/property-lowercase-tests: New file.
46117         * modules/unictype/property-math-tests: New file.
46118         * modules/unictype/property-non-break-tests: New file.
46119         * modules/unictype/property-not-a-character-tests: New file.
46120         * modules/unictype/property-numeric-tests: New file.
46121         * modules/unictype/property-other-alphabetic-tests: New file.
46122         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
46123         * modules/unictype/property-other-grapheme-extend-tests: New file.
46124         * modules/unictype/property-other-id-continue-tests: New file.
46125         * modules/unictype/property-other-id-start-tests: New file.
46126         * modules/unictype/property-other-lowercase-tests: New file.
46127         * modules/unictype/property-other-math-tests: New file.
46128         * modules/unictype/property-other-uppercase-tests: New file.
46129         * modules/unictype/property-paired-punctuation-tests: New file.
46130         * modules/unictype/property-paragraph-separator-tests: New file.
46131         * modules/unictype/property-pattern-syntax-tests: New file.
46132         * modules/unictype/property-pattern-white-space-tests: New file.
46133         * modules/unictype/property-private-use-tests: New file.
46134         * modules/unictype/property-punctuation-tests: New file.
46135         * modules/unictype/property-quotation-mark-tests: New file.
46136         * modules/unictype/property-radical-tests: New file.
46137         * modules/unictype/property-sentence-terminal-tests: New file.
46138         * modules/unictype/property-soft-dotted-tests: New file.
46139         * modules/unictype/property-space-tests: New file.
46140         * modules/unictype/property-terminal-punctuation-tests: New file.
46141         * modules/unictype/property-test-tests: New file.
46142         * modules/unictype/property-titlecase-tests: New file.
46143         * modules/unictype/property-unassigned-code-value-tests: New file.
46144         * modules/unictype/property-unified-ideograph-tests: New file.
46145         * modules/unictype/property-uppercase-tests: New file.
46146         * modules/unictype/property-variation-selector-tests: New file.
46147         * modules/unictype/property-white-space-tests: New file.
46148         * modules/unictype/property-xid-continue-tests: New file.
46149         * modules/unictype/property-xid-start-tests: New file.
46150         * modules/unictype/property-zero-width-tests: New file.
46151         * modules/unictype/scripts-tests: New file.
46152         * modules/unictype/syntax-c-ident-tests: New file.
46153         * modules/unictype/syntax-c-whitespace-tests: New file.
46154         * modules/unictype/syntax-java-ident-tests: New file.
46155         * modules/unictype/syntax-java-whitespace-tests: New file.
46156         * tests/unictype/test-bidi_byname.c: New file.
46157         * tests/unictype/test-bidi_name.c: New file.
46158         * tests/unictype/test-bidi_of.c: New file.
46159         * tests/unictype/test-bidi_test.c: New file.
46160         * tests/unictype/test-block_list.c: New file.
46161         * tests/unictype/test-block_of.c: New file.
46162         * tests/unictype/test-block_test.c: New file.
46163         * tests/unictype/test-categ_and.c: New file.
46164         * tests/unictype/test-categ_and_not.c: New file.
46165         * tests/unictype/test-categ_byname.c: New file.
46166         * tests/unictype/test-categ_name.c: New file.
46167         * tests/unictype/test-categ_none.c: New file.
46168         * tests/unictype/test-categ_of.c: New file.
46169         * tests/unictype/test-categ_or.c: New file.
46170         * tests/unictype/test-categ_test_withtable.c: New file.
46171         * tests/unictype/test-combining.c: New file.
46172         * tests/unictype/test-decdigit.c: New file.
46173         * tests/unictype/test-digit.c: New file.
46174         * tests/unictype/test-mirror.c: New file.
46175         * tests/unictype/test-numeric.c: New file.
46176         * tests/unictype/test-pr_byname.c: New file.
46177         * tests/unictype/test-pr_test.c: New file.
46178         * tests/unictype/test-predicate-part1.h: New file.
46179         * tests/unictype/test-predicate-part2.h: New file.
46180         * tests/unictype/test-scripts.c: New file.
46181         * tests/unictype/test-sy_c_ident.c: New file.
46182         * tests/unictype/test-sy_java_ident.c: New file.
46183
46184         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
46185         for Unicode 5.0.0.
46186         * tests/unictype/test-categ_Cc.c: Likewise.
46187         * tests/unictype/test-categ_Cf.c: Likewise.
46188         * tests/unictype/test-categ_Cn.c: Likewise.
46189         * tests/unictype/test-categ_Co.c: Likewise.
46190         * tests/unictype/test-categ_Cs.c: Likewise.
46191         * tests/unictype/test-categ_L.c: Likewise.
46192         * tests/unictype/test-categ_Ll.c: Likewise.
46193         * tests/unictype/test-categ_Lm.c: Likewise.
46194         * tests/unictype/test-categ_Lo.c: Likewise.
46195         * tests/unictype/test-categ_Lt.c: Likewise.
46196         * tests/unictype/test-categ_Lu.c: Likewise.
46197         * tests/unictype/test-categ_M.c: Likewise.
46198         * tests/unictype/test-categ_Mc.c: Likewise.
46199         * tests/unictype/test-categ_Me.c: Likewise.
46200         * tests/unictype/test-categ_Mn.c: Likewise.
46201         * tests/unictype/test-categ_N.c: Likewise.
46202         * tests/unictype/test-categ_Nd.c: Likewise.
46203         * tests/unictype/test-categ_Nl.c: Likewise.
46204         * tests/unictype/test-categ_No.c: Likewise.
46205         * tests/unictype/test-categ_P.c: Likewise.
46206         * tests/unictype/test-categ_Pc.c: Likewise.
46207         * tests/unictype/test-categ_Pd.c: Likewise.
46208         * tests/unictype/test-categ_Pe.c: Likewise.
46209         * tests/unictype/test-categ_Pf.c: Likewise.
46210         * tests/unictype/test-categ_Pi.c: Likewise.
46211         * tests/unictype/test-categ_Po.c: Likewise.
46212         * tests/unictype/test-categ_Ps.c: Likewise.
46213         * tests/unictype/test-categ_S.c: Likewise.
46214         * tests/unictype/test-categ_Sc.c: Likewise.
46215         * tests/unictype/test-categ_Sk.c: Likewise.
46216         * tests/unictype/test-categ_Sm.c: Likewise.
46217         * tests/unictype/test-categ_So.c: Likewise.
46218         * tests/unictype/test-categ_Z.c: Likewise.
46219         * tests/unictype/test-categ_Zl.c: Likewise.
46220         * tests/unictype/test-categ_Zp.c: Likewise.
46221         * tests/unictype/test-categ_Zs.c: Likewise.
46222         * tests/unictype/test-ctype_alnum.c: Likewise.
46223         * tests/unictype/test-ctype_alpha.c: Likewise.
46224         * tests/unictype/test-ctype_blank.c: Likewise.
46225         * tests/unictype/test-ctype_cntrl.c: Likewise.
46226         * tests/unictype/test-ctype_digit.c: Likewise.
46227         * tests/unictype/test-ctype_graph.c: Likewise.
46228         * tests/unictype/test-ctype_lower.c: Likewise.
46229         * tests/unictype/test-ctype_print.c: Likewise.
46230         * tests/unictype/test-ctype_punct.c: Likewise.
46231         * tests/unictype/test-ctype_space.c: Likewise.
46232         * tests/unictype/test-ctype_upper.c: Likewise.
46233         * tests/unictype/test-ctype_xdigit.c: Likewise.
46234         * tests/unictype/test-decdigit.h: Likewise.
46235         * tests/unictype/test-digit.h: Likewise.
46236         * tests/unictype/test-numeric.h: Likewise.
46237         * tests/unictype/test-pr_alphabetic.c: Likewise.
46238         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
46239         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
46240         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
46241         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
46242         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
46243         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
46244         * tests/unictype/test-pr_bidi_control.c: Likewise.
46245         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
46246         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
46247         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
46248         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
46249         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
46250         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
46251         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
46252         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
46253         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
46254         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
46255         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
46256         * tests/unictype/test-pr_combining.c: Likewise.
46257         * tests/unictype/test-pr_composite.c: Likewise.
46258         * tests/unictype/test-pr_currency_symbol.c: Likewise.
46259         * tests/unictype/test-pr_dash.c: Likewise.
46260         * tests/unictype/test-pr_decimal_digit.c: Likewise.
46261         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
46262         * tests/unictype/test-pr_deprecated.c: Likewise.
46263         * tests/unictype/test-pr_diacritic.c: Likewise.
46264         * tests/unictype/test-pr_extender.c: Likewise.
46265         * tests/unictype/test-pr_format_control.c: Likewise.
46266         * tests/unictype/test-pr_grapheme_base.c: Likewise.
46267         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
46268         * tests/unictype/test-pr_grapheme_link.c: Likewise.
46269         * tests/unictype/test-pr_hex_digit.c: Likewise.
46270         * tests/unictype/test-pr_hyphen.c: Likewise.
46271         * tests/unictype/test-pr_id_continue.c: Likewise.
46272         * tests/unictype/test-pr_id_start.c: Likewise.
46273         * tests/unictype/test-pr_ideographic.c: Likewise.
46274         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
46275         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
46276         * tests/unictype/test-pr_ignorable_control.c: Likewise.
46277         * tests/unictype/test-pr_iso_control.c: Likewise.
46278         * tests/unictype/test-pr_join_control.c: Likewise.
46279         * tests/unictype/test-pr_left_of_pair.c: Likewise.
46280         * tests/unictype/test-pr_line_separator.c: Likewise.
46281         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
46282         * tests/unictype/test-pr_lowercase.c: Likewise.
46283         * tests/unictype/test-pr_math.c: Likewise.
46284         * tests/unictype/test-pr_non_break.c: Likewise.
46285         * tests/unictype/test-pr_not_a_character.c: Likewise.
46286         * tests/unictype/test-pr_numeric.c: Likewise.
46287         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
46288         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
46289         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
46290         * tests/unictype/test-pr_other_id_continue.c: Likewise.
46291         * tests/unictype/test-pr_other_id_start.c: Likewise.
46292         * tests/unictype/test-pr_other_lowercase.c: Likewise.
46293         * tests/unictype/test-pr_other_math.c: Likewise.
46294         * tests/unictype/test-pr_other_uppercase.c: Likewise.
46295         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
46296         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
46297         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
46298         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
46299         * tests/unictype/test-pr_private_use.c: Likewise.
46300         * tests/unictype/test-pr_punctuation.c: Likewise.
46301         * tests/unictype/test-pr_quotation_mark.c: Likewise.
46302         * tests/unictype/test-pr_radical.c: Likewise.
46303         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
46304         * tests/unictype/test-pr_soft_dotted.c: Likewise.
46305         * tests/unictype/test-pr_space.c: Likewise.
46306         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
46307         * tests/unictype/test-pr_titlecase.c: Likewise.
46308         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
46309         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
46310         * tests/unictype/test-pr_uppercase.c: Likewise.
46311         * tests/unictype/test-pr_variation_selector.c: Likewise.
46312         * tests/unictype/test-pr_white_space.c: Likewise.
46313         * tests/unictype/test-pr_xid_continue.c: Likewise.
46314         * tests/unictype/test-pr_xid_start.c: Likewise.
46315         * tests/unictype/test-pr_zero_width.c: Likewise.
46316         * tests/unictype/test-sy_c_whitespace.c: Likewise.
46317         * tests/unictype/test-sy_java_whitespace.c: Likewise.
46318
46319 2007-11-12  Bruno Haible  <bruno@clisp.org>
46320
46321         Unicode character classification functions.
46322         * lib/unictype.h: New file.
46323         * modules/unictype/base: New file.
46324         * modules/unictype/category-L: New file.
46325         * modules/unictype/category-Lu: New file.
46326         * modules/unictype/category-Ll: New file.
46327         * modules/unictype/category-Lt: New file.
46328         * modules/unictype/category-Lm: New file.
46329         * modules/unictype/category-Lo: New file.
46330         * modules/unictype/category-M: New file.
46331         * modules/unictype/category-Mn: New file.
46332         * modules/unictype/category-Mc: New file.
46333         * modules/unictype/category-Me: New file.
46334         * modules/unictype/category-N: New file.
46335         * modules/unictype/category-Nd: New file.
46336         * modules/unictype/category-Nl: New file.
46337         * modules/unictype/category-No: New file.
46338         * modules/unictype/category-P: New file.
46339         * modules/unictype/category-Pc: New file.
46340         * modules/unictype/category-Pd: New file.
46341         * modules/unictype/category-Ps: New file.
46342         * modules/unictype/category-Pe: New file.
46343         * modules/unictype/category-Pi: New file.
46344         * modules/unictype/category-Pf: New file.
46345         * modules/unictype/category-Po: New file.
46346         * modules/unictype/category-S: New file.
46347         * modules/unictype/category-Sm: New file.
46348         * modules/unictype/category-Sc: New file.
46349         * modules/unictype/category-Sk: New file.
46350         * modules/unictype/category-So: New file.
46351         * modules/unictype/category-Z: New file.
46352         * modules/unictype/category-Zs: New file.
46353         * modules/unictype/category-Zl: New file.
46354         * modules/unictype/category-Zp: New file.
46355         * modules/unictype/category-C: New file.
46356         * modules/unictype/category-Cc: New file.
46357         * modules/unictype/category-Cf: New file.
46358         * modules/unictype/category-Cs: New file.
46359         * modules/unictype/category-Co: New file.
46360         * modules/unictype/category-Cn: New file.
46361         * modules/unictype/category-or: New file.
46362         * modules/unictype/category-of: New file.
46363         * modules/unictype/category-test: New file.
46364         * modules/unictype/category-test-withtable: New file.
46365         * modules/unictype/category-byname: New file.
46366         * modules/unictype/category-none: New file.
46367         * modules/unictype/category-and: New file.
46368         * modules/unictype/category-and-not: New file.
46369         * modules/unictype/category-name: New file.
46370         * modules/unictype/combining-class: New file.
46371         * modules/unictype/category-all: New file.
46372         * modules/unictype/bidicategory-all: New file.
46373         * modules/unictype/bidicategory-byname: New file.
46374         * modules/unictype/bidicategory-name: New file.
46375         * modules/unictype/bidicategory-of: New file.
46376         * modules/unictype/bidicategory-test: New file.
46377         * modules/unictype/decimal-digit: New file.
46378         * modules/unictype/digit: New file.
46379         * modules/unictype/numeric: New file.
46380         * modules/unictype/mirror: New file.
46381         * modules/unictype/property-white-space: New file.
46382         * modules/unictype/property-alphabetic: New file.
46383         * modules/unictype/property-other-alphabetic: New file.
46384         * modules/unictype/property-not-a-character: New file.
46385         * modules/unictype/property-default-ignorable-code-point: New file.
46386         * modules/unictype/property-other-default-ignorable-code-point: New
46387         file.
46388         * modules/unictype/property-deprecated: New file.
46389         * modules/unictype/property-logical-order-exception: New file.
46390         * modules/unictype/property-variation-selector: New file.
46391         * modules/unictype/property-private-use: New file.
46392         * modules/unictype/property-unassigned-code-value: New file.
46393         * modules/unictype/property-uppercase: New file.
46394         * modules/unictype/property-other-uppercase: New file.
46395         * modules/unictype/property-lowercase: New file.
46396         * modules/unictype/property-other-lowercase: New file.
46397         * modules/unictype/property-titlecase: New file.
46398         * modules/unictype/property-soft-dotted: New file.
46399         * modules/unictype/property-id-start: New file.
46400         * modules/unictype/property-other-id-start: New file.
46401         * modules/unictype/property-id-continue: New file.
46402         * modules/unictype/property-other-id-continue: New file.
46403         * modules/unictype/property-xid-start: New file.
46404         * modules/unictype/property-xid-continue: New file.
46405         * modules/unictype/property-pattern-white-space: New file.
46406         * modules/unictype/property-pattern-syntax: New file.
46407         * modules/unictype/property-join-control: New file.
46408         * modules/unictype/property-grapheme-base: New file.
46409         * modules/unictype/property-grapheme-extend: New file.
46410         * modules/unictype/property-other-grapheme-extend: New file.
46411         * modules/unictype/property-grapheme-link: New file.
46412         * modules/unictype/property-bidi-control: New file.
46413         * modules/unictype/property-bidi-left-to-right: New file.
46414         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
46415         * modules/unictype/property-bidi-arabic-right-to-left: New file.
46416         * modules/unictype/property-bidi-european-digit: New file.
46417         * modules/unictype/property-bidi-eur-num-separator: New file.
46418         * modules/unictype/property-bidi-eur-num-terminator: New file.
46419         * modules/unictype/property-bidi-arabic-digit: New file.
46420         * modules/unictype/property-bidi-common-separator: New file.
46421         * modules/unictype/property-bidi-block-separator: New file.
46422         * modules/unictype/property-bidi-segment-separator: New file.
46423         * modules/unictype/property-bidi-whitespace: New file.
46424         * modules/unictype/property-bidi-non-spacing-mark: New file.
46425         * modules/unictype/property-bidi-boundary-neutral: New file.
46426         * modules/unictype/property-bidi-pdf: New file.
46427         * modules/unictype/property-bidi-embedding-or-override: New file.
46428         * modules/unictype/property-bidi-other-neutral: New file.
46429         * modules/unictype/property-hex-digit: New file.
46430         * modules/unictype/property-ascii-hex-digit: New file.
46431         * modules/unictype/property-ideographic: New file.
46432         * modules/unictype/property-unified-ideograph: New file.
46433         * modules/unictype/property-radical: New file.
46434         * modules/unictype/property-ids-binary-operator: New file.
46435         * modules/unictype/property-ids-trinary-operator: New file.
46436         * modules/unictype/property-zero-width: New file.
46437         * modules/unictype/property-space: New file.
46438         * modules/unictype/property-non-break: New file.
46439         * modules/unictype/property-iso-control: New file.
46440         * modules/unictype/property-format-control: New file.
46441         * modules/unictype/property-dash: New file.
46442         * modules/unictype/property-hyphen: New file.
46443         * modules/unictype/property-punctuation: New file.
46444         * modules/unictype/property-line-separator: New file.
46445         * modules/unictype/property-paragraph-separator: New file.
46446         * modules/unictype/property-quotation-mark: New file.
46447         * modules/unictype/property-sentence-terminal: New file.
46448         * modules/unictype/property-terminal-punctuation: New file.
46449         * modules/unictype/property-currency-symbol: New file.
46450         * modules/unictype/property-math: New file.
46451         * modules/unictype/property-other-math: New file.
46452         * modules/unictype/property-paired-punctuation: New file.
46453         * modules/unictype/property-left-of-pair: New file.
46454         * modules/unictype/property-combining: New file.
46455         * modules/unictype/property-composite: New file.
46456         * modules/unictype/property-decimal-digit: New file.
46457         * modules/unictype/property-numeric: New file.
46458         * modules/unictype/property-diacritic: New file.
46459         * modules/unictype/property-extender: New file.
46460         * modules/unictype/property-ignorable-control: New file.
46461         * modules/unictype/property-test: New file.
46462         * modules/unictype/property-byname: New file.
46463         * modules/unictype/property-all: New file.
46464         * modules/unictype/scripts: New file.
46465         * modules/unictype/scripts-all: New file.
46466         * modules/unictype/block-of: New file.
46467         * modules/unictype/block-test: New file.
46468         * modules/unictype/block-list: New file.
46469         * modules/unictype/block-all: New file.
46470         * modules/unictype/syntax-c-whitespace: New file.
46471         * modules/unictype/syntax-java-whitespace: New file.
46472         * modules/unictype/syntax-c-ident: New file.
46473         * modules/unictype/syntax-java-ident: New file.
46474         * modules/unictype/ctype-alnum: New file.
46475         * modules/unictype/ctype-alpha: New file.
46476         * modules/unictype/ctype-cntrl: New file.
46477         * modules/unictype/ctype-digit: New file.
46478         * modules/unictype/ctype-graph: New file.
46479         * modules/unictype/ctype-lower: New file.
46480         * modules/unictype/ctype-print: New file.
46481         * modules/unictype/ctype-punct: New file.
46482         * modules/unictype/ctype-space: New file.
46483         * modules/unictype/ctype-upper: New file.
46484         * modules/unictype/ctype-xdigit: New file.
46485         * modules/unictype/ctype-blank: New file.
46486         * lib/unictype/bidi_byname.c: New file.
46487         * lib/unictype/bidi_name.c: New file.
46488         * lib/unictype/bidi_of.c: New file.
46489         * lib/unictype/bidi_test.c: New file.
46490         * lib/unictype/bitmap.h: New file.
46491         * lib/unictype/block_test.c: New file.
46492         * lib/unictype/blocks.c: New file.
46493         * lib/unictype/categ_C.c: New file.
46494         * lib/unictype/categ_Cc.c: New file.
46495         * lib/unictype/categ_Cf.c: New file.
46496         * lib/unictype/categ_Cn.c: New file.
46497         * lib/unictype/categ_Co.c: New file.
46498         * lib/unictype/categ_Cs.c: New file.
46499         * lib/unictype/categ_L.c: New file.
46500         * lib/unictype/categ_Ll.c: New file.
46501         * lib/unictype/categ_Lm.c: New file.
46502         * lib/unictype/categ_Lo.c: New file.
46503         * lib/unictype/categ_Lt.c: New file.
46504         * lib/unictype/categ_Lu.c: New file.
46505         * lib/unictype/categ_M.c: New file.
46506         * lib/unictype/categ_Mc.c: New file.
46507         * lib/unictype/categ_Me.c: New file.
46508         * lib/unictype/categ_Mn.c: New file.
46509         * lib/unictype/categ_N.c: New file.
46510         * lib/unictype/categ_Nd.c: New file.
46511         * lib/unictype/categ_Nl.c: New file.
46512         * lib/unictype/categ_No.c: New file.
46513         * lib/unictype/categ_P.c: New file.
46514         * lib/unictype/categ_Pc.c: New file.
46515         * lib/unictype/categ_Pd.c: New file.
46516         * lib/unictype/categ_Pe.c: New file.
46517         * lib/unictype/categ_Pf.c: New file.
46518         * lib/unictype/categ_Pi.c: New file.
46519         * lib/unictype/categ_Po.c: New file.
46520         * lib/unictype/categ_Ps.c: New file.
46521         * lib/unictype/categ_S.c: New file.
46522         * lib/unictype/categ_Sc.c: New file.
46523         * lib/unictype/categ_Sk.c: New file.
46524         * lib/unictype/categ_Sm.c: New file.
46525         * lib/unictype/categ_So.c: New file.
46526         * lib/unictype/categ_Z.c: New file.
46527         * lib/unictype/categ_Zl.c: New file.
46528         * lib/unictype/categ_Zp.c: New file.
46529         * lib/unictype/categ_Zs.c: New file.
46530         * lib/unictype/categ_and.c: New file.
46531         * lib/unictype/categ_and_not.c: New file.
46532         * lib/unictype/categ_byname.c: New file.
46533         * lib/unictype/categ_name.c: New file.
46534         * lib/unictype/categ_none.c: New file.
46535         * lib/unictype/categ_of.c: New file.
46536         * lib/unictype/categ_or.c: New file.
46537         * lib/unictype/categ_test.c: New file.
46538         * lib/unictype/combining.c: New file.
46539         * lib/unictype/ctype_alnum.c: New file.
46540         * lib/unictype/ctype_alpha.c: New file.
46541         * lib/unictype/ctype_blank.c: New file.
46542         * lib/unictype/ctype_cntrl.c: New file.
46543         * lib/unictype/ctype_digit.c: New file.
46544         * lib/unictype/ctype_graph.c: New file.
46545         * lib/unictype/ctype_lower.c: New file.
46546         * lib/unictype/ctype_print.c: New file.
46547         * lib/unictype/ctype_punct.c: New file.
46548         * lib/unictype/ctype_space.c: New file.
46549         * lib/unictype/ctype_upper.c: New file.
46550         * lib/unictype/ctype_xdigit.c: New file.
46551         * lib/unictype/decdigit.c: New file.
46552         * lib/unictype/digit.c: New file.
46553         * lib/unictype/identsyntaxmap.h: New file.
46554         * lib/unictype/mirror.c: New file.
46555         * lib/unictype/numeric.c: New file.
46556         * lib/unictype/pr_alphabetic.c: New file.
46557         * lib/unictype/pr_ascii_hex_digit.c: New file.
46558         * lib/unictype/pr_bidi_arabic_digit.c: New file.
46559         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
46560         * lib/unictype/pr_bidi_block_separator.c: New file.
46561         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
46562         * lib/unictype/pr_bidi_common_separator.c: New file.
46563         * lib/unictype/pr_bidi_control.c: New file.
46564         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
46565         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
46566         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
46567         * lib/unictype/pr_bidi_european_digit.c: New file.
46568         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
46569         * lib/unictype/pr_bidi_left_to_right.c: New file.
46570         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
46571         * lib/unictype/pr_bidi_other_neutral.c: New file.
46572         * lib/unictype/pr_bidi_pdf.c: New file.
46573         * lib/unictype/pr_bidi_segment_separator.c: New file.
46574         * lib/unictype/pr_bidi_whitespace.c: New file.
46575         * lib/unictype/pr_byname.c: New file.
46576         * lib/unictype/pr_byname.gperf: New file.
46577         * lib/unictype/pr_combining.c: New file.
46578         * lib/unictype/pr_composite.c: New file.
46579         * lib/unictype/pr_currency_symbol.c: New file.
46580         * lib/unictype/pr_dash.c: New file.
46581         * lib/unictype/pr_decimal_digit.c: New file.
46582         * lib/unictype/pr_default_ignorable_code_point.c: New file.
46583         * lib/unictype/pr_deprecated.c: New file.
46584         * lib/unictype/pr_diacritic.c: New file.
46585         * lib/unictype/pr_extender.c: New file.
46586         * lib/unictype/pr_format_control.c: New file.
46587         * lib/unictype/pr_grapheme_base.c: New file.
46588         * lib/unictype/pr_grapheme_extend.c: New file.
46589         * lib/unictype/pr_grapheme_link.c: New file.
46590         * lib/unictype/pr_hex_digit.c: New file.
46591         * lib/unictype/pr_hyphen.c: New file.
46592         * lib/unictype/pr_id_continue.c: New file.
46593         * lib/unictype/pr_id_start.c: New file.
46594         * lib/unictype/pr_ideographic.c: New file.
46595         * lib/unictype/pr_ids_binary_operator.c: New file.
46596         * lib/unictype/pr_ids_trinary_operator.c: New file.
46597         * lib/unictype/pr_ignorable_control.c: New file.
46598         * lib/unictype/pr_iso_control.c: New file.
46599         * lib/unictype/pr_join_control.c: New file.
46600         * lib/unictype/pr_left_of_pair.c: New file.
46601         * lib/unictype/pr_line_separator.c: New file.
46602         * lib/unictype/pr_logical_order_exception.c: New file.
46603         * lib/unictype/pr_lowercase.c: New file.
46604         * lib/unictype/pr_math.c: New file.
46605         * lib/unictype/pr_non_break.c: New file.
46606         * lib/unictype/pr_not_a_character.c: New file.
46607         * lib/unictype/pr_numeric.c: New file.
46608         * lib/unictype/pr_other_alphabetic.c: New file.
46609         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
46610         * lib/unictype/pr_other_grapheme_extend.c: New file.
46611         * lib/unictype/pr_other_id_continue.c: New file.
46612         * lib/unictype/pr_other_id_start.c: New file.
46613         * lib/unictype/pr_other_lowercase.c: New file.
46614         * lib/unictype/pr_other_math.c: New file.
46615         * lib/unictype/pr_other_uppercase.c: New file.
46616         * lib/unictype/pr_paired_punctuation.c: New file.
46617         * lib/unictype/pr_paragraph_separator.c: New file.
46618         * lib/unictype/pr_pattern_syntax.c: New file.
46619         * lib/unictype/pr_pattern_white_space.c: New file.
46620         * lib/unictype/pr_private_use.c: New file.
46621         * lib/unictype/pr_punctuation.c: New file.
46622         * lib/unictype/pr_quotation_mark.c: New file.
46623         * lib/unictype/pr_radical.c: New file.
46624         * lib/unictype/pr_sentence_terminal.c: New file.
46625         * lib/unictype/pr_soft_dotted.c: New file.
46626         * lib/unictype/pr_space.c: New file.
46627         * lib/unictype/pr_terminal_punctuation.c: New file.
46628         * lib/unictype/pr_test.c: New file.
46629         * lib/unictype/pr_titlecase.c: New file.
46630         * lib/unictype/pr_unassigned_code_value.c: New file.
46631         * lib/unictype/pr_unified_ideograph.c: New file.
46632         * lib/unictype/pr_uppercase.c: New file.
46633         * lib/unictype/pr_variation_selector.c: New file.
46634         * lib/unictype/pr_white_space.c: New file.
46635         * lib/unictype/pr_xid_continue.c: New file.
46636         * lib/unictype/pr_xid_start.c: New file.
46637         * lib/unictype/pr_zero_width.c: New file.
46638         * lib/unictype/scripts.c: New file.
46639         * lib/unictype/sy_c_ident.c: New file.
46640         * lib/unictype/sy_c_whitespace.c: New file.
46641         * lib/unictype/sy_java_ident.c: New file.
46642         * lib/unictype/sy_java_whitespace.c: New file.
46643
46644         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
46645         Unicode 5.0.0.
46646         * lib/unictype/blocks.h: Likewise.
46647         * lib/unictype/categ_C.h: Likewise.
46648         * lib/unictype/categ_Cc.h: Likewise.
46649         * lib/unictype/categ_Cf.h: Likewise.
46650         * lib/unictype/categ_Cn.h: Likewise.
46651         * lib/unictype/categ_Co.h: Likewise.
46652         * lib/unictype/categ_Cs.h: Likewise.
46653         * lib/unictype/categ_L.h: Likewise.
46654         * lib/unictype/categ_Ll.h: Likewise.
46655         * lib/unictype/categ_Lm.h: Likewise.
46656         * lib/unictype/categ_Lo.h: Likewise.
46657         * lib/unictype/categ_Lt.h: Likewise.
46658         * lib/unictype/categ_Lu.h: Likewise.
46659         * lib/unictype/categ_M.h: Likewise.
46660         * lib/unictype/categ_Mc.h: Likewise.
46661         * lib/unictype/categ_Me.h: Likewise.
46662         * lib/unictype/categ_Mn.h: Likewise.
46663         * lib/unictype/categ_N.h: Likewise.
46664         * lib/unictype/categ_Nd.h: Likewise.
46665         * lib/unictype/categ_Nl.h: Likewise.
46666         * lib/unictype/categ_No.h: Likewise.
46667         * lib/unictype/categ_P.h: Likewise.
46668         * lib/unictype/categ_Pc.h: Likewise.
46669         * lib/unictype/categ_Pd.h: Likewise.
46670         * lib/unictype/categ_Pe.h: Likewise.
46671         * lib/unictype/categ_Pf.h: Likewise.
46672         * lib/unictype/categ_Pi.h: Likewise.
46673         * lib/unictype/categ_Po.h: Likewise.
46674         * lib/unictype/categ_Ps.h: Likewise.
46675         * lib/unictype/categ_S.h: Likewise.
46676         * lib/unictype/categ_Sc.h: Likewise.
46677         * lib/unictype/categ_Sk.h: Likewise.
46678         * lib/unictype/categ_Sm.h: Likewise.
46679         * lib/unictype/categ_So.h: Likewise.
46680         * lib/unictype/categ_Z.h: Likewise.
46681         * lib/unictype/categ_Zl.h: Likewise.
46682         * lib/unictype/categ_Zp.h: Likewise.
46683         * lib/unictype/categ_Zs.h: Likewise.
46684         * lib/unictype/categ_of.h: Likewise.
46685         * lib/unictype/combining.h: Likewise.
46686         * lib/unictype/ctype_alnum.h: Likewise.
46687         * lib/unictype/ctype_alpha.h: Likewise.
46688         * lib/unictype/ctype_blank.h: Likewise.
46689         * lib/unictype/ctype_cntrl.h: Likewise.
46690         * lib/unictype/ctype_digit.h: Likewise.
46691         * lib/unictype/ctype_graph.h: Likewise.
46692         * lib/unictype/ctype_lower.h: Likewise.
46693         * lib/unictype/ctype_print.h: Likewise.
46694         * lib/unictype/ctype_punct.h: Likewise.
46695         * lib/unictype/ctype_space.h: Likewise.
46696         * lib/unictype/ctype_upper.h: Likewise.
46697         * lib/unictype/ctype_xdigit.h: Likewise.
46698         * lib/unictype/decdigit.h: Likewise.
46699         * lib/unictype/digit.h: Likewise.
46700         * lib/unictype/mirror.h: Likewise.
46701         * lib/unictype/numeric.h: Likewise.
46702         * lib/unictype/pr_alphabetic.h: Likewise.
46703         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
46704         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
46705         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
46706         * lib/unictype/pr_bidi_block_separator.h: Likewise.
46707         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
46708         * lib/unictype/pr_bidi_common_separator.h: Likewise.
46709         * lib/unictype/pr_bidi_control.h: Likewise.
46710         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
46711         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
46712         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
46713         * lib/unictype/pr_bidi_european_digit.h: Likewise.
46714         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
46715         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
46716         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
46717         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
46718         * lib/unictype/pr_bidi_pdf.h: Likewise.
46719         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
46720         * lib/unictype/pr_bidi_whitespace.h: Likewise.
46721         * lib/unictype/pr_combining.h: Likewise.
46722         * lib/unictype/pr_composite.h: Likewise.
46723         * lib/unictype/pr_currency_symbol.h: Likewise.
46724         * lib/unictype/pr_dash.h: Likewise.
46725         * lib/unictype/pr_decimal_digit.h: Likewise.
46726         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
46727         * lib/unictype/pr_deprecated.h: Likewise.
46728         * lib/unictype/pr_diacritic.h: Likewise.
46729         * lib/unictype/pr_extender.h: Likewise.
46730         * lib/unictype/pr_format_control.h: Likewise.
46731         * lib/unictype/pr_grapheme_base.h: Likewise.
46732         * lib/unictype/pr_grapheme_extend.h: Likewise.
46733         * lib/unictype/pr_grapheme_link.h: Likewise.
46734         * lib/unictype/pr_hex_digit.h: Likewise.
46735         * lib/unictype/pr_hyphen.h: Likewise.
46736         * lib/unictype/pr_id_continue.h: Likewise.
46737         * lib/unictype/pr_id_start.h: Likewise.
46738         * lib/unictype/pr_ideographic.h: Likewise.
46739         * lib/unictype/pr_ids_binary_operator.h: Likewise.
46740         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
46741         * lib/unictype/pr_ignorable_control.h: Likewise.
46742         * lib/unictype/pr_iso_control.h: Likewise.
46743         * lib/unictype/pr_join_control.h: Likewise.
46744         * lib/unictype/pr_left_of_pair.h: Likewise.
46745         * lib/unictype/pr_line_separator.h: Likewise.
46746         * lib/unictype/pr_logical_order_exception.h: Likewise.
46747         * lib/unictype/pr_lowercase.h: Likewise.
46748         * lib/unictype/pr_math.h: Likewise.
46749         * lib/unictype/pr_non_break.h: Likewise.
46750         * lib/unictype/pr_not_a_character.h: Likewise.
46751         * lib/unictype/pr_numeric.h: Likewise.
46752         * lib/unictype/pr_other_alphabetic.h: Likewise.
46753         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
46754         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
46755         * lib/unictype/pr_other_id_continue.h: Likewise.
46756         * lib/unictype/pr_other_id_start.h: Likewise.
46757         * lib/unictype/pr_other_lowercase.h: Likewise.
46758         * lib/unictype/pr_other_math.h: Likewise.
46759         * lib/unictype/pr_other_uppercase.h: Likewise.
46760         * lib/unictype/pr_paired_punctuation.h: Likewise.
46761         * lib/unictype/pr_paragraph_separator.h: Likewise.
46762         * lib/unictype/pr_pattern_syntax.h: Likewise.
46763         * lib/unictype/pr_pattern_white_space.h: Likewise.
46764         * lib/unictype/pr_private_use.h: Likewise.
46765         * lib/unictype/pr_punctuation.h: Likewise.
46766         * lib/unictype/pr_quotation_mark.h: Likewise.
46767         * lib/unictype/pr_radical.h: Likewise.
46768         * lib/unictype/pr_sentence_terminal.h: Likewise.
46769         * lib/unictype/pr_soft_dotted.h: Likewise.
46770         * lib/unictype/pr_space.h: Likewise.
46771         * lib/unictype/pr_terminal_punctuation.h: Likewise.
46772         * lib/unictype/pr_titlecase.h: Likewise.
46773         * lib/unictype/pr_unassigned_code_value.h: Likewise.
46774         * lib/unictype/pr_unified_ideograph.h: Likewise.
46775         * lib/unictype/pr_uppercase.h: Likewise.
46776         * lib/unictype/pr_variation_selector.h: Likewise.
46777         * lib/unictype/pr_white_space.h: Likewise.
46778         * lib/unictype/pr_xid_continue.h: Likewise.
46779         * lib/unictype/pr_xid_start.h: Likewise.
46780         * lib/unictype/pr_zero_width.h: Likewise.
46781         * lib/unictype/scripts.h: Likewise.
46782         * lib/unictype/scripts_byname.gperf: Likewise.
46783         * lib/unictype/sy_c_ident.h: Likewise.
46784         * lib/unictype/sy_c_whitespace.h: Likewise.
46785         * lib/unictype/sy_java_ident.h: Likewise.
46786         * lib/unictype/sy_java_whitespace.h: Likewise.
46787
46788         * lib/unictype/Makefile: New file.
46789         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
46790         glibc.
46791         * lib/unictype/3level.h: New file, copied from glibc.
46792         * lib/unictype/3levelbit.h: New file.
46793
46794 2007-11-11  Bruno Haible  <bruno@clisp.org>
46795
46796         * modules/gperf: New file.
46797         * modules/iconv_open (Depends-on): Add it.
46798         (Makefile.am): Remove the GPERF definition.
46799
46800 2007-11-11  Bruno Haible  <bruno@clisp.org>
46801
46802         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
46803         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
46804
46805 2007-11-11  Bruno Haible  <bruno@clisp.org>
46806
46807         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
46808         (usage): Remove function.
46809
46810 2007-11-11  Bruno Haible  <bruno@clisp.org>
46811
46812         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
46813         gl_FUNC_CEILF_LIBS.
46814         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
46815         gl_FUNC_CEIL_LIBS.
46816         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
46817         gl_FUNC_CEILL_LIBS.
46818         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
46819         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
46820         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
46821
46822 2007-11-11  Bruno Haible  <bruno@clisp.org>
46823
46824         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
46825         roundf were declared but do not exist on functions.
46826         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
46827         roundl were declared but do not exist on functions.
46828         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
46829         HAVE_FLOORL_AND_CEILL, respectively.
46830         Needed for Sun C on Solaris 10.
46831
46832 2007-11-11  Bruno Haible  <bruno@clisp.org>
46833
46834         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
46835         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
46836         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
46837         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
46838         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
46839         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
46840         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
46841         HAVE_DECL_ROUNDF.
46842         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
46843         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
46844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
46845         of HAVE_DECL_ROUND*.
46846         * modules/math (Makefile.am): Update.
46847
46848 2007-11-10  Bruno Haible  <bruno@clisp.org>
46849
46850         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
46851         ptrdiff_t as m4/intl.m4.
46852
46853 2007-11-10  Jim Meyering  <meyering@redhat.com>
46854
46855         Avoid link failure for the argmatch test.
46856         * tests/test-argmatch.c (usage): Define function to avoid a link
46857         failure: argmatch_die requires a usage function.
46858
46859 2007-11-09  Bruno Haible  <bruno@clisp.org>
46860
46861         * doc/functions/snprintf.texi: Mention BeOS deficiency.
46862         * doc/functions/vsnprintf.texi: Likewise.
46863         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
46864         with a size argument < 2.
46865
46866 2007-11-09  Bruno Haible  <bruno@clisp.org>
46867
46868         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
46869         buffer. Fixes an inefficiency introduced on 2007-11-03.
46870
46871 2007-11-09  Bruno Haible  <bruno@clisp.org>
46872
46873         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
46874         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
46875
46876 2007-11-08  Jim Meyering  <meyering@redhat.com>
46877
46878         Change cache variable name prefix "jm_" to "gl_" everywhere.
46879         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
46880         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
46881         * m4/uptime.m4: s/gl_/jm_/
46882
46883 2007-11-07  Bruno Haible  <bruno@clisp.org>
46884
46885         Update to GNU gettext 0.17.
46886         * m4/intl.m4: Update to GNU gettext 0.17.
46887         * m4/po.m4: Likewise.
46888         * modules/gettext (Files): Remove m4/ulonglong.m4.
46889         (configure.ac): Require gettext infrastructure from version 0.17.
46890
46891 2007-11-06  Bruno Haible  <bruno@clisp.org>
46892
46893         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
46894         symbolic values are not defined in a public header.
46895         * lib/freadable.c (freadable) [QNX]: Likewise.
46896         * lib/freadahead.c (freadahead) [QNX]: Likewise.
46897         * lib/freading.c (freading) [QNX]: Likewise.
46898         * lib/fseterr.c (fseterr) [QNX]: Likewise.
46899         * lib/fwritable.c (fwritable) [QNX]: Likewise.
46900         * lib/fwriting.c (fwriting) [QNX]: Likewise.
46901         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
46902         Reported by Alain Magloire.
46903
46904         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
46905
46906 2007-11-05  Bruno Haible  <bruno@clisp.org>
46907
46908         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
46909         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
46910         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
46911         Reported by Eric Blake.
46912
46913 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46914             Bruno Haible  <bruno@clisp.org>
46915
46916         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
46917         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
46918         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
46919         (malloc): Undefine also before including <stdlib.h>.
46920         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
46921         Needed on OSF/1 4.0.
46922
46923 2007-11-05  Jim Meyering  <meyering@redhat.com>
46924
46925         git-version-gen: sync from coreutils.
46926         * build-aux/git-version-gen: Add comments.
46927         Change the first '-' to '.' in the snapshot version string,
46928         e.g., 6.9-377-08144 -> 6.9.377-08144
46929         Remove first parameter.
46930         Don't declare a version "-dirty" merely because a time
46931         stamp has changed.
46932
46933 2007-11-04  Bruno Haible  <bruno@clisp.org>
46934
46935         * lib/lock.h: Protect all macro definitions containing an 'if'
46936         statement through a "do { ... } while (0)".
46937         * lib/tls.h: Likewise.
46938
46939 2007-11-04  Bruno Haible  <bruno@clisp.org>
46940
46941         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
46942
46943 2007-11-04  Bruno Haible  <bruno@clisp.org>
46944
46945         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
46946         * modules/fprintf-posix (Depends-on): Add nocrash.
46947         * modules/snprintf-posix (Depends-on): Likewise.
46948         * modules/sprintf-posix (Depends-on): Likewise.
46949         * modules/vasnprintf-posix (Depends-on): Likewise.
46950         * modules/vasprintf-posix (Depends-on): Likewise.
46951         * modules/vfprintf-posix (Depends-on): Likewise.
46952         * modules/vsnprintf-posix (Depends-on): Likewise.
46953         * modules/vsprintf-posix (Depends-on): Likewise.
46954         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46955         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46956         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46957         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46958         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46959         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46960         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46961
46962 2007-11-04  Bruno Haible  <bruno@clisp.org>
46963
46964         * modules/nocrash: New file.
46965         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
46966         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
46967
46968 2007-11-04  Bruno Haible  <bruno@clisp.org>
46969
46970         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
46971         precision handling.
46972         * tests/test-vasprintf-posix.c (test_function): Likewise.
46973         * tests/test-snprintf-posix.h (test_function): Likewise.
46974         * tests/test-sprintf-posix.h (test_function): Likewise.
46975
46976         Fix *printf behaviour for large precisions on mingw and BeOS.
46977         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
46978         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
46979         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
46980         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46981         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46982         gl_PRINTF_PRECISION and test its result. Invoke
46983         gl_PREREQ_VASNPRINTF_PRECISION.
46984         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46985         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46986         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46987         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46988         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46989         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46990         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46991         * doc/functions/fprintf.texi: Update.
46992         * doc/functions/printf.texi: Update.
46993         * doc/functions/snprintf.texi: Update.
46994         * doc/functions/sprintf.texi: Update.
46995         * doc/functions/vfprintf.texi: Update.
46996         * doc/functions/vprintf.texi: Update.
46997         * doc/functions/vsnprintf.texi: Update.
46998         * doc/functions/vsprintf.texi: Update.
46999
47000 2007-11-04  Bruno Haible  <bruno@clisp.org>
47001
47002         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
47003
47004 2007-11-04  Bruno Haible  <bruno@clisp.org>
47005
47006         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
47007         Reported by Sylvain Beucler <beuc@gnu.org>.
47008
47009 2007-11-03  Bruno Haible  <bruno@clisp.org>
47010
47011         * tests/test-fprintf-posix2.sh: New file.
47012         * tests/test-fprintf-posix2.c: New file.
47013         * modules/fprintf-posix-tests (Files): Add them.
47014         (TESTS): Add test-fprintf-posix2.sh.
47015         (configure.ac): Check for getrlimit and setrlimit.
47016         (check_PROGRAMS): Add test-fprintf-posix2.
47017
47018         * tests/test-printf-posix2.sh: New file.
47019         * tests/test-printf-posix2.c: New file.
47020         * modules/printf-posix-tests (Files): Add them.
47021         (TESTS): Add test-printf-posix2.sh.
47022         (configure.ac): Check for getrlimit and setrlimit.
47023         (check_PROGRAMS): Add test-printf-posix2.
47024
47025         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
47026         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
47027         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
47028         (decode_double): New function, copied from decode_long_double.
47029         (scale10_round_decimal_decoded): New function, extracted from
47030         scale10_round_decimal_long_double.
47031         (scale10_round_decimal_long_double): Use it.
47032         (scale10_round_decimal_double): New function.
47033         (floorlog10): New function.
47034         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
47035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
47036         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47037         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47038         gl_PRINTF_ENOMEM and test its result. Invoke
47039         gl_PREREQ_VASNPRINTF_ENOMEM.
47040         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47041         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47044         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47045         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47046         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47047         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
47048         * modules/snprintf-posix (Depends-on): Likewise.
47049         * modules/sprintf-posix (Depends-on): Likewise.
47050         * modules/vasnprintf-posix (Depends-on): Likewise.
47051         * modules/vasprintf-posix (Depends-on): Likewise.
47052         * modules/vfprintf-posix (Depends-on): Likewise.
47053         * modules/vsnprintf-posix (Depends-on): Likewise.
47054         * modules/vsprintf-posix (Depends-on): Likewise.
47055         * doc/functions/fprintf.texi: Update.
47056         * doc/functions/printf.texi: Update.
47057         * doc/functions/snprintf.texi: Update.
47058         * doc/functions/sprintf.texi: Update.
47059         * doc/functions/vfprintf.texi: Update.
47060         * doc/functions/vprintf.texi: Update.
47061         * doc/functions/vsnprintf.texi: Update.
47062         * doc/functions/vsprintf.texi: Update.
47063
47064 2007-11-03  Bruno Haible  <bruno@clisp.org>
47065
47066         * modules/frexp-nolibm-tests: New file.
47067
47068         * modules/frexp-nolibm: New file.
47069         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
47070
47071 2007-11-03  Bruno Haible  <bruno@clisp.org>
47072
47073         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
47074         value is C99 compliant.
47075         Needed for OSF/1 5.1.
47076
47077 2007-11-03  Bruno Haible  <bruno@clisp.org>
47078
47079         Fix out-of-memory handling of vasnprintf.
47080         * lib/printf-parse.c: Include <errno.h>.
47081         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
47082         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
47083         is already set.
47084
47085 2007-11-02  Eric Blake  <ebb9@byu.net>
47086
47087         Fix tests on cygwin.
47088         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
47089
47090 2007-11-01  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
47093         warning.
47094         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
47095         needed for POSIX compatibility.
47096
47097 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
47098
47099         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
47100         for compatibility with GNU.
47101
47102 2007-11-01  Bruno Haible  <bruno@clisp.org>
47103
47104         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
47105         (putenv): Renamed from rpl_putenv. Change argument type from
47106         'const char *' to 'char *'.
47107         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
47108         of defining putenv in config.h, just set REPLACE_PUTENV.
47109         * modules/putenv (Depends-on): Add stdlib.
47110         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47111         (Include): Use <stdlib.h>.
47112         * lib/stdlib.in.h (putenv): New declaration.
47113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
47114         REPLACE_PUTENV.
47115         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
47116         REPLACE_PUTENV.
47117         Needed for MacOS X 10.5.0.
47118         Reported by Peter O'Gorman <peter@pogma.com>.
47119
47120 2007-11-01  Jim Meyering  <meyering@redhat.com>
47121
47122         Treat an empty date string exactly like "0".
47123         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
47124         if the remaining date string (to be parsed) is empty, use "0".
47125         Reported by Mischa Molhoek and discussed in this thread:
47126         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
47127
47128 2007-10-31  Bruno Haible  <bruno@clisp.org>
47129
47130         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
47131         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
47132         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
47133         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
47134         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
47135         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
47136
47137 2007-10-31  Bruno Haible  <bruno@clisp.org>
47138
47139         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
47140         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
47141         (AC_TYPE_LONG_LONG_INT): Use it.
47142         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
47143         it as well.
47144         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
47145         to m4/longlong.m4.
47146         * modules/stdint (Files): Remove m4/ulonglong.m4.
47147         * modules/strtoull (Files): Use m4/longlong.m4 instead of
47148         m4/ulonglong.m4.
47149         * modules/strtoumax (Files): Likewise.
47150
47151 2007-10-30  Bruno Haible  <bruno@clisp.org>
47152
47153         * modules/xvasprintf-posix: New file.
47154         Suggested by Eric Blake.
47155
47156 2007-10-30  Bruno Haible  <bruno@clisp.org>
47157
47158         * modules/xprintf-posix-tests: New file.
47159         * tests/test-xprintf-posix.sh: New file.
47160         * tests/test-xprintf-posix.c: New file.
47161         * tests/test-xfprintf-posix.c: New file.
47162
47163         * modules/xprintf-posix: New file.
47164
47165 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47166
47167         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
47168         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
47169         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
47170
47171 2007-10-29  Bruno Haible  <bruno@clisp.org>
47172
47173         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
47174         contain the special marker '_cv_'.
47175         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47176         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47177         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47178         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47179         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47180         Reported by Ralf Wildenhues.
47181
47182 2007-10-29  Bruno Haible  <bruno@clisp.org>
47183
47184         * gnulib-tool (func_import): When --lgpl is not specified, set
47185         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
47186         GPLv3.
47187         Reported by Simon Josefsson.
47188
47189 2007-10-28  Bruno Haible  <bruno@clisp.org>
47190
47191         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
47192         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
47193         HAVE_DECL_ISFINITE.
47194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47195         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
47196         HAVE_DECL_ISFINITE.
47197
47198 2007-10-28  Bruno Haible  <bruno@clisp.org>
47199
47200         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
47201         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
47202
47203 2007-10-28  Bruno Haible  <bruno@clisp.org>
47204
47205         Fix link errors with Sun C 5.0 on Solaris 10.
47206         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
47207         function is declared but not present in the compiler's libm.
47208         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47209         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47210         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
47211         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
47212         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
47213         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
47214         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
47215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
47216         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
47217         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
47218         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
47219         HAVE_DECL_FLOORL.
47220
47221 2007-10-28  Bruno Haible  <bruno@clisp.org>
47222
47223         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
47224         gl_FUNC_FLOORL. Cache the result.
47225         (gl_FUNC_FLOORL): Use it.
47226         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
47227         gl_FUNC_CEILL. Cache the result.
47228         (gl_FUNC_CEILL): Use it.
47229
47230         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
47231         gl_FUNC_FLOOR. Cache the result.
47232         (gl_FUNC_FLOOR): Use it.
47233         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
47234         gl_FUNC_CEIL. Cache the result.
47235         (gl_FUNC_CEIL): Use it.
47236
47237         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
47238         gl_FUNC_FLOORF. Cache the result.
47239         (gl_FUNC_FLOORF): Use it.
47240         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
47241         gl_FUNC_CEILF. Cache the result.
47242         (gl_FUNC_CEILF): Use it.
47243
47244 2007-10-28  Bruno Haible  <bruno@clisp.org>
47245
47246         * gnulib-tool: Allow specifying the LGPL version number through
47247         --lgpl=2 or --lgpl=3.
47248         (func_usage): Document --lgpl with argument.
47249         Handle --lgpl=... arguments.
47250         (func_import): Recognize also gl_LGPL calls with an argument. When
47251         --lgpl=2 is used and the module's license is just LGPL, report an
47252         error. Set sed_transform_lib_file according to the lgpl variable. In
47253         the generated files, use --lgpl or gl_LGPL invocations with argument,
47254         if necessary.
47255         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
47256         an LGPv2+ license.
47257         * doc/gnulib-tool.texi (Modified imports): Update explanation of
47258         gl_LGPL macro.
47259
47260 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47261             Bruno Haible  <bruno@clisp.org>
47262
47263         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
47264         (u16_uctomb_aux): Likewise.
47265         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
47266         !HAVE_INLINE.
47267         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
47268
47269 2007-10-28  Bruno Haible  <bruno@clisp.org>
47270
47271         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
47272         Invoke AM_GETTEXT_OPTION if it exists.
47273         * modules/vasprintf: Likewise.
47274         * modules/verror: Likewise.
47275         * modules/xprintf: Likewise.
47276         * modules/xvasprintf: Likewise.
47277
47278 2007-10-27  Ben Pfaff  <blp@gnu.org>
47279
47280         * lib/math.in.h: Define isfinite macro and prototypes for
47281         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
47282         implementations.
47283         * m4/math_h.m4: New substitutions for isfinite module.
47284         * lib/isfinite.c: New file.
47285         * m4/isfinite.m4: New file.
47286         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
47287         * modules/isfinite: New file.
47288         * modules/isfinite-tests: New file.
47289         * tests/tests-isfinite.c: New file.
47290         * doc/functions/isfinite.texi: Mention isfinite module.
47291         * MODULES.html.sh: Mention new module.
47292
47293 2007-10-27  Ben Pfaff  <blp@gnu.org>
47294
47295         Ralf Wildenhues reported that Tru64 4.0D declares the round
47296         functions but does not have definitions.
47297         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
47298         cannot be found in any library, set the output variable to
47299         "missing" instead of "".
47300         * m4/round.m4: Also use our substitute if we cannot find round in
47301         any library, even if it is declared.
47302         * m4/roundf.m4: Likewise for roundf.
47303         * m4/roundl.m4: Likewise for roundl.
47304         * lib/math.in.h: Undefine roundf, round, roundl before defining
47305         their replacements, to allow for hypothetical systems where these
47306         may be defined as macros but not available in libraries.
47307
47308 2007-10-27  Bruno Haible  <bruno@clisp.org>
47309
47310         * doc/gnulib.texi: Invoke @firstparagraphindent.
47311         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
47312         changes in gnulib.
47313         (Source changes): New section.
47314
47315 2007-10-26  Bruno Haible  <bruno@clisp.org>
47316
47317         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
47318         borrowed from autoconf.
47319
47320 2007-10-26  Bruno Haible  <bruno@clisp.org>
47321
47322         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
47323         strerror returned the empty string. Needed on HP-UX 11.00.
47324
47325 2007-10-24  Micah Cowan  <micah@cowan.name>
47326
47327         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
47328         * build-aux/bootstrap: Remove support for now-unnecessary option,
47329         --cvs-user, and envvars CVS_USER, CVS_RSH.
47330
47331 2007-10-24  Jim Meyering  <meyering@redhat.com>
47332
47333         Avoid diagnostics from sha1sum when there is no cached checksum.
47334         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
47335         if the po.s1 file hasn't been created yet.
47336
47337         * build-aux/bootstrap: Sync from coreutils:
47338         2007-10-24  Jim Meyering  <meyering@redhat.com>
47339         Get gnulib from the git repository, not from an obsolete cvs one.
47340         * build-aux/bootstrap: Suggestion from Micah Cowan.
47341         2007-10-04  Jim Meyering  <jim@meyering.net>
47342         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
47343         (update_po_files): Work also when there are no .po files in po/.
47344
47345 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47346
47347         * README: Append ".git" to git and cg examples.
47348         Problem reported by Benoit Sigoure.
47349
47350 2007-10-23  Micah Cowan  <micah@cowan.name>
47351
47352         * users.txt: Add wget.
47353
47354 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47355
47356         Fix linking of some unistdio tests on FreeBSD.
47357         * modules/unistdio/u16-vsnprintf-tests
47358         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
47359         * modules/unistdio/u16-vsprintf-tests
47360         (test_u16_vsnprintf1_LDADD): Likewise.
47361         * modules/unistdio/u32-vsnprintf-tests
47362         (test_u32_vsnprintf1_LDADD): Likewise.
47363         * modules/unistdio/u32-vsprintf-tests
47364         (test_u32_vsprintf1_LDADD): Likewise.
47365         * modules/unistdio/u8-vsnprintf-tests
47366         (test_u8_vsnprintf1_LDADD): Likewise.
47367         * modules/unistdio/u8-vsprintf-tests
47368         (test_u8_vsprintf1_LDADD): Likewise.
47369         * modules/unistdio/ulc-vsnprintf-tests
47370         (test_ulc_vsnprintf1_LDADD): Likewise.
47371         * modules/unistdio/ulc-vsprintf-tests
47372         (test_ulc_vsprintf1_LDADD): Likewise.
47373
47374         Fix linking of some uniconv tests on FreeBSD.
47375         * modules/uniconv/u16-conv-from-enc-tests
47376         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
47377         * modules/uniconv/u16-conv-to-enc-tests
47378         (test_u16_conv_to_enc_LDADD): Likewise.
47379         * modules/uniconv/u16-strconv-from-enc-tests
47380         (test_u16_strconv_from_enc_LDADD): Likewise.
47381         * modules/uniconv/u16-strconv-to-enc-tests
47382         (test_u16_strconv_to_enc_LDADD): Likewise.
47383         * modules/uniconv/u32-conv-from-enc-tests
47384         (test_u32_conv_from_enc_LDADD): Likewise.
47385         * modules/uniconv/u32-conv-to-enc-tests
47386         (test_u32_conv_to_enc_LDADD): Likewise.
47387         * modules/uniconv/u32-strconv-from-enc-tests
47388         (test_u32_strconv_from_enc_LDADD): Likewise.
47389         * modules/uniconv/u32-strconv-to-enc-tests
47390         (test_u32_strconv_to_enc_LDADD): Likewise.
47391         * modules/uniconv/u8-conv-from-enc-tests
47392         (test_u8_conv_from_enc_LDADD): Likewise.
47393         * modules/uniconv/u8-conv-to-enc-tests
47394         (test_u8_conv_to_enc_LDADD): Likewise.
47395         * modules/uniconv/u8-strconv-from-enc-tests
47396         (test_u8_strconv_from_enc_LDADD): Likewise.
47397         * modules/uniconv/u8-strconv-to-enc-tests
47398         (test_u8_strconv_to_enc_LDADD): Likewise.
47399
47400 2007-10-22  Bruno Haible  <bruno@clisp.org>
47401
47402         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
47403         size.
47404
47405 2007-10-22  Eric Blake  <ebb9@byu.net>
47406
47407         Tweak x*printf documentation.
47408         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
47409         variable name and comments.
47410         Suggested by Bruno Haible.
47411
47412 2007-10-22  Bruno Haible  <bruno@clisp.org>
47413
47414         * lib/acl.c (copy_acl): Fix file name in comment.
47415
47416 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47417
47418         Fix Tru64 problem with stdbool.h.
47419         * lib/stdbool.in.h (false, true):
47420         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
47421         Don't declare as an enum in this situation; it runs afoul of Tru64.
47422         Problem reported by Steven M. Schweda in
47423         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
47424
47425 2007-10-22  Eric Blake  <ebb9@byu.net>
47426
47427         Also wrap vf?printf.
47428         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
47429         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
47430         (xvprintf, xvfprintf): New functions.
47431
47432 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47433
47434         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
47435         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
47436
47437         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
47438         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
47439
47440 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
47441
47442         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
47443         by Bruno Haible.
47444
47445 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47446
47447         * lib/getloadavg.c
47448         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
47449         Undef `sys' after including sys/table.h, for Tru64 4.0D.
47450
47451         * tests/test-i-ring.c: Work for C89.
47452
47453 2007-10-22  Bruno Haible  <bruno@clisp.org>
47454
47455         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
47456         -1u, in preprocessor expression, so that we don't test for the bug
47457         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
47458         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
47459
47460 2007-10-22  Eric Blake  <ebb9@byu.net>
47461
47462         * tests/test-yesno.sh: Silence stderr during test.
47463
47464 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47465
47466         * modules/crypto/gc-camellia: New file.
47467
47468         * m4/gc-camellia.m4: New file.
47469
47470         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
47471
47472         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
47473
47474 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47475
47476         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
47477         --help to stdout.  Reported by sms@antinode.org (Steven
47478         M. Schweda).
47479
47480 2007-10-22  Simon Josefsson  <simon@josefsson.org>
47481
47482         * users.txt: Fix link to libksba.
47483
47484 2007-10-21  Ben Pfaff  <blp@gnu.org>
47485
47486         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
47487         round.c roundf implementation that depends on floorf and ceilf to
47488         be tested unconditionally.
47489
47490 2007-10-21  Ben Pfaff  <blp@gnu.org>
47491
47492         * m4/check-libm-func.m4: Removed.
47493         * m4/check-math-lib.m4: New file.
47494         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
47495         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
47496         definition and lack of AC_LIBOBJ([roundf]).
47497         * m4/roundl.m4: Ditto, and similarly for roundl.
47498         * modules/round: Reference new m4 file.
47499         * modules/roundf: Ditto.
47500         * modules/roundl: Ditto.
47501         * tests/test-round2.c (main): Use ROUND instead of round.
47502         Bug report from Bruno Haible.
47503
47504 2007-10-21  Bruno Haible  <bruno@clisp.org>
47505
47506         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
47507         context.
47508
47509 2007-10-21  Bruno Haible  <bruno@clisp.org>
47510
47511         * tests/test-wcwidth.c (main): Allow negative result for some control
47512         characters.
47513
47514         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
47515         Needed on OSF/1 5.1.
47516
47517 2007-10-21  Bruno Haible  <bruno@clisp.org>
47518
47519         * tests/test-floorf1.c: Include isnanf.h.
47520         (main): Use isnanf() instead of isnan().
47521         * tests/test-ceilf1.c: Include isnanf.h.
47522         (main): Use isnanf() instead of isnan().
47523         * tests/test-truncf1.c: Include isnanf.h.
47524         (main): Use isnanf() instead of isnan().
47525         * tests/test-roundf1.c: Include isnanf.h.
47526         (main): Use isnanf() instead of isnan().
47527
47528 2007-10-21  Eric Blake  <ebb9@byu.net>
47529
47530         * users.txt: Update URL for m4.
47531
47532 2007-10-21  Bruno Haible  <bruno@clisp.org>
47533
47534         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
47535
47536 2007-10-21  Bruno Haible  <bruno@clisp.org>
47537
47538         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
47539         Git's management files if the CVS files are not present.
47540
47541 2007-10-20  Bruno Haible  <bruno@clisp.org>
47542
47543         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
47544         gcc-3.4.x.
47545
47546 2007-10-20  Ben Pfaff  <blp@gnu.org>
47547
47548         * lib/math.in.h: Declare round, roundf, roundl if we are providing
47549         implementations.
47550         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
47551         * lib/round.c: New file.
47552         * lib/roundf.c: New file.
47553         * lib/roundl.c: New file.
47554         * m4/round.m4: New file.
47555         * m4/roundf.m4: New file.
47556         * m4/roundl.m4: New file.
47557         * m4/check-libm-func-m4: New file.
47558         * modules/math: Replace round, roundf, roundl related @VARS@ in
47559         math.in.h.
47560         * modules/round: New file.
47561         * modules/round-tests: New file.
47562         * modules/roundf: New file.
47563         * modules/roundf-tests: New file.
47564         * modules/roundl: New file.
47565         * modules/roundl-tests: New file.
47566         * tests/test-round1.c: New file.
47567         * tests/test-round2.c: New file.
47568         * tests/test-roundf1.c: New file.
47569         * tests/test-roundf2.c: New file.
47570         * tests/test-roundl.c: New file.
47571         * doc/functions/round.texi: Mention round module.
47572         * doc/functions/roundf.texi: Mention roundf module.
47573         * doc/functions/roundl.texi: Mention roundl module.
47574         * MODULES.html.sh: Mention new modules.
47575         Thanks to Bruno Haible for suggestions.
47576
47577 2007-10-20  Jim Meyering  <meyering@redhat.com>
47578
47579         * lib/xprintf.c: Include <config.h> unconditionally.
47580
47581         Change xprintf's license to GPL.
47582         * modules/xprintf (License): s/LGPL/GPL/, since this module
47583         depends on modules (exit and exitfail) which are GPL.
47584         Suggestion from Bruno Haible.
47585
47586         xprintf fixes.
47587         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
47588         Use a clearer diagnostic.
47589         Patch from Bruno Haible.
47590
47591 2007-10-20  Bruno Haible  <bruno@clisp.org>
47592
47593         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
47594         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
47595         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47596
47597 2007-10-20  Bruno Haible  <bruno@clisp.org>
47598
47599         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
47600         precision in the comparison result > x - 1 or similar.
47601         * tests/test-ceilf2.c (correct_result_p): Likewise.
47602         * tests/test-truncf2.c (correct_result_p): Likewise.
47603         * tests/test-trunc2.c (correct_result_p): Likewise.
47604         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47605
47606 2007-10-20  Bruno Haible  <bruno@clisp.org>
47607
47608         * modules/ceil: New file.
47609         * m4/ceil.m4: New file.
47610         * doc/functions/ceil.texi: Mention the 'ceil' module.
47611
47612 2007-10-20  Bruno Haible  <bruno@clisp.org>
47613
47614         * modules/floor: New file.
47615         * m4/floor.m4: New file.
47616         * doc/functions/floor.texi: Mention the 'floor' module.
47617
47618 2007-10-20  Bruno Haible  <bruno@clisp.org>
47619
47620         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
47621         of %a.
47622         * modules/floorf-tests (Depends-on): Likewise.
47623         * modules/truncf-tests (Depends-on): Likewise.
47624         * modules/trunc-tests (Depends-on): Likewise.
47625         Reported by Ben Pfaff.
47626
47627 2007-10-19  Jim Meyering  <meyering@redhat.com>
47628
47629         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
47630         Don't bother testing specific errno values.  Just test ferror.
47631
47632         New module: xprintf
47633         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
47634
47635 2007-10-19  Bruno Haible  <bruno@clisp.org>
47636
47637         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
47638         syntax.
47639         * modules/javaexec (Makefile.am): Likewise.
47640         * modules/relocatable-prog (Makefile.am): Likewise.
47641         Suggested by Jim Meyering.
47642
47643 2007-10-18  Bruno Haible  <bruno@clisp.org>
47644
47645         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
47646         Reported by Jim Meyering.
47647
47648 2007-10-18  Eric Blake  <ebb9@byu.net>
47649
47650         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
47651
47652 2007-10-18  Bruno Haible  <bruno@clisp.org>
47653
47654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
47655         the format string into writable memory. Needed in Fortify conditions.
47656
47657 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
47658             Bruno Haible  <bruno@clisp.org>
47659
47660         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
47661         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
47662         * modules/trim (Depends-on): Add mbchar.
47663         (configure.ac): Add gl_FUNC_MBRTOWC.
47664         (Makefile.am): Augment lib_SOURCES.
47665
47666 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47667
47668         Modify glob.c to use fstatat and dirfd, to simplify it.
47669         Suggested by Eric Blake.
47670         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
47671         Don't include <stdbool.h>; not used.
47672         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
47673         (link_exists_p): Simplify implementation, since we can now assume
47674         dirfd and fstatat.
47675         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
47676
47677 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47678
47679         * gnulib-tool (func_get_dependencies): Fix sed script to
47680         match only tests.
47681
47682 2007-10-17  Bruno Haible  <bruno@clisp.org>
47683
47684         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
47685         allow locale names without encoding suffix.
47686         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
47687         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
47688
47689 2007-10-16  Bruno Haible  <bruno@clisp.org>
47690
47691         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
47692         * lib/getgroups.c (getgroups): Likewise.
47693         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
47694
47695 2007-10-16  Bruno Haible  <bruno@clisp.org>
47696
47697         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
47698         * modules/malloc-posix (License): Likewise.
47699         * modules/realloc-posix (License): Likewise.
47700         * modules/calloc-posix (License): Likewise.
47701         * modules/intprops (License): Change from GPL to LGPL, with
47702         Paul Eggert's approval.
47703
47704 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47705
47706         Merge glibc changes into lib/glob.c.
47707
47708         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
47709         2007-10-15 04:59:03 UTC.  Here are the changes:
47710
47711         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
47712
47713         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
47714
47715         * lib/glob.c: Add some branch prediction throughout.
47716
47717         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
47718
47719         [BZ #5103]
47720         * lib/glob.c (glob): Recognize patterns starting \/.
47721
47722         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
47723
47724         [BZ #3996]
47725         * lib/glob.c (attribute_hidden): Define if not defined.
47726         (glob): Unescape dirname, filename or username when needed and not
47727         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
47728         is NULL.  Handle unescaped [ in pattern without closing ].
47729         Don't pass GLOB_CHECK down to recursive glob for directories.
47730         (__glob_pattern_type): New function.
47731         (__glob_pattern_p): Implement using __glob_pattern_type.
47732         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
47733         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
47734         Remove unreachable code.
47735
47736         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
47737
47738         * lib/glob.c (glob_in_dir): Add some comments and asserts to
47739         explain why there are no leaks.
47740
47741         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
47742
47743         [BZ #3253]
47744         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
47745         time, rather allocate increasingly bigger arrays of pointers, if
47746         possible with alloca, if too large with malloc.
47747
47748 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47749
47750         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
47751         Problem reported by H.Merijn Brand in
47752         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
47753         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
47754         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47755
47756 2007-10-15  Bruno Haible  <bruno@clisp.org>
47757
47758         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
47759         with explicit rpl_ prefix.
47760         * lib/fopen.c (fopen): Likewise.
47761         * lib/freopen.c (freopen): Likewise.
47762         * lib/iconv.c (iconv): Likewise.
47763         * lib/iconv_close.c (iconv_close): Likewise.
47764
47765 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47766
47767         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
47768
47769 2007-10-15  Bruno Haible  <bruno@clisp.org>
47770
47771         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
47772         <stddef.h> instead of <stdlib.h> since we only need NULL.
47773         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47774
47775 2007-10-15  Bruno Haible  <bruno@clisp.org>
47776
47777         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
47778         Replace paragraph talking about LIBOBJS.
47779         Reported by Colin Watson <cjwatson@debian.org>.
47780
47781 2007-10-15  Bruno Haible  <bruno@clisp.org>
47782
47783         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
47784         <stdlib.h> before using NULL.
47785
47786 2007-10-15  Simon Josefsson  <simon@josefsson.org>
47787
47788         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
47789         Reported by Albert Chin <china@thewrittenword.com>.
47790
47791 2007-10-14  Bruno Haible  <bruno@clisp.org>
47792
47793         * modules/iconv_open-utf-tests: New file.
47794         * tests/test-iconv-utf.c: New file.
47795
47796         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
47797         * modules/iconv_open-utf: New file.
47798         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
47799         (iconv, iconv_close): New declarations.
47800         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
47801         be defined.
47802         (iconv_open): Add special handling of conversion between UTF-8 and
47803         UTF-{16,32}{BE,LE}.
47804         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
47805         * lib/iconv_close.c: New file.
47806         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
47807         gl_FUNC_ICONV_OPEN.
47808         (gl_FUNC_ICONV_OPEN): Use it.
47809         (gl_FUNC_ICONV_OPEN_UTF): New macro.
47810         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
47811         and REPLACE_ICONV_UTF.
47812         * modules/iconv_open (Depends-on): Add c-strcase.
47813         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
47814         ICONV_CONST.
47815         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
47816
47817 2007-10-13  Albert Chin  <china@thewrittenword.com>
47818             Bruno Haible  <bruno@clisp.org>
47819
47820         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
47821         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
47822
47823 2007-10-13  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
47826         defined, use the ISO C99 inline semantics.
47827         * lib/argp.h (ARGP_EI): Likewise.
47828
47829 2007-10-13  Bruno Haible  <bruno@clisp.org>
47830
47831         Handle 'inline' change in gcc 4.3.0.
47832         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
47833         argp_fmtstream_write, argp_fmtstream_set_lmargin,
47834         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
47835         argp_fmtstream_point): Disable 'extern' declaration if the function
47836         definition is going to be provided inline.
47837         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
47838         semantics, not the ISO C99 inline semantics.
47839         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
47840         'extern' declaration if the function definition is going to be provided
47841         inline.
47842         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
47843         the GNU C inline semantics, not the ISO C99 inline semantics. With
47844         GCC 4.2, avoid a warning.
47845
47846 2007-10-13  Bruno Haible  <bruno@clisp.org>
47847
47848         * lib/freading.h (freading): Enable the use of __freading for
47849         glibc >= 2.7.
47850         * lib/freading.c (freading): Likewise.
47851
47852 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47853
47854         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
47855         "warning: C99 inline functions are not supported; using GNU89".
47856
47857 2007-10-12  Bruno Haible  <bruno@clisp.org>
47858
47859         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
47860         of 2.
47861         * tests/test-ceilf2.c: New file.
47862         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
47863
47864         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
47865         * modules/ceilf-tests: Update.
47866
47867 2007-10-12  Bruno Haible  <bruno@clisp.org>
47868
47869         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
47870         of 2.
47871         * tests/test-floorf2.c: New file.
47872         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
47873
47874         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
47875         * modules/floorf-tests: Update.
47876
47877 2007-10-12  Bruno Haible  <bruno@clisp.org>
47878
47879         * tests/test-trunc2.c: New file.
47880         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
47881
47882         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
47883         * modules/trunc-tests: Update.
47884
47885 2007-10-12  Bruno Haible  <bruno@clisp.org>
47886
47887         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
47888         of 2.
47889         * tests/test-truncf2.c: New file.
47890         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
47891
47892         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
47893         * modules/truncf-tests: Update.
47894
47895 2007-10-11  Eric Blake  <ebb9@byu.net>
47896
47897         Don't claim strerror is broken on Interix.
47898         * doc/functions/strerror.texi (strerror): Known broken systems are
47899         now Solaris 8, and not Interix.
47900         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
47901         Interix on cross-compile.
47902         Reported by Martin Koeppe in
47903         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
47904
47905 2007-10-11  Bruno Haible  <bruno@clisp.org>
47906
47907         * modules/i-ring-tests: New file.
47908         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
47909         instead of assert.
47910
47911 2007-10-11  Bruno Haible  <bruno@clisp.org>
47912
47913         * modules/filenamecat-tests: New file.
47914         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
47915         * lib/filenamecat.c: Remove test code.
47916
47917 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47918
47919         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
47920
47921         * lib/strerror.c: Include <string.h> always, to test interface,
47922         and to remove the need for the dummy.
47923         Include intprops.h to compute width instead of doing it ourselves
47924         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
47925         (strerror): Define it to return NULL if there's no system strerror.
47926         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
47927         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
47928         ancient pre-strerror Unix systems well any more.  Saying "unknown
47929         system error" is enough.
47930         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
47931         simpler strerror.c implementation.
47932         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
47933         Simplify the tests to reflect the simpler strerror implementation.
47934         * modules/strerror (Depends-on): Add intprops.
47935
47936 2007-10-09  Eric Blake  <ebb9@byu.net>
47937
47938         Silence test-fpending.
47939         * modules/fpending-tests (Files): Add wrapper script.
47940         * tests/test-fpending.sh: New file.
47941
47942 2007-10-09  Bruno Haible  <bruno@clisp.org>
47943
47944         * MODULES.html.sh (func_module): Don't create a hyperlink for
47945         function names like 'printf_frexp'.
47946         (Misc): Add crc, memxor.
47947         (Characteristics of floating types): New section.
47948         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
47949         isnanf-nolibm, signbit, trunc, truncf, truncl.
47950         (Enhancements for ISO C 99 functions): New subsection Input/output.
47951         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
47952         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
47953         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
47954         (Compatibility checks for POSIX:2001 functions): Add clock-time.
47955         (Enhancements for POSIX:2001 functions): Add chdir-long.
47956         (File system functions): Add areadlink, chdir-safer, read-file.
47957         Remove cycle-check.
47958         (File system as inode set): New section.
47959         (Date and time): Add gethrxtime.
47960         (Multithreading): Add openmp.
47961         (Internationalization functions): Add localename.
47962         (Unicode string functions): Add unistr/u*-mbsnlen.
47963         (Support for maintaining and releasing projects): Add git-version-gen.
47964         (Lone files): Remove directories.
47965
47966 2007-10-08  Ben Pfaff  <blp@gnu.org>
47967
47968         * lib/xmalloca.h: Fix typo in comment.
47969
47970 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47971
47972         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
47973         when avoiding problems with integer overflow.  Use a portable test
47974         instead.
47975
47976 2007-10-08  Simon Josefsson  <simon@josefsson.org>
47977
47978         * modules/dummy (License): Change to LGPLv2+.
47979         * modules/float (License): Likewise
47980         * modules/realloc (License): Likewise
47981         * modules/stdlib (License): Likewise
47982
47983 2007-10-07  Bruno Haible  <bruno@clisp.org>
47984
47985         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
47986         * floor.c (TWO_MANT_DIG): Likewise.
47987         * ceil.c (TWO_MANT_DIG): Likewise.
47988         Reported by Ben Pfaff.
47989
47990 2007-10-07  Bruno Haible  <bruno@clisp.org>
47991
47992         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
47993         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
47994         * lib/frexp.c (FUNC): Likewise.
47995         * lib/printf-frexp.h (printf_frexp): Likewise.
47996         * lib/printf-frexpl.h (printf_frexpl): Likewise.
47997         * lib/printf-frexp.c (FUNC): Likewise.
47998         Suggested by Jim Meyering.
47999
48000 2007-10-07  Jim Meyering  <meyering@redhat.com>
48001
48002         Make xnanosleep's integer overflow test more robust.
48003         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
48004         so that gcc-4.3.0 doesn't optimize away this test for overflow.
48005
48006 2007-10-07  Bruno Haible  <bruno@clisp.org>
48007
48008         * NEWS: Mention the license change.
48009
48010         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
48011         abbreviations in the modules files.
48012
48013         Change copyright notice from GPLv2+ to GPLv3+.
48014         * README: Change copyright notice.
48015         * MODULES.html.sh: Likewise.
48016         * build-aux/bootstrap.conf: Likewise.
48017         * build-aux/config.libpath: Likewise.
48018         * build-aux/csharpcomp.sh.in: Likewise.
48019         * build-aux/csharpexec.sh.in: Likewise.
48020         * build-aux/install-reloc: Likewise.
48021         * build-aux/javacomp.sh.in: Likewise.
48022         * build-aux/javaexec.sh.in: Likewise.
48023         * build-aux/ldd.sh.in: Likewise.
48024         * build-aux/reloc-ldflags: Likewise.
48025         * build-aux/relocatable.sh.in: Likewise.
48026         * build-aux/x-to-1.in: Likewise.
48027         * check-module: Likewise.
48028         * config/srclistvars.sh: Likewise.
48029         * gnulib-tool: Likewise.
48030         * lib/acl-internal.h: Likewise.
48031         * lib/acl.c: Likewise.
48032         * lib/acl.h: Likewise.
48033         * lib/acl_entries.c: Likewise.
48034         * lib/areadlink-with-size.c: Likewise.
48035         * lib/areadlink.c: Likewise.
48036         * lib/areadlink.h: Likewise.
48037         * lib/argmatch.c: Likewise.
48038         * lib/argmatch.h: Likewise.
48039         * lib/argp-ba.c: Likewise.
48040         * lib/argp-eexst.c: Likewise.
48041         * lib/argp-fmtstream.c: Likewise.
48042         * lib/argp-fmtstream.h: Likewise.
48043         * lib/argp-fs-xinl.c: Likewise.
48044         * lib/argp-help.c: Likewise.
48045         * lib/argp-namefrob.h: Likewise.
48046         * lib/argp-parse.c: Likewise.
48047         * lib/argp-pin.c: Likewise.
48048         * lib/argp-pv.c: Likewise.
48049         * lib/argp-pvh.c: Likewise.
48050         * lib/argp-xinl.c: Likewise.
48051         * lib/argp.h: Likewise.
48052         * lib/at-func.c: Likewise.
48053         * lib/atanl.c: Likewise.
48054         * lib/backupfile.c: Likewise.
48055         * lib/backupfile.h: Likewise.
48056         * lib/basename.c: Likewise.
48057         * lib/binary-io.h: Likewise.
48058         * lib/byteswap.in.h: Likewise.
48059         * lib/c-stack.c: Likewise.
48060         * lib/c-stack.h: Likewise.
48061         * lib/c-strcasestr.c: Likewise.
48062         * lib/c-strcasestr.h: Likewise.
48063         * lib/c-strstr.c: Likewise.
48064         * lib/c-strstr.h: Likewise.
48065         * lib/c-strtod.c: Likewise.
48066         * lib/calloc.c: Likewise.
48067         * lib/canon-host.c: Likewise.
48068         * lib/canon-host.h: Likewise.
48069         * lib/canonicalize-lgpl.c: Likewise.
48070         * lib/canonicalize.c: Likewise.
48071         * lib/canonicalize.h: Likewise.
48072         * lib/ceil.c: Likewise.
48073         * lib/ceilf.c: Likewise.
48074         * lib/ceill.c: Likewise.
48075         * lib/chdir-long.c: Likewise.
48076         * lib/chdir-long.h: Likewise.
48077         * lib/chdir-safer.c: Likewise.
48078         * lib/chdir-safer.h: Likewise.
48079         * lib/chown.c: Likewise.
48080         * lib/classpath.c: Likewise.
48081         * lib/classpath.h: Likewise.
48082         * lib/clean-temp.c: Likewise.
48083         * lib/clean-temp.h: Likewise.
48084         * lib/cloexec.c: Likewise.
48085         * lib/close-stream.c: Likewise.
48086         * lib/closein.c: Likewise.
48087         * lib/closein.h: Likewise.
48088         * lib/closeout.c: Likewise.
48089         * lib/closeout.h: Likewise.
48090         * lib/concat-filename.c: Likewise.
48091         * lib/copy-file.c: Likewise.
48092         * lib/copy-file.h: Likewise.
48093         * lib/count-one-bits.h: Likewise.
48094         * lib/crc.c: Likewise.
48095         * lib/crc.h: Likewise.
48096         * lib/creat-safer.c: Likewise.
48097         * lib/csharpcomp.c: Likewise.
48098         * lib/csharpcomp.h: Likewise.
48099         * lib/csharpexec.c: Likewise.
48100         * lib/csharpexec.h: Likewise.
48101         * lib/cycle-check.c: Likewise.
48102         * lib/cycle-check.h: Likewise.
48103         * lib/diacrit.c: Likewise.
48104         * lib/diacrit.h: Likewise.
48105         * lib/diffseq.h: Likewise.
48106         * lib/dirchownmod.c: Likewise.
48107         * lib/dirent.in.h: Likewise.
48108         * lib/dirfd.c: Likewise.
48109         * lib/dirfd.h: Likewise.
48110         * lib/dirname.c: Likewise.
48111         * lib/dirname.h: Likewise.
48112         * lib/dummy.c: Likewise.
48113         * lib/dup-safer.c: Likewise.
48114         * lib/dup2.c: Likewise.
48115         * lib/eealloc.h: Likewise.
48116         * lib/error.c: Likewise.
48117         * lib/error.h: Likewise.
48118         * lib/euidaccess.c: Likewise.
48119         * lib/exclude.c: Likewise.
48120         * lib/exclude.h: Likewise.
48121         * lib/execute.c: Likewise.
48122         * lib/execute.h: Likewise.
48123         * lib/exitfail.c: Likewise.
48124         * lib/exitfail.h: Likewise.
48125         * lib/expl.c: Likewise.
48126         * lib/fatal-signal.c: Likewise.
48127         * lib/fatal-signal.h: Likewise.
48128         * lib/fbufmode.c: Likewise.
48129         * lib/fbufmode.h: Likewise.
48130         * lib/fchdir.c: Likewise.
48131         * lib/fchmodat.c: Likewise.
48132         * lib/fchownat.c: Likewise.
48133         * lib/fcntl--.h: Likewise.
48134         * lib/fcntl-safer.h: Likewise.
48135         * lib/fcntl.in.h: Likewise.
48136         * lib/fd-safer.c: Likewise.
48137         * lib/fflush.c: Likewise.
48138         * lib/file-has-acl.c: Likewise.
48139         * lib/file-set.c: Likewise.
48140         * lib/file-type.c: Likewise.
48141         * lib/file-type.h: Likewise.
48142         * lib/fileblocks.c: Likewise.
48143         * lib/filemode.c: Likewise.
48144         * lib/filemode.h: Likewise.
48145         * lib/filename.h: Likewise.
48146         * lib/filenamecat.c: Likewise.
48147         * lib/filenamecat.h: Likewise.
48148         * lib/findprog.c: Likewise.
48149         * lib/findprog.h: Likewise.
48150         * lib/float.in.h: Likewise.
48151         * lib/floor.c: Likewise.
48152         * lib/floorf.c: Likewise.
48153         * lib/floorl.c: Likewise.
48154         * lib/fopen-safer.c: Likewise.
48155         * lib/fopen.c: Likewise.
48156         * lib/fpending.c: Likewise.
48157         * lib/fpending.h: Likewise.
48158         * lib/fprintf.c: Likewise.
48159         * lib/fprintftime.h: Likewise.
48160         * lib/fpucw.h: Likewise.
48161         * lib/fpurge.c: Likewise.
48162         * lib/fpurge.h: Likewise.
48163         * lib/freadable.c: Likewise.
48164         * lib/freadable.h: Likewise.
48165         * lib/freadahead.c: Likewise.
48166         * lib/freadahead.h: Likewise.
48167         * lib/freading.c: Likewise.
48168         * lib/freading.h: Likewise.
48169         * lib/free.c: Likewise.
48170         * lib/freopen.c: Likewise.
48171         * lib/frexp.c: Likewise.
48172         * lib/frexpl.c: Likewise.
48173         * lib/fseek.c: Likewise.
48174         * lib/fseterr.c: Likewise.
48175         * lib/fseterr.h: Likewise.
48176         * lib/fstatat.c: Likewise.
48177         * lib/fstrcmp.c: Likewise.
48178         * lib/fstrcmp.h: Likewise.
48179         * lib/fsusage.c: Likewise.
48180         * lib/fsusage.h: Likewise.
48181         * lib/ftell.c: Likewise.
48182         * lib/ftello.c: Likewise.
48183         * lib/fts-cycle.c: Likewise.
48184         * lib/fts.c: Likewise.
48185         * lib/fts_.h: Likewise.
48186         * lib/full-read.c: Likewise.
48187         * lib/full-read.h: Likewise.
48188         * lib/full-write.c: Likewise.
48189         * lib/full-write.h: Likewise.
48190         * lib/fwritable.c: Likewise.
48191         * lib/fwritable.h: Likewise.
48192         * lib/fwriteerror.c: Likewise.
48193         * lib/fwriteerror.h: Likewise.
48194         * lib/fwriting.c: Likewise.
48195         * lib/fwriting.h: Likewise.
48196         * lib/gcd.c: Likewise.
48197         * lib/gcd.h: Likewise.
48198         * lib/getcwd.c: Likewise.
48199         * lib/getdate.h: Likewise.
48200         * lib/getdate.y: Likewise.
48201         * lib/getdomainname.c: Likewise.
48202         * lib/getdomainname.h: Likewise.
48203         * lib/getgroups.c: Likewise.
48204         * lib/gethostname.c: Likewise.
48205         * lib/gethrxtime.c: Likewise.
48206         * lib/gethrxtime.h: Likewise.
48207         * lib/getloadavg.c: Likewise.
48208         * lib/getndelim2.c: Likewise.
48209         * lib/getndelim2.h: Likewise.
48210         * lib/getnline.c: Likewise.
48211         * lib/getnline.h: Likewise.
48212         * lib/getopt.c: Likewise.
48213         * lib/getopt.in.h: Likewise.
48214         * lib/getopt1.c: Likewise.
48215         * lib/getopt_int.h: Likewise.
48216         * lib/getpagesize.h: Likewise.
48217         * lib/getsubopt.c: Likewise.
48218         * lib/gettime.c: Likewise.
48219         * lib/getugroups.c: Likewise.
48220         * lib/getugroups.h: Likewise.
48221         * lib/getusershell.c: Likewise.
48222         * lib/gl_anyavltree_list1.h: Likewise.
48223         * lib/gl_anyavltree_list2.h: Likewise.
48224         * lib/gl_anyhash_list1.h: Likewise.
48225         * lib/gl_anyhash_list2.h: Likewise.
48226         * lib/gl_anylinked_list1.h: Likewise.
48227         * lib/gl_anylinked_list2.h: Likewise.
48228         * lib/gl_anyrbtree_list1.h: Likewise.
48229         * lib/gl_anyrbtree_list2.h: Likewise.
48230         * lib/gl_anytree_list1.h: Likewise.
48231         * lib/gl_anytree_list2.h: Likewise.
48232         * lib/gl_anytree_oset.h: Likewise.
48233         * lib/gl_anytreehash_list1.h: Likewise.
48234         * lib/gl_anytreehash_list2.h: Likewise.
48235         * lib/gl_array_list.c: Likewise.
48236         * lib/gl_array_list.h: Likewise.
48237         * lib/gl_array_oset.c: Likewise.
48238         * lib/gl_array_oset.h: Likewise.
48239         * lib/gl_avltree_list.c: Likewise.
48240         * lib/gl_avltree_list.h: Likewise.
48241         * lib/gl_avltree_oset.c: Likewise.
48242         * lib/gl_avltree_oset.h: Likewise.
48243         * lib/gl_avltreehash_list.c: Likewise.
48244         * lib/gl_avltreehash_list.h: Likewise.
48245         * lib/gl_carray_list.c: Likewise.
48246         * lib/gl_carray_list.h: Likewise.
48247         * lib/gl_linked_list.c: Likewise.
48248         * lib/gl_linked_list.h: Likewise.
48249         * lib/gl_linkedhash_list.c: Likewise.
48250         * lib/gl_linkedhash_list.h: Likewise.
48251         * lib/gl_list.c: Likewise.
48252         * lib/gl_list.h: Likewise.
48253         * lib/gl_oset.c: Likewise.
48254         * lib/gl_oset.h: Likewise.
48255         * lib/gl_rbtree_list.c: Likewise.
48256         * lib/gl_rbtree_list.h: Likewise.
48257         * lib/gl_rbtree_oset.c: Likewise.
48258         * lib/gl_rbtree_oset.h: Likewise.
48259         * lib/gl_rbtreehash_list.c: Likewise.
48260         * lib/gl_rbtreehash_list.h: Likewise.
48261         * lib/gl_sublist.c: Likewise.
48262         * lib/gl_sublist.h: Likewise.
48263         * lib/group-member.c: Likewise.
48264         * lib/group-member.h: Likewise.
48265         * lib/hard-locale.c: Likewise.
48266         * lib/hard-locale.h: Likewise.
48267         * lib/hash-pjw.c: Likewise.
48268         * lib/hash-pjw.h: Likewise.
48269         * lib/hash-triple.c: Likewise.
48270         * lib/hash.c: Likewise.
48271         * lib/hash.h: Likewise.
48272         * lib/human.c: Likewise.
48273         * lib/human.h: Likewise.
48274         * lib/i-ring.c: Likewise.
48275         * lib/i-ring.h: Likewise.
48276         * lib/idcache.c: Likewise.
48277         * lib/imaxabs.c: Likewise.
48278         * lib/imaxdiv.c: Likewise.
48279         * lib/inet_pton.c: Likewise.
48280         * lib/inet_pton.h: Likewise.
48281         * lib/intprops.h: Likewise.
48282         * lib/inttostr.c: Likewise.
48283         * lib/inttostr.h: Likewise.
48284         * lib/inttypes.in.h: Likewise.
48285         * lib/isapipe.c: Likewise.
48286         * lib/isdir.c: Likewise.
48287         * lib/isnan.c: Likewise.
48288         * lib/isnan.h: Likewise.
48289         * lib/isnanf.c: Likewise.
48290         * lib/isnanf.h: Likewise.
48291         * lib/isnanl-nolibm.h: Likewise.
48292         * lib/isnanl.c: Likewise.
48293         * lib/isnanl.h: Likewise.
48294         * lib/javacomp.c: Likewise.
48295         * lib/javacomp.h: Likewise.
48296         * lib/javaexec.c: Likewise.
48297         * lib/javaexec.h: Likewise.
48298         * lib/javaversion.c: Likewise.
48299         * lib/javaversion.h: Likewise.
48300         * lib/javaversion.java: Likewise.
48301         * lib/lbrkprop.h: Likewise.
48302         * lib/lchmod.h: Likewise.
48303         * lib/lchown.c: Likewise.
48304         * lib/ldexpl.c: Likewise.
48305         * lib/linebreak.c: Likewise.
48306         * lib/linebreak.h: Likewise.
48307         * lib/linebuffer.c: Likewise.
48308         * lib/linebuffer.h: Likewise.
48309         * lib/locale.in.h: Likewise.
48310         * lib/logl.c: Likewise.
48311         * lib/long-options.c: Likewise.
48312         * lib/long-options.h: Likewise.
48313         * lib/lstat.c: Likewise.
48314         * lib/lstat.h: Likewise.
48315         * lib/math.in.h: Likewise.
48316         * lib/mbchar.c: Likewise.
48317         * lib/mbchar.h: Likewise.
48318         * lib/mbfile.h: Likewise.
48319         * lib/mbiter.h: Likewise.
48320         * lib/mbscasecmp.c: Likewise.
48321         * lib/mbscasestr.c: Likewise.
48322         * lib/mbschr.c: Likewise.
48323         * lib/mbscspn.c: Likewise.
48324         * lib/mbslen.c: Likewise.
48325         * lib/mbsncasecmp.c: Likewise.
48326         * lib/mbsnlen.c: Likewise.
48327         * lib/mbspbrk.c: Likewise.
48328         * lib/mbspcasecmp.c: Likewise.
48329         * lib/mbsrchr.c: Likewise.
48330         * lib/mbssep.c: Likewise.
48331         * lib/mbsspn.c: Likewise.
48332         * lib/mbsstr.c: Likewise.
48333         * lib/mbstok_r.c: Likewise.
48334         * lib/mbswidth.c: Likewise.
48335         * lib/mbswidth.h: Likewise.
48336         * lib/mbuiter.h: Likewise.
48337         * lib/memcasecmp.c: Likewise.
48338         * lib/memcasecmp.h: Likewise.
48339         * lib/memchr.c: Likewise.
48340         * lib/memcmp.c: Likewise.
48341         * lib/memcoll.c: Likewise.
48342         * lib/memcoll.h: Likewise.
48343         * lib/memcpy.c: Likewise.
48344         * lib/memrchr.c: Likewise.
48345         * lib/mkancesdirs.c: Likewise.
48346         * lib/mkdir-p.c: Likewise.
48347         * lib/mkdir-p.h: Likewise.
48348         * lib/mkdir.c: Likewise.
48349         * lib/mkdirat.c: Likewise.
48350         * lib/mkdtemp.c: Likewise.
48351         * lib/mkstemp-safer.c: Likewise.
48352         * lib/mkstemp.c: Likewise.
48353         * lib/modechange.c: Likewise.
48354         * lib/modechange.h: Likewise.
48355         * lib/mountlist.c: Likewise.
48356         * lib/mountlist.h: Likewise.
48357         * lib/mpsort.c: Likewise.
48358         * lib/nanosleep.c: Likewise.
48359         * lib/obstack.c: Likewise.
48360         * lib/obstack.h: Likewise.
48361         * lib/open-safer.c: Likewise.
48362         * lib/open.c: Likewise.
48363         * lib/openat-die.c: Likewise.
48364         * lib/openat-priv.h: Likewise.
48365         * lib/openat-proc.c: Likewise.
48366         * lib/openat.c: Likewise.
48367         * lib/openat.h: Likewise.
48368         * lib/pagealign_alloc.c: Likewise.
48369         * lib/pagealign_alloc.h: Likewise.
48370         * lib/physmem.c: Likewise.
48371         * lib/physmem.h: Likewise.
48372         * lib/pipe-safer.c: Likewise.
48373         * lib/pipe.c: Likewise.
48374         * lib/pipe.h: Likewise.
48375         * lib/posixtm.c: Likewise.
48376         * lib/posixtm.h: Likewise.
48377         * lib/posixver.c: Likewise.
48378         * lib/printf-frexp.c: Likewise.
48379         * lib/printf-frexp.h: Likewise.
48380         * lib/printf-frexpl.c: Likewise.
48381         * lib/printf-frexpl.h: Likewise.
48382         * lib/printf.c: Likewise.
48383         * lib/progname.c: Likewise.
48384         * lib/progname.h: Likewise.
48385         * lib/progreloc.c: Likewise.
48386         * lib/putenv.c: Likewise.
48387         * lib/quote.c: Likewise.
48388         * lib/quote.h: Likewise.
48389         * lib/quotearg.c: Likewise.
48390         * lib/quotearg.h: Likewise.
48391         * lib/raise.c: Likewise.
48392         * lib/readline.c: Likewise.
48393         * lib/readline.h: Likewise.
48394         * lib/readlink.c: Likewise.
48395         * lib/readtokens.c: Likewise.
48396         * lib/readtokens.h: Likewise.
48397         * lib/readtokens0.c: Likewise.
48398         * lib/readtokens0.h: Likewise.
48399         * lib/readutmp.c: Likewise.
48400         * lib/readutmp.h: Likewise.
48401         * lib/realloc.c: Likewise.
48402         * lib/relocwrapper.c: Likewise.
48403         * lib/rename-dest-slash.c: Likewise.
48404         * lib/rename.c: Likewise.
48405         * lib/rmdir.c: Likewise.
48406         * lib/rpmatch.c: Likewise.
48407         * lib/safe-read.c: Likewise.
48408         * lib/safe-read.h: Likewise.
48409         * lib/safe-write.c: Likewise.
48410         * lib/safe-write.h: Likewise.
48411         * lib/same-inode.h: Likewise.
48412         * lib/same.c: Likewise.
48413         * lib/same.h: Likewise.
48414         * lib/save-cwd.c: Likewise.
48415         * lib/save-cwd.h: Likewise.
48416         * lib/savedir.c: Likewise.
48417         * lib/savedir.h: Likewise.
48418         * lib/savewd.c: Likewise.
48419         * lib/savewd.h: Likewise.
48420         * lib/search.in.h: Likewise.
48421         * lib/setenv.c: Likewise.
48422         * lib/setenv.h: Likewise.
48423         * lib/settime.c: Likewise.
48424         * lib/sh-quote.c: Likewise.
48425         * lib/sh-quote.h: Likewise.
48426         * lib/sig2str.c: Likewise.
48427         * lib/sig2str.h: Likewise.
48428         * lib/signal.in.h: Likewise.
48429         * lib/signbitd.c: Likewise.
48430         * lib/signbitf.c: Likewise.
48431         * lib/signbitl.c: Likewise.
48432         * lib/sigprocmask.c: Likewise.
48433         * lib/sincosl.c: Likewise.
48434         * lib/sleep.c: Likewise.
48435         * lib/sprintf.c: Likewise.
48436         * lib/sqrtl.c: Likewise.
48437         * lib/stat-time.h: Likewise.
48438         * lib/stdio--.h: Likewise.
48439         * lib/stdio-safer.h: Likewise.
48440         * lib/stdlib--.h: Likewise.
48441         * lib/stdlib-safer.h: Likewise.
48442         * lib/stdlib.in.h: Likewise.
48443         * lib/stpcpy.c: Likewise.
48444         * lib/stpncpy.c: Likewise.
48445         * lib/strchrnul.c: Likewise.
48446         * lib/strcspn.c: Likewise.
48447         * lib/strerror.c: Likewise.
48448         * lib/strftime.c: Likewise.
48449         * lib/strftime.h: Likewise.
48450         * lib/striconveh.c: Likewise.
48451         * lib/striconveh.h: Likewise.
48452         * lib/striconveha.c: Likewise.
48453         * lib/striconveha.h: Likewise.
48454         * lib/stripslash.c: Likewise.
48455         * lib/strnlen1.c: Likewise.
48456         * lib/strnlen1.h: Likewise.
48457         * lib/strtod.c: Likewise.
48458         * lib/strtoimax.c: Likewise.
48459         * lib/strtok_r.c: Likewise.
48460         * lib/strtol.c: Likewise.
48461         * lib/strtoll.c: Likewise.
48462         * lib/strtoul.c: Likewise.
48463         * lib/strtoull.c: Likewise.
48464         * lib/sysexits.in.h: Likewise.
48465         * lib/tempname.c: Likewise.
48466         * lib/tempname.h: Likewise.
48467         * lib/timespec.h: Likewise.
48468         * lib/tls.c: Likewise.
48469         * lib/tls.h: Likewise.
48470         * lib/tmpdir.c: Likewise.
48471         * lib/tmpdir.h: Likewise.
48472         * lib/tmpfile-safer.c: Likewise.
48473         * lib/tmpfile.c: Likewise.
48474         * lib/trigl.c: Likewise.
48475         * lib/trigl.h: Likewise.
48476         * lib/trim.c: Likewise.
48477         * lib/trim.h: Likewise.
48478         * lib/trunc.c: Likewise.
48479         * lib/truncf.c: Likewise.
48480         * lib/truncl.c: Likewise.
48481         * lib/tsearch.c: Likewise.
48482         * lib/unicodeio.c: Likewise.
48483         * lib/unicodeio.h: Likewise.
48484         * lib/unistd--.h: Likewise.
48485         * lib/unistd-safer.h: Likewise.
48486         * lib/unistdio/ulc-fprintf.c: Likewise.
48487         * lib/unistdio/ulc-vfprintf.c: Likewise.
48488         * lib/unlinkdir.c: Likewise.
48489         * lib/unlinkdir.h: Likewise.
48490         * lib/unlocked-io.h: Likewise.
48491         * lib/unsetenv.c: Likewise.
48492         * lib/userspec.c: Likewise.
48493         * lib/utime.c: Likewise.
48494         * lib/utimecmp.c: Likewise.
48495         * lib/utimecmp.h: Likewise.
48496         * lib/utimens.c: Likewise.
48497         * lib/verify.h: Likewise.
48498         * lib/verror.c: Likewise.
48499         * lib/verror.h: Likewise.
48500         * lib/version-etc-fsf.c: Likewise.
48501         * lib/version-etc.c: Likewise.
48502         * lib/version-etc.h: Likewise.
48503         * lib/vfprintf.c: Likewise.
48504         * lib/vprintf.c: Likewise.
48505         * lib/vsprintf.c: Likewise.
48506         * lib/w32spawn.h: Likewise.
48507         * lib/wait-process.c: Likewise.
48508         * lib/wait-process.h: Likewise.
48509         * lib/wcwidth.c: Likewise.
48510         * lib/write-any-file.c: Likewise.
48511         * lib/xalloc-die.c: Likewise.
48512         * lib/xalloc.h: Likewise.
48513         * lib/xasprintf.c: Likewise.
48514         * lib/xgetcwd.c: Likewise.
48515         * lib/xgetcwd.h: Likewise.
48516         * lib/xgetdomainname.c: Likewise.
48517         * lib/xgetdomainname.h: Likewise.
48518         * lib/xgethostname.c: Likewise.
48519         * lib/xmalloc.c: Likewise.
48520         * lib/xmalloca.c: Likewise.
48521         * lib/xmalloca.h: Likewise.
48522         * lib/xmemcoll.c: Likewise.
48523         * lib/xnanosleep.c: Likewise.
48524         * lib/xreadlink.c: Likewise.
48525         * lib/xreadlink.h: Likewise.
48526         * lib/xsetenv.c: Likewise.
48527         * lib/xsetenv.h: Likewise.
48528         * lib/xstriconv.c: Likewise.
48529         * lib/xstriconv.h: Likewise.
48530         * lib/xstrndup.c: Likewise.
48531         * lib/xstrndup.h: Likewise.
48532         * lib/xstrtod.c: Likewise.
48533         * lib/xstrtod.h: Likewise.
48534         * lib/xstrtol-error.c: Likewise.
48535         * lib/xstrtol.c: Likewise.
48536         * lib/xstrtol.h: Likewise.
48537         * lib/xtime.h: Likewise.
48538         * lib/xvasprintf.c: Likewise.
48539         * lib/xvasprintf.h: Likewise.
48540         * lib/yesno.c: Likewise.
48541         * lib/yesno.h: Likewise.
48542         * posix-modules: Likewise.
48543         * tests/test-alloca-opt.c: Likewise.
48544         * tests/test-arcfour.c: Likewise.
48545         * tests/test-arctwo.c: Likewise.
48546         * tests/test-argmatch.c: Likewise.
48547         * tests/test-argp-2.sh: Likewise.
48548         * tests/test-argp.c: Likewise.
48549         * tests/test-arpa_inet.c: Likewise.
48550         * tests/test-array_list.c: Likewise.
48551         * tests/test-array_oset.c: Likewise.
48552         * tests/test-atexit.c: Likewise.
48553         * tests/test-avltree_list.c: Likewise.
48554         * tests/test-avltree_oset.c: Likewise.
48555         * tests/test-avltreehash_list.c: Likewise.
48556         * tests/test-base64.c: Likewise.
48557         * tests/test-binary-io.c: Likewise.
48558         * tests/test-byteswap.c: Likewise.
48559         * tests/test-c-ctype.c: Likewise.
48560         * tests/test-c-strcasecmp.c: Likewise.
48561         * tests/test-c-strcasestr.c: Likewise.
48562         * tests/test-c-strncasecmp.c: Likewise.
48563         * tests/test-c-strstr.c: Likewise.
48564         * tests/test-canonicalize-lgpl.c: Likewise.
48565         * tests/test-canonicalize.c: Likewise.
48566         * tests/test-carray_list.c: Likewise.
48567         * tests/test-ceilf.c: Likewise.
48568         * tests/test-ceill.c: Likewise.
48569         * tests/test-count-one-bits.c: Likewise.
48570         * tests/test-crc.c: Likewise.
48571         * tests/test-dirname.c: Likewise.
48572         * tests/test-fbufmode.c: Likewise.
48573         * tests/test-fcntl.c: Likewise.
48574         * tests/test-fflush.c: Likewise.
48575         * tests/test-floorf.c: Likewise.
48576         * tests/test-floorl.c: Likewise.
48577         * tests/test-fopen.c: Likewise.
48578         * tests/test-fprintf-posix.c: Likewise.
48579         * tests/test-fprintf-posix.h: Likewise.
48580         * tests/test-fpurge.c: Likewise.
48581         * tests/test-freadable.c: Likewise.
48582         * tests/test-freadahead.c: Likewise.
48583         * tests/test-freading.c: Likewise.
48584         * tests/test-freopen.c: Likewise.
48585         * tests/test-frexp.c: Likewise.
48586         * tests/test-frexpl.c: Likewise.
48587         * tests/test-fseek.c: Likewise.
48588         * tests/test-fseeko.c: Likewise.
48589         * tests/test-fseterr.c: Likewise.
48590         * tests/test-fstrcmp.c: Likewise.
48591         * tests/test-ftell.c: Likewise.
48592         * tests/test-ftello.c: Likewise.
48593         * tests/test-fwritable.c: Likewise.
48594         * tests/test-fwriting.c: Likewise.
48595         * tests/test-getaddrinfo.c: Likewise.
48596         * tests/test-getpass.c: Likewise.
48597         * tests/test-gettimeofday.c: Likewise.
48598         * tests/test-hmac-md5.c: Likewise.
48599         * tests/test-hmac-sha1.c: Likewise.
48600         * tests/test-iconv.c: Likewise.
48601         * tests/test-iconvme.c: Likewise.
48602         * tests/test-inttypes.c: Likewise.
48603         * tests/test-isnan.c: Likewise.
48604         * tests/test-isnanf.c: Likewise.
48605         * tests/test-isnanl-nolibm.c: Likewise.
48606         * tests/test-isnanl.c: Likewise.
48607         * tests/test-isnanl.h: Likewise.
48608         * tests/test-ldexpl.c: Likewise.
48609         * tests/test-linked_list.c: Likewise.
48610         * tests/test-linkedhash_list.c: Likewise.
48611         * tests/test-locale.c: Likewise.
48612         * tests/test-localename.c: Likewise.
48613         * tests/test-lock.c: Likewise.
48614         * tests/test-lseek.c: Likewise.
48615         * tests/test-malloca.c: Likewise.
48616         * tests/test-math.c: Likewise.
48617         * tests/test-mbscasecmp.c: Likewise.
48618         * tests/test-mbscasestr1.c: Likewise.
48619         * tests/test-mbscasestr2.c: Likewise.
48620         * tests/test-mbscasestr3.c: Likewise.
48621         * tests/test-mbscasestr4.c: Likewise.
48622         * tests/test-mbschr.c: Likewise.
48623         * tests/test-mbscspn.c: Likewise.
48624         * tests/test-mbsncasecmp.c: Likewise.
48625         * tests/test-mbspbrk.c: Likewise.
48626         * tests/test-mbspcasecmp.c: Likewise.
48627         * tests/test-mbsrchr.c: Likewise.
48628         * tests/test-mbsspn.c: Likewise.
48629         * tests/test-mbsstr1.c: Likewise.
48630         * tests/test-mbsstr2.c: Likewise.
48631         * tests/test-mbsstr3.c: Likewise.
48632         * tests/test-md5.c: Likewise.
48633         * tests/test-memmem.c: Likewise.
48634         * tests/test-netinet_in.c: Likewise.
48635         * tests/test-open.c: Likewise.
48636         * tests/test-printf-frexp.c: Likewise.
48637         * tests/test-printf-frexpl.c: Likewise.
48638         * tests/test-printf-posix.c: Likewise.
48639         * tests/test-printf-posix.h: Likewise.
48640         * tests/test-rbtree_list.c: Likewise.
48641         * tests/test-rbtree_oset.c: Likewise.
48642         * tests/test-rbtreehash_list.c: Likewise.
48643         * tests/test-read-file.c: Likewise.
48644         * tests/test-rijndael.c: Likewise.
48645         * tests/test-search.c: Likewise.
48646         * tests/test-signbit.c: Likewise.
48647         * tests/test-sleep.c: Likewise.
48648         * tests/test-snprintf-posix.c: Likewise.
48649         * tests/test-snprintf-posix.h: Likewise.
48650         * tests/test-snprintf.c: Likewise.
48651         * tests/test-sprintf-posix.c: Likewise.
48652         * tests/test-sprintf-posix.h: Likewise.
48653         * tests/test-stat-time.c: Likewise.
48654         * tests/test-stdbool.c: Likewise.
48655         * tests/test-stdint.c: Likewise.
48656         * tests/test-stdio.c: Likewise.
48657         * tests/test-stdlib.c: Likewise.
48658         * tests/test-stpncpy.c: Likewise.
48659         * tests/test-strcasestr.c: Likewise.
48660         * tests/test-striconv.c: Likewise.
48661         * tests/test-striconveh.c: Likewise.
48662         * tests/test-striconveha.c: Likewise.
48663         * tests/test-string.c: Likewise.
48664         * tests/test-sys_select.c: Likewise.
48665         * tests/test-sys_socket.c: Likewise.
48666         * tests/test-sys_stat.c: Likewise.
48667         * tests/test-sys_time.c: Likewise.
48668         * tests/test-sysexits.c: Likewise.
48669         * tests/test-time.c: Likewise.
48670         * tests/test-tls.c: Likewise.
48671         * tests/test-trunc.c: Likewise.
48672         * tests/test-truncf.c: Likewise.
48673         * tests/test-truncl.c: Likewise.
48674         * tests/test-unistd.c: Likewise.
48675         * tests/test-vasnprintf-posix.c: Likewise.
48676         * tests/test-vasnprintf-posix2.c: Likewise.
48677         * tests/test-vasnprintf.c: Likewise.
48678         * tests/test-vasprintf-posix.c: Likewise.
48679         * tests/test-vasprintf.c: Likewise.
48680         * tests/test-verify.c: Likewise.
48681         * tests/test-vfprintf-posix.c: Likewise.
48682         * tests/test-vprintf-posix.c: Likewise.
48683         * tests/test-vsnprintf-posix.c: Likewise.
48684         * tests/test-vsnprintf.c: Likewise.
48685         * tests/test-vsprintf-posix.c: Likewise.
48686         * tests/test-wchar.c: Likewise.
48687         * tests/test-wctype.c: Likewise.
48688         * tests/test-wcwidth.c: Likewise.
48689         * tests/test-xstrtol.c: Likewise.
48690         * tests/test-xvasprintf.c: Likewise.
48691         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
48692         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
48693         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48694         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48695         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48696         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
48697         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48698         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48699         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48700         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
48701         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48702         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48703         * tests/uniname/test-uninames.c: Likewise.
48704         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
48705         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
48706         * tests/unistdio/test-u16-printf1.h: Likewise.
48707         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
48708         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
48709         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
48710         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
48711         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
48712         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
48713         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
48714         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
48715         * tests/unistdio/test-u32-printf1.h: Likewise.
48716         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
48717         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
48718         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
48719         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
48720         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
48721         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
48722         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
48723         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
48724         * tests/unistdio/test-u8-printf1.h: Likewise.
48725         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
48726         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
48727         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
48728         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
48729         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
48730         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
48731         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
48732         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
48733         * tests/unistdio/test-ulc-printf1.h: Likewise.
48734         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
48735         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
48736         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
48737         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
48738         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
48739         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
48740         * tests/uniwidth/test-u16-strwidth.c: Likewise.
48741         * tests/uniwidth/test-u16-width.c: Likewise.
48742         * tests/uniwidth/test-u32-strwidth.c: Likewise.
48743         * tests/uniwidth/test-u32-width.c: Likewise.
48744         * tests/uniwidth/test-u8-strwidth.c: Likewise.
48745         * tests/uniwidth/test-u8-width.c: Likewise.
48746         * tests/uniwidth/test-uc_width.c: Likewise.
48747         * config/srclist-update: Likewise.
48748         (fixlicense): Update to GPLv3+.
48749
48750         Change copyright notice from LGPLv2.1+ to LGPLv3+.
48751         * tests/test-tsearch.c: Change copyright notice.
48752
48753         Change copyright notice from LGPLv2.0+ to LGPLv3+.
48754         * lib/c-strcaseeq.h: Change copyright notice.
48755         * lib/streq.h: Likewise.
48756         * lib/uniconv.h: Likewise.
48757         * lib/uniconv/u-conv-from-enc.h: Likewise.
48758         * lib/uniconv/u-conv-to-enc.h: Likewise.
48759         * lib/uniconv/u-strconv-from-enc.h: Likewise.
48760         * lib/uniconv/u-strconv-to-enc.h: Likewise.
48761         * lib/uniconv/u16-conv-from-enc.c: Likewise.
48762         * lib/uniconv/u16-conv-to-enc.c: Likewise.
48763         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
48764         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
48765         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
48766         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
48767         * lib/uniconv/u32-conv-from-enc.c: Likewise.
48768         * lib/uniconv/u32-conv-to-enc.c: Likewise.
48769         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
48770         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
48771         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
48772         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
48773         * lib/uniconv/u8-conv-from-enc.c: Likewise.
48774         * lib/uniconv/u8-conv-to-enc.c: Likewise.
48775         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
48776         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
48777         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
48778         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
48779         * lib/uniname.h: Likewise.
48780         * lib/uniname/uniname.c: Likewise.
48781         * lib/unistdio.h: Likewise.
48782         * lib/unistdio/u-asnprintf.h: Likewise.
48783         * lib/unistdio/u-asprintf.h: Likewise.
48784         * lib/unistdio/u-printf-args.c: Likewise.
48785         * lib/unistdio/u-printf-args.h: Likewise.
48786         * lib/unistdio/u-printf-parse.h: Likewise.
48787         * lib/unistdio/u-snprintf.h: Likewise.
48788         * lib/unistdio/u-sprintf.h: Likewise.
48789         * lib/unistdio/u-vasprintf.h: Likewise.
48790         * lib/unistdio/u-vsnprintf.h: Likewise.
48791         * lib/unistdio/u-vsprintf.h: Likewise.
48792         * lib/unistdio/u16-asnprintf.c: Likewise.
48793         * lib/unistdio/u16-asprintf.c: Likewise.
48794         * lib/unistdio/u16-printf-parse.c: Likewise.
48795         * lib/unistdio/u16-snprintf.c: Likewise.
48796         * lib/unistdio/u16-sprintf.c: Likewise.
48797         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
48798         * lib/unistdio/u16-u16-asprintf.c: Likewise.
48799         * lib/unistdio/u16-u16-snprintf.c: Likewise.
48800         * lib/unistdio/u16-u16-sprintf.c: Likewise.
48801         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
48802         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
48803         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
48804         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
48805         * lib/unistdio/u16-vasnprintf.c: Likewise.
48806         * lib/unistdio/u16-vasprintf.c: Likewise.
48807         * lib/unistdio/u16-vsnprintf.c: Likewise.
48808         * lib/unistdio/u16-vsprintf.c: Likewise.
48809         * lib/unistdio/u32-asnprintf.c: Likewise.
48810         * lib/unistdio/u32-asprintf.c: Likewise.
48811         * lib/unistdio/u32-printf-parse.c: Likewise.
48812         * lib/unistdio/u32-snprintf.c: Likewise.
48813         * lib/unistdio/u32-sprintf.c: Likewise.
48814         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
48815         * lib/unistdio/u32-u32-asprintf.c: Likewise.
48816         * lib/unistdio/u32-u32-snprintf.c: Likewise.
48817         * lib/unistdio/u32-u32-sprintf.c: Likewise.
48818         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
48819         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
48820         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
48821         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
48822         * lib/unistdio/u32-vasnprintf.c: Likewise.
48823         * lib/unistdio/u32-vasprintf.c: Likewise.
48824         * lib/unistdio/u32-vsnprintf.c: Likewise.
48825         * lib/unistdio/u32-vsprintf.c: Likewise.
48826         * lib/unistdio/u8-asnprintf.c: Likewise.
48827         * lib/unistdio/u8-asprintf.c: Likewise.
48828         * lib/unistdio/u8-printf-parse.c: Likewise.
48829         * lib/unistdio/u8-snprintf.c: Likewise.
48830         * lib/unistdio/u8-sprintf.c: Likewise.
48831         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
48832         * lib/unistdio/u8-u8-asprintf.c: Likewise.
48833         * lib/unistdio/u8-u8-snprintf.c: Likewise.
48834         * lib/unistdio/u8-u8-sprintf.c: Likewise.
48835         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
48836         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
48837         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
48838         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
48839         * lib/unistdio/u8-vasnprintf.c: Likewise.
48840         * lib/unistdio/u8-vasprintf.c: Likewise.
48841         * lib/unistdio/u8-vsnprintf.c: Likewise.
48842         * lib/unistdio/u8-vsprintf.c: Likewise.
48843         * lib/unistdio/ulc-asnprintf.c: Likewise.
48844         * lib/unistdio/ulc-asprintf.c: Likewise.
48845         * lib/unistdio/ulc-printf-parse.c: Likewise.
48846         * lib/unistdio/ulc-snprintf.c: Likewise.
48847         * lib/unistdio/ulc-sprintf.c: Likewise.
48848         * lib/unistdio/ulc-vasnprintf.c: Likewise.
48849         * lib/unistdio/ulc-vasprintf.c: Likewise.
48850         * lib/unistdio/ulc-vsnprintf.c: Likewise.
48851         * lib/unistdio/ulc-vsprintf.c: Likewise.
48852         * lib/unistr.h: Likewise.
48853         * lib/unistr/u-cpy-alloc.h: Likewise.
48854         * lib/unistr/u-cpy.h: Likewise.
48855         * lib/unistr/u-endswith.h: Likewise.
48856         * lib/unistr/u-move.h: Likewise.
48857         * lib/unistr/u-set.h: Likewise.
48858         * lib/unistr/u-startswith.h: Likewise.
48859         * lib/unistr/u-stpcpy.h: Likewise.
48860         * lib/unistr/u-stpncpy.h: Likewise.
48861         * lib/unistr/u-strcat.h: Likewise.
48862         * lib/unistr/u-strcpy.h: Likewise.
48863         * lib/unistr/u-strcspn.h: Likewise.
48864         * lib/unistr/u-strdup.h: Likewise.
48865         * lib/unistr/u-strlen.h: Likewise.
48866         * lib/unistr/u-strncat.h: Likewise.
48867         * lib/unistr/u-strncpy.h: Likewise.
48868         * lib/unistr/u-strnlen.h: Likewise.
48869         * lib/unistr/u-strpbrk.h: Likewise.
48870         * lib/unistr/u-strspn.h: Likewise.
48871         * lib/unistr/u-strstr.h: Likewise.
48872         * lib/unistr/u-strtok.h: Likewise.
48873         * lib/unistr/u16-check.c: Likewise.
48874         * lib/unistr/u16-chr.c: Likewise.
48875         * lib/unistr/u16-cmp.c: Likewise.
48876         * lib/unistr/u16-cpy-alloc.c: Likewise.
48877         * lib/unistr/u16-cpy.c: Likewise.
48878         * lib/unistr/u16-endswith.c: Likewise.
48879         * lib/unistr/u16-mblen.c: Likewise.
48880         * lib/unistr/u16-mbsnlen.c: Likewise.
48881         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48882         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48883         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48884         * lib/unistr/u16-mbtouc.c: Likewise.
48885         * lib/unistr/u16-mbtoucr.c: Likewise.
48886         * lib/unistr/u16-move.c: Likewise.
48887         * lib/unistr/u16-next.c: Likewise.
48888         * lib/unistr/u16-prev.c: Likewise.
48889         * lib/unistr/u16-set.c: Likewise.
48890         * lib/unistr/u16-startswith.c: Likewise.
48891         * lib/unistr/u16-stpcpy.c: Likewise.
48892         * lib/unistr/u16-stpncpy.c: Likewise.
48893         * lib/unistr/u16-strcat.c: Likewise.
48894         * lib/unistr/u16-strchr.c: Likewise.
48895         * lib/unistr/u16-strcmp.c: Likewise.
48896         * lib/unistr/u16-strcpy.c: Likewise.
48897         * lib/unistr/u16-strcspn.c: Likewise.
48898         * lib/unistr/u16-strdup.c: Likewise.
48899         * lib/unistr/u16-strlen.c: Likewise.
48900         * lib/unistr/u16-strmblen.c: Likewise.
48901         * lib/unistr/u16-strmbtouc.c: Likewise.
48902         * lib/unistr/u16-strncat.c: Likewise.
48903         * lib/unistr/u16-strncmp.c: Likewise.
48904         * lib/unistr/u16-strncpy.c: Likewise.
48905         * lib/unistr/u16-strnlen.c: Likewise.
48906         * lib/unistr/u16-strpbrk.c: Likewise.
48907         * lib/unistr/u16-strrchr.c: Likewise.
48908         * lib/unistr/u16-strspn.c: Likewise.
48909         * lib/unistr/u16-strstr.c: Likewise.
48910         * lib/unistr/u16-strtok.c: Likewise.
48911         * lib/unistr/u16-to-u32.c: Likewise.
48912         * lib/unistr/u16-to-u8.c: Likewise.
48913         * lib/unistr/u16-uctomb-aux.c: Likewise.
48914         * lib/unistr/u16-uctomb.c: Likewise.
48915         * lib/unistr/u32-check.c: Likewise.
48916         * lib/unistr/u32-chr.c: Likewise.
48917         * lib/unistr/u32-cmp.c: Likewise.
48918         * lib/unistr/u32-cpy-alloc.c: Likewise.
48919         * lib/unistr/u32-cpy.c: Likewise.
48920         * lib/unistr/u32-endswith.c: Likewise.
48921         * lib/unistr/u32-mblen.c: Likewise.
48922         * lib/unistr/u32-mbsnlen.c: Likewise.
48923         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48924         * lib/unistr/u32-mbtouc.c: Likewise.
48925         * lib/unistr/u32-mbtoucr.c: Likewise.
48926         * lib/unistr/u32-move.c: Likewise.
48927         * lib/unistr/u32-next.c: Likewise.
48928         * lib/unistr/u32-prev.c: Likewise.
48929         * lib/unistr/u32-set.c: Likewise.
48930         * lib/unistr/u32-startswith.c: Likewise.
48931         * lib/unistr/u32-stpcpy.c: Likewise.
48932         * lib/unistr/u32-stpncpy.c: Likewise.
48933         * lib/unistr/u32-strcat.c: Likewise.
48934         * lib/unistr/u32-strchr.c: Likewise.
48935         * lib/unistr/u32-strcmp.c: Likewise.
48936         * lib/unistr/u32-strcpy.c: Likewise.
48937         * lib/unistr/u32-strcspn.c: Likewise.
48938         * lib/unistr/u32-strdup.c: Likewise.
48939         * lib/unistr/u32-strlen.c: Likewise.
48940         * lib/unistr/u32-strmblen.c: Likewise.
48941         * lib/unistr/u32-strmbtouc.c: Likewise.
48942         * lib/unistr/u32-strncat.c: Likewise.
48943         * lib/unistr/u32-strncmp.c: Likewise.
48944         * lib/unistr/u32-strncpy.c: Likewise.
48945         * lib/unistr/u32-strnlen.c: Likewise.
48946         * lib/unistr/u32-strpbrk.c: Likewise.
48947         * lib/unistr/u32-strrchr.c: Likewise.
48948         * lib/unistr/u32-strspn.c: Likewise.
48949         * lib/unistr/u32-strstr.c: Likewise.
48950         * lib/unistr/u32-strtok.c: Likewise.
48951         * lib/unistr/u32-to-u16.c: Likewise.
48952         * lib/unistr/u32-to-u8.c: Likewise.
48953         * lib/unistr/u32-uctomb.c: Likewise.
48954         * lib/unistr/u8-check.c: Likewise.
48955         * lib/unistr/u8-chr.c: Likewise.
48956         * lib/unistr/u8-cmp.c: Likewise.
48957         * lib/unistr/u8-cpy-alloc.c: Likewise.
48958         * lib/unistr/u8-cpy.c: Likewise.
48959         * lib/unistr/u8-endswith.c: Likewise.
48960         * lib/unistr/u8-mblen.c: Likewise.
48961         * lib/unistr/u8-mbsnlen.c: Likewise.
48962         * lib/unistr/u8-mbtouc-aux.c: Likewise.
48963         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48964         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48965         * lib/unistr/u8-mbtouc.c: Likewise.
48966         * lib/unistr/u8-mbtoucr.c: Likewise.
48967         * lib/unistr/u8-move.c: Likewise.
48968         * lib/unistr/u8-next.c: Likewise.
48969         * lib/unistr/u8-prev.c: Likewise.
48970         * lib/unistr/u8-set.c: Likewise.
48971         * lib/unistr/u8-startswith.c: Likewise.
48972         * lib/unistr/u8-stpcpy.c: Likewise.
48973         * lib/unistr/u8-stpncpy.c: Likewise.
48974         * lib/unistr/u8-strcat.c: Likewise.
48975         * lib/unistr/u8-strchr.c: Likewise.
48976         * lib/unistr/u8-strcmp.c: Likewise.
48977         * lib/unistr/u8-strcpy.c: Likewise.
48978         * lib/unistr/u8-strcspn.c: Likewise.
48979         * lib/unistr/u8-strdup.c: Likewise.
48980         * lib/unistr/u8-strlen.c: Likewise.
48981         * lib/unistr/u8-strmblen.c: Likewise.
48982         * lib/unistr/u8-strmbtouc.c: Likewise.
48983         * lib/unistr/u8-strncat.c: Likewise.
48984         * lib/unistr/u8-strncmp.c: Likewise.
48985         * lib/unistr/u8-strncpy.c: Likewise.
48986         * lib/unistr/u8-strnlen.c: Likewise.
48987         * lib/unistr/u8-strpbrk.c: Likewise.
48988         * lib/unistr/u8-strrchr.c: Likewise.
48989         * lib/unistr/u8-strspn.c: Likewise.
48990         * lib/unistr/u8-strstr.c: Likewise.
48991         * lib/unistr/u8-strtok.c: Likewise.
48992         * lib/unistr/u8-to-u16.c: Likewise.
48993         * lib/unistr/u8-to-u32.c: Likewise.
48994         * lib/unistr/u8-uctomb-aux.c: Likewise.
48995         * lib/unistr/u8-uctomb.c: Likewise.
48996         * lib/unitypes.h: Likewise.
48997         * lib/uniwidth.h: Likewise.
48998         * lib/uniwidth/cjk.h: Likewise.
48999         * lib/uniwidth/u16-strwidth.c: Likewise.
49000         * lib/uniwidth/u16-width.c: Likewise.
49001         * lib/uniwidth/u32-strwidth.c: Likewise.
49002         * lib/uniwidth/u32-width.c: Likewise.
49003         * lib/uniwidth/u8-strwidth.c: Likewise.
49004         * lib/uniwidth/u8-width.c: Likewise.
49005         * lib/uniwidth/width.c: Likewise.
49006
49007 2007-10-07  Bruno Haible  <bruno@clisp.org>
49008
49009         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
49010         The file is still under LGPL (see modules/inttypes).
49011
49012 2007-10-06  Bruno Haible  <bruno@clisp.org>
49013
49014         * modules/trunc (Dependencies): Add 'extensions'.
49015         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
49016         Reported by Ben Pfaff <blp@gnu.org>.
49017
49018 2007-10-06  Bruno Haible  <bruno@clisp.org>
49019
49020         * modules/freopen-tests: New file.
49021         * tests/test-freopen.c: New file.
49022
49023         * modules/fopen-tests: New file.
49024         * tests/test-fopen.c: New file.
49025
49026         * modules/fopen: New file.
49027         * lib/fopen.c: New file.
49028         * m4/fopen.m4: New file.
49029         * modules/freopen: New file.
49030         * lib/freopen.c: New file.
49031         * m4/freopen.m4: New file.
49032         * lib/stdio.in.h (fopen, freopen): New declarations.
49033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
49034         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49035         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
49036         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
49037         * doc/functions/fopen.texi: Mention the 'fopen' module.
49038         * doc/functions/freopen.texi: Mention the 'freopen' module.
49039
49040 2007-10-06  Bruno Haible  <bruno@clisp.org>
49041
49042         * modules/open-tests: New file.
49043         * tests/test-open.c: New file.
49044
49045         * modules/open: New file.
49046         * lib/open.c: New file.
49047         * m4/open.m4: New file.
49048         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
49049         lib/open.c does.
49050         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
49051         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
49052         macros.
49053         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
49054         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
49055         REPLACE_OPEN.
49056         * doc/functions/open.texi: Mention the 'open' module.
49057
49058 2007-10-04  Bruno Haible  <bruno@clisp.org>
49059
49060         * modules/ceill-tests: New file.
49061         * tests/test-ceill.c: New file.
49062
49063         * modules/ceill: New file.
49064         * lib/ceill.c: Replace entire file.
49065         * m4/ceill.m4: New file.
49066         * lib/math.in.h (ceill): Replace declaration.
49067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
49068         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
49069         * doc/functions/ceill.texi: Mention the 'ceill' module.
49070         * modules/mathl (Files): Remove lib/ceill.c.
49071         (Depends-on): Add ceill.
49072
49073 2007-10-04  Bruno Haible  <bruno@clisp.org>
49074
49075         * modules/ceilf-tests: New file.
49076         * tests/test-ceilf.c: New file.
49077
49078         * modules/ceilf: New file.
49079         * lib/ceil.c: New file.
49080         * lib/ceilf.c: New file.
49081         * m4/ceilf.m4: New file.
49082         * lib/math.in.h (ceilf): New declaration.
49083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
49084         HAVE_DECL_CEILF.
49085         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
49086         HAVE_DECL_CEILF.
49087         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
49088
49089 2007-10-04  Bruno Haible  <bruno@clisp.org>
49090
49091         * modules/floorl-tests: New file.
49092         * tests/test-floorl.c: New file.
49093
49094         * modules/floorl: New file.
49095         * lib/floorl.c: Replace entire file.
49096         * m4/floorl.m4: New file.
49097         * lib/math.in.h (floorl): Replace declaration.
49098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
49099         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
49100         * doc/functions/floorl.texi: Mention the 'floorl' module.
49101         * modules/mathl (Files): Remove lib/floorl.c.
49102         (Depends-on): Add floorl.
49103
49104 2007-10-04  Bruno Haible  <bruno@clisp.org>
49105
49106         * modules/floorf-tests: New file.
49107         * tests/test-floorf.c: New file.
49108
49109         * modules/floorf: New file.
49110         * lib/floor.c: New file.
49111         * lib/floorf.c: New file.
49112         * m4/floorf.m4: New file.
49113         * lib/math.in.h (floorf): New declaration.
49114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
49115         HAVE_DECL_FLOORF.
49116         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
49117         HAVE_DECL_FLOORF.
49118         * doc/functions/floorf.texi: Mention the 'floorf' module.
49119
49120 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
49121             Bruno Haible  <bruno@clisp.org>
49122
49123         Advertise for the Git server instead of the CVS server.
49124         * doc/gnulib-intro.texi (Steady Development): Mention the Git
49125         repository instead of the CVS one.
49126         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
49127         about all VCS systems generically.
49128         * doc/gnulib.texi (Introduction): Capitalize `Git'.
49129
49130 2007-10-04  Bruno Haible  <bruno@clisp.org>
49131
49132         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
49133         means.
49134         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
49135
49136 2007-10-04  Bruno Haible  <bruno@clisp.org>
49137
49138         * modules/truncl-tests: New file.
49139         * tests/test-truncl.c: New file.
49140
49141         * modules/truncl: New file.
49142         * lib/truncl.c: New file.
49143         * m4/truncl.m4: New file.
49144         * lib/math.in.h (truncl): New declaration.
49145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
49146         HAVE_DECL_TRUNCL.
49147         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
49148         HAVE_DECL_TRUNCL.
49149         * doc/functions/truncl.texi: Mention the 'truncl' module.
49150
49151 2007-10-04  Bruno Haible  <bruno@clisp.org>
49152
49153         * modules/truncf-tests: New file.
49154         * tests/test-truncf.c: New file.
49155
49156         * modules/truncf: New file.
49157         * lib/trunc.c: Make paramerizable through USE_* macros.
49158         * lib/truncf.c: New file.
49159         * m4/truncf.m4: New file.
49160         * lib/math.in.h (truncf): New declaration.
49161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
49162         HAVE_DECL_TRUNCF.
49163         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
49164         HAVE_DECL_TRUNCF.
49165         * doc/functions/truncf.texi: Mention the 'truncf' module.
49166
49167 2007-10-03  Bruno Haible  <bruno@clisp.org>
49168
49169         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49170         augmentation also for tests modules.
49171         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
49172         * modules/atexit-tests (Makefile.am): Likewise.
49173         * modules/binary-io-tests (Makefile.am): Likewise.
49174         * modules/c-strcase-tests (Makefile.am): Likewise.
49175         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
49176         * modules/canonicalize-tests (Makefile.am): Likewise.
49177         * modules/closein-tests (Makefile.am): Likewise.
49178         * modules/fprintf-posix-tests (Makefile.am): Likewise.
49179         * modules/freadahead-tests (Makefile.am): Likewise.
49180         * modules/fseek-tests (Makefile.am): Likewise.
49181         * modules/fseeko-tests (Makefile.am): Likewise.
49182         * modules/ftell-tests (Makefile.am): Likewise.
49183         * modules/ftello-tests (Makefile.am): Likewise.
49184         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
49185         * modules/isnanl-tests (Makefile.am): Likewise.
49186         * modules/lseek-tests (Makefile.am): Likewise.
49187         * modules/mbscasecmp-tests (Makefile.am): Likewise.
49188         * modules/mbscasestr-tests (Makefile.am): Likewise.
49189         * modules/mbschr-tests (Makefile.am): Likewise.
49190         * modules/mbscspn-tests (Makefile.am): Likewise.
49191         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
49192         * modules/mbspbrk-tests (Makefile.am): Likewise.
49193         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
49194         * modules/mbsrchr-tests (Makefile.am): Likewise.
49195         * modules/mbsspn-tests (Makefile.am): Likewise.
49196         * modules/mbsstr-tests (Makefile.am): Likewise.
49197         * modules/printf-posix-tests (Makefile.am): Likewise.
49198         * modules/snprintf-posix-tests (Makefile.am): Likewise.
49199         * modules/sprintf-posix-tests (Makefile.am): Likewise.
49200         * modules/tsearch-tests (Makefile.am): Likewise.
49201         * modules/uniname/uniname-tests (Makefile.am): Likewise.
49202         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
49203         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
49204         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
49205         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
49206         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
49207         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
49208         * modules/vprintf-posix-tests (Makefile.am): Likewise.
49209         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
49210         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
49211         * modules/xstrtoimax-tests (Makefile.am): Likewise.
49212         * modules/xstrtol-tests (Makefile.am): Likewise.
49213         * modules/xstrtoumax-tests (Makefile.am): Likewise.
49214         * modules/yesno-tests (Makefile.am): Likewise.
49215
49216 2007-10-03  Bruno Haible  <bruno@clisp.org>
49217
49218         * modules/trunc-tests: New file.
49219         * tests/test-trunc.c: New file.
49220
49221         * modules/trunc: New file.
49222         * lib/trunc.c: New file.
49223         * m4/trunc.m4: New file.
49224         * lib/math.in.h (trunc): New declaration.
49225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
49226         HAVE_DECL_TRUNC.
49227         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
49228         HAVE_DECL_TRUNC.
49229         * doc/functions/trunc.texi: Mention the 'trunc' module.
49230
49231 2007-10-03  Bruno Haible  <bruno@clisp.org>
49232
49233         * tests/test-fpending.c: New file, mostly copied
49234         from coreutils/lib/t-fpending.c.
49235         * modules/fpending-tests: New file.
49236
49237 2007-10-03  Bruno Haible  <bruno@clisp.org>
49238
49239         Port the stdio extensions to QNX (untested).
49240         * lib/fseterr.c (fseterr): Add support for QNX.
49241         * lib/fbufmode.c (fbufmode): Likewise.
49242         * lib/freadable.c (freadable): Likewise.
49243         * lib/fwritable.c (fwritable): Likewise.
49244         * lib/freading.c (freading): Likewise.
49245         * lib/fwriting.c (fwriting): Likewise.
49246         * lib/freadahead.c (freadahed): Likewise.
49247         * lib/fpurge.c (fpurge): Likewise.
49248         * lib/fseeko.c (rpl_fseeko): Likewise.
49249
49250 2007-10-03  Bruno Haible  <bruno@clisp.org>
49251             Jim Meyering  <jim@meyering.net>
49252             Eric Blake  <ebb9@byu.net>
49253
49254         * doc/relocatable.texi: Use @command instead of @program.
49255
49256 2007-10-02  Jim Meyering  <jim@meyering.net>
49257
49258         Perform one more "_.h" -> ".in.h" substitution.
49259         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
49260         instead of unistd_.h here, too.
49261
49262 2007-10-01  Bruno Haible  <bruno@clisp.org>
49263
49264         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
49265         Needed for the alloca-opt module.
49266
49267 2007-09-30  Bruno Haible  <bruno@clisp.org>
49268
49269         * lib/alloca.in.h: Renamed from lib/alloca_.h.
49270         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
49271         alloca_.h.
49272         * lib/argz.in.h: Renamed from lib/argz_.h.
49273         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
49274         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
49275         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
49276         byteswap_.h.
49277         * lib/dirent.in.h: Renamed from lib/dirent_.h.
49278         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
49279         dirent_.h.
49280         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
49281         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
49282         fcntl_.h.
49283         * lib/float.in.h: Renamed from lib/float_.h.
49284         * modules/float (Files, Makefile.am): Use float.in.h instead of
49285         float_.h.
49286         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
49287         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
49288         fnmatch_.h.
49289         * lib/getopt.in.h: Renamed from lib/getopt_.h.
49290         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
49291         getopt_.h.
49292         * lib/glob.in.h: Renamed from lib/glob_.h.
49293         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
49294         * lib/iconv.in.h: Renamed from lib/iconv_.h.
49295         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
49296         iconv_.h.
49297         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
49298         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
49299         inttypes_.h.
49300         * lib/locale.in.h: Renamed from lib/locale_.h.
49301         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
49302         locale_.h.
49303         * lib/math.in.h: Renamed from lib/math_.h.
49304         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
49305         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
49306         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
49307         of netinet_in_.h. Add dependency.
49308         * lib/poll.in.h: Renamed from lib/poll_.h.
49309         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
49310         * lib/search.in.h: Renamed from lib/search_.h.
49311         * modules/search (Files, Makefile.am): Use search.in.h instead of
49312         search_.h.
49313         * lib/signal.in.h: Renamed from lib/signal_.h.
49314         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
49315         _signal.h.
49316         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
49317         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
49318         stdbool_.h.
49319         * lib/stdint.in.h: Renamed from lib/stdint_.h.
49320         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
49321         stdint_.h.
49322         * lib/stdio.in.h: Renamed from lib/stdio_.h.
49323         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
49324         stdio_.h.
49325         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
49326         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
49327         stdlib_.h.
49328         * lib/string.in.h: Renamed from lib/string_.h.
49329         * modules/string (Files, Makefile.am): Use string.in.h instead of
49330         string_.h.
49331         * doc/gnulib-tool.texi (Initial import): Update.
49332         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
49333         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
49334         of sys_select_.h. Add dependency.
49335         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
49336         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
49337         of sys_socket_.h.
49338         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
49339         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
49340         sys_stat_.h.
49341         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
49342         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
49343         sys_time_.h.
49344         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
49345         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
49346         sysexits_.h.
49347         * lib/time.in.h: Renamed from lib/time_.h.
49348         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
49349         * lib/unistd.in.h: Renamed from lib/unistd_.h.
49350         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
49351         unistd_.h.
49352         * lib/wchar.in.h: Renamed from lib/wchar_.h.
49353         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
49354         wchar_.h.
49355         * lib/wctype.in.h: Renamed from lib/wctype_.h.
49356         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
49357         wctype_.h.
49358         * build-aux/bootstrap (slurp): Update.
49359         * lib/.cppi-disable: Update.
49360
49361 2007-09-30  Bruno Haible  <bruno@clisp.org>
49362
49363         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
49364         Needed on BeOS.
49365
49366 2007-09-30  Bruno Haible  <bruno@clisp.org>
49367
49368         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
49369
49370 2007-09-29  Bruno Haible  <bruno@clisp.org>
49371
49372         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
49373
49374 2007-09-29  Bruno Haible  <bruno@clisp.org>
49375
49376         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
49377         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
49378         * build-aux/install-reloc: Compile also areadlink.c.
49379         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
49380
49381 2007-09-29  Bruno Haible  <bruno@clisp.org>
49382
49383         * gnulib-tool (func_emit_initmacro_done): Indentation.
49384
49385 2007-09-29  Bruno Haible  <bruno@clisp.org>
49386
49387         * README: Add CVS checkout update instructions.
49388         Info from Bob Proulx <bob@proulx.com>.
49389
49390 2007-09-28  Eric Blake  <ebb9@byu.net>
49391
49392         Provide move-if-change.
49393         * build-aux/move-if-change: New file, based on best practice
49394         rather than any canonical upstream location.
49395
49396 2007-09-28  Jim Meyering  <jim@meyering.net>
49397
49398         Fix canonicalize loop-detection corner case.
49399         Do not attempt to stat the symlink values stored via seen_triple.
49400         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
49401         on linux-2.6.18, (but not 2.6.22).
49402         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
49403         triple_compare.  The former compares dev,ino,filename, while the latter
49404         would actually stat dirname(filename) when dev and ino were equal.
49405         * lib/hash-triple.c: Install <string.h>.
49406         (STREQ): Define.
49407         (triple_compare_ino_str): New function.
49408         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
49409
49410 2007-09-28  Eric Blake  <ebb9@byu.net>
49411
49412         Enforce that AC_REPLACE_FUNCS files exist.
49413         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
49414         override check for typos.
49415
49416         Fix test-closein on Solaris 10.
49417         * tests/test-closein.c (main): Don't assume stdin can be inherited
49418         closed on all systems.
49419         * tests/test-closein.sh: Likewise.
49420         Reported by Piotr Tarnowski.
49421
49422 2007-09-28  Jim Meyering  <jim@meyering.net>
49423
49424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
49425
49426 2007-09-27  Jim Meyering  <jim@meyering.net>
49427
49428         canonicalize: Avoid a false-positive cycle failure.
49429         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
49430         Sort.  Remove cycle-check.
49431         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
49432         not cycle-check.h.
49433         (seen_triple): New function.
49434         (canonicalize_filename_mode): Use it instead of cycle-check.
49435         * tests/test-canonicalize.c: Add a test for this bug.
49436         * tests/test-canonicalize.sh: Set up and run the test.
49437
49438         New module, file-set, from coreutils.
49439         * modules/file-set: Define it.
49440         * lib/file-set.c, lib/file-set.h: Implement.
49441
49442         New module, hash-triple, from coreutils.
49443         * modules/hash-triple: Define it.
49444         * lib/hash-triple.c, lib/hash-triple.h: Implement.
49445
49446 2007-09-25  Eric Blake  <ebb9@byu.net>
49447
49448         Fix strerror on Interix.
49449         * lib/string_.h (strerror): Declare replacement.
49450         * doc/functions/strerror.texi (strerror): Document the Interix
49451         shortcoming.
49452         * modules/string (Makefile.am): Support new hooks.
49453         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
49454         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
49455         gl_FUNC_STRERROR_SEPARATE.
49456         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
49457         * lib/strerror.c (rpl_strerror): Provide replacement.
49458         * modules/strerror (Depends-on): Add string.
49459         (configure.ac): Detect use of module.
49460         * tests/test-strerror.c: New file.
49461         * modules/strerror-tests: New test module.
49462         * modules/argp (Depends-on): Add strerror.
49463         * modules/error (Depends-on): Likewise.
49464         Reported by Martin Koeppe.
49465
49466 2007-09-24  Bruno Haible  <bruno@clisp.org>
49467
49468         * README: Update git instructions.
49469
49470 2007-09-24  Eric Blake  <ebb9@byu.net>
49471
49472         Revert fpending breakage from 2007-09-08.
49473         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
49474         __fpending.c.
49475
49476 2007-09-24  Jim Meyering  <jim@meyering.net>
49477
49478         filenamecat.c: Add a test.
49479         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
49480         showing how the function works when DIR is the empty string.
49481
49482 2007-09-21  Simon Josefsson  <simon@josefsson.org>
49483
49484         * tests/test-canonicalize.sh: Turn on executable bit.
49485
49486 2007-09-19  Eric Blake  <ebb9@byu.net>
49487
49488         * README: Update CVS instructions.
49489
49490 2007-09-18  Bruno Haible  <bruno@clisp.org>
49491
49492         * modules/areadlink: New file.
49493         * lib/areadlink.h (areadlink): New declaration.
49494         * lib/areadlink.c: New file, based on lib/xreadlink.c.
49495
49496 2007-09-17  Jim Meyering  <jim@meyering.net>
49497
49498         * lib/savewd.c (ESTALE) [!defined]: Define.
49499         Reported to be required on Interix by Martin Koeppe.
49500
49501 2007-09-17  Bruno Haible  <bruno@clisp.org>
49502
49503         * gnulib-tool (func_version): Use $version.
49504
49505 2007-09-16  Bruno Haible  <bruno@clisp.org>
49506
49507         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
49508         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
49509         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
49510         Reported by Greg Schafer <gschafer@zip.com.au>.
49511
49512 2007-09-15  Bruno Haible  <bruno@clisp.org>
49513
49514         * gnulib-tool (sed): Try a little harder to make bash understand the
49515         alias.
49516         Reported by Bruce Korb <bruce.korb@gmail.com>.
49517
49518 2007-09-13  Eric Blake  <ebb9@byu.net>
49519
49520         * ChangeLog: Remove conflict markers.
49521
49522 2007-09-13  Simon Josefsson  <simon@josefsson.org>
49523
49524         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
49525         Reported by Bruno Haible <bruno@clisp.org>.
49526
49527 2007-09-12  Bruno Haible  <bruno@clisp.org>
49528
49529         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
49530         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
49531         is not defined.
49532
49533 2007-09-12  Eric Blake  <ebb9@byu.net>
49534
49535         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
49536         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
49537         Autoconf definition.
49538         * modules/euidaccess (Depends-on): Add extensions, for
49539         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
49540         * modules/fnmatch (Depends-on): Likewise.
49541         * modules/getaddrinfo (Depends-on): Likewise.
49542         * modules/getdelim (Depends-on): Likewise.
49543         * modules/getline (Depends-on): Likewise.
49544         * modules/getsubopt (Depends-on): Likewise.
49545         * modules/gettext (Depends-on): Likewise.
49546         * modules/group-member (Depends-on): Likewise.
49547         * modules/mbchar (Depends-on): Likewise.
49548         * modules/memmem (Depends-on): Likewise.
49549         * modules/mempcpy (Depends-on): Likewise.
49550         * modules/memrchr (Depends-on): Likewise.
49551         * modules/pagealign_alloc (Depends-on): Likewise.
49552         * modules/readutmp (Depends-on): Likewise.
49553         * modules/stpcpy (Depends-on): Likewise.
49554         * modules/stpncpy (Depends-on): Likewise.
49555         * modules/strchrnul (Depends-on): Likewise.
49556         * modules/strndup (Depends-on): Likewise.
49557         * modules/strsep (Depends-on): Likewise.
49558         * modules/strverscmp (Depends-on): Likewise.
49559         * modules/vasprintf (Depends-on): Likewise.
49560         * modules/wcwidth (Depends-on): Likewise.
49561         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
49562         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
49563         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
49564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
49565         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49566         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49567         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
49568         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49569         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
49570         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
49571         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49572         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
49573         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
49574         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
49575         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
49576         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49577         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49578         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
49579         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49580         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
49581         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
49582         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
49583         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
49584         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
49585         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
49586         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49587         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
49588         so that lock.m4 can be used in gettext without extensions module.
49589
49590 2007-09-11  Bruno Haible  <bruno@clisp.org>
49591
49592         * m4/isc-posix.m4: Remove file.
49593         Suggested by Eric Blake.
49594
49595 2007-09-11  Eric Blake  <ebb9@byu.net>
49596
49597         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
49598
49599 2007-09-10  Bruno Haible  <bruno@clisp.org>
49600
49601         * posix-modules: Fix typo in error message.
49602         Reported by Matt <mkraai@beckman.com>.
49603
49604 2007-09-09  Bruno Haible  <bruno@clisp.org>
49605
49606         * doc/functions/getdelim.texi: Update list of platforms lacking the
49607         function.
49608         * doc/functions/getline.texi: Likewise.
49609
49610 2007-09-09  Jim Meyering  <jim@meyering.net>
49611
49612         * lib/hash.c (hash_initialize): Detect calloc failure.
49613         Reported by Bruno Haible.
49614
49615 2007-09-09  Bruno Haible  <bruno@clisp.org>
49616
49617         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
49618         malloc or realloc fails.
49619
49620 2007-09-09  Bruno Haible  <bruno@clisp.org>
49621
49622         * modules/getcwd (Depends-on): Add malloc-posix.
49623         * modules/glob (Depends-on): Likewise.
49624         * modules/putenv (Depends-on): Likewise.
49625         * modules/strdup (Depends-on): Likewise.
49626         * modules/getdelim (Depends-on): Add realloc-posix.
49627         * modules/read-file (Depends-on): Likewise.
49628
49629 2007-09-09  Bruno Haible  <bruno@clisp.org>
49630
49631         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
49632         (gl_FUNC_MALLOC_POSIX): Require it.
49633         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
49634         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
49635         * modules/realloc (Files): Add m4/malloc.m4.
49636         * modules/calloc (Files): Likewise.
49637
49638 2007-09-09  Bruno Haible  <bruno@clisp.org>
49639
49640         * modules/malloc-posix: New file.
49641         * modules/malloc (Depends-on): Add malloc-posix.
49642         * lib/malloc.c: Include errno.h.
49643         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
49644         and a POSIX-compatible malloc into a single function. Set ENOMEM
49645         when returning NULL.
49646         * m4/malloc.m4: New file.
49647         * doc/functions/malloc.texi: Mention the malloc-posix module.
49648         * lib/stdlib_.h (malloc): New declaration.
49649         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49650         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
49651         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
49652         and HAVE_MALLOC_POSIX.
49653
49654 2007-09-09  Bruno Haible  <bruno@clisp.org>
49655
49656         * modules/realloc-posix: New file.
49657         * modules/realloc (Depends-on): Add realloc-posix.
49658         * lib/realloc.c: Include errno.h.
49659         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
49660         and a POSIX-compatible realloc into a single function. Set ENOMEM
49661         when returning NULL.
49662         * m4/realloc.m4: New file.
49663         * doc/functions/realloc.texi: Mention the realloc-posix module.
49664         * lib/stdlib_.h (realloc): New declaration.
49665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49666         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
49667         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
49668         and HAVE_REALLOC_POSIX.
49669
49670 2007-09-09  Bruno Haible  <bruno@clisp.org>
49671
49672         * modules/calloc-posix: New file.
49673         * modules/calloc (Depends-on): Add calloc-posix.
49674         * lib/calloc.c: Include errno.h.
49675         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
49676         and a POSIX-compatible calloc into a single function. Set ENOMEM
49677         when returning NULL.
49678         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
49679         * doc/functions/calloc.texi: Mention the calloc-posix module.
49680         * lib/stdlib_.h (calloc): New declaration.
49681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
49682         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
49683         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
49684         and HAVE_CALLOC_POSIX.
49685
49686 2007-09-09  Bruno Haible  <bruno@clisp.org>
49687
49688         Allow for modules to show an arbitrary notice.
49689         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
49690         * gnulib-tool: New option --extract-notice.
49691         (func_usage): Document it.
49692         (sed_extract_prog): Update.
49693         (func_get_notice): New function.
49694         (func_modules_notice): New function.
49695         (func_import, func_create_testdir): Invoke it.
49696         Suggested by Jim Meyering.
49697
49698 2007-09-09  Bruno Haible  <bruno@clisp.org>
49699
49700         * gnulib-tool: New options --verbose, --quiet.
49701         (func_usage): Document them.
49702         (verbose): New variable.
49703         (func_execute_command): New function.
49704         (func_import): Don't show the module list and the file list if
49705         $verbose < 0.
49706         (func_create_testdir): Likewise. Use func_execute_command.
49707         (func_create_megatestdir): Use func_execute_command.
49708
49709 2007-09-08  Bruno Haible  <bruno@clisp.org>
49710
49711         * gnulib-tool (func_import): Prefer rsync over wget when available,
49712         for fetching the PO files.
49713
49714 2007-09-08  Bruno Haible  <bruno@clisp.org>
49715
49716         * posix-modules: New file. Portions copied from gnulib-tool.
49717         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
49718
49719 2007-09-08  Jim Meyering  <jim@meyering.net>
49720
49721         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
49722         * lib/fpending.h: Rename from __fpending.h.
49723         * lib/fpending.c: Rename from __fpending.c.
49724         Include "fpending.h", not "__fpending.h".
49725         * lib/__fpending.h, lib/__fpending.c: Remove files.
49726         * modules/fpending (Files): Reflect new file names.
49727         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
49728
49729 2007-09-08  Bruno Haible  <bruno@clisp.org>
49730
49731         * m4/inttypes-h.m4: Remove stub file.
49732
49733 2007-09-07  Simon Josefsson  <simon@josefsson.org>
49734
49735         * doc/headers/stdint.texi: Discuss #include_next issue.
49736
49737 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
49738
49739         * build-aux/bootstrap: Remove obsolete comment about wget --help.
49740
49741 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49742
49743         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
49744         in variable name.
49745
49746 2007-09-03  Jim Meyering  <jim@meyering.net>
49747
49748         New module: git-version-gen.
49749         * modules/git-version-gen: New file.
49750
49751         Import changes from coreutils for bootstrap script.
49752
49753         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
49754
49755         bootstrap: uses rsync to download the .po files
49756         * build-aux/bootstrap (po_download_command_format): New global.
49757         (download_po_files): Use rsync.
49758         (update_po_files): Don't remove .po files after download,
49759         so future rsync runs can take advantage of the copies.
49760
49761         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
49762
49763         Solve the unnecessary-.po-file-regeneration problem once and for all.
49764         * build-aux/bootstrap (download_po_files): New function, renamed from
49765         get_translations.  Now, downloads, but doesn't update LINGUAS.
49766         (update_po_files): New function.
49767
49768         bootstrap: Ignore more.
49769         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
49770         uniwidth to e.g., lib/.gitignore.
49771         (slurp): Handle the sys_stat_.h -> sys mapping, too.
49772
49773         * build-aux/bootstrap: New setting: vc_ignore.
49774         (insert_sorted_if_absent): Create $file if absent.
49775         Adapt to new, possibly empty, list: $vc_ignore.
49776
49777         bootstrap: generate more ignorable names
49778         * build-aux/bootstrap (slurp): When generating ignorable names,
49779         also map .sin to .sed, .gperf to .c, and .y to .c.
49780
49781 2007-09-03  Jim Meyering  <jim@meyering.net>
49782
49783         * build-aux/git-version-gen: New file, from coreutils.  For details, see
49784         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
49785
49786 2007-09-02  Bruno Haible  <bruno@clisp.org>
49787
49788         Fix mis-recognition of 'mcs' on QNX 6.
49789         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
49790         output contains the string "Mono".
49791         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
49792         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
49793
49794 2007-09-01  Bruno Haible  <bruno@clisp.org>
49795
49796         Fix collision between uniwidth/* and linebreak modules.
49797         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
49798         u32_width): Remove declarations.
49799         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
49800         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
49801         streq3, streq2, streq1, streq0): Remove functions.
49802         (STREQ): Remove macro.
49803         (is_cjk_encoding): Remove function.
49804         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
49805         (uc_width, u8_width, u16_width, u32_width): Remove functions.
49806         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
49807         * NEWS: Document the change.
49808
49809 2007-09-01  Bruno Haible  <bruno@clisp.org>
49810
49811         * lib/streq.h: Add double-inclusion guard.
49812
49813 2007-09-01  Karl Berry  <karl@gnu.org>
49814
49815         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
49816
49817 2007-08-28  Jim Meyering  <jim@meyering.net>
49818
49819         Rename mreadlink_with_size to areadlink_with_size.
49820         * NEWS: Document the change.
49821         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
49822         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
49823         * lib/mreadlink.h: Rename this to...
49824         * lib/areadlink.h: ...this.
49825         * modules/mreadlink-with-size: Rename this to...
49826         * modules/areadlink-with-size: ...this.
49827         * lib/canonicalize.c: Reflect the renaming.
49828         * modules/canonicalize: Likewise.
49829
49830 2007-08-26  Bruno Haible  <bruno@clisp.org>
49831
49832         * gnulib-tool (func_import): When deciding which files to remove,
49833         consider also dangling symbolic links.
49834         Reported by Eric Blake.
49835
49836 2007-08-26  Bruno Haible  <bruno@clisp.org>
49837
49838         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
49839
49840 2007-08-23  Simon Josefsson  <simon@josefsson.org>
49841
49842         * lib/readline.c: Don't include getline.h, the prototype is now
49843         found in stdio.h.
49844
49845 2007-08-23  Jim Meyering  <jim@meyering.net>
49846
49847         Getdelim touchup.
49848         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
49849         around the funlockfile call, since funlockfile never sets errno.
49850         Don't set errno upon failed realloc.
49851
49852 2007-08-22  Eric Blake  <ebb9@byu.net>
49853
49854         Getline touchups.
49855         * lib/getdelim.c (getdelim): Revert regression that required *n to
49856         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
49857         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
49858         getdelim, rather than whether implementation is missing.
49859         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
49860         * lib/stdio_.h (getline): Also declare if replacement is
49861         required.
49862         * doc/functions/getdelim.texi: New file.
49863         * doc/functions/getline.texi: Likewise.
49864         * doc/gnulib.texi (Function Substitutes): Add new files.
49865         Reported by Bruno Haible.
49866
49867 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
49868
49869         * users.txt: Add Guile.
49870
49871 2007-08-22  Eric Blake  <ebb9@byu.net>
49872
49873         * tests/test-getdelim.c (main): Use remove, not unlink.
49874         * tests/test-getline.c (main): Likewise.
49875
49876         Move getline and getdelim into stdio.h, per POSIX 200x.
49877         * modules/getline (Files): Remove getline.h.
49878         (Depends-on): Add stdio.
49879         (configure.ac): Add module indicator.
49880         * modules/getdelim (Files): Remove getdelim.h.
49881         (Depends-on): Add stdio.
49882         (configure.ac): Add module indicator.
49883         * modules/stdio (Makefile.am): Work with new indicators.
49884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
49885         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
49886         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
49887         * lib/getdelim.h: Delete.
49888         * lib/getline.h: Delete.
49889         * lib/stdio_.h (getdelim, getline): Declare.
49890         * modules/getdelim-tests: New module.
49891         * modules/getline-tests: Likewise.
49892         * tests/test-getdelim.c: New file.
49893         * tests/test-getline.c: Likewise.
49894         * NEWS: Document the change.
49895         * lib/getline.c: Update choice of header.
49896         * lib/csharpcomp.c: Likewise.
49897         * lib/getpass.c: Likewise.
49898         * lib/javacomp.c: Likewise.
49899         * lib/javaversion.c: Likewise.
49900         * lib/yesno.c: Likewise.
49901         * lib/getdelim.c: Likewise.
49902         (getdelim): Set errno on failure, and avoid memory leak.
49903
49904 2007-08-19  Bruno Haible  <bruno@clisp.org>
49905
49906         * modules/closein (Depends-on): Add freadahead.
49907         * lib/closein.c: Include freadahead.h.
49908         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
49909         is zero.
49910
49911 2007-08-19  Bruno Haible  <bruno@clisp.org>
49912
49913         * modules/freadahead-tests: New file.
49914         * tests/test-freadahead.sh: New file.
49915         * tests/test-freadahead.c: New file.
49916
49917         * modules/freadahead: New file.
49918         * lib/freadahead.h: New file.
49919         * lib/freadahead.c: New file.
49920         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
49921         fbufmode, fpurge, freadable, fwritable.
49922
49923 2007-08-19  Eric Blake  <ebb9@byu.net>
49924
49925         Test yesno in combination with closein.
49926         * lib/yesno.c (yesno): Document use of stdin.
49927         * modules/yesno-tests (Files): New module.
49928         * tests/test-yesno.c (main): New file.
49929         * tests/test-yesno.sh: Likewise.
49930
49931 2007-08-19  Bruno Haible  <bruno@clisp.org>
49932
49933         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
49934         * lib/fseeko.c (rpl_fseeko): Likewise.
49935         * lib/fseterr.c (fseterr): Likewise.
49936
49937 2007-08-19  Bruno Haible  <bruno@clisp.org>
49938
49939         * tests/test-lseek.c (main): Disable a test for BeOS.
49940         * doc/functions/lseek.texi: Document the BeOS bug.
49941
49942 2007-08-19  Bruno Haible  <bruno@clisp.org>
49943             Eric Blake  <ebb9@byu.net>
49944
49945         * lib/lseek.c: Include <sys/stat.h>.
49946         (rpl_lseek): Add workaround code also for Unix platforms.
49947         Needed for BeOS.
49948         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
49949         * doc/functions/lseek.texi: Document BeOS definiency.
49950
49951 2007-08-18  Bruno Haible  <bruno@clisp.org>
49952
49953         * modules/fstrcmp-tests: New file.
49954         * tests/test-fstrcmp.c: New file.
49955
49956 2007-08-18  Bruno Haible  <bruno@clisp.org>
49957
49958         * modules/fstrcmp: New file, from GNU gettext with modifications.
49959         * lib/fstrcmp.h: New file, from GNU gettext.
49960         * lib/fstrcmp.c: New file, from GNU gettext.
49961         * MODULES.html.sh (String handling): Add fstrcmp.
49962
49963 2007-08-18  Bruno Haible  <bruno@clisp.org>
49964
49965         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
49966         'bool'.
49967         (diag, compareseq): Remove const from the ctxt argument.
49968         (USE_HEURISTIC): Undefine at the end.
49969
49970 2007-08-18  Jim Meyering  <jim@meyering.net>
49971
49972         New file: lib/idcache.h
49973         * NEWS: Mention the addition.
49974         * modules/idcache (Files): Add lib/idcache.h
49975         * lib/idcache.c: Include "idcache.h".
49976         Don't include <sys/types.h>.
49977         Add a FIXME comment.
49978         Move file-scoped "static" declarations to the top.
49979         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
49980
49981 2007-08-17  Bruno Haible  <bruno@clisp.org>
49982         and Paul Eggert  <eggert@cs.ucla.edu>
49983
49984         * MODULES.html.sh: Add diffseq.
49985         * modules/diffseq: New file.
49986         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
49987         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
49988
49989 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49990
49991         Import changes from coreutils for bootstrap script.
49992
49993         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
49994
49995         * build-aux/bootstrap (slurp): Work even in environments where
49996         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
49997         current code does not slurp files whose names start with ".", and
49998         this looks like it might be a troublesome area.
49999
50000         2007-07-11  Jim Meyering  <jim@meyering.net>
50001
50002         If there's a GPL vN copyright comment, require that N == 3.
50003
50004         2007-07-08  Jim Meyering  <jim@meyering.net>
50005
50006         Run the coreutils-specific code only if tests/Makefile.am.in exists.
50007         * build-aux/bootstrap (mam_template): Move definition out of loop.
50008
50009         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
50010
50011         * build-aux/bootstrap (symlink_to_dir): Rename function from
50012         symlink_to_gnulib.  Add a directory parameter.  Update all
50013         callers.
50014         (cp_mark_as_generated): Also check for -- and link to -- files in
50015         gl/.
50016
50017         2007-07-08  Jim Meyering  <jim@meyering.net>
50018
50019         Adapt to deeper hierarchy in gnulib.
50020         * build-aux/bootstrap (symlink_to_dir): If the destination
50021         directory doesn't exist, create it. This is required at least for
50022         "lib/uniwidth/cjk.h".
50023
50024         2007-05-15  Jim Meyering  <jim@meyering.net>
50025
50026         * build-aux/bootstrap: Now that generated Makefile.am files
50027         are no longer under version control, they must be created at
50028         bootstrap time.
50029
50030 2007-08-14  Ben Pfaff  <blp@gnu.org>
50031
50032         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
50033
50034 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50035
50036         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
50037         given the changes below.
50038         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
50039         even on hosts that have padding bits beyond the supported 64.
50040
50041 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50042
50043         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
50044         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
50045         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
50046         depends on it.
50047         (xstrtol_error): Remove.
50048         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
50049         but with a different signature.
50050         (ATTRIBUTE_NORETURN, __attribute__): New macros.
50051         * lib/xstrtol-error.c: Include exitfail.h.
50052         (xstrtol_fatal): New function, with a different signature from the
50053         old xstrtol_error, so that the caller need not worry about passing
50054         in an exit status, or about storage management of the option argument.
50055         (xstrtol_error): Now a static function.  Redo signature to
50056         implement xstrtol_fatal.  Output the correct number of hyphens in
50057         front of the option so that the caller need not worry about
50058         storage management.
50059         (N_): New macro.
50060         (_): Remove; not used now.
50061         * modules/xstrtol: Depend on getopt.
50062         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
50063         of old STRTOL_FATAL_ERROR macro.
50064         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
50065         of test program.
50066         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
50067         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
50068
50069 2007-08-08  Eric Blake  <ebb9@byu.net>
50070
50071         * lib/xstrtol-error.c: Add missing include.
50072
50073         Move xstrtol messages into gnulib domain, when --pobase is used.
50074         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
50075         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
50076         * modules/xstrtol (Files): Distribute new file.
50077         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
50078         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
50079         * tests/test-xstrtol.c: ...into new file.
50080         * tests/test-xstrtoul.c: Also test xstrtoul.
50081         * tests/test-xstrtoimax.c: Also test xstrtoimax.
50082         * tests/test-xstrtoumax.c: Also test xstrtoumax.
50083         * tests/test-xstrtol.sh: Drive the tests.
50084         * tests/test-xstrtoimax.sh: Likewise.
50085         * tests/test-xstrtoumax.sh: Likewise.
50086         * modules/xstrtol-tests: New module.
50087         * modules/xstrtoimax-tests: Likewise.
50088         * modules/xstrtoumax-tests: Likewise.
50089
50090 2007-08-08  Jim Meyering  <jim@meyering.net>
50091
50092         New function: mfile_name_concat.
50093         * lib/filenamecat.c (mfile_name_concat): New function, just like
50094         file_name_concat, but return NULL upon failure rather than exiting
50095         with a diagnostic.
50096         * lib/filenamecat.h: Declare it.
50097
50098 2007-08-07  Bruno Haible  <bruno@clisp.org>
50099
50100         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
50101         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
50102         warning from gcc.
50103         Reported by Eric Blake.
50104
50105 2007-08-07  Simon Josefsson  <simon@josefsson.org>
50106
50107         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
50108         * modules/crypto/arcfour (License): Likewise.
50109         * modules/crypto/des-tests (License): Likewise.
50110         * modules/crypto/gc-arctwo-tests (License): Likewise.
50111         * modules/crypto/gc-des-tests (License): Likewise.
50112         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
50113         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
50114         * modules/crypto/gc-md2-tests (License): Likewise.
50115         * modules/crypto/gc-md4-tests (License): Likewise.
50116         * modules/crypto/gc-md5-tests (License): Likewise.
50117         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
50118         * modules/crypto/gc-rijndael-tests (License): Likewise.
50119         * modules/crypto/gc-sha1-tests (License): Likewise.
50120         * modules/crypto/gc-tests (License): Likewise.
50121         * modules/crypto/hmac-md5 (License): Likewise.
50122         * modules/crypto/hmac-sha1 (License): Likewise.
50123         * modules/crypto/md2-tests (License): Likewise.
50124         * modules/crypto/md4-tests (License): Likewise.
50125         * modules/crypto/md5 (License): Likewise.
50126         * modules/crypto/rijndael (License): Likewise.
50127         * modules/crypto/sha1 (License): Likewise.
50128         * modules/memxor (License): Likewise.
50129
50130 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50131         and Bruno Haible  <bruno@clisp.org>
50132
50133         * NEWS: Describe interface changes to human, xstrtol.
50134         * lib/human.h: Include <xstrtol.h>.
50135         (human_options): Return enum strtol_error, not int.  Remove
50136         bool arg; take int * instead.
50137         * lib/human.c: Don't include "gettext.h".
50138         (_): Remove; no longer used.
50139         Don't include <xstrtol.h>, since human.h does it.
50140         (human_options): Adjust to abovementioned interface changes.
50141         Do not report error to stderr; that's now the caller's
50142         responsibility.
50143         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
50144         interface change.
50145         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
50146         Str, Argument_type_string.  All uses changed.  Put " argument"
50147         in diagnostics to make them clearer.  Change wording of suffix
50148         message for clarity.
50149         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
50150         Argument_type_string.
50151         (STRTOL_FATAL_WARN): Remove; no longer used.
50152         * modules/human (Depends-on): Remove gettext-h.
50153
50154 2007-08-06  Simon Josefsson  <simon@josefsson.org>
50155
50156         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
50157
50158 2007-07-31  Bruno Haible  <bruno@clisp.org>
50159
50160         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
50161         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
50162         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
50163
50164 2007-07-31  Bruno Haible  <bruno@clisp.org>
50165
50166         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
50167         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
50168
50169 2007-07-30  Bruno Haible  <bruno@clisp.org>
50170
50171         * modules/base64 (License): Use the synonymous term "LGPLv2+".
50172         * modules/c-ctype (License): Likewise.
50173         * modules/c-strcase (License): Likewise.
50174         * modules/check-version (License): Likewise.
50175         * modules/iconv (License): Likewise.
50176         * modules/iconv_open (License): Likewise.
50177         * modules/read-file (License): Likewise.
50178         * modules/striconv (License): Likewise.
50179         * modules/strverscmp (License): Likewise.
50180         * modules/vasprintf (License): Likewise.
50181         * modules/crypto/des (License): Likewise.
50182         * modules/crypto/gc (License): Likewise.
50183         * modules/crypto/gc-arcfour (License): Likewise.
50184         * modules/crypto/gc-arctwo (License): Likewise.
50185         * modules/crypto/gc-des (License): Likewise.
50186         * modules/crypto/gc-hmac-md5 (License): Likewise.
50187         * modules/crypto/gc-hmac-sha1 (License): Likewise.
50188         * modules/crypto/gc-md2 (License): Likewise.
50189         * modules/crypto/gc-md4 (License): Likewise.
50190         * modules/crypto/gc-md5 (License): Likewise.
50191         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
50192         * modules/crypto/gc-random (License): Likewise.
50193         * modules/crypto/gc-rijndael (License): Likewise.
50194         * modules/crypto/gc-sha1 (License): Likewise.
50195         * modules/crypto/md2 (License): Likewise.
50196         * modules/crypto/md4 (License): Likewise.
50197
50198 2007-07-30  Jim Meyering  <jim@meyering.net>
50199
50200         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
50201         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
50202         it has valid stat data.  This bug would cause du not to count the
50203         sizes of inaccessible directories.
50204         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
50205         in <http://bugzilla.redhat.com/250077>.
50206
50207 2007-07-25  Peter O'Gorman  <peter@pogma.com>
50208             Bruno Haible  <bruno@clisp.org>
50209
50210         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
50211         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
50212         #include_next, gives a diagnostic about it, but reports no error in
50213         the exit code.
50214         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50215
50216 2007-07-24  Ben Pfaff  <blp@gnu.org>
50217
50218         Improve name: "count-one-bits" is better than "popcount".
50219         * MODULES.html.sh: Update name.
50220         * lib/popcount.h: Renamed lib/count-one-bits.h.
50221         (popcount): Renamed count_one_bits.
50222         (popcountl): Renamed count_one_bits_l.
50223         (popcountll): Renamed count_one_bits_ll.
50224         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
50225         * modules/popcount: Renamed module/count-one-bits.
50226         * modules/popcount-tests: Renamed module/count-one-bits-tests.
50227         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
50228
50229 2007-07-23  Ben Pfaff  <blp@gnu.org>
50230
50231         * lib/popcount.h (popcount32): Reduce size of constants, to allow
50232         better code generation, and add U to large constants to avoid
50233         warnings, in non-GCC case.
50234         Suggested by Bruno Haible.
50235
50236 2007-07-23  Ben Pfaff  <blp@gnu.org>
50237
50238         * lib/popcount.h: Use verify_true instead of if...abort.
50239         * modules/popcount: Depend on verify module.
50240         Suggested by Jim Meyering.
50241
50242 2007-07-23  Bruno Haible  <bruno@clisp.org>
50243
50244         * gnulib-tool (func_import): Create a .cvsignore file also when the
50245         directory is not yet in CVS but the toplevel directory is. When
50246         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
50247         Reported by Karl Berry.
50248
50249 2007-07-22  Ben Pfaff  <blp@gnu.org>
50250
50251         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
50252         case.
50253         Suggested by Eric Blake.
50254
50255 2007-07-22  Ben Pfaff  <blp@gnu.org>
50256
50257         New module: popcount.
50258         * MODULES.html.sh: Add popcount.
50259         * modules/popcount: New file.
50260         * modules/popcount-tests: New file.
50261         * tests/test-popcount.c: New file.
50262         * lib/popcount.h: New file.
50263         * m4/popcount.m4: New file.
50264
50265 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50266
50267         * build-aux/announce-gen: Update to GPLv3.
50268
50269         * build-aux/config.guess: Update from config.
50270
50271 2007-07-21  Bruno Haible  <bruno@clisp.org>
50272
50273         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
50274         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
50275
50276 2007-07-20  Jim Meyering  <jim@meyering.net>
50277
50278         * check-module: Diagnose a self-dependency.
50279
50280 2007-07-19  Bruno Haible  <bruno@clisp.org>
50281
50282         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
50283         empty.
50284         Reported by Eric Blake.
50285
50286 2007-07-18  Bruno Haible  <bruno@clisp.org>
50287
50288         * gnulib-tool: New options --po-base, --po-domain.
50289         (func_usage): Document them.
50290         (pobase, po_domain): New variables.
50291         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
50292         DEFAULT_TEXT_DOMAIN.
50293         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
50294         (func_import): Consider pobase and po_domain. Create a po/ directory.
50295         (func_create_testdir): Set pobase and po_domain to empty.
50296         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
50297         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
50298
50299 2007-07-18  Bruno Haible  <bruno@clisp.org>
50300
50301         * gnulib-tool (func_get_automake_snippet): Synthesize also an
50302         EXTRA_DIST augmentation for files in build-aux/.
50303
50304 2007-07-16  Bruno Haible  <bruno@clisp.org>
50305
50306         * modules/lseek (License): Use the synonymous term "LGPLv2+".
50307         * modules/getdelim (License): Likewise.
50308
50309 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50310
50311         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
50312         * modules/d-type (License): Likewise.
50313         * modules/extensions (License): Likewise.
50314         * modules/fnmatch (License): Likewise.
50315         * modules/fseeko (License): Likewise.
50316         * modules/getaddrinfo (License): Likewise.
50317         * modules/getline (License): Likewise.
50318         * modules/getlogin_r (License): Likewise.
50319         * modules/getpass (License): Likewise.
50320         * modules/gettimeofday (License): Likewise.
50321         * modules/glob (License): Likewise.
50322         * modules/inet_ntop (License): Likewise.
50323         * modules/malloc (License): Likewise.
50324         * modules/malloca (License): Likewise.
50325         * modules/memmem (License): Likewise.
50326         * modules/mempcpy (License): Likewise.
50327         * modules/memset (License): Likewise.
50328         * modules/minmax (License): Likewise.
50329         * modules/mktime (License): Likewise.
50330         * modules/netinet_in (License): Likewise.
50331         * modules/pathmax (License): Likewise.
50332         * modules/poll (License): Likewise.
50333         * modules/regex (License): Likewise.
50334         * modules/snprintf (License): Likewise.
50335         * modules/stdbool (License): Likewise.
50336         * modules/stdint (License): Likewise.
50337         * modules/stdio (License): Likewise.
50338         * modules/strcase (License): Likewise.
50339         * modules/strcasestr (License): Likewise.
50340         * modules/strdup (License): Likewise.
50341         * modules/string (License): Likewise.
50342         * modules/strndup (License): Likewise.
50343         * modules/strnlen (License): Likewise.
50344         * modules/strpbrk (License): Likewise.
50345         * modules/strptime (License): Likewise.
50346         * modules/strsep (License): Likewise.
50347         * modules/sys_select (License): Likewise.
50348         * modules/sys_socket (License): Likewise.
50349         * modules/sys_stat (License): Likewise.
50350         * modules/sys_time (License): Likewise.
50351         * modules/time (License): Likewise.
50352         * modules/time_r (License): Likewise.
50353         * modules/timegm (License): Likewise.
50354         * modules/unistd (License): Likewise.
50355         * modules/vsnprintf (License): Likewise.
50356         * modules/wctype (License): Likewise.
50357
50358 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50359
50360         * modules/argz (License): LGPLv2+.
50361
50362 2007-07-15  Karl Berry  <karl@gnu.org>
50363
50364         * doc/gnulib.texi: revise node structure per new fdl.texi.
50365
50366 2007-07-14  Bruno Haible  <bruno@clisp.org>
50367
50368         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
50369         the output file.
50370         * lib/uniname/uninames.h: Regenerated.
50371
50372 2007-07-14  Karl Berry  <karl@gnu.org>
50373
50374         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
50375         omitting sectioning and index commands.
50376
50377 2007-07-13  Bruno Haible  <bruno@clisp.org>
50378
50379         New gnulib-tool option --more-symlinks.
50380         * gnulib-tool (func_usage): Document --more-symlinks.
50381         (do_copyrights): New variable.
50382         Recognize option --more-symlinks.
50383         (func_import): Don't add a copyright notice transform to
50384         sed_transform_lib_file if do_copyrights is empty.
50385
50386 2007-07-13  Bruno Haible  <bruno@clisp.org>
50387
50388         * lib/vasnprintf.c (decimal_point_char): Define also if
50389         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
50390         && !NEED_PRINTF_DIRECTIVE_A.
50391         Reported by Clemens Koller <clemens.koller@anagramm.de> via
50392         Gary V. Vaughan <gary@gnu.org>.
50393
50394 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
50395
50396         * lib/inttypes_.h: Undo previous change, since it was fixed
50397         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
50398
50399 2007-07-13  Bruno Haible  <bruno@clisp.org>
50400
50401         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
50402         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
50403
50404 2007-07-13  Jim Meyering  <jim@meyering.net>
50405
50406         df: Don't fail for Tru64's "file-on-file mount".
50407         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
50408         so we fall through and use statfs instead.  Details here:
50409         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
50410         Reported by Albert Chin.
50411
50412 2007-07-13  Bruno Haible  <bruno@clisp.org>
50413
50414         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
50415         * modules/configmake (License): Likewise.
50416         * modules/gettext (License): Likewise.
50417         * modules/gettext-h (License): Likewise.
50418         * modules/include_next (License): Likewise.
50419         * modules/link-warning (License): Likewise.
50420         * modules/localcharset (License): Likewise.
50421         * modules/localename (License): Likewise.
50422         * modules/lock (License): Likewise.
50423         * modules/relocatable-lib-lgpl (License): Likewise.
50424         * modules/size_max (License): Likewise.
50425         * modules/vasnprintf (License): Likewise.
50426         * modules/wchar (License): Likewise.
50427         * modules/xsize (License): Likewise.
50428
50429 2007-07-13  Bruno Haible  <bruno@clisp.org>
50430
50431         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
50432         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
50433
50434 2007-07-12  Bruno Haible  <bruno@clisp.org>
50435
50436         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
50437         in the modules files.
50438
50439 2007-07-11  Karl Berry  <karl@gnu.org>
50440
50441         * MODULES.html.sh (func_module): use
50442          sed -e '\|^'"${includefile}"'$|d'
50443          instead of /.../d, to avoid errors on $includefile's containing /.
50444
50445 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50446
50447         * gnulib-tool (func_import): Avoid duplication of --avoid
50448         statements
50449         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
50450         names to `_' in variable names.
50451
50452 2007-07-10  Eric Blake  <ebb9@byu.net>
50453
50454         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
50455         * NEWS: Document this change.
50456
50457 2007-07-08  Bruno Haible  <bruno@clisp.org>
50458
50459         Update to Unicode 5.0.
50460         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
50461         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
50462         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
50463         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
50464         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
50465         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
50466         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
50467         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
50468         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
50469         U+10A3F, U+1D242..U+1D244.
50470         (nonspacing_table_ind): Update.
50471         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
50472         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
50473
50474 2007-07-08  Bruno Haible  <bruno@clisp.org>
50475
50476         Update to Unicode 5.0.
50477         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
50478         code transform. Extend the name index field of unicode_name_to_code and
50479         unicode_code_to_name from 16 to 24 bits.
50480         * lib/uniname/uniname.c (unicode_character_name,
50481         unicode_name_character): Add the range 0x12xxx to the code transform.
50482         * lib/uniname/uninames.h: Regenerated.
50483         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
50484
50485 2007-07-07  Bruno Haible  <bruno@clisp.org>
50486
50487         * modules/wcwidth-tests: New file.
50488         * tests/test-wcwidth.c: New file.
50489
50490         Work around MacOS X wcwidth() bug.
50491         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
50492         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
50493         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
50494         original wcwidth in non-UTF-8 locales.
50495         * modules/wcwidth (Depends-on): Add localcharset, streq,
50496         uniwidth/width.
50497         * doc/functions/wcwidth.texi: Update.
50498
50499 2007-07-07  Bruno Haible  <bruno@clisp.org>
50500
50501         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
50502         (wcwidth): New declaration.
50503         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
50504         macros.
50505         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
50506         here. Prepare for creating <wchar.h> unconditionally.
50507         * modules/wchar (Depends-on): Add link-warning.
50508         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
50509         REPLACE_WCWIDTH, and GL_LINK_WARNING.
50510         * lib/wcwidth.h: Remove file.
50511         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
50512         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
50513         * modules/wcwidth (Files): Remove lib/wcwidth.h.
50514         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
50515         (Include): Replace wcwidth.h with <wchar.h>.
50516         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
50517         * lib/mbchar.h: Don't include wcwidth.h.
50518         * lib/mbswidth.c: Likewise.
50519         * NEWS: Mention the change.
50520
50521 2007-07-07  Bruno Haible  <bruno@clisp.org>
50522
50523         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
50524         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
50525         definition with an external declaration.
50526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
50527         defined as a function. Remove AC_C_INLINE requirement.
50528         * modules/wcwidth (Files): Add lib/wcwidth.c.
50529         (Makefile.am): Remove redundant statement.
50530
50531 2007-07-07  Bruno Haible  <bruno@clisp.org>
50532
50533         * MODULES.html.sh (Unicode string functions): Add the new modules.
50534
50535         * tests/uniwidth/test-u32-strwidth.c: New file.
50536         * modules/uniwidth/u32-strwidth-tests: New file.
50537
50538         * lib/uniwidth/u32-strwidth.c: New file.
50539         * modules/uniwidth/u32-strwidth: New file.
50540
50541         * tests/uniwidth/test-u16-strwidth.c: New file.
50542         * modules/uniwidth/u16-strwidth-tests: New file.
50543
50544         * lib/uniwidth/u16-strwidth.c: New file.
50545         * modules/uniwidth/u16-strwidth: New file.
50546
50547         * tests/uniwidth/test-u8-strwidth.c: New file.
50548         * modules/uniwidth/u8-strwidth-tests: New file.
50549
50550         * lib/uniwidth/u8-strwidth.c: New file.
50551         * modules/uniwidth/u8-strwidth: New file.
50552
50553         * tests/uniwidth/test-u32-width.c: New file.
50554         * modules/uniwidth/u32-width-tests: New file.
50555
50556         * lib/uniwidth/u32-width.c: New file.
50557         * modules/uniwidth/u32-width: New file.
50558
50559         * tests/uniwidth/test-u16-width.c: New file.
50560         * modules/uniwidth/u16-width-tests: New file.
50561
50562         * lib/uniwidth/u16-width.c: New file.
50563         * modules/uniwidth/u16-width: New file.
50564
50565         * tests/uniwidth/test-u8-width.c: New file.
50566         * modules/uniwidth/u8-width-tests: New file.
50567
50568         * lib/uniwidth/u8-width.c: New file.
50569         * modules/uniwidth/u8-width: New file.
50570
50571         * tests/uniwidth/test-uc_width.c: New file.
50572         * modules/uniwidth/width-tests: New file.
50573
50574         * lib/uniwidth/width.c: New file, from GNU libiconv.
50575         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
50576         * modules/uniwidth/width: New file.
50577
50578         * lib/uniwidth.h: New file, from GNU libiconv.
50579         * modules/uniwidth/base: New file.
50580
50581 2007-07-07  Bruno Haible  <bruno@clisp.org>
50582
50583         * lib/uniname.h: New file, from GNU gettext.
50584         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
50585         * lib/uniname/uninames.h: New file, from GNU gettext.
50586         * lib/uniname/uniname.c: New file, from GNU gettext.
50587         * tests/uniname/test-uninames.sh: New file.
50588         * tests/uniname/test-uninames.c: New file, from GNU gettext.
50589         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
50590         * modules/uniname/base: New file.
50591         * modules/uniname/uniname: New file.
50592         * modules/uniname/uniname-tests: New file.
50593         * MODULES.html.sh (Unicode string functions): Add the new modules.
50594
50595 2007-07-06  Bruno Haible  <bruno@clisp.org>
50596
50597         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
50598
50599 2007-07-06  Bruno Haible  <bruno@clisp.org>
50600
50601         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
50602         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
50603         includes <cygwin/sys_time.h> which includes <sys/select.h> which
50604         include <sys/time.h>.
50605         Reported by Eric Blake.
50606
50607 2007-07-06  Eric Blake  <ebb9@byu.net>
50608
50609         Fix testing canonicalize on cygwin.
50610         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
50611         Revert patch from 2007-06-19.
50612         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
50613         canonicalize module is also in use.
50614         * tests/test-canonicalize.c: New file.
50615         * tests/test-canonicalize.sh: Likewise.
50616         * modules/canonicalize-tests: Likewise.
50617
50618 2007-07-06  Jim Meyering  <jim@meyering.net>
50619
50620         * lib/getugroups.c (getugroups): Detect getgrent failure.
50621         Adjust comment to reflect reality: this function may return -1.
50622
50623 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
50624
50625         * build-aux/bootstrap (TP_URL,get_translations): Update to use
50626         the new TP address.
50627         (usage): Fix typo
50628         (gnulib_mk): New variable.
50629
50630 2007-07-05  Jim Meyering  <jim@meyering.net>
50631
50632         Don't let endgrent clobber errno, no matter how improbable.
50633         * lib/getugroups.c (getugroups): Save and restore errno around
50634         endgrent call.
50635
50636         Close the group DB even when failing with 2^31 or more members.
50637         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
50638
50639 2007-07-04  Jim Meyering  <jim@meyering.net>
50640
50641         * lib/getugroups.h: New file.
50642         * lib/getugroups.c: Include "getugroups.h".
50643         Remove uses of "register" keyword.
50644         Move local variable, "cp", down into scope where used.
50645         Give "username" parameter the "const" attribute.
50646         * modules/getugroups (Files): Add lib/getugroups.h
50647
50648 2007-07-04  Karl Berry  <karl@gnu.org>
50649
50650         * MODULES.html.sh (func_all_modules): Complete rename of
50651         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
50652
50653 2007-07-02  Bruno Haible  <bruno@clisp.org>
50654
50655         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
50656         mode, when inttypes.h comes from gnulib.
50657         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50658
50659 2007-07-02  Simon Josefsson  <simon@josefsson.org>
50660
50661         * NEWS: Mention lgpl module name change.
50662
50663         * modules/lgpl-2.1: Renamed from lgpl.
50664
50665         * NEWS: Mention gpl module name change.
50666
50667         * modules/gpl-3.0: New file, based on gpl-2.0.
50668
50669         * modules/gpl-2.0: Renamed from gpl.
50670
50671         * modules/gpl: Fix filename, doc/gpl.texi is now found at
50672         doc/gpl-2.0.texi.
50673
50674 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50675
50676         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
50677         #define __STDC_LIMIT_MACROS temporarily while including
50678         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
50679         Problem reported by Joel E. Denny in
50680         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
50681
50682 2007-07-01  Bruno Haible  <bruno@clisp.org>
50683
50684         * lib/unistdio.h: New file.
50685         * lib/unistdio/u-asnprintf.h: New file.
50686         * lib/unistdio/u-asprintf.h: New file.
50687         * lib/unistdio/u-printf-args.c: New file.
50688         * lib/unistdio/u-printf-args.h: New file.
50689         * lib/unistdio/u-printf-parse.h: New file.
50690         * lib/unistdio/u-snprintf.h: New file.
50691         * lib/unistdio/u-sprintf.h: New file.
50692         * lib/unistdio/u-vasprintf.h: New file.
50693         * lib/unistdio/u-vsnprintf.h: New file.
50694         * lib/unistdio/u-vsprintf.h: New file.
50695         * lib/unistdio/ulc-asnprintf.c: New file.
50696         * lib/unistdio/ulc-asprintf.c: New file.
50697         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
50698         * lib/unistdio/ulc-printf-parse.c: New file.
50699         * lib/unistdio/ulc-snprintf.c: New file.
50700         * lib/unistdio/ulc-sprintf.c: New file.
50701         * lib/unistdio/ulc-vasnprintf.c: New file.
50702         * lib/unistdio/ulc-vasprintf.c: New file.
50703         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
50704         * lib/unistdio/ulc-vsnprintf.c: New file.
50705         * lib/unistdio/ulc-vsprintf.c: New file.
50706         * lib/unistdio/u8-asnprintf.c: New file.
50707         * lib/unistdio/u8-asprintf.c: New file.
50708         * lib/unistdio/u8-printf-parse.c: New file.
50709         * lib/unistdio/u8-snprintf.c: New file.
50710         * lib/unistdio/u8-sprintf.c: New file.
50711         * lib/unistdio/u8-vasnprintf.c: New file.
50712         * lib/unistdio/u8-vasprintf.c: New file.
50713         * lib/unistdio/u8-vsnprintf.c: New file.
50714         * lib/unistdio/u8-vsprintf.c: New file.
50715         * lib/unistdio/u8-u8-asnprintf.c: New file.
50716         * lib/unistdio/u8-u8-asprintf.c: New file.
50717         * lib/unistdio/u8-u8-snprintf.c: New file.
50718         * lib/unistdio/u8-u8-sprintf.c: New file.
50719         * lib/unistdio/u8-u8-vasnprintf.c: New file.
50720         * lib/unistdio/u8-u8-vasprintf.c: New file.
50721         * lib/unistdio/u8-u8-vsnprintf.c: New file.
50722         * lib/unistdio/u8-u8-vsprintf.c: New file.
50723         * lib/unistdio/u16-asnprintf.c: New file.
50724         * lib/unistdio/u16-asprintf.c: New file.
50725         * lib/unistdio/u16-printf-parse.c: New file.
50726         * lib/unistdio/u16-snprintf.c: New file.
50727         * lib/unistdio/u16-sprintf.c: New file.
50728         * lib/unistdio/u16-vasnprintf.c: New file.
50729         * lib/unistdio/u16-vasprintf.c: New file.
50730         * lib/unistdio/u16-vsnprintf.c: New file.
50731         * lib/unistdio/u16-vsprintf.c: New file.
50732         * lib/unistdio/u16-u16-asnprintf.c: New file.
50733         * lib/unistdio/u16-u16-asprintf.c: New file.
50734         * lib/unistdio/u16-u16-snprintf.c: New file.
50735         * lib/unistdio/u16-u16-sprintf.c: New file.
50736         * lib/unistdio/u16-u16-vasnprintf.c: New file.
50737         * lib/unistdio/u16-u16-vasprintf.c: New file.
50738         * lib/unistdio/u16-u16-vsnprintf.c: New file.
50739         * lib/unistdio/u16-u16-vsprintf.c: New file.
50740         * lib/unistdio/u32-asnprintf.c: New file.
50741         * lib/unistdio/u32-asprintf.c: New file.
50742         * lib/unistdio/u32-printf-parse.c: New file.
50743         * lib/unistdio/u32-snprintf.c: New file.
50744         * lib/unistdio/u32-sprintf.c: New file.
50745         * lib/unistdio/u32-vasnprintf.c: New file.
50746         * lib/unistdio/u32-vasprintf.c: New file.
50747         * lib/unistdio/u32-vsnprintf.c: New file.
50748         * lib/unistdio/u32-vsprintf.c: New file.
50749         * lib/unistdio/u32-u32-asnprintf.c: New file.
50750         * lib/unistdio/u32-u32-asprintf.c: New file.
50751         * lib/unistdio/u32-u32-snprintf.c: New file.
50752         * lib/unistdio/u32-u32-sprintf.c: New file.
50753         * lib/unistdio/u32-u32-vasnprintf.c: New file.
50754         * lib/unistdio/u32-u32-vasprintf.c: New file.
50755         * lib/unistdio/u32-u32-vsnprintf.c: New file.
50756         * lib/unistdio/u32-u32-vsprintf.c: New file.
50757         * tests/unistdio/test-ulc-asnprintf1.c: New file.
50758         * tests/unistdio/test-ulc-asnprintf1.h: New file.
50759         * tests/unistdio/test-ulc-printf1.h: New file.
50760         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
50761         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
50762         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
50763         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
50764         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
50765         * tests/unistdio/test-ulc-vasprintf1.c: New file.
50766         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
50767         * tests/unistdio/test-ulc-vsprintf1.c: New file.
50768         * tests/unistdio/test-u8-asnprintf1.c: New file.
50769         * tests/unistdio/test-u8-asnprintf1.h: New file.
50770         * tests/unistdio/test-u8-printf1.h: New file.
50771         * tests/unistdio/test-u8-vasnprintf1.c: New file.
50772         * tests/unistdio/test-u8-vasnprintf2.c: New file.
50773         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
50774         * tests/unistdio/test-u8-vasnprintf3.c: New file.
50775         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
50776         * tests/unistdio/test-u8-vasprintf1.c: New file.
50777         * tests/unistdio/test-u8-vsnprintf1.c: New file.
50778         * tests/unistdio/test-u8-vsprintf1.c: New file.
50779         * tests/unistdio/test-u16-asnprintf1.c: New file.
50780         * tests/unistdio/test-u16-asnprintf1.h: New file.
50781         * tests/unistdio/test-u16-printf1.h: New file.
50782         * tests/unistdio/test-u16-vasnprintf1.c: New file.
50783         * tests/unistdio/test-u16-vasnprintf2.c: New file.
50784         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
50785         * tests/unistdio/test-u16-vasnprintf3.c: New file.
50786         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
50787         * tests/unistdio/test-u16-vasprintf1.c: New file.
50788         * tests/unistdio/test-u16-vsnprintf1.c: New file.
50789         * tests/unistdio/test-u16-vsprintf1.c: New file.
50790         * tests/unistdio/test-u32-asnprintf1.c: New file.
50791         * tests/unistdio/test-u32-asnprintf1.h: New file.
50792         * tests/unistdio/test-u32-printf1.h: New file.
50793         * tests/unistdio/test-u32-vasnprintf1.c: New file.
50794         * tests/unistdio/test-u32-vasnprintf2.c: New file.
50795         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
50796         * tests/unistdio/test-u32-vasnprintf3.c: New file.
50797         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
50798         * tests/unistdio/test-u32-vasprintf1.c: New file.
50799         * tests/unistdio/test-u32-vsnprintf1.c: New file.
50800         * tests/unistdio/test-u32-vsprintf1.c: New file.
50801         * modules/unistdio/base: New file.
50802         * modules/unistdio/u-printf-args: New file.
50803         * modules/unistdio/ulc-asnprintf: New file.
50804         * modules/unistdio/ulc-asprintf: New file.
50805         * modules/unistdio/ulc-fprintf: New file.
50806         * modules/unistdio/ulc-printf-parse: New file.
50807         * modules/unistdio/ulc-snprintf: New file.
50808         * modules/unistdio/ulc-sprintf: New file.
50809         * modules/unistdio/ulc-vasnprintf: New file.
50810         * modules/unistdio/ulc-vasprintf: New file.
50811         * modules/unistdio/ulc-vfprintf: New file.
50812         * modules/unistdio/ulc-vsnprintf: New file.
50813         * modules/unistdio/ulc-vsprintf: New file.
50814         * modules/unistdio/u8-asnprintf: New file.
50815         * modules/unistdio/u8-asprintf: New file.
50816         * modules/unistdio/u8-printf-parse: New file.
50817         * modules/unistdio/u8-snprintf: New file.
50818         * modules/unistdio/u8-sprintf: New file.
50819         * modules/unistdio/u8-vasnprintf: New file.
50820         * modules/unistdio/u8-vasprintf: New file.
50821         * modules/unistdio/u8-vsnprintf: New file.
50822         * modules/unistdio/u8-vsprintf: New file.
50823         * modules/unistdio/u8-u8-asnprintf: New file.
50824         * modules/unistdio/u8-u8-asprintf: New file.
50825         * modules/unistdio/u8-u8-snprintf: New file.
50826         * modules/unistdio/u8-u8-sprintf: New file.
50827         * modules/unistdio/u8-u8-vasnprintf: New file.
50828         * modules/unistdio/u8-u8-vasprintf: New file.
50829         * modules/unistdio/u8-u8-vsnprintf: New file.
50830         * modules/unistdio/u8-u8-vsprintf: New file.
50831         * modules/unistdio/u16-asnprintf: New file.
50832         * modules/unistdio/u16-asprintf: New file.
50833         * modules/unistdio/u16-printf-parse: New file.
50834         * modules/unistdio/u16-snprintf: New file.
50835         * modules/unistdio/u16-sprintf: New file.
50836         * modules/unistdio/u16-vasnprintf: New file.
50837         * modules/unistdio/u16-vasprintf: New file.
50838         * modules/unistdio/u16-vsnprintf: New file.
50839         * modules/unistdio/u16-vsprintf: New file.
50840         * modules/unistdio/u16-u16-asnprintf: New file.
50841         * modules/unistdio/u16-u16-asprintf: New file.
50842         * modules/unistdio/u16-u16-snprintf: New file.
50843         * modules/unistdio/u16-u16-sprintf: New file.
50844         * modules/unistdio/u16-u16-vasnprintf: New file.
50845         * modules/unistdio/u16-u16-vasprintf: New file.
50846         * modules/unistdio/u16-u16-vsnprintf: New file.
50847         * modules/unistdio/u16-u16-vsprintf: New file.
50848         * modules/unistdio/u32-asnprintf: New file.
50849         * modules/unistdio/u32-asprintf: New file.
50850         * modules/unistdio/u32-printf-parse: New file.
50851         * modules/unistdio/u32-snprintf: New file.
50852         * modules/unistdio/u32-sprintf: New file.
50853         * modules/unistdio/u32-vasnprintf: New file.
50854         * modules/unistdio/u32-vasprintf: New file.
50855         * modules/unistdio/u32-vsnprintf: New file.
50856         * modules/unistdio/u32-vsprintf: New file.
50857         * modules/unistdio/u32-u32-asnprintf: New file.
50858         * modules/unistdio/u32-u32-asprintf: New file.
50859         * modules/unistdio/u32-u32-snprintf: New file.
50860         * modules/unistdio/u32-u32-sprintf: New file.
50861         * modules/unistdio/u32-u32-vasnprintf: New file.
50862         * modules/unistdio/u32-u32-vasprintf: New file.
50863         * modules/unistdio/u32-u32-vsnprintf: New file.
50864         * modules/unistdio/u32-u32-vsprintf: New file.
50865         * modules/unistdio/ulc-asnprintf-tests: New file.
50866         * modules/unistdio/ulc-vasnprintf-tests: New file.
50867         * modules/unistdio/ulc-vasprintf-tests: New file.
50868         * modules/unistdio/ulc-vsnprintf-tests: New file.
50869         * modules/unistdio/ulc-vsprintf-tests: New file.
50870         * modules/unistdio/u8-asnprintf-tests: New file.
50871         * modules/unistdio/u8-vasnprintf-tests: New file.
50872         * modules/unistdio/u8-vasprintf-tests: New file.
50873         * modules/unistdio/u8-vsnprintf-tests: New file.
50874         * modules/unistdio/u8-vsprintf-tests: New file.
50875         * modules/unistdio/u16-asnprintf-tests: New file.
50876         * modules/unistdio/u16-vasnprintf-tests: New file.
50877         * modules/unistdio/u16-vasprintf-tests: New file.
50878         * modules/unistdio/u16-vsnprintf-tests: New file.
50879         * modules/unistdio/u16-vsprintf-tests: New file.
50880         * modules/unistdio/u32-asnprintf-tests: New file.
50881         * modules/unistdio/u32-vasnprintf-tests: New file.
50882         * modules/unistdio/u32-vasprintf-tests: New file.
50883         * modules/unistdio/u32-vsnprintf-tests: New file.
50884         * modules/unistdio/u32-vsprintf-tests: New file.
50885         * MODULES.html.sh (Unicode string functions): Add the new modules.
50886
50887 2007-07-01  Bruno Haible  <bruno@clisp.org>
50888
50889         * lib/sprintf.c (sprintf): Limit the available length estimation,
50890         to avoid address wraparound.
50891         * lib/vsprintf.c (vsprintf): Likewise.
50892         * modules/sprintf-posix (Dependencies): Add stdint.
50893         * modules/vsprintf-posix (Dependencies): Likewise.
50894
50895 2007-07-01  Bruno Haible  <bruno@clisp.org>
50896
50897         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
50898         Windows PATH as well. Conservative double-quoting. Comments.
50899
50900 2007-07-01  Bruno Haible  <bruno@clisp.org>
50901             Eric Blake  <ebb9@byu.net>
50902             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50903
50904         * gnulib-tool (self_abspathname): Fix algorithm to cope with
50905         empty components in $PATH, denoting '.'.
50906
50907 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50908
50909         * gnulib-tool: Fix indentation.
50910         (func_create_megatestdir): Likewise.
50911         Report by Bruno Haible.
50912
50913 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50914
50915         Sync from Automake.
50916         * build-aux/gnupload: Fix shell portability issues with for loops.
50917         Report by Karl Berry.
50918
50919 2007-06-29  Simon Josefsson  <simon@josefsson.org>
50920
50921         * build-aux/maint.mk (POURL): Use translationproject.org.
50922
50923 2007-06-27  Simon Josefsson  <simon@josefsson.org>
50924             Bruno Haible  <bruno@clisp.org>
50925
50926         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
50927         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
50928         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
50929         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
50930         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
50931
50932 2007-06-27  Bruno Haible  <bruno@clisp.org>
50933
50934         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
50935         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
50936
50937 2007-06-26  Karl Berry  <karl@gnu.org>
50938
50939         * MODULES.html.sh: remove xreadlink-with-size.
50940
50941 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50942
50943         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
50944         method that I hope also handles the double-include problem noted
50945         by Bruno Haible in
50946         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
50947
50948 2007-06-23  Bruno Haible  <bruno@clisp.org>
50949
50950         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50951         Don't let the 'mostlyclean' target fail if the last subdirectory could
50952         not be removed.
50953         Reported by Karl Berry.
50954
50955 2007-06-23  Bruno Haible  <bruno@clisp.org>
50956
50957         * gnulib-tool (echo): Add a speedier workaround for ksh.
50958         * tests/test-echo.sh: Likewise.
50959
50960 2007-06-23  Bruno Haible  <bruno@clisp.org>
50961
50962         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
50963         * tests/test-echo.sh: Likewise.
50964
50965 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50966
50967         * gnulib-tool (IFS): Initialize early, so we don't set it to
50968         empty later.
50969         (self_abspathname): Rewrite algorithm to set it, reindent.
50970         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
50971         (func_create_megatestdir): Merge some sed scripts.
50972
50973 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50974
50975         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
50976         exposed by Sun Studio 11 cc on Solaris 8.
50977
50978 2007-06-22  Bruno Haible  <bruno@clisp.org>
50979
50980         * gnulib-tool (echo): Ensure the echo primitive does not interpret
50981         backslashes.
50982         * tests/test-echo.sh: New file.
50983
50984 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50985
50986         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
50987         simplify `sed_replace_build_aux' scripts, they are portable but
50988         echoing them with `echo' is not.
50989         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
50990
50991 2007-06-21  Karl Berry  <karl@gnu.org>
50992
50993         * config/srclist.txt: guess we can't handle the licenses via
50994         srclist at the moment.
50995
50996 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50997
50998         * MODULES.html.sh: Add include_next.
50999         * modules/include_next: New file.
51000
51001 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51002
51003         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
51004         INCLUDE_NEXT.
51005         (gl_CHECK_NEXT_HEADERS): New macro.
51006         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
51007         the obsolescent gl_ABSOLUTE_HEADER.
51008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
51009         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
51010         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
51011         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51012         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
51013         * m4/math_h.m4 (gl_MATH_H): Likewise.
51014         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51015         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
51016         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
51017         * m4/stdint.m4 (gl_STDINT_H): Likewise.
51018         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
51019         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
51020         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
51021         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51022         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51023         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
51024         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
51025         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
51026         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
51027         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
51028         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
51029         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
51030         * m4/inttypes.m4 (gl_INTTYPES_H): Define
51031         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
51032         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
51033         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
51034         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
51035         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
51036         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
51037         * lib/float_.h: Likewise.
51038         * lib/inttypes_.h: Likewise.
51039         * lib/math_.h: Likewise.
51040         * lib/search_.h: Likewise.
51041         * lib/signal_.h: Likewise.
51042         * lib/stdint_.h: Likewise.
51043         * lib/stdio_.h: Likewise.
51044         * lib/stdlib_.h: Likewise.
51045         * lib/string_.h: Likewise.
51046         * lib/sys_stat_.h: Likewise.
51047         * lib/sys_time_.h: Likewise.
51048         * lib/time_.h: Likewise.
51049         * lib/unistd_.h: Likewise.
51050         * lib/wchar_.h: Likewise.
51051         * lib/wctype_.h: Likewise.
51052         * lib/dirent_.h: Likewise.
51053         * lib/iconv_.h: Likewise.
51054         * lib/locale_.h: Likewise.
51055         * lib/netinet_in_.h: Likewise.
51056         * lib/sys_select_.h: Likewise.
51057         * lib/sys_socket_.h: Likewise.
51058         * lib/sysexits_.h: Likewise.
51059         * modules/fcntl (Depends-on): Depend on include_next, not
51060         absolute_header.
51061         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
51062         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
51063         * modules/fchdir: Likewise.
51064         * modules/float: Likewise.
51065         * modules/iconv_open: Likewise.
51066         * modules/inttypes: Likewise.
51067         * modules/locale: Likewise.
51068         * modules/math: Likewise.
51069         * modules/netinet_in: Likewise.
51070         * modules/search: Likewise.
51071         * modules/signal: Likewise.
51072         * modules/stdint: Likewise.
51073         * modules/stdio: Likewise.
51074         * modules/stdlib: Likewise.
51075         * modules/string: Likewise.
51076         * modules/sys_select: Likewise.
51077         * modules/sys_socket: Likewise.
51078         * modules/sys_stat: Likewise.
51079         * modules/sys_time: Likewise.
51080         * modules/sysexits: Likewise.
51081         * modules/time: Likewise.
51082         * modules/unistd: Likewise.
51083         * modules/wchar: Likewise.
51084         * modules/wctype: Likewise.
51085         * modules/sys_stat: Change maintainer to "all".
51086         * modules/unistd: Likewise.
51087
51088 2007-06-20  Karl Berry  <karl@gnu.org>
51089
51090         * config/srclist.txt: track www changes in license files.
51091
51092 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
51093
51094         * build-aux/bootstrap: Remove stray dot.
51095         Make sure build_aux settings are honored when linking
51096         gnulib_extra_files.
51097
51098 2007-06-19  Eric Blake  <ebb9@byu.net>
51099
51100         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
51101         Allow compilation on cygwin.
51102
51103 2007-06-19  Jim Meyering  <jim@meyering.net>
51104
51105         xreadlink-with-size: Remove module.  No longer used.
51106         Ex-callers now use xreadlink or mreadlink-with-size.
51107         * modules/xreadlink-with-size: Remove module.
51108         * lib/xreadlink-with-size.c: Remove file.
51109         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
51110         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
51111         just before the function definition *is* accurate.
51112
51113         Eliminate one way canonicalize_filename_mode could exit.
51114         * lib/canonicalize.c (canonicalize_filename_mode):
51115         Use mreadlink_with_size, not xreadlink_with_size.
51116
51117 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
51118
51119         Detect porting problems to FreeBSD/arm, which has time_t wider than
51120         long int.  Original problem reported for GNU diff by Xin Li in
51121         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
51122         * modules/getdate (Depends-on): Add intprops, verify.
51123         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
51124         is an integer type no wider than long int.
51125
51126 2007-06-18  Jim Meyering  <jim@meyering.net>
51127
51128         New module: mreadlink-with-size.
51129         * MODULES.html.sh: Add mreadlink-with-size.
51130         * modules/mreadlink-with-size: New module
51131         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
51132         not xreadlink-with-size.
51133         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
51134
51135 2007-06-16  Bruno Haible  <bruno@clisp.org>
51136
51137         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
51138         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
51139         Reported by Gary V. Vaughan <gary@gnu.org>.
51140
51141 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51142
51143         Revamp lchown so that it lives in unistd.h where it belongs.
51144         * lib/lchown.h: Remove.
51145         * lib/dirchownmod.c: Don't include lib/lchown.h.
51146         * lib/fchownat.c: Likewise.
51147         * lib/openat.c: Likewise.
51148         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
51149         does not follow symlinks.
51150         (EOPNOTSUPP): Define if not defined.
51151         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
51152         is defined to 0.
51153         (lchown): New decl.
51154         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
51155         Do not check for lchown decl.
51156         Set REPLACE_LCHOWN.
51157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
51158         REPLACE_LCHOWN.
51159         * modules/chown: Make it clear it follows symlinks.
51160         * modules/lchown: Make it clear it doesn't follow symlinks.
51161         (Files): Remove lib/lchown.h
51162         (Depends-on): Add unistd.
51163         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
51164         (Include): Include <unistd.h>, not "lchown.h".
51165         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
51166         REPLACE_LCHOWN.
51167
51168 2007-06-15  Jim Meyering  <jim@meyering.net>
51169
51170         Change license (GPL to LGPL) of fsusage and dependents.
51171         * modules/fsusage (License): Change to LGPL.
51172         * modules/full-read (License): Likewise.
51173         * modules/full-write (License): Likewise.
51174         * modules/safe-read (License): Likewise.
51175         * modules/safe-write (License): Likewise.
51176
51177 2007-06-14  Ben Pfaff  <blp@gnu.org>
51178
51179         Missing part of allocsa -> malloca transition.
51180         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
51181         gl_MALLOCA.
51182
51183 2007-06-12  Bruno Haible  <bruno@clisp.org>
51184
51185         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
51186         to ia64, x86_64, i386.
51187         Reported by Eric Blake.
51188
51189 2007-06-12  Bruno Haible  <bruno@clisp.org>
51190
51191         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
51192         cross-compiling to x86_64.
51193
51194 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
51195
51196         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
51197         glitch reported by Ralf Wildenhues in
51198         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
51199
51200         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
51201         Vin Shelton.
51202
51203 2007-06-11  Bruno Haible  <bruno@clisp.org>
51204
51205         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
51206         replacement string.
51207         Reported by Eric Blake.
51208
51209 2007-06-10  Bruno Haible  <bruno@clisp.org>
51210
51211         Prepare vasnprintf code for use with Unicode strings.
51212         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
51213         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
51214         TYPE_U32_STRING.
51215         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
51216         a_u32_string variants.
51217         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51218         * lib/printf-args.c: Don't include config.h and the specification
51219         header if PRINTF_FETCHARGS is already defined.
51220         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
51221         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
51222         TYPE_U16_STRING, TYPE_U32_STRING.
51223         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
51224         u16_directive, u16_directives, u32_directive, u32_directives): New
51225         types.
51226         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
51227         New declarations.
51228         * lib/printf-parse.c: Don't include config.h and the specification
51229         header if PRINTF_PARSE is already defined. Eliminate the set of
51230         parameters for WIDE_CHAR_VERSION; the user of this file must provide
51231         them now. Include c-ctype.h.
51232         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
51233         directive and CHAR_T_ONLY_ASCII.
51234         * lib/vasnprintf.c: Don't include config.h and the specification header
51235         if VASNPRINTF is already defined.
51236         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
51237         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
51238         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
51239         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
51240         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
51241         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
51242         code accordingly.
51243         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
51244         pad_ourselves also in this case, with the 'c' and 's' directives, and
51245         with a different notion of "width".
51246         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
51247
51248 2007-06-10  Bruno Haible  <bruno@clisp.org>
51249
51250         * modules/unistr/u32-mbsnlen: New file.
51251         * lib/unistr/u32-mbsnlen.c: New file.
51252
51253         * modules/unistr/u16-mbsnlen: New file.
51254         * lib/unistr/u16-mbsnlen.c: New file.
51255
51256         * modules/unistr/u8-mbsnlen: New file.
51257         * lib/unistr/u8-mbsnlen.c: New file.
51258
51259         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
51260         declarations.
51261
51262 2007-06-10  Bruno Haible  <bruno@clisp.org>
51263
51264         * lib/string_.h (mbsnlen): New declaration.
51265         * lib/mbsnlen.c: New file.
51266         * m4/mbsnlen.m4: New file.
51267         * modules/mbsnlen: New file.
51268         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
51269         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
51270         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
51271
51272 2007-06-10  Bruno Haible  <bruno@clisp.org>
51273
51274         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
51275
51276 2007-06-10  Bruno Haible  <bruno@clisp.org>
51277
51278         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
51279         * lib/mbuiter.h: Likewise.
51280
51281 2007-06-10  Bruno Haible  <bruno@clisp.org>
51282
51283         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
51284         declaration.
51285
51286 2007-06-10  Karl Berry  <karl@gnu.org>
51287
51288         * config/srclist.txt: remove gettext entries, Bruno prefers
51289         to update individually.
51290
51291 2007-06-10  Bruno Haible  <bruno@clisp.org>
51292
51293         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
51294         'maxlen'. Ensure only length + width bytes are allocated, not
51295         length + 1 + width.
51296
51297 2007-06-09  Bruno Haible  <bruno@clisp.org>
51298
51299         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
51300         (CHAR_T): Remove macro.
51301         (VASNPRINTF): Update.
51302
51303 2007-06-09  Bruno Haible  <bruno@clisp.org>
51304
51305         * MODULES.html.sh (Unicode string functions): Add the new modules.
51306
51307         * modules/uniconv/u32-conv-to-enc: New file.
51308         * lib/uniconv/u32-conv-to-enc.c: New file.
51309         * modules/uniconv/u32-conv-to-enc-tests: New file.
51310         * tests/uniconv/test-u32-conv-to-enc.c: New file.
51311
51312         * modules/uniconv/u16-conv-to-enc: New file.
51313         * lib/uniconv/u16-conv-to-enc.c: New file.
51314         * lib/uniconv/u-conv-to-enc.h: New file.
51315         * modules/uniconv/u16-conv-to-enc-tests: New file.
51316         * tests/uniconv/test-u16-conv-to-enc.c: New file.
51317
51318         * modules/uniconv/u8-conv-to-enc: New file.
51319         * lib/uniconv/u8-conv-to-enc.c: New file.
51320         * modules/uniconv/u8-conv-to-enc-tests: New file.
51321         * tests/uniconv/test-u8-conv-to-enc.c: New file.
51322
51323         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
51324         u32_conv_to_encoding): New declarations.
51325
51326 2007-06-09  Bruno Haible  <bruno@clisp.org>
51327
51328         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
51329
51330 2007-06-09  Bruno Haible  <bruno@clisp.org>
51331
51332         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
51333         * modules/malloca: Renamed from modules/allocsa, updated.
51334         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
51335         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
51336         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
51337         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
51338         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
51339         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
51340         * modules/xmalloca: Renamed from modules/xallocsa, updated.
51341         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
51342         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
51343         * modules/c-strcasestr (Depends-on): Update.
51344         * lib/c-strcasestr.c: Update.
51345         * modules/c-strstr (Depends-on): Update.
51346         * lib/c-strstr.c: Update.
51347         * modules/canonicalize-lgpl (Depends-on): Update.
51348         * lib/canonicalize-lgpl.c: Update.
51349         * modules/clean-temp (Depends-on): Update.
51350         * lib/clean-temp.c: Update.
51351         * modules/csharpcomp (Depends-on): Update.
51352         * lib/csharpcomp.c: Update.
51353         * modules/csharpexec (Depends-on): Update.
51354         * lib/csharpexec.c: Update.
51355         * modules/javacomp (Depends-on): Update.
51356         * lib/javacomp.c: Update.
51357         * modules/javaexec (Depends-on): Update.
51358         * lib/javaexec.c: Update.
51359         * modules/mbscasestr (Depends-on): Update.
51360         * lib/mbscasestr.c: Update.
51361         * modules/mbsstr (Depends-on): Update.
51362         * lib/mbsstr.c: Update.
51363         * modules/setenv (Depends-on): Update.
51364         * lib/setenv.c: Update.
51365         * modules/strcasestr (Depends-on): Update.
51366         * lib/strcasestr.c: Update.
51367         * modules/striconveha (Depends-on): Update.
51368         * lib/striconveha.c: Update.
51369         * modules/relocatable-prog-wrapper (Files): Update.
51370         * lib/relocwrapper.c: Update.
51371         * build-aux/install-reloc: Update.
51372         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
51373
51374 2007-06-08  Bruno Haible  <bruno@clisp.org>
51375
51376         Port to uClibc.
51377         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
51378         * lib/fpurge.c (fpurge): Likewise.
51379         * lib/freading.c (freading): Likewise.
51380         * lib/fseeko.c (rpl_fseeko): Likewise.
51381         * lib/fseterr.c (fseterr): Likewise.
51382         * lib/fwriting.c (fwriting): Likewise.
51383         * tests/test-fflush.c (main): Avoid a failure on uClibc.
51384
51385 2007-06-08  Bruno Haible  <bruno@clisp.org>
51386
51387         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
51388         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
51389         * modules/gettext (Files): Add m4/intlmacosx.m4.
51390
51391 2007-06-07  Bruno Haible  <bruno@clisp.org>
51392
51393         * modules/localename-tests: New file.
51394         * tests/test-localename.c: New file.
51395
51396         New module 'localename'.
51397         * lib/localename.h: New file.
51398         * lib/localename.c: New file, from GNU gettext.
51399         * m4/localename.m4: New file.
51400         * modules/localename: New file.
51401
51402 2007-06-07  Bruno Haible  <bruno@clisp.org>
51403
51404         Work around the lack of <wchar.h> on some builds of uClibc.
51405         * doc/headers/wchar.texi: Update.
51406         * lib/wchar_.h: Include <wchar.h> only if it exists.
51407         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
51408         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
51409         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
51410         doesn't exist.
51411         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
51412         * modules/mbfile (Depends-on): Add wchar.
51413         * modules/mbiter (Depends-on): Likewise.
51414         * modules/mbuiter (Depends-on): Likewise.
51415         Reported by Simon Josefsson.
51416
51417 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51418
51419         Work around problem reported by Steven M. Schweda in
51420         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
51421         Tru64 5.1B with the Compaq compiler environment installed declares
51422         an 'isblank' function but does not define it in the C library.
51423         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
51424         * lib/regex_internal.h (isblank): Likewise.
51425         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
51426         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
51427
51428 2007-06-05  Bruno Haible  <bruno@clisp.org>
51429
51430         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
51431         ia64.
51432         * modules/printf-safe: New file.
51433         * modules/fprintf-posix (Depends-on): Add printf-safe.
51434         * modules/printf-posix (Depends-on): Likewise.
51435         * modules/snprintf-posix (Depends-on): Likewise.
51436         * modules/sprintf-posix (Depends-on): Likewise.
51437         * modules/vasnprintf-posix (Depends-on): Likewise.
51438         * modules/vasprintf-posix (Depends-on): Likewise.
51439         * modules/vfprintf-posix (Depends-on): Likewise.
51440         * modules/vprintf-posix (Depends-on): Likewise.
51441         * modules/vsnprintf-posix (Depends-on): Likewise.
51442         * modules/vsprintf-posix (Depends-on): Likewise.
51443         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
51444         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
51445         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
51446         "no" on i386, x86_64, ia64.
51447         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
51448         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51449         on i386, x86_64, ia64.
51450         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
51451         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51452         on i386, x86_64, ia64.
51453         * tests/test-vasnprintf-posix.c: Include float.h.
51454         (LDBL80_WORDS): New macro.
51455         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51456         on i386, x86_64, ia64.
51457         * tests/test-vasprintf-posix.c: Include float.h.
51458         (LDBL80_WORDS): New macro.
51459         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
51460         on i386, x86_64, ia64.
51461         * tests/test-snprintf-posix.c: Include float.h.
51462         * tests/test-sprintf-posix.c: Likewise.
51463         * tests/test-vsnprintf-posix.c: Likewise.
51464         * tests/test-vsprintf-posix.c: Likewise.
51465
51466 2007-06-05  Bruno Haible  <bruno@clisp.org>
51467
51468         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
51469         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
51470         non-IEEE numbers on i386, x86_64, ia64.
51471         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
51472         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
51473         * tests/test-isnanl.h: Include float.h.
51474         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
51475
51476 2007-06-05  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
51479         also the %a / %A. Handle the %a / %A code before this extra handling.
51480
51481 2007-06-05  Bruno Haible  <bruno@clisp.org>
51482
51483         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
51484         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
51485
51486 2007-06-05  Bruno Haible  <bruno@clisp.org>
51487
51488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
51489         typo in variable name.
51490
51491 2007-06-05  Eric Blake  <ebb9@byu.net>
51492
51493         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
51494         Reported by Simon Josefsson.
51495
51496 2007-06-04  Bruno Haible  <bruno@clisp.org>
51497
51498         Avoid test failures on some PowerPC platforms.
51499         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
51500         Define differently for PowerPC.
51501         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
51502         Reported by Gary V. Vaughan <gary@gnu.org>.
51503
51504 2007-06-02  Bruno Haible  <bruno@clisp.org>
51505
51506         Fix test-stdint failure on FreeBSD/ia64.
51507         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
51508         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
51509         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
51510         * doc/headers/stdint.texi: Update.
51511
51512 2007-06-01  Bruno Haible  <bruno@clisp.org>
51513
51514         * tests/test-binary-io.c (main): Pass a third argument to open().
51515         Reported by Gary V. Vaughan <gary@gnu.org>.
51516
51517 2007-06-01  Bruno Haible  <bruno@clisp.org>
51518
51519         * doc/functions/frexpl.texi: Update for mingw.
51520
51521 2007-06-01  Bruno Haible  <bruno@clisp.org>
51522
51523         * tests/test-lseek.c (main): Disable test of errno for invalid third
51524         argument.
51525         * doc/functions/lseek.texi: Update.
51526         Reported by Gary V. Vaughan <gary@gnu.org>.
51527
51528 2007-05-28  Bruno Haible  <bruno@clisp.org>
51529
51530         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
51531
51532 2007-05-31  Eric Blake  <ebb9@byu.net>
51533
51534         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
51535         cross compiling.
51536
51537 2007-05-30  Eric Blake  <ebb9@byu.net>
51538         and Bruno Haible  <bruno@clisp.org>
51539
51540         Work around mingw test failures exposed by m4-1.4.9b.
51541         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
51542         * tests/test-unistd.c: Disable uid_t and git_t tests for the
51543         moment.
51544
51545 2007-05-30  Bruno Haible  <bruno@clisp.org>
51546
51547         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
51548         assuming that they are closed. Needed on HP-UX 11.
51549
51550 2007-05-29  Bruno Haible  <bruno@clisp.org>
51551
51552         Fix a problem with #include_next.
51553         * lib/dirent_.h: Split the double-inclusion guard.
51554         * lib/fcntl_.h: Likewise.
51555         * lib/float_.h: Likewise.
51556         * lib/iconv_.h: Likewise.
51557         * lib/inttypes_.h: Likewise.
51558         * lib/locale_.h: Likewise.
51559         * lib/math_.h: Likewise.
51560         * lib/netinet_in_.h: Likewise.
51561         * lib/search_.h: Likewise.
51562         * lib/signal_.h: Likewise.
51563         * lib/stdint_.h: Likewise.
51564         * lib/stdio_.h: Likewise.
51565         * lib/stdlib_.h: Likewise.
51566         * lib/string_.h: Likewise.
51567         * lib/sys_select_.h: Likewise.
51568         * lib/sys_socket_.h: Likewise.
51569         * lib/sys_stat_.h: Likewise.
51570         * lib/sys_time_.h: Likewise.
51571         * lib/sysexits_.h: Likewise.
51572         * lib/time_.h: Likewise.
51573         * lib/unistd_.h: Likewise.
51574         * lib/wchar_.h: Likewise.
51575         * lib/wctype_.h: Likewise.
51576
51577 2007-05-29  Bruno Haible  <bruno@clisp.org>
51578
51579         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
51580         for the moment.
51581
51582 2007-05-29  Bruno Haible  <bruno@clisp.org>
51583
51584         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
51585         invocation.
51586         Reported by Eric Blake.
51587
51588 2007-05-29  Bruno Haible  <bruno@clisp.org>
51589
51590         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
51591         compiling case.
51592
51593 2007-05-29  Eric Blake  <ebb9@byu.net>
51594             Bruno Haible  <bruno@clisp.org>
51595
51596         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
51597         cross compiles.
51598
51599 2007-05-28  Eric Blake  <ebb9@byu.net>
51600
51601         * modules/closein-tests (test_closein_LDADD): Support test on
51602         cygwin with libtool.
51603
51604 2007-05-28  Bruno Haible  <bruno@clisp.org>
51605
51606         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
51607         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51608         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51609         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51610         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51611         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51612         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51613         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51614         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51615
51616 2007-05-28  Eric Blake  <ebb9@byu.net>
51617
51618         Unconditionally include <config.h> in unit tests.
51619         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
51620         * tests/test-allocsa.c, tests/test-arcfour.c,
51621         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
51622         tests/test-array_list.c, tests/test-array_oset.c,
51623         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
51624         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
51625         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
51626         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
51627         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
51628         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
51629         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
51630         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
51631         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
51632         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
51633         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
51634         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
51635         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
51636         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
51637         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
51638         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
51639         test-md5.c, test-memmem.c, test-printf-posix.c,
51640         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
51641         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
51642         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
51643         test-strcasestr.c, test-striconv.c, test-striconveh.c,
51644         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
51645         test-vasnprintf-posix2.c, test-vasnprintf.c,
51646         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
51647         test-vfprintf-posix.c, test-vprintf-posix.c,
51648         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
51649         test-xvasprintf.c: Likewise.
51650
51651 2007-05-28  Bruno Haible  <bruno@clisp.org>
51652
51653         * gnulib-tool (func_import): Remember the --with-tests command-line
51654         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
51655         Reported by Eric Blake.
51656
51657 2007-05-28  Bruno Haible  <bruno@clisp.org>
51658
51659         * modules/ftell-tests: New file.
51660         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
51661         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
51662
51663         * lib/ftell.c: New file.
51664         * modules/ftell: New file.
51665         * m4/ftell.m4: New file.
51666         * doc/functions/ftell.texi: Update.
51667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
51668         REPLACE_FTELL.
51669         * lib/stdio_.h (rpl_ftell): New declaration.
51670         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
51671         REPLACE_FTELL.
51672
51673 2007-05-28  Eric Blake  <ebb9@byu.net>
51674
51675         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
51676
51677 2007-05-28  Bruno Haible  <bruno@clisp.org>
51678
51679         * modules/fseek-tests: New file.
51680         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
51681         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
51682
51683         * lib/fseek.c: New file.
51684         * modules/fseek: New file.
51685         * m4/fseek.m4: New file.
51686         * doc/functions/fseek.texi: Update.
51687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
51688         REPLACE_FSEEK.
51689         * lib/stdio_.h (rpl_fseek): New declaration.
51690         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
51691         REPLACE_FSEEK.
51692
51693 2007-05-28  Bruno Haible  <bruno@clisp.org>
51694
51695         * lib/stdio_.h (fflush): More comments.
51696
51697 2007-05-28  Bruno Haible  <bruno@clisp.org>
51698
51699         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
51700         runtime test.
51701
51702 2007-05-28  Eric Blake  <ebb9@byu.net>
51703
51704         Improve lseek module.
51705         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
51706         * lib/unistd_.h (lseek): Scale back link warning message.
51707         * tests/test-lseek.c: Beef up test.
51708         * tests/test-lseek.sh: Exercise more facets of lseek.
51709         Reported by Bruno Haible.
51710
51711 2007-05-28  Bruno Haible  <bruno@clisp.org>
51712
51713         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
51714         to define.
51715
51716 2007-05-27  Bruno Haible  <bruno@clisp.org>
51717
51718         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
51719
51720 2007-05-27  Bruno Haible  <bruno@clisp.org>
51721
51722         * modules/openmp: New file.
51723         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
51724         Noah Misch.
51725
51726 2007-05-26  Bruno Haible  <bruno@clisp.org>
51727
51728         * modules/chdir-long (Depends-on): Add fchdir.
51729         * modules/chdir-safer (Depends-on): Likewise.
51730         * modules/fts (Depends-on): Likewise.
51731         * modules/fts-lgpl (Depends-on): Likewise.
51732         * modules/openat (Depends-on): Likewise.
51733         * modules/savewd (Depends-on): Likewise.
51734
51735 2007-05-24  Eric Blake  <ebb9@byu.net>
51736
51737         Fix lseek on mingw.
51738         * modules/lseek: New module.
51739         * m4/lseek.m4: New file.
51740         * lib/lseek.c: New file.
51741         * modules/lseek-tests: New file.
51742         * tests/test-lseek.c: New file.
51743         * tests/test-lseek.sh: New file.
51744         * MODULES.html.sh: Document lseek module.
51745         * modules/fflush (Depends-on): Add lseek, fseeko.
51746         * modules/fseeko (Depends-on): Likewise.
51747         * modules/ftello (Depends-on): Likewise.
51748         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
51749         broken.
51750         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
51751         broken.
51752         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
51753         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
51754         * lib/ftello.c (rpl_ftello): Likewise.
51755         * tests/test-fseeko.c (main): Test this.
51756         * tests/test-fseeko.sh: Likewise.
51757         * tests/test-ftello.c (main): Likewise.
51758         * tests/test-ftello.sh: Likewise.
51759         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
51760         implies replacing fseek.
51761         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
51762         HAVE_FTELLO.
51763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
51764         * modules/unistd (Makefile.am): Likewise.
51765         * lib/unistd_.h (lseek): Declare a replacement.
51766         * doc/functions/lseek.texi (lseek): Document this fix.
51767         * doc/functions/fseek.texi (fseek): Likewise.
51768         * doc/functions/ftell.texi (ftell): Likewise.
51769
51770 2007-05-24  Bruno Haible  <bruno@clisp.org>
51771
51772         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
51773         in the printed representation of a NaN.
51774         * tests/test-vasprintf-posix.c (test_function): Likewise.
51775         * tests/test-snprintf-posix.h (test_function): Likewise.
51776         * tests/test-sprintf-posix.h (test_function): Likewise.
51777         Reported by Eric Blake.
51778
51779 2007-05-23  Eric Blake  <ebb9@byu.net>
51780
51781         Fix fseeko/ftello on cygwin 1.5.24.
51782         * doc/functions/fseeko.texi (fseeko): Document the fix.
51783         * doc/functions/ftello.texi (ftello): Document the fix.
51784         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
51785         * doc/functions/stdout.text (stdout): New file.
51786         * doc/functions/stderr.text (stderr): New file.
51787         * doc/gnulib.texi (Function Substitutes): Use new files.
51788         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
51789         prior to 1.7.0.
51790         * tests/test-ftello.c (main): Likewise for ftello.
51791         * tests/test-fseeko.sh: New file.
51792         * tests/test-ftello.sh: New file.
51793         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
51794         with seekable stdin.
51795         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
51796         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
51797         (gl_REPLACE_FSEEKO): New macro.
51798         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
51799         * modules/fseeko (Files): Distribute fseeko.c.
51800         * modules/ftello (Files): Distribute ftello.c.
51801         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
51802         mode.
51803         * lib/ftello.c (rpl_ftello): New file.
51804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
51805         fseeko, ftello.
51806         (gl_STDIN_LARGE_OFFSET): New macro.
51807         * modules/stdio (Makefile.am): Perform the replacement.
51808         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
51809
51810 2007-05-23  Bruno Haible  <bruno@clisp.org>
51811
51812         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
51813         GNULIB_POSIXCHECK is defined.
51814
51815 2007-05-21  Bruno Haible  <bruno@clisp.org>
51816
51817         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
51818         Check also the output for NaN arguments. When cross-compiling, guess
51819         no on IRIX.
51820         * lib/vasnprintf.c: Update comments.
51821         * tests/test-vasnprintf-posix.c (strisnan): New function.
51822         (test_function): Use it.
51823         * tests/test-vasprintf-posix.c (strisnan): New function.
51824         (test_function): Use it.
51825         * tests/test-snprintf-posix.h (strisnan): New function.
51826         (test_function): Use it.
51827         * tests/test-sprintf-posix.h (strisnan): New function.
51828         (test_function): Use it.
51829         Reported by Eric Blake.
51830
51831 2007-05-20  Bruno Haible  <bruno@clisp.org>
51832
51833         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
51834         numbers that fails on BeOS.
51835         * doc/functions/frexpl.texi: Update.
51836
51837 2007-05-20  Jim Meyering  <jim@meyering.net>
51838
51839         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
51840         forced upon us by glibc-2.6.
51841
51842 2007-05-20  Bruno Haible  <bruno@clisp.org>
51843
51844         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
51845         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
51846         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
51847         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
51848         NEED_PRINTF_INFINITE.
51849         (is_infinitel): New function.
51850         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
51851         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
51852         gl_PREREQ_VASNPRINTF_INFINITE.
51853         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
51854         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51855         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
51856         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
51857         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
51858         gl_PREREQ_VASNPRINTF_INFINITE.
51859         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51860         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51861         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51862         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51863         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51864         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51865         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51866         * doc/functions/fprintf.texi: Update.
51867         * doc/functions/printf.texi: Update.
51868         * doc/functions/snprintf.texi: Update.
51869         * doc/functions/sprintf.texi: Update.
51870         * doc/functions/vfprintf.texi: Update.
51871         * doc/functions/vprintf.texi: Update.
51872         * doc/functions/vsnprintf.texi: Update.
51873         * doc/functions/vsprintf.texi: Update.
51874
51875 2007-05-20  Bruno Haible  <bruno@clisp.org>
51876
51877         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
51878         was not found in libc.
51879         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51880
51881 2007-05-20  Bruno Haible  <bruno@clisp.org>
51882
51883         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51884         printed as "-nan" instead of "nan".
51885         * tests/test-vasprintf-posix.c (test_function): Likewise.
51886         * tests/test-snprintf-posix.h (test_function): Likewise.
51887         * tests/test-sprintf-posix.h (test_function): Likewise.
51888         Needed for HP-UX 11.
51889
51890 2007-05-20  Jim Meyering  <jim@meyering.net>
51891
51892         Fix buggy test for the fchownat-deref bug.
51893         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
51894         symlink required for the run-test.  Without it, this test would
51895         always declare that fchownat doesn't work, and client code would
51896         unnecessarily use the replacement function with fixed libc.
51897         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
51898         Reported by Greg Schafer.
51899
51900 2007-05-19  Bruno Haible  <bruno@clisp.org>
51901
51902         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
51903         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
51904         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
51905         Needed for IRIX 6.5 and Solaris 2.5.1.
51906
51907 2007-05-19  Bruno Haible  <bruno@clisp.org>
51908
51909         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
51910         (test_function): Skip tests involving -0.0 on platforms where
51911         -0.0 = 0.0.
51912         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
51913         (test_function): Skip tests involving -0.0 on platforms where
51914         -0.0 = 0.0.
51915         * tests/test-snprintf-posix.h (have_minus_zero): New function.
51916         (test_function): Skip tests involving -0.0 on platforms where
51917         -0.0 = 0.0.
51918         * tests/test-sprintf-posix.h (have_minus_zero): New function.
51919         (test_function): Skip tests involving -0.0 on platforms where
51920         -0.0 = 0.0.
51921         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
51922         tests.
51923         * tests/test-printf-posix.h (test_function): Likewise.
51924         * tests/test-printf-posix.output: Remove all -0.0 related results.
51925         Needed for IRIX 6.5.
51926
51927 2007-05-19  Bruno Haible  <bruno@clisp.org>
51928
51929         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
51930         printed as "nan0x7fffffff" instead of "nan".
51931         * tests/test-vasprintf-posix.c (test_function): Likewise.
51932         * tests/test-snprintf-posix.h (test_function): Likewise.
51933         * tests/test-sprintf-posix.h (test_function): Likewise.
51934         * tests/test-fprintf-posix.h (NaN): Remove macro.
51935         (test_function): Remove all NaN related tests.
51936         * tests/test-printf-posix.h (NaN): Remove macro.
51937         (test_function): Remove all NaN related tests.
51938         * tests/test-printf-posix.output: Remove all NaN related results.
51939         Needed for IRIX 6.5.
51940
51941 2007-05-19  Bruno Haible  <bruno@clisp.org>
51942
51943         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
51944         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
51945
51946 2007-05-19  Bruno Haible  <bruno@clisp.org>
51947
51948         * lib/float_.h: New file.
51949         * m4/float_h.m4: New file.
51950         * modules/float: New file.
51951         * modules/isnanl (Dependencies): Add float.
51952         * modules/isnanl-nolibm (Dependencies): Likewise.
51953         * modules/mathl (Dependencies): Likewise.
51954         * modules/printf-frexpl (Dependencies): Likewise.
51955         * modules/signbit (Dependencies): Likewise.
51956         * modules/vasnprintf (Dependencies): Likewise.
51957         * doc/headers/float.texi: Update.
51958
51959 2007-05-19  Jim Meyering  <jim@meyering.net>
51960
51961         * lib/utimens.c (gl_futimens): Rename from futimens,
51962         now that glibc-2.6 declares futimens.
51963         * lib/utimens.h: Likewise.
51964
51965 2007-05-19  Bruno Haible  <bruno@clisp.org>
51966
51967         Avoid test failures on mingw.
51968         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
51969         * tests/test-printf-posix.sh: Likewise.
51970         * tests/test-vfprintf-posix.sh: Likewise.
51971         * tests/test-vprintf-posix.sh: Likewise.
51972
51973 2007-05-19  Bruno Haible  <bruno@clisp.org>
51974
51975         Fix *printf result for NaN, Inf, -0.0 on mingw.
51976         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
51977         * lib/vasnprintf.c: Include math.h and isnan.h.
51978         (is_infinite_or_zero): New function.
51979         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
51980         values in the %f, %F, %e, %E, %g, %G directives.
51981         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
51982         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51983         gl_PRINTF_INFINITE and test its result. Invoke
51984         gl_PREREQ_VASNPRINTF_INFINITE.
51985         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51986         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51987         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51988         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51989         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51991         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51992         * doc/functions/fprintf.texi: Update.
51993         * doc/functions/printf.texi: Update.
51994         * doc/functions/snprintf.texi: Update.
51995         * doc/functions/sprintf.texi: Update.
51996         * doc/functions/vfprintf.texi: Update.
51997         * doc/functions/vprintf.texi: Update.
51998         * doc/functions/vsnprintf.texi: Update.
51999         * doc/functions/vsprintf.texi: Update.
52000
52001 2007-05-19  Bruno Haible  <bruno@clisp.org>
52002
52003         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
52004         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
52005         Instead of multiplying with 10^k, set extra_zeroes to k.
52006         (scale10_round_long_double): Remove function.
52007
52008 2007-05-18  Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
52011         introduced on 2007-05-06.
52012
52013 2007-05-18  Bruno Haible  <bruno@clisp.org>
52014
52015         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
52016         %g directives.
52017         * tests/test-vasprintf-posix.c (test_function): Likewise.
52018         * tests/test-snprintf-posix.h (test_function): Likewise.
52019         * tests/test-sprintf-posix.h (test_function): Likewise.
52020
52021 2007-05-18  Bruno Haible  <bruno@clisp.org>
52022
52023         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
52024         (strmatch): New function.
52025         (test_function): Test the %f directive on numbers of various exponents.
52026         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
52027         (strmatch): New function.
52028         (test_function): Test the %f directive on numbers of various exponents.
52029         * tests/test-snprintf-posix.h (strmatch): New function.
52030         (test_function): Test the %f directive on numbers of various exponents.
52031         * tests/test-sprintf-posix.h (strmatch): New function.
52032         (test_function): Test the %f directive on numbers of various exponents.
52033         * tests/test-snprintf-posix.c (SIZEOF): New macro.
52034         * tests/test-sprintf-posix.c (SIZEOF): New macro.
52035         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
52036         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
52037
52038 2007-05-18  Bruno Haible  <bruno@clisp.org>
52039
52040         Add support for 'long double' number output.
52041         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
52042         * lib/vasnprintf.c: Include math.h and float+.h.
52043         (mp_limb_t): New type.
52044         (GMP_LIMB_BITS): New macro.
52045         (mp_twolimb_t): New type.
52046         (GMP_TWOLIMB_BITS): New macro.
52047         (mpn_t): New type.
52048         (multiply, divide, convert_to_decimal, decode_long_double,
52049         scale10_round_long_double, scale10_round_decimal_long_double,
52050         floorlog10l): New functions.
52051         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
52052         for the %f, %F, %e, %E, %g, %G directives.
52053         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
52054         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52055         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
52056         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
52057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52058         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52059         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52060         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52061         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52062         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52063         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52064         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
52065         * modules/snprintf-posix (Depends-on): Likewise.
52066         * modules/sprintf-posix (Depends-on): Likewise.
52067         * modules/vasnprintf-posix (Depends-on): Likewise.
52068         * modules/vasprintf-posix (Depends-on): Likewise.
52069         * modules/vfprintf-posix (Depends-on): Likewise.
52070         * modules/vsnprintf-posix (Depends-on): Likewise.
52071         * modules/vsprintf-posix (Depends-on): Likewise.
52072         * modules/vasnprintf (Files): Add lib/float+.h.
52073         * doc/functions/fprintf.texi: Update.
52074         * doc/functions/printf.texi: Update.
52075         * doc/functions/snprintf.texi: Update.
52076         * doc/functions/sprintf.texi: Update.
52077         * doc/functions/vfprintf.texi: Update.
52078         * doc/functions/vprintf.texi: Update.
52079         * doc/functions/vsnprintf.texi: Update.
52080         * doc/functions/vsprintf.texi: Update.
52081
52082 2007-05-18  Bruno Haible  <bruno@clisp.org>
52083
52084         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
52085
52086 2007-05-18  Bruno Haible  <bruno@clisp.org>
52087
52088         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
52089         for printing 64-bit integers. Needed for mingw.
52090
52091 2007-05-18  Bruno Haible  <bruno@clisp.org>
52092
52093         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52094         gl_FUNC_FREXPL_WORKS.
52095         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
52096
52097 2007-05-18  Bruno Haible  <bruno@clisp.org>
52098
52099         * modules/frexpl-nolibm-tests: New file.
52100
52101         * modules/frexpl-nolibm: New file.
52102         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
52103
52104 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52105
52106         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
52107         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52108         GCC 4.2, which otherwise issues a lot of warnings.
52109         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
52110         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
52111         Likewise.
52112         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
52113         * modules/iconv_open (iconv.h): Likewise.
52114         * modules/locale (locale.h): Likewise.
52115         * modules/netinet_in (netinet/in.h): Likewise.
52116         * modules/sys_select (sys_select.h): Likewise.
52117         * modules/sys_socket (sys/socket.h): Likewise.
52118         * modules/sys_stat (sys/stat.h): Likewise.
52119         * modules/sysexits (sysexits.h): Likewise.
52120         * modules/unistd (unistd.h): Likewise.
52121
52122 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52123
52124         * modules/closein-tests (Makefile.am): Distribute
52125         `test-closein.sh'.
52126
52127 2007-05-17  Bruno Haible  <bruno@clisp.org>
52128
52129         * tests/test-printf-posix.output: Renamed from
52130         tests/test-fprintf-posix.out.
52131         * modules/fprintf-posix-tests: Update.
52132         * modules/printf-posix-tests: Update.
52133         * modules/vfprintf-posix-tests: Update.
52134         * modules/vprintf-posix-tests: Update.
52135         * tests/test-fprintf-posix.sh: Update.
52136         * tests/test-printf-posix.sh: Update.
52137         * tests/test-vfprintf-posix.sh: Update.
52138         * tests/test-vprintf-posix.sh: Update.
52139         Reported by Ralf Wildenhues.
52140
52141 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52142
52143         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
52144         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
52145         GCC 4.2, which otherwise issues a lot of warnings.
52146         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
52147         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
52148         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
52149         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
52150         it should no longer be needed.
52151         * lib/string_.h: Likewise.
52152         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
52153         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
52154         * modules/inttypes (inttypes.h): Likewise.
52155         * modules/math (math.h): Likewise.
52156         * modules/search (search.h): Likewise.
52157         * modules/signal (signal.h): Likewise.
52158         * modules/stdint (stdint.h): Likewise.
52159         * modules/stdio (stdio.h): Likewise.
52160         * modules/stdlib (stdlib.h): Likewise.
52161         * modules/string (string.h): Likewise.
52162         * modules/sys_time (sys/time.h): Likewise.
52163         * modules/time (time.h): Likewise.
52164         * modules/wchar (wchar.h): Likewise.
52165         * modules/wctype (wtype.h): Likewise.
52166
52167 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52168
52169         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
52170
52171 2007-05-13  Bruno Haible  <bruno@clisp.org>
52172
52173         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
52174         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52175         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
52176         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52177         (gl_PREREQ_STRTOK_R): Don't require it here.
52178
52179 2007-05-13  Bruno Haible  <bruno@clisp.org>
52180
52181         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
52182         when used in C++ mode.
52183
52184 2007-05-12  Bruno Haible  <bruno@clisp.org>
52185
52186         * lib/linebuffer.h: Tweak doc.
52187         * lib/linebuffer.c: Likewise.
52188
52189 2007-05-12  James Youngman  <jay@gnu.org>
52190
52191         * lib/linebuffer.c (readlinebuffer_delim): New function,
52192         like readlinebuffer, but use a caller-specified delimiter.
52193         (readlinebuffer): Just call readlinebuffer_delim with '\n'
52194         as the delimiter.
52195         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
52196
52197 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52198
52199         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
52200         * modules/openat (Files): Remove openat-die.c.
52201         (Depends-on): Add openat-die.
52202         * modules/openat-die: New module.
52203
52204 2007-05-06  Bruno Haible  <bruno@clisp.org>
52205
52206         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
52207         Update with info about Cygwin.
52208         * doc/functions/fprintf.texi: Update.
52209         * doc/functions/printf.texi: Update.
52210         * doc/functions/snprintf.texi: Update.
52211         * doc/functions/sprintf.texi: Update.
52212         * doc/functions/vfprintf.texi: Update.
52213         * doc/functions/vprintf.texi: Update.
52214         * doc/functions/vsnprintf.texi: Update.
52215         * doc/functions/vsprintf.texi: Update.
52216         Reported by Eric Blake.
52217
52218 2007-05-06  Bruno Haible  <bruno@clisp.org>
52219
52220         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
52221         padding ourselves for the floating-point directives.
52222         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
52223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
52224         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52225         gl_PRINTF_FLAG_ZERO and test its result. Invoke
52226         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
52227         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52231         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52234         * tests/test-snprintf-posix.h (test_function): Also check the width
52235         and some flags in the %f directive.
52236         * tests/test-sprintf-posix.h (test_function): Likewise.
52237         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52238         * tests/test-vasprintf-posix.c (test_function): Likewise.
52239         * doc/functions/fprintf.texi: Update.
52240         * doc/functions/printf.texi: Update.
52241         * doc/functions/snprintf.texi: Update.
52242         * doc/functions/sprintf.texi: Update.
52243         * doc/functions/vfprintf.texi: Update.
52244         * doc/functions/vprintf.texi: Update.
52245         * doc/functions/vsnprintf.texi: Update.
52246         * doc/functions/vsprintf.texi: Update.
52247
52248 2007-05-06  Bruno Haible  <bruno@clisp.org>
52249
52250         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
52251         pass the ' flag character to sprintf or snprintf.
52252         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
52253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
52254         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52255         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
52256         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
52257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52258         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
52259         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52260         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52261         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52262         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52263         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52264         * tests/test-snprintf-posix.h (test_function): Also check the grouping
52265         flag.
52266         * tests/test-sprintf-posix.h (test_function): Likewise.
52267         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52268         * tests/test-vasprintf-posix.c (test_function): Likewise.
52269         * doc/functions/fprintf.texi: Update.
52270         * doc/functions/printf.texi: Update.
52271         * doc/functions/snprintf.texi: Update.
52272         * doc/functions/sprintf.texi: Update.
52273         * doc/functions/vfprintf.texi: Update.
52274         * doc/functions/vprintf.texi: Update.
52275         * doc/functions/vsnprintf.texi: Update.
52276         * doc/functions/vsprintf.texi: Update.
52277
52278 2007-05-01  Bruno Haible  <bruno@clisp.org>
52279
52280         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
52281
52282 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
52283
52284         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
52285         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
52286
52287 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52288
52289         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
52290         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
52291         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
52292
52293 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
52294
52295         * lib/argp-help.c (struct hol_entry): New member `ord'.
52296         (HOL_ENTRY_PTRCMP): Use ord for comparison
52297         (hol_sort): Initialize ord.
52298
52299 2007-05-01  Bruno Haible  <bruno@clisp.org>
52300
52301         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
52302         Reported by Eric Blake.
52303         * doc/gnulib.texi (Function Substitutes): Update.
52304
52305 2007-05-01  Bruno Haible  <bruno@clisp.org>
52306
52307         * doc/functions.texi: Remove file, now redundant through
52308         doc/functions/*.texi.
52309
52310 2007-05-01  Bruno Haible  <bruno@clisp.org>
52311
52312         * modules/argp (Depends-on): Add sleep.
52313
52314 2007-05-01  Bruno Haible  <bruno@clisp.org>
52315
52316         * modules/sleep-tests: New file.
52317         * tests/test-sleep.c: New file.
52318
52319         * modules/sleep: New file.
52320         * lib/sleep.c: New file.
52321         * m4/sleep.m4: New file.
52322         * lib/unistd_.h (sleep): New declaration.
52323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
52324         HAVE_SLEEP.
52325         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
52326         * doc/functions/sleep.texi: Document the sleep module.
52327
52328 2007-05-01  Bruno Haible  <bruno@clisp.org>
52329
52330         * lib/sigprocmask.h: Remove file.
52331         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
52332         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
52333         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
52334         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
52335         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
52336         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
52337         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
52338         HAVE_SIGSET_T as a shell variable.
52339         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
52340         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
52341         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
52342         (Depends-on): Add signal. Remove verify.
52343         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
52344         (Include): Mention <signal.h> instead of sigprocmask.h.
52345         * NEWS: Mention the change.
52346         * lib/fatal-signal.c: Don't include sigprocmask.h.
52347
52348 2007-05-01  Bruno Haible  <bruno@clisp.org>
52349
52350         * modules/signal: New file.
52351         * lib/signal_.h: New file.
52352         * m4/signal_h.m4: New file.
52353
52354 2007-05-01  Bruno Haible  <bruno@clisp.org>
52355
52356         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
52357         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
52358         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
52359         HAVE_WCTYPE_CTMP_BUG into wctype.h.
52360
52361 2007-05-01  Bruno Haible  <bruno@clisp.org>
52362
52363         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
52364         configure time.
52365         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
52366         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
52367         * modules/sys_stat (Makefile.am): Substitute their values into
52368         sys/stat.h.
52369
52370 2007-05-01  Bruno Haible  <bruno@clisp.org>
52371
52372         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
52373         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
52374         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
52375
52376 2007-05-01  Bruno Haible  <bruno@clisp.org>
52377
52378         * doc/header/assert.texi: Undo last change: don't mention the gnulib
52379         'assert' module here.
52380
52381 2007-05-01  Bruno Haible  <bruno@clisp.org>
52382
52383         * doc/functions/*.texi: New files.
52384         * doc/functions/google-ranking.txt: New file.
52385         * doc/gnulib.texi (Function Substitutes): New chapter.
52386         (ctime, inet_ntoa): Remove sections.
52387         * doc/ctime.texi: Remove file.
52388         * doc/inet_ntoa.texi: Remove file.
52389         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
52390         dependencies.
52391         (%.info): New rule, specifying a --reference-limit.
52392
52393 2007-05-01  Bruno Haible  <bruno@clisp.org>
52394
52395         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
52396
52397 2007-05-01  Bruno Haible  <bruno@clisp.org>
52398
52399         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
52400         the portability of 'mkdir' to mingw systems.
52401
52402 2007-05-01  Bruno Haible  <bruno@clisp.org>
52403
52404         * doc/headers/google-ranking.txt: New file.
52405
52406 2007-04-30  Eric Blake  <ebb9@byu.net>
52407
52408         Prefer fseeko to fseek.
52409         * modules/getpass (Depends-on): Add fseeko.
52410         * lib/getpass.c (getpass): Use fseeko, not fseek.
52411
52412 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
52413
52414         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
52415         assumes the sorting is stable, while most qsort implementations
52416         are not.  Use argument addresses to ensure they never compare as
52417         equal.
52418
52419         * tests/test-argp-2.sh (usage-indent test): Fix output
52420         (func_compare): Restore diff options
52421         * tests/test-argp.c: Restore #include "progname.h"
52422
52423 2007-04-29  Bruno Haible  <bruno@clisp.org>
52424
52425         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
52426         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52427         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
52428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52429         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
52430         (configure.ac): Define CHECK_SNPRINTF_POSIX.
52431         (TESTS, check_PROGRAMS): Add test-snprintf.
52432         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
52433         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
52434         (TESTS, check_PROGRAMS): Add test-vsnprintf.
52435         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
52436         assertions that fail on HP-UX, OSF/1, or IRIX.
52437         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
52438
52439 2007-04-29  Bruno Haible  <bruno@clisp.org>
52440
52441         * MODULES.html.sh (posix_functions): Remove 'contents'.
52442
52443 2007-04-29  Karl Berry  <karl@gnu.org>
52444
52445         * config/srclist.txt (gendocs_template_min): new entry.
52446
52447 2007-04-29  Bruno Haible  <bruno@clisp.org>
52448
52449         Work around fpurge bug on BSD systems.
52450         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
52451         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
52452         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
52453         fpurge to rpl_fpurge if the system already has this function.
52454         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
52455         the case where the system already has this function. Correct invariants
52456         on BSD systems.
52457         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
52458         BSD systems.
52459
52460 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52461
52462         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
52463         proposed by Sven Verdoolaege.
52464
52465         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
52466         options.
52467         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
52468         (usage and help tests): Update
52469
52470 2007-04-29  Bruno Haible  <bruno@clisp.org>
52471
52472         * tests/test-fflush.c (main): Use a file of size 17, not 10.
52473         Print more information in case of failure. Disable a test on BeOS.
52474
52475 2007-04-29  Bruno Haible  <bruno@clisp.org>
52476
52477         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
52478         This helps debugging on systems on which no gdb is available.
52479
52480 2007-04-29  Bruno Haible  <bruno@clisp.org>
52481
52482         * lib/freading.h: Improve comments.
52483         * lib/fwriting.h: Likewise.
52484         * tests/test-freading.c (main): Don't check freading immediately after
52485         repositioning. Needed for glibc.
52486
52487 2007-04-29  Bruno Haible  <bruno@clisp.org>
52488
52489         * lib/freading.c (freading): Trivial simplification.
52490
52491 2007-04-28  Bruno Haible  <bruno@clisp.org>
52492
52493         * tests/test-fwriting.c (main): Also test the interaction between
52494         fflush and fwriting.
52495         * modules/fwriting-tests (Depends-on): Add fflush.
52496
52497         * tests/test-freading.c (main): Also test the interaction between
52498         fflush and freading.
52499         * modules/freading-tests (Depends-on): Add fflush.
52500
52501 2007-04-28  Bruno Haible  <bruno@clisp.org>
52502
52503         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
52504         fseeko and ftello.
52505         Suggested by Eric Blake.
52506
52507 2007-04-28  Jim Meyering  <jim@meyering.net>
52508
52509         Avoid false-negative in gl_STDINT_H's C99 conformance test.
52510         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
52511         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
52512
52513 2007-04-27  Eric Blake  <ebb9@byu.net>
52514
52515         * doc/headers/assert.texi (assert.h): Document assert module use.
52516
52517 2007-04-27  Bruno Haible  <bruno@clisp.org>
52518
52519         * doc/headers/*.texi: New files.
52520         * doc/gnulib.texi (Header File Substitutes): New chapter.
52521         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
52522         dependencies.
52523         (standards.info ,standards.html, standards.dvi): Update dependencies.
52524         (mostlyclean, clean): New targets.
52525
52526 2007-04-27  Bruno Haible  <bruno@clisp.org>
52527
52528         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
52529         * modules/sysexits (Files, Makefile.am): Update.
52530
52531         * lib/sys_socket_.h: Renamed from lib/socket_.h.
52532         * modules/sys_socket (Files, Makefile.am): Update.
52533
52534         * lib/sys_stat_.h: Renamed from lib/stat_.h.
52535         * modules/sys_stat (Files, Makefile.am): Update.
52536
52537 2007-04-27  Eric Blake  <ebb9@byu.net>
52538
52539         * lib/freading.h: Improve comments.
52540         * lib/fwriting.h: Likewise.
52541         * lib/fflush.c: Likewise.
52542
52543         Fix closein for mingw.
52544         * modules/closein-tests: Add tests for closein.
52545         * tests/test-closein.c: New file.
52546         * tests/test-closein.sh: Likewise.
52547         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
52548         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
52549
52550 2007-04-27  Bruno Haible  <bruno@clisp.org>
52551
52552         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
52553         version is < 6.
52554         * lib/math_.h [__DECC]: Likewise.
52555         * lib/stdio_.h [__DECC]: Likewise.
52556         * lib/stdlib_.h [__DECC]: Likewise.
52557         * lib/string_.h [__DECC]: Likewise.
52558         * lib/time_.h [__DECC]: Likewise.
52559         * lib/wchar_.h [__DECC]: Likewise.
52560         * lib/wctype_.h [__DECC]: Likewise.
52561
52562 2007-04-27  Bruno Haible  <bruno@clisp.org>
52563
52564         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
52565
52566 2007-04-27  Bruno Haible  <bruno@clisp.org>
52567
52568         * lib/fflush.c: Add comments.
52569         * modules/fpurge-tests (Depends-on): Add fflush.
52570         * modules/freadable-tests (Depends-on): Likewise.
52571         * modules/fwritable-tests (Depends-on): Likewise.
52572
52573 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
52574
52575         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
52576         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
52577         Report by Bruno Haible <bruno@clisp.org>.
52578
52579 2007-04-26  Eric Blake  <ebb9@byu.net>
52580
52581         Fix fflush on mingw.
52582         * modules/fflush (Depends-on): Add freading.
52583         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
52584         but unread data.
52585
52586 2007-04-26  Eric Blake  <ebb9@byu.net>
52587         and Bruno Haible  <bruno@clisp.org>
52588
52589         Implement freading and fwriting.
52590         * lib/freading.c: New file.
52591         * lib/freading.h: Likewise.
52592         * m4/freading.m4: Likewise.
52593         * modules/freading: Likewise.
52594         * modules/freading-tests: Likewise.
52595         * tests/test-freading.c: Likewise.
52596         * lib/fwriting.c: New file.
52597         * lib/fwriting.h: Likewise.
52598         * m4/fwriting.m4: Likewise.
52599         * modules/fwriting: Likewise.
52600         * modules/fwriting-tests: Likewise.
52601         * tests/test-fwriting.c: Likewise.
52602         * MODULES.html.sh (File stream based Input/Output): Mention them.
52603
52604 2007-04-26  Bruno Haible  <bruno@clisp.org>
52605
52606         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
52607         'long' when we assume it.
52608         Suggested by Eric Blake.
52609
52610 2007-04-26  Bruno Haible  <bruno@clisp.org>
52611
52612         Ensure fseeko, ftello are declared on glibc systems.
52613         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
52614         * modules/fseeko (configure.ac-early): Likewise.
52615         * modules/ftello (configure.ac-early): Likewise.
52616         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
52617         AC_FUNC_FSEEKO for this.
52618         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
52619         (gl_CHECK_FSEEKO): Remove macro.
52620
52621 2007-04-26  Bruno Haible  <bruno@clisp.org>
52622
52623         * tests/test-fflush.c (main): Also check the ftell result after
52624         fflush and fseek/fseeko.
52625         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
52626         file descriptor position cache in the stream.
52627         * lib/fseeko.c (rpl_fseeko): Likewise.
52628
52629 2007-04-26  Bruno Haible  <bruno@clisp.org>
52630
52631         * modules/fflush-tests (Depends-on): Add fseeko.
52632
52633 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
52634             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52635
52636         * lib/argz_.h: ensure error_t definition is obtained in same
52637         mechanism system argz.h would have.
52638         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
52639         argz facilities are known bad.  Err on the side of caution if
52640         cross-compiling.
52641
52642 2007-04-25  Eric Blake  <ebb9@byu.net>
52643
52644         * lib/fpurge.c (includes): Use stdlib.h for free.
52645         * tests/test-fflush.c (main): Also test fflush-fseeko.
52646
52647 2007-04-25  Bruno Haible  <bruno@clisp.org>
52648
52649         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
52650         * lib/fseeko.c: New file.
52651         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
52652         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
52653         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
52654         gl_FUNC_FSEEKO.
52655         (gl_FUNC_FSEEKO): Invoke it.
52656         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
52657         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
52658         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
52659
52660 2007-04-25  Bruno Haible  <bruno@clisp.org>
52661
52662         * modules/fflush (Depends-on): Add ftello.
52663
52664 2007-04-25  Bruno Haible  <bruno@clisp.org>
52665
52666         * modules/ftello-tests: New file.
52667         * tests/test-ftello.c: New file.
52668
52669         * modules/ftello: New file.
52670         * m4/ftello.m4: New file.
52671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
52672         HAVE_FTELLO.
52673         * lib/stdio_.h (ftello): New declaration.
52674         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
52675         HAVE_FTELLO.
52676
52677 2007-04-25  Bruno Haible  <bruno@clisp.org>
52678
52679         * modules/fseeko-tests: New file.
52680         * tests/test-fseeko.c: New file.
52681
52682         * modules/fseeko: New file.
52683         * m4/fseeko.m4: New file.
52684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
52685         HAVE_FSEEKO.
52686         * lib/stdio_.h (fseeko): New declaration.
52687         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
52688         HAVE_FSEEKO.
52689
52690 2007-04-25  Bruno Haible  <bruno@clisp.org>
52691
52692         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
52693
52694 2007-04-25  Bruno Haible  <bruno@clisp.org>
52695
52696         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
52697         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
52698         * tests/test-unistd.c: Likewise.
52699         * tests/test-fcntl.c: Likewise.
52700
52701 2007-04-23  Eric Blake  <ebb9@byu.net>
52702
52703         * lib/fflush.c: Fix missing include.
52704         Reported by Bruno Haible.
52705
52706 2007-04-23  Bruno Haible  <bruno@clisp.org>
52707
52708         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
52709         Reported by Eric Blake.
52710
52711 2007-04-23  Bruno Haible  <bruno@clisp.org>
52712
52713         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
52714
52715 2007-04-23  Bruno Haible  <bruno@clisp.org>
52716
52717         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
52718
52719 2007-04-23  Bruno Haible  <bruno@clisp.org>
52720
52721         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
52722         Needed on HP-UX 11.
52723
52724 2007-04-16  Eric Blake  <ebb9@byu.net>
52725
52726         Make fflush rely on fpurge.
52727         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
52728         open coding all variants.
52729         * modules/fflush (Depends-on): Add fpurge and unistd.
52730         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
52731         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
52732
52733         Fix --with-tests compilation on cygwin.
52734         * modules/argmatch-tests (Makefile.am): List gnulib library first
52735         in LDADD.
52736         * modules/argp-tests (Makefile.am): Likewise.
52737         * modules/array-list-tests (Makefile.am): Likewise.
52738         * modules/array-oset-tests (Makefile.am): Likewise.
52739         * modules/avltree-list-tests (Makefile.am): Likewise.
52740         * modules/avltree-oset-tests (Makefile.am): Likewise.
52741         * modules/avltreehash-list-tests (Makefile.am): Likewise.
52742         * modules/carray-list-tests (Makefile.am): Likewise.
52743         * modules/dirname-tests (Makefile.am): Likewise.
52744         * modules/frexp-tests (Makefile.am): Likewise.
52745         * modules/isnanl-tests (Makefile.am): Likewise.
52746         * modules/linked-list-tests (Makefile.am): Likewise.
52747         * modules/linkedhash-list-tests (Makefile.am): Likewise.
52748         * modules/lock-tests (Makefile.am): Likewise.
52749         * modules/rbtree-list-tests (Makefile.am): Likewise.
52750         * modules/rbtree-oset-tests (Makefile.am): Likewise.
52751         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
52752         * modules/tls-tests (Makefile.am): Likewise.
52753         * modules/tsearch-tests (Makefile.am): Likewise.
52754         * modules/xvasprintf-tests (Makefile.am): Likewise.
52755
52756         Fix fpurge for cygwin.
52757         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
52758         value.
52759         * modules/fpurge-tests (Depends-on): Clean up trash.
52760
52761 2007-04-16  Simon Josefsson  <simon@josefsson.org>
52762
52763         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
52764
52765         * m4/autobuild.m4: Re-indent.
52766
52767 2007-04-13  Bruno Haible  <bruno@clisp.org>
52768
52769         * modules/fpurge-tests: New file.
52770         * tests/test-fpurge.c: New file.
52771
52772         * modules/fpurge: New file.
52773         * lib/fpurge.h: New file.
52774         * lib/fpurge.c: New file.
52775         * m4/fpurge.m4: New file.
52776
52777 2007-04-13  Bruno Haible  <bruno@clisp.org>
52778
52779         * modules/fbufmode-tests: New file.
52780         * tests/test-fbufmode.c: New file.
52781
52782         * modules/fbufmode: New file.
52783         * lib/fbufmode.h: New file.
52784         * lib/fbufmode.c: New file.
52785         * m4/fbufmode.m4: New file.
52786
52787 2007-04-13  Bruno Haible  <bruno@clisp.org>
52788
52789         * modules/fwritable-tests: New file.
52790         * tests/test-fwritable.c: New file.
52791
52792         * modules/fwritable: New file.
52793         * lib/fwritable.h: New file.
52794         * lib/fwritable.c: New file.
52795         * m4/fwritable.m4: New file.
52796
52797 2007-04-13  Bruno Haible  <bruno@clisp.org>
52798
52799         * modules/freadable-tests: New file.
52800         * tests/test-freadable.c: New file.
52801
52802         * modules/freadable: New file.
52803         * lib/freadable.h: New file.
52804         * lib/freadable.c: New file.
52805         * m4/freadable.m4: New file.
52806
52807 2007-04-13  Bruno Haible  <bruno@clisp.org>
52808
52809         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
52810         MOSTLYCLEANFILES.
52811
52812 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52813
52814         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
52815         gzip bootstrap.conf to avoid dragging in i18n machinery.
52816         (gnulib_tool_option): Use it.
52817
52818 2007-04-13  Bruno Haible  <bruno@clisp.org>
52819
52820         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
52821         %F directives.
52822         * tests/test-vasprintf-posix.c (test_function): Likewise.
52823         * tests/test-snprintf-posix.h (test_function): Likewise.
52824         * tests/test-sprintf-posix.h (test_function): Likewise.
52825         * tests/test-fprintf-posix.h (test_function): Likewise.
52826         * tests/test-printf-posix.h (test_function): Likewise.
52827         * tests/test-fprintf-posix.out: Likewise.
52828
52829 2007-04-13  Bruno Haible  <bruno@clisp.org>
52830
52831         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
52832         * modules/tls-tests (configure.ac): Likewise.
52833         Reported by Arto C. Nirkko <anirkko@insel.ch>.
52834
52835 2007-04-13  Bruno Haible  <bruno@clisp.org>
52836
52837         * lib/tls.c (glthread_tls_get): Fix return type.
52838         Patch by Arto C. Nirkko <anirkko@insel.ch>.
52839
52840 2007-04-12  Eric Blake  <ebb9@byu.net>
52841
52842         * modules/gettime (Depends-on): Remove gettime.
52843         Reported by Dmitry V. Levin.
52844
52845 2007-04-12  Bruno Haible  <bruno@clisp.org>
52846
52847         * modules/fflush (Include): Mention <stdio.h>.
52848         * modules/strtoimax (Include): Mention <inttypes.h>.
52849         * modules/strtoumax (Include): Likewise.
52850
52851 2007-04-12  Eric Blake  <ebb9@byu.net>
52852
52853         * .cvsignore: New file.
52854         * .gitignore: Likewise.
52855
52856 2007-04-12  Bruno Haible  <bruno@clisp.org>
52857
52858         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
52859         not before, since $(LDADD) often contains libgnu.a.
52860         * modules/striconv-tests (test_striconv_LDADD): Likewise.
52861         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
52862         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
52863         Needed on Cygwin.
52864
52865 2007-04-12  Eric Blake  <ebb9@byu.net>
52866
52867         Work around glibc's failure to flush stdin on fclose.
52868         * lib/closein.c (close_stdin): Flush stdin before closing.
52869
52870         Work around glibc's failure to reset seekable stdin on exit.
52871         * modules/closein: New module.
52872         * lib/closein.c: New file.
52873         * lib/closein.h: Likewise.
52874         * m4/closein.m4: Likewise.
52875         * MODULES.html.sh (File stream based Input/Output): Document it.
52876
52877 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52878
52879         * gnulib-tool: Rename generated 'autobuild' script to
52880         'do-autobuild' in --create-megatestdir output.
52881
52882         * doc/gnulib.texi (Build robot for gnulib): Fix.
52883
52884 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52885
52886         * modules/sysexits (Depends-on): Add absolute-header.
52887
52888 2007-04-12  Eric Blake  <ebb9@byu.net>
52889
52890         No need to preserve errno on success.
52891         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
52892         Reported by Bruno Haible.
52893
52894 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52895
52896         * MODULES.html.sh (Support for maintaining and releasing
52897         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
52898
52899 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52900
52901         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
52902
52903 2007-04-12  Simon Josefsson  <simon@josefsson.org>
52904
52905         * modules/autobuild: New module.
52906
52907         * m4/autobuild.m4: New file.
52908
52909 2007-04-11  Bruno Haible  <bruno@clisp.org>
52910
52911         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
52912         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
52913         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
52914         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
52915         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
52934         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52935         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52936         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
52937         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
52938         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
52939         Reported by Eric Blake.
52940
52941 2007-04-11  Bruno Haible  <bruno@clisp.org>
52942
52943         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
52944
52945 2007-04-10  Bruno Haible  <bruno@clisp.org>
52946
52947         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
52948         for NaN and Infinity. Needed on FreeBSD 6.1.
52949         * tests/test-vasnprintf-posix.c (test_function): Undo last change
52950         regarding results for "%010a" of Infinity and NaN.
52951         * tests/test-vasprintf-posix.c (test_function): Likewise.
52952         * tests/test-snprintf-posix.h (test_function): Likewise.
52953         * tests/test-sprintf-posix.h (test_function): Likewise.
52954         * tests/test-fprintf-posix.h (test_function): Likewise.
52955         * tests/test-printf-posix.h (test_function): Likewise.
52956         * tests/test-fprintf-posix.out: Likewise.
52957
52958 2007-04-10  Bruno Haible  <bruno@clisp.org>
52959
52960         * modules/locale-tests: New file.
52961         * tests/test-locale.c: New file.
52962
52963         * modules/locale: New file.
52964         * lib/locale_.h: New file.
52965         * m4/locale_h.m4: New file.
52966
52967 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
52968             Bruno Haible  <bruno@clisp.org>
52969
52970         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
52971         be determined, test for availability of the copysignf, copysign,
52972         copysignl functions.
52973         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
52974         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
52975         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
52976
52977 2007-04-09  Eric Blake  <ebb9@byu.net>
52978
52979         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
52980         * modules/stdio (Makefile.am): Support fflush.
52981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52982         * modules/fflush: New file.
52983         * lib/fflush.c: Likewise.
52984         * m4/fflush.m4: Likewise.
52985         * modules/fflush-tests: New test.
52986         * tests/test-fflush.c: Likewise.
52987         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
52988
52989 2007-04-06  Bruno Haible  <bruno@clisp.org>
52990
52991         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
52992         (VASNPRINTF): Use signbit for faster determination whether to print a
52993         minus sign.
52994         * modules/vasnprintf (Files): Remove lib/float+.h.
52995         * modules/fprintf-posix (Depends-on): Add signbit.
52996         * modules/snprintf-posix (Depends-on): Likewise.
52997         * modules/sprintf-posix (Depends-on): Likewise.
52998         * modules/vasnprintf-posix (Depends-on): Likewise.
52999         * modules/vasprintf-posix (Depends-on): Likewise.
53000         * modules/vfprintf-posix (Depends-on): Likewise.
53001         * modules/vsnprintf-posix (Depends-on): Likewise.
53002         * modules/vsprintf-posix (Depends-on): Likewise.
53003
53004 2007-04-06  Bruno Haible  <bruno@clisp.org>
53005
53006         * tests/test-frexp.c (main): Test also the sign bit of zero results.
53007         * tests/test-frexpl.c (main): Likewise.
53008         * tests/test-ldexpl.c (main): Likewise.
53009         * modules/frexp-tests (Depends-on): Add signbit.
53010         * modules/frexpl-tests (Depdends-on): Likewise.
53011         * modules/ldexpl-tests (Depdends-on): Likewise.
53012
53013 2007-04-06  Bruno Haible  <bruno@clisp.org>
53014
53015         * modules/signbit-tests: New file.
53016         * tests/test-signbit.c: New file.
53017
53018         * modules/signbit: New file.
53019         * lib/signbitf.c: New file.
53020         * lib/signbitd.c: New file.
53021         * lib/signbitl.c: New file.
53022         * m4/signbit.m4: New file.
53023         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
53024         (signbit): New macro.
53025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
53026         REPLACE_SIGNBIT.
53027         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
53028         REPLACE_FREXPL into math.h.
53029
53030 2007-04-06  Bruno Haible  <bruno@clisp.org>
53031
53032         * modules/isnanf-nolibm-tests: New file.
53033         * tests/test-isnanf.c: New file.
53034
53035         * modules/isnanf-nolibm: New file.
53036         * lib/isnanf.h: New file.
53037         * lib/isnanf.c: New file.
53038         * lib/isnan.c: Consider the USE_FLOAT macro.
53039         * m4/isnanf.m4: New file.
53040
53041 2007-04-06  Bruno Haible  <bruno@clisp.org>
53042
53043         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
53044         (Link): New section.
53045
53046         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
53047
53048 2007-04-06  Bruno Haible  <bruno@clisp.org>
53049
53050         Assume the 'long double' type.
53051         * m4/longdouble.m4: Remove file.
53052         * config/srclist.txt: Don't mention longdouble.m4.
53053         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
53054         * lib/float+.h: Likewise.
53055         * lib/frexp.c: Likewise.
53056         * lib/printf-args.h: Likewise.
53057         * lib/printf-args.c: Likewise.
53058         * lib/printf-frexp.c: Likewise.
53059         * lib/printf-parse.c: Likewise.
53060         * lib/vasnprintf.c: Likewise.
53061         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
53062         * m4/intl.m4: Likewise.
53063         * m4/isnanl.m4: Likewise.
53064         * m4/printf.m4: Likewise.
53065         * m4/printf-frexpl.m4: Likewise.
53066         * m4/vasnprintf.m4: Likewise.
53067         * modules/allocsa (Files): Remove m4/longdouble.m4.
53068         * modules/gettext (Files): Likewise.
53069         * modules/relocatable-prog-wrapper (Files): Likewise.
53070         * modules/vasnprintf (Files): Likewise.
53071         * modules/isnanl (Files): Likewise.
53072         (Include): Simplify.
53073         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
53074         (Include): Simplify.
53075         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
53076         (Include): Simplify.
53077         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
53078         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53079         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
53080         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53081         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53082         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53083         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
53084         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53085         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
53086         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53087         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
53088         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
53089         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
53090         * tests/test-isnanl.c: Likewise.
53091         * tests/test-snprintf-posix.h: Likewise.
53092         * tests/test-sprintf-posix.h: Likewise.
53093         * tests/test-vasnprintf-posix.c: Likewise.
53094         * tests/test-vasnprintf-posix2.c: Likewise.
53095         * tests/test-vasprintf-posix.c: Likewise.
53096
53097 2007-04-06  Bruno Haible  <bruno@clisp.org>
53098
53099         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
53100         * lib/math_.h [__DECC]: Include the overridden include file through
53101         #include_next, outside the double-inclusion guard.
53102         * lib/stdio_.h [__DECC]: Likewise.
53103         * lib/stdlib_.h [__DECC]: Likewise.
53104         * lib/string_.h [__DECC]: Likewise.
53105         * lib/time_.h [__DECC]: Likewise.
53106         * lib/wchar_.h [__DECC]: Likewise.
53107         * lib/wctype_.h [__DECC]: Likewise.
53108         * lib/inttypes_.h [__DECC]: Likewise.
53109         Reported by Albert Chin <china@thewrittenword.com> in
53110         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
53111
53112 2007-04-04  Eric Blake  <ebb9@byu.net>
53113
53114         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
53115         1.5.x.
53116
53117 2007-04-04  Bruno Haible  <bruno@clisp.org>
53118
53119         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
53120         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
53121
53122 2007-04-04  Bruno Haible  <bruno@clisp.org>
53123
53124         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
53125         results for "%010a" of Infinity and NaN.
53126         * tests/test-vasprintf-posix.c (test_function): Likewise.
53127         * tests/test-snprintf-posix.h (test_function): Likewise.
53128         * tests/test-sprintf-posix.h (test_function): Likewise.
53129         * tests/test-fprintf-posix.h (test_function): Remove these tests.
53130         * tests/test-printf-posix.h (test_function): Likewise.
53131         * tests/test-fprintf-posix.out: Update.
53132         Needed for FreeBSD 6.1.
53133
53134 2007-04-04  Bruno Haible  <bruno@clisp.org>
53135
53136         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
53137         directly used by the gnulib modules nor by gnulib-tool.
53138
53139 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53140
53141         * DEPENDENCIES: Give overall description of version dependency
53142         desirability.  Use more-typical names for apps.
53143         Add shell, coreutils, diffutils, grep, tar, gzip.
53144
53145 2007-04-04  Simon Josefsson  <simon@josefsson.org>
53146
53147         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
53148
53149 2007-04-04  Karl Berry  <karl@gnu.org>
53150
53151         * MODULES.html.sh (func_module): missing '.
53152
53153 2007-04-03  Bruno Haible  <bruno@clisp.org>
53154
53155         * modules/argmatch-tests (Makefile.am): New variable
53156         test_argmatch_LDADD.
53157         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
53158         * modules/array-list-tests (Makefile.am): New variable
53159         test_array_list_LDADD.
53160         * modules/array-oset-tests (Makefile.am): New variable
53161         test_array_oset_LDADD.
53162         * modules/avltree-list-tests (Makefile.am): New variable
53163         test_avltree_list_LDADD.
53164         * modules/avltree-oset-tests (Makefile.am): New variable
53165         test_avltree_oset_LDADD.
53166         * modules/avltreehash-list-tests (Makefile.am): New variable
53167         test_avltreehash_list_LDADD.
53168         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
53169         test_canonicalize_lgpl_LDADD.
53170         * modules/carray-list-tests (Makefile.am): New variable
53171         test_carray_list_LDADD.
53172         * modules/dirname-tests (Makefile.am): New variable
53173         test_dirname_LDADD.
53174         * modules/linked-list-tests (Makefile.am): New variable
53175         test_linked_list_LDADD.
53176         * modules/linkedhash-list-tests (Makefile.am): New variable
53177         test_linkedhash_list_LDADD.
53178         * modules/rbtree-list-tests (Makefile.am): New variable
53179         test_rbtree_list_LDADD.
53180         * modules/rbtree-oset-tests (Makefile.am): New variable
53181         test_rbtree_oset_LDADD.
53182         * modules/rbtreehash-list-tests (Makefile.am): New variable
53183         test_rbtreehash_list_LDADD.
53184         * modules/xvasprintf-tests (Makefile.am): New variable
53185         test_xvasprintf_LDADD.
53186         Reported by Eric Blake.
53187
53188 2007-04-03  Eric Blake  <ebb9@byu.net>
53189
53190         * DEPENDENCIES: Weaken m4 requirements.
53191
53192 2007-04-03  Bruno Haible  <bruno@clisp.org>
53193
53194         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
53195         * modules/isnanl-tests (configure.ac): Likewise.
53196
53197 2007-04-03  Ben Pfaff  <blp@gnu.org>
53198
53199         * modules/iconv_open: Add $(srcdir)/ to source directory
53200         references in Makefile fragments that call gperf, to fix VPATH
53201         builds.
53202
53203 2007-04-03  Bruno Haible  <bruno@clisp.org>
53204
53205         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
53206         * lib/ldexpl.c: Undo last change.
53207
53208 2007-04-03  Bruno Haible  <bruno@clisp.org>
53209
53210         * modules/printf-frexpl (Depends-on): Undo last change.
53211         (Files): Add m4/ldexpl.m4.
53212
53213 2007-04-03  Bruno Haible  <bruno@clisp.org>
53214
53215         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
53216         * modules/isnanl (Link): New section.
53217
53218         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
53219         * modules/frexp (Link): New section.
53220
53221         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
53222         * modules/frexpl (Link): New section.
53223
53224         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
53225         * modules/ldexpl (Link): New section.
53226
53227 2007-04-03  Bruno Haible  <bruno@clisp.org>
53228
53229         * modules/TEMPLATE-EXTENDED: New file.
53230         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
53231
53232 2007-04-03  Bruno Haible  <bruno@clisp.org>
53233
53234         * DEPENDENCIES: New file.
53235         Suggested by Simon Josefsson.
53236
53237 2007-04-03  Bruno Haible  <bruno@clisp.org>
53238
53239         * doc/gnulib.texi: Escape @.
53240
53241 2007-04-03  James Youngman  <jay@gnu.org>
53242         and Paul Eggert  <eggert@cs.ucla.edu>
53243
53244         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
53245         birthtime on all systems that have birthtime, not just those which
53246         use st_birthtimensec rather than st_birthtim.  Putting zero in
53247         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
53248         that the birth time is not available for files on an NFS mount.
53249
53250 2007-04-03  Simon Josefsson  <simon@josefsson.org>
53251
53252         * modules/memxor: Move back from crypto/, suggested by Bruno.
53253         * modules/crypto/hmac-sha1: Fix memxor dependency.
53254
53255         * modules/crypto/gc: Moved from ../.
53256
53257 2007-04-02  Eric Blake  <ebb9@byu.net>
53258
53259         * lib/ldexpl.c (includes): Avoid libm.
53260
53261         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
53262
53263 2007-04-02  Bruno Haible  <bruno@clisp.org>
53264
53265         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
53266         on IRIX.
53267
53268 2007-04-02  Bruno Haible  <bruno@clisp.org>
53269
53270         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
53271         x86 or x86_64 platforms running MacOS X.
53272         Reported by Ryan Schmidt <@ryandesign.com>.
53273
53274 2007-04-02  Bruno Haible  <bruno@clisp.org>
53275
53276         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
53277         i386.
53278
53279 2007-04-01  Simon Josefsson  <simon@josefsson.org>
53280
53281         * modules/crypto/arcfour: Moved from ../.
53282         * modules/crypto/arcfour-tests: Moved from ../.
53283         * modules/crypto/arctwo: Moved from ../.
53284         * modules/crypto/arctwo-tests: Moved from ../.
53285         * modules/crypto/des: Moved from ../.
53286         * modules/crypto/des-tests: Moved from ../.
53287         * modules/crypto/gc-arcfour: Moved from ../.
53288         * modules/crypto/gc-arcfour-tests: Moved from ../.
53289         * modules/crypto/gc-arctwo: Moved from ../.
53290         * modules/crypto/gc-arctwo-tests: Moved from ../.
53291         * modules/crypto/gc-des: Moved from ../.
53292         * modules/crypto/gc-des-tests: Moved from ../.
53293         * modules/crypto/gc-hmac-md5: Moved from ../.
53294         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
53295         * modules/crypto/gc-hmac-sha1: Moved from ../.
53296         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
53297         * modules/crypto/gc-md2: Moved from ../.
53298         * modules/crypto/gc-md2-tests: Moved from ../.
53299         * modules/crypto/gc-md4: Moved from ../.
53300         * modules/crypto/gc-md4-tests: Moved from ../.
53301         * modules/crypto/gc-md5: Moved from ../.
53302         * modules/crypto/gc-md5-tests: Moved from ../.
53303         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
53304         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
53305         * modules/crypto/gc-random: Moved from ../.
53306         * modules/crypto/gc-rijndael: Moved from ../.
53307         * modules/crypto/gc-rijndael-tests: Moved from ../.
53308         * modules/crypto/gc-sha1: Moved from ../.
53309         * modules/crypto/gc-sha1-tests: Moved from ../.
53310         * modules/crypto/gc-tests: Moved from ../.
53311         * modules/crypto/hmac-md5: Moved from ../.
53312         * modules/crypto/hmac-md5-tests: Moved from ../.
53313         * modules/crypto/hmac-sha1: Moved from ../.
53314         * modules/crypto/hmac-sha1-tests: Moved from ../.
53315         * modules/crypto/md2: Moved from ../.
53316         * modules/crypto/md2-tests: Moved from ../.
53317         * modules/crypto/md4: Moved from ../.
53318         * modules/crypto/md4-tests: Moved from ../.
53319         * modules/crypto/md5: Moved from ../.
53320         * modules/crypto/md5-tests: Moved from ../.
53321         * modules/crypto/memxor: Moved from ../.
53322         * modules/crypto/rijndael: Moved from ../.
53323         * modules/crypto/rijndael-tests: Moved from ../.
53324         * modules/crypto/sha1: Moved from ../.
53325
53326 2007-03-30  James Youngman  <jay@gnu.org>
53327
53328         * tests/test-stat-time.c (prepare_test): use chmod() rather than
53329         rename() to change the ctime of a file (because ctime is unaffected
53330         by rename on jfs2 on AIX 5.1).
53331         (main): Start by doing cleanup, in case a previous run failed leaving
53332         test files behind.
53333
53334 2007-03-31  Bruno Haible  <bruno@clisp.org>
53335
53336         Support old proprietary implementations of iconv.
53337         * modules/iconv_open: New file.
53338         * lib/iconv_.h: New file.
53339         * m4/iconv_h.m4: New file.
53340         * lib/iconv_open.c: New file.
53341         * lib/iconv_open-aix.gperf: New file.
53342         * lib/iconv_open-hpux.gperf: New file.
53343         * lib/iconv_open-irix.gperf: New file.
53344         * lib/iconv_open-osf.gperf: New file.
53345         * m4/iconv_open.m4: New file.
53346         * modules/linebreak (Depends-on): Add iconv_open.
53347         * modules/striconv (Depends-on): Likewise.
53348         * modules/striconveh (Depends-on): Likewise.
53349         * modules/unicodeio (Depends-on): Likewise.
53350         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
53351         (iconv_t)(-1).
53352         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
53353         conversion if cd is (iconv_t)(-1).
53354         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
53355         is not possible.
53356
53357 2007-03-31  Bruno Haible  <bruno@clisp.org>
53358
53359         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53360         work on Solaris either. Protect also second use of "autodetect_jp".
53361
53362 2007-03-31  Bruno Haible  <bruno@clisp.org>
53363
53364         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
53365         the function is not present.
53366
53367 2007-03-31  Bruno Haible  <bruno@clisp.org>
53368
53369         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
53370         the function is not present.
53371
53372 2007-03-31  Bruno Haible  <bruno@clisp.org>
53373
53374         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
53375         a bug in HP-UX iconv_open().
53376
53377 2007-03-31  Bruno Haible  <bruno@clisp.org>
53378
53379         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
53380         (Mathematics <math.h>): New section, add fpieee.
53381         (Input/output <stdio.h>): Add fseterr.
53382         (Mathematics <math.h>): New section, add printf-frexp.
53383         (Container data structures): Add sublist.
53384         (Core language properties): Add fpucw, inline.
53385         (Functions for greatest-width integer types <inttypes.h>): Add
53386         imaxabs, imaxdiv, inttypes.
53387         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
53388         isnanl-nolibm, ldexp.
53389         (Mathematics <math.h>): New section, add printf-frexpl.
53390         (Support for systems lacking POSIX:2001): Add fprintf-posix,
53391         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
53392         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
53393         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
53394         (Unicode string functions): Add unistr/u*-mbtoucr.
53395         (Java): Add javacomp-script, javaexec-script.
53396         (C#): Add csharpcomp-script, csharpexec-script.
53397         (Support for building libraries and executables): Add havelib,
53398         relocatable-*.
53399         (Support for maintaining and releasing projects): Renamed from
53400         'Support for maintaining and release projects'. Add announce-gen.
53401
53402 2007-03-31  Bruno Haible  <bruno@clisp.org>
53403
53404         * README: Talk primarily about git.
53405         (git and CVS): Renamed from CVS.
53406         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
53407         gnulib is available through git.
53408         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
53409
53410 2007-03-30  Bruno Haible  <bruno@clisp.org>
53411
53412         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
53413         * lib/poll_.h: Likewise.
53414         * lib/stat_.h: Likewise.
53415         * lib/sys_time_.h: Likewise.
53416         * lib/sysexit_.h: Likewise.
53417         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
53418         * lib/stdbool_.h: Likewise.
53419         * lib/byteswap_.h: Add double-inclusion guard.
53420
53421 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
53422
53423         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
53424
53425 2007-03-30  Karl Berry  <karl@gnu.org>
53426
53427         * config/srclist-update: double space after USA in the license
53428         substitution, since that's how it's usually (?) written.
53429
53430 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53431
53432         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
53433         reported by Bruno Haible.
53434
53435 2007-03-29  Bruno Haible  <bruno@clisp.org>
53436
53437         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
53438         a bug in AIX iconv().
53439
53440 2007-03-29  Bruno Haible  <bruno@clisp.org>
53441
53442         * modules/ldexpl-tests: New file.
53443         * tests/test-ldexpl.c: New file.
53444
53445 2007-03-29  Bruno Haible  <bruno@clisp.org>
53446
53447         * lib/ldexpl.c: Include fpucw.h.
53448         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
53449         multiplication.
53450         * modules/ldexpl (Depends-on): Add fpucw.
53451
53452 2007-03-29  Bruno Haible  <bruno@clisp.org>
53453
53454         * modules/ldexpl: New file.
53455         * m4/ldexpl.m4: New file.
53456         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
53457         set.
53458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
53459         REPLACE_LDEXPL.
53460         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
53461         REPLACE_LDEXPL.
53462         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
53463         gl_FUNC_LDEXPL_WORKS.
53464         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
53465         * modules/mathl (Files): Remove lib/ldexpl.c.
53466         (Depends-on): Add ldexpl.
53467
53468 2007-03-29  Bruno Haible  <bruno@clisp.org>
53469
53470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
53471
53472 2007-03-29  Bruno Haible  <bruno@clisp.org>
53473
53474         * tests/test-striconveh.c (main): Don't assume that a direct conversion
53475         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
53476         and possibly also HP-UX.
53477         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
53478         work on AIX, IRIX, HP-UX, OSF/1.
53479         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
53480         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
53481         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
53482         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
53483         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
53484         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
53485
53486 2007-03-29  Bruno Haible  <bruno@clisp.org>
53487
53488         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
53489
53490 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53491
53492         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
53493         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
53494
53495 2007-03-29  Eric Blake  <ebb9@byu.net>
53496
53497         * lib/acl-internal.h: Remove redundant include.
53498         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
53499         Cygwin when a file is locked.
53500
53501 2007-03-29  Bruno Haible  <bruno@clisp.org>
53502
53503         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
53504         file.
53505         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
53506
53507 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
53508
53509         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
53510         try to remove a parent directory if the child couldn't be removed
53511         (except for the first rmdir, which could fail because the child
53512         doesn't exist).  Problem reported by Jeff Blaine in
53513         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
53514
53515 2007-03-28  Bruno Haible  <bruno@clisp.org>
53516
53517         * lib/striconveh.c (utf8conv_carefully): New function.
53518         (mem_cd_iconveh_internal): Invoke it.
53519
53520 2007-03-28  Bruno Haible  <bruno@clisp.org>
53521
53522         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
53523         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
53524         input.
53525         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
53526         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
53527         unistr/u8-uctomb.
53528
53529 2007-03-28  Bruno Haible  <bruno@clisp.org>
53530
53531         * modules/unistr/u8-mbtoucr: New file.
53532         * lib/unistr/u8-mbtoucr.c: New file.
53533         * modules/unistr/u16-mbtoucr: New file.
53534         * lib/unistr/u16-mbtoucr.c: New file.
53535         * modules/unistr/u16-mbtoucr: New file.
53536         * lib/unistr/u16-mbtoucr.c: New file.
53537         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
53538
53539 2007-03-27  Simon Josefsson  <simon@josefsson.org>
53540             Bruno Haible  <bruno@clisp.org>
53541
53542         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
53543         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
53544         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
53545
53546         * m4/stdio_h.m4: Add stubs for vasprintf too.
53547
53548         * modules/stdio: Support vasprintf in sed command.
53549
53550         * modules/vasprintf: Depend on stdio for prototypes.  Remove
53551         vasprintf.h.  Add stdio module indicator.
53552
53553         * lib/stdio_.h: Declare asprintf and vasprintf, based on
53554         vasprintf.h.
53555
53556         * lib/vasprintf.h: File removed.
53557
53558         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
53559         * lib/vasprintf.c: Ditto.
53560         * lib/xvasprintf.c: Ditto.
53561         * tests/test-vasprintf-posix.c: Ditto.
53562         * tests/test-vasprintf.c: Ditto.
53563
53564 2007-03-27  Bruno Haible  <bruno@clisp.org>
53565
53566         Make vasnprintf multithread-safe.
53567         * lib/vasnprintf.c (decimal_point_char): New function.
53568         (VASNPRINTF): Use it.
53569         Suggested by Simon Josefsson.
53570
53571 2007-03-27  Eric Blake  <ebb9@byu.net>
53572
53573         Support sub-second birthtime on cygwin.
53574         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
53575         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
53576         (get_stat_birthtime): Also work with st_birthtim.
53577
53578 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
53579
53580         * lib/stat-time.h (USE_BIRTHTIME): Remove.
53581         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
53582         (get_stat_birthtime_ns): Do not try to use "spare" fields.
53583         (get_stat_birthtime_ns): Simplify compile-time tests.
53584         (get_stat_birthtime): Change the API to look like
53585         get_stat_mtime etc., except return a negative tv_nsec on error.
53586         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
53587         Don't check for "spare" fields.
53588         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
53589         or for struct stat.st_birthtime, as these tests aren't used.
53590         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
53591
53592 2007-03-27  Bruno Haible  <bruno@clisp.org>
53593
53594         * lib/stat-time.h: Include <sys/stat.h>.
53595
53596 2007-03-27  James Youngman  <jay@gnu.org>
53597
53598         * lib/stat-time.h (get_stat_birthtime): New function for
53599           retrieving st_birthtime as provided by UFS2 (hence *BSD).
53600         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
53601           and its variants.
53602         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
53603         * modules/stat-time-test: New file.
53604         * tests/test-stat-time.c: New test, devised by Bruno Haible.
53605
53606 2007-03-26  Bruno Haible  <bruno@clisp.org>
53607
53608         Better support of signalling NaNs.
53609         * lib/atanl.c: Include isnanl.h.
53610         (atanl): Perform test for NaN at the beginning of the function and
53611         through a call to isnanl.
53612         * lib/cosl.c: Include isnanl.h.
53613         (cosl): Perform test for NaN at the beginning of the function and
53614         through a call to isnanl.
53615         * lib/ldexpl.c: Include isnanl.h.
53616         (ldexpl): Perform test for NaN through a call to isnanl.
53617         * lib/logl.c: Include isnanl.h.
53618         (logl): Perform test for NaN at the beginning of the function and
53619         through a call to isnanl.
53620         * lib/sinl.c: Include isnanl.h.
53621         (sinl): Perform test for NaN at the beginning of the function and
53622         through a call to isnanl.
53623         * lib/sqrtl.c: Include isnanl.h.
53624         (sqrtl): Perform test for NaN at the beginning of the function and
53625         through a call to isnanl.
53626         * lib/tanl.c: Include isnanl.h.
53627         (tanl): Perform test for NaN at the beginning of the function and
53628         through a call to isnanl.
53629         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
53630         * modules/mathl (Depends-on): Add isnanl.
53631
53632 2007-03-26  Eric Blake  <ebb9@byu.net>
53633
53634         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
53635         regression in logic sense of previous patch.
53636
53637 2007-03-26  Bruno Haible  <bruno@clisp.org>
53638
53639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
53640         unportable shell command "if ! ...".
53641         Reported by Ralf Wildenhues.
53642
53643 2007-03-25  Bruno Haible  <bruno@clisp.org>
53644
53645         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
53646         <sysexits.h> file, and only add EX_CONFIG.
53647         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
53648         absolute file name and whether it is sufficient. Substitute also
53649         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
53650         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
53651         ABSOLUTE_SYSEXITS_H into sysexits.h.
53652
53653 2007-03-25  Bruno Haible  <bruno@clisp.org>
53654
53655         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
53656         hints is NULL.
53657
53658 2007-03-25  Bruno Haible  <bruno@clisp.org>
53659
53660         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
53661         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
53662
53663 2007-03-25  Bruno Haible  <bruno@clisp.org>
53664
53665         * lib/vasnprintf.c: Include langinfo.h.
53666         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
53667         multithread-safe.
53668         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
53669         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
53670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53674         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
53676         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53677         Reported by Simon Josefsson.
53678
53679 2007-03-25  Bruno Haible  <bruno@clisp.org>
53680
53681         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
53682         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
53683         * modules/vasnprintf (Depends-on): Add stdint.
53684
53685 2007-03-25  Bruno Haible  <bruno@clisp.org>
53686
53687         * modules/fpieee: New file.
53688         * m4/fpieee.m4: New file.
53689         * modules/isnan-nolibm (Depends-on): Add fpieee.
53690         * modules/isnanl-nolibm (Depends-on): Add fpieee.
53691         * modules/isnanl (Depends-on): Add fpieee.
53692
53693 2007-03-25  Bruno Haible  <bruno@clisp.org>
53694
53695         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
53696
53697 2007-03-25  Bruno Haible  <bruno@clisp.org>
53698
53699         Avoid test failures on IRIX 6.5.
53700         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
53701         (main): Use it.
53702         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
53703         macros.
53704         (main): Use them.
53705
53706 2007-03-25  Bruno Haible  <bruno@clisp.org>
53707
53708         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
53709         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
53710         exists but doesn't work.
53711         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
53712         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
53713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
53714         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
53715         math.h.
53716
53717 2007-03-25  Bruno Haible  <bruno@clisp.org>
53718
53719         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
53720         returns inf. Needed on IRIX 6.5.
53721
53722 2007-03-25  Bruno Haible  <bruno@clisp.org>
53723
53724         * tests/test-frexpl.c: Include isnanl-nolibm.h.
53725         (main): Use isnanl instead of x != x idiom.
53726         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
53727
53728         * tests/test-frexp.c: Include isnan.h.
53729         (main): Use isnan instead of x != x idiom.
53730         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
53731
53732 2007-03-25  Bruno Haible  <bruno@clisp.org>
53733
53734         * tests/test-frexp.c (NaN): New function/macro.
53735         (main): Use it instead of 0.0 / 0.0.
53736         * tests/test-isnan.c (NaN): New function/macro.
53737         (main): Use it instead of 0.0 / 0.0.
53738         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
53739         (test_function): Use it instead of 0.0 / 0.0.
53740         * tests/test-vasprintf-posix.c (NaN): New function/macro.
53741         (test_function): Use it instead of 0.0 / 0.0.
53742         * tests/test-snprintf-posix.h (NaN): New function/macro.
53743         (test_function): Use it instead of 0.0 / 0.0.
53744         * tests/test-sprintf-posix.h (NaN): New function/macro.
53745         (test_function): Use it instead of 0.0 / 0.0.
53746         * tests/test-fprintf-posix.h (NaN): New function/macro.
53747         (test_function): Use it instead of 0.0 / 0.0.
53748         * tests/test-printf-posix.h (NaN): New function/macro.
53749         (test_function): Use it instead of 0.0 / 0.0.
53750
53751         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
53752
53753 2007-03-25  Bruno Haible  <bruno@clisp.org>
53754
53755         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
53756
53757 2007-03-25  Bruno Haible  <bruno@clisp.org>
53758
53759         * lib/regexec.c (merge_state_with_log): Make static.
53760
53761 2007-03-25  Bruno Haible  <bruno@clisp.org>
53762
53763         * lib/trigl.c (kernel_rem_pio2): Make static.
53764
53765 2007-03-25  Bruno Haible  <bruno@clisp.org>
53766
53767         * lib/sincosl.c (sincosl_table): Make static.
53768
53769 2007-03-25  Bruno Haible  <bruno@clisp.org>
53770
53771         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
53772         if the compiler does not support C99.
53773
53774 2007-03-25  Bruno Haible  <bruno@clisp.org>
53775
53776         * modules/time (Makefile.am): Ensure all rule action lines start with a
53777         tab.
53778
53779 2007-03-24  Bruno Haible  <bruno@clisp.org>
53780
53781         * modules/tsearch-tests: New file.
53782         * tests/test-tsearch.sh: New file.
53783         * tests/test-tsearch.c: New file, mostly copied from glibc.
53784
53785         * modules/search-tests: New file.
53786         * tests/test-search.c: New file.
53787
53788         * modules/search: New file.
53789         * lib/search_.h: New file, incorporating lib/tsearch.h.
53790         * m4/search_h.m4: New file.
53791         * lib/tsearch.h: Remove file.
53792         * lib/tsearch.c: Include search.h instead of tsearch.h.
53793         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
53794         HAVE_TSEARCH.
53795         * modules/tsearch (Files): Remove lib/tsearch.h.
53796         (Depends-on): Add search.
53797         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
53798         (Include): Change tsearch.h into search.h.
53799
53800 2007-03-24  Bruno Haible  <bruno@clisp.org>
53801
53802         * modules/fpucw: New file.
53803         * lib/fpucw.h: New file.
53804         * lib/frexp.c: Include fpucw.h.
53805         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53806         (FUNC): Use them.
53807         * lib/printf-frexp.c: Include fpucw.h.
53808         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
53809         (FUNC): Use them.
53810         * lib/vasnprintf.c: Include fpucw.h.
53811         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
53812         'long double' calculations.
53813         * tests/test-frexpl.c: Include fpucw.h.
53814         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53815         * tests/test-printf-frexpl.c: Include fpucw.h.
53816         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
53817         * modules/frexpl (Depends-on): Add fpucw.
53818         * modules/printf-frexpl (Depends-on): Likewise.
53819         * modules/fprintf-posix (Depends-on): Likewise.
53820         * modules/snprintf-posix (Depends-on): Likewise.
53821         * modules/sprintf-posix (Depends-on): Likewise.
53822         * modules/vasnprintf-posix (Depends-on): Likewise.
53823         * modules/vasprintf-posix (Depends-on): Likewise.
53824         * modules/vfprintf-posix (Depends-on): Likewise.
53825         * modules/vsnprintf-posix (Depends-on): Likewise.
53826         * modules/vsprintf-posix (Depends-on): Likewise.
53827         * modules/frexpl-tests (Depends-on): Likewise.
53828         * modules/printf-frexpl-tests (Depends-on): Likewise.
53829
53830 2007-03-24  Bruno Haible  <bruno@clisp.org>
53831
53832         * lib/float+.h: New file.
53833         * lib/isnan.c: Include float+.h.
53834         (SIZE): New macro.
53835         (FUNC): Compare only SIZE bytes of the value.
53836         * lib/vasnprintf.c: Include float+.h.
53837         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
53838         SIZEOF_LDBL or SIZEOF_DBL bytes.
53839         * modules/isnan-nolibm (Files): Add lib/float+.h.
53840         * modules/isnanl-nolibm (Files): Add lib/float+.h.
53841         * modules/isnanl (Files): Add lib/float+.h.
53842         * modules/vasnprintf (Files): Add lib/float+.h.
53843
53844 2007-03-24  Bruno Haible  <bruno@clisp.org>
53845
53846         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
53847         include isnanl-nolibm.h.
53848
53849 2007-03-24  Bruno Haible  <bruno@clisp.org>
53850
53851         * tests/test-read-file.c (main): Don't produce spurious output for
53852         expected situations. Make the test fail if it encountered unexpected
53853         results.
53854
53855 2007-03-24  Bruno Haible  <bruno@clisp.org>
53856
53857         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
53858         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
53859
53860 2007-03-24  Bruno Haible  <bruno@clisp.org>
53861
53862         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
53863
53864 2007-03-24  Bruno Haible  <bruno@clisp.org>
53865
53866         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
53867         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
53868
53869         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
53870         * modules/utf8-ucs4: Turn into a symbolic link to module
53871         unistr/u8-mbtouc.
53872
53873         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
53874         utf8-ucs4-unsafe.
53875         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
53876         unistr/u8-mbtouc-unsafe.
53877
53878         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
53879         * modules/utf16-ucs4: Turn into a symbolic link to module
53880         unistr/u16-mbtouc.
53881
53882         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
53883         utf16-ucs4-unsafe.
53884         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
53885         unistr/u16-mbtouc-unsafe.
53886
53887         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
53888         * modules/ucs4-utf8: Turn into a symbolic link to module
53889         unistr/u8-ubtomb.
53890
53891         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
53892         * modules/ucs4-utf16: Turn into a symbolic link to module
53893         unistr/u16-ubtomb.
53894
53895 2007-03-24  Bruno Haible  <bruno@clisp.org>
53896
53897         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
53898         Enable the function only if HAVE_INLINE.
53899         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
53900         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53901         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
53902         Enable the function only if HAVE_INLINE.
53903         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
53904         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
53905         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
53906         Enable the function only if HAVE_INLINE.
53907         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
53908         Enable the function only if HAVE_INLINE.
53909         * modules/utf8-ucs4: Update.
53910         * modules/utf8-ucs4-unsafe: Update.
53911         * modules/utf16-ucs4: Update.
53912         * modules/utf16-ucs4-unsafe: Update.
53913         * modules/ucs4-utf8: Update.
53914         * modules/ucs4-utf16: Update.
53915
53916 2007-03-24  Bruno Haible  <bruno@clisp.org>
53917
53918         * lib/utf8-ucs4.h: Remove file.
53919         * lib/utf8-ucs4-unsafe.h: Remove file.
53920         * lib/utf16-ucs4.h: Remove file.
53921         * lib/utf16-ucs4-unsafe.h: Remove file.
53922         * lib/ucs4-utf8.h: Remove file.
53923         * lib/ucs4-utf16.h: Remove file.
53924         * lib/unistr.h: Include their previous contents.
53925         * m4/utf-ucs4.m4: Remove file.
53926         * m4/ucs4-utf.m4: Remove file.
53927         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
53928         (Depends-on): Add unistr/base.
53929         (configure.ac): Remove gl_UTF_UCS4.
53930         (Makefile.am): Update.
53931         (Include): Change to unistr.h.
53932         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
53933         (Depends-on): Add unistr/base.
53934         (configure.ac): Remove gl_UTF_UCS4.
53935         (Makefile.am): Update.
53936         (Include): Change to unistr.h.
53937         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
53938         (Depends-on): Add unistr/base.
53939         (configure.ac): Remove gl_UTF_UCS4.
53940         (Makefile.am): Update.
53941         (Include): Change to unistr.h.
53942         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
53943         (Depends-on): Add unistr/base.
53944         (configure.ac): Remove gl_UTF_UCS4.
53945         (Makefile.am): Update.
53946         (Include): Change to unistr.h.
53947         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
53948         (Depends-on): Add unistr/base.
53949         (configure.ac): Remove gl_UCS4_UTF.
53950         (Makefile.am): Update.
53951         (Include): Change to unistr.h.
53952         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
53953         (Depends-on): Add unistr/base.
53954         (configure.ac): Remove gl_UCS4_UTF.
53955         (Makefile.am): Update.
53956         (Include): Change to unistr.h.
53957         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
53958         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
53959         utf8-ucs4-unsafe.h.
53960         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
53961         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
53962         utf16-ucs4-unsafe.h.
53963         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
53964         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
53965         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
53966         * lib/unistr/u8-strchr.c: Likewise.
53967         * lib/unistr/u8-strrchr.c: Likewise.
53968         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
53969         * lib/unistr/u16-strchr.c: Likewise.
53970         * lib/unistr/u16-strrchr.c: Likewise.
53971         * lib/striconveh.c: Update.
53972         * lib/linebreak.c: Update.
53973
53974 2007-03-24  Bruno Haible  <bruno@clisp.org>
53975
53976         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
53977         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
53978
53979 2007-03-22  Bruno Haible  <bruno@clisp.org>
53980
53981         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
53982
53983 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53984
53985         * MODULES.html.sh (File system functions): New module write-any-file.
53986         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
53987         * m4/write-any-file.m4: New files.
53988
53989 2007-03-23  Eric Blake  <ebb9@byu.net>
53990
53991         * gnulib-tool: Rearrange space-tab sequences, since some editors
53992         like to eat them.
53993
53994 2007-03-23  Eric Blake  <ebb9@byu.net>
53995
53996         * lib/version-etc.c (version_etc_va): Update license wording to
53997         be more concise.  Recommended by Richard Stallman.
53998
53999 2007-03-22  Bruno Haible  <bruno@clisp.org>
54000
54001         * lib/poll.c (MSG_PEEK): New fallback definition.
54002
54003 2007-03-22  Bruno Haible  <bruno@clisp.org>
54004
54005         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
54006         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
54007         (main): Update.
54008         Fixes a compilation error on BeOS.
54009
54010 2007-03-22  Bruno Haible  <bruno@clisp.org>
54011
54012         * modules/frexpl-tests: New file.
54013         * tests/test-frexpl.c: New file.
54014
54015         * modules/frexpl: New file.
54016         * m4/frexpl.m4: New file.
54017         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
54018         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
54019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
54020         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
54021         (Depends-on): Add frexpl. Remove isnanl-nolibm.
54022         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
54023
54024 2007-03-22  Bruno Haible  <bruno@clisp.org>
54025
54026         * lib/frexpl.c: Share code with lib/frexp.c.
54027         * modules/mathl (Files): Add lib/frexp.c.
54028         (Depends-on): Add isnanl-nolibm.
54029
54030 2007-03-22  Bruno Haible  <bruno@clisp.org>
54031
54032         * modules/printf-frexp (Files): Add m4/frexp.m4.
54033         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
54034         only if the found frexp function actually works.
54035
54036 2007-03-22  Bruno Haible  <bruno@clisp.org>
54037
54038         * lib/frexp.c: Remove older implementation that uses divisions.
54039
54040 2007-03-21  Bruno Haible  <bruno@clisp.org>
54041
54042         * modules/frexp-tests: New file.
54043         * tests/test-frexp.c: New file.
54044
54045         * modules/frexp: New file.
54046         * lib/frexp.c: New file.
54047         * m4/frexp.m4: New file.
54048         * lib/math_.h (frexp): New declaration.
54049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
54050         REPLACE_FREXP.
54051         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
54052
54053 2007-03-21  Bruno Haible  <bruno@clisp.org>
54054
54055         * modules/isnanl-tests: New file.
54056         * tests/test-isnanl.c: New file.
54057
54058         * modules/isnanl: New file.
54059         * lib/isnanl.h: New file.
54060         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
54061         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
54062         gl_FUNC_ISNANL_WORKS.
54063         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
54064         New macros.
54065
54066 2007-03-21  Bruno Haible  <bruno@clisp.org>
54067
54068         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
54069         lib/isnanl.h.
54070         (Include): Update.
54071         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
54072         * lib/vasnprintf.c: Update.
54073         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
54074         tests/test-isnanl.h, remove tests/test-isnanl.c.
54075         (Makefile.am): Update.
54076         * tests/test-isnanl-nolibm.c: New file.
54077         * tests/test-isnanl.h: New file.
54078         * tests/test-isnanl.c: Remove file.
54079
54080 2007-03-21  Jim Meyering  <jim@meyering.net>
54081
54082         When trying to open ".", treat ESTALE like EACCES.
54083         * lib/savewd.c (savewd_save): Resort to forking not just upon
54084         failure with EACCES, but also when errno is ESTALE.
54085
54086 2007-03-20  Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
54089         Needed on AIX 5.1. Reported by Matthew Woehlke.
54090
54091 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54092
54093         Suggestions by Bruno Haible:
54094         * lib/acl-internal.h: Include "gettext.h" rather than rolling
54095         our own.
54096         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
54097         * modules/acl (Depends-on): Add gettext.
54098
54099 2007-03-19  Bruno Haible  <bruno@clisp.org>
54100
54101         * modules/iconvme: Remove file.
54102         * lib/iconvme.h: Remove file.
54103         * lib/iconvme.c: Remove file.
54104         * m4/iconvme.m4: Remove file.
54105
54106 2007-03-19  Bruno Haible  <bruno@clisp.org>
54107
54108         * doc/relocatable-maint.texi: Break long shell script line.
54109         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54110
54111 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54112
54113         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
54114         handle file_has_acl.
54115         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
54116         * lib/acl.c: Move header inclusions and related macro defns into
54117         lib/acl-internal.h.
54118         (S_ISLNK): Remove defn, since that's now done for us.
54119         (file_has_acl): Move to lib/file-has-acl.c.
54120         Call acl_trivial if available.  This is the crucial part of the fix.
54121         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
54122         shared within the library.  Rewrite a bit, partly to make it compatible
54123         with the GNU coding style.
54124         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
54125         Remove unnecessary double-quotes.
54126         Don't test for acl_to_text; the build will catch that.
54127         Replace acl_entries if it doesn't exist and it is needed.
54128         Check for -lsec and acl_trivial (as used on Solaris 10).
54129         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
54130         lib/file-has-acl.c.
54131         (Depends-on): Add sys_stat, for S_ISLNK.
54132
54133 2007-03-19  Ben Pfaff  <blp@gnu.org>
54134
54135         * doc/gnulib.texi: Fix typos.
54136         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
54137
54138 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
54139
54140         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
54141         If size is zero here, buf must be zero.
54142
54143 2007-03-19  Simon Josefsson  <simon@josefsson.org>
54144
54145         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
54146         <bruno@clisp.org>.
54147
54148 2007-03-18  Bruno Haible  <bruno@clisp.org>
54149
54150         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
54151         Suggested by Eric Blake.
54152
54153 2007-03-18  Ben Pfaff  <blp@gnu.org>
54154
54155         * doc/relocatable.texi: Recommend using as prefix a directory
54156         that does not exist and will never be created.  Based on
54157         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
54158         and others.
54159
54160 2007-03-17  Bruno Haible  <bruno@clisp.org>
54161
54162         * lib/fchownat.c: Include lchown.h.
54163
54164 2007-03-17  Bruno Haible  <bruno@clisp.org>
54165
54166         Fix endless loop when the given allocated size was > INT_MAX.
54167         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
54168         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
54169         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
54170         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
54171         * lib/sprintf.c (sprintf): Likewise.
54172
54173 2007-03-17  Bruno Haible  <bruno@clisp.org>
54174
54175         * tests/test-argp-2.sh (func_compare): Output a context diff.
54176
54177 2007-03-17  Bruno Haible  <bruno@clisp.org>
54178
54179         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
54180         locale's decimal-point character.
54181
54182 2007-03-17  Bruno Haible  <bruno@clisp.org>
54183
54184         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
54185         before comparing it. Needed because on some platforms (e.g. x86) a
54186         'long double' occupies less bytes than sizeof (long double).
54187
54188 2007-03-17  Bruno Haible  <bruno@clisp.org>
54189
54190         * tests/test-crc.c (main): Make printf statements 64-bit clean.
54191         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
54192         * tests/test-getaddrinfo.c (simple): Likewise.
54193         * tests/test-read-file.c (main): Likewise.
54194
54195 2007-03-17  Bruno Haible  <bruno@clisp.org>
54196
54197         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
54198
54199 2007-03-17  Bruno Haible  <bruno@clisp.org>
54200
54201         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
54202         unused variable.
54203
54204 2007-03-17  Bruno Haible  <bruno@clisp.org>
54205
54206         * tests/test-c-strcasecmp.c: Include c-strcase.h.
54207         * tests/test-c-strncasecmp.c: Likewise.
54208
54209 2007-03-17  Bruno Haible  <bruno@clisp.org>
54210
54211         * modules/stdlib (Depends-on): Add unistd.
54212         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
54213         Needed for MacOS X 10.3.
54214
54215 2007-03-17  Bruno Haible  <bruno@clisp.org>
54216
54217         * lib/unistr/u-strdup.h: Include <stdlib.h>.
54218
54219 2007-03-17  Bruno Haible  <bruno@clisp.org>
54220
54221         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
54222
54223 2007-03-17  Bruno Haible  <bruno@clisp.org>
54224
54225         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
54226         to reflect files copied from gnulib (with or without modifications).
54227         Suggested by Jim Meyering.
54228
54229 2007-03-17  Eric Blake  <ebb9@byu.net>
54230
54231         * NEWS: Document stdlib change from 2007-02-18.
54232
54233 2007-03-17  Jim Meyering  <jim@meyering.net>
54234
54235         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
54236         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
54237         someone uses a name containing shell meta-characters.
54238         Reported by Alfred M. Szmidt.
54239
54240         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
54241
54242 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54243
54244         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
54245         and copy gettext configuration files only if configure.ac contains
54246         a use of AM_GNU_GETTEXT_VERSION.
54247
54248 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
54249
54250         * build-aux/bootstrap (gnulib_name): New variable.
54251         (gnulib_tool_options): Use it.
54252
54253 2007-03-13  Simon Josefsson  <simon@josefsson.org>
54254
54255         * tests/test-des.c: Use new namespace.
54256
54257 2007-03-15  Bruno Haible  <bruno@clisp.org>
54258
54259         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
54260         Reported by James Youngman <jay@gnu.org>.
54261
54262 2007-03-15  Bruno Haible  <bruno@clisp.org>
54263
54264         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
54265         declared prototype. Needed with cc on OSF/1 5.1.
54266
54267 2007-03-15  Bruno Haible  <bruno@clisp.org>
54268
54269         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
54270         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
54271         (struct gl_list_implementation): Add dispose_fn argument to the
54272         'create_empty', 'create' methods.
54273         (struct gl_list_impl_base): Add field 'dispose_fn'.
54274         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
54275         argument.
54276         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
54277         dispose_fn argument.
54278         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
54279         dispose_fn on the dropped values.
54280         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
54281         dispose_fn argument.
54282         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
54283         dropped values.
54284         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
54285         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54286         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
54287         (gl_tree_remove_node): Call dispose_fn on the dropped value.
54288         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
54289         argument.
54290         (gl_tree_list_free): Call dispose_fn on the dropped values.
54291         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
54292         the dropped values.
54293         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
54294         Add dispose_fn argument.
54295         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
54296         Call dispose_fn on the dropped values.
54297         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
54298         Add dispose_fn argument.
54299         (gl_sublist_create): Initialize the 'dispose_fn' field.
54300         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
54301         * tests/test-array_list.c (main): Update.
54302         * tests/test-carray_list.c (main): Update.
54303         * tests/test-avltree_list.c (main): Update.
54304         * tests/test-rbtree_list.c (main): Update.
54305         * tests/test-avltreehash_list.c (main): Update.
54306         * tests/test-rbtreehash_list.c (main): Update.
54307         * tests/test-linked_list.c (main): Update.
54308         * tests/test-linkedhash_list.c (main): Update.
54309         * tests/test-array_oset.c (main): Update.
54310
54311 2007-03-15  Bruno Haible  <bruno@clisp.org>
54312
54313         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
54314         (gl_oset_create_empty): Add dispose_fn argument.
54315         (struct gl_oset_implementation): Add dispose_fn argument to
54316         'create_empty' method.
54317         (struct gl_oset_impl_base): Add dispose_fn field.
54318         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
54319         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
54320         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
54321         values.
54322         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
54323         (gl_tree_oset_free): Call dispose_fn on the dropped values.
54324         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54325         dropped value.
54326         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
54327         dropped value.
54328         * tests/test-array_oset.c (main): Update.
54329         * tests/test-avltree_oset.c (main): Update.
54330         * tests/test-rbtree_oset.c (main): Update.
54331         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
54332
54333 2007-03-13  Bruno Haible  <bruno@clisp.org>
54334
54335         * tests/test-stdbool.c (i): Update after last patch.
54336
54337 2007-03-12  Bruno Haible  <bruno@clisp.org>
54338
54339         * lib/quotearg.c: Include <wctype.h> early, before the definition of
54340         the iswprint macro. Needed on Solaris 2.5.1.
54341
54342 2007-03-12  Bruno Haible  <bruno@clisp.org>
54343
54344         * tests/test-printf-frexp.c (main): Declare x as volatile.
54345
54346 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54347
54348         * doc/gnulib.texi (Build robot for gnulib): New section.
54349
54350 2007-03-12  Jim Meyering  <jim@meyering.net>
54351
54352         * build-aux/bootstrap: New file.
54353         * build-aux/bootstrap.conf: New file, from coreutils.
54354
54355 2007-03-11  Bruno Haible  <bruno@clisp.org>
54356
54357         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
54358
54359 2007-03-12  Simon Josefsson  <simon@josefsson.org>
54360
54361         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
54362         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
54363         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
54364
54365 2007-03-11  Bruno Haible  <bruno@clisp.org>
54366
54367         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
54368         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
54369
54370 2007-03-11  Bruno Haible  <bruno@clisp.org>
54371
54372         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
54373         formula. Needed for SunPRO C 5.0.
54374
54375 2007-03-11  Bruno Haible  <bruno@clisp.org>
54376
54377         * modules/long-options (Depends-on): Add getopt.
54378
54379 2007-03-11  Bruno Haible  <bruno@clisp.org>
54380
54381         * modules/modechange (Depends-on): Add stdbool.
54382
54383 2007-03-11  Bruno Haible  <bruno@clisp.org>
54384
54385         * modules/i-ring (Depends-on): Add stdbool.
54386
54387 2007-03-11  Bruno Haible  <bruno@clisp.org>
54388
54389         * modules/gc-des (Depends-on): Add stdbool.
54390
54391 2007-03-11  Bruno Haible  <bruno@clisp.org>
54392
54393         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
54394
54395 2007-03-11  Bruno Haible  <bruno@clisp.org>
54396
54397         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
54398
54399 2007-03-11  Bruno Haible  <bruno@clisp.org>
54400
54401         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
54402
54403 2007-03-11  Bruno Haible  <bruno@clisp.org>
54404
54405         * lib/vasnprintf.c (sprintf): Undefine.
54406
54407 2007-03-11  Bruno Haible  <bruno@clisp.org>
54408
54409         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
54410         initializers in SunPRO C and Compaq C compilers.
54411
54412 2007-03-11  Bruno Haible  <bruno@clisp.org>
54413
54414         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
54415         decrementing code ANSI C compliant.
54416
54417 2007-03-11  Bruno Haible  <bruno@clisp.org>
54418
54419         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
54420         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
54421
54422 2007-03-11  Bruno Haible  <bruno@clisp.org>
54423
54424         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
54425         <stdbool.h> substitute doesn't pass.
54426
54427 2007-03-11  Bruno Haible  <bruno@clisp.org>
54428
54429         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
54430
54431 2007-03-11  Bruno Haible  <bruno@clisp.org>
54432
54433         * gnulib-tool (func_create_megatestdir): Create also an autobuild
54434         script, for submission to autobuild.josefsson.org.
54435
54436 2007-03-10  Bruno Haible  <bruno@clisp.org>
54437
54438         * modules/canonicalize-lgpl-tests: New file.
54439         * tests/test-canonicalize-lgpl.sh: New file.
54440         * tests/test-canonicalize-lgpl.c: New file.
54441
54442         * modules/c-strcase-tests: New file.
54443         * tests/test-c-strcase.sh: New file.
54444         * tests/test-c-strcasecmp.c: New file.
54445         * tests/test-c-strncasecmp.c: New file.
54446
54447         * modules/atexit-tests: New file.
54448         * tests/test-atexit.sh: New file.
54449         * tests/test-atexit.c: New file.
54450
54451 2007-03-10  Bruno Haible  <bruno@clisp.org>
54452
54453         * tests/test-binary-io.sh: Use temporary filenames that are not so
54454         likely to clash with those of other tests (in a parallel make).
54455         * tests/test-binary-io.c: Likewise.
54456
54457 2007-03-10  Bruno Haible  <bruno@clisp.org>
54458
54459         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
54460         fallback; use #error instead.
54461         Suggested by Simon Josefsson.
54462
54463 2007-03-10  Bruno Haible  <bruno@clisp.org>
54464
54465         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
54466         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
54467         first and the last.
54468
54469 2007-03-10  Bruno Haible  <bruno@clisp.org>
54470
54471         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
54472
54473 2007-03-10  Bruno Haible  <bruno@clisp.org>
54474
54475         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
54476         "make distcheck".
54477         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
54478         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
54479         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
54480
54481 2007-03-10  Bruno Haible  <bruno@clisp.org>
54482
54483         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
54484         variable.
54485         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
54486         variable.
54487
54488 2007-03-09  Eric Blake  <ebb9@byu.net>
54489         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
54490
54491         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
54492         types are not being provided by gnulib.
54493         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
54494         types are supported.
54495
54496 2007-03-10  Bruno Haible  <bruno@clisp.org>
54497
54498         * lib/stdio_.h (__attribute__): New macro.
54499         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
54500         vsprintf): Specify __attribute__ __format__ for GCC.
54501         Suggested by Eric Blake.
54502
54503 2007-03-09  Bruno Haible  <bruno@clisp.org>
54504
54505         * modules/printf-posix-tests: New file.
54506         * tests/test-printf-posix.sh: New file.
54507         * tests/test-printf-posix.c: New file.
54508
54509         * modules/printf-posix: New file.
54510         * lib/printf.c: New file.
54511         * m4/printf-posix-rpl.m4: New file.
54512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
54513         REPLACE_PRINTF.
54514         * lib/stdio_.h (printf): New declaration.
54515         (format, __format__, ____printf____, ____scanf____, ____strftime____,
54516         ____strfmon____): New macros.
54517         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
54518         REPLACE_PRINTF.
54519
54520 2007-03-09  Bruno Haible  <bruno@clisp.org>
54521
54522         * tests/test-vasnprintf-posix2.sh: New file.
54523         * tests/test-vasnprintf-posix2.c: New file.
54524         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
54525         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
54526         (Makefile.am): Activate test-vasnprintf-posix2.sh.
54527
54528         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
54529         a locale dependent decimal point, rather than always '.'.
54530
54531 2007-03-09  Eric Blake  <ebb9@byu.net>
54532
54533         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
54534         spite of platforms like Tandem/NSK that define it to -1.
54535
54536 2007-03-08  Bruno Haible  <bruno@clisp.org>
54537
54538         * modules/vprintf-posix-tests: New file.
54539         * tests/test-vprintf-posix.sh: New file.
54540         * tests/test-vprintf-posix.c: New file.
54541         * tests/test-printf-posix.h: New file.
54542
54543         * modules/vprintf-posix: New file.
54544         * lib/vprintf.c: New file.
54545         * m4/vprintf-posix.m4: New file.
54546         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
54547         REPLACE_VPRINTF.
54548         * lib/stdio_.h (vprintf): New declaration.
54549         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
54550         REPLACE_VPRINTF.
54551
54552 2007-03-08  Bruno Haible  <bruno@clisp.org>
54553
54554         * modules/fprintf-posix-tests: New file.
54555         * tests/test-fprintf-posix.sh: New file.
54556         * tests/test-fprintf-posix.c: New file.
54557
54558         * modules/fprintf-posix: New file.
54559         * lib/fprintf.c: New file.
54560         * m4/fprintf-posix.m4: New file.
54561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
54562         REPLACE_FPRINTF.
54563         * lib/stdio_.h (fprintf): New declaration.
54564         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
54565         REPLACE_FPRINTF.
54566
54567 2007-03-08  Bruno Haible  <bruno@clisp.org>
54568
54569         * modules/vfprintf-posix-tests: New file.
54570         * tests/test-vfprintf-posix.sh: New file.
54571         * tests/test-vfprintf-posix.c: New file.
54572         * tests/test-fprintf-posix.h: New file.
54573         * tests/test-fprintf-posix.out: New file.
54574
54575         * modules/vfprintf-posix: New file.
54576         * lib/vfprintf.c: New file.
54577         * m4/vfprintf-posix.m4: New file.
54578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
54579         REPLACE_VFPRINTF.
54580         * lib/stdio_.h (vfprintf): New declaration.
54581         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
54582         REPLACE_VFPRINTF.
54583
54584 2007-03-08  Bruno Haible  <bruno@clisp.org>
54585
54586         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
54587
54588 2007-03-08  Bruno Haible  <bruno@clisp.org>
54589
54590         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
54591         instead of 'expr' invocations.
54592         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54593         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54594         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54595         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54596         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54597         Suggested by Paul Eggert.
54598
54599 2007-03-08  Bruno Haible  <bruno@clisp.org>
54600
54601         * modules/fseterr-tests: New file.
54602         * tests/test-fseterr.c: New file.
54603
54604         * modules/fseterr: New file.
54605         * lib/fseterr.h: New file.
54606         * lib/fseterr.c: New file.
54607
54608 2007-03-08  Bruno Haible  <bruno@clisp.org>
54609
54610         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
54611         * lib/getopt_.h: Likewise.
54612         * lib/mbswidth.h: Likewise.
54613         * lib/setenv.h: Likewise.
54614         * lib/vasnprintf.h: Likewise.
54615         * lib/vasprintf.h: Likewise.
54616         * lib/verror.h: Likewise.
54617         * lib/xsetenv.h: Likewise.
54618         * lib/xvasprintf.h: Likewise.
54619
54620 2007-03-08  Jim Meyering  <jim@meyering.net>
54621
54622         * users.txt: Add parted.
54623
54624         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
54625
54626 2007-03-07  Bruno Haible  <bruno@clisp.org>
54627
54628         * m4/printf.m4: Make the shell script snippets copy&pastable.
54629
54630 2007-03-02  Bruno Haible  <bruno@clisp.org>
54631
54632         * lib/netinet_in_.h: New file.
54633         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
54634         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
54635         * modules/netinet_in (Files): Add lib/netinet_in_.h.
54636         (Depends-on): Add absolute-header.
54637         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
54638         into netinet/in.h.
54639
54640 2007-03-03  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/sys_select_.h: New file.
54643         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
54644         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
54645         * modules/sys_select (Files): Add lib/sys_select_.h.
54646         (Depends-on): Add absolute-header.
54647         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
54648         into sys/select.h.
54649
54650 2007-03-02  Bruno Haible  <bruno@clisp.org>
54651
54652         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
54653         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
54654         values.
54655         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
54656         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
54657         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
54658         * modules/sys_socket (Depends-on): Add absolute-header.
54659         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
54660         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
54661         (Include): Remove requirement of inclusion of <sys/types.h>.
54662
54663 2007-03-02  Bruno Haible  <bruno@clisp.org>
54664
54665         * lib/byteswap_.h (bswap_32): Fix formula.
54666
54667 2007-03-06  Bruno Haible  <bruno@clisp.org>
54668
54669         * modules/sprintf-posix-tests: New file.
54670         * tests/test-sprintf-posix.c: New file.
54671
54672         * modules/sprintf-posix: New file.
54673         * lib/sprintf.c: New file.
54674         * m4/sprintf-posix.m4: New file.
54675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
54676         REPLACE_SPRINTF.
54677         * lib/stdio_.h (sprintf): New declaration.
54678         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
54679         REPLACE_SPRINTF.
54680
54681 2007-03-06  Bruno Haible  <bruno@clisp.org>
54682
54683         * modules/vsprintf-posix-tests: New file.
54684         * tests/test-vsprintf-posix.c: New file.
54685         * tests/test-sprintf-posix.h: New file.
54686
54687         * modules/vsprintf-posix: New file.
54688         * lib/vsprintf.c: New file.
54689         * m4/vsprintf-posix.m4: New file.
54690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
54691         REPLACE_VSPRINTF.
54692         * lib/stdio_.h (vsprintf): New declaration.
54693         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
54694         REPLACE_VSPRINTF.
54695
54696 2007-03-06  Bruno Haible  <bruno@clisp.org>
54697
54698         * modules/vsnprintf (Depend-on): Remove minmax.
54699
54700 2007-03-06  Bruno Haible  <bruno@clisp.org>
54701
54702         * modules/snprintf-posix-tests: New file.
54703         * tests/test-snprintf-posix.c: New file.
54704
54705         * modules/snprintf-posix: New file.
54706         * m4/snprintf-posix.m4: New file.
54707         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
54708         gl_FUNC_SNPRINTF.
54709         (gl_FUNC_SNPRINTF): Invoke it.
54710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
54711         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
54712         is set.
54713         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
54714
54715 2007-03-06  Bruno Haible  <bruno@clisp.org>
54716
54717         * modules/vsnprintf-posix-tests: New file.
54718         * tests/test-vsnprintf-posix.c: New file.
54719         * tests/test-snprintf-posix.h: New file.
54720
54721         * modules/vsnprintf-posix: New file.
54722         * m4/vsnprintf-posix.m4: New file.
54723         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
54724         gl_FUNC_VSNPRINTF.
54725         (gl_FUNC_VSNPRINTF): Invoke it.
54726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
54727         * lib/stdio_.h (vsnprintf): Define as a replacement if
54728         REPLACE_VSNPRINTF is set.
54729         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
54730
54731 2007-03-06  Bruno Haible  <bruno@clisp.org>
54732
54733         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
54734         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
54735
54736 2007-03-06  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
54739         (asinl): Declare also if HAVE_DECL_ASINL is set.
54740         (atanl): Declare also if HAVE_DECL_ATANL is set.
54741         (ceill): Declare also if HAVE_DECL_CEILL is set.
54742         (cosl): Declare also if HAVE_DECL_COSL is set.
54743         (expl): Declare also if HAVE_DECL_EXPL is set.
54744         (floorl): Declare also if HAVE_DECL_FLOORL is set.
54745         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
54746         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
54747         (logl): Declare also if HAVE_DECL_LOGL is set.
54748         (sinl): Declare also if HAVE_DECL_SINL is set.
54749         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
54750         (tanl): Declare also if HAVE_DECL_TANL is set.
54751         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
54752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
54753         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
54754         declaration of frexpl, ldexpl.
54755         * modules/printf-frexpl (Depends-on): Add math.
54756         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
54757
54758 2007-03-05  Bruno Haible  <bruno@clisp.org>
54759
54760         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
54761         frexpl and ldexpl are declared.
54762         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
54763
54764 2007-03-05  Bruno Haible  <bruno@clisp.org>
54765
54766         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
54767         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
54768
54769 2007-03-05  Bruno Haible  <bruno@clisp.org>
54770
54771         * lib/stdio_.h: Include <stddef.h>.
54772
54773 2007-03-05  Bruno Haible  <bruno@clisp.org>
54774
54775         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
54776
54777 2007-03-05  Bruno Haible  <bruno@clisp.org>
54778
54779         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
54780         NetBSD 4, from Ralf Wildenhues.
54781
54782 2007-03-04  Bruno Haible  <bruno@clisp.org>
54783
54784         * lib/vasprintf.h: Update #if logic for the case when the functions
54785         exist but are overridden.
54786
54787 2007-03-04  Bruno Haible  <bruno@clisp.org>
54788
54789         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
54790         implementations: glibc-2.4 and MacOS X 10.3.
54791         * tests/test-vasnprintf-posix.c (test_function): Test also the case
54792         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
54793         * tests/test-vasprintf-posix.c (test_function): Likewise.
54794
54795 2007-03-04  Bruno Haible  <bruno@clisp.org>
54796
54797         * modules/vasprintf-posix-tests: New file.
54798         * tests/test-vasprintf-posix.c: New file.
54799
54800         * modules/vasprintf-posix: New file.
54801         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
54802         defined.
54803         * m4/vasprintf-posix.m4: New file.
54804         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
54805         gl_FUNC_VASPRINTF.
54806         (gl_FUNC_VASPRINTF): Invoke it.
54807         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
54808         here.
54809         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
54810
54811 2007-03-04  Bruno Haible  <bruno@clisp.org>
54812
54813         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
54814         REPLACE_GETTIMEOFDAY.
54815         * modules/sys_time (Makefile.am): Likewise.
54816         * m4/sys_time_h.m4: Likewise.
54817         * m4/gettimeofday.m4: Likewise.
54818
54819 2007-03-04  Bruno Haible  <bruno@clisp.org>
54820
54821         * modules/vasnprintf-posix-tests: New file.
54822         * tests/test-vasnprintf-posix.c: New file.
54823
54824         * modules/vasnprintf-posix: New file.
54825         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
54826         printf-frexpl.h.
54827         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
54828         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
54829         REPLACE_VASNPRINTF is defined.
54830         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
54831         gl_FUNC_VASNPRINTF.
54832         (gl_FUNC_VASNPRINTF): Invoke it.
54833         * m4/vasnprintf-posix.m4: New file.
54834         * m4/printf.m4: New file.
54835
54836 2007-03-04  Bruno Haible  <bruno@clisp.org>
54837
54838         Compile progreloc.c only if --enable-relocatable is specified.
54839         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
54840         if --enable-relocatable was specified.
54841         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
54842         lib_SOURCES.
54843
54844 2007-03-04  Jim Meyering  <jim@meyering.net>
54845
54846         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
54847         Use it consistently, rather than enumerating errno constants.
54848
54849 2007-03-04  Bruno Haible  <bruno@clisp.org>
54850
54851         * modules/xvasprintf-tests: New file.
54852         * tests/test-xvasprintf.c: New file.
54853
54854         * modules/vasprintf-tests: New file.
54855         * tests/test-vasprintf.c: New file.
54856
54857         * modules/vasnprintf-tests: New file.
54858         * tests/test-vasnprintf.c: New file.
54859
54860         * modules/vsnprintf-tests: New file.
54861         * tests/test-vsnprintf.c: New file.
54862
54863         * modules/snprintf-tests: New file.
54864         * tests/test-snprintf.c: New file.
54865
54866 2007-03-04  Bruno Haible  <bruno@clisp.org>
54867
54868         Compile relocatable.c only if --enable-relocatable is specified.
54869         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
54870         gl_RELOCATABLE_LIBRARY.
54871         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
54872         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
54873         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
54874         gl_RELOCATABLE_LIBRARY.
54875         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
54876         (Makefile.am): Remove lib_SOURCES.
54877         * modules/relocatable-lib-lgpl (configure.ac): Invoke
54878         gl_RELOCATABLE_LIBRARY.
54879         (Makefile.am): Remove lib_SOURCES.
54880         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
54881         always.
54882         * modules/relocatable-prog-wrapper (configure.ac): Invoke
54883         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
54884
54885 2007-03-04  Bruno Haible  <bruno@clisp.org>
54886
54887         * modules/argmatch-tests: New file.
54888         * tests/test-argmatch.c: New file.
54889
54890         * tests/test-allocsa.c (main): Halve the number of loop runs.
54891
54892         * modules/alloca-opt-tests: New file.
54893         * tests/test-alloca-opt.c: New file.
54894
54895 2007-03-04  Jim Meyering  <jim@meyering.net>
54896
54897         Work around difference between Linux ACLs and Solaris 10 ZFS.
54898         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
54899         for EINVAL.
54900
54901 2007-03-03  Bruno Haible  <bruno@clisp.org>
54902
54903         * modules/relocatable-prog (Depends-on): Add back progreloc's
54904         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
54905
54906 2007-03-03  Bruno Haible  <bruno@clisp.org>
54907
54908         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
54909         * modules/relocatable-lib: New file.
54910
54911 2007-03-03  Bruno Haible  <bruno@clisp.org>
54912
54913         * modules/relocatable-prog: Renamed from modules/relocatable.
54914         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
54915
54916 2007-03-03  Bruno Haible  <bruno@clisp.org>
54917
54918         * modules/relocatable-script (Files): Add doc/relocatable.texi,
54919         m4/relocatable-lib.m4.
54920         (Depends-on): Remove 'relocatable'.
54921         (configure.ac): Add gl_RELOCATABLE_NOP.
54922
54923 2007-03-03  Bruno Haible  <bruno@clisp.org>
54924
54925         * modules/relocatable-prog-wrapper: New file.
54926         * modules/relocatable (Depends-on): Add it. Remove all other
54927         dependencies except progname.
54928         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
54929
54930         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
54931         (gl_FUNC_STRERROR): Nop.
54932         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
54933
54934         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
54935         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
54936
54937         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
54938         (gl_FUNC_READLINK): Update.
54939
54940         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
54941
54942 2007-03-03  Bruno Haible  <bruno@clisp.org>
54943
54944         * lib/xreadlink.c: Include <unistd.h> unconditionally.
54945         * modules/xreadlink (Depends-on): Add unistd.
54946         * modules/xreadlink-with-size (Depends-on): Likewise.
54947
54948 2007-03-03  Bruno Haible  <bruno@clisp.org>
54949
54950         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
54951         extracted from gt_FUNC_SETENV.
54952         (gt_FUNC_SETENV): Remove macro.
54953         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
54954         remove gt_FUNC_SETENV.
54955
54956 2007-03-03  Bruno Haible  <bruno@clisp.org>
54957
54958         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
54959         ENABLE_RELOCATABLE here.
54960         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
54961
54962 2007-03-03  Bruno Haible  <bruno@clisp.org>
54963
54964         * modules/rbtreehash-list-tests (Depends-on): Add progname.
54965         * tests/test-rbtreehash_list.c: Include progname.h.
54966         (main): Call set_program_name.
54967
54968         * modules/rbtree-oset-tests (Depends-on): Add progname.
54969         * tests/test-rbtree_oset.c: Include progname.h.
54970         (main): Call set_program_name.
54971
54972         * modules/rbtree-list-tests (Depends-on): Add progname.
54973         * tests/test-rbtree_list.c: Include progname.h.
54974         (main): Call set_program_name.
54975
54976         * modules/linked-list-tests (Depends-on): Add progname.
54977         * tests/test-linked_list.c: Include progname.h.
54978         (main): Call set_program_name.
54979
54980 2007-03-03  Bruno Haible  <bruno@clisp.org>
54981
54982         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
54983         All uses of __restrict changed to _Restrict_.
54984         * lib/glob_.h (__restrict): Remove macro.
54985
54986 2007-03-02  Bruno Haible  <bruno@clisp.org>
54987
54988         * modules/gettext (configure.ac): Require gettext infrastructure
54989         from version 0.16.1.
54990
54991 2007-03-02  Bruno Haible  <bruno@clisp.org>
54992
54993         * modules/linkedhash-list-tests (Depends-on): Add progname.
54994         * tests/test-linkedhash_list.c: Include progname.h.
54995         (main): Call set_program_name.
54996
54997         * modules/carray-list-tests (Depends-on): Add progname.
54998         * tests/test-carray_list.c: Include progname.h.
54999         (main): Call set_program_name.
55000
55001         * modules/avltreehash-list-tests (Depends-on): Add progname.
55002         * tests/test-avltreehash_list.c: Include progname.h.
55003         (main): Call set_program_name.
55004
55005         * modules/avltree-oset-tests (Depends-on): Add progname.
55006         * tests/test-avltree_oset.c: Include progname.h.
55007         (main): Call set_program_name.
55008
55009         * modules/avltree-list-tests (Depends-on): Add progname.
55010         * tests/test-avltree_list.c: Include progname.h.
55011         (main): Call set_program_name.
55012
55013         * modules/array-oset-tests (Depends-on): Add progname.
55014         * tests/test-array_oset.c: Include progname.h.
55015         (main): Call set_program_name.
55016
55017         * modules/array-list-tests (Depends-on): Add progname.
55018         * tests/test-array_list.c: Include progname.h.
55019         (main): Call set_program_name.
55020
55021         * modules/argp-tests (Depends-on): Add progname.
55022         * tests/test-argp.c: Include argp.h first. Include progname.h.
55023         (main): Call set_program_name.
55024
55025 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
55026
55027         * doc/gnulib-tool.texi (Initial import): Reword description of
55028         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
55029         limited effect even if defined after the first system include.
55030
55031 2007-03-01  Bruno Haible  <bruno@clisp.org>
55032
55033         * build-aux/config.libpath: Update to libtool-1.5.22.
55034         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55035
55036 2007-03-01  Bruno Haible  <bruno@clisp.org>
55037
55038         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
55039         foo_CFLAGS.
55040         Reported by Ralf Wildenhues.
55041
55042 2007-03-01  Bruno Haible  <bruno@clisp.org>
55043
55044         * build-aux/install-reloc: Remove object files left over by some
55045         compilers.
55046         Reported by Ralf Wildenhues.
55047
55048 2007-03-01  Bruno Haible  <bruno@clisp.org>
55049
55050         * build-aux/install-reloc: Break long lines.
55051
55052 2007-03-01  Bruno Haible  <bruno@clisp.org>
55053
55054         * doc/relocatable.texi: Document that it may not work on OpenBSD.
55055         Reported by Ralf Wildenhues.
55056
55057 2007-03-01  Bruno Haible  <bruno@clisp.org>
55058
55059         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
55060         include ordering constraints.
55061
55062 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55063
55064         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
55065         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
55066         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
55067         as another example.
55068         * lib/time_.h: Fix misspelling.
55069         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55070         Require gl_HEADER_TIME_H_DEFAULTS.
55071         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
55072         * m4/time_r.m4 (gl_TIME_R): Likewise.
55073         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
55074
55075 2007-03-01  Bruno Haible  <bruno@clisp.org>
55076
55077         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
55078         * m4/utimens.m4 (gl_UTIMENS): Likewise.
55079
55080 2007-03-01  Jim Meyering  <jim@meyering.net>
55081
55082         * modules/xreadlink (Maintainer): Add my name.
55083         * modules/xreadlink-with-size (Depends-on): Alphabetize.
55084
55085 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
55086             Bruno Haible  <bruno@clisp.org>
55087
55088         * build-aux/install-reloc: Compile also c-ctype.c.
55089         * build-aux/relocatable.sh.in: New file.
55090         * doc/relocatable.texi: New file.
55091         * doc/relocatable-maint.texi: New file.
55092         * doc/gnulib.texi: Include relocatable-maint.texi.
55093         * lib/progreloc.c: Include unistd.h unconditionally.
55094         * lib/relocwrapper.c: Include unistd.h unconditionally.
55095         Include c-ctype.h.
55096         (add_dotbin): Use c_tolower.
55097         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
55098         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
55099         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
55100         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
55101         to m4/relocatable-lib.m4.
55102         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
55103         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
55104         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
55105         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
55106         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
55107         * modules/relocatable: New file.
55108         * modules/relocatable-lib: New file.
55109         * modules/relocatable-script: New file.
55110
55111 2007-02-28  Bruno Haible  <bruno@clisp.org>
55112
55113         Import --enable-relocatable infrastructure.
55114         * build-aux/config.libpath: New file, from GNU gettext.
55115         * build-aux/install-reloc: New file, from GNU gettext.
55116         * build-aux/reloc-ldflags: New file, from GNU gettext.
55117         * lib/relocatable.h: New file, from GNU gettext.
55118         * lib/relocatable.c: New file, from GNU gettext.
55119         * lib/relocwrapper.c: New file, from GNU gettext.
55120         * m4/relocatable.m4: New file, from GNU gettext.
55121
55122 2007-02-28  Bruno Haible  <bruno@clisp.org>
55123
55124         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
55125
55126         * modules/xreadlink: New file, from GNU gettext with modifications.
55127         * lib/xreadlink.c: New file, from GNU gettext.
55128         * lib/xreadlink.h: Add comments.
55129         (xreadlink): New declaration.
55130
55131         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
55132         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
55133         lib/xreadlink-with-size.c.
55134         (configure.ac): Remove gl_XREADLINK invocation.
55135         (Makefile.am): Augment lib_SOURCES.
55136         * m4/xreadlink.m4: Remove file.
55137         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
55138         (xreadlink_with_size): Renamed from xreadink.
55139         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
55140         * modules/canonicalize (Depends-on): Replace xreadlink with
55141         xreadlink-with-size.
55142         * lib/canonicalize.c (canonicalize_filename_mode): Update.
55143
55144 2007-02-25  Jim Meyering  <jim@meyering.net>
55145
55146         * build-aux/announce-gen: When complaining about excess arguments,
55147         list them.
55148
55149 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55150
55151         * README: Document signed integer overflow situation more
55152         accurately.
55153
55154 2007-02-25  Bruno Haible  <bruno@clisp.org>
55155
55156         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
55157         'a' or 'A' conversion.
55158
55159 2007-02-25  Bruno Haible  <bruno@clisp.org>
55160
55161         * modules/filename: Renamed from modules/pathname.
55162         (Files): Replace lib/pathname.h with lib/filename.h. Replace
55163         lib/concatpath.c with lib/concat-filename.c.
55164         (Makefile.am): Update.
55165         (Include): Replace pathname.h with filename.h.
55166         * lib/filename.h: Renamed from lib/pathname.h.
55167         (concatenated_filename): Renamed from concatenated_pathname.
55168         * lib/concat-filename.c: Renamed from lib/concatpath.c.
55169         (concatenated_filename): Renamed from concatenated_pathname.
55170         * lib/findprog.c: Include filename.h instead of pathname.h.
55171         (find_in_path): Update.
55172         * lib/javacomp.c: Include filename.h instead of pathname.h.
55173         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55174         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55175         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55176         is_oldgcj_14_13_usable, is_javac_usable): Update.
55177         * lib/javaexec.c: Include filename.h instead of pathname.h.
55178         (execute_java_class): Update.
55179         * modules/findprog: Update.
55180         * modules/javacomp: Update.
55181         * modules/javaexec: Update.
55182         * MODULES.html.sh (File system functions): Add 'filename', remove
55183         'pathname'.
55184
55185 2007-02-25  Bruno Haible  <bruno@clisp.org>
55186
55187         * modules/printf-frexpl-tests: New file.
55188         * tests/test-printf-frexpl.c: New file.
55189
55190         * modules/printf-frexpl: New file.
55191         * lib/printf-frexpl.h: New file.
55192         * lib/printf-frexpl.c: New file.
55193         * m4/printf-frexpl.m4: New file.
55194
55195 2007-02-25  Bruno Haible  <bruno@clisp.org>
55196
55197         * modules/printf-frexp-tests: New file.
55198         * tests/test-printf-frexp.c: New file.
55199
55200         * modules/printf-frexp: New file.
55201         * lib/printf-frexp.h: New file.
55202         * lib/printf-frexp.c: New file.
55203         * m4/printf-frexp.m4: New file.
55204
55205 2007-02-25  Bruno Haible  <bruno@clisp.org>
55206
55207         Assume automake >= 1.10 for the tests.
55208         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
55209         * modules/arctwo-tests: Likewise.
55210         * modules/argp-tests: Likewise.
55211         * modules/avltree-list-tests: Likewise.
55212         * modules/avltree-oset-tests: Likewise.
55213         * modules/avltreehash-list-tests: Likewise.
55214         * modules/carray-list-tests: Likewise.
55215         * modules/crc-tests: Likewise.
55216         * modules/des-tests: Likewise.
55217         * modules/gc-arcfour-tests: Likewise.
55218         * modules/gc-arctwo-tests: Likewise.
55219         * modules/gc-des-tests: Likewise.
55220         * modules/gc-hmac-md5-tests: Likewise.
55221         * modules/gc-hmac-sha1-tests: Likewise.
55222         * modules/gc-md2-tests: Likewise.
55223         * modules/gc-md4-tests: Likewise.
55224         * modules/gc-md5-tests: Likewise.
55225         * modules/gc-pbkdf2-sha1-tests: Likewise.
55226         * modules/gc-rijndael-tests: Likewise.
55227         * modules/gc-sha1-tests: Likewise.
55228         * modules/gc-tests: Likewise.
55229         * modules/getaddrinfo-tests: Likewise.
55230         * modules/hmac-md5-tests: Likewise.
55231         * modules/hmac-sha1-tests: Likewise.
55232         * modules/linked-list-tests: Likewise.
55233         * modules/linkedhash-list-tests: Likewise.
55234         * modules/lock-tests: Likewise.
55235         * modules/md2-tests: Likewise.
55236         * modules/md4-tests: Likewise.
55237         * modules/md5-tests: Likewise.
55238         * modules/rbtree-list-tests: Likewise.
55239         * modules/rbtree-oset-tests: Likewise.
55240         * modules/rbtreehash-list-tests: Likewise.
55241         * modules/read-file-tests: Likewise.
55242         * modules/rijndael-tests: Likewise.
55243         * modules/stdint-tests: Likewise.
55244         * modules/tls-tests: Likewise.
55245
55246 2007-02-24  Bruno Haible  <bruno@clisp.org>
55247
55248         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
55249         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
55250         function; instead check whether isnan with a double argument links.
55251         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
55252         function; instead check whether isnan with a 'long double' argument
55253         links.
55254         Reported by Eric Blake <ebb9@byu.net>.
55255
55256 2007-02-24  Bruno Haible  <bruno@clisp.org>
55257
55258         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
55259         defined.
55260         * lib/isnanl.c: Remove all code. Just include isnan.c.
55261         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
55262
55263 2007-02-25  Jim Meyering  <jim@meyering.net>
55264
55265         Avoid conflicting types for 'unsetenv' on FreeBSD.
55266         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
55267         conflicting with FreeBSD's (5.0 and 6.1) function declaration
55268         in stdlib.h.
55269
55270 2007-02-24  Bruno Haible  <bruno@clisp.org>
55271
55272         * modules/isnanl-nolibm-tests: New file.
55273         * tests/test-isnanl.c: New file.
55274
55275         * modules/isnanl-nolibm: New file.
55276         * lib/isnanl.h: New file.
55277         * lib/isnanl.c: New file.
55278         * m4/isnanl.m4: New file.
55279
55280 2007-02-24  Bruno Haible  <bruno@clisp.org>
55281
55282         * modules/isnan-nolibm-tests: New file.
55283         * tests/test-isnan.c: New file.
55284
55285         * modules/isnan-nolibm: New file.
55286         * lib/isnan.h: New file.
55287         * lib/isnan.c: New file.
55288         * m4/isnan.m4: New file.
55289
55290 2007-02-24  Bruno Haible  <bruno@clisp.org>
55291
55292         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
55293         assume that an exponent fits in 20 bits.
55294
55295 2007-02-24  Jim Meyering  <jim@meyering.net>
55296
55297         * m4/regex.m4: Update the description of the configure-time option,
55298         --without-included-regex, to state accurately what the defaults are,
55299         and perhaps to give people an idea why using this option is risky.
55300
55301 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55302
55303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
55304         loops on small arguments.  This attempts to avoid the problem
55305         Bruno Haible reported for AIX 4.3.2 in
55306         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
55307
55308 2007-02-23  Bruno Haible  <bruno@clisp.org>
55309
55310         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
55311         Needed for help2man.
55312
55313 2007-02-23  Karl Berry  <karl@gnu.org>
55314
55315         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
55316         exists, foo.h should be cvs-ignored, not committed.
55317
55318 2007-02-23  Eric Blake  <ebb9@byu.net>
55319
55320         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
55321         * lib/stat-time.h (includes): Likewise.
55322         * lib/utimecmp.c (includes): Likewise.
55323         * lib/utimens.h (includes): Likewise.
55324         * lib/getdate.y (includes): Also include "timespec.h" for use
55325         internal to the module.
55326         * modules/utimens (Depends-on): Revert yesterday's patch.
55327         * modules/nanosleep (Depends-on): Add missing dependency.
55328
55329 2007-02-22  Bruno Haible  <bruno@clisp.org>
55330
55331         * lib/glob.c: Don't include getlogin_r.h.
55332
55333 2007-02-22  Jim Meyering  <jim@meyering.net>
55334
55335         * modules/utimens (Depends-on): Add timespec, required for
55336         utimens.h's inclusion of timespec.h.
55337
55338 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
55339
55340         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
55341         long unreadable paths in GNU/Linux.  Problem reported by Andreas
55342         Schwab in
55343         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
55344         I'll try to think of a better way to fix the Solaris problem.
55345
55346         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
55347         like glibc; on Solaris 10, it fails with errno == EINVAL.
55348         POSIX says the behavior is unspecified if the first argument is NULL,
55349         so play it safe and never pass NULL to the system getcwd.
55350
55351 2007-02-21  Jim Meyering  <jim@meyering.net>
55352
55353         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
55354         of gettimeofday.  It would conflict with the one now always
55355         provided via sys_time_.h.  Reported by Matthew Woehlke, as
55356         an IRIX 6.5 build failure.
55357
55358 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55359
55360         Minor fixups to port to Solaris 10 with Sun C 5.8.
55361         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
55362         * modules/getcwd (Depends-on): Add dirfd.
55363         * lib/putenv.c (putenv): #undef it.
55364         (rpl_putenv): New decl.
55365         (malloc, free): Include <stdlib.h> rather than prototyping separately.
55366
55367 2007-02-20  Bruno Haible  <bruno@clisp.org>
55368
55369         * modules/stdio-tests: New file.
55370         * tests/test-stdio.c: New file.
55371
55372         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
55373         (Depends-on): Add stdio.
55374         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55375         (Include): Use <stdio.h> instead of vsnprintf.h.
55376         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55377         HAVE_DECL_VSNPRINTF.
55378         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
55379
55380         * modules/snprintf (Files): Remove lib/snprintf.h.
55381         (Depends-on): Add stdio.
55382         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
55383         (Include): Use <stdio.h> instead of snprintf.h.
55384         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
55385         HAVE_DECL_SNPRINTF.
55386         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
55387         * lib/getaddrinfo.c: Likewise.
55388
55389         * modules/stdio: New file.
55390         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
55391         * lib/snprintf.h: Remove file.
55392         * lib/vsnprintf.h: Remove file.
55393         * lib/.cppi-disable: Remove snprintf.h.
55394         * m4/stdio_h.m4: New file.
55395         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
55396
55397 2007-02-20  Jim Meyering  <jim@meyering.net>
55398
55399         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
55400         used by e.g., mingw.  From Bruno Haible.
55401
55402 2007-02-19  Bruno Haible  <bruno@clisp.org>
55403
55404         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
55405         warnings.
55406         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55407
55408 2007-02-19  Bruno Haible  <bruno@clisp.org>
55409
55410         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
55411         from mingw users.
55412
55413 2007-02-19  Bruno Haible  <bruno@clisp.org>
55414
55415         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
55416         warnings.
55417         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
55418
55419 2007-02-19  Jim Meyering  <jim@meyering.net>
55420
55421         Don't use FD after a successful "fdopendir (fd)".
55422         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
55423         Reset it by calling dirfd on the just-obtained DIR*.
55424
55425         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
55426         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
55427
55428 2007-02-18  Bruno Haible  <bruno@clisp.org>
55429
55430         * lib/readlink.c: Include <unistd.h>.
55431         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
55432         HAVE_READLINK.
55433         * modules/readlink (Depends-on): Add unistd.
55434         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55435         (Include): Add <unistd.h>.
55436
55437         * lib/getlogin_r.h: Remove file.
55438         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
55439         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
55440         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
55441         HAVE_DECL_GETLOGIN_R.
55442         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
55443         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55444         (Include): Use <unistd.h> instead of getlogin_r.h.
55445
55446         * lib/getcwd.h: Remove file.
55447         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
55448         * lib/xgetcwd.c: Likewise.
55449         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
55450         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
55451         * modules/getcwd (Files): Remove lib/getcwd.h.
55452         (Depends-on): Add unistd.
55453         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55454         (Include): Use <unistd.h> instad of getcwd.h.
55455
55456         * lib/ftruncate.c: Include <unistd.h> first.
55457         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
55458         Set HAVE_FTRUNCATE.
55459         * modules/ftruncate (Depends-on): Add unistd.
55460         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55461
55462         * lib/fchdir.c: Include <unistd.h> first.
55463         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
55464         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
55465         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
55466         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55467         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
55468
55469         * lib/dup2.c: Include <unistd.h> first.
55470         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
55471         HAVE_DUP2.
55472         * modules/dup2 (Depends-on): Add unistd.
55473         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55474
55475         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
55476         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
55477         REPLACE_CHOWN. Don't define chown as a macro here.
55478         * modules/chown (Depends-on): Add unistd.
55479         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55480
55481         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
55482         Add definition for GL_LINK_WARNING.
55483         (chown, dup2): New declarations.
55484         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
55485         link warning.
55486         (ftruncate): New declaration.
55487         (getcwd): New declaration, taken from old getcwd.h.
55488         (getlogin_r): New declaration, taken from old getlogin_r.h.
55489         (readlink): New declaration.
55490         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
55491         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
55492         (gl_PREREQ_UNISTD): Remove macro.
55493         (gl_UNISTD_MODULE_INDICATOR): New macro.
55494         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
55495         many new variables. Don't set UNISTD_H.
55496         * modules/unistd (Description): Change.
55497         (Depends-on): Add link-warning.
55498         (configure.ac): Update.
55499         (Makefile.am): Create unistd.h always. Substitute many new variables
55500         into it.
55501
55502 2007-02-18  Bruno Haible  <bruno@clisp.org>
55503
55504         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
55505         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
55506         HAVE_GETSUBOPT.
55507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
55508         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
55509         * lib/getsubopt.h: Remove file.
55510         * modules/getsubopt (Files): Remove lib/getsubopt.h.
55511         (Depends-on): Add stdlib.
55512         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55513         (Includes): Use <stdlib.h> instead of getsubopt.h.
55514         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
55515         Set HAVE_GETSUBOPT.
55516         * lib/getsubopt.c: Don't include getsubopt.h.
55517
55518 2007-02-18  Bruno Haible  <bruno@clisp.org>
55519
55520         * modules/fchdir (Depends-on): Add dup2.
55521
55522 2007-02-18  Bruno Haible  <bruno@clisp.org>
55523
55524         * lib/stdlib_.h: Handle glibc's special invocation convention
55525         specially.
55526
55527 2007-02-18  Bruno Haible  <bruno@clisp.org>
55528
55529         * modules/stdlib-tests: New file.
55530         * tests/test-stdlib.c: New file.
55531
55532         * modules/mkstemp (Files): Remove lib/mkstemp.h.
55533         (Depends-on): Add stdlib.
55534         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55535         (Includes): Use <stdlib.h> instead of mkstemp.h.
55536         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55537         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
55538         * lib/mkstemp.c: Don't include mkstemp.h.
55539         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
55540         * lib/stdlib--.h: Don't include mkstemp.h.
55541
55542         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
55543         (Depends-on): Add stdlib.
55544         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55545         (Includes): Use <stdlib.h> instead of mkdtemp.h.
55546         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
55547         HAVE_MKDTEMP.
55548         * lib/mkdtemp.c: Don't include mkdtemp.h.
55549         * lib/clean-temp.c: Don't include mkdtemp.h.
55550
55551         * modules/exit (Files): Remove lib/exit.h.
55552         (Depends-on): Add stdlib.
55553         (Makefile.am): Remove lib_SOURCES.
55554         (Include): Use <stdlib.h> instead of exit.h.
55555         * lib/argmatch.c: Don't include exit.h.
55556         * lib/execute.c: Likewise.
55557         * lib/pagealign_alloc.c: Likewise.
55558         * lib/pipe.c: Likewise.
55559         * lib/wait-process.c: Likewise.
55560         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
55561         * lib/exitfail.c: Likewise.
55562         * lib/savewd.c: Likewise.
55563         * lib/xsetenv.c: Likewise.
55564
55565         * modules/stdlib: New file.
55566         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
55567         and extra comments about mkstemp().
55568         * lib/exit.h: Remove file.
55569         * lib/mkdtemp.h: Remove file.
55570         * lib/mkstemp.h: Remove file.
55571         * m4/stdlib_h.m4: New file.
55572         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
55573
55574 2007-02-18  Bruno Haible  <bruno@clisp.org>
55575
55576         * modules/math-tests: New file.
55577         * tests/test-math.c: New file.
55578
55579         * modules/math: New file.
55580         * modules/mathl (Files): Remove lib/mathl.h.
55581         (Depends-on): Add math.
55582         (Makefile.am): Don't mention mathl.h.
55583         (Include): Use <math.h> instead of mathl.h.
55584         * lib/math_.h: New file.
55585         * lib/mathl.h: Remove file.
55586         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
55587         mathl.h.
55588         * lib/asinl.c: Likewise.
55589         * lib/atanl.c: Likewise.
55590         * lib/ceill.c: Likewise.
55591         * lib/cosl.c: Likewise.
55592         * lib/expl.c: Likewise.
55593         * lib/floorl.c: Likewise.
55594         * lib/frexpl.c: Likewise.
55595         * lib/ldexpl.c: Likewise.
55596         * lib/logl.c: Likewise.
55597         * lib/sincosl.c: Likewise.
55598         * lib/sinl.c: Likewise.
55599         * lib/sqrtl.c: Likewise.
55600         * lib/tanl.c: Likewise.
55601         * lib/trigl.c: Likewise.
55602         * m4/math_h.m4: New file.
55603         * MODULES.html.sh (Mathematics): Add math.
55604
55605 2007-02-17  Bruno Haible  <bruno@clisp.org>
55606
55607         * modules/wctype-tests: New file.
55608         * tests/test-wctype.c: New file.
55609
55610         * modules/wchar-tests: New file.
55611         * tests/test-wchar.c: New file.
55612
55613         * modules/unistd-tests: New file.
55614         * tests/test-unistd.c: New file.
55615
55616         * modules/time-tests: New file.
55617         * tests/test-time.c: New file.
55618
55619         * modules/sysexits-tests: New file.
55620         * tests/test-sysexits.c: New file.
55621
55622         * modules/sys_time-tests: New file.
55623         * tests/test-sys_time.c: New file.
55624
55625         * modules/sys_stat-tests: New file.
55626         * tests/test-sys_stat.c: New file.
55627
55628         * modules/sys_socket-tests: New file.
55629         * tests/test-sys_socket.c: New file.
55630
55631         * modules/sys_select-tests: New file.
55632         * tests/test-sys_select.c: New file.
55633
55634         * modules/string-tests: New file.
55635         * tests/test-string.c: New file.
55636
55637         * modules/stdbool-tests: New file.
55638         * tests/test-stdbool.c: New file.
55639
55640         * modules/netinet_in-tests: New file.
55641         * tests/test-netinet_in.c: New file.
55642
55643         * modules/inttypes-tests: New file.
55644         * tests/test-inttypes.c: New file.
55645
55646         * modules/fcntl-tests: New file.
55647         * tests/test-fcntl.c: New file.
55648
55649         * modules/byteswap-tests: New file.
55650         * tests/test-byteswap.c: New file.
55651
55652         * modules/arpa_inet-tests: New file.
55653         * tests/test-arpa_inet.c: New file.
55654
55655 2007-02-17  Bruno Haible  <bruno@clisp.org>
55656
55657         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
55658         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
55659         if the corresponding module is not enabled. Emit link warnings if
55660         the function is used nevertheless.
55661         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
55662         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
55663         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
55664         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
55665         * modules/inttypes (Depends-on): Add link-warning.
55666         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55667         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
55668         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
55669         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
55670         * modules/imaxdiv (configure.ac): Likewise.
55671         * modules/strtoimax (configure.ac): Likewise.
55672         * modules/strtoumax (configure.ac): Likewise.
55673
55674 2007-02-17  Bruno Haible  <bruno@clisp.org>
55675
55676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
55677         gl_STRING_MODULE_INDICATOR_DEFAULTS.
55678         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
55679         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
55680
55681 2007-02-17  Bruno Haible  <bruno@clisp.org>
55682
55683         * modules/link-warning: New file.
55684         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
55685         * lib/string_.h (GL_LINK_WARNING): Remove definition.
55686         * modules/string (Depends-on): Add link-warning.
55687         (Makefile.am): Copy the contents of build-aux/link-warning.h into
55688         string.h.
55689         * MODULES.html.sh (Support for building libraries and executables): Add
55690         link-warning.
55691
55692 2007-02-17  Bruno Haible  <bruno@clisp.org>
55693
55694         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
55695         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
55696         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
55697         long lines.
55698
55699 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
55700             Bruno Haible  <bruno@clisp.org>
55701
55702         * modules/tmpfile: New file.
55703         * lib/tmpfile.c: New file.
55704         * m4/tmpfile.m4: New file.
55705         * MODULES.html.sh (func_all_modules): New section "Input/output".
55706
55707 2007-02-15  Bruno Haible  <bruno@clisp.org>
55708
55709         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
55710         (supports_delete_on_close): New function.
55711         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
55712
55713 2007-02-14  Bruno Haible  <bruno@clisp.org>
55714
55715         * modules/mbspcasecmp-tests: New file.
55716         * tests/test-mbspcasecmp.sh: New file.
55717         * tests/test-mbspcasecmp.c: New file.
55718
55719         New module mbspcasecmp.
55720         * modules/mbspcasecmp: New file.
55721         * lib/mbspcasecmp.c: New file.
55722         * lib/string_.h (strncasecmp): Change warning message.
55723         (mbspcasecmp): New declaration.
55724         * m4/mbspcasecmp.m4: New file.
55725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55726         GNULIB_MBSPCASECMP.
55727         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
55728         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
55729
55730 2007-02-14  Bruno Haible  <bruno@clisp.org>
55731
55732         * modules/mbsncasecmp-tests: New file.
55733         * tests/test-mbsncasecmp.sh: New file.
55734         * tests/test-mbsncasecmp.c: New file.
55735
55736         New module mbsncasecmp.
55737         * modules/mbsncasecmp: New file.
55738         * lib/mbsncasecmp.c: New file.
55739         * lib/string_.h (mbsncasecmp): New declaration.
55740         * m4/mbsncasecmp.m4: New file.
55741         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55742         GNULIB_MBSNCASECMP.
55743         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
55744         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
55745
55746 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55747
55748         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
55749         Verify that it doesn't overlap with our flags.
55750         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
55751         do not have the desired effect in multibyte locales; instead, use
55752         mbscasecmp.
55753         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
55754         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
55755         we don't require GNU fnmatch ourselves (if our users require it, they
55756         should do so explicitly).
55757
55758         Fix regex code so it doesn't rely on strcasecmp.
55759         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
55760         Otherwise, include gnulib's langinfo.h.
55761         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
55762         undesirable behavior in non-C locales.  Instead, rely on localecharset.
55763         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
55764         * modules/regex (FILES): Remove m4/codeset.m4.
55765         (Depends-on): Add localcharset.  Remove strcase.
55766
55767 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55768
55769         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
55770         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
55771
55772 2007-02-13  Bruno Haible  <bruno@clisp.org>
55773
55774         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
55775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55776
55777 2007-02-12  Bruno Haible  <bruno@clisp.org>
55778
55779         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
55780         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
55781         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
55782         time warning rather than a link error.
55783
55784 2007-02-12  Bruno Haible  <bruno@clisp.org>
55785
55786         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
55787         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55788         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55789
55790 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55791
55792         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
55793         args, not 2.
55794
55795 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55796
55797         New module 'time', so that apps can include <time.h> as per
55798         POSIX and GNU instead of separate include files like time_r.h
55799         and timegm.h.  This implementation tries out a simpler approach
55800         for replacing decls in standard include files (as compared to
55801         the string module), somewhat as an experiment.
55802
55803         * config/srclist.txt: Comment out mktime.c for now.
55804         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
55805         since it doesn't apply any more.  Use generic wording instead.
55806         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
55807         'time'.
55808         * lib/time_.h, m4/time_h.m4, modules/time: New files.
55809         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
55810         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
55811         Don't include <sys/types.h>; no longer needed since we assume C89.
55812         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
55813         * lib/strftime.c: Likewise.
55814         * lib/time_r.c: Likewise.
55815         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
55816         * lib/nanosleep.c: Include <time.h> first, to check interface.
55817         * lib/strptime.c: Likewise.
55818         * lib/time_r.c: Likewise.
55819         * lib/timegm.c: Likewise.
55820         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
55821         needed.
55822         * lib/timegm.c: Don't include timegm.h; no longer needed.
55823         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
55824         time.h now handles any problems in that area.
55825         (struct timespec, nanosleep): Remove; time.h now arranges for these.
55826         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
55827         that time.h defines struct timespec.
55828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
55829         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
55830         handles that.
55831         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
55832         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
55833         needed.  Set REPLACE_LOCALTIME.
55834         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
55835         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
55836         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
55837         nanosleep; time_h.m4 now does that.  Don't require
55838         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
55839         module handles this now.
55840         * modules/getdate (Depends-on): Remove timespec.  Add time.
55841         * modules/nanosleep (Depends-on): Likewise.
55842         * modules/stat-time (Depends-on): Likewise.
55843         * modules/nanosleep (Include): Include time.h, not timespec.h.
55844         * modules/strptime (Files): Remove lib/strptime.h.
55845         (Depends-on): Add extensions, time.
55846         (Include): Include time.h, not strptime.h.
55847         * modules/time_r (Files): Remove lib/time_r.h.
55848         (Depends-on): Add time.
55849         (Include): Include time.h, not time_r.h.
55850         * modules/timegm: Likewise.
55851         * modules/timespec (Description): Now does timespec-related decls
55852         of our own, instead of struct timespec itself.
55853         (Depends-on): Add time; remove extensions.
55854         (Maintainer): Add self.
55855         * modules/utimecmp (Depends-on): Add time; remove timespec.
55856         * modules/utimens (Depends-on): Likewise.
55857         * modules/xnanosleep (Depends-on): Likewise.
55858
55859 2007-02-11  Bruno Haible  <bruno@clisp.org>
55860
55861         * lib/c-strstr.c: Include allocsa.h.
55862         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55863         * lib/c-strcasestr.c: Include allocsa.h.
55864         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55865         * lib/strcasestr.c: Include allocsa.h.
55866         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
55867         * lib/mbsstr.c: Include allocsa.h.
55868         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55869         allocsa/freesa instead of malloc/free.
55870         * lib/mbscasestr.c: Include allocsa.h.
55871         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
55872         allocsa/freesa instead of malloc/free.
55873         * modules/c-strstr (Depends-on): Add allocsa.
55874         * modules/c-strcasestr (Depends-on): Likewise.
55875         * modules/strcasestr (Depends-on): Likewise.
55876         * modules/mbsstr (Depends-on): Likewise.
55877         * modules/mbscasestr (Depends-on): Likewise.
55878
55879 2007-02-11  Bruno Haible  <bruno@clisp.org>
55880
55881         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
55882
55883         * modules/mbsspn-tests: New file.
55884         * tests/test-mbsspn.sh: New file.
55885         * tests/test-mbsspn.c: New file.
55886
55887 2007-02-11  Bruno Haible  <bruno@clisp.org>
55888
55889         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
55890
55891         * modules/mbspbrk-tests: New file.
55892         * tests/test-mbspbrk.sh: New file.
55893         * tests/test-mbspbrk.c: New file.
55894
55895 2007-02-11  Bruno Haible  <bruno@clisp.org>
55896
55897         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
55898         unneeded cast.
55899
55900         * modules/mbscspn-tests: New file.
55901         * tests/test-mbscspn.sh: New file.
55902         * tests/test-mbscspn.c: New file.
55903
55904 2007-02-11  Bruno Haible  <bruno@clisp.org>
55905
55906         * modules/mbscasecmp-tests: New file.
55907         * tests/test-mbscasecmp.sh: New file.
55908         * tests/test-mbscasecmp.c: New file.
55909
55910 2007-02-11  Bruno Haible  <bruno@clisp.org>
55911
55912         Ensure O(n) worst-case complexity of mbscasestr.
55913         * lib/mbscasestr.c: Include stdbool.h.
55914         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55915         functions.
55916         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
55917         the bookkeeping indicates that it's worth it.
55918         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
55919
55920         * modules/mbscasestr-tests: New file.
55921         * tests/test-mbscasestr1.c: New file.
55922         * tests/test-mbscasestr2.sh: New file.
55923         * tests/test-mbscasestr2.c: New file.
55924         * tests/test-mbscasestr3.sh: New file.
55925         * tests/test-mbscasestr3.c: New file.
55926         * tests/test-mbscasestr4.sh: New file.
55927         * tests/test-mbscasestr4.c: New file.
55928         * m4/locale-tr.m4: New file.
55929
55930 2007-02-11  Bruno Haible  <bruno@clisp.org>
55931
55932         Ensure O(n) worst-case complexity of mbsstr.
55933         * lib/mbsstr.c: Include stdbool.h.
55934         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
55935         functions.
55936         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
55937         bookkeeping indicates that it's worth it.
55938         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
55939
55940         * modules/mbsstr-tests: New file.
55941         * tests/test-mbsstr1.c: New file.
55942         * tests/test-mbsstr2.sh: New file.
55943         * tests/test-mbsstr2.c: New file.
55944         * tests/test-mbsstr3.sh: New file.
55945         * tests/test-mbsstr3.c: New file.
55946         * m4/locale-fr.m4: New file.
55947
55948 2007-02-11  Bruno Haible  <bruno@clisp.org>
55949
55950         * lib/mbsrchr.c (mbsrchr): Fix bug.
55951
55952         * modules/mbsrchr-tests: New file.
55953         * tests/test-mbsrchr.sh: New file.
55954         * tests/test-mbsrchr.c: New file.
55955
55956 2007-02-11  Bruno Haible  <bruno@clisp.org>
55957
55958         * lib/mbschr.c (mbschr): Fix bug.
55959
55960         * modules/mbschr-tests: New file.
55961         * tests/test-mbschr.sh: New file.
55962         * tests/test-mbschr.c: New file.
55963         * m4/locale-zh.m4: New file.
55964
55965 2007-02-11  Bruno Haible  <bruno@clisp.org>
55966
55967         Support for copying multibyte string iterators.
55968         * lib/mbiter.h: Include <string.h>.
55969         (mbiter_multi_copy): New function.
55970         (mbi_copy): New macro.
55971         * lib/mbuiter.h: Include <string.h>.
55972         (mbuiter_multi_copy): New function.
55973         (mbui_copy): New macro.
55974
55975 2007-02-11  Bruno Haible  <bruno@clisp.org>
55976
55977         New module mbslen.
55978         * modules/mbslen: New file.
55979         * lib/mbslen.c: New file.
55980         * lib/string_.h (mbslen): New declaration.
55981         * m4/mbslen.m4: New file.
55982         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
55983         GNULIB_MBSLEN.
55984         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
55985         * MODULES.html.sh (Internationalization functions): Add mbslen.
55986
55987 2007-02-11  Bruno Haible  <bruno@clisp.org>
55988
55989         Ensure O(n) worst-case complexity of strcasestr substitute.
55990         * lib/strcasestr.c: Include stdbool.h.
55991         (knuth_morris_pratt): New function.
55992         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
55993         bookkeeping indicates that it's worth it.
55994         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
55995
55996         * modules/strcasestr-tests: New file.
55997         * tests/test-strcasestr.c: New file.
55998
55999 2007-02-11  Bruno Haible  <bruno@clisp.org>
56000
56001         Ensure O(n) worst-case complexity of c_strcasestr.
56002         * lib/c-strcasestr.c: Include stdbool.h, string.h.
56003         (knuth_morris_pratt): New function.
56004         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
56005         the bookkeeping indicates that it's worth it.
56006         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
56007
56008         * modules/c-strcasestr-tests: New file.
56009         * tests/test-c-strcasestr.c: New file.
56010
56011 2007-02-11  Bruno Haible  <bruno@clisp.org>
56012
56013         Ensure O(n) worst-case complexity of c_strstr.
56014         * lib/c-strstr.c: Include stdbool.h, string.h.
56015         (knuth_morris_pratt): New function.
56016         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
56017         bookkeeping indicates that it's worth it.
56018         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
56019
56020         * lib/c-strstr.c: Complete rewrite for maintainability.
56021
56022         * modules/c-strstr-tests: New file.
56023         * tests/test-c-strstr.c: New file.
56024
56025 2007-02-11  Bruno Haible  <bruno@clisp.org>
56026
56027         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
56028         5.2.1 and earlier, whereby \055 was treated just like the range
56029         delimiter '-'.
56030         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56031
56032 2007-02-08  Bruno Haible  <bruno@clisp.org>
56033
56034         * modules/regex (Depends-on): Add stdbool.
56035         Reported by Dalibor Topic <robilad@kaffe.org>.
56036
56037 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
56038
56039         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
56040         Prefer returning from main to exiting from it.
56041         Remove unnecessary parens after sizeof.
56042
56043 2007-02-05  Bruno Haible  <bruno@clisp.org>
56044
56045         New module mbssep.
56046         * modules/mbssep: New file.
56047         * lib/mbssep.c: New file.
56048         * lib/string_.h (strsep): Add a conditional link warning.
56049         (mbssep): New declaration.
56050         * m4/mbssep.m4: New file.
56051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56052         GNULIB_MBSSEP.
56053         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
56054         * MODULES.html.sh (Internationalization functions): Add mbssep.
56055
56056 2007-02-05  Bruno Haible  <bruno@clisp.org>
56057
56058         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
56059         Optimize search in case of 1 delimiter.
56060
56061 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56062
56063         * lib/acl.h: Include sys/types.h before sys/acl.h.
56064
56065 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
56066
56067         Merge upstream fix for glibc bugzilla #3957:
56068
56069         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
56070
56071         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
56072         bit for RE_HAT_LISTS_NOT_NEWLINE.
56073         (build_charclass_op): Remove bogus comment.
56074
56075 2007-02-05  Simon Josefsson  <simon@josefsson.org>
56076
56077         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
56078
56079 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56080
56081         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
56082         * lib/memmem.c [!defined _LIBC]: Include config.h.
56083
56084 2007-02-04  Bruno Haible  <bruno@clisp.org>
56085
56086         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56087         warning message.
56088
56089 2007-02-04  Bruno Haible  <bruno@clisp.org>
56090
56091         New module mbstok_r.
56092         * modules/mbstok_r: New file.
56093         * lib/mbstok_r.c: New file.
56094         * lib/string_.h (strtok_r): Change argument names to match the
56095         comments. Add a conditional link warning.
56096         (mbstok_r): New declaration.
56097         * m4/mbstok_r.m4: New file.
56098         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56099         GNULIB_MBSTOK_R.
56100         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
56101         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
56102
56103 2007-02-04  Bruno Haible  <bruno@clisp.org>
56104
56105         New module mbsspn.
56106         * modules/mbsspn: New file.
56107         * lib/mbsspn.c: New file.
56108         * lib/string_.h (strspn): Add a conditional link warning.
56109         (mbsspn): New declaration.
56110         * m4/mbsspn.m4: New file.
56111         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56112         GNULIB_MBSSPN.
56113         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
56114         * MODULES.html.sh (Internationalization functions): Add mbsspn.
56115
56116 2007-02-04  Bruno Haible  <bruno@clisp.org>
56117
56118         New module mbspbrk.
56119         * modules/mbspbrk: New file.
56120         * lib/mbspbrk.c: New file.
56121         * lib/string_.h (strpbrk): Add a conditional link warning.
56122         (mbspbrk): New declaration.
56123         * m4/mbspbrk.m4: New file.
56124         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56125         GNULIB_MBSPBRK.
56126         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
56127         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
56128
56129 2007-02-04  Bruno Haible  <bruno@clisp.org>
56130
56131         New module mbscspn.
56132         * modules/mbscspn: New file.
56133         * lib/mbscspn.c: New file.
56134         * lib/string_.h (strcspn): Add a conditional link warning.
56135         (mbscspn): New declaration.
56136         * m4/mbscspn.m4: New file.
56137         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56138         GNULIB_MBSCSPN.
56139         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
56140         * MODULES.html.sh (Internationalization functions): Add mbscspn.
56141
56142 2007-02-04  Bruno Haible  <bruno@clisp.org>
56143
56144         New module mbscasestr, reduced goal of strcasestr.
56145         * modules/mbscasestr: New file.
56146         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
56147         (mbscasestr): Renamed from strcasestr.
56148         * lib/strcasestr.c: Don't include mbuiter.h.
56149         (strcasestr): Remove support for multibyte locales.
56150         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
56151         Change the conditional link warning.
56152         (mbscasestr): New declaration.
56153         * m4/mbscasestr.m4: New file.
56154         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
56155         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
56156         REPLACE_STRCASESTR.
56157         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
56158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56159         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56160         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
56161         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
56162         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
56163         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
56164         (Depends-on): Remove mbuiter.
56165         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
56166
56167 2007-02-04  Bruno Haible  <bruno@clisp.org>
56168
56169         Simplify handling of strncasecmp.
56170         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
56171         the conditional link warning.
56172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56173         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
56174         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
56175         * modules/strcase (configure.ac): Don't invoke
56176         gl_STRING_MODULE_INDICATOR.
56177         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
56178
56179 2007-02-04  Bruno Haible  <bruno@clisp.org>
56180
56181         New module mbscasecmp, reduced goal of strcasecmp.
56182         * modules/mbscasecmp: New file.
56183         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
56184         (mbscasecmp): Renamed from strcasecmp.
56185         * lib/strcasecmp.c: Don't include mbuiter.h.
56186         (strcasecmp): Remove support for multibyte locales.
56187         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
56188         Change the conditional link warning.
56189         (mbscasecmp): New declaration.
56190         * m4/mbscasecmp.m4: New file.
56191         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
56192         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
56193         REPLACE_STRCASECMP.
56194         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
56195         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56196         GNULIB_MBSCASECMP.
56197         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
56198         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
56199         * modules/strcase (Files): Remove m4/mbrtowc.m4.
56200         (Depends-on): Remove mbuiter.
56201         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
56202
56203 2007-02-04  Bruno Haible  <bruno@clisp.org>
56204
56205         New module mbsstr. Remove module strstr.
56206         * modules/mbsstr: New file.
56207         * modules/strstr: Remove file.
56208         * lib/mbsstr.c: Renamed from lib/strstr.c.
56209         (mbsstr): Renamed from strstr.
56210         * lib/string_.h (strstr): Remove declaration. Change the conditional
56211         link warning.
56212         (mbsstr): New declaration.
56213         * m4/mbsstr.m4: New file.
56214         * m4/strstr.m4: Remove file.
56215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
56216         REPLACE_STRSTR.
56217         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
56218         Don't initialize GNULIB_STRSTR.
56219         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
56220         substitute GNULIB_STRSTR and REPLACE_STRSTR.
56221         * MODULES.html.sh (Internationalization functions): Add mbsstr.
56222         (Support for systems lacking ANSI C 89): Remove strstr.
56223
56224 2007-02-04  Bruno Haible  <bruno@clisp.org>
56225
56226         New module mbsrchr.
56227         * modules/mbsrchr: New file.
56228         * lib/mbsrchr.c: New file.
56229         * lib/string_.h (strrchr): Add a conditional link warning.
56230         (mbsrchr): New declaration.
56231         * m4/mbsrchr.m4: New file.
56232         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56233         GNULIB_MBSRCHR.
56234         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
56235         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
56236
56237 2007-02-04  Bruno Haible  <bruno@clisp.org>
56238
56239         New module mbschr.
56240         * modules/mbschr: New file.
56241         * lib/mbschr.c: New file.
56242         * lib/string_.h (strchr): Add a conditional link warning.
56243         (mbschr): New declaration.
56244         * m4/mbschr.m4: New file.
56245         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
56246         GNULIB_MBSCHR.
56247         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
56248         * MODULES.html.sh (Internationalization functions): Add mbschr.
56249
56250 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56251
56252         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
56253
56254         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
56255
56256 2007-02-04  Bruno Haible  <bruno@clisp.org>
56257
56258         New module description section 'configure.ac-early'.
56259         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
56260         (func_get_autoconf_early_snippet): New function.
56261         (func_import, func_create_testdir): Use it. Remove special cases for
56262         modules 'extensions' and 'lock'.
56263         * modules/extensions (configure.ac-early): Require
56264         gl_USE_SYSTEM_EXTENSIONS.
56265         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
56266
56267 2007-02-04  Bruno Haible  <bruno@clisp.org>
56268
56269         Make use of gcj-4.3's -fsource and -ftarget option.
56270         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
56271         and if so try the options -fsource and -ftarget.
56272         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
56273         source_version, ftarget_option, target_version arguments.
56274         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
56275         (is_envjavac_oldgcj_14_14_usable): Renamed from
56276         is_envjavac_gcj_14_14_usable.
56277         (is_envjavac_oldgcj_14_13_usable): Renamed from
56278         is_envjavac_gcj_14_13_usable.
56279         (is_gcj_present): Update.
56280         (is_gcj_43, is_gcj43_usable): New functions.
56281         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
56282         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
56283         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
56284         try the options -fsource and -ftarget.
56285
56286 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56287
56288         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
56289         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
56290         larger value.
56291
56292 2007-02-03  Jim Meyering  <jim@meyering.net>
56293
56294         Give tools a better chance to allocate space for very large buffers.
56295         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
56296
56297         Make pwd and readlink work also when run with an unreadable parent dir
56298         on systems with openat support.
56299         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
56300         provided getcwd function, even when we have openat support.
56301         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
56302
56303 2007-02-02  Bruno Haible  <bruno@clisp.org>
56304
56305         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
56306         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
56307         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
56308         portability problems if one of these functions is only used on specific
56309         platforms.
56310         Reported by Paul Eggert.
56311
56312 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
56313
56314         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
56315         is causing more trouble than it's curing.
56316         * lib/regex_internal.h (__mempcpy): Remove.
56317         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
56318         (and make the code a tad smaller to boot).
56319         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
56320
56321 2007-02-02  Jim Meyering  <jim@meyering.net>
56322
56323         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
56324         section, not in the Makefile.am: one.
56325
56326 2007-02-02  Eric Blake  <ebb9@byu.net>
56327
56328         * lib/strchrnul.c: Always include config.h first.
56329
56330         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
56331         gnulib strstr is not necessary here.
56332
56333 2007-02-02  Simon Josefsson  <simon@josefsson.org>
56334
56335         * m4/socklen.m4: Fix typo.
56336
56337 2007-02-02  Eric Blake  <ebb9@byu.net>
56338
56339         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
56340         * modules/netinet_in (Makefile.am): Likewise.
56341
56342 2007-02-01  Bruno Haible  <bruno@clisp.org>
56343
56344         * lib/string_.h (GL_LINK_WARNING): New macro.
56345         (strcasecmp, strstr, strcasestr): If provided by the system,
56346         conditionally define as a macro that leads to a warning instead of to
56347         an error.
56348         (strncasecmp): Conditionally define as a macro that leads to a warning.
56349
56350 2007-02-01  Karl Berry  <karl@gnu.org>
56351
56352         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
56353
56354 2007-02-01  Bruno Haible  <bruno@clisp.org>
56355
56356         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
56357         renamings.
56358
56359 2007-02-01  Eric Blake  <ebb9@byu.net>
56360
56361         * modules/regex (Depends-on): Revert dependence on mempcpy.
56362         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
56363         module's definition of mempcpy.
56364         Reported by Paul Eggert.
56365
56366 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
56367
56368         * lib/string_.h: If the gnulib module XYZ is not present, undefine
56369         the symbol XYZ before redefining it.  This fixes a problem with
56370         programs that don't use XYZ, when compiled on systems that define
56371         XYZ to something else.
56372
56373 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
56374
56375         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
56376         occurs when "mkdir -m foo" creates a setgid directory that is (1)
56377         writeable to group or other and (2) is intended to have a special
56378         mode bit that is set or cleared.  In such a case, the directory
56379         should be neither group- nor other-writeable until the special
56380         mode bits are right.
56381
56382 2007-01-31  Eric Blake  <ebb9@byu.net>
56383
56384         * modules/mountlist (Depends-on): Add strstr.
56385
56386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
56387         bug.
56388         * modules/string (Makefile.am): Remove redundant replacement.
56389         * modules/regex (Depends-on): Add mempcpy.
56390
56391 2007-01-31  Bruno Haible  <bruno@clisp.org>
56392
56393         New module description field 'Link'.
56394         * gnulib-tool (func_usage): Document --extract-link-directive.
56395         (sed_extract_prog): Recognize 'Link' directive.
56396         (func_get_link_directive): New function.
56397         (func_import): Show summary of link directives.
56398         Handle --extract-link-directive option.
56399         * modules/acl (Link): New section.
56400         * modules/clock-time (Link): New section.
56401         * modules/euidaccess (Link): New section.
56402         * modules/gettext (Link): New section.
56403         * modules/iconv (Link): New section.
56404         * modules/lock (Link): New section.
56405         * modules/nanosleep (Link): New section.
56406         * modules/readline (Link): New section.
56407
56408 2007-01-27  Bruno Haible  <bruno@clisp.org>
56409
56410         Enforce the use of gnulib modules for unportable <string.h> functions.
56411         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
56412         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
56413         (gl_HEADER_STRING_H_BODY): Require it.
56414         * lib/string_.h: If the gnulib module XYZ is not present, redefine
56415         the symbol XYZ to one that gives a link error.
56416         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
56417         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
56418         * modules/mempcpy (configure.ac): Likewise.
56419         * modules/memrchr (configure.ac): Likewise.
56420         * modules/stpcpy (configure.ac): Likewise.
56421         * modules/stpncpy (configure.ac): Likewise.
56422         * modules/strcase (configure.ac): Likewise.
56423         * modules/strcasestr (configure.ac): Likewise.
56424         * modules/strchrnul (configure.ac): Likewise.
56425         * modules/strdup (configure.ac): Likewise.
56426         * modules/strndup (configure.ac): Likewise.
56427         * modules/strnlen (configure.ac): Likewise.
56428         * modules/strpbrk (configure.ac): Likewise.
56429         * modules/strsep (configure.ac): Likewise.
56430         * modules/strstr (configure.ac): Likewise.
56431         * modules/strtok_r (configure.ac): Likewise.
56432
56433 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
56434
56435         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
56436
56437 2007-01-30  Jim Meyering  <jim@meyering.net>
56438
56439         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
56440
56441 2007-01-29  Bruno Haible  <bruno@clisp.org>
56442
56443         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
56444         * lib/execute.c: Likewise.
56445         * lib/pipe.c: Likewise.
56446         * lib/printf-args.h: Likewise.
56447         * lib/printf-args.c: Likewise.
56448         * lib/printf-parse.c: Likewise.
56449         * lib/vasnprintf.c: Likewise.
56450
56451 2007-01-29  Eric Blake  <ebb9@byu.net>
56452
56453         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
56454         declaration.
56455
56456 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56457
56458         * lib/strptime.h (strptime): Use 'restrict' for args where
56459         POSIX requires this.
56460         * lib/strptime.c (strptime): Likewise.
56461         Change license notice from LGPL to GPL, since gnulib-tool will
56462         change this as needed.
56463         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
56464         defined.
56465         Include "strptime.h" first, to check interface.
56466         Do not #undef _LIBC and _NL_CURRENT.
56467         Do not include <stdlib.h>; no longer needed.
56468         Include "time_r.h" and declare ptime_locale_status
56469         only if _LIBC is not defined.
56470         (__P): Remove unused macro.
56471         (match_string): Bring back glibc version, but use it only if _LIBC
56472         is defined.
56473         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
56474         Remove unnecessary assertion and abort() call.
56475         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
56476         * m4/strptime.m4: Fix serial number comment.
56477         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
56478         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
56479         (Depends-on): Add time_r.
56480
56481 2007-01-29  Bruno Haible  <bruno@clisp.org>
56482
56483         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56484         strptime.
56485         * modules/strptime (Depends-on): Add stdbool.
56486         * lib/strptime.h: Include <time.h> always. Add comments.
56487
56488 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56489
56490         * modules/strptime: New file.
56491         * lib/strptime.h: New file.
56492         * lib/strptime.c: New file.
56493         * m4/strptime.m4: New file.
56494
56495 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
56496
56497         * MODULES.html.sh: New module mpsort.
56498         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
56499
56500         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
56501         a circularity problem with HP-UX ia64 reported by Bob Proulx in
56502         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
56503         All uses changed.
56504         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
56505         All uses changed.
56506         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
56507         to _Restrict_.
56508         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
56509         the parameter matches the prototype.
56510
56511 2007-01-28  Jim Meyering  <jim@meyering.net>
56512
56513         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
56514         sys/time.h here, reverting that part of the previous patch:
56515         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
56516
56517 2007-01-28  Bruno Haible  <bruno@clisp.org>
56518
56519         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
56520         value of $(SYS_TIME_H).
56521         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
56522         remove it conditionally, too. [added by Jim Meyering]
56523         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
56524         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
56525         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
56526         GETTIMEOFDAY_REPLACEMENT to 1.
56527
56528 2007-01-28  Bruno Haible  <bruno@clisp.org>
56529
56530         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
56531         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
56532         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
56533         Set UNISTD_H instead of UNISTD_H2.
56534         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
56535
56536 2007-01-28  Bruno Haible  <bruno@clisp.org>
56537
56538         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
56539         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
56540
56541 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56542
56543         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
56544         (func_create_testdir): Ensure C locale for `grep' and `tr'
56545         character ranges.
56546         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
56547         ACLOCAL_AMFLAGS parsing state machine.
56548
56549 2007-01-27  Bruno Haible  <bruno@clisp.org>
56550
56551         * modules/unistr/base: Update.
56552
56553 2007-01-27  Bruno Haible  <bruno@clisp.org>
56554
56555         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
56556         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
56557         * modules/unistr/u32-mbtouc-unsafe: Renamed from
56558         modules/unistr/u32-mbtouc.
56559         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
56560         * lib/unistr.h: Update.
56561         * lib/linebreak.c: Update.
56562         * modules/unistr/u32-mbtouc: Renamed from
56563         modules/unistr/u32-mbtouc-safe.
56564         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
56565         * lib/unistr.h: Update.
56566         * lib/unistr/u32-to-u8.c: Update.
56567         * lib/unistr/u32-to-u16.c: Update.
56568
56569 2007-01-27  Bruno Haible  <bruno@clisp.org>
56570
56571         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
56572         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
56573         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
56574         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
56575         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
56576         * modules/unistr/u16-mbtouc-unsafe: Renamed from
56577         modules/unistr/u16-mbtouc.
56578         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
56579         * lib/unistr.h: Update.
56580         * lib/linebreak.c: Update.
56581         * modules/linebreak: Update.
56582         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
56583         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
56584         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
56585         * modules/unistr/u16-mbtouc: Renamed from
56586         modules/unistr/u16-mbtouc-safe.
56587         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
56588         * lib/unistr.h: Update.
56589         * lib/unistr/u16-to-u8.c: Update.
56590         * modules/unistr/u16-to-u8: Update.
56591         * lib/unistr/u16-to-u32.c: Update.
56592         * modules/unistr/u16-to-u32: Update.
56593
56594 2007-01-27  Bruno Haible  <bruno@clisp.org>
56595
56596         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
56597         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
56598         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
56599         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
56600         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
56601         * modules/unistr/u8-mbtouc-unsafe: Renamed from
56602         modules/unistr/u8-mbtouc.
56603         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
56604         * lib/unistr.h: Update.
56605         * lib/striconveh.c: Update.
56606         * modules/striconveh: Update.
56607         * lib/linebreak.c: Update.
56608         * modules/linebreak: Update.
56609         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
56610         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
56611         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
56612         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
56613         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
56614         * lib/unistr.h: Update.
56615         * lib/striconveh.c: Update.
56616         * modules/striconveh: Update.
56617         * lib/unistr/u8-to-u16.c: Update.
56618         * modules/unistr/u8-to-u16: Update.
56619         * lib/unistr/u8-to-u32.c: Update.
56620         * modules/unistr/u8-to-u32: Update.
56621
56622 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56623
56624         Sync from Libtool.
56625         * lib/argz.c: Do not include strings.h nor memory.h, include
56626         string.h unconditionally.  Patch by Simon Josefsson.
56627
56628 2007-01-27  Bruno Haible  <bruno@clisp.org>
56629
56630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
56631         from gl_HEADER_STRING_H_BODY.
56632         (gl_HEADER_STRING_H_BODY): Require it.
56633         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
56634         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56635         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56636         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56637         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56638         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
56639         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56640         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56641         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
56642         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56643         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56644         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
56645         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56646         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56647         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56648
56649 2007-01-27  Bruno Haible  <bruno@clisp.org>
56650
56651         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
56652         check_PROGRAMS into noinst_PROGRAMS.
56653         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
56654         check_PROGRAMS in this case.
56655         (func_import): Set for_test to false.
56656         (func_create_testdir): Set for_test to true.
56657
56658 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56659             Bruno Haible  <bruno@clisp.org>
56660
56661         * modules/strcasestr (Files): Remove lib/strcasestr.h.
56662         (Depends-on): Add string.
56663         (Includes): Use <string.h> instead of strcasestr.h.
56664         * modules/string (Makefile.am): Also substitute the value of
56665         REPLACE_STRCASESTR.
56666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
56667         assume strcasestr is declared in <string.h> not <strings.h>. Also
56668         set REPLACE_STRCASESTR.
56669         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
56670         REPLACE_STRCASESTR.
56671         * lib/strcasestr.h: Remove file.
56672         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
56673         * lib/string_.h (strcasestr): New declaration.
56674
56675 2007-01-27  Bruno Haible  <bruno@clisp.org>
56676
56677         * lib/string_.h: Use 'extern'.
56678
56679 2007-01-27  Jim Meyering  <jim@meyering.net>
56680
56681         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
56682         of set-but-not-used local, "q".
56683
56684         * lib/mempcpy.c: Include <config.h> before <string.h>.
56685         This fixes a compilation error on HP-UX, due to the system's
56686         "restrict"-using mempcpy prototype.
56687
56688 2007-01-26  Bruno Haible  <bruno@clisp.org>
56689
56690         Small optimization.
56691         * lib/javacomp.c: Include c-strstr.h.
56692          (is_envjavac_gcj): Use c_strstr instead of strstr.
56693         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
56694
56695 2007-01-26  Bruno Haible  <bruno@clisp.org>
56696
56697         * MODULES.html.sh (Unicode string functions): Add the new modules.
56698
56699         * modules/uniconv/u32-strconv-to-locale: New file.
56700         * lib/uniconv/u32-strconv-to-locale.c: New file.
56701
56702         * modules/uniconv/u16-strconv-to-locale: New file.
56703         * lib/uniconv/u16-strconv-to-locale.c: New file.
56704
56705         * modules/uniconv/u8-strconv-to-locale: New file.
56706         * lib/uniconv/u8-strconv-to-locale.c: New file.
56707
56708         * modules/uniconv/u32-strconv-from-locale: New file.
56709         * lib/uniconv/u32-strconv-from-locale.c: New file.
56710
56711         * modules/uniconv/u16-strconv-from-locale: New file.
56712         * lib/uniconv/u16-strconv-from-locale.c: New file.
56713
56714         * modules/uniconv/u8-strconv-from-locale: New file.
56715         * lib/uniconv/u8-strconv-from-locale.c: New file.
56716
56717         * modules/uniconv/u32-strconv-to-enc: New file.
56718         * lib/uniconv/u32-strconv-to-enc.c: New file.
56719         * modules/uniconv/u32-strconv-to-enc-tests: New file.
56720         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
56721
56722         * modules/uniconv/u16-strconv-to-enc: New file.
56723         * lib/uniconv/u16-strconv-to-enc.c: New file.
56724         * lib/uniconv/u-strconv-to-enc.h: New file.
56725         * modules/uniconv/u16-strconv-to-enc-tests: New file.
56726         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
56727
56728         * modules/uniconv/u8-strconv-to-enc: New file.
56729         * lib/uniconv/u8-strconv-to-enc.c: New file.
56730         * modules/uniconv/u8-strconv-to-enc-tests: New file.
56731         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
56732
56733         * modules/uniconv/u32-strconv-from-enc: New file.
56734         * lib/uniconv/u32-strconv-from-enc.c: New file.
56735         * modules/uniconv/u32-strconv-from-enc-tests: New file.
56736         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
56737
56738         * modules/uniconv/u16-strconv-from-enc: New file.
56739         * lib/uniconv/u16-strconv-from-enc.c: New file.
56740         * modules/uniconv/u16-strconv-from-enc-tests: New file.
56741         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
56742
56743         * modules/uniconv/u8-strconv-from-enc: New file.
56744         * lib/uniconv/u8-strconv-from-enc.c: New file.
56745         * lib/uniconv/u-strconv-from-enc.h: New file.
56746         * modules/uniconv/u8-strconv-from-enc-tests: New file.
56747         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
56748
56749         * modules/uniconv/u32-conv-from-enc: New file.
56750         * lib/uniconv/u32-conv-from-enc.c: New file.
56751         * modules/uniconv/u32-conv-from-enc-tests: New file.
56752         * tests/uniconv/test-u32-conv-from-enc.c: New file.
56753
56754         * modules/uniconv/u16-conv-from-enc: New file.
56755         * lib/uniconv/u16-conv-from-enc.c: New file.
56756         * lib/uniconv/u-conv-from-enc.h: New file.
56757         * modules/uniconv/u16-conv-from-enc-tests: New file.
56758         * tests/uniconv/test-u16-conv-from-enc.c: New file.
56759
56760         * modules/uniconv/u8-conv-from-enc: New file.
56761         * lib/uniconv/u8-conv-from-enc.c: New file.
56762         * modules/uniconv/u8-conv-from-enc-tests: New file.
56763         * tests/uniconv/test-u8-conv-from-enc.c: New file.
56764
56765         * modules/uniconv/base: New file.
56766         * lib/uniconv.h: New file.
56767
56768 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
56769
56770         * doc/gnulib-tool.texi (Initial import): Update to match current
56771         behavior with strdup module.
56772         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
56773         * lib/memmem.h: Remove; all uses removed.  This is now done
56774         by <string.h>.
56775         * lib/mempcpy.h: Likewise.
56776         * lib/memrchr.h: Likewise.
56777         * lib/stpcpy.h: Likewise.
56778         * lib/stpncpy.h: Likewise.
56779         * lib/strcase.h: Likewise.
56780         * lib/strchrnul.h: Likewise.
56781         * lib/strdup.h: Likewise.
56782         * lib/strndup.h: Likewise.
56783         * lib/strnlen.h: Likewise.
56784         * lib/strpbrk.h: Likewise.
56785         * lib/strsep.h: Likewise.
56786         * lib/strstr.h: Likewise.
56787         * lib/strtok_r.h: Likewise.
56788         * lib/string_.h: New file.
56789         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
56790         Rely on <string.h> instead.
56791         * lib/canon-host.c: Likewise.
56792         * lib/chdir-long.c: Likewise.
56793         * lib/concatpath.c: Likewise.
56794         * lib/exclude.c: Likewise.
56795         * lib/fchdir.c: Likewise.
56796         * lib/getaddrinfo.c: Likewise.
56797         * lib/getcwd.c: Likewise.
56798         * lib/getsubopt.c: Likewise.
56799         * lib/glob.c: Likewise.
56800         * lib/hard-locale.c: Likewise.
56801         * lib/iconvme.c: Likewise.
56802         * lib/javacomp.c: Likewise.
56803         * lib/mempcpy.c: Likewise.
56804         * lib/memrchr.c: Likewise.
56805         * lib/regex_internal.h: Likewise.
56806         * lib/stpncpy.c: Likewise.
56807         * lib/strcasecmp.c: Likewise.
56808         * lib/strchrnul.c: Likewise.
56809         * lib/strdup.c: Likewise.
56810         * lib/striconv.c: Likewise.
56811         * lib/striconveh.c: Likewise.
56812         * lib/striconveha.c: Likewise.
56813         * lib/strncasecmp.c: Likewise.
56814         * lib/strndup.c: Likewise.
56815         * lib/strnlen.c: Likewise.
56816         * lib/strsep.c: Likewise.
56817         * lib/strstr.c: Likewise.
56818         * lib/strtok_r.c: Likewise.
56819         * lib/userspec.c: Likewise.
56820         * lib/w32spawn.h: Likewise.
56821         * lib/xstrndup.c: Likewise.
56822         * lib/mountlist.c (strstr): Remove decl.
56823         * m4/string_h.m4: New file.
56824         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
56825         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
56826         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
56827         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
56828         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
56829         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
56830         Set REPLACE_STRCASECMP if necessary.
56831         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
56832         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
56833         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
56834         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
56835         HAVE_DECL_STRDUP if necessary.
56836         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
56837         since gl_FUNC_STRNDUP does that now.
56838         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
56839         Check for decl here...
56840         (gl_PREREQ_STRNLEN): ... not here.
56841         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
56842         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
56843         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
56844         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
56845         necessary.
56846         * modules/string: New file.
56847         * modules/memmem (Files): Remove special-purpose include file.
56848         (Depends-on): Add string.
56849         (Include): Include <string.h>, not the removed file.
56850         * modules/mempcpy: Likewise.
56851         * modules/memrchr: Likewise.
56852         * modules/stpcpy: Likewise.
56853         * modules/stpncpy: Likewise.
56854         * modules/strcase: Likewise.
56855         * modules/strchrnul: Likewise.
56856         * modules/strdup: Likewise.
56857         * modules/strndup: Likewise.
56858         * modules/strnlen: Likewise.
56859         * modules/strpbrk: Likewise.
56860         * modules/strsep: Likewise.
56861         * modules/strstr: Likewise.
56862         * modules/strtok_r: Likewise.
56863         * tests/test-dirname.c: Don't include "strdup.h", since
56864         <string.h> now suffices.
56865         * tests/test-memmem.c: Don't include "memmem.h", since
56866         <string.h> now suffices.
56867
56868 2007-01-25  Bruno Haible  <bruno@clisp.org>
56869
56870         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
56871         *resultp is 0.
56872
56873         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
56874         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
56875         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
56876         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
56877
56878         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
56879         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
56880         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
56881         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
56882         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
56883         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
56884
56885 2007-01-24  Bruno Haible  <bruno@clisp.org>
56886
56887         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
56888         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
56889         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
56890         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
56891         gl_FUNC_FTS_CORE.
56892         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
56893         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
56894         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
56895         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
56896         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
56897         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
56898         gl_FUNC_FCHOWNAT.
56899         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
56900         gl_FUNC_STRFTIME.
56901         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
56902         Reported by Ralf Wildenhues.
56903
56904 2007-01-24  Bruno Haible  <bruno@clisp.org>
56905
56906         Drop AC_REQUIRE calls that are redundant with the module dependencies.
56907         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
56908         gl_GETADDRINFO.
56909         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
56910         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
56911         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
56912
56913 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
56914
56915         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
56916         Don't use 'exit'; just return from 'main'.
56917         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
56918
56919         * lib/fnmatch_.h: Readjust white space and comments to match
56920         glibc, to avoid spurious diffs.
56921
56922 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56923
56924         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
56925         2004-12-01 change by Jakub Jelinek, since this code won't compile
56926         if !LIBC.  Problem reported by Bob Proulx.
56927
56928 2007-01-23  Bruno Haible  <bruno@clisp.org>
56929
56930         * lib/striconveh.c: Include c-strcaseeq.h.
56931         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
56932         * modules/striconveh (Depends-on): Add c-strcaseeq.
56933
56934 2007-01-23  Bruno Haible  <bruno@clisp.org>
56935
56936         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
56937
56938         * modules/c-strcaseeq: New file.
56939         * lib/c-strcaseeq.h: New file.
56940
56941         * modules/streq: New file.
56942         * lib/streq.h: New file.
56943
56944 2007-01-23  Bruno Haible  <bruno@clisp.org>
56945
56946         * modules/striconveha-tests: New file.
56947         * tests/test-striconveha.c: New file.
56948
56949         * lib/striconveha.h: Include <stdbool.h>.
56950         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
56951         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
56952         (mem_iconveha_notranslit): Renamed from mem_iconveha.
56953         (mem_iconveha): New function.
56954         (str_iconveha_notranslit): Renamed from str_iconveha.
56955         (str_iconveha): New function.
56956         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
56957         c-strcase.
56958
56959 2007-01-23  Bruno Haible  <bruno@clisp.org>
56960
56961         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
56962         encodings without forgiving before trying any encoding with handler.
56963         (str_iconveha): Try all encodings without forgiving before trying any
56964         encoding with handler.
56965
56966 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
56967
56968         Import the following changes from libc.
56969
56970         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
56971
56972         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
56973
56974         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
56975
56976         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
56977         normal_bracket label.
56978
56979         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
56980
56981         [BZ #361]
56982         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
56983         to normal_bracket after fetching the next character.
56984
56985 2007-01-22  Bruno Haible  <bruno@clisp.org>
56986
56987         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
56988         argument.
56989         * lib/striconveh.c (iconv_carefully_1): New function.
56990         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
56991         argument.
56992         (str_cd_iconveh): Update.
56993         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
56994         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
56995         * tests/test-striconveh.c (MAGIC): New macro.
56996         (new_offsets): New function.
56997         (main): Test call with and without offsets.
56998
56999 2007-01-22  Bruno Haible  <bruno@clisp.org>
57000
57001         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
57002         * modules/sys_select (Makefile.am): Likewise.
57003         * modules/sys_socket (Makefile.am): Likewise.
57004         * modules/sys_time (Makefile.am): Likewise.
57005
57006 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
57007
57008         * modules/gettimeofday (License): Change from GPL to LGPL, since
57009         gettimeofday is a library function.
57010
57011 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57012
57013         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
57014
57015 2007-01-21  Bruno Haible  <bruno@clisp.org>
57016
57017         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
57018
57019 2007-01-21  Bruno Haible  <bruno@clisp.org>
57020
57021         * modules/striconveha: New file.
57022         * lib/striconveha.h: New file.
57023         * lib/striconveha.c: New file.
57024         * MODULES.html.sh (Internationalization functions): Add striconveha.
57025         * lib/striconv.c (str_iconv): Optimize the case of an empty input
57026         string.
57027         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
57028
57029 2007-01-21  Bruno Haible  <bruno@clisp.org>
57030
57031         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
57032         * lib/striconveh.c (str_iconveh): Likewise.
57033
57034 2007-01-21  Bruno Haible  <bruno@clisp.org>
57035
57036         * lib/striconveh.h (mem_iconveh): New declaration.
57037         * lib/striconveh.c (mem_iconveh): New function.
57038         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
57039
57040 2007-01-21  Bruno Haible  <bruno@clisp.org>
57041
57042         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
57043
57044         * lib/striconveh.h (mem_cd_iconveh): Change specification.
57045         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
57046         original result buffer.
57047         (str_cd_iconveh): Update.
57048         * tests/test-striconveh.c (main): Update.
57049
57050         * lib/striconv.h (mem_cd_iconv): Change specification.
57051         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
57052         result buffer.
57053         (str_cd_iconv): Update.
57054         * tests/test-striconv.c (main): Update.
57055
57056 2007-01-21  Bruno Haible  <bruno@clisp.org>
57057
57058         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
57059
57060 2007-01-20  Jim Meyering  <jim@meyering.net>
57061
57062         * lib/userspec.c (parse_with_separator): If a user or group string
57063         starts with "+", skip the corresponding name-to-ID look-up, since
57064         such a look-up must fail: user and group names may not include "+".
57065
57066 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57067
57068         * lib/poll.c: Include sys/time.h and time.h unconditionally,
57069         since we now assume the sys_time module.
57070         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
57071         check for sys/time.h; no longer needed.
57072         * modules/poll (Depends-on): Depend on sys_time.
57073
57074 2007-01-18  Bruno Haible  <bruno@clisp.org>
57075
57076         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
57077         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57078
57079         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
57080         gettimeofday.
57081
57082         * tests/test-gettimeofday.c: Include <time.h>.
57083         (dummy): Remove variable.
57084
57085         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
57086         gl_HEADER_SYS_TIME_H.
57087         (gl_HEADER_SYS_TIME_H): New macro.
57088
57089         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
57090         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57091         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
57092         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
57093         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57094         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
57095         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
57096         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57097         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
57098         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
57099         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57100
57101         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
57102         last change; it caused a compilation error when cross-compiling to
57103         Cygwin.
57104
57105 2007-01-18  Jim Meyering  <jim@meyering.net>
57106
57107         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
57108         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
57109         than the race-prone "test -d sys || mkdir sys".
57110         (configure.ac): Use AC_PROG_MKDIR_P.
57111         * modules/sys_select: Likewise.
57112         * modules/sys_socket: Likewise.
57113         * modules/sys_time: Likewise.
57114
57115 2007-01-18  Eric Blake  <ebb9@byu.net>
57116
57117         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
57118         replace gettimeofday.
57119         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
57120         name, to avoid infinite recursion.
57121
57122 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
57123
57124         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
57125         module sys_time.
57126         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
57127         assume timespec.h defines struct timeval.
57128         * lib/settime.c: Likewise.
57129         * lib/utimens.c: Likewise.
57130         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
57131         since we now assume the gettimeofday module.
57132         * lib/tempname.c (__gen_tempname): Likewise.
57133         * lib/gettimeofday.h: Remove.
57134         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
57135         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
57136         Include <time.h>, for 'time()'.
57137         (localtime_buffer_addr): Also use this workaround if
57138         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
57139         to simplify the uses.  All uses changed.
57140         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
57141         that #undef is inside {}, and 'const' follows type name consistently.
57142         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
57143         (gettimeofday): Do not use the maximum possible value for
57144         tv->tv_usec, since that might break usages other than ls.c.
57145         Instead, we'll leave ls.c alone.  This undoes today's patch
57146         by Bruno.  Add a compile-time warning for 1s-clock resolution;
57147         we've never observed the problem but might as well keep the
57148         canary.
57149         * lib/nanosleep.c: Include timespec.h first, for interface check.
57150         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
57151         now assume the sys_time module.
57152         * lib/tempname.c: Likewise.
57153         * lib/timespec.h: Likewise.
57154         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
57155         needed.
57156         * lib/strftime.c: Likewise.
57157         * lib/timespec.h: Likewise.
57158         * lib/posixtm.c: Include posixtm.h first, for interface check.
57159         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
57160         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
57161         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
57162         * lib/sys_time_.h: New file.
57163         * lib/timespec.h (struct timespec): Use long int, not long.
57164         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
57165         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
57166         Remove obsolescent call to AC_HEADER_TIME.
57167         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
57168         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
57169         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
57170         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
57171         Likewise.
57172         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
57173         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
57174         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
57175         into the sys_time module.  Check for gettimeofday just once.
57176         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
57177         for gettimeofday signature to just check the signature.  Merely
57178         compile it, since linking doesn't test signature.  Improve test for
57179         whether gettimeofday.o is actually needed.
57180         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
57181         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
57182         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
57183         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57184         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
57185         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
57186         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
57187         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
57188         than worrying about sys/time.h.
57189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
57190         Don't bother worrying about TIME_WITH_SYS_TIME.
57191         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
57192         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
57193         * m4/sys_time_h.m4: New file.
57194         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
57195         Don't include sys/time.h.  Return from main rather than exiting.
57196         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
57197         all uses changed.
57198         * modules/gethrxtime (Depends-on): Add sys_time.
57199         * modules/gettime (Depends-on): Likewise.
57200         * modules/gettimeofday (Depends-on): Likewise.
57201         * modules/nanosleep (Depends-on): Likewise.
57202         * modules/settime (Depends-on): Likewise.
57203         * modules/tempname (Depends-on): Likewise.
57204         * modules/utimens (Depends-on): Likewise.
57205         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
57206         (Include): Change back to <sys/time.h>.
57207         (Maintainer): Add self.
57208         * modules/sys_time: New file.
57209         * modules/tempname (Depends-on): Add gettimeofday.
57210         * tests/test-gettimeofday.c: Include <sys/time.h>
57211         rather than gettimeofday.h.
57212
57213 2007-01-17  Bruno Haible  <bruno@clisp.org>
57214
57215         * gnulib-tool (func_get_license): Revert last patch. Instead, let
57216         the license default to GPL.
57217         (func_create_testdir): Don't complain if a module is LGPL and its
57218         tests module depends on GPLed modules.
57219
57220 2007-01-17  Bruno Haible  <bruno@clisp.org>
57221
57222         * lib/gettimeofday.c (gettimeofday): Add code for the case
57223         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
57224         maximum possible value for tv->tv_usec, rather than the minimum one.
57225
57226 2005-10-08  Martin Lambers  <marlam@marlam.de>
57227 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57228 2007-01-16  Bruno Haible  <bruno@clisp.org>
57229
57230         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
57231         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
57232         gl_FUNC_GETTIMEOFDAY.
57233         (Include): Add gettimeofday.h.
57234         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
57235         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
57236         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
57237         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
57238         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
57239         * lib/gettimeofday.h: New file.
57240         * lib/gettimeofday.c: Include <sys/timeb.h>.
57241         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
57242         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
57243         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
57244         fall back on time().
57245
57246         * tests/test-gettimeofday.c: New file.
57247         * modules/gettimeofday-tests: New file.
57248
57249 2007-01-16  Eric Blake  <ebb9@byu.net>
57250
57251         * modules/fnmatch (Depends-on): Depend on wchar.
57252         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
57253         * m4/fnmatch.m4: Likewise.
57254         * modules/mbchar (Makefile.am): Assume <wchar.h>.
57255         * m4/mbchar.m4: Likewise.
57256         * modules/mbswidth (Depends-on): Depend on wchar.
57257         * lib/mbswidth.c: Assume <wchar.h>.
57258         * m4/mbswidth.m4: Likewise.
57259         * modules/quotearg (Depends-on): Depend on wchar.
57260         * lib/quotearg.c: Assume <wchar.h>.
57261         * m4/quotearg.m4: Likewise.
57262         * modules/regex (Depends-on): Depend on wchar.
57263         * lib/regex_internal.h: Assume <wchar.h>.
57264         * m4/regex.m4: Likewise.
57265         * modules/stdint (Depends-on): Depend on wchar.
57266         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
57267         * m4/stdint.m4: Likewise.
57268         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
57269         * modules/strftime (Depends-on): Depend on wchar.
57270         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
57271         * modules/strtol (Depends-on): Depend on wchar.
57272         * lib/strtol.c: Assume <wchar.h>.
57273         * modules/wcwidth (Depends-on): Depend on wchar.
57274         * lib/wcwidth.h: Assume <wchar.h>.
57275         * m4/wcwidth.m4: Likewise.
57276
57277 2007-01-16  Bruno Haible  <bruno@clisp.org>
57278
57279         * modules/csharpexec-script: New, created from...
57280         * modules/csharpexec: ... this.
57281
57282 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57283
57284         * modules/javaexec-script: New, created from...
57285         * modules/javaexec: ... this.
57286
57287 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57288
57289         * modules/poll (Dependencies): Add sys_select.
57290
57291 2007-01-15  Jim Meyering  <jim@meyering.net>
57292
57293         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
57294         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
57295         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
57296         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
57297
57298 2007-01-15  Bruno Haible  <bruno@clisp.org>
57299
57300         * modules/striconveh: New file.
57301         * lib/striconveh.h: New file.
57302         * lib/striconveh.c: New file.
57303         * MODULES.html.sh (Internationalization functions): Add striconveh.
57304
57305         * modules/striconveh-tests: New file.
57306         * tests/test-striconveh.c: New file.
57307
57308 2007-01-15  Bruno Haible  <bruno@clisp.org>
57309
57310         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
57311         not from GNU libiconv or GNU libc.
57312
57313 2007-01-15  Bruno Haible  <bruno@clisp.org>
57314
57315         * doc/gnulib-intro.texi (Copyright): Explain the different license
57316         terms for module descriptions, autoconf macros, tests, documentation.
57317
57318 2007-01-14  Bruno Haible  <bruno@clisp.org>
57319
57320         * modules/striconv-tests: New file.
57321         * tests/test-striconv.c: New file.
57322
57323 2007-01-14  Bruno Haible  <bruno@clisp.org>
57324
57325         * modules/iconv-tests: New file.
57326         * tests/test-iconv.c: New file.
57327
57328 2007-01-14  Bruno Haible  <bruno@clisp.org>
57329
57330         * gnulib-tool (func_get_license): For test modules, use the license of
57331         the main module.
57332
57333 2007-01-14  Bruno Haible  <bruno@clisp.org>
57334
57335         * modules/iconv (Include): Clarify that <iconv.h> can only be included
57336         if iconv is found to exist.
57337
57338 2007-01-14  Bruno Haible  <bruno@clisp.org>
57339
57340         * modules/c-ctype-tests: New file.
57341         * tests/test-c-ctype.c: New file.
57342
57343 2007-01-14  Bruno Haible  <bruno@clisp.org>
57344
57345         * modules/binary-io-tests: New file.
57346         * tests/test-binary-io.sh: New file.
57347         * tests/test-binary-io.c: New file.
57348
57349 2007-01-14  Bruno Haible  <bruno@clisp.org>
57350
57351         * modules/array-oset-tests: New file.
57352         * tests/test-array_oset.c: New file.
57353
57354 2007-01-14  Bruno Haible  <bruno@clisp.org>
57355
57356         * modules/array-list-tests: New file.
57357         * tests/test-array_list.c: New file.
57358
57359 2007-01-14  Bruno Haible  <bruno@clisp.org>
57360
57361         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
57362         and make.
57363         Reported by Simon Josefsson in
57364         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
57365
57366 2007-01-14  Bruno Haible  <bruno@clisp.org>
57367
57368         * modules/allocsa-tests: New file.
57369         * tests/test-allocsa.c: New file.
57370
57371 2007-01-14  Bruno Haible  <bruno@clisp.org>
57372
57373         * modules/fchdir (Depends-on): Add absolute-header.
57374         * modules/unistd (Depends-on): Likewise.
57375
57376 2006-12-30  Bruno Haible  <bruno@clisp.org>
57377
57378         * modules/fchdir: New file.
57379         * modules/unistd (Files): Add lib/unistd_.h.
57380         (Makefile.am): Generate unistd.h from unistd_.h.
57381         * lib/fchdir.c: New file.
57382         * lib/dirent_.h: New file.
57383         * lib/unistd_.h: New file.
57384         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
57385         * m4/fchdir.m4: New file.
57386         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
57387         (gl_HEADER_UNISTD): Invoke it.
57388         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
57389         function.
57390         * lib/backupfile.c (opendir, closedir): Undefine.
57391         * lib/chown.c (open, close): Undefine.
57392         * lib/clean-temp.c (open, close): Undefine.
57393         * lib/copy-file.c (open, close): Undefine.
57394         * lib/execute.c (open, close): Undefine.
57395         * lib/fsusage.c (open, close): Undefine.
57396         * lib/gc-gnulib.c (open, close): Undefine.
57397         * lib/getcwd.c (opendir, closedir): Undefine.
57398         * lib/glob.c (opendir, closedir): Undefine.
57399         * lib/javacomp.c (open, close): Undefine.
57400         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
57401         * lib/openat-proc.c (open, close): Undefine.
57402         * lib/pagealign_alloc.c (open, close): Undefine.
57403         * lib/pipe.c (open, close): Undefine.
57404         * lib/progreloc.c (open, close): Undefine.
57405         * lib/savedir.c (opendir, closedir): Undefine.
57406         * lib/utime.c (open, close): Undefine.
57407         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
57408
57409 2007-01-10  Bruno Haible  <bruno@clisp.org>
57410
57411         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
57412
57413 2007-01-12  Eric Blake  <ebb9@byu.net>
57414
57415         Provide a robust <wchar.h>.  Further simplifications are now
57416         possible in other modules, but not included here.
57417         * modules/wchar: New module.
57418         * m4/wchar.m4: New file.
57419         * lib/wchar_.h: Likewise.
57420         * modules/mbchar (Depends-on): Depend on wchar, as the first use
57421         of the new module.
57422         * MODULES.html.sh (Extended multibyte and wide character utilities):
57423         New section.
57424
57425 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
57426
57427         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
57428         to a reasonable default for memory allocation.
57429         (xreadlink): Don't allocate a huge buffer, to work around a buggy
57430         file system that reports garbage st_size values for symlinks.
57431         Problem reported by Liyang Hu.
57432
57433 2007-01-11  Simon Josefsson  <simon@josefsson.org>
57434
57435         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
57436         Emacs .#* auto-save files).
57437
57438 2007-01-11  Bruno Haible  <bruno@clisp.org>
57439
57440         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
57441         directory.
57442
57443 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
57444
57445         Use @...@ consistently in lib/wctype_.h.
57446         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
57447         on it being set to 1 or 0.
57448         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
57449         go back to AC_SUBSTing it.
57450         * modules/wctype (Makefile.am): Undo previous change.
57451
57452 2007-01-10  Eric Blake  <ebb9@byu.net>
57453
57454         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
57455         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
57456         * modules/wctype (Makefile.am): Likewise.
57457         Reported by Chris McGuire.
57458
57459 2007-01-10  Jim Meyering  <jim@meyering.net>
57460
57461         fts.c: a small readability/maintainability improvement
57462         * lib/fts.c (fts_read): Make this code slightly more readable and
57463         maintainable by hoisting the "sp->fts_cur = p" assignments to
57464         immediately follow the statements that set P.  Derived from
57465         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
57466
57467 2007-01-10  Eric Blake  <ebb9@byu.net>
57468
57469         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
57470         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
57471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57472         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
57473         Reported by Chris McGuire.
57474
57475 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57476
57477         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
57478         in sed script.
57479
57480 2007-01-09  Bruno Haible  <bruno@clisp.org>
57481
57482         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
57483         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
57484         variables.
57485         (func_module): Use them.
57486
57487 2007-01-09  Bruno Haible  <bruno@clisp.org>
57488
57489         * modules/unistr/base: New file.
57490         * lib/unistr.h: New file.
57491
57492         * modules/unistr/u8-to-u16: New file.
57493         * lib/unistr/u8-to-u16.c: New file.
57494
57495         * modules/unistr/u8-to-u32: New file.
57496         * lib/unistr/u8-to-u32.c: New file.
57497
57498         * modules/unistr/u16-to-u8: New file.
57499         * lib/unistr/u16-to-u8.c: New file.
57500
57501         * modules/unistr/u16-to-u32: New file.
57502         * lib/unistr/u16-to-u32.c: New file.
57503
57504         * modules/unistr/u32-to-u8: New file.
57505         * lib/unistr/u32-to-u8.c: New file.
57506
57507         * modules/unistr/u32-to-u16: New file.
57508         * lib/unistr/u32-to-u16.c: New file.
57509
57510         * modules/unistr/u8-check: New file.
57511         * modules/unistr/u16-check: New file.
57512         * modules/unistr/u32-check: New file.
57513         * lib/unistr/u8-check.c: New file.
57514         * lib/unistr/u16-check.c: New file.
57515         * lib/unistr/u32-check.c: New file.
57516
57517         * modules/unistr/u8-chr: New file.
57518         * modules/unistr/u16-chr: New file.
57519         * modules/unistr/u32-chr: New file.
57520         * lib/unistr/u8-chr.c: New file.
57521         * lib/unistr/u16-chr.c: New file.
57522         * lib/unistr/u32-chr.c: New file.
57523
57524         * modules/unistr/u8-cmp: New file.
57525         * modules/unistr/u16-cmp: New file.
57526         * modules/unistr/u32-cmp: New file.
57527         * lib/unistr/u8-cmp.c: New file.
57528         * lib/unistr/u16-cmp.c: New file.
57529         * lib/unistr/u32-cmp.c: New file.
57530
57531         * modules/unistr/u8-cpy: New file.
57532         * modules/unistr/u16-cpy: New file.
57533         * modules/unistr/u32-cpy: New file.
57534         * lib/unistr/u8-cpy.c: New file.
57535         * lib/unistr/u16-cpy.c: New file.
57536         * lib/unistr/u32-cpy.c: New file.
57537         * lib/unistr/u-cpy.h: New file.
57538
57539         * modules/unistr/u8-cpy-alloc: New file.
57540         * modules/unistr/u16-cpy-alloc: New file.
57541         * modules/unistr/u32-cpy-alloc: New file.
57542         * lib/unistr/u8-cpy-alloc.c: New file.
57543         * lib/unistr/u16-cpy-alloc.c: New file.
57544         * lib/unistr/u32-cpy-alloc.c: New file.
57545         * lib/unistr/u-cpy-alloc.h: New file.
57546
57547         * modules/unistr/u8-endswith: New file.
57548         * modules/unistr/u16-endswith: New file.
57549         * modules/unistr/u32-endswith: New file.
57550         * lib/unistr/u8-endswith.c: New file.
57551         * lib/unistr/u16-endswith.c: New file.
57552         * lib/unistr/u32-endswith.c: New file.
57553         * lib/unistr/u-endswith.h: New file.
57554
57555         * modules/unistr/u8-mblen: New file.
57556         * modules/unistr/u16-mblen: New file.
57557         * modules/unistr/u32-mblen: New file.
57558         * lib/unistr/u8-mblen.c: New file.
57559         * lib/unistr/u16-mblen.c: New file.
57560         * lib/unistr/u32-mblen.c: New file.
57561
57562         * modules/unistr/u8-mbtouc: New file.
57563         * modules/unistr/u16-mbtouc: New file.
57564         * modules/unistr/u32-mbtouc: New file.
57565         * lib/unistr/u8-mbtouc.c: New file.
57566         * lib/unistr/u16-mbtouc.c: New file.
57567         * lib/unistr/u32-mbtouc.c: New file.
57568
57569         * modules/unistr/u8-mbtouc-safe: New file.
57570         * modules/unistr/u16-mbtouc-safe: New file.
57571         * modules/unistr/u32-mbtouc-safe: New file.
57572         * lib/unistr/u8-mbtouc-safe.c: New file.
57573         * lib/unistr/u16-mbtouc-safe.c: New file.
57574         * lib/unistr/u32-mbtouc-safe.c: New file.
57575
57576         * modules/unistr/u8-move: New file.
57577         * modules/unistr/u16-move: New file.
57578         * modules/unistr/u32-move: New file.
57579         * lib/unistr/u8-move.c: New file.
57580         * lib/unistr/u16-move.c: New file.
57581         * lib/unistr/u32-move.c: New file.
57582         * lib/unistr/u-move.h: New file.
57583
57584         * modules/unistr/u8-next: New file.
57585         * modules/unistr/u16-next: New file.
57586         * modules/unistr/u32-next: New file.
57587         * lib/unistr/u8-next.c: New file.
57588         * lib/unistr/u16-next.c: New file.
57589         * lib/unistr/u32-next.c: New file.
57590
57591         * modules/unistr/u8-prev: New file.
57592         * modules/unistr/u16-prev: New file.
57593         * modules/unistr/u32-prev: New file.
57594         * lib/unistr/u8-prev.c: New file.
57595         * lib/unistr/u16-prev.c: New file.
57596         * lib/unistr/u32-prev.c: New file.
57597
57598         * modules/unistr/u8-set: New file.
57599         * modules/unistr/u16-set: New file.
57600         * modules/unistr/u32-set: New file.
57601         * lib/unistr/u8-set.c: New file.
57602         * lib/unistr/u16-set.c: New file.
57603         * lib/unistr/u32-set.c: New file.
57604         * lib/unistr/u-set.h: New file.
57605
57606         * modules/unistr/u8-startswith: New file.
57607         * modules/unistr/u16-startswith: New file.
57608         * modules/unistr/u32-startswith: New file.
57609         * lib/unistr/u8-startswith.c: New file.
57610         * lib/unistr/u16-startswith.c: New file.
57611         * lib/unistr/u32-startswith.c: New file.
57612         * lib/unistr/u-startswith.h: New file.
57613
57614         * modules/unistr/u8-stpcpy: New file.
57615         * modules/unistr/u16-stpcpy: New file.
57616         * modules/unistr/u32-stpcpy: New file.
57617         * lib/unistr/u8-stpcpy.c: New file.
57618         * lib/unistr/u16-stpcpy.c: New file.
57619         * lib/unistr/u32-stpcpy.c: New file.
57620         * lib/unistr/u-stpcpy.h: New file.
57621
57622         * modules/unistr/u8-stpncpy: New file.
57623         * modules/unistr/u16-stpncpy: New file.
57624         * modules/unistr/u32-stpncpy: New file.
57625         * lib/unistr/u8-stpncpy.c: New file.
57626         * lib/unistr/u16-stpncpy.c: New file.
57627         * lib/unistr/u32-stpncpy.c: New file.
57628         * lib/unistr/u-stpncpy.h: New file.
57629
57630         * modules/unistr/u8-strcat: New file.
57631         * modules/unistr/u16-strcat: New file.
57632         * modules/unistr/u32-strcat: New file.
57633         * lib/unistr/u8-strcat.c: New file.
57634         * lib/unistr/u16-strcat.c: New file.
57635         * lib/unistr/u32-strcat.c: New file.
57636         * lib/unistr/u-strcat.h: New file.
57637
57638         * modules/unistr/u8-strchr: New file.
57639         * modules/unistr/u16-strchr: New file.
57640         * modules/unistr/u32-strchr: New file.
57641         * lib/unistr/u8-strchr.c: New file.
57642         * lib/unistr/u16-strchr.c: New file.
57643         * lib/unistr/u32-strchr.c: New file.
57644
57645         * modules/unistr/u8-strcmp: New file.
57646         * modules/unistr/u16-strcmp: New file.
57647         * modules/unistr/u32-strcmp: New file.
57648         * lib/unistr/u8-strcmp.c: New file.
57649         * lib/unistr/u16-strcmp.c: New file.
57650         * lib/unistr/u32-strcmp.c: New file.
57651
57652         * modules/unistr/u8-strcpy: New file.
57653         * modules/unistr/u16-strcpy: New file.
57654         * modules/unistr/u32-strcpy: New file.
57655         * lib/unistr/u8-strcpy.c: New file.
57656         * lib/unistr/u16-strcpy.c: New file.
57657         * lib/unistr/u32-strcpy.c: New file.
57658         * lib/unistr/u-strcpy.h: New file.
57659
57660         * modules/unistr/u8-strcspn: New file.
57661         * modules/unistr/u16-strcspn: New file.
57662         * modules/unistr/u32-strcspn: New file.
57663         * lib/unistr/u8-strcspn.c: New file.
57664         * lib/unistr/u16-strcspn.c: New file.
57665         * lib/unistr/u32-strcspn.c: New file.
57666         * lib/unistr/u-strcspn.h: New file.
57667
57668         * modules/unistr/u8-strdup: New file.
57669         * modules/unistr/u16-strdup: New file.
57670         * modules/unistr/u32-strdup: New file.
57671         * lib/unistr/u8-strdup.c: New file.
57672         * lib/unistr/u16-strdup.c: New file.
57673         * lib/unistr/u32-strdup.c: New file.
57674         * lib/unistr/u-strdup.h: New file.
57675
57676         * modules/unistr/u8-strlen: New file.
57677         * modules/unistr/u16-strlen: New file.
57678         * modules/unistr/u32-strlen: New file.
57679         * lib/unistr/u8-strlen.c: New file.
57680         * lib/unistr/u16-strlen.c: New file.
57681         * lib/unistr/u32-strlen.c: New file.
57682         * lib/unistr/u-strlen.h: New file.
57683
57684         * modules/unistr/u8-strmblen: New file.
57685         * modules/unistr/u16-strmblen: New file.
57686         * modules/unistr/u32-strmblen: New file.
57687         * lib/unistr/u8-strmblen.c: New file.
57688         * lib/unistr/u16-strmblen.c: New file.
57689         * lib/unistr/u32-strmblen.c: New file.
57690
57691         * modules/unistr/u8-strmbtouc: New file.
57692         * modules/unistr/u16-strmbtouc: New file.
57693         * modules/unistr/u32-strmbtouc: New file.
57694         * lib/unistr/u8-strmbtouc.c: New file.
57695         * lib/unistr/u16-strmbtouc.c: New file.
57696         * lib/unistr/u32-strmbtouc.c: New file.
57697
57698         * modules/unistr/u8-strncat: New file.
57699         * modules/unistr/u16-strncat: New file.
57700         * modules/unistr/u32-strncat: New file.
57701         * lib/unistr/u8-strncat.c: New file.
57702         * lib/unistr/u16-strncat.c: New file.
57703         * lib/unistr/u32-strncat.c: New file.
57704         * lib/unistr/u-strncat.h: New file.
57705
57706         * modules/unistr/u8-strncmp: New file.
57707         * modules/unistr/u16-strncmp: New file.
57708         * modules/unistr/u32-strncmp: New file.
57709         * lib/unistr/u8-strncmp.c: New file.
57710         * lib/unistr/u16-strncmp.c: New file.
57711         * lib/unistr/u32-strncmp.c: New file.
57712
57713         * modules/unistr/u8-strncpy: New file.
57714         * modules/unistr/u16-strncpy: New file.
57715         * modules/unistr/u32-strncpy: New file.
57716         * lib/unistr/u8-strncpy.c: New file.
57717         * lib/unistr/u16-strncpy.c: New file.
57718         * lib/unistr/u32-strncpy.c: New file.
57719         * lib/unistr/u-strncpy.h: New file.
57720
57721         * modules/unistr/u8-strnlen: New file.
57722         * modules/unistr/u16-strnlen: New file.
57723         * modules/unistr/u32-strnlen: New file.
57724         * lib/unistr/u8-strnlen.c: New file.
57725         * lib/unistr/u16-strnlen.c: New file.
57726         * lib/unistr/u32-strnlen.c: New file.
57727         * lib/unistr/u-strnlen.h: New file.
57728
57729         * modules/unistr/u8-strpbrk: New file.
57730         * modules/unistr/u16-strpbrk: New file.
57731         * modules/unistr/u32-strpbrk: New file.
57732         * lib/unistr/u8-strpbrk.c: New file.
57733         * lib/unistr/u16-strpbrk.c: New file.
57734         * lib/unistr/u32-strpbrk.c: New file.
57735         * lib/unistr/u-strpbrk.h: New file.
57736
57737         * modules/unistr/u8-strrchr: New file.
57738         * modules/unistr/u16-strrchr: New file.
57739         * modules/unistr/u32-strrchr: New file.
57740         * lib/unistr/u8-strrchr.c: New file.
57741         * lib/unistr/u16-strrchr.c: New file.
57742         * lib/unistr/u32-strrchr.c: New file.
57743
57744         * modules/unistr/u8-strspn: New file.
57745         * modules/unistr/u16-strspn: New file.
57746         * modules/unistr/u32-strspn: New file.
57747         * lib/unistr/u8-strspn.c: New file.
57748         * lib/unistr/u16-strspn.c: New file.
57749         * lib/unistr/u32-strspn.c: New file.
57750         * lib/unistr/u-strspn.h: New file.
57751
57752         * modules/unistr/u8-strstr: New file.
57753         * modules/unistr/u16-strstr: New file.
57754         * modules/unistr/u32-strstr: New file.
57755         * lib/unistr/u8-strstr.c: New file.
57756         * lib/unistr/u16-strstr.c: New file.
57757         * lib/unistr/u32-strstr.c: New file.
57758         * lib/unistr/u-strstr.h: New file.
57759
57760         * modules/unistr/u8-strtok: New file.
57761         * modules/unistr/u16-strtok: New file.
57762         * modules/unistr/u32-strtok: New file.
57763         * lib/unistr/u8-strtok.c: New file.
57764         * lib/unistr/u16-strtok.c: New file.
57765         * lib/unistr/u32-strtok.c: New file.
57766         * lib/unistr/u-strtok.h: New file.
57767
57768         * modules/unistr/u8-uctomb: New file.
57769         * modules/unistr/u16-uctomb: New file.
57770         * modules/unistr/u32-uctomb: New file.
57771         * lib/unistr/u8-uctomb.c: New file.
57772         * lib/unistr/u16-uctomb.c: New file.
57773         * lib/unistr/u32-uctomb.c: New file.
57774
57775         * MODULES.html.sh (Unicode string functions): Add the new modules.
57776
57777 2007-01-08  Bruno Haible  <bruno@clisp.org>
57778
57779         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
57780         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
57781         subdirectories.
57782
57783 2007-01-08  Karl Berry  <karl@gnu.org>
57784
57785         * doc/error.texi: mention that main() fns must set program_name
57786         when progname is used.
57787
57788 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
57789
57790         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
57791         WCTYPE_H is empty, for the benefit of builds from non-distclean
57792         directories.  Problem reported by Eric Blake in
57793         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
57794
57795 2007-01-08  Bruno Haible  <bruno@clisp.org>
57796
57797         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
57798         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
57799         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
57800         PROVIDE_CANONICALIZE_FILENAME_MODE.
57801         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
57802
57803 2007-01-08  Bruno Haible  <bruno@clisp.org>
57804
57805         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
57806         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
57807         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
57808         * lib/fts.c: Likewise.
57809         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
57810
57811 2006-12-25  Bruno Haible  <bruno@clisp.org>
57812
57813         * modules/utf8-ucs4-safe: New file.
57814         * lib/utf8-ucs4-safe.h: New file.
57815         * lib/unistr/utf8-ucs4-safe.c: New file.
57816
57817         * modules/utf16-ucs4-safe: New file.
57818         * lib/utf16-ucs4-safe.h: New file.
57819         * lib/unistr/utf16-ucs4-safe.c: New file.
57820
57821         * MODULES.html.sh (Unicode string functions): Add the new modules.
57822
57823 2007-01-08  Bruno Haible  <bruno@clisp.org>
57824
57825         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
57826         (Depends-on): Add unitypes.
57827         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57828         (u8_mbtouc_aux): Move out to separate file.
57829         (u8_mbtouc): Use ucs4_t, uint8_t types.
57830         * lib/unistr/utf8-ucs4.c: New file.
57831
57832         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
57833         (Depends-on): Add unitypes.
57834         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
57835         (u16_mbtouc_aux): Move out to separate file.
57836         (u16_mbtouc): Use ucs4_t, uint16_t types.
57837         * lib/unistr/utf16-ucs4.c: New file.
57838
57839         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
57840         (Depends-on): Add unitypes.
57841         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
57842         (u8_uctomb_aux): Move out to separate file.
57843         (u8_uctomb): Use ucs4_t, uint8_t types.
57844         * lib/unistr/ucs4-utf8.c: New file.
57845
57846         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
57847         (Depends-on): Add unitypes.
57848         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
57849         (u16_uctomb_aux): Move out to separate file.
57850         (u16_uctomb): Use ucs4_t, uint16_t types.
57851         * lib/unistr/ucs4-utf16.c: New file.
57852
57853 2006-12-25  Bruno Haible  <bruno@clisp.org>
57854
57855         * modules/unitypes: New file.
57856         * lib/unitypes.h: New file.
57857         * MODULES.html.sh (func_all_modules): New section "Unicode string
57858         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
57859         this section. Add unitypes.
57860
57861 2007-01-08  Bruno Haible  <bruno@clisp.org>
57862
57863         Avoid variable names that conflict with those from libtool.
57864         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
57865         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
57866         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
57867         library_names_spec to acl_library_names_spec, hardcode_* to
57868         acl_hardcode_*.
57869         Reported by Ralf Wildenhues.
57870
57871 2007-01-08  Bruno Haible  <bruno@clisp.org>
57872
57873         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
57874         definition.
57875         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
57876         definition.
57877         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
57878         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
57879         definition.
57880         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
57881         definition.
57882         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
57883         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
57884         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
57885         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
57886         definition.
57887         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
57888         definition.
57889         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
57890         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
57891         GC_USE_<algorithm>.
57892         * lib/gc-libgcrypt.c: Likewise.
57893         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
57894         * modules/gc-arctwo (configure.ac): Likewise.
57895         * modules/gc-des (configure.ac): Likewise.
57896         * modules/gc-hmac-md5 (configure.ac): Likewise.
57897         * modules/gc-hmac-sha1 (configure.ac): Likewise.
57898         * modules/gc-md2 (configure.ac): Likewise.
57899         * modules/gc-md4 (configure.ac): Likewise.
57900         * modules/gc-md5 (configure.ac): Likewise.
57901         * modules/gc-random (configure.ac): Likewise.
57902         * modules/gc-rijndael (configure.ac): Likewise.
57903         * modules/gc-sha1 (configure.ac): Likewise.
57904
57905 2007-01-08  Bruno Haible  <bruno@clisp.org>
57906
57907         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
57908         macro definition.
57909         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
57910         definition.
57911         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
57912         definition.
57913         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
57914         * modules/fcntl-safer (configure.ac): Likewise.
57915         * modules/fopen-safer (configure.ac): Likewise.
57916         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
57917         GNULIB_FWRITEERROR macro definition.
57918
57919 2007-01-08  Bruno Haible  <bruno@clisp.org>
57920
57921         * m4/gnulib-common.m4: New file.
57922         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
57923         (func_get_filelist): Add m4/gnulib-common.m4.
57924
57925 2007-01-08  Bruno Haible  <bruno@clisp.org>
57926
57927         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
57928         command.
57929
57930 2007-01-08  Jim Meyering  <jim@meyering.net>
57931
57932         Use a more robust test for a "can't happen" condition.
57933         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
57934         narrowed the st_size value.  Presuming the "can't happen" condition
57935         is true, that narrowing could conceivably convert an invalid st_size
57936         value into a valid one.  Instead, use a change based on Matthew
57937         Woehlke's original patch.
57938
57939         Slight readability improvement: use an assert-like macro
57940         in place of literal "abort ()" uses.
57941         * lib/fts.c (fts_assert): Define.
57942         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
57943         Use this macro instead of a bare 'abort'.
57944
57945 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
57946
57947         Don't worry about using IRIX 5.3's wctype.h broken definitions;
57948         simply work around them.
57949         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
57950         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
57951         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
57952         declaring.
57953         Don't bother to define as macros, since the standard doesn't require it.
57954         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
57955         longer worry about IRIX 5.3.
57956         (HAVE_WCTYPE_CTMP_BUG): Remove.
57957
57958 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57959
57960         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
57961         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
57962         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
57963         Problems reported by Georg Schwarz for IRIX 5.3.
57964
57965         * gnulib-tool (autoconf_minversion): Take the maximum version number
57966         found, not the minimum.  Problem reported by James Youngman.
57967
57968 2007-01-03  Karl Berry  <karl@gnu.org>
57969
57970         * doc/error.texi: new file, explaining interaction with progname.
57971         * doc/gnulib.texi: include it.  Update copyright.
57972
57973 2007-01-03  Simon Josefsson  <simon@josefsson.org>
57974
57975         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
57976         AC_CANONICAL_HOST, to improve autobuild outputs.
57977
57978 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
57979             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
57980
57981         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
57982         sockets, server sockets, and other file descriptors.  Count errors
57983         to compute the return value.  Reorder the code a bit to be easier
57984         to follow.  Don't set event bits that were not requested (except
57985         POLLERR and POLLHUP).
57986
57987 2007-01-01  Bruno Haible  <bruno@clisp.org>
57988
57989         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
57990
57991 2007-01-03  Jim Meyering  <jim@meyering.net>
57992
57993         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
57994
57995 2007-01-02  Bruno Haible  <bruno@clisp.org>
57996
57997         * modules/settime (Include): Require timespec.h.
57998         * modules/nanosleep (Include): Likewise.
57999
58000 2007-01-01  Bruno Haible  <bruno@clisp.org>
58001
58002         * gnulib-tool (func_emit_copyright_notice): Bump year.
58003         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
58004
58005 2007-01-01  Bruno Haible  <bruno@clisp.org>
58006
58007         Improve support for OpenBSD.
58008         * build-aux/config.rpath (libname_spec): Export.
58009         (library_names_spec): New variable. Export.
58010         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
58011         library_names_spec from the config.rpath output. Locate shared library
58012         through the name pattern in library_names_spec.
58013
58014 2007-01-01  Eric Blake  <ebb9@byu.net>
58015
58016         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
58017
58018 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
58019
58020         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
58021         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
58022         assume the C locale, and avoid an "eval" that could cause trouble.
58023         Problem with SORT reported by Bob Proulx.
58024
58025         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
58026         Define.  Trivial patch from Henning Nielsen Lund, originally
58027         sent to bug-grep@gnu.org today.
58028
58029 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58030
58031         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
58032         struct stat.  Problem reported by Henning Nielsen Lund.
58033         * lib/acl.c: Include acl.h first, to check interface.  Don't
58034         bother to include sys/types.h and sys/stat.h again.
58035
58036 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58037
58038         Import the following change from libc; problem reported by
58039         Sven Verdoolaege.
58040
58041         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
58042
58043         [BZ #1373]
58044         * lib/argp.h: Remove __NTH for __argp_usage inline function.
58045
58046 2006-12-28  Jim Meyering  <jim@meyering.net>
58047
58048         * build-aux/announce-gen: Do not assume that the package
58049         builds any of tar.gz, tar.bz2, and .xdelta files.
58050         Suggestion from Simon Josefsson.
58051
58052 2006-12-28  Simon Josefsson  <simon@josefsson.org>
58053
58054         * modules/announce-gen: New file.
58055
58056 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58057
58058         * lib/mbchar.h: Just include <wctype.h>; the wctype module
58059         handles its gotchas now.
58060         * lib/mbswidth.c: Likewise.
58061         * lib/wcwidth.h: Likewise.
58062         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
58063         and iswcntrl; the wctype module does this stuff now.
58064         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58066         * modules/mbchar (Depends-on): Add wctype.
58067         * modules/mbswidth (Depends-on): Likewise.
58068         * modules/wcwidth (Depends-on): Likewise.
58069
58070 2006-12-27  Eric Blake  <ebb9@byu.net>
58071
58072         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
58073         module uses more than what <wctype.h> is required to provide.
58074
58075 2006-12-26  Eric Blake  <ebb9@byu.net>
58076
58077         * gnulib-tool (sed_extract_prog): Avoid space-tab.
58078
58079 2006-12-26  Eric Blake  <ebb9@byu.net>
58080
58081         * modules/absolute-header: New module.
58082         * modules/fcntl (Depends-on): Depend on it.
58083         * modules/inttypes (Depends-on): Likewise.
58084         * modules/stdint (Depends-on): Likewise.
58085         * modules/sys_stat (Depends-on): Likewise.
58086         * modules/wctype (Depends-on): Likewise.
58087         * MODULES.html.sh (Support for building libraries and
58088         executables): Document it.
58089
58090 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58091
58092         * gnulib-tool (SED): Remove, undoing previous change.
58093         The problem was that it broke coreutils on Solaris, because
58094         "sed --posix" leaked into a makefile.
58095         (sed): New alias, if 'alias' and GNU sed.
58096
58097 2006-12-24  Jim Meyering  <jim@meyering.net>
58098
58099         Work around an fchownat bug in glibc-2.4:
58100         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
58101         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
58102         in spite of the -P option.
58103         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
58104         New macros.
58105         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
58106         * modules/openat (Files): Add lib/fchownat.c.
58107         * lib/openat.c (fchownat): Don't define here.  Move to...
58108         * lib/fchownat.c: ...this new file.
58109
58110 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58111
58112         Fix bug reported by Bruno Haible in
58113         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
58114         where quotearg.c didn't compile on Mac OS X 10.2 because it
58115         lacks <wchar.h> and wint_t.
58116         * lib/wctype_.h (__wctype_wint_t): New type.
58117         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
58118         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
58119         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
58120         Arg is now of type __wctype_wint_t, not wint_t.
58121         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
58122         substitute HAVE_WINT_T.
58123         * modules/wctype (Files): Add m4/wint_t.m4.
58124         (wctype.h): Substitute HAVE_WINT_T.
58125
58126 2006-12-23  Bruno Haible  <bruno@clisp.org>
58127
58128         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
58129
58130 2006-12-23  Bruno Haible  <bruno@clisp.org>
58131
58132         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
58133         S_ISLNK.
58134         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
58135         mingw.
58136
58137 2006-12-22  Bruno Haible  <bruno@clisp.org>
58138
58139         * lib/copy-file.c: Include acl.h.
58140         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
58141         Close the file descriptors only after being done with copy_acl.
58142         * modules/copy-file (Depends-on): Add acl.
58143
58144 2006-12-22  Bruno Haible  <bruno@clisp.org>
58145
58146         * gnulib-tool (SED): New variable.
58147         Use $SED instead of sed everywhere.
58148
58149 2006-12-22  Bruno Haible  <bruno@clisp.org>
58150
58151         * modules/no-c++: New file.
58152         * m4/no-c++.m4: New file.
58153         * MODULES.html.sh (Support for building libraries and executables):
58154         Add no-c++.
58155
58156 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
58157
58158         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58159         Include <limits.h>, and use its INT_MAX to rewrite the
58160         j loop so that it does not overflow 'int'.  Problem reported by
58161         Ralf Wildenhues in
58162         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
58163         Play it safe by shifting left by 1 rather than multiplying by 2,
58164         as GCC is less likely to optimize this away when the value
58165         is signed (when it assumes overflow leads to undefined behavior).
58166         Also, don't assume time_t uses two's complement.
58167
58168 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
58169
58170         * MODULES.html.sh: New module wctype.
58171         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
58172         * lib/fnmatch.c: Don't bother to include <wchar.h> before
58173         <wctype.h>, since the new wctype module should fix this.
58174         * lib/quotearg.c: Include <wctype.h> unconditionally, since
58175         the wctype module should arrange for it.
58176         * lib/regex_internal.h: Likewise.
58177         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
58178         since the wctype module should handle this now.
58179         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
58180         * modules/fnmatch (Depends-on): Add wctype.
58181         * modules/quotearg (Depends-on): Likewise.
58182         * modules/regex (Depends-on): Likewise.
58183
58184 2006-12-19  Bruno Haible  <bruno@clisp.org>
58185
58186         * lib/strdup.h [C++]: Wrap definitions in extern "C".
58187         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
58188
58189 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58190
58191         * modules/savewd (Depends-on): Fix dependency on fcntl.
58192
58193 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58194
58195         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
58196         conforms to C99, rather than relying on the user's environment
58197         setting of STDINT_H.
58198
58199 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58200         and Eric Blake  <ebb9@byu.net>
58201
58202         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
58203         This is more consistent with the other defines here.
58204         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
58205         Port to z/OS.  Problem reported by Paul Gilmartin.
58206         Change local vars to use gl_ prefix rather than ac_.
58207         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
58208         with other defines.
58209         * modules/double-slash-root: New module.
58210         * modules/dirname (Files): Remove m4/double-slash-root.m4.
58211         (Depends-on): Add double-slash-root.
58212         * MODULES.html.sh (File system functions): Mention new module.
58213
58214 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
58215
58216         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
58217         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
58218         This is for the benefit of gzip, which doesn't do i18n.
58219
58220 2006-12-12  Jim Meyering  <jim@meyering.net>
58221
58222         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
58223         Reported by Andreas Schwab <schwab@suse.de>.
58224
58225 2006-12-12  Bruno Haible  <bruno@clisp.org>
58226
58227         Merge these changes.
58228         2006-09-05  Bruno Haible  <bruno@clisp.org>
58229         * lib/iconvme.c (iconv_string): No need to save and restore errno when
58230         iconv_alloc succeeded.
58231         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
58232         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
58233         test for " && dest " at the end - dest is always != NULL there. Call
58234         iconv with 4xNULL arguments initially, to reset the state. Call iconv
58235         with 2xNULL arguments, also to flush the state storage. Handle the
58236         IRIX iconv behaviour. Realloc the final result, to throw away unused
58237         memory.
58238
58239 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
58240
58241         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
58242         and fchmodat unconditionally, since glibc 2.4 has them.
58243         Problem reported by Arkadiusz Miskiewicz.
58244
58245 2006-12-10  Bruno Haible  <bruno@clisp.org>
58246
58247         * gnulib-tool (func_import): Show the include files only for those
58248         modules that are copied and specified.
58249         Reported by Karl Berry.
58250
58251 2006-12-08  Jim Meyering  <jim@meyering.net>
58252
58253         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
58254         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
58255
58256         * build-aux/announce-gen: Add two new options, both optional:
58257         --bootstrap-tools=TOOL_LIST
58258               a comma-separated list of tools, e.g.,
58259               autoconf,automake,bison,gnulib
58260         --gnulib-snapshot-date=DATE
58261               if gnulib is in the bootstrap tool list,
58262               then report this as the snapshot date.
58263               If not specified, use the current date/time.
58264               If you specify a date here, be sure it's UTC.
58265
58266 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58267
58268         * tests/test-argp-2.sh: Fix test to match actual output.
58269         (func_compare): Fix sed script to be portable.
58270
58271 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
58272
58273         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
58274         workaround for this case.  It is not autoconfigured now; offhand
58275         it's hard to see how to autoconfigure it.
58276
58277 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58278
58279         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
58280         a directory that is about to be chowned.  Such a directory's
58281         initial file permissions should permit the owner only and this
58282         should not be changed until after the chown, since the group and
58283         other bits would be incorrect if they granted permission before
58284         the chown.
58285
58286         Fix porting problem for iswctype reported by Georg Schwarz in:
58287         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
58288         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
58289         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
58290         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
58291         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58292
58293 2006-12-03  Jim Meyering  <jim@meyering.net>
58294
58295         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
58296         p->fts_statp may not yet be defined.
58297         (fts_read): Instead, set it in the caller, once p->fts_statp is
58298         sure to be defined, and corresponds to a top-level directory.
58299         This bug made du -x fail.  Here's the coreutils test case:
58300         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
58301         Reported by Mike Frysinger.
58302
58303 2006-12-01  Jim Meyering  <jim@meyering.net>
58304
58305         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
58306         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
58307         Reported by Simon Josefsson.
58308
58309 2006-11-30  Jim Meyering  <jim@meyering.net>
58310
58311         * m4/warning.m4: Use the all-permissive copyright notice
58312         recommended by RMS (rather than LGPL).
58313         * m4/vararrays.m4: Likewise.
58314         * m4/flexmember.m4: Likewise.
58315
58316 2006-11-29  Bruno Haible  <bruno@clisp.org>
58317
58318         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58319         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
58320         using +=.
58321         Reported by Simon Josefsson <simon@josefsson.org>.
58322
58323 2006-11-28  James Youngman <jay@gnu.org>
58324
58325         * README: Advise users that they might find the bug-gnulib@gnu.org
58326         and autotools-announce@gnu.org mailing lists useful.
58327
58328 2006-11-28  Bruno Haible  <bruno@clisp.org>
58329
58330         * m4/ptrdiff_max.m4: Remove file.
58331
58332 2006-11-21  Bruno Haible  <bruno@clisp.org>
58333
58334         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
58335         _AC_COMPUTE_INT.
58336         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58337         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
58338         _AC_COMPUTE_INT.
58339         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58340         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
58341         _AC_COMPUTE_INT.
58342         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58343
58344 2006-11-28  Jim Meyering  <jim@meyering.net>
58345
58346         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
58347         warning from "gcc -Wshadow" about shadowing the builtin.
58348
58349 2006-11-27  Bruno Haible  <bruno@clisp.org>
58350
58351         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
58352         _AC_COMPUTE_INT.
58353         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
58354
58355 2006-11-27  Bruno Haible  <bruno@clisp.org>
58356             Paul Eggert  <eggert@cs.ucla.edu>
58357
58358         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
58359
58360 2006-11-26  Bruno Haible  <bruno@clisp.org>
58361
58362         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58363         noinst_LTLIBRARIES.
58364
58365 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
58366             Bruno Haible  <bruno@clisp.org>
58367
58368         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
58369         if compiling with "gcc -ansi".
58370
58371 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
58372
58373         Fix some incompatibilities with gcc -ansi -pedantic.
58374         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
58375         if compiling pedantically with GCC, unless it's C99 or later.
58376         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
58377         it mishandles gcc -ansi -pedantic as well.
58378         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
58379         if gcc -pedantic.
58380         * lib/regexec.c (check_node_accept_bytes): Don't use auto
58381         initializers for struct if -pedantic, unless it's C99 or later.
58382
58383 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
58384
58385         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
58386         Don't close an fd more than once. Identical atimes indicate
58387         success, not failure.
58388
58389 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
58390
58391         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
58392
58393 2006-11-23  Jim Meyering  <jim@meyering.net>
58394
58395         * build-aux/announce-gen: New file.  From coreutils.
58396
58397 2006-11-22  Jim Meyering  <jim@meyering.net>
58398
58399         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
58400         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
58401         (fts_read): Use a temporary to narrow the overused st_size member
58402         before using it in a switch statement.  Reported by Matthew Woehlke.
58403
58404         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
58405         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58406
58407 2006-11-20  Bruno Haible  <bruno@clisp.org>
58408
58409         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
58410         changequote instead of pairs of brackets.
58411         Reported by Andreas Schwab <schwab@suse.de>.
58412
58413 2006-11-21  Jim Meyering  <jim@meyering.net>
58414
58415         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
58416         so as to remain compatible with older compilers.
58417         Patch from Michael Deutschmann.
58418
58419 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58420
58421         * MODULES.html.sh (File system functions): Add openat.
58422
58423         * lib/openat.h (rpl_fstatat): New macro, if
58424         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
58425         (fstatat): Define to rpl_fstatat under the same conditions,
58426         unless COMPILING_FSTATAT.
58427         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
58428         seems to have the bug.
58429         * lib/fstatat.c: New file.
58430         * modules/openat (Files): Add it.
58431
58432 2006-11-20  Bruno Haible  <bruno@clisp.org>
58433
58434         * Makefile: New file.
58435
58436 2006-11-20  Jim Meyering  <jim@meyering.net>
58437
58438         The beginnings of syntax-related checks for gnulib.
58439         * lib/Makefile: New file.
58440         * lib/t-idcache: New script.  Ensure that the two halves of
58441         idcache.c stay in sync.
58442
58443         * lib/idcache.c: Adjust comments in user- and group- portions to
58444         be more accurate, and to be consistent with one another.
58445
58446 2006-11-20  Jim Meyering  <jim@meyering.net>
58447
58448         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
58449         continue using the flexible array member (thus, this module performs
58450         half as many malloc calls), with the addition that...
58451         (getgroup, getuser): Consistently record a non-match via an empty
58452         "name" string, and map an empty string match to a NULL return value.
58453         * modules/idcache (Depends-on): Re-add flexmember.
58454
58455         * lib/idcache.c (getuser): Remove all uses of the register keyword.
58456         (getuidbyname, getgroup, getgidbyname): Likewise.
58457
58458         Use cleaner syntax: NULL rather than 0.
58459         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
58460
58461 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
58462
58463         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
58464         It mishandled the case where the group was missing.
58465         Problem reported by Greg Schafer.
58466         * modules/idcache: Likewise.
58467
58468 2006-11-18  Jim Meyering  <jim@meyering.net>
58469
58470         * check-module (%exempt_header): Add exception for some
58471         conditionally-included headers.
58472
58473         * modules/i-ring (Depends-on): Add verify.
58474         (License): Change to LGPL.
58475
58476 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58477
58478         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
58479         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
58480         and inttostr.h.  Use snprintf rather than uinttostr, so that
58481         LGPLed code doesn't depend on GPLed.
58482
58483 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
58484
58485         * modules/inline (License): Change from GPL to LGPL.
58486
58487 2006-11-17  Jim Meyering  <jim@meyering.net>
58488
58489         * modules/d-type (License): Switch to LGPL.
58490
58491 2006-11-15  Bruno Haible  <bruno@clisp.org>
58492
58493         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
58494
58495 2006-11-15  Eric Blake  <ebb9@byu.net>
58496
58497         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
58498         the module dependency.
58499
58500 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58501             Bruno Haible  <bruno@clisp.org>
58502
58503         * gnulib-tool (func_create_testdir): Add license consistency check.
58504
58505 2006-11-15  Eric Blake  <ebb9@byu.net>
58506
58507         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
58508         random "(cached)" in configure output.
58509
58510 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58511
58512         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
58513         test for conforming inttypes.h is both announced and cached.
58514
58515         * MODULES.html.sh (seen_modules, seen_files): New variables.
58516         (func_module): Rewrite to use a few less gnulib-tool and sed
58517         invocations.  Avoid a couple of quadratic algorithms for ...
58518         (missed_modules, missed_files): ... these, with ...
58519         (func_append, func_tmpdir): ... these new functions, from
58520         gnulib-tool.  Analogously, install traps for cleanup.
58521
58522         * tests/test-gc.c (main): Remove unused variables.
58523         * tests/test-read-file.c: Include stdlib.h, for 'free'.
58524
58525 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
58526
58527         * modules/inttostr (License): Change to LGPL.
58528
58529 2006-11-14  Eric Blake  <ebb9@byu.net>
58530
58531         * modules/tempname (License): Change to LGPL.
58532
58533 2006-11-14  Eric Blake  <ebb9@byu.net>
58534
58535         * doc/functions.texi (Function Portability): *printf functions on
58536         Cygwin now understand all POSIX size specifiers.
58537
58538 2006-11-14  Bruno Haible  <bruno@clisp.org>
58539
58540         * modules/c-ctype (License): Change to LGPL.
58541
58542 2006-11-12  Bruno Haible  <bruno@clisp.org>
58543
58544         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58545         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
58546         for GNOME libraries, for which the include files are installed in
58547         subdirectories of $prefix/include.
58548
58549 2006-11-12  Bruno Haible  <bruno@clisp.org>
58550
58551         * m4/lib-link.m4: Require at least autoconf-2.54.
58552         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
58553         name to underscores for the --with option.
58554
58555 2006-11-13  Bruno Haible  <bruno@clisp.org>
58556
58557         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
58558         the tests directory.
58559         Reported by Ralf Wildenhues.
58560
58561 2006-11-13  Bruno Haible  <bruno@clisp.org>
58562
58563         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
58564         (func_emit_initmacro_end): Undo the override here.
58565         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
58566         Works around the famous automake error in coreutils.
58567
58568 2006-11-13  Eric Blake  <ebb9@byu.net>
58569
58570         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
58571         element, not its node.
58572
58573 2006-11-12  Bruno Haible  <bruno@clisp.org>
58574
58575         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
58576         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
58577
58578 2006-11-12  Bruno Haible  <bruno@clisp.org>
58579
58580         * gnulib-tool: New option --local-symlink.
58581         (func_usage): Document it.
58582         (lsymbolic): New variable.
58583         (func_import, func_create_testdir): If --symlink was not specified,
58584         test whether --local-symlink was specified and the file comes from
58585         the local_gnulib_dir.
58586
58587 2006-11-12  Bruno Haible  <bruno@clisp.org>
58588
58589         * gnulib-tool (func_ln): New function.
58590         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
58591
58592 2006-11-12  Bruno Haible  <bruno@clisp.org>
58593
58594         Finish support for source files in subdirectories.
58595         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
58596         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
58597         AUTOMAKE_OPTIONS.
58598         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
58599
58600 2006-11-12  Bruno Haible  <bruno@clisp.org>
58601
58602         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58603         EXTRA_lib_SOURCES augmentation.
58604         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
58605
58606 2006-11-12  Jim Meyering  <jim@meyering.net>
58607
58608         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
58609         file descriptors.  This also averts a failure on systems with
58610         native openat support when a traversed directory lacks "x" access.
58611         * lib/fts_.h: Include "i-ring.h"
58612         (struct FTS) [fts_fd_ring]: New member.
58613         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
58614         (FCHDIR): Add parentheses.
58615         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
58616         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
58617         When descending, rather than simply closing the previous
58618         fts_cwd_fd value, push that file descriptor onto the ring.
58619         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
58620         (fts_open): Initialize the new fd_ring member.
58621         (fts_close): Clear the ring.
58622         (fts_safe_changedir): When possible, use our new fd_ring to skip
58623         the diropen and fstat and dev/ino comparison that would normally
58624         accompany a virtual `chdir ("..")'.
58625
58626         * modules/fts (Depends-on): Add i-ring.
58627         * modules/i-ring: New module.
58628         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
58629         * m4/i-ring.m4: New file.
58630
58631 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58632
58633         * gnulib-tool (func_create_testdir): Fix replacement of
58634         `build-aux' in configure.ac.  Run autotools in gltests
58635         subdirectory.
58636         (func_create_testdir, func_create_megatestdir, test): There is
58637         no need for '--force' in most autotool invocations in a new
58638         tree.  Actually fail the whole test if any of the tools, or the
58639         configure or make stages fail.
58640
58641         Sync from Automake.
58642         * build-aux/gnupload: Revert last change.  Add pointer to upload
58643         instructions of the GNU Maintenance Instructions.
58644         Suggestion by Karl Berry.
58645
58646 2006-11-10  Jim Meyering  <jim@meyering.net>
58647
58648         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
58649
58650 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58651
58652         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
58653         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
58654         (bind_textdomain_codeset) [! ENABLE_NLS]:
58655         Evaluate all the arguments.  That way, callers get compatible behavior
58656         if the arguments have side effects.  Also, it avoids some GCC
58657         diagnostics in some cases; Joel E. Denny reported problems when Bison
58658         was configured with --enable-gcc-warnigs.
58659
58660 2006-11-10  Jim Meyering  <jim@meyering.net>
58661
58662         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
58663         relevant options in CFLAGS (like -O, -fno-inline) are taken into
58664         account.
58665
58666 2006-11-10  Jim Meyering  <jim@meyering.net>
58667
58668         * modules/inline: New file/module.
58669         * modules/xalloc (Files): Remove m4/inline.m4.
58670         (Depends-on): Add inline, instead.
58671         * modules/oset: Likewise.
58672         * modules/list: Likewise.
58673
58674 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
58675
58676         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
58677         Problem reported by Matthew Woehlke.
58678
58679 2006-11-09  Bruno Haible  <bruno@clisp.org>
58680
58681         * lib/tempname.c (gen_tempname): Remove variant that invokes
58682         __gen_tempname.
58683         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
58684         __gen_tempname.
58685
58686 2006-11-08  Bruno Haible  <bruno@clisp.org>
58687
58688         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
58689         to 'yes' instead of 'cross-compiling'.
58690
58691 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
58692
58693         * lib/quotearg.h (quotearg_free): New decl.
58694         * lib/quotearg.c (quotearg_free): New function.
58695         (slot0, nslots, slotvec0, slotvec):
58696         Now file-scope so that quotearg_free can get at them.
58697
58698 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58699
58700         Sync from Automake.
58701         * build-aux/gnupload: Add missing 'gnu' to example URL.
58702         Report by Karl Berry.
58703
58704 2006-11-08  Bruno Haible  <bruno@clisp.org>
58705
58706         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
58707         Suggested by Paul Eggert.
58708
58709 2006-11-08  Jim Meyering  <jim@meyering.net>
58710
58711         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
58712         It's already included if !_LIBC.
58713         (fts_safe_changedir): Add a comment.
58714
58715 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58716
58717         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
58718         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
58719         Matthew Woehlke.
58720
58721         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
58722         definitions up, to avoid colliding with change below.
58723         (static_inline) [HAVE_INLINE]: New macro.
58724         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
58725         Provide extern decls when !HAVE_INLINE.  Do not define unless
58726         static_inline is defined, either by us or by xmalloc.c.  Use
58727         static_inline rather than static inline.
58728         (XCALLOC): Optimize sizeof(T) = 1 case.
58729         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
58730
58731 2006-11-07  Bruno Haible  <bruno@clisp.org>
58732
58733         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
58734         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
58735         AC_C_INLINE.
58736         * modules/xalloc (Files): Add m4/inline.m4.
58737
58738 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58739
58740         * README: Fix typo.
58741         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
58742         (Miscellanous Notes): ...from this.
58743
58744 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
58745
58746         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
58747         Mention that offsetof should be used instead of sizeof.
58748         From Bruno Haible.
58749
58750 2006-11-07  Bruno Haible  <bruno@clisp.org>
58751
58752         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
58753
58754 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58755
58756         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58757         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
58758         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58759         (gl_tree_add_before, gl_tree_add_after):
58760         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
58761         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
58762         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58763         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
58764         (gl_linked_add_after, gl_linked_add_at): Likewise.
58765         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
58766         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
58767         (gl_tree_add_before, gl_tree_add_after): Likewise.
58768         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
58769         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
58770         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58771
58772 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58773
58774         * lib/gl_oset.h: Use C comment style, not C++ comment style.
58775
58776 2006-11-06  Bruno Haible  <bruno@clisp.org>
58777
58778         * m4/inline.m4: New file.
58779         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
58780         * modules/list (Files): Add m4/inline.m4.
58781         * modules/oset (Files): Likewise.
58782
58783 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
58784
58785         * lib/idcache.c: Include <stddef.h>, for offsetof.
58786         (struct userid.name): Change from char * to a flexible array member.
58787         All uses changed.
58788         * modules/idcache (Depends-on): Add flexmember.
58789
58790         * MODULES.html.sh (Core language properties): New module flexmember.
58791         * modules/flexmember, m4/flexmember.m4: New files.
58792
58793         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
58794         inline functions that are identical with the old xnmalloc_inline,
58795         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
58796         that we can avoid some unnecessary integer multiplications and
58797         divisions in the common case where the element size is known at
58798         compile time.
58799         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
58800         needed.
58801         (xnboundedmalloc): Remove.
58802         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
58803         arguments, for consistency with rest of this header.
58804         (xcharalloc): Rewrite using XNMALLOC.
58805         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
58806         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
58807         versions have been moved to lib/xalloc.h and renamed to be the
58808         non-*_inline versions.
58809         (xmalloc, xrealloc): Implement without reference to the xnmalloc
58810         and xnrealloc functions, since those functions are now inline and
58811         now call us.
58812         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
58813         renaming described above.
58814         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
58815         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
58816         captures the dependency in AC_C_INLINE.
58817
58818         New module canonicalize-lgpl, proposed by Charles Wilson in
58819         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
58820         with a few small changes afterwards.
58821         * MODULES.html.sh (File system functions): New module
58822         canonicalize-lgpl.
58823         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
58824         and canonicalize_file_name.
58825         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
58826         * modules/canonicalize-lgpl: New files.
58827
58828 2006-11-05  Bruno Haible  <bruno@clisp.org>
58829
58830         * gnulib-tool (func_import, func_create_testdir): Create directories
58831         also for files in subdirectories of lib/.
58832
58833 2006-11-05  Bruno Haible  <bruno@clisp.org>
58834
58835         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
58836         ANSI C compliant.
58837
58838 2006-11-03  Bruno Haible  <bruno@clisp.org>
58839
58840         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
58841         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
58842         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
58843         (xnboundedmalloc): New inline function.
58844         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
58845         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
58846         xmalloc.
58847         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
58848         xmalloc.
58849         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
58850         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
58851         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
58852         xmalloc.
58853         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58854         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
58855         xmalloc.
58856         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
58857         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58858         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
58859         xmalloc.
58860         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
58861         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
58862         gl_tree_add_after): Use XMALLOC instead of xmalloc.
58863         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
58864         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
58865         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
58866         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
58867
58868 2006-11-03  Bruno Haible  <bruno@clisp.org>
58869
58870         * lib/c-ctype.h [C++]: Define functions without name mangling.
58871         * lib/fwriteerror.h [C++]: Likewise.
58872         * lib/gcd.h [C++]: Likewise.
58873         * lib/linebreak.h [C++]: Likewise.
58874
58875 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
58876
58877         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
58878         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
58879         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
58880         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58881         Check for functions and headers just once.
58882         Check for declaration of canonicalize_file_name.
58883         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
58884
58885 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
58886
58887         * gnulib-tool (func_import): Fix typo in actioncmd.
58888
58889 2006-11-02  Bruno Haible  <bruno@clisp.org>
58890
58891         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
58892         newline sequence in the Makefile.am snippet as a space, like "make"
58893         does.
58894         Reported by Roger Persson <perrog@gmail.com>.
58895
58896 2006-11-01  Bruno Haible  <bruno@clisp.org>
58897
58898         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
58899         already declared in <string.h>.
58900         * lib/strcase.h (strncasecmp): Don't declare it if yes.
58901
58902 2006-11-01  Bruno Haible  <bruno@clisp.org>
58903
58904         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
58905         * lib/strcase.h: Include <string.h>.
58906         (strcasecmp): Define to rpl_strcasecmp here.
58907
58908 2006-11-01  Bruno Haible  <bruno@clisp.org>
58909
58910         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
58911
58912 2006-11-01  Eric Blake  <ebb9@byu.net>
58913
58914         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
58915
58916         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
58917
58918 2006-10-29  Bruno Haible  <bruno@clisp.org>
58919
58920         Make it compile in C++ mode.
58921         * lib/full-write.c (full_rw): Add a cast.
58922
58923 2006-11-01  Bruno Haible  <bruno@clisp.org>
58924
58925         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
58926         be POSIX compliant.
58927         Reported by Roger Persson <perrog@gmail.com>.
58928
58929 2006-11-01  Eric Blake  <ebb9@byu.net>
58930
58931         * lib/getopt_.h: Fix comments.
58932
58933 2006-10-31  Eric Blake  <ebb9@byu.net>
58934
58935         * modules/tmpdir (Depends-on): Add sys_stat.
58936         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
58937         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
58938         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
58939         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
58940         tempname.
58941
58942 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
58943
58944         Avoid some C++ diagnostics reported by Bruno Haible.
58945         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
58946         xmalloc.
58947         (quotearg_alloc): Use xcharalloc rather than xmalloc.
58948         (struct slotvec): Move to top level.
58949         (quotearg_n_options): Rewrite to avoid xmalloc.
58950         * lib/xalloc.h (xcharalloc): New function.
58951         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
58952         [defined __cplusplus]: Add function template that provides result
58953         type propagation.  This part of the change is from Bruno Haible.
58954
58955 2006-10-29  Bruno Haible  <bruno@clisp.org>
58956
58957         Make it compile in C++ mode.
58958         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
58959         * lib/strnlen1.c (strnlen1): Cast memchr result.
58960         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
58961         * lib/clean-temp.c (string_equals, string_hash): Add casts.
58962         (create_temp_dir): Rename local variable 'template'.
58963         (compile_csharp_using_sscli): Add cast.
58964         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
58965         * lib/findprog.c (find_in_path): Likewise.
58966         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
58967         * lib/wait-process.c (register_slave_subprocess): Likewise.
58968
58969 2006-10-22  Bruno Haible  <bruno@clisp.org>
58970
58971         * modules/tsearch: New file.
58972         * lib/tsearch.h: New file.
58973         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
58974         * m4/tsearch.m4: New file.
58975         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
58976
58977 2006-10-29  Eric Blake  <ebb9@byu.net>
58978
58979         * lib/arcfour.c: Assume config.h.
58980         * lib/arctwo.c: Likewise.
58981         * lib/base64.c: Likewise.
58982         * lib/check-version.c: Likewise.
58983         * lib/crc.c: Likewise.
58984         * lib/des.c: Likewise.
58985         * lib/gc-gnulib.c: Likewise.
58986         * lib/gc-libgcrypt.c: Likewise.
58987         * lib/gc-pbkdf2-sha1.c: Likewise.
58988         * lib/getaddrinfo.c: Likewise.
58989         * lib/getdelim.c: Likewise.
58990         * lib/getline.c: Likewise.
58991         * lib/hmac-md5.c: Likewise.
58992         * lib/hmac-sha1.c: Likewise.
58993         * lib/iconvme.c: Likewise.
58994         * lib/md2.c: Likewise.
58995         * lib/md4.c: Likewise.
58996         * lib/memxor.c: Likewise.
58997         * lib/read-file.c: Likewise.
58998         * lib/readline.c: Likewise.
58999         * lib/rijndael-alg-fst.c: Likewise.
59000         * lib/rijndael-api-fst.c: Likewise.
59001         * lib/xgetdomainname.c: Likewise.
59002
59003 2006-10-28  Eric Blake  <ebb9@byu.net>
59004
59005         * lib/xstrndup.c: Assume config.h.
59006
59007 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
59008
59009         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
59010         stat-macros.h is now for our own macros, whereas stat_h is for
59011         macros in the <sys/stat.h> name space.
59012         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
59013         (STAT_MACROS_H): Remove.
59014         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
59015         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
59016         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
59017         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
59018         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
59019         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
59020         Move these macros to ...
59021         * lib/stat_.h: here.  Don't include stat-macros.h.
59022         * lib/canonicalize.c: Don't include stat-macros.h.
59023         * lib/chown.c: Likewise.
59024         * lib/euidaccess.c: Likewise.
59025         * lib/file-type.c: Likewise.
59026         * lib/filemode.c: Likewise.
59027         * lib/glob.c: Likewise.
59028         * lib/isapipe.c: Likewise.
59029         * lib/lchown.c: Likewise.
59030         * lib/lstat.c: Likewise.
59031         * lib/mkdir-p.c: Likewise.
59032         * lib/rmdir.c: Likewise.
59033         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
59034         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
59035         unless mkdir isn't declared, to speed up 'configure'.
59036         Always create sys/stat.h, since it's unlikely any real sys/stat.h
59037         would define all the S_* symbols.
59038         * modules/canonicalize (Depends-on):
59039         Depend on sys_stat, not stat-macros.
59040         * modules/chown: Likewise.
59041         * modules/euidaccess: Likewise.
59042         * modules/filemode: Likewise.
59043         * modules/file-type: Likewise.
59044         * modules/glob: Likewise.
59045         * modules/isapipe: Likewise.
59046         * modules/lchown: Likewise.
59047         * modules/lstat: Likewise.
59048         * modules/mkancesdirs: Likewise.
59049         * modules/rmdir: Likewise.
59050         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
59051         * modules/modechange: Likewise.
59052         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
59053         (configure.ac): Remove gl_STAT_MACROS.
59054         * modules/sys_stat (Depends-on): Remove stat-macros.
59055
59056 2006-10-27  Bruno Haible  <bruno@clisp.org>
59057
59058         * m4/signed.m4: Remove file.
59059         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
59060         invocation.
59061         * modules/vasnprintf (Files): Remove m4/signed.m4.
59062
59063 2006-10-27  Bruno Haible  <bruno@clisp.org>
59064
59065         Update to GNU gettext 0.16.
59066         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
59067         m4/inttypes-h.m4, m4/signed.m4.
59068         * m4/gettext.m4: Update to GNU gettext 0.16.
59069         * m4/intl.m4: New file, from GNU gettext.
59070         * m4/intldir.m4: New file, from GNU gettext.
59071         * config/srclist.txt: Update
59072
59073 2006-10-27  Eric Blake  <ebb9@byu.net>
59074
59075         * MODULES.html.sh: Document tempname.
59076         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
59077         dependencies.
59078         (Files): Move lib/tempname.c...
59079         * modules/tempname: ...to this new module.
59080         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
59081         (gl_PREREQ_TEMPNAME): Move...
59082         * m4/tempname.m4: ...to this new file.
59083         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
59084         * modules/sys_stat (Depends-on): Add stat-macros.
59085         * lib/stat_.h (includes): Pick up stat macros.
59086         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
59087         if stat macros are broken.
59088         * lib/tempname.c (includes): No need to include "stat-macros.h".
59089         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
59090         (direxists, __path_search) [!_LIBC]: Don't compile these in
59091         gnulib; the tmpdir module covers that.
59092         * lib/tempname.h: New file.
59093
59094 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
59095
59096         * COPYING: Explain how gnulib-tool converts licence headers.
59097         Almost all wording by Eric Blake.
59098
59099 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
59100
59101         * lib/mbchar.h (is_basic_table): Make read-only.
59102         * lib/mbchar.c (is_basic_table): Likewise.
59103         Reported by John Darrington.
59104
59105 2006-10-25  Bruno Haible  <bruno@clisp.org>
59106
59107         * lib/progname.h (set_program_name): Undefine before defining.
59108
59109 2006-10-25  Bruno Haible  <bruno@clisp.org>
59110
59111         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
59112         false for non-gcc C++ compilers.
59113         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59114
59115 2006-10-24  Bruno Haible  <bruno@clisp.org>
59116
59117         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
59118         iconv implementations like Irix iconv.
59119
59120 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59121
59122         * modules/vararrays: New file.
59123         * m4/vararrays.m4: New file, taken from diffutils.
59124         * MODULES.html.sh: New module vararrays.
59125
59126 2006-10-24  Karl Berry  <karl@gnu.org>
59127
59128         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
59129         Don't call GNU Unix.
59130
59131 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59132
59133         * users.txt: Add Libtool.
59134
59135         Sync from Libtool:
59136
59137         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59138
59139         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
59140         to gnulib's policy of including config.h unconditionally.
59141
59142 2006-10-24  Bruno Haible  <bruno@clisp.org>
59143
59144         * modules/wcwidth (Files): Add m4/wint_t.m4.
59145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
59146         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
59147
59148 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59149
59150         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
59151         to pacify GCC with some -W flags enabled.  Problem reported by
59152         Bruno Haible.
59153
59154 2006-10-24  Jim Meyering  <jim@meyering.net>
59155
59156         * MODULES.html.sh: Remove uinttostr.  It's not a module.
59157         Reported by Karl Berry.
59158
59159 2006-10-23  Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
59162
59163 2006-10-24  Bruno Haible  <bruno@clisp.org>
59164
59165         * lib/gl_list.h: Use C comment style, not C++ comment style.
59166
59167 2006-10-23  Eric Blake  <ebb9@byu.net>
59168
59169         * lib/getaddrinfo.c (includes): Add missing include.
59170
59171 2006-10-23  Bruno Haible  <bruno@clisp.org>
59172             Paul Eggert  <eggert@cs.ucla.edu>
59173
59174         Ability to rename obstack_free.
59175         * lib/obstack.h (__obstack_free): New macro. Declare instead of
59176         obstack_free.
59177         (obstack_free): Invoke the __obstack_free macro.
59178         * lib/obstack.c (obstack_free): Use __obstack_free macro.
59179
59180 2006-10-23  Bruno Haible  <bruno@clisp.org>
59181             Paul Eggert  <eggert@cs.ucla.edu>
59182
59183         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
59184         __argc, __argv from the declaration. (They are defined as macros on
59185         mingw.)
59186
59187 2006-10-22  Bruno Haible  <bruno@clisp.org>
59188
59189         * doc/gnulib-intro.texi: New file.
59190         * doc/gnulib.texi: Include it.
59191
59192 2006-10-21  Bruno Haible  <bruno@clisp.org>
59193
59194         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
59195         "Introduction", "Miscellanous Notes", "Particular Modules".
59196
59197 2006-10-21  Bruno Haible  <bruno@clisp.org>
59198
59199         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59200         Change mostlyclean-local rule to avoid sh syntax error from bash
59201         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
59202
59203 2006-10-23  Jim Meyering  <jim@meyering.net>
59204
59205         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
59206         in place of snprintf.
59207
59208         * modules/inttostr (Files): Add lib/uinttostr.c.
59209         * lib/uinttostr.c (inttostr): New file/function.
59210         * lib/inttostr.h (uinttostr): Declare.
59211         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
59212         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
59213         Add uinttostr.
59214         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
59215
59216 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59217
59218         * lib/canonicalize.c (ELOOP): Define if not already defined.
59219         Problem reported by Bruno Haible in
59220         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
59221
59222 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
59223
59224         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
59225         Problem reported by Perry Smith and Ville Laurikari.
59226
59227         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
59228         uses.
59229
59230 2006-10-19  Bruno Haible  <bruno@clisp.org>
59231
59232         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
59233         for mingw.
59234
59235 2006-10-19  Bruno Haible  <bruno@clisp.org>
59236
59237         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
59238         Needed for mingw.
59239
59240 2006-10-19  Bruno Haible  <bruno@clisp.org>
59241
59242         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
59243
59244 2006-10-19  Bruno Haible  <bruno@clisp.org>
59245
59246         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
59247         it.
59248
59249 2006-10-19  Bruno Haible  <bruno@clisp.org>
59250
59251         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
59252         invocation.
59253
59254 2006-10-19  Bruno Haible  <bruno@clisp.org>
59255
59256         * gnulib-tool (func_create_testdir): Don't include ftruncate and
59257         mountlist by default.
59258
59259 2006-10-16  Bruno Haible  <bruno@clisp.org>
59260
59261         * lib/c-strstr.c: Include c-strstr.h.
59262
59263 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
59264
59265         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
59266         in a slash.
59267
59268 2006-10-18  Bruno Haible  <bruno@clisp.org>
59269
59270         * lib/lock.h [C++]: Wrap definitions in extern "C".
59271
59272 2006-10-18  Bruno Haible  <bruno@clisp.org>
59273
59274         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
59275         gl_LIBOBJS list.
59276
59277 2006-10-18  Bruno Haible  <bruno@clisp.org>
59278
59279         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
59280
59281 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
59282
59283         * lib/xstrtol.h: Include gettext.h.
59284         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
59285         Problem reported by Eric Blake.
59286         * modules/xstrtol (Depends-on): Add gettext-h.
59287
59288 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
59289
59290         * lib/strftime.c (advance): New macro.
59291         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
59292         incomplete type, so you can't add 0 to it.  Problem and patch
59293         reported by Eelco Dolstra for dietlibc.
59294
59295 2006-10-18  Jim Meyering  <jim@meyering.net>
59296
59297         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
59298         type for a local, and rename it: s/up/user_proc/.
59299
59300 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59301
59302         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
59303         READ_UTMP_USER_PROCESS.
59304         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
59305
59306 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59307
59308         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
59309         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
59310
59311 2006-10-17  Eric Blake  <ebb9@byu.net>
59312
59313         * lib/sigprocmask.c (sigprocmask): Fix typo.
59314
59315         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
59316
59317         * modules/clean-temp (Makefile.am): Don't add to make output...
59318         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
59319         config.h.
59320
59321 2006-10-17  Bruno Haible  <bruno@clisp.org>
59322
59323         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
59324         differently if DEFAULT_TEXT_DOMAIN is set.
59325
59326 2006-10-16  Bruno Haible  <bruno@clisp.org>
59327
59328         * lib/clean-temp.c: Include fwriteerror.h.
59329
59330 2006-10-16  Bruno Haible  <bruno@clisp.org>
59331
59332         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
59333
59334 2006-10-16  Bruno Haible  <bruno@clisp.org>
59335
59336         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
59337         * lib/sigprocmask.h: Include <sys/types.h>.
59338         (sigset_t): Use the system's definition if present.
59339
59340 2006-10-17  Eric Blake  <ebb9@byu.net>
59341
59342         * lib/xvasprintf.c (includes): Assume config.h.
59343         * lib/xasprintf.c (includes): Likewise.
59344
59345 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59346
59347         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
59348         at least as wide as intmax_t.
59349
59350 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
59351
59352         (Imported from Automake.)
59353         * build-aux/gnupload: Update to version 1.1 of directive file.
59354
59355 2006-10-16  Eric Blake  <ebb9@byu.net>
59356
59357         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
59358         match Automake 1.10a.
59359
59360 2006-10-14  Bruno Haible  <bruno@clisp.org>
59361
59362         * modules/sigprocmask: New file.
59363         * lib/sigprocmask.h: New file.
59364         * lib/sigprocmask.c: New file.
59365         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
59366         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
59367         request sigprocmask.o.
59368         (gl_PREREQ_SIGPROCMASK): New macro.
59369         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
59370         (Depends-on): Add sigprocmask.
59371         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
59372         gt_SIGNALBLOCKING. Test for 'raise' only once.
59373         * lib/fatal-signal.c: Include sigprocmask.h.
59374         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
59375         unblock_fatal_signals): Define always.
59376         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59377         sigprocmask.
59378
59379 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
59380
59381         Sync from Automake.
59382         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
59383         which incorrectly sets the mode of an existing destination
59384         directory.  In some cases the unpatched install-sh could do the
59385         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
59386         system.  We hope this is rare in practice, but it's clearly worth
59387         fixing.  Problem reported by Alex Unleashed in
59388         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
59389         Also, don't bother to check for -m bugs unless we're using -m;
59390         suggested by Stepan Kasal.
59391
59392 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59393
59394         Sync from Automake.
59395         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
59396         `-c' flag, so they appear at the same position as in %FASTDEP%
59397         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
59398         which ignores unknown options only after the first non-option.
59399         Bug report against M4 by Nelson H. F. Beebe.
59400
59401 2006-10-13  Jim Meyering  <jim@meyering.net>
59402
59403         Fix a bug in yesterday's change.
59404         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
59405         p->fts_statp->st_dev would be used uninitialized.
59406         Ensures that we always call fts_stat on the very first entry.
59407         Miklos Szeredi reported that find -xdev stopped working.
59408
59409 2006-10-12  Bruno Haible  <bruno@clisp.org>
59410
59411         * gnulib-tool (func_get_automake_snippet): Append an automatically
59412         computed EXTRA_DIST augmentation.
59413         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
59414         * modules/alloca-opt (Makefile.am): Likewise.
59415         * modules/allocsa (Makefile.am): Likewise.
59416         * modules/arcfour (Makefile.am): Likewise.
59417         * modules/arctwo (Makefile.am): Likewise.
59418         * modules/argmatch (Makefile.am): Likewise.
59419         * modules/argz (Makefile.am): Likewise.
59420         * modules/atexit (Makefile.am): Likewise.
59421         * modules/backupfile (Makefile.am): Likewise.
59422         * modules/byteswap (Makefile.am): Likewise.
59423         * modules/c-strtod (Makefile.am): Likewise.
59424         * modules/c-strtold (Makefile.am): Likewise.
59425         * modules/calloc (Makefile.am): Likewise.
59426         * modules/canon-host (Makefile.am): Likewise.
59427         * modules/canonicalize (Makefile.am): Likewise.
59428         * modules/chdir-long (Makefile.am): Likewise.
59429         * modules/chdir-safer (Makefile.am): Likewise.
59430         * modules/check-version (Makefile.am): Likewise.
59431         * modules/chown (Makefile.am): Likewise.
59432         * modules/cloexec (Makefile.am): Likewise.
59433         * modules/close-stream (Makefile.am): Likewise.
59434         * modules/closeout (Makefile.am): Likewise.
59435         * modules/crc (Makefile.am): Likewise.
59436         * modules/csharpexec (Makefile.am): Likewise.
59437         * modules/cycle-check (Makefile.am): Likewise.
59438         * modules/des (Makefile.am): Likewise.
59439         * modules/dev-ino (Makefile.am): Likewise.
59440         * modules/dirfd (Makefile.am): Likewise.
59441         * modules/dirname (Makefile.am): Likewise.
59442         * modules/dup2 (Makefile.am): Likewise.
59443         * modules/eealloc (Makefile.am): Likewise.
59444         * modules/error (Makefile.am): Likewise.
59445         * modules/euidaccess (Makefile.am): Likewise.
59446         * modules/exclude (Makefile.am): Likewise.
59447         * modules/exitfail (Makefile.am): Likewise.
59448         * modules/fcntl-safer (Makefile.am): Likewise.
59449         * modules/fcntl (Makefile.am): Likewise.
59450         * modules/file-type (Makefile.am): Likewise.
59451         * modules/fileblocks (Makefile.am): Likewise.
59452         * modules/filemode (Makefile.am): Likewise.
59453         * modules/filenamecat (Makefile.am): Likewise.
59454         * modules/fnmatch (Makefile.am): Likewise.
59455         * modules/fopen-safer (Makefile.am): Likewise.
59456         * modules/fpending (Makefile.am): Likewise.
59457         * modules/fprintftime (Makefile.am): Likewise.
59458         * modules/free (Makefile.am): Likewise.
59459         * modules/fsusage (Makefile.am): Likewise.
59460         * modules/ftruncate (Makefile.am): Likewise.
59461         * modules/fts (Makefile.am): Likewise.
59462         * modules/gc-arcfour (Makefile.am): Likewise.
59463         * modules/gc-des (Makefile.am): Likewise.
59464         * modules/gc-hmac-md5 (Makefile.am): Likewise.
59465         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
59466         * modules/gc-md4 (Makefile.am): Likewise.
59467         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59468         * modules/gc-sha1 (Makefile.am): Likewise.
59469         * modules/gc (Makefile.am): Likewise.
59470         * modules/getaddrinfo (Makefile.am): Likewise.
59471         * modules/getcwd (Makefile.am): Likewise.
59472         * modules/getdelim (Makefile.am): Likewise.
59473         * modules/getdomainname (Makefile.am): Likewise.
59474         * modules/getgroups (Makefile.am): Likewise.
59475         * modules/gethostname (Makefile.am): Likewise.
59476         * modules/gethrxtime (Makefile.am): Likewise.
59477         * modules/getline (Makefile.am): Likewise.
59478         * modules/getloadavg (Makefile.am): Likewise.
59479         * modules/getlogin_r (Makefile.am): Likewise.
59480         * modules/getndelim2 (Makefile.am): Likewise.
59481         * modules/getopt (Makefile.am): Likewise.
59482         * modules/getpagesize (Makefile.am): Likewise.
59483         * modules/getpass-gnu (Makefile.am): Likewise.
59484         * modules/getpass (Makefile.am): Likewise.
59485         * modules/getsubopt (Makefile.am): Likewise.
59486         * modules/gettime (Makefile.am): Likewise.
59487         * modules/gettimeofday (Makefile.am): Likewise.
59488         * modules/getugroups (Makefile.am): Likewise.
59489         * modules/getusershell (Makefile.am): Likewise.
59490         * modules/glob (Makefile.am): Likewise.
59491         * modules/group-member (Makefile.am): Likewise.
59492         * modules/hard-locale (Makefile.am): Likewise.
59493         * modules/hash (Makefile.am): Likewise.
59494         * modules/hmac-md5 (Makefile.am): Likewise.
59495         * modules/hmac-sha1 (Makefile.am): Likewise.
59496         * modules/human (Makefile.am): Likewise.
59497         * modules/idcache (Makefile.am): Likewise.
59498         * modules/imaxabs (Makefile.am): Likewise.
59499         * modules/imaxdiv (Makefile.am): Likewise.
59500         * modules/inet_ntop (Makefile.am): Likewise.
59501         * modules/inet_pton (Makefile.am): Likewise.
59502         * modules/intprops (Makefile.am): Likewise.
59503         * modules/inttostr (Makefile.am): Likewise.
59504         * modules/inttypes (Makefile.am): Likewise.
59505         * modules/isapipe (Makefile.am): Likewise.
59506         * modules/javaversion (Makefile.am): Likewise.
59507         * modules/lchmod (Makefile.am): Likewise.
59508         * modules/lchown (Makefile.am): Likewise.
59509         * modules/localcharset (Makefile.am): Likewise.
59510         * modules/long-options (Makefile.am): Likewise.
59511         * modules/lstat (Makefile.am): Likewise.
59512         * modules/malloc (Makefile.am): Likewise.
59513         * modules/mathl (Makefile.am): Likewise.
59514         * modules/mbchar (Makefile.am): Likewise.
59515         * modules/md2 (Makefile.am): Likewise.
59516         * modules/md4 (Makefile.am): Likewise.
59517         * modules/md5 (Makefile.am): Likewise.
59518         * modules/memcasecmp (Makefile.am): Likewise.
59519         * modules/memchr (Makefile.am): Likewise.
59520         * modules/memcmp (Makefile.am): Likewise.
59521         * modules/memcoll (Makefile.am): Likewise.
59522         * modules/memcpy (Makefile.am): Likewise.
59523         * modules/memmem (Makefile.am): Likewise.
59524         * modules/memmove (Makefile.am): Likewise.
59525         * modules/mempcpy (Makefile.am): Likewise.
59526         * modules/memrchr (Makefile.am): Likewise.
59527         * modules/memset (Makefile.am): Likewise.
59528         * modules/memxor (Makefile.am): Likewise.
59529         * modules/mkancesdirs (Makefile.am): Likewise.
59530         * modules/mkdir-p (Makefile.am): Likewise.
59531         * modules/mkdir (Makefile.am): Likewise.
59532         * modules/mkdtemp (Makefile.am): Likewise.
59533         * modules/mkstemp (Makefile.am): Likewise.
59534         * modules/mktime (Makefile.am): Likewise.
59535         * modules/modechange (Makefile.am): Likewise.
59536         * modules/mountlist (Makefile.am): Likewise.
59537         * modules/nanosleep (Makefile.am): Likewise.
59538         * modules/obstack (Makefile.am): Likewise.
59539         * modules/openat (Makefile.am): Likewise.
59540         * modules/pagealign_alloc (Makefile.am): Likewise.
59541         * modules/pathmax (Makefile.am): Likewise.
59542         * modules/physmem (Makefile.am): Likewise.
59543         * modules/poll (Makefile.am): Likewise.
59544         * modules/posixtm (Makefile.am): Likewise.
59545         * modules/posixver (Makefile.am): Likewise.
59546         * modules/putenv (Makefile.am): Likewise.
59547         * modules/quote (Makefile.am): Likewise.
59548         * modules/quotearg (Makefile.am): Likewise.
59549         * modules/raise (Makefile.am): Likewise.
59550         * modules/read-file (Makefile.am): Likewise.
59551         * modules/readline (Makefile.am): Likewise.
59552         * modules/readlink (Makefile.am): Likewise.
59553         * modules/readtokens (Makefile.am): Likewise.
59554         * modules/readutmp (Makefile.am): Likewise.
59555         * modules/realloc (Makefile.am): Likewise.
59556         * modules/regex (Makefile.am): Likewise.
59557         * modules/rename-dest-slash (Makefile.am): Likewise.
59558         * modules/rename (Makefile.am): Likewise.
59559         * modules/rijndael (Makefile.am): Likewise.
59560         * modules/rmdir (Makefile.am): Likewise.
59561         * modules/rpmatch (Makefile.am): Likewise.
59562         * modules/safe-read (Makefile.am): Likewise.
59563         * modules/safe-write (Makefile.am): Likewise.
59564         * modules/same-inode (Makefile.am): Likewise.
59565         * modules/same (Makefile.am): Likewise.
59566         * modules/save-cwd (Makefile.am): Likewise.
59567         * modules/savedir (Makefile.am): Likewise.
59568         * modules/setenv (Makefile.am): Likewise.
59569         * modules/settime (Makefile.am): Likewise.
59570         * modules/sha1 (Makefile.am): Likewise.
59571         * modules/sig2str (Makefile.am): Likewise.
59572         * modules/snprintf (Makefile.am): Likewise.
59573         * modules/stat-macros (Makefile.am): Likewise.
59574         * modules/stat-time (Makefile.am): Likewise.
59575         * modules/stdbool (Makefile.am): Likewise.
59576         * modules/stdint (Makefile.am): Likewise.
59577         * modules/stdlib-safer (Makefile.am): Likewise.
59578         * modules/stpcpy (Makefile.am): Likewise.
59579         * modules/stpncpy (Makefile.am): Likewise.
59580         * modules/strcase (Makefile.am): Likewise.
59581         * modules/strcasestr (Makefile.am): Likewise.
59582         * modules/strchrnul (Makefile.am): Likewise.
59583         * modules/strcspn (Makefile.am): Likewise.
59584         * modules/strdup (Makefile.am): Likewise.
59585         * modules/strerror (Makefile.am): Likewise.
59586         * modules/strftime (Makefile.am): Likewise.
59587         * modules/strndup (Makefile.am): Likewise.
59588         * modules/strnlen (Makefile.am): Likewise.
59589         * modules/strpbrk (Makefile.am): Likewise.
59590         * modules/strsep (Makefile.am): Likewise.
59591         * modules/strstr (Makefile.am): Likewise.
59592         * modules/strtod (Makefile.am): Likewise.
59593         * modules/strtoimax (Makefile.am): Likewise.
59594         * modules/strtok_r (Makefile.am): Likewise.
59595         * modules/strtol (Makefile.am): Likewise.
59596         * modules/strtoll (Makefile.am): Likewise.
59597         * modules/strtoul (Makefile.am): Likewise.
59598         * modules/strtoull (Makefile.am): Likewise.
59599         * modules/strtoumax (Makefile.am): Likewise.
59600         * modules/strverscmp (Makefile.am): Likewise.
59601         * modules/sys_socket (Makefile.am): Likewise.
59602         * modules/sys_stat (Makefile.am): Likewise.
59603         * modules/sysexits (Makefile.am): Likewise.
59604         * modules/time_r (Makefile.am): Likewise.
59605         * modules/timegm (Makefile.am): Likewise.
59606         * modules/timespec (Makefile.am): Likewise.
59607         * modules/tmpfile-safer (Makefile.am): Likewise.
59608         * modules/trim (Makefile.am): Likewise.
59609         * modules/unistd-safer (Makefile.am): Likewise.
59610         * modules/unlinkdir (Makefile.am): Likewise.
59611         * modules/unlocked-io (Makefile.am): Likewise.
59612         * modules/userspec (Makefile.am): Likewise.
59613         * modules/utime (Makefile.am): Likewise.
59614         * modules/utimecmp (Makefile.am): Likewise.
59615         * modules/utimens (Makefile.am): Likewise.
59616         * modules/vasnprintf (Makefile.am): Likewise.
59617         * modules/vasprintf (Makefile.am): Likewise.
59618         * modules/vsnprintf (Makefile.am): Likewise.
59619         * modules/xalloc (Makefile.am): Likewise.
59620         * modules/xgetcwd (Makefile.am): Likewise.
59621         * modules/xnanosleep (Makefile.am): Likewise.
59622         * modules/xreadlink (Makefile.am): Likewise.
59623         * modules/xstrtod (Makefile.am): Likewise.
59624         * modules/xstrtol (Makefile.am): Likewise.
59625         * modules/xstrtold (Makefile.am): Likewise.
59626         * modules/yesno (Makefile.am): Likewise.
59627         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
59628
59629 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59630
59631         * modules/error (Makefile.am): Distribute files through
59632         EXTRA_DIST, not lib_SOURCES.
59633
59634 2006-10-12  Eric Blake  <ebb9@byu.net>
59635
59636         * modules/error (Makefile.am): Distribute files in /lib.
59637         * modules/obstack (Makefile.am): Likewise.
59638
59639 2006-10-12  Bruno Haible  <bruno@clisp.org>
59640
59641         * modules/acl (Makefile.am): Distribute all files in lib/ through
59642         EXTRA_DIST.
59643         * modules/arcfour (Makefile.am): Likewise.
59644         * modules/arctwo (Makefile.am): Likewise.
59645         * modules/argmatch (Makefile.am): Likewise.
59646         * modules/argz (Makefile.am): Likewise.
59647         * modules/atexit (Makefile.am): Likewise.
59648         * modules/backupfile (Makefile.am): Likewise.
59649         * modules/c-strtod (Makefile.am): Likewise.
59650         * modules/c-strtold (Makefile.am): Likewise.
59651         * modules/calloc (Makefile.am): Likewise.
59652         * modules/canon-host (Makefile.am): Likewise.
59653         * modules/canonicalize (Makefile.am): Likewise.
59654         * modules/chdir-long (Makefile.am): Likewise.
59655         * modules/chdir-safer (Makefile.am): Likewise.
59656         * modules/check-version (Makefile.am): Likewise.
59657         * modules/chown (Makefile.am): Likewise.
59658         * modules/cloexec (Makefile.am): Likewise.
59659         * modules/close-stream (Makefile.am): Likewise.
59660         * modules/closeout (Makefile.am): Likewise.
59661         * modules/crc (Makefile.am): Likewise.
59662         * modules/cycle-check (Makefile.am): Likewise.
59663         * modules/des (Makefile.am): Likewise.
59664         * modules/dirfd (Makefile.am): Likewise.
59665         * modules/dirname (Makefile.am): Likewise.
59666         * modules/dup2 (Makefile.am): Likewise.
59667         * modules/euidaccess (Makefile.am): Likewise.
59668         * modules/exclude (Makefile.am): Likewise.
59669         * modules/exitfail (Makefile.am): Likewise.
59670         * modules/fcntl-safer (Makefile.am): Likewise.
59671         * modules/file-type (Makefile.am): Likewise.
59672         * modules/fileblocks (Makefile.am): Likewise.
59673         * modules/filemode (Makefile.am): Likewise.
59674         * modules/filenamecat (Makefile.am): Likewise.
59675         * modules/fnmatch (Makefile.am): Likewise.
59676         * modules/fopen-safer (Makefile.am): Likewise.
59677         * modules/fpending (Makefile.am): Likewise.
59678         * modules/fprintftime (Makefile.am): Likewise.
59679         * modules/free (Makefile.am): Likewise.
59680         * modules/fsusage (Makefile.am): Likewise.
59681         * modules/ftruncate (Makefile.am): Likewise.
59682         * modules/fts (Makefile.am): Likewise.
59683         * modules/gc (Makefile.am): Likewise.
59684         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
59685         * modules/getaddrinfo (Makefile.am): Likewise.
59686         * modules/getcwd (Makefile.am): Likewise.
59687         * modules/getdelim (Makefile.am): Likewise.
59688         * modules/getdomainname (Makefile.am): Likewise.
59689         * modules/getgroups (Makefile.am): Likewise.
59690         * modules/gethostname (Makefile.am): Likewise.
59691         * modules/gethrxtime (Makefile.am): Likewise.
59692         * modules/getline (Makefile.am): Likewise.
59693         * modules/getloadavg (Makefile.am): Likewise.
59694         * modules/getlogin_r (Makefile.am): Likewise.
59695         * modules/getopt (Makefile.am): Likewise.
59696         * modules/getpass (Makefile.am): Likewise.
59697         * modules/getpass-gnu (Makefile.am): Likewise.
59698         * modules/getsubopt (Makefile.am): Likewise.
59699         * modules/gettime (Makefile.am): Likewise.
59700         * modules/gettimeofday (Makefile.am): Likewise.
59701         * modules/getugroups (Makefile.am): Likewise.
59702         * modules/getusershell (Makefile.am): Likewise.
59703         * modules/glob (Makefile.am): Likewise.
59704         * modules/group-member (Makefile.am): Likewise.
59705         * modules/hard-locale (Makefile.am): Likewise.
59706         * modules/hash (Makefile.am): Likewise.
59707         * modules/hmac-md5 (Makefile.am): Likewise.
59708         * modules/hmac-sha1 (Makefile.am): Likewise.
59709         * modules/human (Makefile.am): Likewise.
59710         * modules/idcache (Makefile.am): Likewise.
59711         * modules/imaxabs (Makefile.am): Likewise.
59712         * modules/imaxdiv (Makefile.am): Likewise.
59713         * modules/inet_ntop (Makefile.am): Likewise.
59714         * modules/inet_pton (Makefile.am): Likewise.
59715         * modules/inttostr (Makefile.am): Likewise.
59716         * modules/isapipe (Makefile.am): Likewise.
59717         * modules/lchown (Makefile.am): Likewise.
59718         * modules/long-options (Makefile.am): Likewise.
59719         * modules/lstat (Makefile.am): Likewise.
59720         * modules/malloc (Makefile.am): Likewise.
59721         * modules/mathl (Makefile.am): Likewise.
59722         * modules/mbchar (Makefile.am): Likewise.
59723         * modules/md2 (Makefile.am): Likewise.
59724         * modules/md4 (Makefile.am): Likewise.
59725         * modules/md5 (Makefile.am): Likewise.
59726         * modules/memcasecmp (Makefile.am): Likewise.
59727         * modules/memchr (Makefile.am): Likewise.
59728         * modules/memcmp (Makefile.am): Likewise.
59729         * modules/memcoll (Makefile.am): Likewise.
59730         * modules/memcpy (Makefile.am): Likewise.
59731         * modules/memmem (Makefile.am): Likewise.
59732         * modules/memmove (Makefile.am): Likewise.
59733         * modules/mempcpy (Makefile.am): Likewise.
59734         * modules/memrchr (Makefile.am): Likewise.
59735         * modules/memset (Makefile.am): Likewise.
59736         * modules/memxor (Makefile.am): Likewise.
59737         * modules/mkancesdirs (Makefile.am): Likewise.
59738         * modules/mkdir (Makefile.am): Likewise.
59739         * modules/mkdir-p (Makefile.am): Likewise.
59740         * modules/mkdtemp (Makefile.am): Likewise.
59741         * modules/mkstemp (Makefile.am): Likewise.
59742         * modules/mktime (Makefile.am): Likewise.
59743         * modules/modechange (Makefile.am): Likewise.
59744         * modules/mountlist (Makefile.am): Likewise.
59745         * modules/nanosleep (Makefile.am): Likewise.
59746         * modules/openat (Makefile.am): Likewise.
59747         * modules/pagealign_alloc (Makefile.am): Likewise.
59748         * modules/physmem (Makefile.am): Likewise.
59749         * modules/poll (Makefile.am): Likewise.
59750         * modules/posixtm (Makefile.am): Likewise.
59751         * modules/posixver (Makefile.am): Likewise.
59752         * modules/putenv (Makefile.am): Likewise.
59753         * modules/quote (Makefile.am): Likewise.
59754         * modules/quotearg (Makefile.am): Likewise.
59755         * modules/raise (Makefile.am): Likewise.
59756         * modules/read-file (Makefile.am): Likewise.
59757         * modules/readline (Makefile.am): Likewise.
59758         * modules/readlink (Makefile.am): Likewise.
59759         * modules/readtokens (Makefile.am): Likewise.
59760         * modules/readutmp (Makefile.am): Likewise.
59761         * modules/realloc (Makefile.am): Likewise.
59762         * modules/regex (Makefile.am): Likewise.
59763         * modules/rename (Makefile.am): Likewise.
59764         * modules/rename-dest-slash (Makefile.am): Likewise.
59765         * modules/rijndael (Makefile.am): Likewise.
59766         * modules/rmdir (Makefile.am): Likewise.
59767         * modules/rpmatch (Makefile.am): Likewise.
59768         * modules/safe-read (Makefile.am): Likewise.
59769         * modules/safe-write (Makefile.am): Likewise.
59770         * modules/same (Makefile.am): Likewise.
59771         * modules/save-cwd (Makefile.am): Likewise.
59772         * modules/savedir (Makefile.am): Likewise.
59773         * modules/setenv (Makefile.am): Likewise.
59774         * modules/settime (Makefile.am): Likewise.
59775         * modules/sha1 (Makefile.am): Likewise.
59776         * modules/sig2str (Makefile.am): Likewise.
59777         * modules/snprintf (Makefile.am): Likewise.
59778         * modules/stdlib-safer (Makefile.am): Likewise.
59779         * modules/stpcpy (Makefile.am): Likewise.
59780         * modules/stpncpy (Makefile.am): Likewise.
59781         * modules/strcase (Makefile.am): Likewise.
59782         * modules/strcasestr (Makefile.am): Likewise.
59783         * modules/strchrnul (Makefile.am): Likewise.
59784         * modules/strcspn (Makefile.am): Likewise.
59785         * modules/strdup (Makefile.am): Likewise.
59786         * modules/strerror (Makefile.am): Likewise.
59787         * modules/strftime (Makefile.am): Likewise.
59788         * modules/strndup (Makefile.am): Likewise.
59789         * modules/strnlen (Makefile.am): Likewise.
59790         * modules/strpbrk (Makefile.am): Likewise.
59791         * modules/strsep (Makefile.am): Likewise.
59792         * modules/strstr (Makefile.am): Likewise.
59793         * modules/strtod (Makefile.am): Likewise.
59794         * modules/strtoimax (Makefile.am): Likewise.
59795         * modules/strtok_r (Makefile.am): Likewise.
59796         * modules/strtol (Makefile.am): Likewise.
59797         * modules/strtoll (Makefile.am): Likewise.
59798         * modules/strtoul (Makefile.am): Likewise.
59799         * modules/strtoull (Makefile.am): Likewise.
59800         * modules/strtoumax (Makefile.am): Likewise.
59801         * modules/strverscmp (Makefile.am): Likewise.
59802         * modules/time_r (Makefile.am): Likewise.
59803         * modules/timegm (Makefile.am): Likewise.
59804         * modules/tmpfile-safer (Makefile.am): Likewise.
59805         * modules/unistd-safer (Makefile.am): Likewise.
59806         * modules/unlinkdir (Makefile.am): Likewise.
59807         * modules/userspec (Makefile.am): Likewise.
59808         * modules/utime (Makefile.am): Likewise.
59809         * modules/utimecmp (Makefile.am): Likewise.
59810         * modules/utimens (Makefile.am): Likewise.
59811         * modules/vasnprintf (Makefile.am): Likewise.
59812         * modules/vasprintf (Makefile.am): Likewise.
59813         * modules/vsnprintf (Makefile.am): Likewise.
59814         * modules/xalloc (Makefile.am): Likewise.
59815         * modules/xgetcwd (Makefile.am): Likewise.
59816         * modules/xnanosleep (Makefile.am): Likewise.
59817         * modules/xreadlink (Makefile.am): Likewise.
59818         * modules/xstrtod (Makefile.am): Likewise.
59819         * modules/xstrtol (Makefile.am): Likewise.
59820         * modules/xstrtold (Makefile.am): Likewise.
59821         * modules/yesno (Makefile.am): Likewise.
59822
59823 2006-10-12  Jim Meyering  <jim@meyering.net>
59824
59825         * m4/getloadavg.m4: Revert the change below.
59826
59827         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
59828         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
59829         fail with a symlink, which is what coreutils' ./bootstrap now
59830         creates by default.
59831
59832 2006-10-12  Bruno Haible  <bruno@clisp.org>
59833
59834         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
59835         mingw.
59836         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
59837         MSVC and mingw explicitly.
59838
59839 2006-10-11  Simon Josefsson  <jas@extundo.com>
59840             Bruno Haible  <bruno@clisp.org>
59841
59842         Add support for multiple gnulib-tool invocations in the scope of a
59843         single configure.ac file.
59844         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
59845         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
59846         with the same contents as the _LIBADD variable.
59847         (func_emit_initmacro_start, func_emit_initmacro_end,
59848         func_emit_initmacro_done): New functions.
59849         (func_import, func_create_testdir): Invoke them. Allow the identifiers
59850         gl_LIBOBJS and gl_LTLIBOBJS.
59851
59852 2006-10-11  Bruno Haible  <bruno@clisp.org>
59853
59854         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
59855         (func_create_testdir): Don't create po/Makefile.am, don't invoke
59856         autoreconf. Instead, invoke autopoint explicitly but move back the
59857         *.m4 files from gnulib.
59858
59859 2006-10-11  Bruno Haible  <bruno@clisp.org>
59860
59861         * gnulib-tool (func_usage): Make module names after --create-testdir
59862         optional.
59863         (func_create_testdir): If no module was specified, use nearly all
59864         modules.
59865
59866 2006-10-12  Jim Meyering  <jim@meyering.net>
59867
59868         Big performance improvement for fts-based tools that use FTS_NOSTAT.
59869         Avoid spurious inode-mismatch problems on non-POSIX file systems.
59870         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
59871         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
59872         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
59873         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
59874         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
59875         (fts_set_stat_required): New function.
59876         (fts_open): Defer the calls to fts_stat, if possible or requested.
59877         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
59878         into fts_stat itself.
59879         (fts_read): Perform any required (deferred) fts_stat call.
59880         (fts_build): Likewise, for the directory we're about to open and read.
59881         In the readdir loop, carefully decide whether each entry will require
59882         an eventual call to fts_stat, using dirent.d_type info if available.
59883         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
59884         a command line argument into this function.  Update all callers.
59885         Map a return value of FTS_DOT to FTS_D for a command line argument.
59886         * modules/fts (Depends-on): Add d-type.  Alphabetize.
59887         Thanks to Miklos Szeredi for his tenacity and for the initial
59888         bug report about "find" failing on a FUSE-based file system.
59889
59890         * lib/fts.c (fts_open): Use consistent indentation.
59891
59892 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59893
59894         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
59895         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
59896         reported by Jim Meyering.  All uses of cache variables renamed
59897         to match Autoconf's.
59898         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
59899         the other one.
59900
59901         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
59902         Fix misspelling in diagnostic.
59903
59904 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59905
59906         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
59907         defined.  Problem reported by Matthew Woehlke.
59908
59909         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
59910         Add support for Tandem NonStop R series.
59911         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
59912         Use new macro.
59913
59914         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
59915         (has_trailing_slash): Omit size arg; all callers changed.
59916         Omit 'inline', since it doesn't help performance and we'd
59917         need to configure it.
59918         Don't count //, ///, etc. as having a trailing slash.
59919         As a side effect, this removes a C99ism reported by Matthew Woehlke.
59920         (rpl_rename_dest_slash): On failure, use rename's errno rather
59921         than (in some cases) an incorrect or junk errno.
59922         Simplify code by removing need to compute length; this does
59923         cause it to make two passes instead of one over the file name,
59924         but it's worth it.
59925
59926         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
59927         change, since Autoconf's version may no longer be appropriate now
59928         that we are using CVS Autoconf's version.  Add support for Tandem.
59929
59930 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59931             Bruno Haible  <bruno@clisp.org>
59932
59933         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
59934         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
59935         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
59936         gl_AC_TYPE_LONG_LONG.
59937
59938         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
59939         instead of HAVE_LONG_LONG.
59940         * lib/printf-args.c (printf_fetchargs): Likewise.
59941         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
59942         * lib/vasnprintf.c (VASNPRINTF): Likewise.
59943         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
59944         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
59945         gl_AC_TYPE_LONG_LONG.
59946
59947 2006-10-11  Bruno Haible  <bruno@clisp.org>
59948
59949         * m4/longlong.m4: Add comments.
59950         * m4/ulonglong.m4: Likewise.
59951
59952 2006-10-10  Bruno Haible  <bruno@clisp.org>
59953
59954         Make it possible to #define stpcpy, strdup to aliases.
59955         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
59956         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
59957
59958 2006-10-10  Bruno Haible  <bruno@clisp.org>
59959
59960         Make it possible to #define gcd to an alias.
59961         * lib/gcd.c: Include config.h.
59962
59963 2006-10-10  Bruno Haible  <bruno@clisp.org>
59964
59965         Make it possible to #define c_isascii to an alias.
59966         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
59967         defined. Undefine the macros before defining them, to avoid gcc
59968         warnings.
59969         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
59970         define NO_C_CTYPE_MACROS early.
59971
59972 2006-10-10  Bruno Haible  <bruno@clisp.org>
59973
59974         Make it possible to #define set_program_name to an alias.
59975         * lib/progname.c: Don't undefine set_program_name; instead, undefine
59976         ENABLE_RELOCATABLE early.
59977
59978 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59979
59980         Port to Tandem NSK OSS, which has 64-bit signed int but at most
59981         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
59982         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
59983         More generally, don't assume that 64-bit signed int is available
59984         if unsigned int is, and vice versa.
59985         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
59986         unsigned symbols, not on their signed counterparts.
59987         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
59988         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
59989         (UINT64_C, UINTMAX_C):
59990         Likewise.
59991         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
59992         unsigned counterparts.
59993         (Have_long_long, Unsigned): New macros.
59994         (Int): Renamed from INT.
59995         (strtoimax): Use the new macros.
59996         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
59997         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
59998         * modules/inttypes (inttypes.h): Substitute
59999         HAVE_UNSIGNED_LONG_LONG_INT.
60000         * modules/stdint (stdint.h): Likewise.
60001         (Files): Add m4/ulonglong.m4.
60002
60003 2006-10-10  Bruno Haible  <bruno@clisp.org>
60004
60005         Fix a gcc -Wshadow warning.
60006         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
60007         to 'bucket'.
60008         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
60009         gl_linked_indexof_from_to): Likewise.
60010         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
60011         Likewise.
60012         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
60013         Likewise.
60014         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
60015         Reported by Eric Blake.
60016
60017 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
60018
60019         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
60020         for NetBSD.  Problem reported by Bruno Haible.
60021
60022 2006-10-09  Jim Meyering  <jim@meyering.net>
60023
60024         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
60025         Patch from Bruno Haible.
60026
60027 2006-10-09  Jim Meyering  <jim@meyering.net>
60028
60029         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
60030         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
60031         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
60032
60033 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60034
60035         Don't include <config.h> twice; this doesn't work in some cases,
60036         e.g., when config.h has "#define intmax_t long long int" and
60037         we include <config.h>, <inttypes.h>, <config.h> in that order.
60038         Problem reported by Matthew Woehlke in:
60039         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
60040         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
60041         * lib/fts-cycle.c: Don't include config.h.
60042         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
60043         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
60044         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
60045         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
60046         inttypes.h.
60047         * lib/xstrtoumax.c: Likewise.
60048         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
60049         __strtol and the like, so that this module is more like its siblings.
60050         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
60051         Remove; no longer needed now that we assume gnulib inttypes.h.
60052
60053 2006-10-08  Bruno Haible  <bruno@clisp.org>
60054
60055         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
60056         option.
60057
60058 2006-10-07  Jim Meyering  <jim@meyering.net>
60059
60060         * modules/inttypes (inttypes.h): Revert what seems to have been
60061         an inadvertent part of today's change: use "|", not "/" in the
60062         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
60063
60064 2006-10-07  Bruno Haible  <bruno@clisp.org>
60065
60066         * modules/sublist: New file.
60067
60068 2006-10-07  Bruno Haible  <bruno@clisp.org>
60069
60070         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
60071         * modules/argz (argz.h): Likewise.
60072         * modules/arpa_inet (arpa/inet.h): Likewise.
60073         * modules/byteswap (byteswap.h): Likewise.
60074         * modules/configmake (configmake.h): Likewise.
60075         * modules/fcntl (fcntl.h): Likewise.
60076         * modules/fnmatch (fnmatch.h): Likewise.
60077         * modules/getopt (getopt.h): Likewise.
60078         * modules/glob (glob.h): Likewise.
60079         * modules/inttypes (inttypes.h): Likewise.
60080         * modules/netinet_in (netinet/in.h): Likewise.
60081         * modules/poll (poll.h): Likewise.
60082         * modules/stdbool (stdbool.h): Likewise.
60083         * modules/stdint (stdint.h): Likewise.
60084         * modules/sys_select (sys/select.h): Likewise.
60085         * modules/sys_socket (sys/socket.h): Likewise.
60086         * modules/sys_stat (sys/stat.h): Likewise.
60087         * modules/sysexits (sysexits.h): Likewise.
60088         * modules/unistd (unistd.h): Likewise.
60089         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60090         Add a "DO NOT EDIT" comment to the generated file.
60091         (func_import): Likewise for gnulib-comp.m4.
60092
60093 2006-10-07  Bruno Haible  <bruno@clisp.org>
60094
60095         * lib/gl_sublist.h: New file.
60096         * lib/gl_sublist.c: New file.
60097
60098 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60099
60100         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
60101         name (relative to the original working directory) and the file
60102         name component (relative to the temporary working directory).  All
60103         callers changed.
60104         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
60105         * lib/mkdir-p.c (make_dir_parents): Likewise.
60106         * lib/mkdir-p.h (make_dir_parents): Likewise.
60107
60108 2006-10-06  Eric Blake  <ebb9@byu.net>
60109
60110         Define several macros for use by the clean-temp module.
60111         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
60112         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
60113         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
60114
60115         * lib/clean-temp.h (close_stream_temp): New declaration.
60116         * lib/clean-temp.c (includes): Pull in headers according to what
60117         other modules are in use.
60118         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
60119
60120 2006-10-06  Bruno Haible  <bruno@clisp.org>
60121
60122         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
60123         instead of fopen, fwriteerror.
60124
60125 2006-10-06  Bruno Haible  <bruno@clisp.org>
60126
60127         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
60128         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
60129         int.
60130         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
60131         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
60132         Return an error indicator.
60133         Suggested by Eric Blake.
60134
60135 2006-10-06  Bruno Haible  <bruno@clisp.org>
60136
60137         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
60138         Reported by Eric Blake.
60139
60140 2006-10-06  Bruno Haible  <bruno@clisp.org>
60141
60142         * modules/closeout (Description): Mention stderr too.
60143
60144 2006-10-06  Bruno Haible  <bruno@clisp.org>
60145         and Paul Eggert  <eggert@cs.ucla.edu>
60146
60147         * lib/closeout.c (close_stdout): Also close stderr.
60148         * lib/closeout.h: Update comment.
60149
60150 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
60151
60152         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
60153         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
60154         * lib/dirchownmod.c: Include lchown.h.
60155         * lib/lchown.c: Don't include files that lchown.h now includes.
60156         Don't declare chown, since lchown.h now does that.
60157         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
60158         (lchown): Define to rpl_chown if lchown is declared but
60159         does not exist.  Declare using a prototype if lchown is not
60160         declared.  Add a copyright notice.
60161         * lib/mkstemp.h: Include <unistd.h>.
60162         * lib/openat.c: Include lchown.h.
60163
60164         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
60165         we now test for that separately.
60166         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
60167         rather than O_NOFOLLOW, when testing whether it's possible to
60168         avoid a race condition reliably.
60169         * lib/savewd.c (savewd_chdir): Likewise.
60170
60171         Remove macros that are no longer needed now that stdint.h is
60172         reliable.
60173         * lib/fsusage.c (UINTMAX_MAX): Remove.
60174         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
60175         * lib/utimecmp.c (SIZE_MAX): Remove.
60176
60177         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
60178
60179         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
60180         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
60181         O_NOATIME works.
60182
60183 2006-10-05  Bruno Haible  <bruno@clisp.org>
60184
60185         * lib/gl_list.h (gl_sortedlist_search_from_to,
60186         gl_sortedlist_indexof_from_to): New declarations.
60187         (gl_list_implementation): New fields sortedlist_search_from_to,
60188         sortedlist_indexof_from_to.
60189         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
60190         inline functions.
60191         * lib/gl_list.c (gl_sortedlist_search_from_to,
60192         gl_sortedlist_indexof_from_to): New functions.
60193         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
60194         function.
60195         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
60196         (gl_array_sortedlist_search_from_to): New function.
60197         (gl_array_list_implementation): Update.
60198         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
60199         function.
60200         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
60201         (gl_carray_sortedlist_search_from_to): New function.
60202         (gl_carray_list_implementation): Update.
60203         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
60204         gl_linked_sortedlist_indexof_from_to): New functions.
60205         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60206         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60207         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
60208         gl_tree_sortedlist_indexof_from_to): New functions.
60209         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60210         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60211         Update.
60212         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60213         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
60214         Update.
60215
60216 2006-10-05  Bruno Haible  <bruno@clisp.org>
60217
60218         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
60219         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
60220         (struct gl_list_implementation): Add fields search_from_to,
60221         indexof_from_to. Remove fields search, indexof.
60222         (gl_list_search): Use the search_from_to method.
60223         (gl_list_search_from, gl_list_search_from_to): New functions.
60224         (gl_list_indexof): Use the indexof_from_to method.
60225         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60226         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
60227         (gl_list_search_from, gl_list_search_from_to): New functions.
60228         (gl_list_indexof): Use the indexof_from_to method.
60229         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
60230         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
60231         gl_array_indexof. Add start_index, end_index arguments.
60232         (gl_array_search_from_to): Renamed from gl_array_search. Add
60233         start_index, end_index arguments.
60234         (gl_array_remove, gl_array_list_implementation): Update.
60235         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
60236         gl_carray_indexof. Add start_index, end_index arguments.
60237         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
60238         start_index, end_index arguments.
60239         (gl_carray_remove, gl_carray_list_implementation): Update.
60240         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
60241         gl_linked_search. Add start_index, end_index arguments.
60242         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
60243         start_index, end_index arguments.
60244         (gl_linked_remove): Update.
60245         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60246         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60247         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
60248         field to 'size_t'.
60249         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
60250         gl_tree_search. Add start_index, end_index arguments.
60251         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60252         start_index, end_index arguments.
60253         (gl_tree_remove): Update.
60254         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60255         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60256         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
60257         function.
60258         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
60259         gl_tree_search. Add start_index, end_index arguments.
60260         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
60261         start_index, end_index arguments.
60262         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60263         Update.
60264         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60265
60266 2006-10-05  Bruno Haible  <bruno@clisp.org>
60267
60268         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
60269
60270         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
60271         fwriteerror_temp): New declarations.
60272         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
60273         (descriptors): New variable.
60274         (cleanup): First, close the descriptors.
60275         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
60276         fclose_temp, fwriteerror_temp): New functions.
60277
60278 2006-10-04  Jim Meyering  <jim@meyering.net>
60279
60280         * lib/fts.c (fts_open): Tiny comment change.
60281
60282 2006-10-04  Bruno Haible  <bruno@clisp.org>
60283
60284         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
60285         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
60286         gl_LOCK_BODY.
60287         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
60288         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
60289         gl_LOCK_EARLY_BODY.
60290         (gl_LOCK): Require gl_LOCK_BODY.
60291
60292 2006-10-04  Bruno Haible  <bruno@clisp.org>
60293
60294         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
60295         (gl_oset_search_atleast): New declaration.
60296         (struct gl_oset_implementation): Add field 'search_atleast'.
60297         (gl_oset_search_atleast): New inline function.
60298         * lib/gl_oset.c (gl_oset_search_atleast): New function.
60299         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
60300         (gl_array_oset_implementation): Update.
60301         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
60302         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
60303         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
60304
60305 2006-10-04  Bruno Haible  <bruno@clisp.org>
60306
60307         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
60308
60309 2006-10-03  Bruno Haible  <bruno@clisp.org>
60310
60311         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
60312         from gl_avltreehash_list_implementation.
60313
60314 2006-10-03  Bruno Haible  <bruno@clisp.org>
60315
60316         * lib/gl_oset.c (gl_oset_add): Fix return type.
60317
60318 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
60319
60320         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
60321
60322 2006-10-02  Eric Blake  <ebb9@byu.net>
60323
60324         * modules/strnlen (Depends-on): Add extensions.
60325
60326 2006-10-02  Eric Blake  <ebb9@byu.net>
60327
60328         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
60329         definition in 2.60+.
60330
60331 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
60332
60333         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
60334         checks.
60335
60336 2006-10-02  Bruno Haible  <bruno@clisp.org>
60337
60338         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
60339         to the AUTOMAKE_OPTIONS.
60340         Reported by Jim Meyering.
60341
60342 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
60343
60344         Work around bug in Solaris 10 /proc file system:
60345         /proc/self/fd/NNN/.. isn't the parent directory of
60346         the directory whose file descriptor is NNN.  This needs to
60347         be worked around at run time, not compile time, since a
60348         program might be built on Solaris 8, where things work, and
60349         run on Solaris 10.
60350         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
60351         to use the following interface instead:
60352         (OPENAT_BUFFER_SIZE): New macro.
60353         (openat_proc_name): New function.
60354         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
60355         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
60356         Likewise.
60357         * lib/openat-proc.c: New file.
60358         * modules/openat (Files): Add lib/openat-proc.c.
60359         (Depends-on): Add same-inode, stdbool.
60360         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
60361
60362 2006-09-29  Bruno Haible  <bruno@clisp.org>
60363
60364         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
60365         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
60366         argument. Set stdout_closed before testing for ferror, not after.
60367         (fwriteerror, fwriteerror_no_ebadf): New functions.
60368
60369 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60370
60371         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
60372
60373 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
60374
60375         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
60376         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
60377
60378 2006-09-28  Jim Meyering  <jim@meyering.net>
60379
60380         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
60381         Include <unistd.h>.
60382
60383 2006-09-28  Bruno Haible  <bruno@clisp.org>
60384
60385         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
60386         * modules/linkedhash-list (Depends-on): Likewise.
60387         * modules/rbtreehash-list (Depends-on): Likewise.
60388
60389 2006-09-28  Bruno Haible  <bruno@clisp.org>
60390
60391         * lib/strndup.h: Simplify the redefinition of strndup.
60392         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
60393         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
60394
60395 2006-09-28  Bruno Haible  <bruno@clisp.org>
60396
60397         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
60398         * lib/gl_linkedhash_list.c: Likewise.
60399         * lib/gl_rbtreehash_list.c: Likewise.
60400
60401 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
60404         getaddrinfo.
60405
60406         * lib/__fpending.h: Don't include <stdio_ext.h> unless
60407         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
60408         it causes <stdio_ext.h> to cause a compile-time error.
60409         Problem reported by Nelson H. F. Beebe.
60410         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
60411         of HAVE_DECL___PENDING.
60412
60413         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
60414         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
60415         declaration.
60416
60417 2006-09-27  Jim Meyering  <jim@meyering.net>
60418
60419         This file could end up with a definition for a function
60420         named __strndup, rather than rpl_strndup on a system with
60421         incomplete weak_alias support.
60422         * lib/strndup.c (strndup): Rename from __strndup.
60423         Remove #defines that used to map __strndup to strndup.
60424         Don't use K&R prototypes.
60425         Remove LIBC-related code, since this file is not sync'd with glibc.
60426         * lib/strndup.h: Revamp, accordingly.
60427         * m4/strndup.m4: Modernize.
60428
60429 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
60430
60431         * modules/savewd (Depends-on): Add 'raise'.
60432         * lib/savewd.c: Include <signal.h>, for 'raise'.
60433
60434 2006-09-26  Jim Meyering  <jim@meyering.net>
60435
60436         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
60437         when we detect Darwin 8.7.0's acl_get_file bug.
60438         Rearrange to perform the new (below) run-test while $LIBS
60439         contains any acl-related library.  Set USE_ACL at the end.
60440         (gl_ACL_GET_FILE): New function.
60441
60442 2006-09-26  Eric Blake  <ebb9@byu.net>
60443
60444         * lib/verror.c: Include <config.h> unconditionally.
60445
60446 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
60447
60448         * modules/clock-time (Maintainer): Add self.
60449         * modules/getlogin_r (Depends-on): Add extensions.
60450
60451 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60452
60453         * modules/clock-time: New module.
60454         * modules/nanosleep (Depends-on): Add clock-time.
60455         * modules/gethrxtime (Depends-on): Likewise.
60456         * modules/gettime (Depends-on): Likewise.
60457         * modules/settime (Depends-on): Likewise.
60458
60459         * modules/fts-lgpl: Depend on openat.
60460         * modules/mkancesdirs: Depend on savewd.
60461         * modules/mkdir-p: Likewise.
60462
60463 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60464
60465         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
60466
60467         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
60468         `gl_have_arbitrary_file_name_length_limit' to
60469         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
60470         actually works between configure runs.
60471
60472 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60473             Bruno Haible  <bruno@clisp.org>
60474
60475         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
60476
60477 2006-09-25  Jim Meyering  <jim@meyering.net>
60478
60479         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
60480         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
60481
60482 2006-09-25  Eric Blake  <ebb9@byu.net>
60483
60484         * gnulib-tool (func_import, func_create_testdir): Fix typos in
60485         exec's in 2006-09-18 patch when shuffling fds.
60486
60487 2006-09-25  Bruno Haible  <bruno@clisp.org>
60488
60489         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
60490         Reported by Jim Meyering.
60491
60492 2006-09-24  Jim Meyering  <jim@meyering.net>
60493
60494         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
60495         compare a pointer against a literal "0".  That caused failures with
60496         at least HP-UX's hpcc.
60497
60498 2006-09-22  Simon Josefsson  <jas@extundo.com>
60499
60500         * modules/gc-sha1:
60501         * modules/gc-md4:
60502         * modules/gc-hmac-sha1:
60503         * modules/gc-hmac-md5:
60504         * modules/gc-des:
60505         * modules/gc-arcfour: Distribute more files.
60506
60507 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60508
60509         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
60510         (gl_linked_iterator_from_to): Initialize struct completely.
60511         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
60512         (gl_tree_iterator_from_to): Likewise
60513         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
60514         * lib/gl_array_list.c [lint] (gl_array_iterator)
60515         (gl_array_iterator_from_to): Likewise.
60516         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
60517         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
60518         (gl_carray_iterator_from_to): Likewise.
60519
60520         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
60521         * lib/md4.c (md4_process_block): Remove unused variable.
60522         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
60523         parentheses for clarity.
60524
60525 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60526
60527         * modules/bison-i18n (Depends-on): Add gettext.
60528
60529 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60530
60531         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
60532         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
60533         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
60534         also add missing comma that caused broken test.
60535         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
60536         stdlib.h, for `abort'.
60537         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
60538         variables.
60539         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
60540         include unistd.h if present, for `rmdir'.
60541         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
60542         variables.
60543         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
60544         in the process include standard headers for prototypes.
60545         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
60546         gets declared on GNU/Linux.
60547         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
60548         unistd.h, for `rmdir'.
60549         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
60550
60551         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
60552         always true.
60553         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
60554
60555         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
60556
60557 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60558
60559         * gnulib-tool (func_version): Create output all at once.  This
60560         may help avoid triggering unnecessary SIGPIPEs, and at any
60561         rate it doesn't hurt.
60562
60563 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60564             Bruno Haible  <bruno@clisp.org>
60565
60566         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
60567         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
60568         * m4/signed.m4 (bh_C_SIGNED): Likewise.
60569
60570         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
60571         (gl_FUNC_VASPRINTF): Invoke it.
60572
60573 2006-09-22  Bruno Haible  <bruno@clisp.org>
60574
60575         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
60576         getloadavg.c as first argument.
60577
60578 2006-09-22  Bruno Haible  <bruno@clisp.org>
60579
60580         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
60581         at the beginning of the gl_INIT macro.
60582         * modules/getloadavg (configure.ac): Pass $gl_source_base to
60583         gl_GETLOADAVG.
60584
60585 2006-09-22  Bruno Haible  <bruno@clisp.org>
60586
60587         * gnulib-tool (func_create_megatestdir): Don't include the config-h
60588         module.
60589         Suggested by Ralf Wildenhues.
60590
60591 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60592
60593         Import this patch from libc:
60594
60595         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
60596
60597         * lib/regex_internal.c (re_string_reconstruct): Handle
60598         offset < pstr->valid_raw_len && pstr->offsets_needed case.
60599         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
60600         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
60601         re_string_context_at.
60602
60603         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
60604         now requires it.
60605         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
60606         gl_REGEX now does it for us.
60607         (gl_REGEX): Add test taken from
60608         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
60609
60610         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
60611         Check that large offsets work.  Modernize Autoconf usages.
60612         Prefer "yes" to mean a good thing rather than a bad.
60613         Don't put "#define mkstemp" in config.h, as this might interfere
60614         with standard system headers that "#define mkstemp mkstemp64".
60615
60616         * modules/mkstemp (Depends-on): Add extensions, so that
60617         mkstemp is visible on some platforms.
60618         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
60619         (Include): Change to "mkstemp.h" from <stdlib.h>.
60620         (Files): Add mkstemp.h.
60621
60622         * lib/mkstemp.h: New file, since some standard headers
60623         #define mkstemp.
60624         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
60625         Include "mkstemp.h".
60626         Make the _LIBC code resemble glibc original more,
60627         e.g., use K&R style.
60628         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
60629         (mkstemp): Remove, since mkstemp.h does this for us.
60630         * lib/stdlib--.h: Include mkstemp.h.
60631
60632         Import this patch from libc:
60633
60634         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60635
60636         * lib/tempname.c (__gen_tempname): Change attempts_min
60637         into a macro.  Use preprocessor to decide how to initialize
60638         attempts [Coverity CID 67].
60639
60640 2006-09-20  Bruno Haible  <bruno@clisp.org>
60641
60642         * lib/mkdtemp.c: Import from libc.
60643         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
60644                 * sysdeps/posix/tempname.c (__gen_tempname): Change
60645                 attempts_min into a macro.  Use preprocessor to decide how to
60646                 initialize attempts [Coverity CID 67].
60647         2001-11-27  Paul Eggert  <eggert@twinsun.com>
60648                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
60649                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
60650
60651 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60652
60653         * gnulib-tool (func_exit): New function, to allow to pass the
60654         exit status portably through the trap.  Use everywhere.
60655         (--help, --version): Signal a write error.
60656         (trap): catch SIGPIPE, for write errors.
60657         Exit at the end of the trap, with the correct exit status.
60658
60659 2006-09-19  Karl Berry  <karl@gnu.org>
60660
60661         * doc/gnulib.texi: note about the license texinfo files.
60662
60663 2006-09-19  Eric Blake  <ebb9@byu.net>
60664
60665         * gnulib-tool: Avoid space-tab.
60666
60667 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60668
60669         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
60670         that prevented coreutils 6.1 from building.  Problem reported
60671         by Petter Reinholdtsen.
60672
60673 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
60674
60675         * gnulib-tool (avoidlist): Fix typo that broke options like
60676         --avoid=lock that are used by coreutils bootstrap.
60677
60678 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
60679
60680         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
60681         more systematically.
60682
60683 2006-09-18  Jim Meyering  <jim@meyering.net>
60684
60685         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
60686
60687 2006-09-18  Bruno Haible  <bruno@clisp.org>
60688
60689         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
60690
60691 2006-09-18  Bruno Haible  <bruno@clisp.org>
60692
60693         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
60694         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
60695         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
60696         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
60697         * m4/gettext.m4: Require autoconf >= 2.52.
60698         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
60699         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
60700         of gl_cv_header_inttypes_h.
60701
60702 2006-09-18  Bruno Haible  <bruno@clisp.org>
60703
60704         * lib/javaversion.c: Include configmake.h.
60705
60706 2006-09-18  Bruno Haible  <bruno@clisp.org>
60707
60708         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
60709         avoid that the while loops be executed in a subshell.
60710
60711 2006-09-18  Bruno Haible  <bruno@clisp.org>
60712
60713         * MODULES.html.sh (func_module): Break long lines.
60714         Suggested by Bruce Korb <bkorb@gnu.org>.
60715
60716 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60717
60718         Speed up by a factor of 1.12.
60719         * gnulib-tool (nl): New variable.
60720         (func_import): Rewrite include directive extraction to only read each
60721         directive once.
60722
60723 2006-09-17  Bruno Haible  <bruno@clisp.org>
60724
60725         * modules/javaversion (Makefile.am): Remove DEFS setting.
60726         (Depends-on): Add configmake, for PKGDATADIR definition.
60727
60728 2006-09-17  Bruno Haible  <bruno@clisp.org>
60729
60730         * gnulib-tool (func_create_testdir): Rewrite all files at once.
60731
60732 2006-09-17  Bruno Haible  <bruno@clisp.org>
60733
60734         * gnulib-tool (func_append): New function, stolen from libtool.m4.
60735         (func_modules_transitive_closure, func_modules_add_dummy,
60736         func_modules_to_filelist, func_import, func_create_testdir,
60737         func_create_megatestdir, ...): Use it wherever possible.
60738         Suggested by Ralf Wildenhues.
60739
60740 2006-09-16  Karl Berry  <karl@gnu.org>
60741
60742         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
60743         to avoid sectioning errors.
60744         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
60745         [ifinfo]: blank line after @center-ed titles.
60746         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
60747         Spell FSF address consistently with others.
60748         (These changes approved by rms.)
60749
60750 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60751
60752         Speed up by a factor of 1.61.
60753         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
60754         already checked module names again.
60755
60756 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60757
60758         Speed up by a factor of 1.13.
60759         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
60760         for new_files, and the input to func_add_or_update.
60761
60762 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60763
60764         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
60765         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
60766
60767 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60768
60769         * modules/mkancesdirs (Depends-on): Add fcntl.
60770         * modules/savewd: New file.
60771         * MODULES.html.sh (File system functions): Add savewd.
60772
60773         * modules/configmake (Makefile.am): Add support for the
60774         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
60775
60776 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60777
60778         * m4/savewd.m4: New file.
60779
60780 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
60781
60782         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
60783         (dirchownmod): New arg FD.  All callers changed.
60784         Use FD rather than opening the directory ourself, as opening is
60785         now the caller's responsibility.
60786         * lib/dirchownmod.h: Likewise.
60787         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
60788         hosts that require <sys/types.h> before <sys/stat.h>.  Include
60789         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
60790         (test_dir): Remove.
60791         (mkancesdirs): Return length of prefix of FILE that has already
60792         been made, or -2 if there is a child doing the work.  Redo
60793         algorithm so that it is O(N) rather than O(N**2).  Optimize away
60794         ".", and treat ".." specially since it might stray back into
60795         already-created areas.  Use a subprocess if necessary.  New arg
60796         WD; all users changed.  MAKE_DIR function should now return 1
60797         if it creates a directory that is not readable.  Return -2 if
60798         a child process is spun off.
60799         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
60800         Adjust signature to match code.
60801         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
60802         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
60803         all users changed.
60804         * lib/savewd.c, lib/savewd.h: New files.
60805
60806 2006-09-15  Jim Meyering  <jim@meyering.net>
60807
60808         * modules/rename-dest-slash: New module.
60809         * MODULES.html.sh (posix_compat): Add it here.
60810
60811         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
60812
60813 2006-09-15  Jim Meyering  <jim@meyering.net>
60814
60815         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
60816         file.
60817
60818         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
60819
60820 2006-09-15  Jim Meyering  <jim@meyering.net>
60821
60822         * lib/rename-dest-slash.c (has_trailing_slash): Use
60823         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
60824         (rpl_rename_dest_slash): Perform the cheaper trailing slash
60825         test before testing whether SRC is a directory.
60826         Suggestions from Bruno Haible.
60827
60828         Avoid a warning about an unused variable.
60829         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
60830         into the #ifdef block where it's used.
60831
60832         * lib/rename-dest-slash.c: New file.
60833
60834 2006-09-14  Bruno Haible  <bruno@clisp.org>
60835
60836         * lib/allocsa.c: Include <config.h> unconditionally.
60837         * lib/asnprintf.c: Likewise.
60838         * lib/asprintf.c: Likewise.
60839         * lib/c-strcasecmp.c: Likewise.
60840         * lib/c-strcasestr.c: Likewise.
60841         * lib/c-strncasecmp.c: Likewise.
60842         * lib/c-strstr.c: Likewise.
60843         * lib/classpath.c: Likewise.
60844         * lib/clean-temp.c: Likewise.
60845         * lib/concatpath.c: Likewise.
60846         * lib/copy-file.c: Likewise.
60847         * lib/csharpcomp.c: Likewise.
60848         * lib/csharpexec.c: Likewise.
60849         * lib/execute.c: Likewise.
60850         * lib/fatal-signal.c: Likewise.
60851         * lib/findprog.c: Likewise.
60852         * lib/fwriteerror.c: Likewise.
60853         * lib/gl_array_list.c: Likewise.
60854         * lib/gl_array_oset.c: Likewise.
60855         * lib/gl_avltree_list.c: Likewise.
60856         * lib/gl_avltree_oset.c: Likewise.
60857         * lib/gl_avltreehash_list.c: Likewise.
60858         * lib/gl_carray_list.c: Likewise.
60859         * lib/gl_linked_list.c: Likewise.
60860         * lib/gl_linkedhash_list.c: Likewise.
60861         * lib/gl_list.c: Likewise.
60862         * lib/gl_oset.c: Likewise.
60863         * lib/gl_rbtree_list.c: Likewise.
60864         * lib/gl_rbtree_oset.c: Likewise.
60865         * lib/gl_rbtreehash_list.c: Likewise.
60866         * lib/imaxabs.c: Likewise.
60867         * lib/imaxdiv.c: Likewise.
60868         * lib/javacomp.c: Likewise.
60869         * lib/javaexec.c: Likewise.
60870         * lib/javaversion.c: Likewise.
60871         * lib/linebreak.c: Likewise.
60872         * lib/localcharset.c: Likewise.
60873         * lib/lock.c: Likewise.
60874         * lib/mbchar.c: Likewise.
60875         * lib/mbswidth.c: Likewise.
60876         * lib/mkdtemp.c: Likewise.
60877         * lib/pipe.c: Likewise.
60878         * lib/printf-args.c: Likewise.
60879         * lib/printf-parse.c: Likewise.
60880         * lib/progname.c: Likewise.
60881         * lib/progreloc.c: Likewise.
60882         * lib/readlink.c: Likewise.
60883         * lib/sh-quote.c: Likewise.
60884         * lib/stpcpy.c: Likewise.
60885         * lib/stpncpy.c: Likewise.
60886         * lib/strcasecmp.c: Likewise.
60887         * lib/strcasestr.c: Likewise.
60888         * lib/strcspn.c: Likewise.
60889         * lib/striconv.c: Likewise.
60890         * lib/strncasecmp.c: Likewise.
60891         * lib/strnlen1.c: Likewise.
60892         * lib/strstr.c: Likewise.
60893         * lib/strtok_r.c: Likewise.
60894         * lib/tls.c: Likewise.
60895         * lib/tmpdir.c: Likewise.
60896         * lib/unicodeio.c: Likewise.
60897         * lib/unsetenv.c: Likewise.
60898         * lib/vasnprintf.c: Likewise.
60899         * lib/vasprintf.c: Likewise.
60900         * lib/wait-process.c: Likewise.
60901         * lib/xallocsa.c: Likewise.
60902         * lib/xsetenv.c: Likewise.
60903         * lib/xstriconv.c: Likewise.
60904
60905 2006-09-13  Simon Josefsson  <jas@extundo.com>
60906
60907         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
60908         that internally, suggested by Ralf Wildenhues
60909         <Ralf.Wildenhues@gmx.de>.
60910
60911 2006-09-13  Simon Josefsson  <jas@extundo.com>
60912
60913         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
60914         @LIBOBJS@.
60915         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60916
60917 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60918
60919         * lib/_fpending.c: Include <config.h> unconditionally, since we no
60920         longer worry about uses that don't define HAVE_CONFIG_H.
60921         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
60922         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
60923         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
60924         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
60925         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
60926         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
60927         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
60928         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
60929         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
60930         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
60931         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
60932         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
60933         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
60934         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
60935         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
60936         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
60937         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
60938         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
60939         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
60940         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
60941         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
60942         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
60943         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
60944         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
60945         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
60946         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
60947         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
60948         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
60949         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
60950         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
60951         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
60952         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
60953         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
60954         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
60955         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
60956         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
60957         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
60958         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
60959         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
60960         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
60961         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
60962         Likewise.
60963
60964 2006-09-13  Eric Blake  <ebb9@byu.net>
60965
60966         * lib/getopt.c: Fix typo in last commit.
60967
60968 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60969
60970         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
60971         dgettext.
60972
60973 2006-09-12  Jim Meyering  <jim@meyering.net>
60974
60975         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
60976         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
60977         Reported by Nelson H. F. Beebe.
60978
60979 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60980
60981         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
60982         program_invocation_name and program_invocation_short_name are
60983         initialized.
60984         * lib/argp-namefrob.h: Move declarations of program_invocation_name
60985         and program_invocation_short_name to argp.h, so they are visible
60986         to user programs.
60987         * lib/argp.h: Likewise
60988
60989 2006-09-10  Bruno Haible  <bruno@clisp.org>
60990
60991         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60992         m4/inttypes_h.m4, m4/uintmax_t.m4.
60993
60994 2006-09-10  Bruno Haible  <bruno@clisp.org>
60995
60996         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
60997         gl_AC_TYPE_UINTMAX_T.
60998
60999 2006-09-10  Bruno Haible  <bruno@clisp.org>
61000
61001         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
61002
61003 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
61004
61005         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
61006         convention.  Text proposed by Bruno Haible.
61007         (struct argp_option): Document the use of N_() wrappers.
61008
61009         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
61010         '\v', and translate the two parts separately, instead of feeding
61011         the whole string to gettext.  This allows to exclude
61012         '\v' from the strings visible to the translator by writing doc
61013         strings as N_("..") "\v" N_("..").
61014
61015 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
61016
61017         * config/srclist.txt: Undo latest change; the bug was fixed.
61018
61019 2006-09-09  Bruno Haible  <bruno@clisp.org>
61020
61021         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
61022         assignments if building a library without libtool.
61023         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
61024         in func_emit_lib_Makefile_am.
61025         (func_import): When building a static library libfoo.a, arrange to
61026         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
61027         (func_create_testdir): Likewise.
61028         * modules/gc (configure.ac, Makefile.am): If building statically,
61029         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
61030         * modules/iconvme (configure.ac, Makefile.am): Likewise.
61031         * modules/striconv (configure.ac, Makefile.am): Likewise.
61032         Based on a suggestion by Ralf Wildenhues.
61033
61034 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61035
61036         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61037         Check for unistd.h too, since Autoconf doesn't assume POSIX.
61038         Also:
61039
61040         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61041         Add year_2050_test to catch glibc bug 2821
61042         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61043
61044         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61045         Prefer #ifdef to #if.
61046
61047         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
61048         Return from 'main' instead of calling 'exit'.
61049
61050 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61051
61052         * lib/mktime.c (guess_time_tm): Fix bug where mktime
61053         returned the maximum time_t value rather than (time_t) -1.
61054         Problem originally reported by William Bardwell
61055         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
61056
61057         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61058         Moved to here ...
61059         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
61060         ... from here.
61061
61062 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
61063
61064         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
61065         2821 is fixed.
61066
61067 2006-09-08  Jim Meyering  <jim@meyering.net>
61068
61069         Don't make generated files read-only.  That would bother too many
61070         people.  However, do retain the ability to work when targets are
61071         read-only: remove the destination and temporary files before writing
61072         them (when generated via sed or echo), or by using the -f option for
61073         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
61074         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61075         * modules/byteswap, modules/configmake, modules/fcntl:
61076         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61077         * modules/localcharset, modules/netinet_in, modules/poll:
61078         * modules/stdbool, modules/stdint, modules/sys_select:
61079         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61080
61081 2006-09-08  Jim Meyering  <jim@meyering.net>
61082
61083         Avoid new build failure on FreeBSD 6.0.
61084         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
61085         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
61086         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
61087
61088 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61089
61090         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
61091
61092 2006-09-07  Jim Meyering  <jim@meyering.net>
61093
61094         Fix global typo in last change: use chmod u-w, not chmod u-x.
61095         Spotted by Paul Eggert and Bruce Korb.
61096         * modules/alloca-opt, modules/argz, modules/arpa_inet:
61097         * modules/byteswap, modules/configmake, modules/fcntl:
61098         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
61099         * modules/localcharset, modules/netinet_in, modules/poll:
61100         * modules/stdbool, modules/stdint, modules/sys_select:
61101         * modules/sys_socket, modules/sys_stat, modules/sysexits:
61102
61103 2006-09-06  Jim Meyering  <jim@meyering.net>
61104
61105         Make generated files be read-only.
61106         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
61107         Ensure that each generated file is now read-only.
61108         * modules/argz: Likewise.
61109         * modules/arpa_inet: Likewise.
61110         * modules/byteswap: Likewise.
61111         * modules/configmake: Likewise.
61112         * modules/fcntl: Likewise.
61113         * modules/fnmatch: Likewise.
61114         * modules/getopt: Likewise.
61115         * modules/glob: Likewise.
61116         * modules/inttypes: Likewise.
61117         * modules/netinet_in: Likewise.
61118         * modules/poll: Likewise.
61119         * modules/stdbool: Likewise.
61120         * modules/stdint: Likewise.
61121         * modules/sys_select: Likewise.
61122         * modules/sys_socket: Likewise.
61123         * modules/sys_stat: Likewise.
61124         * modules/sysexits: Likewise.
61125         * modules/localcharset: Same as above, but continue using temporary
61126         file named "t-$@" (why different?) rather than the "$@-t" used
61127         everywhere else.
61128
61129         * modules/sysexits (Makefile.am): Replace literal occurrences
61130         of "sysexit.h" more readable, and more consistent, "$@".
61131
61132 2006-09-06  Bruno Haible  <bruno@clisp.org>
61133
61134         * modules/striconv: New file.
61135         * modules/xstriconv: New file.
61136         * MODULES.html.sh (Internationalization functions): Add striconv,
61137         xstriconv.
61138
61139 2006-09-06  Bruno Haible  <bruno@clisp.org>
61140
61141         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
61142         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
61143         not using libtool correctly.
61144
61145 2006-09-06  Bruno Haible  <bruno@clisp.org>
61146
61147         * lib/striconv.h: New file.
61148         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
61149         iconvstring.c.
61150         * lib/xstriconv.h: New file.
61151         * lib/xstriconv.c: New file.
61152
61153 2006-09-06  Bruno Haible  <bruno@clisp.org>
61154
61155         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61156         lib_..._LDFLAGS.
61157
61158 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61159
61160         * lib/argz_.h: Sync from Libtool.
61161
61162         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
61163                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61164
61165         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
61166
61167 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61168
61169         * modules/trim: New file.
61170
61171 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
61172
61173         * lib/trim.h: New file.
61174         * lib/trim.c: New file.
61175
61176 2006-09-05  Bruno Haible  <bruno@clisp.org>
61177
61178         * MODULES.html.sh (String handling): Add trim.
61179
61180 2006-09-04  Karl Berry  <karl@gnu.org>
61181
61182         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
61183         until next release.
61184
61185 2006-09-03  Bruno Haible  <bruno@clisp.org>
61186
61187         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
61188         correctly.
61189
61190 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61191
61192         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
61193         not gl_GETLOADAVG.  Omit unneeded semicolons.
61194         Problems reported by Ralf Wildenhues in
61195         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61196         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
61197         at the end, which is the usual gnulib style.
61198
61199         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
61200         of doing all the work ourselves.
61201         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
61202         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
61203
61204 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61205
61206         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
61207         Problem reported by Ralf Wildenhues in
61208         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
61209
61210         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
61211         HAVE_STRUCT_STATFS_F_FSTYPENAME.
61212
61213 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
61214
61215         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
61216         yesterday's patch by changing test -n to test -z.
61217
61218 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61219
61220         * modules/getloadavg (Files): Add m4/getloadavg.m4.
61221         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
61222         the former is now obsolescent.
61223
61224         * modules/chdir-long (Depends-on): Add fcntl.
61225
61226 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61227
61228         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
61229         obsolescent, and programs should use gnulib instead.
61230         * m4/getloadavg.m4: New file, with contents taken from Autoconf
61231         but with prefixes changed.
61232
61233 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
61234
61235         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
61236         or stdbool.h, because they might not exist while configuring.
61237
61238         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
61239         Don't include unistd.h or limits.h; not needed, since chdir-long.h
61240         does that for us.
61241         (O_DIRECTORY): Remove.
61242
61243 2006-08-31  Eric Blake  <ebb9@byu.net>
61244
61245         * gnulib-tool: Don't let emacs change spaces to TAB.
61246
61247 2006-08-31  Bruno Haible  <bruno@clisp.org>
61248
61249         * gnulib-tool: When calling func_import more than once, do it in a
61250         subshell.
61251         Reported by Eric Blake <ebb9@byu.net>.
61252
61253 2006-08-31  Bruno Haible  <bruno@clisp.org>
61254
61255         * gnulib-tool (nl): Remove variable.
61256         (sed_transform_lib_file): Use more robust test for config-h module.
61257         (func_import): Fix typo in 2006-08-25 patch.
61258
61259 2006-08-31  Bruno Haible  <bruno@clisp.org>
61260
61261         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
61262         specified, augment Makefile.am variables instead of assigning them.
61263
61264 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61265
61266         Work around a bug in both the Linux and SunOS 64-bit kernels:
61267         nanosleep mishandles sleeps for longer than 2**31 seconds.
61268         Problem reported by Frank v Waveren in
61269         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61270         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
61271         Check for nanosleep bug.
61272         (LIB_NANOSLEEP): Append clock_gettime library if needed.
61273
61274 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61275
61276         Work around a bug in both the Linux and SunOS 64-bit kernels:
61277         nanosleep mishandles sleeps for longer than 2**31 seconds.
61278         Problem reported by Frank v Waveren in
61279         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
61280         * lib/nanosleep.c (BILLION): New constant.
61281         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
61282         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
61283         implementation.
61284
61285 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61286
61287         * modules/nanosleep (Depends-on): Add gettime.
61288
61289 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
61290         and Simon Josefsson  <jas@extundo.com>
61291         and Oskar Liljeblad  <oskar@osk.mine.nu>
61292
61293         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
61294         * gnulib-tool (func_import): New license type 'unmodifiable license
61295         text'.
61296         * modules/fdl: Use it.  Longer description.
61297         * module/gpl, module/lgpl: New files.
61298
61299 2006-08-30  Jim Meyering  <jim@meyering.net>
61300
61301         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
61302         shadowing the parameter.
61303
61304 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61305
61306         Sync from Libtool:
61307
61308         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61309
61310         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
61311         sharing with gnulib.  Report by Eric Blake.
61312
61313 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61314
61315         * modules/isapipe: New file.
61316         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
61317
61318 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61319
61320         * modules/configmake (Makefile.am): Add a comment, and omit
61321         the CONFIGMAKE_ prefix from generated macro names.  Suggested
61322         by Bruno Haible.
61323
61324 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61325
61326         * m4/isapipe.m4: New file.
61327
61328 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
61329
61330         * lib/isapipe.c, lib/isapipe.h: New files.
61331
61332 2006-08-29  Jim Meyering  <jim@meyering.net>
61333
61334         * modules/configmake (Makefile.am): Make configmake.h depend on
61335         Makefile.  Otherwise, a stale configmake.h could hang around.
61336
61337 2006-08-29  Eric Blake  <ebb9@byu.net>
61338
61339         * lib/error.c (error_at_line, print_errno_message): Match libc, after
61340         resolution of upstream bug 3044.
61341
61342 2006-08-29  Bruno Haible  <bruno@clisp.org>
61343
61344         * modules/localcharset (Depends-on): Add configmake.
61345         (Makefile.am): Remove setting of LIBDIR through DEFS.
61346
61347 2006-08-29  Bruno Haible  <bruno@clisp.org>
61348
61349         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
61350         defined.
61351
61352 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61353
61354         * modules/fcntl: New file.
61355         * modules/chdir-safer (Depends-on): Add fcntl.
61356         * modules/fts: Likewise.
61357         * modules/mkdir-p: Likewise.
61358
61359         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
61360         This undoes the most recent change, since we're now addressing the
61361         problem in a different way.
61362
61363         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
61364         into output, since the output might be called Makefile.am even
61365         if $makefile_name is something different.
61366         (func_import): Use $makefile_am rather than
61367         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
61368         empty.
61369
61370         * modules/inttypes (Files): Add m4/inttypes-h.m4.
61371
61372 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61373
61374         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
61375         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
61376         recent change to stdint.m4, since we're now addressing the problem in a
61377         different way.
61378
61379 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         * m4/fcntl_h.m4: New file.
61382
61383 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
61384
61385         * lib/fcntl_.h: New file.
61386         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
61387         the fcntl module.
61388         * lib/dirchownmod.c: Likewise.
61389         * lib/fts.c: Likewise.
61390
61391         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
61392         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
61393         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
61394         just before including <inttypes.h>, to avoid circular inclusion.
61395
61396 2006-08-28  Jim Meyering  <jim@meyering.net>
61397
61398         * doc/visibility.texi: Actually read and correct the grammar of the
61399         sentence affected by yesterday's change.
61400
61401 2006-08-28  Eric Blake  <ebb9@byu.net>
61402
61403         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
61404         needs wrapper.
61405
61406 2006-08-28  Eric Blake  <ebb9@byu.net>
61407
61408         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
61409
61410 2006-08-28  Eric Blake  <ebb9@byu.net>
61411
61412         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
61413
61414 2006-08-28  Bruno Haible  <bruno@clisp.org>
61415
61416         * modules/c-strstr: New file, from GNU gettext.
61417         * MODULES.html.sh (String handling): Add c-strstr.
61418
61419 2006-08-28  Bruno Haible  <bruno@clisp.org>
61420
61421         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
61422         macros.
61423         Reported by Eric Blake.
61424
61425 2006-08-28  Bruno Haible  <bruno@clisp.org>
61426
61427         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
61428         (VASNPRINTF): Return a string of length > INT_MAX without failing.
61429         * lib/vasprintf.c: Include errno.h, limits.h.
61430         (EOVERFLOW): New fallback definition.
61431         (vasprintf): Test here whether the string length is > INT_MAX.
61432         * lib/vsnprintf.c: Include errno.h, limits.h.
61433         (EOVERFLOW): New fallback definition.
61434         (vsnprintf): Fix bug when generated string was too long for the buffer.
61435         Test here whether the string length is > INT_MAX.
61436
61437 2006-08-28  Bruno Haible  <bruno@clisp.org>
61438
61439         * lib/inttypes_.h (SCNX*): Remove definitions.
61440         Reported by Eric Blake.
61441
61442 2006-08-28  Bruno Haible  <bruno@clisp.org>
61443
61444         * lib/c-strstr.h: New file, from GNU gettext.
61445         * lib/c-strstr.c: New file, from GNU gettext.
61446
61447 2006-08-28  Bruno Haible  <bruno@clisp.org>
61448
61449         * gnulib-tool: Reorder some statements.
61450
61451 2006-08-28  Bruno Haible  <bruno@clisp.org>
61452
61453         * gnulib-tool: New option --makefile-name.
61454         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
61455         $makefile_name.
61456         (func_import): Write $makefile_name to the cache file, and read it from
61457         there unless explicitly specified. Use $makefile_name as file name
61458         instead of Makefile.am. Adjust the recommendations accordingly.
61459
61460 2006-08-28  Bruno Haible  <bruno@clisp.org>
61461
61462         * gnulib-tool (func_verify_module): Check against misapplying patch.
61463
61464 2006-08-28  Bruno Haible  <bruno@clisp.org>
61465
61466         * gnulib-tool (func_relativize, func_relconcat): New functions.
61467         Give an error if --local-dir is given with --update.
61468         Remove trailing slashes from $local_gnulib_dir.
61469         (func_import): Store the relativized $local_gnulib_dir in
61470         gnulib-cache.m4, and read it from there if not specified explicitly.
61471
61472 2006-08-28  Bruno Haible  <bruno@clisp.org>
61473
61474         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
61475         is the current directory. Respect also $local_gnulib_dir.
61476
61477 2006-08-28  Bruno Haible  <bruno@clisp.org>
61478             Simon Josefsson  <jas@extundo.com>
61479
61480         BeOS portability.
61481         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
61482
61483 2006-08-27  Jim Meyering  <jim@meyering.net>
61484
61485         * doc/visibility.texi: Remove duplicate word: "pointer".
61486
61487 2006-08-26  Bruno Haible  <bruno@clisp.org>
61488
61489         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
61490         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
61491         (Makefile.am): Create inttypes.h from inttypes_.h.
61492         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
61493
61494         * modules/imaxabs: New file.
61495
61496         * modules/imaxdiv: New file.
61497
61498 2006-08-26  Bruno Haible  <bruno@clisp.org>
61499
61500         * m4/inttypes.m4: New file.
61501         * m4/_inttypes_h.m4: Remove file.
61502         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
61503         PRI_MACROS_BROKEN.
61504         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
61505
61506         * m4/imaxabs.m4: New file.
61507
61508         * m4/imaxdiv.m4: New file.
61509
61510 2006-08-26  Bruno Haible  <bruno@clisp.org>
61511
61512         * lib/inttypes_.h: New file.
61513         * lib/inttypes.h: Remove file.
61514         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
61515
61516         * lib/imaxabs.c: New file.
61517
61518         * lib/imaxdiv.c: New file.
61519
61520 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61521
61522         New config-h module, so that "make" output needn't be cluttered
61523         by -DHAVE_CONFIG_H.
61524         * MODULES.html.sh (Support for building libraries and executables):
61525         Add config-h.
61526         * modules/config-h: New file.
61527         * gnulib-tool (nl, sed_transform_lib_file): New vars.
61528         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
61529         the config-h module is used.
61530
61531         New configmake module, so that "make" output needn't be cluttered
61532         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
61533         * MODULES.html.sh (Support for building libraries and executables):
61534         Add configmake.
61535         * modules/configmake: New file.
61536
61537 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
61538
61539         * m4/config-h.m4: New file.
61540
61541 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61542
61543         * config/srclist.txt: Add elisp-comp.
61544
61545 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
61546
61547         * MODULES.html.sh (Support for building libraries and executables):
61548         Add elisp-comp.
61549         * build-aux/elisp-comp: New file.
61550         * modules/elisp-comp: New file.
61551
61552 2006-08-24  Bruno Haible  <bruno@clisp.org>
61553
61554         * gnulib-tool (func_create_testdir): Use non-default values of
61555         sourcebase and m4base.
61556
61557 2006-08-24  Bruno Haible  <bruno@clisp.org>
61558
61559         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
61560         HTML structure.
61561
61562 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
61563
61564         * modules/openat (Depends-on): Add lchown.
61565
61566 2006-08-23  Bruno Haible  <bruno@clisp.org>
61567
61568         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
61569         of gl_LOCK_EARLY instead of gl_LOCK.
61570
61571 2006-08-23  Bruno Haible  <bruno@clisp.org>
61572
61573         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
61574         on OSF/1 to no.
61575         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
61576
61577 2006-08-23  Bruno Haible  <bruno@clisp.org>
61578
61579         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
61580         as unusable.
61581
61582         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
61583         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
61584         (gl_LOCK): New macro.
61585
61586 2006-08-22  Simon Josefsson  <jas@extundo.com>
61587
61588         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
61589         to md5 module.
61590
61591 2006-08-22  Simon Josefsson  <jas@extundo.com>
61592
61593         * MODULES.html.sh: Add "Support for maintaining and release
61594         projects".
61595
61596         * build-aux/gnupload: New file, from coreutils.
61597
61598 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61599
61600         Avoid the need for AC_LIBSOURCES in m4 macros.
61601         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
61602         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
61603         * modules/check-version (EXTRA_DIST): Add check-version.h.
61604         * modules/crc (EXTRA_DIST): Add crc.h.
61605         * modules/des (EXTRA_DIST): Add des.h.
61606         * modules/gc (EXTRA_DIST): Add gc.h.
61607         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
61608         * modules/getline (EXTRA_DIST): Add getline.h.
61609         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
61610         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
61611         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
61612         * modules/md2 (EXTRA_DIST): Add md2.h.
61613         * modules/md4 (EXTRA_DIST): Add md4.h.
61614         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
61615         * modules/read-file (EXTRA_DIST): Add read-file.h.
61616         * modules/readline (EXTRA_DIST): Add readline.h.
61617         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
61618         rijndael-api-fst.h.
61619
61620 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61621
61622         * m4/rijndael.m4 (gl_ARCFOUR):
61623         * m4/arctwo.m4 (gl_ARCTWO):
61624         * m4/check-version.m4 (gl_CHECK_VERSION):
61625         * m4/crc.m4 (gl_CRC):
61626         * m4/des.m4 (gl_DES):
61627         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
61628         * m4/gc.m4 (gl_GC):
61629         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
61630         * m4/getline.m4 (gl_FUNC_GETLINE):
61631         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
61632         * m4/hmac-md5.m4 (gl_HMAC_MD5):
61633         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
61634         * m4/md2.m4 (gl_MD2):
61635         * m4/md4.m4 (gl_MD4):
61636         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
61637         * m4/read-file.m4 (gl_FUNC_READ_FILE):
61638         * m4/readline.m4 (gl_FUNC_READLINE):
61639         * m4/rijndael.m4 (gl_RIJNDAEL):
61640         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61641         to get the necessary .h files and whatnot.
61642
61643 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
61644
61645         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
61646         gnulib rather than the other way around.
61647         * config/srclistvars.sh (COREUTILS): Remove.
61648
61649 2006-08-22  Jim Meyering  <jim@meyering.net>
61650
61651         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
61652
61653         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
61654
61655 2006-08-22  Eric Blake  <ebb9@byu.net>
61656
61657         * modules/regexprops-generic: New file.
61658         * MODULES.html.sh (Support for building documentation): List it.
61659
61660 2006-08-22  Eric Blake  <ebb9@byu.net>
61661
61662         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
61663         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
61664         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
61665         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
61666
61667 2006-08-22  Bruno Haible  <bruno@clisp.org>
61668
61669         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
61670         and lib_LTLIBRARIES like the other lib_* variables.
61671
61672 2006-08-22  Bruno Haible  <bruno@clisp.org>
61673
61674         * build-aux/x-to-1.in: New file, from GNU gettext.
61675
61676 2006-08-22  Bruno Haible  <bruno@clisp.org>
61677
61678         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
61679         <utmpx.h> exists.
61680
61681 2006-08-22  Bruno Haible  <bruno@clisp.org>
61682
61683         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
61684         <utmpx.h> exists.
61685
61686 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61687
61688         BeOS portability.
61689         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
61690         exist.
61691         Problem reported by Bruno Haible.
61692
61693 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61694
61695         Avoid the need for AC_LIBSOURCES in m4 macros.
61696         * modules/acl (EXTRA_DIST): Add acl.h.
61697         * modules/argmatch (Files): Add m4/argmatch.m4.
61698         (configure.ac): Add gl_ARGMATCH.
61699         (EXTRA_DIST): Renamed from lib_SOURCES, for
61700         consistency with the other modules.  Remove argmatch.c.
61701         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
61702         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
61703         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
61704         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
61705         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
61706         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
61707         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
61708         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
61709         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
61710         * modules/closeout (EXTRA_DIST): Add closeout.h.
61711         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
61712         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
61713         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
61714         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
61715         dirname.h; remove basename.c and stripslash.c.
61716         * modules/exclude (EXTRA_DIST): Add exclude.h.
61717         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
61718         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
61719         * modules/file-type (EXTRA_DIST): Add file-type.h.
61720         * modules/filemode (EXTRA_DIST): Add filemode.h.
61721         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
61722         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61723         * modules/fpending (EXTRA_DIST): Add __fpending.h.
61724         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
61725         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
61726         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
61727         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
61728         * modules/getdate (EXTRA_DIST): Add getdate.c.
61729         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
61730         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
61731         * modules/getpass (EXTRA_DIST): Add getpass.h.
61732         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
61733         * modules/group-member (EXTRA_DIST): Add group-member.h.
61734         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
61735         * modules/hash (EXTRA_DIST): Add hash.h.
61736         * modules/human (EXTRA_DIST): Add human.h.
61737         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
61738         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
61739         * modules/lchown (EXTRA_DIST): Add lchown.h.
61740         * modules/long-options (EXTRA_DIST): Add long-options.h.
61741         * modules/lstat (EXTRA_DIST): Add lstat.h.
61742         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
61743         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
61744         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
61745         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
61746         * modules/memxor (EXTRA_DIST): Add memxor.h.
61747         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
61748         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
61749         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
61750         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
61751         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
61752         * modules/physmem (EXTRA_DIST): Add physmem.h.
61753         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
61754         * modules/posixver (EXTRA_DIST): Add posixver.h.
61755         * modules/quote (EXTRA_DIST): Add quote.h.
61756         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
61757         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
61758         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
61759         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
61760         regex_internal.h regexec.c.
61761         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
61762         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
61763         * modules/same (EXTRA_DIST): Add same.h.
61764         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
61765         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
61766         * modules/savedir (EXTRA_DIST): Add savedir.h.
61767         * modules/sha1 (EXTRA_DIST): Add sha1.h.
61768         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
61769         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
61770         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
61771         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
61772         * modules/strdup (EXTRA_DIST): Add strdup.h.
61773         * modules/strftime (EXTRA_DIST): Add strftime.h.
61774         * modules/strndup (EXTRA_DIST): Add strndup.h.
61775         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
61776         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
61777         * modules/time_r (EXTRA_DIST): Add time_r.h.
61778         * modules/timespec (EXTRA_DIST): Add timespec.h.
61779         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
61780         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
61781         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
61782         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
61783         * modules/userspec (EXTRA_DIST): Add userspec.h.
61784         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
61785         * modules/utimens (EXTRA_DIST): Add utimens.h.
61786         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
61787         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
61788         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
61789         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
61790         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
61791         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
61792         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
61793         * modules/yesno (EXTRA_DIST): Add yesno.h.
61794
61795 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
61796
61797         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
61798
61799         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
61800         * m4/dev-ino.m4, same-inode.m4: Remove.
61801
61802         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
61803         * m4/acl.m4 (AC_FUNC_ACL):
61804         * m4/backupfile.m4 (gl_BACKUPFILE):
61805         * m4/c-strtod.m4 (gl_C99_STRTOLD):
61806         * m4/canon-host.m4 (gl_CANON_HOST):
61807         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
61808         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
61809         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
61810         * m4/cloexec.m4 (gl_CLOEXEC):
61811         * m4/close-stream.m4 (gl_CLOSE_STREAM):
61812         * m4/closeout.m4 (gl_CLOSEOUT):
61813         * m4/dirfd.m4 (gl_FUNC_DIRFD):
61814         * m4/dirname.m4 (gl_DIRNAME):
61815         * m4/exclude.m4 (gl_EXCLUDE):
61816         * m4/exitfail.m4 (gl_EXITFAIL):
61817         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
61818         * m4/file-type.m4 (gl_FILE_TYPE):
61819         * m4/filemode.m4 (gl_FILEMODE):
61820         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
61821         * m4/fpending.m4 (gl_FUNC_FPENDING):
61822         * m4/fprintftime.m4 (gl_FPRINTFTIME):
61823         * m4/fts.m4 (gl_FUNC_FTS):
61824         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
61825         * m4/getdate.m4 (gl_GETDATE):
61826         * m4/gethrxtime.m4 (gl_GETHRXTIME):
61827         * m4/getpagesize.m4 (gl_GETPAGESIZE):
61828         * m4/getpass.m4 (gl_FUNC_GETPASS):
61829         * m4/gettime.m4 (gl_GETTIME):
61830         * m4/getugroups.m4 (gl_GETUGROUPS):
61831         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
61832         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
61833         * m4/hard-locale.m4 (gl_HARD_LOCALE):
61834         * m4/hash.m4 (gl_HASH):
61835         * m4/idcache.m4 (gl_IDCACHE):
61836         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
61837         * m4/lchown.m4 (gl_FUNC_LCHOWN):
61838         * m4/long-options.m4 (gl_LONG_OPTIONS):
61839         * m4/lstat.m4 (gl_FUNC_LSTAT):
61840         * m4/md5.m4 (gl_MD5):
61841         * m4/memcasecmp.m4 (gl_MEMCASECMP):
61842         * m4/memcoll.m4 (gl_MEMCOLL):
61843         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
61844         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
61845         * m4/memxor.m4 (gl_MEMXOR):
61846         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
61847         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
61848         * m4/modechange.m4 (gl_MODECHANGE):
61849         * m4/mountlist.m4 (gl_MOUNTLIST):
61850         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61851         * m4/openat.m4 (gl_FUNC_OPENAT):
61852         * m4/pathmax.m4 (gl_PATHMAX):
61853         * m4/physmem.m4 (gl_PHYSMEM):
61854         * m4/posixtm.m4 (gl_POSIXTM):
61855         * m4/posixver.m4 (gl_POSIXVER):
61856         * m4/quote.m4 (gl_QUOTE):
61857         * m4/quotearg.m4 (gl_QUOTEARG):
61858         * m4/readtokens.m4 (gl_READTOKENS):
61859         * m4/readutmp.m4 (gl_READUTMP):
61860         * m4/regex.m4 (gl_REGEX):
61861         * m4/safe-read.m4 (gl_SAFE_READ):
61862         * m4/safe-write.m4 (gl_SAFE_WRITE):
61863         * m4/same.m4 (gl_SAME):
61864         * m4/save-cwd.m4 (gl_SAVE_CWD):
61865         * m4/savedir.m4 (gl_SAVEDIR):
61866         * m4/settime.m4 (gl_SETTIME):
61867         * m4/sha1.m4 (gl_SHA1):
61868         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
61869         * m4/stat-macros.m4 (gl_STAT_MACROS):
61870         * m4/stat-time.m4 (gl_STAT_TIME):
61871         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
61872         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
61873         * m4/strdup.m4 (gl_FUNC_STRDUP):
61874         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
61875         * m4/strndup.m4 (gl_FUNC_STRNDUP):
61876         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
61877         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
61878         * m4/time_r.m4 (gl_TIME_R):
61879         * m4/timespec.m4 (gl_TIMESPEC):
61880         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
61881         * m4/unlinkdir.m4 (gl_UNLINKDIR):
61882         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
61883         * m4/userspec.m4 (gl_USERSPEC):
61884         * m4/utimecmp.m4 (gl_UTIMECMP):
61885         * m4/utimens.m4 (gl_UTIMENS):
61886         * m4/xalloc.m4 (gl_XALLOC):
61887         * m4/xgetcwd.m4 (gl_XGETCWD):
61888         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
61889         * m4/xreadlink.m4 (gl_XREADLINK):
61890         * m4/xstrtod.m4 (gl_XSTRTOD):
61891         * m4/yesno.m4 (gl_YESNO):
61892         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
61893         to get the necessary .h files and whatnot.
61894
61895 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
61896             Bruno Haible  <bruno@clisp.org>
61897
61898         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
61899         /bin/sh understanding of '!' conditional negation.
61900
61901 2006-08-21  Jim Meyering  <jim@meyering.net>
61902
61903         * modules/openat (Depends-on): Really alphabetize.
61904
61905         * modules/acl (Depends-on): Add error and quote.
61906
61907         * check-module (find_included_lib_files): Add at-func.c to the
61908         ok-to-include-more-than-once white list.
61909
61910         * modules/openat (Depends-on): Add lstat.  Alphabetize.
61911
61912 2006-08-21  Bruno Haible  <bruno@clisp.org>
61913
61914         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61915         Emit a pkgdata_DATA variable only if some snippets add contents to it.
61916         Reported by Martin Lambers <marlam@marlam.de>.
61917
61918 2006-08-21  Bruno Haible  <bruno@clisp.org>
61919
61920         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
61921         specify an installation location, don't emit a noinst_LIBRARIES or
61922         noinst_LTLIBRARIES assignment.
61923
61924 2006-08-21  Bruno Haible  <bruno@clisp.org>
61925
61926         BeOS portability.
61927         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
61928         BeOS has mbrtowc() but no <wctype.h>.
61929
61930 2006-08-21  Bruno Haible  <bruno@clisp.org>
61931
61932         BeOS portability.
61933         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
61934         exist.
61935
61936 2006-08-21  Bruno Haible  <bruno@clisp.org>
61937
61938         BeOS portability.
61939         * lib/mbchar.h: Include <wctype.h> only if it exists.
61940
61941 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61942
61943         Remove files that are no longer needed by their respective modules.
61944         * m4/obstack.m4: Remove.
61945         * m4/strerror_r.m4: Remove.
61946         * m4/uint32_t.m4: Remove.
61947         * m4/uintptr_t.m4: Remove.
61948         * m4/ullong_max.m4: Remove.
61949         * m4/xstrtoimax.m4: Remove.
61950         * m4/xstrtoumax.m4: Remove.
61951
61952         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
61953         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
61954         dependencies now capture this.
61955
61956         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
61957         Do not use AC_LIBSOURCES, since gnulib modules now do this.
61958         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
61959         * m4/human.m4 (gl_HUMAN): Likewise.
61960         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
61961         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
61962
61963         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
61964
61965         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
61966         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
61967         stdint.
61968         * m4/human.m4 (gl_HUMAN): Likewise.
61969         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
61970         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
61971         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61972         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61973         * m4/xstrtol (gl_XSTRTOL): Likewise.
61974
61975         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
61976         AC_TYPE_LONG_LONG_INT.
61977         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
61978         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
61979         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
61980         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
61981
61982         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
61983         on stdbool.
61984
61985         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
61986         (gl_PREREQ_XSTRTOUL): Remove.
61987
61988         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
61989
61990         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
61991         mode.
61992
61993 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
61994
61995         Add and change modules to make it easier for coreutils to use
61996         gnulib-tool.
61997         * modules/backupfile (Files): Remove m4/d-ino.m4.
61998         (Depends-on): Add d-ino.
61999         * modules/cycle-check (Depends-on): Add stdint.
62000         (lib_SOURCES): Add cycle-check.h.
62001         * modules/d-ino: New module.
62002         * modules/d-type: New module.
62003         * modules/error (Files): Remove m4/strerror_r.m4.
62004         * modules/filemode (Files): Add m4/st_dm_mode.m4.
62005         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
62006         m4/inttypes_h.m4, m4/uintmax_t.m4.
62007         (Depends-on): Add stdint.
62008         (lib_SOURCES): Add fsusage.h.
62009         * modules/getcwd (Files): Remove d-ino.m4.
62010         (Depends-on): Add d-ino.
62011         * modules/getndelim2 (Depends-on): Add stdint.
62012         * modules/glob (Files): Remove m4/d-type.m4.
62013         (Depends-on): Add d-type.
62014         * modules/host-os: New module.
62015         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
62016         m4/inttypes_h.m4, m4/uintmax_t.m4.
62017         * Depends-on: Add stdint.
62018         (lib_SOURCES): Add human.h.
62019         * modules/inttostr (Files): Remove m4/intmax_t.m4,
62020         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
62021         m4/uintmax_t.m4, m4/ulonglong.m4.
62022         (Depends-on): Add stdint.
62023         (EXTRA_DIST): Add inttostr.h.
62024         * modules/lchmod: New module.
62025         * modules/link-follow: New module.
62026         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
62027         (Depends-on): Add lchmod.
62028         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
62029         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
62030         (Depends-on): Add stdint.
62031         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
62032         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
62033         (Depends-on): Add stdint.
62034         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
62035         * modules/perl: New module.
62036         * modules/regex (Depends-on): Add stdint.
62037         * modules/rmdir-errno: New module.
62038         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62039         m4/intmax_t.m4.
62040         (Depends-on): Add stdint.
62041         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
62042         m4/uintmax_t.m4.
62043         (Depends-on): Add stdint.
62044         * modules/unlink-busy: New module.
62045         * modules/utimecmp (Depends-on): Add stdint.
62046         * modules/uptime: New module.
62047         * modules/winsz-ioctl: New module.
62048         * modules/winsz-termios: New module.
62049         * modules/xnanosleep (Depends-on): Add nanosleep.
62050         * modules/ullong_max: Remove.
62051         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
62052         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
62053         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
62054         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
62055         (Depends-on): Add inttypes.
62056         (lib_SOURCES): Add xstrtol.h.
62057         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
62058         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
62059         * MODULES.html.sh: Move 'assert' into the assert section.
62060         Move 'dummy' into the linking section.
62061         Remove ullong_max.
62062         Add section for compatibility checks for POSIX:2001 functions,
62063         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
62064         winsz-ioctl, and winsz-termios into it.
62065         Add lchmod.
62066         Add top-level Misc section and put host-os, perl, and uptime
62067         into it.
62068
62069 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
62070
62071         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
62072         now assume the stdint module.  Do not include inttypes.h.
62073         * lib/fsusage.h: Likewise.
62074         * lib/getndelim2.c: Likewise.
62075         * lib/human.h: Likewise.
62076         * lib/inttostr.h: Likewise.
62077         * lib/obstack.c: Likewise.
62078         * lib/regex_internal.h: Likewise.
62079         * lib/tempname.c: Likewise.
62080         * lib/utimecmp.c: Likewise.
62081         * lib/xstrtol.h: Likewise.
62082
62083         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
62084
62085         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
62086         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
62087         * lib/xtime.h: Likewise.
62088
62089 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62090
62091         * modules/openat (Files): Add lib/fchmodat.c.
62092         Fixes problem reported by Jay Youngman.
62093
62094 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62095
62096         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
62097         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
62098
62099 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
62100             Bruno Haible  <bruno@clisp.org>
62101
62102         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
62103         and is a script that invokes bison. Tighten the code. Add comments.
62104
62105 2006-08-18  Jim Meyering  <jim@meyering.net>
62106
62107         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
62108         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
62109         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
62110         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
62111
62112 2006-08-18  Bruno Haible  <bruno@clisp.org>
62113
62114         * modules/bison-i18n: New file.
62115         * MODULES.html.sh (Internationalization functions): Add it.
62116
62117 2006-08-18  Bruno Haible  <bruno@clisp.org>
62118
62119         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
62120         sys/statvfs.h. When getmntinfo was found, check its declaration and
62121         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
62122
62123 2006-08-18  Bruno Haible  <bruno@clisp.org>
62124
62125         * m4/bison-i18n.m4: New file, from bison.
62126
62127 2006-08-18  Bruno Haible  <bruno@clisp.org>
62128
62129         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
62130         (ME_DUMMY): Treat "kernfs" as a dummy.
62131         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
62132
62133 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         Update from coreutils.
62136
62137         2006-08-15  Jim Meyering  <jim@meyering.net>
62138
62139         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
62140
62141         2006-01-17  Jim Meyering  <jim@meyering.net>
62142
62143         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
62144
62145         2006-01-11  Jim Meyering  <jim@meyering.net>
62146
62147         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
62148         Check for the lchmod function.
62149
62150 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62151
62152         Update from coreutils.
62153
62154         * lib/__fpending.h: Add copyright notice.
62155         * lib/fprintftime.h: Likewise.
62156         * lib/savedir.c: Use (C) in copyright notice.
62157         * lib/savedir.h: Likewise.
62158
62159         2006-08-15  Jim Meyering  <jim@meyering.net>
62160
62161         * lib/at-func.c: New file, with the logic of all emulated at-functions.
62162         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
62163         in support of the EXPECTED_ERRNO macro.
62164         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
62165         definitions.  Instead, define the appropriate symbols and include
62166         "at-func.c".
62167         * lib/mkdirat.c (mkdirat): Likewise.
62168         * lib/fchmodat.c (fchmodat): Likewise.
62169         (ENOSYS): Remove definition.
62170         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
62171         it.  Don't include "unistd--.h" -- it wasn't ever used.
62172
62173         2006-01-17  Jim Meyering  <jim@meyering.net>
62174
62175         Rewrite fts.c not to change the current working directory,
62176         by using openat, fstatat, fdopendir, etc..
62177
62178         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
62179         (HAVE_OPENAT_SUPPORT): Define.
62180         [_LIBC] (fchdir): Don't undef or define; no longer used.
62181         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
62182         Now, this `function' always succeeds, and consumes its file descriptor
62183         parameter -- so callers must not close such FDs.  Update callers.
62184         (diropen_fd, opendirat, cwd_advance_fd): New functions.
62185         (diropen): Add parameter, SP.  Adjust all callers.
62186         Implement using diropen_fd, rather than open.
62187         (fts_open): Initialize new member, fts_cwd_fd.
62188         Remove fts_rft-setting code.
62189         (fts_close): Close fts_cwd_fd, if necessary.
62190         (__opendir2): Define in terms of opendir or opendirat,
62191         depending on whether the FST_NOCHDIR flag is set.
62192         (fts_build): Since fts_safe_changedir consumes its FD, and since
62193         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
62194         and close the dup'd file descriptor upon failure.
62195         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
62196         (fts_safe_changedir): Tweak semantics to reflect that this function
62197         now calls cwd_advance_fd and hence consumes its FD argument.
62198         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
62199         [struct FTS] (fts_rft): Remove now-unused member.
62200         [struct FTS] (fts_cycle.state): Improve comment.
62201
62202         * lib/openat.c (openat_needs_fchdir): New function.
62203         * lib/openat.h (openat_needs_fchdir): Declare it.
62204
62205 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
62206
62207         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
62208         Problem and fix reported by Pádraig Brady in
62209         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
62210
62211 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62212
62213         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
62214
62215 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62216
62217         * lib/memcoll.c (memcoll): Optimize for the common case where the
62218         arguments are bytewise equal.
62219
62220 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62221
62222         * doc/regexprops-generic.texi: Add a copyright notice.
62223
62224 2006-08-15  Bruno Haible  <bruno@clisp.org>
62225
62226         * modules/tmpdir (License): Change to LGPL.
62227
62228 2006-08-15  Bruno Haible  <bruno@clisp.org>
62229
62230         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
62231         module.
62232
62233 2006-08-14  Simon Josefsson  <jas@extundo.com>
62234
62235         * config/srclist.txt: Add gnupload.
62236
62237 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62238
62239         Change copyright notice from LGPL 2 to GPL 2, since that's the
62240         standard form used in the gnulib repository.
62241         * tests/test-lock.c: Likewise.
62242         * tests/test-stdint.c: Likewise.
62243         * tests/test-tls.c: Likewise.
62244
62245         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
62246         prelude-manager.  User shorter URLs for GNU projects, without '?'.
62247         Add copyright notice.
62248
62249         * check-module: Add copyright notice.  Output a copyright
62250         notice if "--version" is specified.
62251         * modules/COPYING: New file.
62252         * tests/test-getaddrinfo.c: Add copyright notice.
62253         * tests/test-verify.c: Likewise.
62254
62255 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62256
62257         Change copyright notice from LGPL 2 to GPL 2, since that's the
62258         standard form used in the gnulib repository.
62259         * lib/lock.c: LGPL -> GPL.
62260         * lib/lock.h: Likewise.
62261         * lib/strnlen1.c: Likewise.
62262         * lib/strnlen1.h: Likewise.
62263         * lib/tls.c: Likewise.
62264         * lib/tls.h: Likewise.
62265         * lib/tmpdir.c: Likewise.
62266
62267         * lib/TODO: Remove; this belongs only in coreutils.
62268
62269 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62270
62271         Add copyright notices to long-enough files that lack them, since
62272         otherwise the files aren't clearly free.  Use the same notice that
62273         getdate.texi already uses.
62274         * doc/alloca-opt.texi: Add copyright notice.
62275         * doc/alloca.texi: Likewise.
62276         * doc/ctime.texi: Likewise.
62277         * doc/functions.texi: Likewise.
62278         * doc/gcd.texi: Likewise.
62279         * doc/gnulib-tool.texi: Likewise.
62280         * doc/inet_ntoa.texi: Likewise.
62281         * doc/visibility.texi: Likewise.
62282
62283         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
62284         * doc/quote.texi: Add copyright notice.
62285
62286         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
62287         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
62288         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
62289         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
62290         is now obsolete, and give a pointer to the Sun list.
62291         Add copyright notice.
62292
62293 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62294
62295         * config/srclistvars.sh: Add copyright notice.
62296
62297 2006-08-14  Eric Blake  <ebb9@byu.net>
62298
62299         Import the following change from libc:
62300
62301         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
62302
62303         Upstream bug 2997.
62304         * lib/misc/error.c: Add space between program name and message if file
62305         name is missing.
62306
62307 2006-08-12  Karl Berry  <karl@gnu.org>
62308
62309         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
62310         remove, these originate in gnulib now.
62311
62312 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62313
62314         * doc/Makefile (standards.info standards.html standards.dvi):
62315         Also depend on make-stds.texi.
62316
62317 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62318
62319         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
62320         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
62321
62322         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
62323         in wchar_t.  Problem reported by Eric Blake.
62324
62325         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
62326         LEN is smaller than SIZE.  Suggested by Bruno Haible.
62327         Also, help the compiler to keep LEN in a register.
62328
62329 2006-08-11  Eric Blake  <ebb9@byu.net>
62330
62331         * users.txt: Sort.  Add tar.
62332
62333 2006-08-11  Bruno Haible  <bruno@clisp.org>
62334
62335         * users.txt: New file.
62336
62337 2006-08-11  Bruno Haible  <bruno@clisp.org>
62338
62339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
62340         before <wchar.h>. Needed for OSF/1 and BSD/OS.
62341
62342 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62343
62344         * modules/snprintf (Depends-on): Remove minmax.
62345         (Maintainer): Add self and Bruno.
62346
62347 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62348
62349         * lib/.cppi-disable: Add snprintf.h, socket_.h.
62350         * lib/snprintf.c: Include <errno.h> and <limits.h>.
62351         (EOVERFLOW): Define if the system does not.
62352         Do not include "minmax.h"; it wasn't used.
62353         (snprintf): Don't assume size_t promotes to an unsigned type.
62354         Fix bug when generated string was too long for the buffer: the
62355         buffer's contents are supposed to be the initial prefix of the
62356         output.  Don't assume vasnprintf returns EOVERFLOW if the size
62357         exceeds INT_MAX; do the check ourselves.
62358
62359         Import the following changes from libc:
62360
62361         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
62362
62363         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
62364         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
62365         set wc to the byte which couldn't be converted.
62366         (re_string_reconstruct): Don't clear valid_raw_len before calling
62367         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
62368         tip_context using re_string_context_at.
62369
62370         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
62371
62372         * lib/posix/regex.h: g++ still cannot handled [restrict].
62373
62374         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
62375
62376         * lib/posix/regex.h: Remove special handling for VMS.
62377
62378 2006-08-10  Jim Meyering  <jim@meyering.net>
62379
62380         * modules/same-inode: New module.
62381         * modules/dev-ino: New module.
62382         * modules/cycle-check: Depend on these modules, rather than simply
62383         including their .h files.
62384         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
62385         required via m4/cycle-check.m4.
62386         * modules/same: Depend on new same-inode module, rather than
62387         including same-inode.h.
62388         * modules/chdir-safer: New file.
62389
62390         * modules/chown (Depends-on): Add stat-macros.
62391
62392 2006-08-10  Jim Meyering  <jim@meyering.net>
62393
62394         * m4/cycle-check.m4: New file.
62395         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
62396         * m4/dev-ino.m4, m4/same-inode.m4: New files.
62397
62398 2006-08-10  Eric Blake  <ebb9@byu.net>
62399
62400         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
62401         in from original proposal.
62402
62403 2006-08-10  Eric Blake  <ebb9@byu.net>
62404         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
62405
62406         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
62407         namespace.
62408
62409 2006-08-10  Bruno Haible  <bruno@clisp.org>
62410
62411         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
62412         as well.
62413
62414 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62415
62416         Sync from coreutils.
62417
62418         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
62419
62420         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
62421         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
62422
62423 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62424
62425         * modules/restrict: Remove; no longer needed now that we assume
62426         Autoconf 2.59 or later.
62427         * MODULES.html.sh: Remove 'restrict'.
62428         * modules/argp (Depends-on): Remove 'restrict'.
62429         * modules/base64 (Depends-on): Likewise.
62430         * modules/gc (Depends-on): Likewise.
62431         * modules/getaddrinfo (Depends-on): Likewise.
62432         * modules/glob (Depends-on): Likewise.
62433         * modules/inet_ntop (Depends-on): Likewise.
62434         * modules/inet_pton (Depends-on): Likewise.
62435         * modules/memxor (Depends-on): Likewise.
62436         * modules/regex (Depends-on): Likewise.
62437         * modules/strtok_r (Depends-on): Likewise.
62438         * modules/time_r (Depends-on): Likewise.
62439
62440 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62441
62442         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
62443         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
62444         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62445         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
62446         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62447         * m4/memxor.m4 (gl_MEMXOR): Likewise.
62448         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
62449         gl_C_RESTRICT replaced by AC_C_RESTRICT.
62450
62451         Merge from coreutils.
62452         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
62453         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
62454         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62455         * m4/time_r.m4 (gl_TIME_R): Likewise.
62456
62457 2006-08-09  Karl Berry  <karl@gnu.org>
62458
62459         * config/srclist.txt: no more gettext-tools, per Bruno.
62460
62461 2006-08-08  Eric Blake  <ebb9@byu.net>
62462
62463         * modules/verror: New module.
62464         * MODULES.html.sh: Document it.
62465
62466 2006-08-08  Eric Blake  <ebb9@byu.net>
62467
62468         * lib/verror.h, lib/verror.c: New files.
62469
62470 2006-08-08  Eric Blake  <ebb9@byu.net>
62471
62472         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
62473         verror_at_line output complies with GNU Coding Standards even when
62474         file is NULL.
62475
62476 2006-08-07  Bruno Haible  <bruno@clisp.org>
62477
62478         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
62479         versions of AIX.
62480         Reported by Ralf Wildenhues.
62481
62482 2006-08-07  Bruno Haible  <bruno@clisp.org>
62483
62484         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
62485         in an AC_DEFUN. Needed so that the autoconf snippets can use
62486         AC_REQUIRE.
62487
62488 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62489
62490         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62491         Initialize pkgdata_DATA.
62492         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
62493         overriding it.
62494
62495 2006-08-06  Eric Blake  <ebb9@byu.net>
62496
62497         * lib/error.h: Fold in some upstream changes from glibc.
62498         * lib/error.c: Likewise.
62499
62500 2006-08-04  Bruno Haible  <bruno@clisp.org>
62501
62502         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62503         Make the mostlyclean-local rule depend on mostlyclean-generic.
62504         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
62505
62506 2006-07-31  Bruno Haible  <bruno@clisp.org>
62507
62508         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
62509         <stdlib.h>, <string.h>.
62510
62511 2006-07-30  Bruno Haible  <bruno@clisp.org>
62512
62513         * modules/readlink (License): Change to LGPL.
62514
62515 2006-07-30  Bruno Haible  <bruno@clisp.org>
62516
62517         * modules/javaversion (Makefile.am): Distribute javaversion.java and
62518         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
62519         set PKGDATADIR to point to it.
62520
62521 2006-07-30  Bruno Haible  <bruno@clisp.org>
62522
62523         * modules/csharpexec (configure.ac): Comment out macro invocation.
62524         * modules/javaexec (configure.ac): Likewise.
62525         * modules/javacomp-script (configure.ac): Likewise.
62526
62527         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
62528
62529 2006-07-30  Bruno Haible  <bruno@clisp.org>
62530
62531         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
62532         linked-list.
62533
62534 2006-07-30  Bruno Haible  <bruno@clisp.org>
62535
62536         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
62537
62538 2006-07-30  Bruno Haible  <bruno@clisp.org>
62539
62540         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62541         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
62542         get removed.
62543
62544 2006-07-29  Bruno Haible  <bruno@clisp.org>
62545
62546         Make it possible for gnulib-tool to work with locally modified or
62547         augmented gnulib repositories.
62548         * gnulib-tool (func_usage): Document --local-dir option.
62549         (local_gnulib_dir): New variable.
62550         Handle --local-dir option.
62551         (func_lookup_file): New function.
62552         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
62553         (func_get_description, func_get_filelist, func_get_description,
62554         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
62555         func_get_automake_snippet, func_get_include_directive,
62556         func_get_license, func_get_maintainer): Use func_lookup_file.
62557         (func_import, func_create_testdir): Use func_lookup_file.
62558
62559 2006-07-29  Bruno Haible  <bruno@clisp.org>
62560
62561         * modules/setenv (Depends-on): Add unistd.
62562
62563 2006-07-29  Bruno Haible  <bruno@clisp.org>
62564
62565         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
62566
62567 2006-07-29  Bruno Haible  <bruno@clisp.org>
62568
62569         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
62570
62571 2006-07-29  Bruno Haible  <bruno@clisp.org>
62572
62573         * gnulib-tool (import, update): If there is no Makefile.am, look at
62574         aclocal.m4, instead of bailing out.
62575
62576 2006-07-29  Bruno Haible  <bruno@clisp.org>
62577
62578         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
62579         Categorize the options by when they are useful.
62580
62581 2006-07-29  Bruno Haible  <bruno@clisp.org>
62582
62583         * gnulib-tool (func_usage): Document option --no-libtool.
62584         Handle option --no-libtool.
62585         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
62586         for changed semantics of $libtool variable.
62587         (func_import): Likewise. If libtool is not used, show this through
62588         an option --no-libtool.
62589         (func_create_testdir): Update.
62590
62591 2006-07-29  Bruno Haible  <bruno@clisp.org>
62592
62593         * gnulib-tool (func_import): Extend error message about missing
62594         --doc-base.
62595
62596 2006-07-29  Bruno Haible  <bruno@clisp.org>
62597
62598         * gnulib-tool (func_import): Don't create the $docbase directory if
62599         there is no file to store there.
62600
62601 2006-07-29  Bruno Haible  <bruno@clisp.org>
62602
62603         * gnulib-tool (autoconf_minversion): If a --dir option is given and
62604         relevant, look for configure.ac there, not in the current directory.
62605         Also use a simple search for AC_PREREQ, not "autoconf --trace".
62606
62607 2006-07-29  Bruno Haible  <bruno@clisp.org>
62608
62609         * gnulib-tool (SORT): New variable.
62610         (func_usage): Undocument --assume-autoconf option.
62611         Remove --assume-autoconf option handling.
62612         (autoconf_minversion): Determine from the contents of configure.ac.
62613         (func_import): Remove autoconf_minversion handling.
62614         Suggested by Eric Blake.
62615
62616 2006-07-29  Bruno Haible  <bruno@clisp.org>
62617
62618         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
62619
62620 2006-07-29  Bruno Haible  <bruno@clisp.org>
62621
62622         * config/srclist.txt (*setenv.[ch]): Remove rules.
62623
62624 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62625
62626         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
62627
62628 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62629
62630         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
62631         arpa/inet.h.
62632
62633 2006-07-28  Simon Josefsson  <jas@extundo.com>
62634
62635         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
62636         * modules/inet_pton (Depends-on): Likewise.
62637
62638 2006-07-28  Simon Josefsson  <jas@extundo.com>
62639
62640         * m4/netinet_in_h.m4: New file.
62641
62642 2006-07-28  Simon Josefsson  <jas@extundo.com>
62643
62644         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
62645         #include's.
62646
62647 2006-07-28  Simon Josefsson  <jas@extundo.com>
62648
62649         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
62650         #include's.
62651
62652 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
62653
62654         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
62655         setgid on directories only if they set these bits.
62656         * lib/modechange.h: Remove obsolete comment about masks.
62657
62658 2006-07-28  Eric Blake  <ebb9@byu.net>
62659
62660         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
62661         macro expansion.
62662
62663 2006-07-28  Bruno Haible  <bruno@clisp.org>
62664
62665         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
62666
62667 2006-07-28  Bruno Haible  <bruno@clisp.org>
62668
62669         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
62670
62671 2006-07-28  Bruno Haible  <bruno@clisp.org>
62672
62673         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
62674         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
62675         Define fallbacks.
62676         Avoids link error on FreeBSD 4.x.
62677         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62678
62679         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
62680         encoding.
62681         * lib/mbswidth.c (iswcntrl): Likewise.
62682
62683 2006-07-27  Bruno Haible  <bruno@clisp.org>
62684
62685         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
62686         test.
62687
62688 2006-07-27  Bruno Haible  <bruno@clisp.org>
62689
62690         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
62691         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
62692         defined.
62693
62694 2006-07-26  Eric Blake  <ebb9@byu.net>
62695
62696         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
62697
62698 2006-07-26  Eric Blake  <ebb9@byu.net>
62699
62700         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
62701         like mingw that lack mkstemp.
62702         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
62703         avoid compilation warning on mingw.
62704
62705 2006-07-26  Bruno Haible  <bruno@clisp.org>
62706
62707         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
62708         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
62709         INT_FAST*_MIN, INTPTR_MIN.
62710
62711 2006-07-25  Bruno Haible  <bruno@clisp.org>
62712
62713         * modules/version-etc (Depends-on): Add stdarg.
62714
62715 2006-07-25  Bruno Haible  <bruno@clisp.org>
62716
62717         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
62718         complex commands.
62719
62720 2006-07-25  Bruno Haible  <bruno@clisp.org>
62721
62722         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
62723         defined in <stdarg.h> or config.h.
62724
62725 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62726
62727         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
62728         (gl_STDIO_SAFER): Remove.
62729
62730 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
62731
62732         * MODULES.html.sh (File stream based Input/Output):
62733         Add fopen-safer, tmpfile-safer; remove stdio-safer.
62734         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
62735         * modules/fopen-safer, modules/tmpfile-safer: New files.
62736         * modules/stdio-safer: Remove.
62737
62738 2006-07-24  Bruno Haible  <bruno@clisp.org>
62739
62740         * modules/tmpdir: New file.
62741         * MODULES.html.sh (File system functions): Add it.
62742
62743 2006-07-24  Bruno Haible  <bruno@clisp.org>
62744
62745         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
62746         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
62747
62748 2006-07-24  Bruno Haible  <bruno@clisp.org>
62749
62750         * modules/clean-temp: New file.
62751
62752 2006-07-24  Bruno Haible  <bruno@clisp.org>
62753
62754         * m4/tmpdir.m4: New file, from GNU gettext.
62755
62756 2006-07-24  Bruno Haible  <bruno@clisp.org>
62757
62758         * lib/tmpdir.h: New file, from GNU gettext.
62759         * lib/tmpdir.c: New file, from GNU gettext.
62760
62761 2006-07-24  Bruno Haible  <bruno@clisp.org>
62762
62763         * lib/clean-temp.h: New file, from GNU gettext.
62764         * lib/clean-temp.c: New file, from GNU gettext.
62765
62766 2006-07-23  Eric Blake  <ebb9@byu.net>
62767
62768         * modules/stdio-safer (Files): Add tmpfile-safer.c.
62769         (Depends-on): Add binary-io.
62770
62771 2006-07-23  Eric Blake  <ebb9@byu.net>
62772
62773         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
62774
62775 2006-07-23  Eric Blake  <ebb9@byu.net>
62776
62777         * lib/tmpfile-safer.c: New file.
62778         * lib/stdio-safer.h (fopen_safer): Add prototype.
62779         * lib/stdio--.h (tmpfile): Make safer.
62780
62781 2006-07-23  Bruno Haible  <bruno@clisp.org>
62782
62783         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
62784         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
62785         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
62786         gl_linked_remove_at): Use it.
62787
62788 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62789         and Simon Josefsson <jas@extundo.com>
62790
62791         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
62792
62793         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
62794
62795 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62796
62797         * modules/close-stream: New file.
62798         * modules/closeout (Description): Make it clear that it exits
62799         with a diagnostic on error.
62800         (Depends-on): Add close-stream.  Remove fpending, stdbool.
62801         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
62802
62803 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62804
62805         * m4/close-stream.m4: New file.
62806
62807 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62808
62809         * lib/close-stream.c, lib/close-stream.h: New files.
62810
62811 2006-07-22  Bruno Haible  <bruno@clisp.org>
62812
62813         Merge from GNU gettext 0.15.
62814
62815         2006-05-01  Bruno Haible  <bruno@clisp.org>
62816
62817                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
62818
62819         2006-07-22  Bruno Haible  <bruno@clisp.org>
62820
62821                 * modules/javaversion: New file.
62822                 * MODULES.html.sh (Java): Add javaversion.
62823
62824         2006-03-12  Bruno Haible  <bruno@clisp.org>
62825
62826                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
62827
62828         2005-12-04  Bruno Haible  <bruno@clisp.org>
62829
62830                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
62831                 (untested).
62832
62833         2006-06-21  Bruno Haible  <bruno@clisp.org>
62834
62835                 Avoid warnings from recent versions of mcs.
62836                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
62837                 -o, -L, -r any more. Use options documented since mcs-1.0
62838                 instead. Similarly for -g.
62839
62840         2005-12-04  Bruno Haible  <bruno@clisp.org>
62841
62842                 * build-aux/csharpcomp.sh.in: Suffix for resources is
62843                 .resources, not .resource.
62844
62845         2005-07-09  Bruno Haible  <bruno@clisp.org>
62846
62847                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
62848                 add a .dll suffix.
62849                 Reported by Mark Junker <mjscod@gmx.de>.
62850
62851         2006-07-22  Bruno Haible  <bruno@clisp.org>
62852
62853                 * modules/gettext: Upgrade to gettext-0.15.
62854                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
62855                 m4/visibility.m4.
62856                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
62857
62858 2006-07-22  Bruno Haible  <bruno@clisp.org>
62859
62860         Merge from GNU gettext 0.15.
62861
62862         2006-03-25  Bruno Haible  <bruno@clisp.org>
62863
62864                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
62865
62866         2006-07-21  Bruno Haible  <bruno@clisp.org>
62867
62868                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
62869                 "1.1".
62870
62871         2006-05-09  Bruno Haible  <bruno@clisp.org>
62872
62873                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
62874                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
62875                 for the conftestver execution.
62876
62877         2006-05-01  Bruno Haible  <bruno@clisp.org>
62878
62879                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
62880                 optional target-version argument. Verify that the compiler
62881                 groks source of the specified source-version, or add -source
62882                 option as necessary. Verify that the compiler produces
62883                 bytecode in the specified target-version, or add -target and
62884                 -source options as necessary. Make the result of the test
62885                 available as variable CONF_JAVAC. Also log error output in
62886                 config.log.
62887
62888         2006-03-11  Bruno Haible  <bruno@clisp.org>
62889
62890                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
62891
62892         2006-05-09  Bruno Haible  <bruno@clisp.org>
62893
62894                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
62895                 CLASSPATH_SEPARATOR to a semicolon.
62896
62897         2006-03-12  Bruno Haible  <bruno@clisp.org>
62898
62899                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
62900                 available as variable CONF_JAVA, for subsequent autoconf
62901                 tests. Also log error output in config.log.
62902
62903         2006-07-19  Bruno Haible  <bruno@clisp.org>
62904
62905                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
62906                 that getline works on glibc2 systems. Needed to avoid trouble
62907                 in relocatable.c.
62908                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
62909
62910         2005-12-04  Bruno Haible  <bruno@clisp.org>
62911
62912                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
62913                 launcher (untested).
62914
62915         2005-12-04  Bruno Haible  <bruno@clisp.org>
62916
62917                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
62918
62919         2006-07-22  Bruno Haible  <bruno@clisp.org>
62920
62921                 * gettext.m4: Update from GNU gettext-0.15.
62922                 * nls.m4: Likewise.
62923                 * po.m4: Likewise.
62924                 * inttypes-pri.m4: Likewise.
62925                 * inttypes-h.m4: Renamed from inttypes.m4.
62926                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
62927
62928 2006-07-22  Bruno Haible  <bruno@clisp.org>
62929
62930         Merge from GNU gettext 0.15.
62931
62932         2005-07-05  Bruno Haible  <bruno@clisp.org>
62933
62934                 * printf-args.c (printf_fetchargs): Work around broken
62935                 definition of wint_t on mingw.
62936
62937         2005-02-12  Bruno Haible  <bruno@clisp.org>
62938
62939                 * xallocsa.h: Add extern "C" for C++.
62940
62941         2006-05-17  Bruno Haible  <bruno@clisp.org>
62942
62943                 Cygwin portability.
62944                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
62945
62946         2006-04-30  Bruno Haible  <bruno@clisp.org>
62947
62948                 * progreloc.c: Include <mach-o/dyld.h> if available.
62949                 (find_executable): Use _NSGetExecutablePath when possible.
62950
62951         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62952
62953                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
62954                 function.
62955
62956         2005-12-29  Bruno Haible  <bruno@clisp.org>
62957
62958                 * progreloc.c (set_program_name_and_installdir): Fix
62959                 compilation error.
62960
62961         2005-12-04  Bruno Haible  <bruno@clisp.org>
62962
62963                 Cygwin portability.
62964                 * progreloc.c: Include <windows.h> also on Cygwin.
62965                 (find_executable): Add support for Cygwin.
62966                 (set_program_name_and_installdir): Handle also platforms with
62967                 nonempty EXEEXT.
62968
62969         2006-07-11  Bruno Haible  <bruno@clisp.org>
62970
62971                 * javacomp.c: Fix a comment.
62972                 Reported by Jim Meyering.
62973
62974         2006-04-30  Bruno Haible  <bruno@clisp.org>
62975
62976                 * javacomp.h (compile_java_class): Add source_version,
62977                 target_version arguments.
62978                 * javacomp.c: Rewritten to choose only a compiler that
62979                 respects the specified source_version and target_version.
62980
62981         2006-06-27  Bruno Haible  <bruno@clisp.org>
62982
62983                 Assume correct S_ISDIR macro.
62984                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
62985
62986         2006-07-22  Bruno Haible  <bruno@clisp.org>
62987
62988                 * javaversion.h: New file, from GNU gettext.
62989                 * javaversion.c: New file, from GNU gettext.
62990                 * javaversion.java: New file, from GNU gettext.
62991                 * javaversion.class: New file, from GNU gettext.
62992
62993         2006-05-17  Bruno Haible  <bruno@clisp.org>
62994
62995                 Cygwin portability.
62996                 * javaexec.c (execute_java_class): Test for jview program
62997                 also on Cygwin.
62998
62999         2006-04-09  Bruno Haible  <bruno@clisp.org>
63000
63001                 * fatal-signal.c: Don't include string.h.
63002                 (at_fatal_signal): Use a copying loop instead of memcpy.
63003
63004         2005-12-04  Bruno Haible  <bruno@clisp.org>
63005
63006                 * csharpexec.c: Add support for 'clix' launcher (untested).
63007                 (execute_csharp_using_sscli): New function.
63008                 (execute_csharp_program): Call it.
63009
63010         2006-06-21  Bruno Haible  <bruno@clisp.org>
63011
63012                 Avoid warnings from recent versions of mcs.
63013                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
63014                 -o, -L, -r any more. Use options documented since mcs-1.0
63015                 instead. Similarly for -g.
63016
63017         2005-07-09  Bruno Haible  <bruno@clisp.org>
63018
63019                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
63020                 add a .dll suffix.
63021                 Reported by Mark Junker <mjscod@gmx.de>.
63022
63023         2006-06-17  Bruno Haible  <bruno@clisp.org>
63024
63025                 * config.charset: Update for NetBSD 3.0.
63026
63027         2006-05-17  Bruno Haible  <bruno@clisp.org>
63028
63029                 Cygwin portability.
63030                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
63031
63032         2006-05-16  Bruno Haible  <bruno@clisp.org>
63033
63034                 * localcharset.c [CYGWIN]: Include <windows.h>.
63035                 (get_charset_aliases): For Cygwin, return the same CPxxx
63036                 aliases list as under WIN32.
63037                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
63038                 the environment variables. Fall back to GetACP().
63039
63040         2006-04-05  Bruno Haible  <bruno@clisp.org>
63041
63042                 * config.charset: Update Juan Manuel Guerrero's address.
63043
63044         2005-02-12  Bruno Haible  <bruno@clisp.org>
63045
63046                 * allocsa.h: Add extern "C" for C++.
63047
63048         2005-02-10  Bruno Haible  <bruno@clisp.org>
63049
63050                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
63051                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
63052
63053         2006-07-22  Bruno Haible  <bruno@clisp.org>
63054
63055                 * gettext.h: Update to GNU gettext-0.15.
63056
63057 2006-07-22  Bruno Haible  <bruno@clisp.org>
63058
63059         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
63060         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
63061         lib-prefix.m4, longdouble.m4, ssize_t.m4.
63062
63063 2006-07-21  Eric Blake  <ebb9@byu.net>
63064
63065         * modules/stdlib-safer: New file.
63066         * MODULES.html.sh (File stream based Input/Output): Add
63067         stdlib-safer.
63068
63069 2006-07-21  Eric Blake  <ebb9@byu.net>
63070
63071         * lib/stdlib-safer.h: New file from coreutils, required by
63072         stdlib--.h.
63073
63074 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
63075
63076         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
63077
63078 2006-07-20  Bruno Haible  <bruno@clisp.org>
63079
63080         * gnulib-tool: Recognize new option --assume-autoconf.
63081         (autoconf_minversion): New variable.
63082         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
63083
63084 2006-07-20  Bruno Haible  <bruno@clisp.org>
63085
63086         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
63087
63088 2006-07-19  Derek R. Price  <derek@ximbiot.com>
63089
63090         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
63091         Reindent and repaginate.
63092
63093 2006-07-19  Derek Price  <derek@ximbiot.com>
63094
63095         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
63096         Correct grammar.
63097
63098 2006-07-17  Bruno Haible  <bruno@clisp.org>
63099
63100         * modules/list: New file.
63101         * modules/array-list: New file.
63102         * modules/carray-list, modules/carray-list-tests: New files.
63103         * modules/linked-list, modules/linked-list-tests: New files.
63104         * modules/avltree-list, modules/avltree-list-tests: New files.
63105         * modules/rbtree-list, modules/rbtree-list-tests: New files.
63106         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
63107         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
63108         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
63109         * modules/oset: New file.
63110         * modules/array-oset: New file.
63111         * modules/avltree-oset, modules/avltree-oset-tests: New files.
63112         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
63113         * tests/test-carray_list.c: New file.
63114         * tests/test-linked_list.c: New file.
63115         * tests/test-avltree_list.c: New file.
63116         * tests/test-rbtree_list.c: New file.
63117         * tests/test-linkedhash_list.c: New file.
63118         * tests/test-avltreehash_list.c: New file.
63119         * tests/test-rbtreehash_list.c: New file.
63120         * tests/test-avltree_oset.c: New file.
63121         * tests/test-rbtree_oset.c: New file.
63122         * MODULES.html.sh (Container data structures): New section.
63123
63124 2006-07-17  Bruno Haible  <bruno@clisp.org>
63125
63126         * m4/gl_list.m4: New file.
63127
63128 2006-07-17  Bruno Haible  <bruno@clisp.org>
63129
63130         * lib/gl_list.h: New file.
63131         * lib/gl_list.c: New file.
63132         * lib/gl_array_list.h: New file.
63133         * lib/gl_array_list.c: New file.
63134         * lib/gl_carray_list.h: New file.
63135         * lib/gl_carray_list.c: New file.
63136         * lib/gl_linked_list.h: New file.
63137         * lib/gl_linked_list.c: New file.
63138         * lib/gl_anylinked_list1.h: New file.
63139         * lib/gl_anylinked_list2.h: New file.
63140         * lib/gl_avltree_list.h: New file.
63141         * lib/gl_avltree_list.c: New file.
63142         * lib/gl_anyavltree_list1.h: New file.
63143         * lib/gl_anyavltree_list2.h: New file.
63144         * lib/gl_rbtree_list.h: New file.
63145         * lib/gl_rbtree_list.c: New file.
63146         * lib/gl_anyrbtree_list1.h: New file.
63147         * lib/gl_anyrbtree_list2.h: New file.
63148         * lib/gl_anytree_list1.h: New file.
63149         * lib/gl_anytree_list2.h: New file.
63150         * lib/gl_linkedhash_list.h: New file.
63151         * lib/gl_linkedhash_list.c: New file.
63152         * lib/gl_anyhash_list1.h: New file.
63153         * lib/gl_anyhash_list2.h: New file.
63154         * lib/gl_avltreehash_list.h: New file.
63155         * lib/gl_avltreehash_list.c: New file.
63156         * lib/gl_rbtreehash_list.h: New file.
63157         * lib/gl_rbtreehash_list.c: New file.
63158         * lib/gl_anytreehash_list1.h: New file.
63159         * lib/gl_anytreehash_list2.h: New file.
63160
63161         * lib/gl_oset.h: New file.
63162         * lib/gl_oset.c: New file.
63163         * lib/gl_array_oset.h: New file.
63164         * lib/gl_array_oset.c: New file.
63165         * lib/gl_avltree_oset.h: New file.
63166         * lib/gl_avltree_oset.c: New file.
63167         * lib/gl_rbtree_oset.h: New file.
63168         * lib/gl_rbtree_oset.c: New file.
63169         * lib/gl_anytree_oset.h: New file.
63170
63171 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63172
63173         * m4/mkancesdirs.m4: New file.
63174         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
63175         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
63176         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
63177         it.
63178
63179 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63180
63181         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
63182         * lib/mkancesdirs.h: New files.
63183         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
63184         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
63185         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
63186         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
63187         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
63188         callers changed.  Revamp internals significantly, by not
63189         attempting to create directories that are temporarily more
63190         permissive than the final results.  Do not attempt to use
63191         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
63192         This removes some race conditions, fixes some bugs, and simplifies
63193         things.  Use new dirchownmod function to do owner and mode changes.
63194         * lib/mkdir-p.h: Likewise.
63195         * lib/modechange.c (octal_to_mode): New function.
63196         (struct mode_change): New member mentioned.
63197         (make_node_op_equals): New arg mentioned.  All callers changed.
63198         (mode_compile): Keep track of which mode bits the user has explicitly
63199         mentioned.
63200         (mode_adjust): New arg DIR, so that we implement the X op correctly.
63201         New arg PMODE_BITS, to keep track of which mode bits the user
63202         mentioned; it treats S_ISUID and S_ISGID speciall.
63203         All callers changed.
63204         * lib/modechange.h: Likewise.
63205
63206 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
63207
63208         * MODULES.html.sh: Add mkancestors.
63209         * modules/mkancesdirs: New module.
63210         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
63211         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
63212         The chdir-safer and afs files are now orphans; I'll remove them
63213         unless someone speaks up.
63214         Add lib/dirchownmod.c, lib/dirchownmod.h.
63215         (Depends-on): Remove alloca, chown, save-cwd, dirname.
63216         Add lchown, mkancesdirs.
63217         (Maintainer): Add self.
63218
63219 2006-07-15  Karl Berry  <karl@gnu.org>
63220
63221         * gnulib-tool: help message wording/arrangement.
63222
63223 2006-07-14  Simon Josefsson  <jas@extundo.com>
63224
63225         * doc/gnulib.texi (Libtool and Windows): New section.
63226
63227 2006-07-12  Simon Josefsson  <jas@extundo.com>
63228
63229         * modules/gendocs (License): Fix license, approved by Karl.
63230
63231 2006-07-12  Eric Blake  <ebb9@byu.net>
63232
63233         * MODULES.html.sh: Add gendocs.
63234
63235 2006-07-11  Eric Blake  <ebb9@byu.net>
63236
63237         * modules/fdl: New module, to install doc/fdl.texi.
63238         * MODULES.html.sh: Add new section for documentation modules.
63239         * gnulib-tool: Avoid space-tab.
63240         (--doc-base): New option, to manage files from doc.
63241
63242 2006-07-11  Eric Blake  <ebb9@byu.net>
63243
63244         * m4/absolute-header.m4: Fix comments to match recent change.
63245
63246 2006-07-11  Eric Blake  <ebb9@byu.net>
63247
63248         * gnulib-tool: List --doc-base before --tests-base.
63249
63250 2006-07-11  Derek R. Price  <derek@ximbiot.com>
63251
63252         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
63253
63254 2006-07-11  Bruno Haible  <bruno@clisp.org>
63255
63256         * README: Mention where to put documentation.
63257
63258 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63259
63260         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
63261
63262 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63263
63264         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
63265         to stdint.m4.
63266
63267 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
63268
63269         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
63270         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
63271         "no/such/file/stdint.h" when there is no such file, so that
63272         the resulting C code can be parsed by dodgy compilers.
63273         Problems reported by Bob Proulx.
63274
63275 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63276
63277         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
63278         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63279         macros into the GNU _D_EXACT_NAMLEN.
63280         * lib/savedir.c:  Likewise.
63281         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
63282
63283 2006-07-10  Derek R. Price  <derek@ximbiot.com>
63284         and Paul Eggert  <eggert@cs.ucla.edu>
63285
63286         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
63287         * m4/savedir.m4:
63288         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
63289         macros into the GNU _D_EXACT_NAMLEN.
63290
63291 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63292
63293         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
63294         around the absolute name, to work around a problem with the HP-UX
63295         11.23 native C compiler, reported by Bob Proulx.
63296
63297 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63298
63299         * doc/maintain.texi, make-stds.texi: Sync from
63300         <http://savannah.gnu.org/projects/gnustandards>.
63301
63302 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
63303
63304         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
63305
63306 2006-07-09  Jim Meyering  <jim@meyering.net>
63307
63308         * m4/glob.m4: Remove a doubled word in a comment.
63309
63310 2006-07-09  Jim Meyering  <jim@meyering.net>
63311
63312         * lib/argp-pv.c: Remove a doubled word in a comment.
63313         * lib/check-version.c (check_version): Likewise.
63314         * lib/javacomp.c (compile_java_class): Likewise.
63315
63316 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63317
63318         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
63319         for the benefit of people using Autoconf 2.60.  If you want to
63320         support older Autoconf versions you can copy m4/onceonly_2_57.m4
63321         (or m4/onceonly.m4, if pre-2.57) manually.
63322
63323 2006-07-08  Jim Meyering  <jim@meyering.net>
63324
63325         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
63326         comment.
63327         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
63328         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
63329         comment.
63330
63331 2006-07-08  Jim Meyering  <jim@meyering.net>
63332
63333         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
63334
63335 2006-07-07  Simon Josefsson  <jas@extundo.com>
63336
63337         * tests/test-crc.c: Change expected crc value, the test vector
63338         were probably computed using the old broken crc.c?
63339
63340 2006-07-06  Simon Josefsson  <jas@extundo.com>
63341
63342         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
63343         now the canonical place for the M4 file).
63344
63345         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
63346         from the sys_socket dependency now.
63347
63348         * modules/inet_pton (Files): Ditto.
63349
63350         * modules/inet_ntop (Files): Ditto.
63351
63352 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63353
63354         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
63355         not gl_PREREQ_GETUSERSHELL.
63356
63357 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63358
63359         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
63360         with only one argument, for Autoconf 2.60.
63361         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
63362         expand to nothing, so add a shell command to avoid syntax error.
63363         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63364
63365 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63366
63367         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
63368
63369 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63370
63371         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
63372         no longer needed.  Check for isblank decl.
63373         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
63374         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
63375         of existence.
63376
63377 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63378
63379         * lib/getloadavg.c: Use __VMS, not VMS.
63380         * lib/getopt.c: Likewise.
63381         * lib/getpagesize.h: Likewise.
63382         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
63383         and probably does not work.
63384
63385 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
63386
63387         * lib/.cppi-disable: Add wcwidth.
63388         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
63389         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
63390         (ISGRAPH): Remove.  All uses changed to isgraph.
63391         (FOLD) [!defined _LIBC]: Remove special case.
63392         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
63393         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
63394         HAVE_ISBLANK.
63395         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
63396         case.
63397
63398 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63399
63400         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
63401         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
63402         brackets.  Other minor changes to suppress some compiler
63403         warnings.
63404
63405 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63406         and Paul Eggert  <eggert@cs.ucla.edu>
63407
63408         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
63409         of invoking obsolescent AC_HEADER_DIRENT macro.
63410         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63411         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
63412         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63413         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
63414         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
63415         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63416         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
63417         * m4/readdir.m4: Remove; no longer needed.
63418
63419 2006-07-06  Derek R. Price  <derek@ximbiot.com>
63420         and Paul Eggert  <eggert@cs.ucla.edu>
63421
63422         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
63423         Don't worry about this obsolete case any more.
63424         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
63425         directories.
63426         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
63427         worry about this obsolete case any more.
63428         * lib/fts.c: Likewise.
63429         * lib/getcwd.c: Likewise.
63430         * lib/glob.h: Likewise.
63431         * lib/savedir.c: Likewise.
63432
63433 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63434
63435         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
63436         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
63437         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
63438         needed.
63439         All uses removed.
63440         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63441         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63442         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
63443         needed.
63444         * m4/getdate.m4 (gl_GETDATE): Likewise.
63445         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63446         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63447         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63448         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63449         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
63450         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63451         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
63452         needed.
63453
63454 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
63455
63456         * lib/memcasecmp.c: Include <limits.h>.
63457         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
63458         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
63459         Don't assume isdigit succeeds only on '0' through '9'.
63460
63461 2006-07-05  Eric Blake  <ebb9@byu.net>
63462
63463         * modules/getaddrinfo (Depends-on): Add snprintf.
63464
63465 2006-07-05  Eric Blake  <ebb9@byu.net>
63466
63467         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
63468         to avoid 'header present but could not be compiled' on cygwin.
63469
63470 2006-07-05  Eric Blake  <ebb9@byu.net>
63471
63472         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
63473         missing from netdb.h.
63474         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
63475
63476 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63477
63478         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
63479         no longer needed.
63480         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
63481         * m4/getdate.m4 (gl_GETDATE): Likewise.
63482         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
63483         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
63484         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63485         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
63486         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63487
63488 2006-07-05  Derek R. Price  <derek@ximbiot.com>
63489
63490         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
63491         All uses of is_space replaced by isspace.
63492         * lib/exit.h: Don't talk about STDC_HEADERS.
63493         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
63494         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
63495         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
63496         replaced by isprint etc.
63497         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
63498         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63499         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
63500         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
63501         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
63502         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
63503
63504 2006-07-05  Bruno Haible  <bruno@clisp.org>
63505
63506         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
63507         the function exists, before testing against AIX.
63508         Reported by Martin Lambers <marlam@marlam.de>.
63509
63510 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63511
63512         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
63513         From Mark D. Baushke.
63514
63515 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
63516
63517         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
63518         to the absolute name, not just one, to bypass Sun C 5.8's
63519         "warning: #include of /usr/include/... may be non-portable".
63520
63521 2006-07-04  Eric Blake  <ebb9@byu.net>
63522
63523         * modules/dirname-tests: New test module.
63524         * tests/test-dirname.c: New file, replacing dirname.c
63525         TEST_DIRNAME section that was recently deleted.
63526
63527 2006-07-04  Bruno Haible  <bruno@clisp.org>
63528
63529         Assume ANSI C header files and <ctype.h> functions.
63530         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
63531         (mbsnwidth): Use isprint, iscntrl instead.
63532
63533 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63534
63535         Merge from coreutils.
63536         * MODULES.html.sh: Add xstrtold.
63537         * modules/xstrtold: New file.
63538         * modules/cycle-check (Files): Add lib/same-inode.h.
63539         * modules/dirname (Files): Add m4/double-slash-root.m4.
63540         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
63541         * modules/mkdir-p (Files): Add lib/same-inode.h.
63542         * modules/same (Files): Add lib/same-inode.h.
63543
63544 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63545
63546         * m4/absolute-header.m4: Renamed from full-header-path.m4.
63547         This is to keep the terminology clean; POSIX talks about
63548         "absolute pathnames", not "full pathnames", but the GNU
63549         Coding Standards say to use "path" for something else;
63550         so use "absolute" to keep both sides happy.
63551         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
63552         Set gl_absolute_header, not gl_full_header_path.
63553         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
63554         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
63555         All uses changed.
63556
63557         Merge from coreutils.
63558
63559         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63560
63561         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
63562         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
63563         want to require the building of c-strtod.o.
63564         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
63565         needs -lm directly.
63566         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
63567
63568         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
63569
63570         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
63571         --as-needed option if available.  Problem reported by Albert Chin in
63572         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
63573         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
63574         cc merely issues a bunch of annoying warnings for --as-needed
63575         (this problem was reported by Bob Proulx).  Also, try linking with
63576         -lm to detect a bug in binutils 2.16 (this problem was reported
63577         by Ralf Wildenhues).
63578
63579         2006-06-18  Jim Meyering  <jim@meyering.net>
63580
63581         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
63582         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
63583         macro.
63584         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
63585         also check for glibc-2.4's abort-inducing bug.
63586
63587         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
63588         Low-probability clean-up should be to use rmdir to get rid of
63589         the just-created directory, not unlink.
63590
63591         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
63592         configure fail, and request a bug report to inform us about it.
63593         Add a comment that, barring reports to the contrary, in 2007 we'll
63594         assume ftruncate is universally available.
63595
63596         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63597
63598         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
63599
63600         2006-03-12  Jim Meyering  <jim@meyering.net>
63601
63602         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
63603         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
63604         * m4/same.m4 (gl_SAME): Likewise.
63605         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
63606
63607         2006-03-11  Eric Blake  <ebb9@byu.net>
63608
63609         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
63610         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
63611         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
63612         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
63613
63614 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
63615
63616         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
63617         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
63618         reported by Mark D. Baushke, one in
63619         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
63620
63621         Merge from coreutils.
63622
63623         * lib/.cppi-disable: Add stdint_.h.
63624         * lib/.cvsignore: Add stdint.h.
63625
63626         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
63627
63628         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
63629         both double and long double versions.
63630         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
63631         * lib/xstrtold.c: New file.
63632         * lib/xstrtod.h (xstrtold): New decl.
63633
63634         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
63635
63636         * lib/filemode.c (setst): Remove.
63637         (strmode): Rewrite to avoid setst.  This makes the code shorter,
63638         (arguably) clearer, and the generated code is a bit smaller on my
63639         Debian GNU/Linux stable x86 host.
63640
63641         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
63642
63643         * lib/filemode.c: Include "filemode.h" first, to test the interface.
63644         Assume that filemode.h includes sys/types.h and sys/stat.h.
63645         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
63646         (ftypelet): Reorder to put common cases first, for efficiency.
63647         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
63648         to do 'M'.
63649         (strmode): Renamed from mode_string, and now stores 12 bytes instead
63650         of 10, for compatibility with FreeBSD.  All callers changed.
63651         (filemodestring): Now stores 12 bytes instead of 10, and sets file
63652         types that can't be deduced solely from st_mode.  First arg is now a
63653         const pointer.
63654         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
63655         (strmode): Renamed from mode_string.
63656         (filemodestring): New decl.
63657         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
63658         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
63659         needed.
63660         (S_ISPORT, S_ISWHT): New macros, if not already defined.
63661
63662         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
63663
63664         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
63665         fsusage.h now does that.  Include fsusage.h first, to test interface.
63666         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
63667         at most one method (the old code could have generated decls that
63668         didn't conform to C89, not that this was ever exercised).
63669         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
63670
63671         2006-03-19  Jim Meyering  <jim@meyering.net>
63672
63673         Work even in a chroot where d_ino values for entries in "/"
63674         don't match the stat.st_ino values for the same names.
63675         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
63676         number, iterate through all entries again, using lstat instead.
63677         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
63678         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
63679
63680         * lib/getcwd.c (__getcwd): Clarify a comment.
63681         Use memcpy in place of a call to strcpy.
63682
63683         2006-03-12  Jim Meyering  <jim@meyering.net>
63684
63685         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
63686         matches that of the current directory (which we're about to chdir ".."
63687         out of), then save the dev-ino of the parent, instead.
63688
63689         * lib/same-inode.h (SAME_INODE): New file/macro.
63690         * lib/chdir-safer.c (SAME_INODE): Remove definition.
63691         Include "same-inode.h", instead.
63692         * lib/same.c: Likewise.
63693         * lib/cycle-check.h: Include "same-inode.h".
63694         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
63695         * lib/cycle-check.c (SAME_INODE): Remove definition.
63696         * lib/root-dev-ino.h: Include "same-inode.h".
63697
63698         2006-03-11  Eric Blake  <ebb9@byu.net>
63699
63700         * lib/same.c (same_name): s/base_name/last_component/
63701         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
63702         * lib/filenamecat.c (file_name_concat): Likewise.
63703
63704         2006-03-11  Eric Blake  <ebb9@byu.net>,
63705                     Paul Eggert  <eggert@cs.ucla.edu>
63706
63707         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
63708         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
63709         drive prefix.
63710         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
63711         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
63712         (last_component): New method.
63713         * lib/dirname.c (dir_len): Determine when drive letters need a
63714         subsequent slash.  Preserve // when it is special.
63715         (dir_name): Don't append dot when drive letter is absolute.
63716         [TEST_DIRNAME]: Move into a full-blown gnulib test.
63717         * lib/basename.c (base_name): New semantics - malloc the result.
63718         Preserve // when it is special.  Preserve relative files that look
63719         like drive letters.
63720         (base_len): Preserve // when it is special.
63721         (last_component): New method, similar to old base_name semantics.
63722         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
63723         base_name.  Strip redundant slashes from ///.
63724
63725 2006-07-03  Jim Meyering  <jim@meyering.net>
63726
63727         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
63728         macro is used before the first cycle_check call.
63729
63730 2006-07-03  Eric Blake  <ebb9@byu.net>
63731
63732         * modules/dirname (Depends-on): Add xstrndup.
63733
63734 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63735
63736         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
63737         test cases, so that config.log is a bit easier to follow.
63738
63739 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
63742         both are 64 bits, since this seems to be the tradition, and this
63743         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
63744         we ever run into a host that prefers long long to long in this
63745         case, we'll need another configure-time test.  Problem reported by
63746         Jim Meyering.
63747
63748 2006-07-02  Eric Blake  <ebb9@byu.net>
63749
63750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
63751
63752 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63753
63754         * modules/inttypes (Depends-on): No longer depends on stdint.
63755         * modules/stdint (Description): Say more about assumptions.
63756         Say that the fast types might differ.  Say macros are used.
63757         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
63758         (Makefile.am): Revise list of substituted symbols to match
63759         new stdint.m4.
63760         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
63761         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
63762         * tests/test-stdint.c (verify_same_types)
63763         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
63764         the code conforms to C99/C89.
63765         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
63766         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
63767
63768 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63769
63770         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
63771         but fix a bug, by requiring at least 64 bits.
63772         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63773         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
63774         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
63775         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
63776
63777         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
63778         changes.  Make 2.59 a prerequisite.  Check and substitute for
63779         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
63780         inttypes.h.  Do not use special include files; just use the
63781         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
63782         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
63783         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
63784         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
63785         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
63786         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
63787         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
63788         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
63789         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
63790         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
63791         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
63792         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
63793         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
63794         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
63795         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
63796         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
63797         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
63798         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
63799         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
63800         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
63801         WINT_MAX.  Check for C99 conformance more strictly, by detecting
63802         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
63803         not check for things that C99 does not require, e.g., int8_t.  If
63804         a test isn't needed unless <stdint.h> isn't working, and is
63805         unlikely to be needed for any other reason, then don't do it
63806         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
63807         size_t, since we assume C89 freestanding at least.  Do not check
63808         for sig_atomic_t, wchar_t, or wint_t, since the code now does
63809         the right thing even if the types are not defined.  Instead use:
63810         (gl_STDINT_TYPE_PROPERTIES): New macro.
63811         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
63812         testing whether <sys/types.h> clashes, as Autoconf does this for
63813         us now.  All uses removed.
63814         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
63815         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
63816         (gl_CHECK_TYPE_SAME):
63817         Remove; no longer needed.
63818         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
63819         exists, since we'll return 0 anyway in that case.
63820         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
63821
63822 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
63823
63824         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
63825         possible collision with system files.
63826         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
63827         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
63828         WCHAR_MIN and WCHAR_MAX in this case.
63829         (<stddef.h>): Do not include; no longer needed.
63830         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
63831         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
63832         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
63833         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
63834         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
63835         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
63836         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
63837         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
63838         !defined(__c99))]: Include in this case too, since it's harmless
63839         now.
63840         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
63841         dangerous to do so.
63842         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
63843         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
63844         (_STDINT_MIN, _STDINT_MAX): New macros.
63845         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
63846         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
63847         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
63848         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
63849         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
63850         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
63851         macros, not typedefs; this simplifies things quite a bit.
63852         Use long int for all types narrower than int64_t.
63853         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
63854         Define in terms of long long int or int64_t or long int,
63855         not int64_t or int32_t.  This saves some compile-time testing.
63856         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
63857         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
63858         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
63859         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
63860         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
63861         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
63862         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
63863         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
63864         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
63865         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
63866         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63867         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63868         undef any previous version and define our own version, for
63869         simplicity and consistency with the new macros for types.
63870         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
63871         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
63872         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
63873         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
63874         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
63875         @WINT_T_SUFFIX@ to keep things simple here.
63876         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
63877         Simplify by assuming typical 8/16/32/64 host, since we're
63878         already doing that elsewhere anyway.
63879         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
63880         and assume long long int is 64 bits if available.  This
63881         speeds up 'configure'.
63882
63883 2006-07-01  Eric Blake  <ebb9@byu.net>
63884
63885         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
63886         Reported by Andreas Buening.
63887
63888 2006-07-01  Eric Blake  <ebb9@byu.net>
63889
63890         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
63891
63892 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
63893
63894         * lib/getaddrinfo.c: fixed typo
63895
63896 2006-06-29  Jim Meyering  <jim@meyering.net>
63897
63898         * modules/strftime (Maintainer): Add my name, since with the
63899         FPRINTFTIME changes strftime.c has forked from glibc.
63900
63901 2006-06-29  Eric Blake  <ebb9@byu.net>
63902
63903         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
63904
63905 2006-06-29  Eric Blake  <ebb9@byu.net>
63906
63907         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
63908
63909 2006-06-29  Eric Blake  <ebb9@byu.net>
63910
63911         * lib/stat_.h: New file.
63912
63913 2006-06-29  Eric Blake  <ebb9@byu.net>
63914
63915         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
63916         unused static function.
63917
63918 2006-06-29  Eric Blake  <ebb9@byu.net>
63919
63920         * doc/functions.texi (Function Portability): Document missing lstat
63921         on mingw.
63922
63923 2006-06-29  Eric Blake  <ebb9@byu.net>
63924
63925         * MODULES.html.sh: Add sys_stat.
63926         * modules/sys_stat: New module.
63927         * modules/mkstemp (Depends-on): Add sys_stat.
63928
63929 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63930
63931         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
63932
63933 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63934
63935         * m4/c-bs-a.m4: Removed.
63936
63937 2006-06-29  Derek R. Price  <derek@ximbiot.com>
63938
63939         * lib/strftime.c: Assume strftime() exists.
63940
63941 2006-06-29  Derek Price  <derek@ximbiot.com>
63942
63943         * modules/c-bs-a: Removed - \a is C89.
63944         * MODULES.html.sh: Remove c-bs-a.
63945
63946 2006-06-29  Bruno Haible  <bruno@clisp.org>
63947
63948         * modules/wcwidth (License): Change to LGPL.
63949
63950 2006-06-28  Simon Josefsson  <jas@extundo.com>
63951
63952         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
63953         on _WIN32.
63954
63955         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
63956         getnameinfo.
63957
63958 2006-06-28  Simon Josefsson  <jas@extundo.com>
63959
63960         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
63961
63962 2006-06-28  Simon Josefsson  <jas@extundo.com>
63963
63964         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
63965         functions there.  It will succeed on Windows XP, but on Windows
63966         2000 and (presumably) earlier, it will fail, and use the internal
63967         re-implementation.
63968         (use_win32_p): New function.
63969         (getaddrinfo): Use strtoul on servname, to support numeric ports.
63970         Support AI_NUMERICSERV to disable getservbyname.
63971         (getnameinfo): New function, only supports
63972         NI_NUMERICHOST|NI_NUMERICSERV for now.
63973
63974         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
63975         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
63976         getnameinfo.
63977
63978 2006-06-28  Eric Blake  <ebb9@byu.net>
63979
63980         * modules/wcwidth: New file.
63981         * modules/mbchar (Depends-on): Add wcwidth.
63982         * modules/mbswidth (Depends-on): Add wcwidth.
63983         * MODULES.html.sh: Add wcwidth.
63984
63985 2006-06-28  Eric Blake  <ebb9@byu.net>
63986
63987         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
63988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
63989
63990 2006-06-28  Eric Blake  <ebb9@byu.net>
63991
63992         * lib/xvasprintf.h: Fix comments.
63993
63994 2006-06-28  Eric Blake  <ebb9@byu.net>
63995
63996         * lib/mbchar.h (wcwidth): Include wcwidth.h.
63997         * lib/mbswidth.c (wcwidth): Move from here...
63998         * lib/wcwidth.h: ...to this new file.
63999
64000 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64001
64002         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
64003
64004         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
64005         it's obsolete.
64006         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
64007
64008 2006-06-28  Derek R. Price  <derek@ximbiot.com>
64009
64010         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
64011         Autoconf 2.60 says this stuff was obsolete.
64012
64013 2006-06-28  Bruno Haible  <bruno@clisp.org>
64014
64015         * modules/wcwidth (Files): Add m4/wchar_t.m4.
64016
64017 2006-06-28  Bruno Haible  <bruno@clisp.org>
64018
64019         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
64020         gt_TYPE_WCHAR_T.
64021
64022 2006-06-28  Bruno Haible  <bruno@clisp.org>
64023
64024         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
64025         declaration for wcwidth.
64026         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
64027
64028 2006-06-28  Bruno Haible  <bruno@clisp.org>
64029
64030         * lib/mkdtemp.c [MINGW]: Include <io.h>.
64031         (mkdir): Define using _mkdir.
64032
64033 2006-06-28  Bruno Haible  <bruno@clisp.org>
64034
64035         * lib/getaddrinfo.h: Fix POSIX URL.
64036         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
64037         _WIN32.
64038         (use_win32_p): Make static.
64039         (getaddrinfo): Reject service name if it is empty or does not consist
64040         solely of decimal digits, or if its value is > 65535.
64041         (getnameinfo): Remove useless casts.
64042
64043 2006-06-27  Simon Josefsson  <jas@extundo.com>
64044
64045         * modules/sys_select: New file, suggested by Bruno Haible, Paul
64046         Eggert and Martin Lambers.
64047
64048 2006-06-27  Simon Josefsson  <jas@extundo.com>
64049
64050         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
64051         Eggert and Martin Lambers.
64052
64053 2006-06-27  Bruno Haible  <bruno@clisp.org>
64054
64055         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
64056         result to 0, not to empty.
64057         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
64058
64059 2006-06-27  Bruno Haible  <bruno@clisp.org>
64060
64061         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
64062
64063 2006-06-26  Simon Josefsson  <jas@extundo.com>
64064
64065         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
64066         present.
64067
64068 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
64069
64070         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
64071         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
64072         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
64073
64074 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
64075
64076         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
64077
64078 2006-06-26  Bruno Haible  <bruno@clisp.org>
64079
64080         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
64081
64082 2006-06-26  Bruno Haible  <bruno@clisp.org>
64083
64084         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
64085
64086 2006-06-26  Bruno Haible  <bruno@clisp.org>
64087
64088         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
64089         SGI C compiler in pre-C99 mode.
64090         Suggested by Mark D. Baushke and Larry Jones.
64091
64092 2006-06-26  Bruno Haible  <bruno@clisp.org>
64093
64094         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
64095         WCHAR_MAX.
64096         Reported by Mark D. Baushke and Larry Jones.
64097
64098 2006-06-26  Bruno Haible  <bruno@clisp.org>
64099
64100         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
64101         in pre-C99 mode.
64102         Suggested by Mark D. Baushke and Larry Jones.
64103
64104 2006-06-23  Simon Josefsson  <jas@extundo.com>
64105             Bruno Haible  <bruno@clisp.org>
64106
64107         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
64108         Emit mostlyclean-local rule.
64109         (func_emit_tests_Makefile_am): Likewise.
64110         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
64111
64112 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
64113
64114         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
64115
64116 2006-06-23  Bruno Haible  <bruno@clisp.org>
64117
64118         * tests/test-stdint.c: Update to match ISO C 99 Technical
64119         Corrigendum 1.
64120
64121 2006-06-23  Bruno Haible  <bruno@clisp.org>
64122
64123         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
64124
64125 2006-06-23  Bruno Haible  <bruno@clisp.org>
64126
64127         * lib/stdint_.h: Treat IRIX like OpenBSD.
64128
64129 2006-06-23  Bruno Haible  <bruno@clisp.org>
64130
64131         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
64132         ISO C 99 Technical Corrigendum 1.
64133
64134 2006-06-22  Simon Josefsson  <jas@extundo.com>
64135
64136         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
64137         MinGW.
64138
64139 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
64140
64141         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
64142         needed.  Some compiler complained about some of them.  Problem reported
64143         by Larry Jones in
64144         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
64145
64146 2006-06-21  Simon Josefsson  <jas@extundo.com>
64147
64148         * tests/test-getaddrinfo.c: New file.
64149
64150         * modules/getaddrinfo-tests: New file.
64151
64152         * MODULES.html.sh: Add inet_pton.
64153
64154         * modules/inet_pton: New file.
64155
64156 2006-06-21  Simon Josefsson  <jas@extundo.com>
64157
64158         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
64159         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
64160         of using the (limited) gnulib implementation on Windows XP.
64161
64162         * m4/inet_pton.m4: New file.
64163
64164 2006-06-21  Simon Josefsson  <jas@extundo.com>
64165
64166         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
64167         variable.
64168
64169         * lib/socket_.h: Don't define WINVER.
64170
64171         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
64172         slightly modified to work in gnulib.
64173
64174 2006-06-21  Simon Josefsson  <jas@extundo.com>
64175
64176         * doc/gnulib.texi (Windows sockets): Add.
64177
64178 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64179
64180         * lib/read-file.c (fread_file): Start with buffer allocation of
64181         0 bytes rather than 1 byte; this simplifies the code.
64182         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
64183         code to free buffer and save/restore errno.
64184         (internal_read_file): Remove unused local.
64185
64186 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64187
64188         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
64189         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
64190         Problem reported by Denis Excoffier in
64191         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
64192
64193 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64194
64195         * modules/sys_socket, modules/socklen: Include sys/types since
64196         FreeBSD 4.x's sys/socket.h needs it.
64197
64198 2006-06-19  Simon Josefsson  <jas@extundo.com>
64199
64200         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
64201
64202 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
64203
64204         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
64205
64206 2006-06-19  Bruno Haible  <bruno@clisp.org>
64207
64208         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
64209         and FULL_PATH_INTTYPES_H in angle brackets.
64210         Reported by Mark D. Baushke <mdb@gnu.org>.
64211
64212 2006-06-17  Eric Blake  <ebb9@byu.net>
64213
64214         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
64215         errno.
64216
64217 2006-06-17  Bruno Haible  <bruno@clisp.org>
64218
64219         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
64220         <sys/inttypes.h>.
64221
64222 2006-06-17  Bruno Haible  <bruno@clisp.org>
64223
64224         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
64225         whether errno is declared. Assume <errno.h> declares errno.
64226
64227 2006-06-17  Bruno Haible  <bruno@clisp.org>
64228
64229         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
64230
64231 2006-06-17  Bruno Haible  <bruno@clisp.org>
64232
64233         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
64234         problem on Solaris 2.5.1.
64235
64236 2006-06-16  Eric Blake  <ebb9@byu.net>
64237
64238         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
64239         * lib/unicodeio.c [!defined errno]: Likewise.
64240         * lib/strtol.c [!defined errno]: Likewise.
64241         * lib/strtod.c [!defined errno]: Likewise.
64242
64243 2006-06-15  Eric Blake  <ebb9@byu.net>
64244
64245         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
64246
64247 2006-06-15  Eric Blake  <ebb9@byu.net>
64248
64249         * config/srclist.txt (ssize_t.m4): Lose sync.
64250
64251 2006-06-15  Bruno Haible  <bruno@clisp.org>
64252
64253         * modules/stdint (Files): Include m4/full-header-path.m4,
64254         m4/size_max.m4, m4/wchar_t.m4.
64255         (Makefile.am): Many more substitutions.
64256         * modules/stdint-tests: New file.
64257         * tests/test-stdint.c: New file.
64258
64259 2006-06-15  Bruno Haible  <bruno@clisp.org>
64260
64261         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
64262         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
64263         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
64264         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
64265         gl_CHECK_TYPE_SAME): New macros.
64266
64267 2006-06-15  Bruno Haible  <bruno@clisp.org>
64268
64269         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
64270
64271 2006-06-15  Bruno Haible  <bruno@clisp.org>
64272
64273         * lib/stdint_.h: Rewritten to be fully auto-configured.
64274         Fixes bug on HP-UX/IA64.
64275
64276 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
64277
64278         * lib/getdate.y (__attribute__): Don't define if already defined.
64279         Problem reported by Larry Jones.
64280         * lib/utimens.c (__attribute__): Likewise.
64281
64282 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
64283
64284         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
64285         reported by Andreas Schwab.
64286
64287 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64288             Bruno Haible  <bruno@clisp.org>
64289
64290         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
64291         check for the declaration of strnlen and a run test that exposes the
64292         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
64293         rpl_strndup.
64294
64295 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64296             Bruno Haible  <bruno@clisp.org>
64297
64298         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
64299
64300 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64301
64302         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
64303         compile test, for Tru64 4.0D.
64304
64305 2006-05-28  Karl Berry  <karl@gnu.org>
64306
64307         * config/srclist.txt (printf-args.c): lose sync.
64308
64309 2006-05-26  Martin Lambers  <marlam@marlam.de>
64310
64311         * lib/getpass.c: Updates the test for the native W32 API, and adds
64312         missing includes, thus fixing compilation warnings.
64313
64314 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
64315
64316         * lib/exclude.c (exclude_fnmatch): New function.
64317         (excluded_file_name): Call exclude_fnmatch.
64318         * lib/exclude.h (excluded_file_name): New prototype
64319
64320 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
64321
64322         * lib/tempname.c (small_open, large_open): New macros.
64323         (__open, __open64) [!_LIBC]: Remove.
64324         (__gen_tempname): Use small_open and large_open instead of __open
64325         and __open64.  This fixes a portability bug on HP-UX 11.11i
64326         reported by Simon Wing-Tang in
64327         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
64328
64329 2006-05-24  Bruno Haible  <bruno@clisp.org>
64330
64331         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
64332         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
64333         Reported by Thorsten Maerz <torte@netztorte.de> via
64334         Aaron Stone <aaron@serendipity.cx>.
64335
64336 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64337
64338         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
64339         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
64340         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
64341         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
64342         not really conditional on the cache.
64343         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
64344
64345 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
64346
64347         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
64348         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
64349         (my_usleep): Don't mishandle maximum value.
64350
64351 2006-05-19  Jim Meyering  <jim@meyering.net>
64352
64353         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
64354
64355 2006-05-17  Bruno Haible  <bruno@clisp.org>
64356
64357         Cygwin portability.
64358         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
64359
64360 2006-05-17  Bruno Haible  <bruno@clisp.org>
64361
64362         * lib/stdint_.h: Fix recognition of Cygwin.
64363
64364 2006-05-15  Bruno Haible  <bruno@clisp.org>
64365
64366         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
64367         on libtool patch by Ralf Wildenhues.
64368
64369 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
64370
64371         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
64372         test for C99 conformance; (bool) 0.5 is an integer constant
64373         expression, but (bool) -0.5 is not.  Problem reported by Fedor
64374         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
64375
64376 2006-05-11  Simon Josefsson  <jas@extundo.com>
64377
64378         * m4/xvasprintf.m4: Fix obvious typo.
64379
64380 2006-05-11  Jim Meyering  <jim@meyering.net>
64381
64382         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
64383         James Lemley.
64384
64385 2006-05-10  Simon Josefsson  <jas@extundo.com>
64386
64387         * lib/md4.c: Typo fix, update copyright years.
64388         (K1, K2): Don't use L because it turn computations into 64-bit on
64389         64-bit platforms.
64390
64391 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
64392
64393         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
64394         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
64395         unwanted sign propagation, e.g., on hosts with 64-bit int.
64396         There still are some problems with reeelly weird theoretical hosts
64397         (e.g., 33-bit int) but it's not worth worrying about now.
64398         * lib/sha1.c (rol): Likewise.
64399         (K1, K2, K3, K4): Remove unnecessary L suffix.
64400
64401 2006-05-10  Bruno Haible  <bruno@clisp.org>
64402
64403         * lib/des.c: Cast to avoid warnings.
64404
64405 2006-05-09  Bruno Haible  <bruno@clisp.org>
64406
64407         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
64408         (Depends-on): Depend also on xsize, stdarg.
64409         (configure.ac): Add gl_XVASPRINTF.
64410
64411 2006-05-09  Bruno Haible  <bruno@clisp.org>
64412
64413         * m4/xvasprintf.m4: New file.
64414
64415 2006-05-09  Bruno Haible  <bruno@clisp.org>
64416
64417         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
64418         (EOVERFLOW): Define fallback value.
64419         (xstrcat): New function.
64420         (xvasprintf): Recognize the special case of a string concatenation.
64421
64422 2006-05-08  Eric Blake  <ebb9@byu.net>
64423
64424         * gnulib-tool (func_version): Base copyright year on CVS date.
64425         (func_emit_copyright_notice): New function.
64426         (func_emit_lib_Makefile_am): Use it.
64427         (func_emit_tests_Makefile_am): Likewise.
64428         (func_import): Likewise.
64429
64430 2006-05-08  Bruno Haible  <bruno@clisp.org>
64431
64432         * modules/stdarg: New file.
64433         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
64434
64435 2006-05-08  Bruno Haible  <bruno@clisp.org>
64436
64437         * m4/stdarg.m4: New file, from GNU gettext.
64438
64439 2006-05-08  Bruno Haible  <bruno@clisp.org>
64440
64441         * config/srclist.txt (build-aux/config.rpath): different from latest
64442         release.
64443
64444 2006-05-08  Bruno Haible  <bruno@clisp.org>
64445
64446         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
64447
64448 2006-05-05  Jim Meyering  <jim@meyering.net>
64449
64450         * m4/warning.m4: New file, derived from bison's file by the same name.
64451
64452 2006-05-03  Bruno Haible  <bruno@clisp.org>
64453
64454         * lib/stdint_.h: Shorter URL.
64455         * lib/inttypes.h: Likewise.
64456
64457 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64458
64459         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
64460
64461 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64462
64463         * lib/verify.h: Document the internals better.  Most of this change
64464         was written by Bruno Haible.
64465
64466 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64467
64468         * doc/verify.texi: New file, partly based on a proposal by
64469         Bruno Haible.
64470
64471 2006-05-02  Bruno Haible  <bruno@clisp.org>
64472
64473         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
64474         test from here...
64475         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
64476
64477 2006-04-29  Bruno Haible  <bruno@clisp.org>
64478
64479         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
64480         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
64481
64482 2006-04-29  Bruno Haible  <bruno@clisp.org>
64483
64484         * gnulib-tool: Make --update option actually work.
64485
64486 2006-04-29  Bruno Haible  <bruno@clisp.org>
64487
64488         * doc/gcd.texi: New file.
64489         * doc/gnulib.texi: Include it.
64490
64491 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
64492
64493         * lib/getdate.y (get_date): When adding relative date, start with the
64494         initial time, not with the result of the first mktime call.
64495
64496 2006-04-25  Bruno Haible  <bruno@clisp.org>
64497
64498         * gnulib-tool (func_import): Output the include directives in three
64499         blocks, sorted separately.
64500         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64501
64502 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64503
64504         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
64505         to define main with arguments, for C++.  Reported by Eric Blake.
64506         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
64507         Prefer 'int main ()' to 'int main (void)', for C++.
64508         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
64509         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
64510         for 'main', for C99 and C++.
64511
64512 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
64513
64514         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
64515         Don't assume that exit status -1 is valid.
64516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64517         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
64518         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
64519         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
64520         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
64521         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
64522         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
64523         functions can be used without declaring them, or that you can
64524         exit with status -1.
64525         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
64526
64527 2006-04-24  Karl Berry  <karl@gnu.org>
64528
64529         * config/srclist.txt (longdouble.m4): sync lost.
64530
64531 2006-04-24  Eric Blake  <ebb9@byu.net>
64532
64533         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
64534
64535 2006-04-24  Bruno Haible  <bruno@clisp.org>
64536
64537         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
64538         poll() implementation in AIX.
64539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64540
64541 2006-04-24  Bruno Haible  <bruno@clisp.org>
64542
64543         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
64544         assigned exactly once.
64545
64546 2006-04-23  Claudio Fontana  <claudio@gnu.org>
64547             Bruno Haible  <bruno@clisp.org>
64548
64549         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
64550         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
64551         for AM_CPPFLAGS.
64552
64553 2006-04-23  Bruno Haible  <bruno@clisp.org>
64554
64555         * modules/copy-file: Depend on unistd.
64556         * modules/execute: Likewise.
64557         * modules/fatal-signal: Likewise.
64558         * modules/findprog: Likewise.
64559         * modules/mkdtemp : Likewise.
64560         * modules/pipe: Likewise.
64561         * modules/wait-process: Likewise.
64562
64563 2006-04-23  Bruno Haible  <bruno@clisp.org>
64564
64565         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
64566         condition was already detected.
64567         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64568
64569 2006-04-23  Bruno Haible  <bruno@clisp.org>
64570
64571         * lib/copy-file.c: Include <unistd.h> unconditionally.
64572         * lib/execute.c: Likewise.
64573         * lib/fatal-signal.c: Likewise.
64574         * lib/findprog.c: Likewise.
64575         * lib/mkdtemp.c: Likewise.
64576         * lib/pipe.h: Likewise.
64577         * lib/pipe.c: Likewise.
64578         * lib/wait-process.h: Likewise.
64579
64580 2006-04-23  Bruno Haible  <bruno@clisp.org>
64581
64582         * gnulib-tool (func_usage): Fix --import description. Document
64583         --update.
64584         (func_import): Create temporary file in a temporary directory, if
64585         --dry-run is specified. Silence errors from 'grep' when there are no
64586         m4 files in $m4dir.
64587         (func_create_testdir): Silence errors from 'grep' when there are no
64588         m4 files in $m4dir.
64589         Reported by Karl Berry <karl@freefriends.org>.
64590
64591 2006-04-20  Bruno Haible  <bruno@clisp.org>
64592
64593         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
64594         one argument, so that the code will be portable to Autoconf 2.60.
64595         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
64596         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
64597         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
64598
64599 2006-04-19  Derek Price  <derek@ximbiot.com>
64600             Eric Blake  <ebb9@byu.net>
64601
64602         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
64603         rather than "/full/path.h".  Update comment to match.  Shorten &
64604         generalize m4_translit call via AS_TR_CPP.
64605
64606 2006-04-19  Derek Price  <derek@ximbiot.com>
64607             Eric Blake  <ebb9@byu.net>
64608
64609         * lib/inttypes.h: Correct grammar in comment.
64610
64611 2006-04-18  Derek Price  <derek@ximbiot.com>
64612             Paul Eggert  <eggert@cs.ucla.edu>
64613
64614         * modules/inttypes: New file.
64615         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
64616
64617 2006-04-18  Derek Price  <derek@ximbiot.com>
64618             Paul Eggert  <eggert@cs.ucla.edu>
64619
64620         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
64621         New files.
64622
64623 2006-04-18  Derek Price  <derek@ximbiot.com>
64624             Paul Eggert  <eggert@cs.ucla.edu>
64625
64626         * lib/inttypes.h: New file.
64627         * lib/strtoimax.c: Assume <inttypes.h>.
64628
64629 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
64630
64631         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
64632         isn't mounted.  Problem reported by Kir Kolyshkin.
64633
64634 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64635
64636         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
64637         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
64638         Derek R. Price.
64639         * lib/regex.h (RE_DUP_MAX): Update comment to match current
64640         implementation.
64641
64642 2006-04-12  Eric Blake  <ebb9@byu.net>
64643
64644         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
64645         is now done automatically by the corresponding Autoconf macro.
64646
64647 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
64648
64649         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
64650         time_r.h.
64651
64652 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64653
64654         Merge regex changes from libc, removing some of our
64655         POSIX-conformance changes that were rejected and redoing them in a
64656         less-intrusive way.
64657
64658         * lib/regcomp.c (re_compile_internal, init_dfa):
64659         Length arg is now size_t, not Idx.  All uses changed.
64660         (peek_token): Forward decl now says internal_function.
64661         (__re_error_msgid, __re_error_msgid_idx):
64662         Now static rather than extern with attribute_hidden.
64663         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
64664         For some reason libc prefers K&R style defns for external functions.
64665         (regerror) [!defined _LIBC]: Likewise.
64666         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
64667         (seek_collating_symbol_entry, lookup_collation_sequence_value):
64668         (build_range_exp, build_collating_symbol):
64669         Use K&R-style defn.
64670         (re_compile_fastmap): Use '\0' to memset, not 0.
64671         (utf8_sb_map): Make the calculations more obvious.
64672         (init_dfa, parse_bracket_exp, build_charclass_op):
64673         Call calloc and cast result, as glibc does.
64674         (init_word_char, fetch_token, peek_token, peek_token_bracket):
64675         (build_range_exp, build_collating_symbol):
64676         Now internal functions.
64677
64678         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
64679
64680         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
64681         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
64682         Don't depend on VMS; depend on __VMS instead, for POSIX
64683         namespace cleanness.
64684         (regoff_t): Define to ssize_t, not long int.
64685
64686         Remove the REG_ macros named below.  Instead, make the old names
64687         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
64688         __USE_GNU_REGEX.
64689         (REG_BACKSLASH_ESCAPE_IN_LISTS):
64690         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
64691         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
64692         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
64693         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
64694         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
64695         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
64696         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
64697         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
64698         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
64699         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
64700         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
64701         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
64702         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
64703         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
64704         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
64705         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
64706         (REG_NREGS):
64707         Remove.  All uses replaced by the old RE_* names.
64708         (RE_BACKSLASH_ESCAPE_IN_LISTS):
64709         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
64710         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
64711         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
64712         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
64713         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
64714         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
64715         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
64716         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
64717         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
64718         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
64719         Don't bother having these macros be independent of each others'
64720         values, since they no longer exist in the POSIX name space.
64721
64722         Rename the following member names back to their old names,
64723         unless !__USE_GNU_REGEX.  All uses changed back.
64724         (buffer): Renamed from re_buffer.
64725         (allocated): Renamed from re_allocated.
64726         (used): Renamed from re_used.
64727         (syntax): Renamed from re_syntax.
64728         (fastmap): Renamed from re_fastmap.
64729         (translate): Renamed from re_translate.
64730         (can_be_null): Renamed from re_can_be_null.
64731         (regs_allocated): Renamed from re_regs_allocated.
64732         (fastmap_accurate): Renamed from re_fastmap_accurate.
64733         (no_sub): Renamed from re_no_sub.
64734         (not_bol): Renamed from re_not_bol.
64735         (not_eol): Renamed from re_not_eol.
64736         (newline_anchor): Renamed from re_newline_anchor.
64737         (num_regs): Renamed from rm_num_regs.
64738         (start): Renamed from rm_start.
64739         (end): Renamed from rm_end.
64740
64741         (free_state): Move up a bit.
64742
64743         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
64744         #define to be empty.
64745         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
64746         when that is what is intended.
64747         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
64748         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
64749         (MAX): New macro.
64750         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
64751         All uses changed back to re_malloc, etc.  It's now the caller's
64752         responsibility to check for overflow; all callers changed.
64753         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
64754         (re_x2nrealloc): Remove.
64755         (free_state): Remove decl.
64756
64757         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
64758         (re_set_registers, re_exec):
64759         Use K&R-style defn.
64760
64761         2006-01-31  Roland McGrath  <roland@redhat.com>
64762
64763         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
64764         Reported by Mike Frysinger <vapier@gentoo.org>.
64765
64766         2006-01-15  Andreas Jaeger  <aj@suse.de>
64767
64768         [BZ #1950]
64769         * lib/regex_internal.c (re_string_reconstruct): Adjust for
64770         build_wcs_upper_buffer change.
64771         (build_wcs_upper_buffer): Change return type.
64772
64773         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
64774
64775         * lib/regex_internal.h: Include <stdint.h> if available.
64776
64777         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
64778
64779         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
64780
64781         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64782
64783         * lib/regcomp.c: Adjust for changed secondary hash function.
64784
64785         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
64786
64787         * lib/regex.h: Pretty printing.
64788         Clean up namespace a bit.
64789
64790         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
64791
64792         * lib/regexec.c (update_cur_sifted_state, check_arrival,
64793         check_arrival_add_next_nodes): Avoid using uninitialized variable.
64794
64795         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64796                     Ulrich Drepper  <drepper@redhat.com>
64797
64798         [BZ #1302]
64799         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
64800         changed.
64801         (bitset_word_t): Renamed from bitset_word.  All uses changed.
64802
64803         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
64804
64805         [BZ #281]
64806         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
64807         * lib/regcomp.c: Remove unnecessary uses of
64808         unsigned RE_TRANSLATE_TYPE.
64809         * lib/regex_internal.h: Likewise.
64810         * lib/regex_internal.c: Likewise.
64811         * lib/regexec.c: Likewise.
64812         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
64813
64814         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
64815
64816         * lib/regexec.c (find_recover_state): Remove unnecessary
64817         initialization.
64818         (transit_state_bkref): Make DFA a const pointer.
64819         (get_subexp): Likewise.
64820         (check_arrival): Likewise.
64821         (update_cur_sifted_state): Likewise.
64822         (re_search_internal): Likewise.
64823         (prune_impossible_nodes): Likewise.
64824         (acquire_init_state_context): Likewise.
64825         (proceed_next_node): Likewise.
64826         (set_regs): Likewise.
64827         (free_fail_stack_return): Likewise.
64828         (check_arrival_expand_ecl): Mark DFA parameter as const.
64829         (check_arrival_expand_ecl_sub): Likewise.
64830         (check_subexp_limits): Likewise.
64831         (sub_epsilon_src_nodes):  Likewise.
64832         (add_epsilon_src_nodes):  Likewise.
64833         (merge_state_array): Likewise.
64834         (update_regs): Likewise.
64835         (build_trtable): Likewise.
64836         (sift_states_backward): Mark MCTX parameter as const.
64837         (build_sifted_states): Likewise.
64838         (update_cur_sifted_state): Likewise.
64839         (sift_states_mkref): Likewise.
64840         (check_arrival_expand_ecl): Mark eclosure as const.
64841         (check_dst_limits_calc_pos_1): Likewise.
64842         * lib/regex_internal.h (re_match_context_t): Make dfa a const
64843         pointer.
64844
64845         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
64846
64847         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
64848         (transit_state_sb): Likewise.
64849         (transit_state_mb): Likewise.
64850         (sift_states_iter_mb): Likewise.
64851         (check_arrival_add_next_nodes): Likewise.
64852         (check_node_accept_bytes): Change first parameter to pointer-to-const.
64853         [_LIBC] (re_search_2_stub): Use mempcpy.
64854
64855         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
64856         mbrtowc for very simple UTF-8 case.
64857
64858         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
64859         a pointer-to-const.
64860         (re_acquire_state_context): Likewise.
64861         * lib/regex_internal.h: Adjust prototypes.
64862
64863         * lib/regex.c: Prevent using C++ compilers.
64864
64865         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
64866         (re_acquire_state_context): Likewise.
64867
64868 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64869
64870         * modules/regex (Depends-on): Add ssize_t.
64871
64872 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64873
64874         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
64875         translation table.
64876
64877 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
64878
64879         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
64880
64881 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
64882             Bruno Haible  <bruno@clisp.org>
64883
64884         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
64885         <sys/types.h> and <inttypes.h>.
64886
64887 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64888
64889         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
64890         `__error_t_defined', so argp.h will not typedef the former.
64891
64892 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
64893
64894         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
64895         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
64896         glibc names.  Even if glibc is changed to conform to POSIX, the
64897         traditional names will be available anyway, since regex depends on
64898         the extensions module.  Also, fix a longstanding typo in the
64899         implementation of Spencer ERE test #75 from grep 2.3.  Problems
64900         reported by Emanuele Giaquinta.  Also, change sense of cached
64901         variable, so that the message makes sense.
64902
64903 2006-03-24  Simon Josefsson  <jas@extundo.com>
64904
64905         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
64906         including some doc fixes.
64907         (base64_encode_alloc): Fix +1 bug on allocation failures.
64908
64909 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64910
64911         * lib/base64.c (base64_encode): Do not read past end of array with
64912         unsanitized input on systems with CHAR_BIT > 8.
64913
64914 2006-03-24  Eric Blake  <ebb9@byu.net>
64915
64916         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
64917
64918 2006-03-22  Karl Berry  <karl@gnu.org>
64919
64920         * config/srclist.txt (*setenv.[ch]): get from coreutils.
64921         * config/srclistvars.sh (COREUTILS): new var.
64922
64923 2006-03-17  Jim Meyering  <jim@meyering.net>
64924
64925         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
64926         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
64927
64928 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64929
64930         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
64931         no longer needs it.  Instead, check that regoff_t is as least
64932         as wide as ptrdiff_t.
64933
64934         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
64935         so that our regex.h stays compatible with the installed regex.
64936         This is helpful for installers who configure --without-included-regex.
64937         Problem reported by Emanuele Giaquinta.
64938
64939 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
64940
64941         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
64942         Typedef to long int, not to off_, as POSIX will likely change
64943         in that direction.
64944
64945 2006-03-15  Eric Blake  <ebb9@byu.net>
64946
64947         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
64948
64949 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
64950
64951         * lib/argp-help.c (validate_uparams): Fix typo
64952         * lib/argp-parse.c (argp_default_options): Consistently begin help
64953         messages with a lowercase letter.
64954
64955 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
64956
64957         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
64958         overrun buffers and shouldn't be used (much as gets shouldn't be
64959         used).
64960         * lib/time_r.c (asctime_r, ctime_r): Likewise.
64961
64962 2006-03-08  Simon Josefsson  <jas@extundo.com>
64963
64964         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
64965         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64966
64967 2006-03-08  Simon Josefsson  <jas@extundo.com>
64968
64969         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
64970         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64971
64972 2006-03-08  Simon Josefsson  <jas@extundo.com>
64973
64974         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
64975         signal that configure disabled the device.
64976
64977 2006-03-08  Simon Josefsson  <jas@extundo.com>
64978
64979         * build-aux/maint.mk: Fix refresh-po, to handle no translated
64980         languages.
64981
64982 2006-03-07  Simon Josefsson  <jas@extundo.com>
64983
64984         * modules/getopt (Depends-on): Add unistd.
64985
64986         * modules/unistd: New file.
64987
64988 2006-03-07  Simon Josefsson  <jas@extundo.com>
64989
64990         * modules/gc-random: New file.
64991
64992 2006-03-07  Simon Josefsson  <jas@extundo.com>
64993
64994         * m4/unistd_h.m4: New file.
64995
64996 2006-03-07  Simon Josefsson  <jas@extundo.com>
64997
64998         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
64999         test to be side-effect free by storing the result in the cache
65000         variable gl_cv_lib_readline, and moving the assignment of
65001         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
65002         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65003
65004 2006-03-07  Simon Josefsson  <jas@extundo.com>
65005
65006         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
65007         error on missing devices (the functions will return an error).
65008
65009         * m4/gc.m4: Move random stuff to gc-random.m4
65010
65011 2006-03-07  Simon Josefsson  <jas@extundo.com>
65012
65013         * lib/unistd_.h: New file.
65014
65015 2006-03-07  Simon Josefsson  <jas@extundo.com>
65016
65017         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
65018
65019 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65020
65021         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
65022         Problem reported by Juan Manuel Guerrero.
65023
65024 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65025
65026         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
65027         the unistd module.
65028         * lib/getlogin_r.c: Likewise.
65029         * lib/getlogin_r.h: Likewise.
65030         * lib/glob.c: Likewise.
65031         * lib/pagealign_alloc.c: Likewise.
65032         * lib/unistd_.h: Remove; no longer needed.
65033
65034 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
65035
65036         * MODULES.html.sh (Support for systems lacking POSIX:2001):
65037         Add unistd.
65038         * modules/c-stack (Depends-on): Add unistd.
65039         * modules/getlogin_r: Likewise.
65040         * modules/glob: Likewise.
65041         * modules/pagealign_alloc: Likewise.
65042         * modules/unistd (Files): Remove lib/unistd_.h.
65043         (EXTRA_DIST): Remove.
65044         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
65045         need unistd_.h.
65046         (MOSTLYCLEANFILES): Remove unistd.h-t.
65047
65048 2006-03-03  Simon Josefsson  <jas@extundo.com>
65049
65050         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
65051
65052 2006-03-03  Simon Josefsson  <jas@extundo.com>
65053
65054         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
65055         libidn and bison.
65056
65057 2006-03-03  Simon Josefsson  <jas@extundo.com>
65058
65059         * build-aux/maint.mk: Add indent target.
65060
65061 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
65062
65063         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
65064         our replacement poll.h in any case, to avoid a differing
65065         declaration from a system header.  Seen on AIX.
65066
65067 2006-03-01  Simon Josefsson  <jas@extundo.com>
65068
65069         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
65070         <kasal@ucw.cz>.
65071
65072 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65073
65074         * modules/gettime (Depends-on): Add extensions module.
65075         * modules/nanosleep (Depends-on): Likewise.
65076         * modules/settime (Depends-on): Likewise.
65077
65078 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65079
65080         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
65081         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
65082         pedantically.
65083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65084         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
65085
65086         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
65087         not "==".  Reported by Ralf Wildenhues.
65088
65089 2006-03-01  Karl Berry  <karl@gnu.org>
65090
65091         * doc/Copyright/request-*: new files, synced from gnuorg.
65092
65093 2006-03-01  Karl Berry  <karl@gnu.org>
65094
65095         * config/srclist.txt (Copyright/*): new entries.
65096
65097 2006-02-28  Simon Josefsson  <jas@extundo.com>
65098
65099         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
65100
65101 2006-02-27  Simon Josefsson  <jas@extundo.com>
65102
65103         * lib/base64.h: Indent #define's.  From Jim Meyering
65104         <jim@meyering.net>.
65105
65106 2006-02-27  Jim Meyering  <jim@meyering.net>
65107
65108         Revert the change of 2006-02-24, so these files can continue
65109         to be sync'd from gettext.
65110         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
65111         of `config.h'.
65112
65113 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
65114
65115         * modules/intprops: New file.
65116         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65117         Add intprops.
65118         * modules/getloadavg (Files): Remove lib/intprops.h.
65119         (Depends-on): Add intprops.
65120         * modules/human: Likewise.
65121         * modules/inttostr: Likewise.
65122         * modules/openat: Likewise.
65123         * modules/sig2str: Likewise.
65124         * modules/userspec: Likewise.
65125         * modules/utimecmp: Likewise.
65126         * modules/xnanosleep: Likewise.
65127         * modules/xstrtol: Likewise.
65128
65129 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
65130
65131         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
65132         * modules/lock-tests (TESTS): Use $(EXEEXT).
65133         * modules/tls-tests: Likewise.
65134         * modules/argp-tests: Likewise.
65135         (check_PROGRAMS): New var, replacing...
65136         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
65137
65138 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65139
65140         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
65141         `config.h'.
65142
65143 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65144
65145         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
65146
65147 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65148
65149         Sync from coreutils.
65150         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
65151         gl_CHDIR_SAFER.
65152
65153 2006-02-22  Jim Meyering  <jim@meyering.net>
65154
65155         Sync from coreutils.
65156         * m4/chdir-safer.m4: New file.
65157
65158 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65159
65160         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
65161         AT_FDCWD exceeds INT_MAX.
65162         * lib/openat.h (AT_FDCWD): Likewise.
65163
65164 2006-02-17  Eric Blake  <address@hidden>
65165
65166         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
65167
65168 2006-02-16  Simon Josefsson  <jas@extundo.com>
65169
65170         * modules/getaddrinfo (Depends-on): Add sys_socket.
65171
65172 2006-02-15  Simon Josefsson  <jas@extundo.com>
65173
65174         * build-aux/maint.mk: Add dsyntax-check rule.
65175
65176 2006-02-15  Eric Blake  <ebb9@byu.net>
65177
65178         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
65179         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
65180         'present but cannot compile' warnings on cygwin.
65181         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
65182         use ws2tcpip.h if sys/socket.h works.
65183         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
65184         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
65185
65186 2006-02-14  Simon Josefsson  <jas@extundo.com>
65187
65188         * modules/maintainer-makefile (Files): Rename.
65189
65190         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
65191         and (the local) Makefile.cfg to maint-cfg.mk.
65192
65193         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
65194         to the latter.
65195
65196         * modules/maintainer-makefile: New module.
65197
65198         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
65199         severaly stripped to make it possible to build it up from scratch
65200         with reliable tests.
65201
65202         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
65203         fixes to permit overriding the default actions when configure and
65204         makefile are not available.
65205
65206 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65207
65208         Sync from coreutils.
65209         * modules/lstat (Depends-on): Don't depend on xalloc.
65210         (License): Change from GPL to LGPL, since this is now simply a
65211         replacement for a libc function.
65212
65213 2006-02-14  Jim Meyering  <jim@meyering.net>
65214
65215         Sync from coreutils.
65216
65217         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
65218         failure on deficient systems, and simplify gnulib lgpl dependencies.
65219         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
65220         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
65221
65222         * lib/xalloc-die.c: Remove unused definition of N_.
65223
65224 2006-02-14  Jim Meyering  <jim@meyering.net>
65225
65226         Sync from coreutils.
65227         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
65228         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
65229         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
65230         double-quote uses of that variable, to accommodate the rare case in
65231         which getmntent is available in none of the libraries checked.  This
65232         happens at least on FreeBSD 5.0.
65233
65234 2006-02-13  Simon Josefsson  <jas@extundo.com>
65235
65236         * gnulib-tool (Usage): Fix --import, from
65237         karl@freefriends.org (Karl Berry).
65238
65239 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
65240
65241         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
65242
65243 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
65244
65245         * lib/argp-namefrob.h: Restore changes accidentally lost during the
65246         "autoupdate" on 2005-12-12.
65247
65248 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65249
65250         * modules/closeout (Depends-on): Remove atexit.
65251
65252 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
65253
65254         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
65255         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
65256
65257 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65258
65259         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
65260         __EXTENSIONS__ if this causes compilation to fail.  Problem
65261         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
65262         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
65263
65264 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
65265
65266         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
65267         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
65268         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
65269         All uses changed.
65270
65271 2006-01-26  Simon Josefsson  <jas@extundo.com>
65272
65273         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
65274         prototype is visible on mingw32.
65275
65276         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
65277         for mingw32.
65278
65279         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
65280         mingw32).
65281
65282 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65283
65284         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
65285         attempt to open for write; this always fails, at least on POSIX
65286         hosts.  This reinstates the 2006-01-09 change, which was
65287         inadvertently removed.
65288
65289 2006-01-26  Bruno Haible  <bruno@clisp.org>
65290
65291         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
65292         Reported by Paul Eggert.
65293
65294 2006-01-26  Bruno Haible  <bruno@clisp.org>
65295             Paul Eggert  <eggert@cs.ucla.edu>
65296
65297         * lib/stdbool_.h (_Bool)
65298         [(! (defined __cplusplus || defined __BEOS__)
65299           && !defined __GNUC__
65300           && !(defined __HP_cc || defined __xlc__
65301                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
65302                || defined __sgi))]:
65303         #define to signed char in these cases too; this simplifies
65304         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
65305         etc., separately) and makes it more conservative.
65306
65307 2006-01-25  Simon Josefsson  <jas@extundo.com>
65308
65309         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
65310         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
65311         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
65312
65313 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65314
65315         * lib/argp-namefrob.h: Bugfix. Remove stray #
65316
65317 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
65318
65319         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
65320         so that we test the test.
65321         Check for yet another HP-UX cc bug involving *bool |= bool.
65322
65323 2006-01-25  Karl Berry  <karl@gnu.org>
65324
65325         * config/srclist.txt (vasnprintf.c): sync lost.
65326
65327 2006-01-25  Jim Meyering  <jim@meyering.net>
65328
65329         Sync from the stable (b5) branch of coreutils:
65330
65331         * lib/fts.c (fts_children): Don't let close() clobber errno from
65332         failed fchdir().
65333
65334         * lib/fts.c (fts_stat): When following a symlink-to-directory,
65335         don't necessarily interpret stat-fails+lstat-succeeds as indicating
65336         a dangling symlink.  That can also happen at least for ELOOP.
65337         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
65338         FYI, this bug predates the inclusion of fts.c in coreutils.
65339
65340         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
65341         in their own block, so pre-c99 compilers don't object.
65342
65343         Avoid the double-free (first in fts_read, second in fts_close) that
65344         would occur when an `active' directory is made inaccessible (e.g.,
65345         via chmod a-x) during a traversal.
65346         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65347         before returning.  Reproduce this failure by
65348         mkdir -p a/b; cd a; chmod a-x . b
65349         Reported by Stavros Passas.
65350
65351 2006-01-25  Jim Meyering  <jim@meyering.net>
65352
65353         * lib/fileblocks.c: Remove more useless parentheses.
65354         * lib/readutmp.h: Likewise.
65355
65356 2006-01-25  Bruno Haible  <bruno@clisp.org>
65357
65358         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
65359         warnings.
65360         Reported by Paul Eggert.
65361
65362 2006-01-25  Bruno Haible  <bruno@clisp.org>
65363
65364         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
65365         rid of a trap command. For Solaris sh.
65366         Reported by Mark D. Baushke <mdb@gnu.org>.
65367
65368 2006-01-24  Simon Josefsson  <jas@extundo.com>
65369
65370         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
65371         Bruno.
65372
65373 2006-01-24  Karl Berry  <karl@gnu.org>
65374
65375         * config/srclist.txt (argp-namefrob.h): sync lost.
65376
65377 2006-01-24  Jim Meyering  <jim@meyering.net>
65378
65379         * modules/openat (Files): Add lib/intprops.h.
65380         From Mark D. Baushke.
65381
65382 2006-01-24  Jim Meyering  <jim@meyering.net>
65383
65384         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
65385         Reported by Mark D. Baushke.
65386
65387 2006-01-24  Jim Meyering  <jim@meyering.net>
65388
65389         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
65390
65391 2006-01-24  Bruno Haible  <bruno@clisp.org>
65392
65393         * modules/strnlen (Maintainer): Change from glibc to all.
65394
65395 2006-01-24  Bruno Haible  <bruno@clisp.org>
65396
65397         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
65398         Patch by Paul Eggert.
65399
65400 2006-01-24  Bruno Haible  <bruno@clisp.org>
65401
65402         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
65403         already has it.
65404         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
65405         2005-11-26.
65406
65407         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
65408         'signed char' to avoid problems with the built-in _Bool type.
65409         Reported by Paul Eggert on 2005-11-26.
65410
65411 2006-01-24  Bruno Haible  <bruno@clisp.org>
65412
65413         * gnulib-tool (func_import): Avoid constructing complicated sed
65414         expressions inside backquote.
65415         Report and solution by Mark D. Baushke <mdb@gnu.org>.
65416
65417 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
65418
65419         These changes imported from libc.
65420         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
65421         test and two separate function calls.
65422         * lib/strndup.c (__strndup): Add libc_hidden_def.
65423
65424 2006-01-23  Simon Josefsson  <jas@extundo.com>
65425
65426         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
65427         Remove the test_*_SOURCES variable: automake infers it by default.
65428         * modules/tls-tests: Likewise.
65429
65430 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65431
65432         Work around porting bugs reported by Dieter in
65433         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
65434         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
65435         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
65436         Include "getopt.h" first, to check interface.
65437         (getenv): Declare only if defined HAVE_DECL_GETENV &&
65438         !HAVE_DECL_GETENV.
65439         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
65440         (__strndup): Revert to K&R-style function dfns, the glibc style.
65441         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
65442         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
65443         Include strnlen.h first, to get prototype properly.
65444         (strnlen): Renamed from __strnlen.
65445         Remove weak alias.
65446
65447 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65448
65449         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
65450
65451 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65452
65453         * config/srclist.txt: Adjust to reflect glibc reorganization.
65454         This affects only comments.
65455
65456 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65457
65458          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
65459          Reported by Bruce Korb <bkorb@gnu.org>.
65460
65461 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65462
65463         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
65464         to pacify gcc -Wswitch-default.
65465
65466 2006-01-22  Bruno Haible  <bruno@clisp.org>
65467
65468         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
65469         temporary buffer for sprintf, take into account the precision also
65470         for 'd', 'i', 'u', 'o', 'x', 'X'.
65471
65472 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65473
65474         * modules/argp-tests: New module
65475         * tests/test-argp.c: New file
65476         * tests/test-argp-2.sh: New file
65477
65478 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
65479
65480         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
65481         (__argp_base_name): Removed
65482         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
65483         typo.
65484         (__argp_base_name): Provide macro definition or extern declaration
65485         depending on the configuration
65486
65487 2006-01-20  Simon Josefsson  <jas@extundo.com>
65488
65489         * modules/inet_ntop (Depends-on): Depend on sys_socket.
65490
65491 2006-01-20  Simon Josefsson  <jas@extundo.com>
65492
65493         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
65494
65495 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
65496
65497         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
65498         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
65499         Suggested by Bruno Haible.
65500
65501 2006-01-20  Karl Berry  <karl@gnu.org>
65502
65503         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
65504         until changes propagate, I guess.
65505
65506 2006-01-19  Simon Josefsson  <jas@extundo.com>
65507
65508         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
65509
65510 2006-01-19  Simon Josefsson  <jas@extundo.com>
65511
65512         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
65513
65514 2006-01-19  Simon Josefsson  <jas@extundo.com>
65515
65516         * gnulib-tool: Set check_PROGRAMS.
65517
65518         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65519         modules/des-tests, modules/gc-arcfour-tests,
65520         modules/gc-arctwo-tests, modules/gc-des-tests,
65521         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65522         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65523         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65524         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65525         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65526         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
65527         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
65528         test_*_SOURCES.
65529
65530 2006-01-18  Simon Josefsson  <jas@extundo.com>
65531
65532         * modules/socklen (Depends-on): Depend on sys_socket.
65533
65534 2006-01-18  Simon Josefsson  <jas@extundo.com>
65535
65536         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
65537         modules/des-tests, modules/gc-arcfour-tests,
65538         modules/gc-arctwo-tests, modules/gc-des-tests,
65539         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
65540         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
65541         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
65542         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
65543         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
65544         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
65545         $(EXEEXT) to automake TESTS variable, for mingw32.
65546
65547 2006-01-17  Simon Josefsson  <jas@extundo.com>
65548
65549         * modules/socklen (Include): Need sys/socket.h.
65550
65551 2006-01-17  Bruno Haible  <bruno@clisp.org>
65552
65553         * modules/ssize_t (Include): Add <sys/types.h>.
65554
65555 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
65556
65557         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
65558         it's not portable and it doesn't work with cross-compiles.
65559         Problem reported by Bruno Haible.  Fix missing-$ typo in
65560         'test "gl_cv_ignore_unused_libraries" ...' that prevented
65561         -zignore from being used with Sun's C compiler.
65562
65563 2006-01-12  Simon Josefsson  <jas@extundo.com>
65564
65565         * lib/base64.c: Fix warning, reported by Bruno Haible
65566         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
65567
65568 2006-01-12  Bruno Haible  <bruno@clisp.org>
65569
65570         * modules/ldd: New file.
65571         * build-aux/ldd.sh.in: New file.
65572         * MODULES.html.sh (Support for building libraries and executables): Add
65573         ldd.
65574
65575 2006-01-12  Bruno Haible  <bruno@clisp.org>
65576
65577         * m4/ldd.m4: New file.
65578
65579 2006-01-12  Bruno Haible  <bruno@clisp.org>
65580
65581         * gnulib-tool (func_import, func_create_testdir): Don't go into an
65582         endless loop while replacing $auxdir with build-aux.
65583
65584 2006-01-11  Simon Josefsson  <jas@extundo.com>
65585
65586         * lib/stdint_.h (SIZE_MAX): Add missing (.
65587
65588 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
65589
65590         Sync from coreutils.
65591         * lib/md5.c: Fix commentary typos.
65592         (alignof, UNALIGNED_P): No need for a GCC-specific version.
65593         * lib/md5.h (__attribute__): Remove; unused.
65594         * lib/sha1.c: Fix commentary to match md5 better.
65595         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
65596         so that we don't need to worry about alignment.  All uses changed.
65597         This merges the 2005-10-28 md5 change into sha1.
65598
65599 2006-01-11  Jim Meyering  <jim@meyering.net>
65600
65601         Sync from coreutils.
65602         * lib/md5.c (OP): Fix spacing.
65603
65604 2006-01-11  Bruno Haible  <bruno@clisp.org>
65605
65606         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65607         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
65608         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
65609
65610 2006-01-11  Bruno Haible  <bruno@clisp.org>
65611
65612         Ensure automatic ordering between gl_LOCK and gl_ARGP.
65613         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
65614         the "early" section as well.
65615
65616 2006-01-11  Bruno Haible  <bruno@clisp.org>
65617
65618         Avoid "ar: no archive members specified" error on MacOS X.
65619         * gnulib-tool (func_modules_add_dummy): New function.
65620         (func_import, func_create_testdir): Invoke it.
65621
65622 2006-01-11  Bruno Haible  <bruno@clisp.org>
65623
65624         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
65625         with $auxdir in AC_CONFIG_FILES statements.
65626
65627 2006-01-11  Bruno Haible  <bruno@clisp.org>
65628
65629         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65630         Initialize also noinst_HEADERS to empty.
65631
65632 2006-01-11  Bruno Haible  <bruno@clisp.org>
65633
65634         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
65635         variables.
65636         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
65637         autoreconf.
65638
65639 2006-01-11  Bruno Haible  <bruno@clisp.org>
65640
65641         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
65642         overridable by the user.
65643         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65644
65645 2006-01-10  Simon Josefsson  <jas@extundo.com>
65646
65647         * modules/sys_socket: New file.
65648
65649 2006-01-10  Simon Josefsson  <jas@extundo.com>
65650
65651         * m4/sys_socket_h.m4: New file.
65652
65653 2006-01-10  Simon Josefsson  <jas@extundo.com>
65654
65655         * lib/socket_.h: New file.
65656
65657 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65658
65659         * modules/readutmp (Maintainer): Add myself.
65660
65661 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65662
65663         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
65664         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
65665         People who are still concerned with buggy memcmp implementations
65666         can invoke gl_FUNC_MEMCMP themselves.
65667
65668 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65669
65670         * lib/regex_internal.h (BITSET_WORD_BITS):
65671         Work around a bug in 64-bit PGC (before version 6.1-2), where the
65672         preprocessor mishandles large unsigned values as if they were signed.
65673         Problem reported by Claudio Fontana in
65674         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
65675
65676 2006-01-10  Jim Meyering  <jim@meyering.net>
65677
65678         Avoid the double-free (first in fts_read, second in fts_close) that
65679         would occur when an `active' directory is made inaccessible (e.g.,
65680         via chmod a-x) during a traversal.
65681         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
65682         before returning.  Reproduce this failure by
65683         mkdir -p a/b; cd a; chmod a-x . b
65684         Reported by Stavros Passas.
65685
65686         Sync from coreutils.
65687         * lib/sha1.c: Tweak grammar in a comment.
65688
65689 2006-01-10  Jim Meyering  <jim@meyering.net>
65690
65691         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
65692         Patch by Joerg Sonnenberger.
65693
65694 2006-01-10  Bruno Haible  <bruno@clisp.org>
65695
65696         * modules/readutmp: Depend on module free.
65697         * modules/strtok_r: Depend on module restrict.
65698
65699 2006-01-10  Bruno Haible  <bruno@clisp.org>
65700
65701         * modules/gettext (configure.ac): Add an invocation of
65702         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
65703
65704 2006-01-10  Bruno Haible  <bruno@clisp.org>
65705
65706         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
65707         Reported by Werner Lemberg <wl@gnu.org>.
65708
65709 2006-01-10  Bruno Haible  <bruno@clisp.org>
65710
65711         * lib/localcharset.c: Update from GNU gettext.
65712
65713 2006-01-10  Bruno Haible  <bruno@clisp.org>
65714
65715         * lib/argp.h (__const): Remove macro. Use const instead.
65716         * lib/argp-fmtstream.h (__const): Likewise.
65717         * lib/glob_.h (__const): Remove macro.
65718         * lib/glob-libc.h: Use const instead of __const.
65719
65720 2006-01-10  Bruno Haible  <bruno@clisp.org>
65721
65722         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
65723         variable.
65724         Needed to avoid an automake error regarding the 'gettext' module.
65725
65726 2006-01-09  Simon Josefsson  <jas@extundo.com>
65727
65728         * modules/inet_ntop (Depends-on): Add restrict.
65729
65730 2006-01-09  Simon Josefsson  <jas@extundo.com>
65731
65732         * modules/gc-rijndael-tests (License): Put under LGPL.
65733
65734         * modules/gc-des-tests (License): Likewise.
65735
65736         * modules/gc-arcfour-tests (License): Likewise.
65737
65738         * modules/gc-arctwo-tests (License): Likewise.
65739
65740         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
65741
65742         * modules/gc-hmac-sha1-tests (Files): Likewise.
65743
65744         * modules/gc-hmac-md5-tests (License): Likewise.
65745
65746         * modules/gc-sha1-tests (License): Likewise.
65747
65748         * modules/gc-md5-tests (License): Likewise.
65749
65750         * modules/gc-md4-tests (License): Likewise.
65751
65752         * modules/gc-md2-tests (License): Likewise.
65753
65754         * modules/gc-tests (License): Likewise.
65755
65756         * modules/des-tests (License): Likewise.
65757
65758         * modules/md4-tests (License): Likewise.
65759
65760         * modules/md2-tests (License): Likewise.
65761
65762 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65763
65764         Sync from coreutils:
65765
65766         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
65767         * modules/lib-ignore: New file.
65768         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
65769         chdir-safer.m4, lchmod.m4.
65770         * modules/openat: Add mkdirat.c, openat-priv.h.
65771
65772 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         Sync from coreutils.
65775         * m4/lib-ignore.m4: New file.
65776         * m4/lchmod.m4: New file.
65777
65778 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65779
65780         Sync from coreutils.
65781         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
65782         for write access: POSIX says that must fail.
65783         * lib/fts.c (diropen): Likewise.
65784         * lib/save-cwd.c (save_cwd): Likewise.
65785         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
65786         well, for minor improvements on hosts that lack O_DIRECTORY.
65787         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
65788         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
65789         Fall back on chown if open failed with EACCES.
65790
65791         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
65792         Report an error at compile-time if only a 1-second nominal clock
65793         resolution is found.
65794
65795         * lib/lchmod.h: New file.
65796         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
65797         (make_dir_parents): Use lchown rather than chown, and
65798         lchmod rather than chmod.
65799
65800         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
65801         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
65802         "proc" reported by n0dalus.
65803
65804         * lib/mountlist.c: Include <limits.h>.
65805         (dev_from_mount_options)
65806         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
65807         New function.  It no longer assumes "dev=" has the System V meaning
65808         on Linux (since it doesn't).  It also parses "dev=" more carefully.
65809         (read_file_system_list)
65810         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
65811         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
65812         dev= in that case.
65813
65814         * lib/posixtm.h (PDS_PRE_2000): New macro.
65815         * lib/posixtm.c (year): Arg is now syntax_bits rather than
65816         allow_century.  All usages changed.  Reject dates outside the range
65817         1969-1999 if PDS_PRE_2000 is used.
65818
65819 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
65820
65821         Sync from coreutils.
65822         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
65823         (Time of day items): Mention the possibility of leap seconds.
65824         Problem reported by Dr. David Alan Gilbert.
65825
65826 2006-01-09  Jim Meyering  <jim@meyering.net>
65827
65828         Sync from coreutils.
65829
65830         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
65831
65832         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
65833
65834         * lib/modechange.c (mode_compile): Reject an invalid mode string
65835         that starts with an octal digit.  From Andreas Gruenbacher.
65836
65837         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
65838         and dup to open_safer and dup_safer, respectively.
65839         (openat_permissive): Fix typo in comment.
65840
65841         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
65842         "gettext.h"; either no longer needed or are guaranteed by openat.h.
65843         (_): Remove; no longer needed.
65844         (openat): Renamed from rpl_openat; no need for rpl_openat
65845         since openat.h renames openat for us.
65846         Replace most of the body with a call to openat_permissive,
65847         to avoid duplicate code.
65848         Port to (probably hypothetical) environments were mode_t is
65849         wider than int.
65850         (openat_permissive): Require mode arg, so that we can check
65851         types better.  Put it just after flags.  Change cwd failure
65852         indicator from pointer-to-bool to pointer-to-errno-value.
65853         All callers changed.
65854         Invoke openat_save_fail and/or openat_restore_fail if
65855         cwd_errno is null, so that openat can call us.
65856         (openat_permissive, fdopendir, fstatat, unlinkat):
65857         Simplify errno handling to avoid some duplicate code,
65858         as it's OK to set errno on success.
65859         * lib/openat.h: Revamp code so that function macros depend on
65860         __OPENAT_PREFIX only, not also on AT_FDCWD.
65861         (openat_ro): Remove.  Caller changed to use openat_permissive.
65862         (openat_permissive): Now a macro, if not a function.
65863         (openat_restore_fail, openat_save_fail): Now always functions,
65864         since mkdirat needs them even if __OPENAT_PREFIX is defined.
65865
65866         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
65867         and openat.c.
65868         * lib/mkdirat.c: Include openat-priv.h.
65869         Remove definitions of macros defined therein.
65870         * lib/openat.c: Likewise.
65871
65872         * lib/mkdirat.c (mkdirat): New file and function.
65873         * lib/openat.h (mkdirat): Declare.
65874
65875         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
65876
65877         * lib/openat.h (openat_permissive): Declare.
65878         (openat_ro): Define.
65879
65880         * lib/openat.c (EXPECTED_ERRNO): New macro.
65881         (openat_permissive): New function -- used in remove.c rewrite.
65882         (all functions): Set errno just before returning, only if there
65883         was an actual failure.
65884         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
65885
65886         Emulate openat-family functions using Linux's procfs, if possible.
65887         Idea and some code based on Ulrich Drepper's glibc changes.
65888
65889         * lib/openat.c: (BUILD_PROC_NAME): New macro.
65890         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
65891         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
65892         before falling back on save_cwd and restore_cwd.
65893         (fdopendir, fstatat, unlinkat): Likewise.
65894
65895         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
65896         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
65897
65898         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
65899         as second argument to va_arg.  Otherwise, some versions of gcc
65900         warn that `if this code is reached, the program will abort'.
65901
65902 2006-01-09  Jim Meyering  <jim@meyering.net>
65903
65904         Sync from coreutils.
65905         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
65906         Require openat-priv.h.
65907
65908 2006-01-09  Bruno Haible  <bruno@clisp.org>
65909
65910         * modules/strnlen (Include): Use strnlen.h.
65911
65912 2006-01-09  Bruno Haible  <bruno@clisp.org>
65913
65914         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65915
65916 2006-01-09  Bruno Haible  <bruno@clisp.org>
65917
65918         * lib/sysexit_.h (EX_OK): New macro.
65919         Suggested by Martin Lambers <marlam@marlam.de>.
65920
65921 2006-01-09  Bruno Haible  <bruno@clisp.org>
65922
65923         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
65924         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
65925
65926 2006-01-09  Bruno Haible  <bruno@clisp.org>
65927
65928         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
65929         numbers.
65930
65931 2006-01-09  Bruno Haible  <bruno@clisp.org>
65932
65933         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
65934         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
65935         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
65936         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
65937
65938 2006-01-09  Bruno Haible  <bruno@clisp.org>
65939
65940         * build-aux/javacomp.sh.in: New file, moved from lib/.
65941         * modules/javacomp-script (Files): Update.
65942         (configure.ac): Add AC_CONFIG_FILES invocation.
65943         (EXTRA_DIST): Remove variable.
65944
65945         * build-aux/javaexec.sh.in: New file, moved from lib/.
65946         * modules/javaexec (Files): Update.
65947         (configure.ac): Add AC_CONFIG_FILES invocation.
65948         (EXTRA_DIST): Remove javaexec.sh.in.
65949
65950         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
65951         * modules/csharpcomp-script (Files): Update.
65952         (configure.ac): Add AC_CONFIG_FILES invocation.
65953         (EXTRA_DIST): Remove variable.
65954
65955         * build-aux/csharpexec.sh.in: New file, moved from lib/.
65956         * modules/csharpexec (Files): Update.
65957         (configure.ac): Add AC_CONFIG_FILES invocation.
65958         (EXTRA_DIST): Remove csharpexec.sh.in.
65959
65960 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65961
65962         Sync from coreutils.
65963
65964         Add POSIX ACL support
65965         * lib/acl.h (copy_acl, set_acl): Add declarations.
65966         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
65967         systems other than Linux.
65968         (chmod_or_fchmod): New function: use fchmod when possible,
65969         and chmod otherwise.
65970         (file_has_acl): Add a POSIX ACL implementation, with a
65971         Linux-specific subcase.
65972         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
65973         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
65974         acls are unsupported.
65975         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
65976         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
65977         are unsupported.
65978
65979 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
65980
65981         Sync from coreutils.
65982         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
65983
65984 2006-01-07  Bruno Haible  <bruno@clisp.org>
65985
65986         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
65987         gl_EARLY.
65988
65989 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65990
65991         * lib/strftime.c (tzname): Don't declare if it is already #defined.
65992         Problem reported for Mingw by Mark Junker.
65993
65994 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65995
65996         * README: Gnulib normally doesn't generate a tarball.
65997
65998 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
65999
66000         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
66001         long int, not int, for nanosecond counts, so that people who are
66002         used to POSIX struct timespec won't be surprised.  Reported by Jim
66003         Meyering.
66004
66005 2005-12-28  Bruno Haible  <bruno@clisp.org>
66006
66007         * build-aux/config.rpath: Update from GNU gettext.
66008
66009 2005-12-16  Jim Meyering  <jim@meyering.net>
66010
66011         * modules/fprintftime: New module.
66012         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
66013
66014 2005-12-16  Jim Meyering  <jim@meyering.net>
66015
66016         * m4/fprintftime.m4: New file.
66017
66018 2005-12-16  Jim Meyering  <jim@meyering.net>
66019
66020         * lib/fprintftime.c, lib/fprintftime.h: New files.
66021
66022 2005-12-15  Simon Josefsson  <jas@extundo.com>
66023
66024         * modules/socklen (configure.ac): Fix M4 macro name, to align with
66025         new m4/socklen.m4.
66026
66027 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66028
66029         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
66030         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
66031
66032 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66033
66034         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
66035         * lib/argp-help.c (fill_in_uparams): Check if the constructed
66036         struct uparams is valid. Fall back to the default values if it is
66037         not.
66038
66039 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66040
66041         * modules/argp (Files): Add argp-pin.c
66042         (Depends-on): dirname
66043         (lib_SOURCES): Add argp-pin.c
66044
66045 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66046
66047         * m4/argp.m4:  Check if program_invocation_name and
66048         program_invocation_short_name are declared and define appropriate
66049         macros if they are not.
66050
66051 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66052
66053         * lib/argp-help.c (__argp_base_name): New function
66054         (__argp_short_program_name): Rewrite using __argp_base_name
66055         * lib/argp-namefrob.h: Define program_invocation_name and
66056         program_invocation_short_name if requested
66057         (__argp_base_name): Add prototype
66058         * lib/argp-parse.c (argp_def): Use gettext wrappers
66059         (argp_default_parser): Use __argp_base_name
66060         * lib/argp-pin.c: New file. Defines program_invocation_name and
66061         program_invocation_short_name on systems that lack them.
66062
66063 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66064
66065         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
66066         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66067         porting problem reported by Georg Schwarz in
66068         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66069
66070 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
66071
66072         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
66073         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
66074         porting problem reported by Georg Schwarz in
66075         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
66076
66077 2005-12-05  Bruno Haible  <bruno@clisp.org>
66078
66079         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
66080         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
66081         Reported by Mark Junker <mjscod@gmx.de>.
66082
66083 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
66084
66085         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
66086         Use implementation from Albert Chin, with some
66087         comments/corrections by Stepan Kasal and myself.
66088
66089 2005-12-02  Bruno Haible  <bruno@clisp.org>
66090
66091         * gnulib-tool (func_import): Accept GPLed build tool modules when
66092         --lgpl is given.
66093         * modules/csharpcomp-script: New file.
66094         * modules/csharpcomp: Depend on it.
66095         * modules/javacomp-script: New file.
66096         * modules/javacomp: Depend on it.
66097         Suggested by Simon Josefsson.
66098
66099 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
66100
66101         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
66102         statement, to work around an HP-UX 10.20 compiler bug reported by
66103         Peter O'Gorman.
66104
66105 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66106
66107         * modules/savedir (Depends-on): Add openat.
66108
66109 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
66110
66111         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
66112         (uintmax_t) [defined uintmax_t]: Do not declare.
66113         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
66114         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
66115         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
66116         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
66117         sake of portability to weird hosts that C allows (though we don't
66118         know of any practical examples).
66119
66120         * lib/savedir.h (fdsavedir): New decl.
66121         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
66122         contains most of the former guts of savedir.
66123         (savedir): Use savedirstream.
66124         Include "openat.h".
66125
66126 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
66127
66128         * modules/obstack (Files): Add m4/ulonglong.m4.
66129         Problem reported by Davide Angelocola.
66130
66131 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
66132
66133         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
66134         coreutils no longer futzes with rounding modes.
66135
66136 2005-11-14  Jim Meyering  <jim@meyering.net>
66137
66138         * lib/mkstemp-safer.c: Include <config.h>, required for possible
66139         replacement of mkstemp.
66140
66141 2005-11-10  Simon Josefsson  <jas@extundo.com>
66142
66143         * lib/readline.c: Remove EOL.
66144
66145 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66146
66147         * modules/gethrxtime (Depends-on): Add gettime.
66148
66149 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66150
66151         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
66152         or gettimeofday; no longer needed.
66153
66154 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
66155
66156         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
66157         time business.
66158         (gethrxtime) [! (HAVE_NANOUPTIME
66159         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
66160         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
66161         our own approximation.
66162
66163 2005-11-08  Eric Blake  <ebb9@byu.net>
66164
66165         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66166
66167 2005-11-08  Eric Blake  <ebb9@byu.net>
66168
66169         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
66170
66171 2005-11-04  Bruno Haible  <bruno@clisp.org>
66172
66173         * gnulib-tool: Implement --update mode.
66174
66175 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66176
66177         Fix porting problem reported by Theodoros V. Kalamatianos.
66178         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
66179         Don't assume that futimes failing means we must fail.
66180
66181 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
66182
66183         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
66184         variables to suggest the intended function of the PATH_MAX check.
66185
66186 2005-10-30  Kean Johnston  <jkj@sco.com>
66187
66188         Trivial changes to support SCO systems.
66189         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
66190         as PATH_MAX.
66191         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
66192         where __ptr is null when no I/O is pending.
66193
66194 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
66195
66196         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
66197         leave errno alone.  Problem reported by Dmitry V. Levin.
66198
66199 2005-10-28  Simon Josefsson  <jas@extundo.com>
66200
66201         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
66202         Test more.
66203
66204         * tests/test-gc-md2.c, tests/test-md2.c: New files.
66205
66206         * modules/md2, modules/md2-tests: New files.
66207
66208 2005-10-28  Simon Josefsson  <jas@extundo.com>
66209
66210         * m4/inet_ntop.m4: More tests.
66211
66212         * m4/gc-md2.m4, md2.m4: New file.
66213
66214 2005-10-28  Simon Josefsson  <jas@extundo.com>
66215
66216         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
66217         "restrict" keywords, as per POSIX.  Protect the function
66218         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
66219         Don't use K&R prototypes.  Check the sprintf return values.
66220         Re-define EAFNOSUPPORT if not present.  Indent.
66221
66222         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
66223         suggested by Bruno Haible <bruno@clisp.org>.
66224
66225         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
66226
66227         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
66228
66229         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
66230         libgcrypt).
66231
66232         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
66233
66234         * lib/md2.h, lib/md2.c: New files.
66235
66236 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
66237
66238         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
66239         errno alone.  Problem reported by Frederic Jolliton.
66240
66241 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66242
66243         * modules/verify (License): Change from GPL to LGPL.  This is a
66244         tiny module and there are apparently near-equivalents that are
66245         under the BSD license.
66246
66247 2005-10-24  Simon Josefsson  <jas@extundo.com>
66248
66249         * modules/sha1: Relicense to LGPL.
66250
66251 2005-10-24  Simon Josefsson  <jas@extundo.com>
66252
66253         * lib/md4.h: Shrink buffer size, now that we changed the type.
66254
66255 2005-10-23  Simon Josefsson  <jas@extundo.com>
66256
66257         * gnulib-tool (func_import): Fix --tests-base.
66258
66259 2005-10-22  Simon Josefsson  <jas@extundo.com>
66260
66261         * modules/arcfour (Depends-on): Need stdint.
66262
66263 2005-10-22  Simon Josefsson  <jas@extundo.com>
66264
66265         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
66266         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
66267
66268 2005-10-22  Simon Josefsson  <jas@extundo.com>
66269
66270         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
66271         suggested by Bruno Haible <bruno@clisp.org>.
66272
66273 2005-10-22  Simon Josefsson  <jas@extundo.com>
66274
66275         * lib/crc.h: Include stddef.h, for size_t.
66276
66277 2005-10-22  Simon Josefsson  <jas@extundo.com>
66278
66279         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
66280         arcfour_context struct (simplify test vector testing in GNU
66281         Shishi).
66282
66283 2005-10-21  Simon Josefsson  <jas@extundo.com>
66284
66285         * modules/des, modules/des-tests: New files.
66286
66287         * modules/gc-des, modules/gc-des-tests: New files.
66288
66289         * tests/test-des.c, tests/test-gc-des.c: New file.
66290
66291 2005-10-21  Simon Josefsson  <jas@extundo.com>
66292
66293         * modules/arctwo, modules/arctwo-tests: New files.
66294
66295         * tests/test-arctwo.c: New file.
66296
66297         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
66298
66299         * tests/test-gc-arctwo.c: New file.
66300
66301 2005-10-21  Simon Josefsson  <jas@extundo.com>
66302
66303         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
66304         Bruno Haible <bruno@clisp.org>.
66305
66306         * m4/gc-des.m4: New file.
66307
66308 2005-10-21  Simon Josefsson  <jas@extundo.com>
66309
66310         * m4/arctwo.m4: New file.
66311
66312         * m4/gc-arctwo.m4: New file.
66313
66314 2005-10-21  Simon Josefsson  <jas@extundo.com>
66315
66316         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
66317         block.
66318
66319 2005-10-21  Simon Josefsson  <jas@extundo.com>
66320
66321         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
66322         <bruno@clisp.org>.
66323
66324         * lib/hmac-sha1.c (hmac_sha1): Likewise.
66325
66326         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
66327         Bruno Haible <bruno@clisp.org>.
66328
66329         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
66330         <bruno@clisp.org>.
66331
66332 2005-10-21  Simon Josefsson  <jas@extundo.com>
66333
66334         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
66335
66336 2005-10-21  Simon Josefsson  <jas@extundo.com>
66337
66338         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
66339
66340 2005-10-21  Simon Josefsson  <jas@extundo.com>
66341
66342         * lib/des.h, lib/des.c: New files.
66343
66344         * lib/gc-gnulib.c: Support DES.c
66345
66346 2005-10-21  Simon Josefsson  <jas@extundo.com>
66347
66348         * lib/arctwo.h, lib/arctwo.c: New files.
66349
66350         * lib/gc-gnulib.c: Support ARCTWO.
66351
66352 2005-10-21  Simon Josefsson  <jas@extundo.com>
66353
66354         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
66355         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66356
66357 2005-10-21  Simon Josefsson  <jas@extundo.com>
66358
66359         * gnulib-tool (func_import, func_create_testdir): Define automake
66360         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
66361         Makefile.am snippet),
66362         suggested by Bruno Haible <bruno@clisp.org>.
66363
66364         * modules/gc (Makefile.am): Use it.
66365
66366 2005-10-21  Bruno Haible  <bruno@clisp.org>
66367
66368         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
66369         patch.
66370
66371 2005-10-19  Simon Josefsson  <jas@extundo.com>
66372
66373         * tests/test-gc-rijndael.c: New file.
66374
66375         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
66376
66377 2005-10-19  Simon Josefsson  <jas@extundo.com>
66378
66379         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
66380         interface too.
66381
66382 2005-10-19  Simon Josefsson  <jas@extundo.com>
66383
66384         * tests/test-gc-arcfour.c: New file.
66385
66386         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
66387
66388 2005-10-19  Simon Josefsson  <jas@extundo.com>
66389
66390         * modules/gc-md4, modules/gc-md4-tests: New file.
66391
66392         * tests/test-gc-md4.c: New file.
66393
66394 2005-10-19  Simon Josefsson  <jas@extundo.com>
66395
66396         * m4/gc-md4.m4: New file.
66397
66398 2005-10-19  Simon Josefsson  <jas@extundo.com>
66399
66400         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
66401         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
66402         <kasal@ucw.cz>.
66403
66404 2005-10-19  Simon Josefsson  <jas@extundo.com>
66405
66406         * m4/gc-arcfour.m4: New file.
66407
66408         * m4/gc-rijndael.m4: New file.
66409
66410 2005-10-19  Simon Josefsson  <jas@extundo.com>
66411
66412         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
66413
66414 2005-10-19  Simon Josefsson  <jas@extundo.com>
66415
66416         * lib/gc-gnulib.c: Support ARCFOUR.
66417
66418 2005-10-19  Simon Josefsson  <jas@extundo.com>
66419
66420         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
66421         support.
66422
66423         * lib/gc.h: Add ECB enum type.
66424
66425         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
66426
66427 2005-10-18  Simon Josefsson  <jas@extundo.com>
66428
66429         * tests/test-md5.c: New file.
66430
66431         * modules/md5-tests: New file.
66432
66433 2005-10-18  Simon Josefsson  <jas@extundo.com>
66434
66435         * tests/test-md4.c: New file.
66436
66437         * modules/md4, modules/md4-tests: New files.
66438
66439 2005-10-18  Simon Josefsson  <jas@extundo.com>
66440
66441         * m4/md4.m4: New file.
66442
66443 2005-10-18  Simon Josefsson  <jas@extundo.com>
66444
66445         * lib/md4.h, lib/md4.c: New files, based on md5.?.
66446
66447 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
66448
66449         * gnulib-tool (func_create_testdir): Omit the second check whether
66450         BUILT_SOURCES in nonempty.
66451
66452 2005-10-17  Simon Josefsson  <jas@extundo.com>
66453
66454         * tests/test-rijndael.c: New file.
66455
66456 2005-10-17  Simon Josefsson  <jas@extundo.com>
66457
66458         * modules/sha1: Depend on stdint instead of md5.
66459
66460         * modules/md5: Depend on stdint, remove uint32_t.
66461
66462 2005-10-17  Simon Josefsson  <jas@extundo.com>
66463
66464         * modules/gc-sha1-tests: New file.
66465
66466         * tests/test-gc-sha1.c: New file.
66467
66468 2005-10-17  Simon Josefsson  <jas@extundo.com>
66469
66470         * m4/md5.m4: Remove call to uint32_t.m4.
66471
66472 2005-10-17  Simon Josefsson  <jas@extundo.com>
66473
66474         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
66475
66476         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
66477         md5.h.
66478
66479         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
66480
66481         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
66482
66483 2005-10-17  Simon Josefsson  <jas@extundo.com>
66484
66485         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
66486
66487 2005-10-17  Simon Josefsson  <jas@extundo.com>
66488
66489         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
66490
66491 2005-10-17  Simon Josefsson  <jas@extundo.com>
66492
66493         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
66494
66495         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
66496
66497 2005-10-17  Bruno Haible  <bruno@clisp.org>
66498
66499         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
66500         that it can also be used in a test.
66501
66502 2005-10-16  Bruno Haible  <bruno@clisp.org>
66503
66504         * gnulib-tool (func_emit_tests_Makefile_am): Also define
66505         TESTS_ENVIRONMENT, so that individual tests can augment it.
66506
66507         * gnulib-tool (func_create_testdir): Use an intermediate target for
66508         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
66509         macros, like $(ALLOCA_H), which cannot be passed through the command
66510         line.
66511
66512 2005-10-15  Simon Josefsson  <jas@extundo.com>
66513
66514         * modules/rijndael-tests: New file.
66515
66516         * modules/rijndael: New file.
66517
66518 2005-10-15  Simon Josefsson  <jas@extundo.com>
66519
66520         * m4/rijndael.m4: New file.
66521
66522 2005-10-15  Simon Josefsson  <jas@extundo.com>
66523
66524         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
66525
66526         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
66527
66528 2005-10-14  Simon Josefsson  <jas@extundo.com>
66529
66530         * tests/test-arcfour.c: New file.
66531
66532         * modules/arcfour, modules/arcfour-tests: New files.
66533
66534 2005-10-14  Simon Josefsson  <jas@extundo.com>
66535
66536         * m4/arcfour.m4: New file.
66537
66538 2005-10-14  Simon Josefsson  <jas@extundo.com>
66539
66540         * lib/arcfour.h, lib/arcfour.c: New files.
66541
66542 2005-10-14  Roland McGrath  <roland@redhat.com>
66543
66544         Import from libc.  [BZ #1331]
66545         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
66546         macro argument.
66547         Reported by Matej Vela <vela@debian.org>.
66548
66549 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66550
66551         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
66552         include <wchar.h>; no longer needed.
66553
66554 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66555
66556         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
66557
66558 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
66559         and  Ulrich Drepper  <drepper@redhat.com>
66560
66561         Import from libc.
66562         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
66563         instead of inline stream orientation test and two separate
66564         function calls.  Pay no attention to USE_IN_LIBIO.
66565
66566 2005-10-13  Simon Josefsson  <jas@extundo.com>
66567
66568         * modules/gc-hmac-md5-tests: New file.
66569
66570         * tests/test-gc-hmac-sha1.c: New file.
66571
66572         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
66573
66574         * modules/gc-hmac-md5-tests: New file.
66575
66576         * tests/test-gc-md5.c: New file.
66577
66578         * modules/gc-md5-tests: New file.
66579
66580 2005-10-13  Simon Josefsson  <jas@extundo.com>
66581
66582         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
66583         Move memory allocation outside of loop.
66584
66585 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
66586
66587         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
66588         intermediate directory is in a read-only file system.  Problem
66589         reported by Eric Blake.
66590
66591 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
66592
66593         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
66594
66595 2005-10-12  Simon Josefsson  <jas@extundo.com>
66596
66597         * tests/test-hmac-sha1.c: New file.
66598
66599         * modules/hmac-sha1-tests: New file.
66600
66601         * modules/hmac-sha1: New file.
66602
66603 2005-10-12  Simon Josefsson  <jas@extundo.com>
66604
66605         * modules/gc-sha1: New file.
66606
66607 2005-10-12  Simon Josefsson  <jas@extundo.com>
66608
66609         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
66610
66611         * tests/test-gc-pbkdf2-sha1.c: New file.
66612
66613 2005-10-12  Simon Josefsson  <jas@extundo.com>
66614
66615         * modules/gc-md5, modules/gc-hmac-md5: New files.
66616
66617         * modules/gc (Files): Remove md5, memxor and hmac files.
66618
66619 2005-10-12  Simon Josefsson  <jas@extundo.com>
66620
66621         * m4/gc-pbkdf2-sha1.m4: New file.
66622
66623         * m4/gc-hmac-sha1.m4: New file.
66624
66625         * m4/gc-sha1: New file.
66626
66627         * m4/hmac-sha1.m4: New file.
66628
66629 2005-10-12  Simon Josefsson  <jas@extundo.com>
66630
66631         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
66632
66633         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
66634
66635 2005-10-12  Simon Josefsson  <jas@extundo.com>
66636
66637         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
66638         suggested by Bruno Haible <bruno@clisp.org>.
66639
66640 2005-10-12  Simon Josefsson  <jas@extundo.com>
66641
66642         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
66643
66644 2005-10-12  Simon Josefsson  <jas@extundo.com>
66645
66646         * lib/gc-pbkdf2-sha1.c: New file.
66647
66648         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
66649
66650 2005-10-12  Simon Josefsson  <jas@extundo.com>
66651
66652         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
66653
66654         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
66655
66656 2005-10-12  Simon Josefsson  <jas@extundo.com>
66657
66658         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
66659         GC_USE_HMAC_MD5, respectively.
66660
66661         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
66662         (gc_md5): Fix typo.
66663
66664         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
66665
66666         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
66667
66668         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
66669
66670 2005-10-12  Bruno Haible  <bruno@clisp.org>
66671
66672         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
66673         Reported by Stepan Kasal <kasal@ucw.cz>.
66674
66675 2005-10-11  Simon Josefsson  <jas@extundo.com>
66676
66677         * tests/test-crc.c: New file.
66678
66679         * modules/crc, modules/crc-tests: New files.
66680
66681 2005-10-11  Simon Josefsson  <jas@extundo.com>
66682
66683         * m4/crc.m4: New file.
66684
66685 2005-10-11  Simon Josefsson  <jas@extundo.com>
66686
66687         * lib/gc.h: Add gc_hash and gc_hash_buffer.
66688
66689         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
66690
66691         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
66692
66693 2005-10-11  Simon Josefsson  <jas@extundo.com>
66694
66695         * lib/crc.h, lib/crc.c: New files.
66696
66697         * lib/gc.h (gc_hash_buffer): Add doc.
66698
66699 2005-10-11  Bruno Haible  <bruno@clisp.org>
66700
66701         * modules/c-strcasestr: New file.
66702         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
66703
66704 2005-10-11  Bruno Haible  <bruno@clisp.org>
66705
66706         * modules/c-strcase: New file.
66707         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
66708
66709 2005-10-11  Bruno Haible  <bruno@clisp.org>
66710
66711         * lib/strcasecmp.c: Include limits.h.
66712         (strcasecmp): Avoid integer overflow on exotic platforms.
66713         * lib/strncasecmp.c: Include limits.h.
66714         (strncasecmp): Avoid integer overflow on exotic platforms.
66715         Reported by Paul Eggert.
66716
66717 2005-10-11  Bruno Haible  <bruno@clisp.org>
66718
66719         * lib/c-strcasestr.h: New file, from GNU gettext.
66720         * lib/c-strcasestr.c: New file, from GNU gettext.
66721
66722 2005-10-11  Bruno Haible  <bruno@clisp.org>
66723
66724         * lib/c-strcase.h: New file, from GNU gettext.
66725         * lib/c-strcasecmp.c: New file, from GNU gettext.
66726         * lib/c-strncasecmp.c: New file, from GNU gettext.
66727
66728 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
66729
66730         * modules/mempcpy (License): GPL -> LGPL.
66731         * modules/strchrnul (License): Likewise.
66732         * modules/sysexits (License): Likewise.
66733
66734 2005-10-08  Simon Josefsson  <jas@extundo.com>
66735
66736         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
66737
66738 2005-10-07  Simon Josefsson  <jas@extundo.com>
66739
66740         * m4/memxor.m4: Remove gl_C_RESTRICT call.
66741
66742 2005-10-06  Simon Josefsson  <jas@extundo.com>
66743
66744         * tests/test-hmac-md5.c: New file.
66745
66746         * modules/hmac-md5-tests: New file.
66747
66748         * modules/hmac-md5: New file.
66749
66750 2005-10-06  Simon Josefsson  <jas@extundo.com>
66751
66752         * m4/hmac-md5.m4: New file.
66753
66754         * m4/memxor.m4: Require gl_C_RESTRICT.
66755
66756 2005-10-06  Simon Josefsson  <jas@extundo.com>
66757
66758         * lib/memxor.c (memxor): Avoid casts and warnings.
66759
66760 2005-10-06  Simon Josefsson  <jas@extundo.com>
66761
66762         * lib/hmac-md5.c: New file.
66763
66764         * lib/hmac.h: New file.
66765
66766 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
66767
66768         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
66769         promotes to int, not unsigned int, to catch the AIX 5.3
66770         compiler bug.
66771
66772 2005-10-05  Simon Josefsson  <jas@extundo.com>
66773
66774         * modules/memxor: New file.
66775
66776         * modules/iconv (Files): Move config.rpath to havelib, it is used
66777         there.
66778
66779         * modules/havelib (Files): Add config.rpath.
66780
66781 2005-10-05  Simon Josefsson  <jas@extundo.com>
66782
66783         * m4/memxor.m4: New file.
66784
66785 2005-10-05  Simon Josefsson  <jas@extundo.com>
66786
66787         * lib/memxor.c (memxor): Fix compiler error.
66788
66789         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
66790         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
66791
66792         * lib/memxor.h, lib/memxor.c: New files.
66793
66794         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
66795         we assume all systems have it, suggested by Jim Meyering
66796         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
66797         any systems lack sys/socket.h; mingw32 is known to lack it, but we
66798         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
66799         same reasons.
66800
66801 2005-10-05  Simon Josefsson  <jas@extundo.com>
66802
66803         * config/srclist.txt: Add glibc bug 1423 for md5.h.
66804
66805 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
66808         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
66809         needed, since the source code now assumes these .h files.
66810
66811 2005-10-05  Derek Price  <derek@ximbiot.com>
66812
66813         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
66814
66815 2005-10-05  Bruno Haible  <bruno@clisp.org>
66816
66817         * modules/stdint (License): Change to LGPL.
66818
66819 2005-10-04  Simon Josefsson  <jas@extundo.com>
66820
66821         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
66822         D. Baushke" <mdb@gnu.org>.
66823
66824 2005-10-04  Bruno Haible  <bruno@clisp.org>
66825
66826         * lib/verify.h (verify_true): Provide alternative definition for C++.
66827
66828 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
66829
66830         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
66831         (SSIZE_MAX): New macro, if not already defined.
66832         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
66833         than 2 GiB.
66834
66835 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66836
66837         Sync from coreutils.
66838         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
66839         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
66840         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
66841         ULLONG_MAX doesn't work with 2.7.2.1.
66842
66843 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66844
66845         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
66846         From Ben Pfaff.
66847
66848         * modules/exclude (Depends-on): Depend on verify.
66849         * modules/strtoimax (Depends-on): Likewise.
66850         * modules/utimecmp (Depends-on): Likewise.
66851
66852 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
66853
66854         * lib/exclude.c: Include verify.h.
66855         (verify): Remove.  All callers changed to use verify.h's version.
66856         * lib/strtoimax.c: Likewise.
66857         * lib/utimecmp.c: Likewis.e
66858
66859         Sync from coreutils.
66860         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
66861         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
66862         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
66863         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
66864         bother returning ENOSYS if settimeofday or stime fails; just let
66865         them return whatever errno they want to return.
66866         * lib/utimens.c: Include unistd.h, for dup2.
66867         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
66868         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
66869
66870 2005-10-02  Jim Meyering  <jim@meyering.net>
66871
66872         Sync from coreutils.
66873         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
66874         from glibc-2.2.5 that fails for read-only files.
66875
66876 2005-10-02  Jim Meyering  <jim@meyering.net>
66877
66878         Sync from coreutils.
66879         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
66880         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
66881         `#if HAVE_CONFIG_H'.
66882         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
66883         Remove AT_FDCWD test.
66884         Do not consume the fd unless successful.
66885         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
66886         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
66887         block, so that we don't even try to compile it if settimeofday is
66888         available.  This works around a compilation failure on OSF1 V5.1,
66889         due to stime requiring a `long int*' while tv_sec is `int'.
66890
66891 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
66892
66893         Sync from coreutils.
66894         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
66895         against `yes', rather than just testing for nonempty.
66896
66897 2005-10-01  Simon Josefsson  <jas@extundo.com>
66898
66899         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
66900         and Darwin.
66901
66902         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
66903         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
66904         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
66905         freeaddrinfo and gai_strerror are declared by the POSIX headers.
66906         Check if struct addrinfo is declared.
66907
66908 2005-10-01  Simon Josefsson  <jas@extundo.com>
66909
66910         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
66911         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
66912         AI_* and EAI_* definitions.  Protect function declarations.
66913
66914 2005-10-01  Jim Meyering  <jim@meyering.net>
66915
66916         Sync from coreutils.
66917
66918         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
66919         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
66920         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
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  Jim Meyering  <jim@meyering.net>
66925
66926         Sync from coreutils.
66927         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
66928         in the inet and nsl libraries.  Required on Solaris 5.7.
66929
66930 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
66931
66932         * lib/getdelim.c (getdelim): Remove unused variables.
66933
66934 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
66937         so that the code works even with ancient cpp.  Portability problem
66938         with GCC 2.7.2.1 reported by Thomas M.Ott.
66939
66940 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66941
66942         * modules/regex (Depends-on): Add strcase.
66943
66944         * modules/gethostname (Licence): Change from GPL to LGPL, since
66945         gethostname.c is a trivial implementation of a standard library
66946         function.
66947         * modules/poll (License): Change from GPL to LGPL, since it's
66948         derived from LGPL code.
66949
66950 2005-09-27  Jim Meyering  <jim@meyering.net>
66951
66952         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
66953         HAVE_CONFIG_H.
66954
66955         * lib/intprops.h (signed_type_or_expr__): Define.
66956         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
66957         for unsigned types.
66958
66959 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66960
66961         * lib/verify.h (verify_expr): Remove, replacing with:
66962         (verify_true): New macro that returns true instead of void.
66963         (verify_type__): Remove.
66964         (verify): Use verify_true rather than verify_type__.
66965
66966 2005-09-26  Bruno Haible  <bruno@clisp.org>
66967
66968         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
66969         is necessary.
66970         (lib_SOURCES): Remove mbchar.c.
66971         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
66972         (Files): Add m4/mbrtowc.m4.
66973         * modules/mbiter: Likewise.
66974         * modules/mbuiter: Likewise.
66975
66976 2005-09-26  Bruno Haible  <bruno@clisp.org>
66977
66978         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
66979         compile mbchar.c if they are not both present.
66980         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
66981         * m4/mbiter.m4 (gl_MBITER): Likewise.
66982         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
66983         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
66984         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
66985
66986 2005-09-25  Jim Meyering  <jim@meyering.net>
66987
66988         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
66989         also uses socklen_t.
66990
66991 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
66992
66993         * lib/utimens.c (ENOSYS): Define if not already defined.
66994         (futimens): Support having a null PATH if the file descriptor
66995         is nonnegative.
66996
66997         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
66998         Remove.
66999         (__attribute): Define to empty unless GCC 3.1 or later.
67000         This works around a core dump on OpenBSD 3.4, which has GCC
67001         2.95.3, which dumps core when given __attribute__(()).  It also
67002         simplifies other tests, since we really don't want to bother with
67003         worrying about which ancient version of GCC supported what.
67004         Original problem reported by Yoann Vandoorselaere, with part of
67005         the fix suggested by Derek Price.
67006
67007 2005-09-24  Jim Meyering  <jim@meyering.net>
67008
67009         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
67010         so we can once again use a positive bitfield width of 1 -- now we
67011         don't have to explain why we were using a bitfield width of 2.
67012
67013 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67014
67015         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
67016         and similarly for the other external symbols.  Problem reported
67017         by James Gallager.
67018
67019         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
67020         bug reported by Jim Meyering.
67021
67022         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
67023         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
67024         not needed, since socklen is a prerequisite module.
67025
67026 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
67027
67028         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
67029         Problem reported by Eric Blake.
67030         (getaddrinfo): Initialize se so that it's not garbage.
67031         Redo internal storage allocation so that it doesn't make unportable
67032         assumptions about alignment.
67033         Fix a memory leak.
67034
67035         * lib/utimens.c (futimens): Use futimesat if available.
67036         Prefer it to futimes since it doesn't have the futimes bug.
67037
67038         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
67039         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
67040         Instead, declare a function that returns a pointer to an array,
67041         and use verify_type__ to declare the size of the array.
67042         Problem and germ of a solution reported by Bruno Haible.
67043         (verify_type__): Use 2, not 1, for bitfield size, to avoid
67044         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
67045
67046 2005-09-23  Jim Meyering  <jim@meyering.net>
67047
67048         Sync from coreutils.
67049         Correct build failure (socklen_t not defined) on at least
67050         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
67051         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
67052
67053 2005-09-23  Jim Meyering  <jim@meyering.net>
67054
67055         * modules/getaddrinfo (Depends-on): Add socklen.
67056
67057 2005-09-23  Bruno Haible  <bruno@clisp.org>
67058
67059         * tests/test-verify.c: New file.
67060
67061 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67062
67063         Sync from coreutils.
67064
67065         * modules/argmatch (Depends-on): Add verify.
67066         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
67067         unistd-safer.
67068         * modules/save-cwd (Depends-on): Likewise.
67069
67070         * modules/openat (Files): Add lib/openat-die.c.
67071         (Depends-on): Remove error, exitfail.
67072         Add dirname.
67073
67074         * modules/verify: New file.
67075         * MODULES.html.sh (Diagnostics <assert.h>): New section,
67076         with "verify" module.
67077
67078 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67079
67080         Sync from coreutils.
67081
67082         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
67083         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
67084         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
67085         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
67086         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
67087         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
67088         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
67089         Don't bother checking for string.h, stdlib.h, unistd.h.
67090         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
67091         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
67092         module's job.
67093         * m4/jm-macros.m4 (gl_MACROS): Likewise.
67094         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
67095
67096         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
67097         (gl_GETDATE): Use it.
67098
67099         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
67100
67101 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67102
67103         Sync from coreutils.
67104
67105         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
67106         stat-time.h.
67107         * lib/argmatch.h: Include verify.h
67108         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
67109         (ARGMATCH_ASSERT): Remove; unused.
67110         * lib/canonicalize.c: Assume STDC_HEADERS.
67111         * lib/exclude.c: Include "strcase.h".
67112         * lib/regex_internal.h [!defined _LIBC]: Likewise.
67113         * lib/getusershell.c: Include stdio--.h rather than stdio.h
67114         and stdio-safer.h.
67115         (getusershell): Call fopen, not fopen_safer.
67116         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
67117         Do not include unistd-safer.h.
67118         (save_cwd): Don't call fd_safer; no longer needed
67119         now that we include fcntl--.h.
67120
67121         * lib/getdate.y (relative_time): New type.
67122         (RELATIVE_TIME_0): New constant.
67123         (parser_control): Use relative_time instead of doing it ourselves.
67124         (%union): Add new relative_time rel member.
67125         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
67126         Now typeless.
67127         (relunit, relunit_snumber): Now of type rel.
67128         (zone, rel, relunit, get_date): Adjust to above changes.
67129
67130         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
67131         Do not include unistd-safer.h.
67132         (getloadavg): Don't call fd_safer; no longer needed
67133         now that we include fcntl--.h.
67134
67135         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
67136         (make_dir_parents): Treat ENOSYS like EEXIST.
67137
67138         Improve quality of diagnostics on restore_cwd failure.
67139         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
67140         (make_dir_parents): Last arg is now int * (for errno), not bool *.
67141         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
67142         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
67143         each time through the loop.  Do not diagnose restore_cwd failure;
67144         that is the caller's job (and perhaps the caller does not care).
67145
67146         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
67147         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
67148         If the file already exists but is not a directory, don't bother
67149         to try to make its parents.
67150         Close potential file descriptor leak if we can't chdir("/") (!).
67151         Don't always return true if chdir($PWD) fails; return true only
67152         if the requested action was done successfully (except for the
67153         chdir($PWD)).
67154         Don't log final directory unless we actually made it.
67155         Refactor to avoid duplicate code to fix up permissions.
67156         Don't attempt to fix up parent permissions if chdir($PWD) fails.
67157
67158         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
67159         to make it a bit faster and (I hope) clearer.
67160         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
67161         Fix bug in formats like %2N.
67162
67163         * lib/verify.h: New file.
67164
67165 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         Sync from coreutils.
67168         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
67169
67170 2005-09-22  Jim Meyering  <jim@meyering.net>
67171
67172         Sync from coreutils.
67173
67174         * m4/lstat.m4 (gl_FUNC_LSTAT):
67175         Use AC_LIBSOURCES to require lstat.c and lstat.h.
67176         Remove obsolete comment.
67177         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
67178         * m4/xstrtod.m4: Likewise.
67179
67180         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
67181
67182 2005-09-22  Jim Meyering  <jim@meyering.net>
67183
67184         Sync from coreutils.
67185
67186         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
67187
67188         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
67189         the .tm_year member, since otherwise gcc-4.0 would now warn about
67190         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
67191
67192         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
67193         order to avoid an unsuppressible warning from gcc on 64-bit systems.
67194
67195         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
67196         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
67197         when run in a time zone for which daylight savings time is in effect
67198         for the starting date.
67199
67200         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
67201         stop us from restricting permissions of just-created absolute-named
67202         directories.
67203         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
67204         to restore initial working directory.
67205         * lib/mkdir-p.c (make_dir_parents): New parameter:
67206         different_working_dir, to tell caller if/when we change the working
67207         directory and are unable to return to the initial one.
67208         * lib/mkdir-p.h (make_dir_parents): Update prototype.
67209         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
67210         `return false'.  This fixes a bug introduced on 2004-07-30.
67211
67212         * lib/openat.c (fdopendir): Be sure to close the supplied
67213         file descriptor before returning.  This makes our replacement
67214         implementation a little closer to Solaris's, where fdopendir
67215         ties the file descriptor to the returned DIR* pointer.
67216         * lib/openat.c (unlinkat): New function.
67217         * lib/openat.h (unlinkat): Add prototype.
67218         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
67219         (openat_restore_fail): Rename from openat_restore_die.
67220         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
67221
67222         Provide an alternative to exiting immediately upon save_cwd or
67223         restore_cwd failure.  Now, an application can arrange e.g.,
67224         to perform a longjump in that case.
67225         * lib/openat.c: Include dirname.h.
67226         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
67227         (rpl_openat, fdopendir, fstatat): Call openat_save_die
67228         and openat_restore_die rather than calling error directly.
67229         Don't include "error.h" or "exitfail.h"; they're no longer needed.
67230
67231         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
67232         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
67233         define.
67234
67235         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
67236         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
67237                             int utc, int nanoseconds);
67238         Background:
67239         date should not have to allocate a megabyte of virtual memory to
67240         handle a format argument like +%1048575T.  When implemented with
67241         strftime, it must allocate such a buffer, use strftime to fill it
67242         in, print it, then free it.
67243         With fprintftime, it simply prints everything and exits.
67244         With no need for memory allocation, that's one fewer way to fail.
67245         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
67246         optional field width, not before, so we accept %9:z, not %:9z.
67247         (my_strftime): Be sure to use L_('x') for literals.
67248
67249         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
67250         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
67251         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
67252         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
67253         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
67254         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
67255         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
67256         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
67257         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
67258         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
67259         * lib/xgethostname.c, lib/xreadlink.c:
67260         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
67261
67262         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
67263         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
67264         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
67265         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67266         and don't include <sys/file.h>).
67267
67268 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
67269
67270         Sync from coreutils.
67271
67272         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
67273         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
67274         [!LDAV_DONE]: Avoid unused variable warning.
67275
67276 2005-09-21  Bruno Haible  <bruno@clisp.org>
67277
67278         * lib/unicodeio.h (unicode_to_mb): New declaration.
67279
67280 2005-09-20  Derek Price  <derek@ximbiot.com>
67281
67282         * lib/getaddrinfo.c: Don't include <netdb.h> included from
67283         getaddrinfo.h.
67284
67285 2005-09-20  Bruno Haible  <bruno@clisp.org>
67286
67287         * gnulib-tool: Remove trailing slashes from the values specified for
67288         --source-base, --m4-base, --tests-base, --aux-dir.
67289         Suggested by Simon Josefsson <jas@extundo.com>.
67290
67291 2005-09-20  Bruno Haible  <bruno@clisp.org>
67292
67293         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
67294         func_modules_to_filelist, func_import, func_create_testdir): Make all
67295         sorting results locale-independent, so that gnulib-cache.m4 doesn't
67296         change when gnulib-tool is invoked in a different locale.
67297
67298 2005-09-19  Simon Josefsson  <jas@extundo.com>
67299
67300         * m4/socklen.m4: Fix typo.
67301
67302 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67303
67304         Use a consistent style for including <config.h>.
67305         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
67306         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
67307         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
67308         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
67309         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
67310         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
67311         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
67312         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
67313         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
67314         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
67315         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
67316         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
67317         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
67318         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
67319         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
67320         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
67321         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
67322         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
67323         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
67324         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
67325         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
67326         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
67327         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
67328         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
67329         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
67330         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
67331         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
67332         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
67333         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
67334         lib/xstrtoumax.c, lib/yesno.c:
67335         Standardize inclusion of config.h.
67336         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
67337         lib/inttostr.h:  Removed inclusion of config.h from header files.
67338         * lib/inttostr.c:  Adjusted in-tree users.
67339         * lib/timespec.h: Remove superfluous warning to include config.h.
67340         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
67341         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
67342         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
67343         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
67344         config.h with HAVE_CONFIG_H.
67345
67346 2005-09-19  Jim Meyering  <jim@meyering.net>
67347
67348         * modules/pathmax (License): Change to LGPL.
67349
67350 2005-09-19  Derek Price  <derek@ximbiot.com>
67351
67352         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
67353
67354 2005-09-19  Bruno Haible  <bruno@clisp.org>
67355
67356         * gnulib-tool (import): Provide default for --tests-base.
67357
67358 2005-09-19  Bruno Haible  <bruno@clisp.org>
67359
67360         * doc/quote.texi: New file, extracted from gnulib.texi.
67361         * doc/ctime.texi: New file, extracted from gnulib.texi.
67362         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
67363         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
67364         * doc/gnulib.texi: Include them.
67365
67366 2005-09-18  Bruno Haible  <bruno@clisp.org>
67367
67368         Portability fix.
67369         * gnulib-tool (func_readlink): New function.
67370         (func_ln_if_changed): Use it.
67371
67372 2005-09-18  Bruno Haible  <bruno@clisp.org>
67373
67374         * gnulib-tool: Support --with-tests also with --import.
67375         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
67376         (func_import): Use variables $testsbase and $inctests. Emit a
67377         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
67378         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
67379         SUBDIRS += $testsdir.
67380         (func_create_testdir): Update.
67381
67382 2005-09-18  Bruno Haible  <bruno@clisp.org>
67383
67384         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
67385         instead of $dry_run.
67386         (func_cp_if_changed, func_mv_if_changed): Remove functions.
67387         (func_ln_if_changed): Don't handle dry-run here.
67388         (func_import): In dry-run mode, detect more precisely which actions
67389         would be performed, and don't use "...ing" verbs.
67390
67391 2005-09-18  Bruno Haible  <bruno@clisp.org>
67392
67393         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
67394         (func_import): Use join on two temporary files instead of three nested
67395         loops, in order to determine which files are new or old.
67396
67397 2005-09-18  Bruno Haible  <bruno@clisp.org>
67398
67399         * gnulib-tool (func_import): Comment out code that spits out the
67400         new files with --dry-run.
67401
67402 2005-09-18  Bruno Haible  <bruno@clisp.org>
67403
67404         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
67405
67406 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67407
67408         * lib/stat-time.h: New file.
67409         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
67410         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
67411         in a different way.
67412         (timespec_cmp): New function.
67413         * lib/utimecmp.c: Include stat-time.h.
67414         (SYSCALL_RESOLUTION): Depend on whether various struct stat
67415         members exist, not on the obsolescent ST_MTIM_NSEC.
67416         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
67417
67418 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67419
67420         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
67421
67422 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
67423
67424         * MODULES.html.sh (File system functions): Add stat-time.
67425         * modules/stat-time: New file.
67426         * modules/timespec (Files): Remove m4/st_mtim.m4; this
67427         is now done in a different way, by the stat-time module.
67428         * modules/utimecmp (Depends-on): Add stat-time.
67429
67430 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67431
67432         * m4/st_mtim.m4: Remove.  Superseded by...
67433         * m4/stat-time.m4: New file.
67434         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
67435         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
67436
67437 2005-09-15  Derek Price  <derek@ximbiot.com>
67438
67439         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
67440
67441 2005-09-15  Derek Price  <derek@ximbiot.com>
67442
67443         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
67444         * lib/regex_internal.c: Ditto, using this...
67445         (__GNUC_PREREQ): ...new macro.
67446         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
67447         using...
67448         (__GNUC_PREREQ): ...this new macro.
67449
67450         * lib/strstr.h: Include string.h. Define strstr as a macro here.
67451
67452 2005-09-15  Derek Price  <derek@ximbiot.com>
67453             Paul Eggert  <eggert@cs.ucla.edu>
67454
67455         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
67456         changes, consolidating in...
67457         * lib/regex_internal.h: ...this file.
67458
67459 2005-09-13  Jim Meyering  <jim@meyering.net>
67460
67461         * lib/canon-host.c: Filter through gnu indent and reword comments
67462         slightly.
67463         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
67464
67465 2005-09-13  Derek Price  <derek@ximbiot.com>
67466
67467         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
67468         failure.
67469         Reported by Jim Meyering  <jim@meyering.net>.
67470
67471 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67472
67473         * lib/base64.c: Typo.
67474         (base64_encode): Put b64str in initialized data section.
67475
67476 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
67477
67478         Merge glibc and coreutils changes into gnulib, plus a few
67479         extra fixes.
67480         * lib/md5.c: Use #error rather than a string.
67481         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
67482         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
67483         (__attribute__): Define to empty for non recent-GCC.
67484         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
67485         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
67486         Renamed from their non-__ counterparts, with new macros replacing
67487         them if not _LIBC.  Add __THROW attribute.
67488         (rol): Remove.
67489         (struct md5_ctx): Align buffer if using GCC.
67490         * lib/sha1.h (struct sha1_ctx): Likewise.
67491         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
67492         The old name was backwards.
67493         (NOTSWAP): Remove; not used.
67494         (rol): New macro, moved here from md5.h.
67495         (sha1_process_block): Remove a FIXME that doesn't make sense.
67496
67497 2005-09-12  Derek Price  <derek@ximbiot.com>
67498
67499         Return usable errors from canon-host.
67500         * lib/canon-host.h: New file.
67501         * lib/canon-host.c (canon_host): Wrap...
67502         (canon_host_r): ...this new function, which now relies exclusively on
67503         getaddrinfo.
67504         (ch_strerror): New function.
67505         (last_cherror): New global.
67506         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
67507         interface.
67508         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
67509         void *.
67510         (freeaddrinfo): Free ai->ai_canonname when set.
67511
67512 2005-09-12  Derek Price  <derek@ximbiot.com>
67513
67514         Make canon-host require getaddrinfo.
67515         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
67516         AC_LIBSOURCE canon-host.h.  Call...
67517         (gl_PREREQ_CANON_HOST): ...this new function, which requires
67518         gl_GETADDRINFO.
67519         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
67520
67521 2005-09-12  Derek Price  <derek@ximbiot.com>
67522
67523         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
67524         LGPL.
67525         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
67526
67527 2005-09-12  Derek Price  <derek@ximbiot.com>
67528
67529         * lib/gai_strerror.c: Include config.h when available.  Include
67530         getaddrinfo.h before other headers to test interface.
67531         Reported by Larry Jones <lawrence.jones@ugs.com>.
67532
67533 2005-09-12  Derek Price  <derek@ximbiot.com>
67534             Paul Eggert  <eggert@cs.ucla.edu>
67535
67536         * modules/glob (Files): Add glob-libc.h.
67537
67538 2005-09-12  Derek Price  <derek@ximbiot.com>
67539             Paul Eggert  <eggert@cs.ucla.edu>
67540
67541         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
67542         glob_.h, glob-libc.h.
67543         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
67544
67545 2005-09-12  Derek Price  <derek@ximbiot.com>
67546             Paul Eggert  <eggert@cs.ucla.edu>
67547
67548         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
67549         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
67550         protecting things that should be done only in gnulib contexts.
67551         * lib/glob_.h: New file, containing only the glob things needed for
67552         gnulib.
67553         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
67554         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
67555         (glob, globfree, glob_pattern_p): Now defined simply in terms of
67556         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
67557         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
67558         and to respect the namespace rules better.
67559
67560 2005-09-08  Simon Josefsson  <jas@extundo.com>
67561
67562         * modules/socklen: New file.
67563
67564 2005-09-08  Simon Josefsson  <jas@extundo.com>
67565
67566         * m4/socklen.m4: New file.
67567
67568 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67569
67570         * modules/utimens (Files): Add m4/utimbuf.m4, since
67571         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
67572         Reported by Sergey Poznyakoff.
67573
67574 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67575
67576         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
67577         definitions, since that's the preferred style in glibc.
67578         Fix a minor spacing issue, and update copyright notice to match
67579         glibc's.
67580
67581 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
67582
67583         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
67584
67585 2005-09-06  Simon Josefsson  <jas@extundo.com>
67586
67587         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
67588         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
67589
67590 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67591
67592         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
67593         warning.
67594
67595 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67596
67597         * config/srclist.txt: Add glibc bug 1302.
67598
67599 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
67600
67601         Change bitset word type from unsigned int to unsigned long int,
67602         as this has better performance on typical 64-bit hosts.
67603         Port bitset code to hosts with unusual word sizes.
67604         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
67605         (build_collating_symbol):
67606         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
67607         argument is a bitset.  This is merely a style issue, but it makes
67608         it clearer that an entire array is expected.
67609         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
67610         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
67611         Port to the case where bitset_word is not the same as unsigned int.
67612         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67613         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
67614         Likewise.
67615         * lib/regexec.c (check_dst_limits_calc_pos_1,
67616         check_subexp_matching_top):
67617         (build_trtable, group_nodes_into_DFAstates):
67618         Likewise.
67619         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
67620         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
67621         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
67622         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
67623         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
67624         * lib/regcomp.c (optimize_subexps, lower_subexp):
67625         Work even if bitset_word has holes in its bitwise representation.
67626         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
67627         * lib/regexec.c (check_dst_limits_calc_pos_1,
67628         check_subexp_matching_top):
67629         Likewise.
67630         * lib/regex_internal.c (re_string_reconstruct):
67631         Don't assume UCHAR_MAX == 255.
67632         * lib/regex_internal.h (bitset_set_all): Likewise.
67633         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
67634         All uses changed.
67635         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
67636         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
67637         All uses changed.
67638         (BITSET_WORD_MAX): New macro.
67639         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
67640         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
67641         (bitset_empty, bitset_copy):
67642         Prefer sizeof (bitset) to multiplying it out ourselves.
67643         (bitset_not_merge): Remove; unused.
67644         (bitset_contain): Return bool, not unsigned int with one bit on.
67645         All callers changed.
67646         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
67647         alignment than re_node_set; do this by defining a new internal
67648         type struct dests_alloc and using it to allocate memory.
67649
67650 2005-09-05  Bruno Haible  <bruno@clisp.org>
67651
67652         * gnulib-tool (func_import): Fix comparison in handling of symbolic
67653         links.
67654
67655 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
67656
67657         * modules/size_max (Makefile.am): Add size_max.h
67658
67659 2005-09-04  Derek Price  <derek@ximbiot.com>
67660
67661         * gnulib-tool (func_import): Fix reversed $symbolic logic.
67662
67663 2005-09-03  Simon Josefsson  <jas@extundo.com>
67664
67665         * gnulib-tool: Fix typo.
67666
67667 2005-09-03  Simon Josefsson  <jas@extundo.com>
67668
67669         * config/srclist.txt: Add glibc bug 1293.
67670
67671 2005-09-03  Derek Price  <derek@ximbiot.com>
67672
67673         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
67674         From Larry Jones <lawrence.jones@ugs.com>.
67675
67676 2005-09-02  Simon Josefsson  <jas@extundo.com>
67677
67678         * modules/socklen: New file.
67679
67680 2005-09-02  Simon Josefsson  <jas@extundo.com>
67681
67682         * modules/havelib: New module.
67683
67684         * modules/gettext, modules/iconv, modules/lock, modules/readline:
67685         Use havelib.
67686
67687 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67688
67689         Check for arithmetic overflow when calculating sizes, to prevent
67690         some buffer-overflow issues.  These patches are conservative, in the
67691         sense that when I couldn't determine whether an overflow was possible,
67692         I inserted a run-time check.
67693         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
67694         macros.
67695         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
67696         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
67697         (re_xnrealloc, re_x2nrealloc): New inline functions.
67698         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
67699         parse_bracket_exp):
67700         (build_equiv_class, build_charclass): Check for arithmetic overflow
67701         in size expression calculations.
67702         * lib/regex_internal.c (re_string_realloc_buffers):
67703         (build_wcs_upper_buffer, re_node_set_add_intersect):
67704         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
67705         (re_dfa_add_node, register_state): Likewise.
67706         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
67707         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
67708         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
67709         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
67710
67711 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
67712
67713         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
67714         m4/ulonglong.m4.  Problem reported by Martin Lambers.
67715
67716 2005-09-02  Bruno Haible  <bruno@clisp.org>
67717
67718         Support for lib vs. lib64 distinction on biarch platforms.
67719         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
67720         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
67721         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
67722
67723 2005-09-02  Bruno Haible  <bruno@clisp.org>
67724
67725         * gnulib-tool (import): In the other first-use case, provide defaults
67726         as well.
67727
67728 2005-09-02  Bruno Haible  <bruno@clisp.org>
67729
67730         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
67731         patches not yet found in the latest gettext release.
67732
67733 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67734
67735         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
67736         to avoid a collision with bits/local_lim.h in glibc.
67737         All uses changed.  Problem reported by Dmitry V. Levin in
67738         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
67739
67740         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
67741         bugs in int versus size_t comparisons.
67742         (re_string_context_at): Fix bug where the code assumed that
67743         Idx is signed.
67744
67745         Use bool where appropriate.
67746         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
67747         All callers changed.
67748         (calc_eclosure_iter): Likewise, for ROOT arg.
67749         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
67750         (build_charclass_op): Likewise, for NON_MATCH arg.
67751         * lib/regex_internal.c (re_string_allocate, re_string_construct):
67752         (re_string_construct_common): Likewise, for ICASE arg.
67753         * lib/regexec.c (re_search_2_stub, re_search_stub):
67754         Likewise, for RET_LEN arg.
67755         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
67756         (set_regs): Likewise, for FL_BACKTRACK arg.
67757         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
67758         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
67759         (calc_eclosure_iter, parse_bracket_exp):
67760         Use bool for internal variables that are booleans.
67761         * lib/regexec.c (re_search_internal, check_matching,
67762         proceed_next_node):
67763         (set_regs, build_sifted_states, sift_states_bkref):
67764         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
67765         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67766         (find_collation_sequence_value):
67767         Likewise.
67768         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
67769         (re_node_set_compare):
67770         Return bool, not int. All callers changed.
67771         * lib/regexec.c (check_halt_node_context, check_dst_limits):
67772         (build_trtable, check_node_accept): Likewise.
67773         * lib/regex_internal.h: Include stdbool.h.
67774
67775         Fix bugs uncovered when converting to bool.
67776         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
67777         failure instead of charging ahead blindly.
67778         * lib/regex_internal.c (register_state): Likewise.
67779         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
67780         for freeing internal storage.
67781         (group_nodes_into_DFA_states): Use unsigned int, not int, for
67782         bitset pieces used as boolean, to avoid undefined behavior
67783         on hosts that do int overflow checking.
67784
67785 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * config/srclist.txt: Add glibc bugs 1285-1287.
67788
67789 2005-09-01  Jim Meyering  <jim@meyering.net>
67790
67791         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
67792         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
67793         Require gl_STAT_MACROS, too.
67794
67795 2005-09-01  Bruno Haible  <bruno@clisp.org>
67796
67797         * gnulib-tool (import): In the first-use case, provide defaults.
67798
67799 2005-09-01  Bruno Haible  <bruno@clisp.org>
67800
67801         * gnulib-tool (func_import): Remove the .tmp files.
67802
67803 2005-09-01  Bruno Haible  <bruno@clisp.org>
67804
67805         * gnulib-tool (func_import): Fix handling of symbolic links.
67806
67807 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67808
67809         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
67810         old glibc regex code mishandles strings longer than 2**31 bytes.
67811         This patch fixes this when the regex code is used in gnulib
67812         (i.e., outside glibc).
67813
67814         This patch should not affect the use of the regex code inside
67815         glibc.  No doubt this problem also needs to be handled for glibc
67816         as well, but the result will be an incompatible change to the
67817         glibc ABI, and the old ABI will have to be supported too.  That
67818         can be the the subject for another patch.
67819
67820         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
67821         governing whether the rest of this patch is active.  By default,
67822         the macro is disabled and the patch has no effect.
67823         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
67824         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
67825         (struct re_pattern_buffer, re_search, re_search_2, re_match):
67826         (re_match_2, re_set_registers): Use the new types.
67827         * lib/regex_internal.h (Idx, re_hashval_t): New types.
67828         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
67829         New macros.
67830         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
67831         (re_string_context_at, bin_tree_t, re_dfastate_t):
67832         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
67833         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
67834         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
67835         (re_string_char_size_at, re_string_wchar_at):
67836         (re_string_elem_size_at):
67837         Use the new types and macros to port to 64-bit hosts.
67838         Use unsigned types for internal values, so that the code
67839         mostly works even for arrays larger than SSIZE_MAX.
67840         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
67841         (search_duplicated_node, calc_eclosure_iter, fetch_number):
67842         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
67843         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
67844         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
67845         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
67846         (calc_inveclosure, parse_dup_op, build_range_exp):
67847         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
67848         (fetch_number, create_token_tree, mark_opt_subexp):
67849         Likewise.
67850         * lib/regex_internal.c (re_string_construct_common,
67851         create_ci_newstate):
67852         (create_cd_newstate, re_string_allocate, re_string_construct):
67853         (re_string_realloc_buffers, build_wcs_upper_buffer):
67854         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67855         (re_string_reconstruct, re_string_peek_byte_case):
67856         (re_string_fetch_byte_case, re_string_context_at):
67857         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67858         (re_node_set_init_copy, re_node_set_add_intersect):
67859         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67860         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67861         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67862         (re_acquire_state, re_acquire_state_context, register_state):
67863         Likewise.
67864         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
67865         search_cur_bkref_entry):
67866         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
67867         (re_search_internal, re_search_2_stub, re_search_stub)
67868         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
67869         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
67870         (update_cur_sifted_state, check_dst_limits):
67871         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67872         (check_subexp_limits, sift_states_bkref, merge_state_array):
67873         (check_subexp_matching_top, get_subexp, get_subexp_sub):
67874         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
67875         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67876         (expand_bkref_cache, check_node_accept_bytes):
67877         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
67878         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
67879         (acquire_init_state_context, check_halt_node_context):
67880         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
67881         (sift_states_backward, clean_state_log_if_needed):
67882         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
67883         (find_recover_state, transit_state_sb, transit_state_mb):
67884         (transit_state_bkref, build_trtable, match_ctx_clean):
67885         Likewise.
67886         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
67887         to work around an assumption that REG_MISSING is negative.
67888
67889         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
67890         (seek_collating_symbol_entry) [defined _LIBC]:
67891         (lookup_collation_sequence_value) [defined _LIBC]:
67892         (build_range_exp, build_collating_symbol) [defined _LIBC]:
67893         Use prototypes rather than old-style function definitions.
67894         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
67895         (transit_state_sb) [0]:
67896         (find_collation_sequence_value) [defined _LIBC]: Likewise.
67897
67898         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
67899         rm_eo.
67900
67901         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
67902         (optimize_subexps, lower_subexp):
67903         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
67904         since the signed shift might overflow.  Use 1u<<31 instead.
67905         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
67906         Likewise.
67907         * lib/regexec.c (check_dst_limits_calc_pos_1,
67908         check_subexp_matching_top): Likewise.
67909
67910         * lib/regcomp.c (optimize_subexps, lower_subexp):
67911         Use CHAR_BIT rather than 8, for clarity.
67912         * lib/regexec.c (check_dst_limits_calc_pos_1):
67913         (check_subexp_matching_top): Likewise.
67914         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
67915         have to worry about portability issues when shifting it left.
67916         Remove no-longer-needed test for table_size > 0.
67917         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
67918         in a word, as the resulting behavior is undefined.
67919         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
67920         in one case, a <= should have been an <, and in another case the
67921         whole test was missing.
67922         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
67923         the standard name CHAR_BIT.
67924         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
67925         this is not true on one's complement and signed-magnitude hosts.
67926
67927         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
67928         next_last_offset.
67929         (struct re_dfa_t): Remove unused member states_alloc.
67930         * lib/regcomp.c (init_dfa): Don't initialize unused members.
67931
67932 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67933
67934         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
67935         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
67936         and large-file glibc and in 32-bit large-file Solaris.
67937
67938 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67939
67940         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
67941         lengths fit in regoff_t; this isn't true if regoff_t is the same
67942         width as size_t.
67943         * lib/regex.c (re_search_internal): 5th arg is LAST_START
67944         (= START + RANGE) instead of RANGE.  This avoids overflow
67945         problems when regoff_t is the same width as size_t.
67946         All callers changed.
67947         (re_search_2_stub): Check for overflow when adding the
67948         sizes of the two strings.
67949         (re_search_stub): Check for overflow when adding START
67950         to RANGE; if it occurs, substitute the extreme value.
67951
67952 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67953
67954         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
67955
67956 2005-08-31  Jim Meyering  <jim@meyering.net>
67957
67958         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
67959         a pointer-to-const.
67960         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
67961         (register_state): Likewise.
67962         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
67963         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
67964         (group_nodes_into_DFAstates): Likewise.
67965
67966 2005-08-31  Jim Meyering  <jim@meyering.net>
67967
67968         * check-module: Add a FIXME comment.
67969
67970 2005-08-31  Eric Blake  <ebb9@byu.net>
67971
67972         * modules/unistd-safer (Files): Add unistd--.h.
67973         * modules/stdio-safer (Files): Add stdio--.h.
67974
67975 2005-08-31  Derek Price  <derek@ximbiot.com>
67976
67977         * lib/getdelim.c (getdelim): Return EOF on EOF.
67978         Reported by Larry Jones <lawrence.jones@ugs.com>.
67979
67980 2005-08-31  Bruno Haible  <bruno@clisp.org>
67981
67982         Avoid unnecessary diffs in the generated lib/Makefile.am.
67983         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
67984         the generated files.
67985         (func_import): Don't set cmd.
67986
67987 2005-08-31  Bruno Haible  <bruno@clisp.org>
67988
67989         * lib/strstr.c: Include <stddef.h>, for NULL.
67990         * lib/strcasestr.c: Likewise.
67991         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67992
67993 2005-08-31  Bruno Haible  <bruno@clisp.org>
67994
67995         * gnulib-tool: New option --macro-prefix.
67996         (func_import): Use macro_prefix.
67997         (import): Handle option --macro-prefix.
67998
67999 2005-08-31  Bruno Haible  <bruno@clisp.org>
68000
68001         * gnulib-tool (import): Rename most ac_* variables to cached_*.
68002         Also use new variables cached_lgpl, cached_libtool.
68003
68004 2005-08-31  Bruno Haible  <bruno@clisp.org>
68005
68006         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
68007         always instantiating them.
68008
68009 2005-08-31  Bruno Haible  <bruno@clisp.org>
68010
68011         * gnulib-tool (func_import): Read the previous cached settings
68012         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
68013         earlier added by gnulib but are now dropped. Warn when a gnulib file
68014         overwrites a non-gnulib file.
68015
68016 2005-08-31  Bruno Haible  <bruno@clisp.org>
68017
68018         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
68019         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
68020         projects that don't keep autogenerated files in CVS. Put into
68021         actioncmd only the specified modules, not the transitive closure.
68022
68023 2005-08-31  Bruno Haible  <bruno@clisp.org>
68024
68025         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
68026         Create directories that shall be filled.
68027         (import): Don't look for gl_* macros in configure.ac. Recurse across
68028         all directories containing a gnulib-cache.m4 files, if meaningful.
68029
68030 2005-08-31  Bruno Haible  <bruno@clisp.org>
68031
68032         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
68033         (import): Set seen_libtool when we see gl_LIBTOOL.
68034
68035 2005-08-31  Bruno Haible  <bruno@clisp.org>
68036
68037         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
68038         declaration macro definitions from generated gnulib.m4.
68039
68040 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
68041
68042         * lib/iconvme.h: Add prototype for iconv_alloc.
68043
68044 2005-08-29  Simon Josefsson  <jas@extundo.com>
68045
68046         * lib/iconvme.c: Fix errno.
68047
68048 2005-08-29  Bruno Haible  <bruno@clisp.org>
68049
68050         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
68051         that it works when the directory contains spaces.
68052
68053 2005-08-29  Bruno Haible  <bruno@clisp.org>
68054
68055         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
68056
68057 2005-08-29  Bruno Haible  <bruno@clisp.org>
68058
68059         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
68060         Emit more advice.
68061
68062 2005-08-29  Bruno Haible  <bruno@clisp.org>
68063         and Stepan Kasal  <kasal@ucw.cz>
68064
68065         * check-module: If more parameters are given, check each of them
68066         separately; add more exceptions, as noted by Jim Meyering.
68067         (check_module): New procedure.
68068         (%exempt_header): Now contains all exceptions.
68069
68070 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
68071
68072         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
68073
68074 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
68075
68076         * lib/iconvme.c: Split iconv_string into iconv_alloc.
68077
68078 2005-08-28  Bruno Haible  <bruno@clisp.org>
68079
68080         * m4/gnulib-tool.m4: New file.
68081
68082 2005-08-27  Jim Meyering  <jim@meyering.net>
68083
68084         * modules/unistd-safer (Files): Add pipe-safer.c.
68085         * modules/fcntl-safer (Files): Add creat-safer.c.
68086
68087 2005-08-27  Jim Meyering  <jim@meyering.net>
68088
68089         * m4/stdlib-safer.m4: New file.  From coreutils.
68090         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
68091         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
68092         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
68093         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
68094         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
68095
68096 2005-08-27  Jim Meyering  <jim@meyering.net>
68097
68098         * lib/fopen-safer.c: Merge minor changes from coreutils.
68099         * lib/dup-safer.c: Likewise.
68100         * lib/fd-safer.c: Likewise.
68101
68102         Merge from coreutils.
68103         * lib/stdio--.h: New file.
68104         * lib/stdlib--.h: New file.
68105         * lib/mkstemp-safer.c: New file.
68106
68107         GNU tar needs these.
68108         * lib/pipe-safer.c: New file.
68109         * lib/creat-safer.c: New file.
68110         * lib/fcntl--.h (creat): Define to creat_safer.
68111         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
68112         * lib/unistd--.h (pipe): Define to pipe_safer.
68113         * lib/unistd-safer.h: Declare pipe_safer.
68114
68115 2005-08-26  Simon Josefsson  <jas@extundo.com>
68116
68117         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
68118         Haible <bruno@clisp.org>.
68119
68120 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
68121
68122         * lib/regex_internal.h: Remove all references to
68123         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
68124         or better.
68125         (bitset_not, bitset_merge, bitset_not_merge):
68126         (bitset_mask, re_string_allocate, re_string_construct):
68127         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
68128         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
68129         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
68130         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
68131         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68132         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68133         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
68134         (re_acquire_state_context):
68135         Remove unnecessary forward decls.
68136         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
68137         Put __attribute at function definition,
68138         now that the function decl has been removed.
68139         * lib/regex_internal.c (re_string_peek_byte_case):
68140         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
68141         Likewise.
68142
68143 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
68144
68145         * m4/regex.m4: Add AC_PREREQ(2.50).
68146         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
68147
68148 2005-08-25  Simon Josefsson  <jas@extundo.com>
68149
68150         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
68151         __fsetlocking.
68152
68153 2005-08-25  Simon Josefsson  <jas@extundo.com>
68154
68155         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
68156         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
68157         GLIBC specific code.
68158
68159 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         Make regex safe for g++.  This fixes one real bug (an "err"
68162         that should have been "*err").  g++ problem reported by
68163         Sam Steingold.
68164         * lib/regex_internal.h (re_calloc): New macro, consistent with
68165         re_malloc etc.  All callers of calloc changed to use re_calloc.
68166         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
68167         not int.  All callers changed.
68168         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
68169         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
68170         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
68171         (find_recover_state): Change "err" to "*err"; this fixes what
68172         appears to be a real bug.
68173         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
68174         versus int.
68175
68176 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68177
68178         * modules/regex (Depends-on): Add malloc, since the code
68179         assumes that !malloc(0) means failure.
68180
68181 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68182
68183         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
68184
68185         alloca modernization/simplification for regex.
68186         * lib/regex.c: Remove portability cruft for alloca.  This no longer
68187         needs to be at the start of the file, and can be moved into
68188         regex_internal.h and simplified.
68189         * lib/regex_internal.h: Include <alloca.h>.
68190         (__libc_use_alloca) [!defined _LIBC]: New macro.
68191         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
68192         now works outside glibc.
68193
68194 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68195
68196         * config/srclist.txt: Add glibc bugs 1241, 1245.
68197
68198 2005-08-25  Jim Meyering  <jim@meyering.net>
68199
68200         * lib/open-safer.c: Include <config.h>.
68201         Otherwise, we'd lose LARGEFILE support in any file using
68202         e.g. "fcntl--.h"
68203
68204 2005-08-25  Bruno Haible  <bruno@clisp.org>
68205
68206         * m4/minmax.m4: Require autoconf 2.52.
68207         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
68208         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
68209         alternatives of translit over the alphabet.
68210         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
68211
68212 2005-08-24  Simon Josefsson  <jas@extundo.com>
68213
68214         * tests/test-getpass.c: New file.
68215
68216 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68217
68218         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
68219         for GNU regex features.
68220
68221 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68222
68223         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
68224         * lib/regex.h (regerror): Likewise.
68225
68226         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
68227         requires this.  (The code never needed it.)
68228
68229         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
68230         All uses of recently-renamed identifiers changed to use the new,
68231         POSIX-compliant names.  The code will build and run just fine
68232         without these changes, but it's better to eat our own dog food
68233         and use the standard-conforming names.
68234
68235         * lib/regex.h: Fix a multitude of POSIX name space violations.
68236         These changes have an effect only for programs that define
68237         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
68238         do not change anything for programs compiled in the normal way.
68239         Also, there is no effect on the ABI.
68240
68241         (_REGEX_SOURCE): New macro.
68242         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
68243         defined and _GNU_SOURCE is not; this fixes a name space violation.
68244
68245         Rename the following macros to obey POSIX requirements.
68246         The old names are still visible as macros if _REGEX_SOURCE is defined.
68247         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
68248         RE_BACKSLASH_ESCAPE_IN_LISTS.
68249         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
68250         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
68251         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
68252         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
68253         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
68254         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
68255         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
68256         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
68257         (REG_INTERVALS): renamed from RE_INTERVALS.
68258         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
68259         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
68260         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
68261         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
68262         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
68263         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
68264         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
68265         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
68266         RE_UNMATCHED_RIGHT_PAREN_ORD.
68267         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
68268         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
68269         (REG_DEBUG): renamed from RE_DEBUG.
68270         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
68271         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
68272         unusual, since we can't clash with the POSIX REG_ICASE.
68273         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
68274         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
68275         (REG_NO_SUB): renamed from RE_NO_SUB.
68276         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
68277         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
68278         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
68279         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
68280         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
68281         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
68282         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
68283         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
68284         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
68285         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
68286         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
68287         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
68288         RE_SYNTAX_POSIX_MINIMAL_BASIC.
68289         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
68290         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
68291         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
68292         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
68293         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
68294         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
68295         (REG_FIXED): Renamed from REGS_FIXED.
68296         (REG_NREGS): Renamed from RE_NREGS.
68297
68298         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
68299         of other REG_* macros, since POSIX says the user is allowed to
68300         #undef these macros selectively.
68301
68302         (reg_errcode_t): Update comment stating what other tables need
68303         to be consistent.
68304
68305         Rename the following enum values to obey POSIX requirements.
68306         The old names are still visible as macros.
68307         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
68308         is not defined, since GNU is supposed to be a superset of POSIX as
68309         much as possible, and since we want reg_errcode_t to be a signed
68310         type for implementation consistency.
68311         (_REG_NOERROR): Renamed from REG_NOERROR.
68312         (_REG_NOMATCH): Renamed from REG_NOMATCH.
68313         (_REG_BADPAT): Renamed from REG_BADPAT.
68314         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
68315         (_REG_ECTYPE): Renamed from REG_ECTYPE.
68316         (_REG_EESCAPE): Renamed from REG_EESCAPE.
68317         (_REG_ESUBREG): Renamed from REG_ESUBREG.
68318         (_REG_EBRACK): Renamed from REG_EBRACK.
68319         (_REG_EPAREN): Renamed from REG_EPAREN.
68320         (_REG_EBRACE): Renamed from REG_EBRACE.
68321         (_REG_BADBR): Renamed from REG_BADBR.
68322         (_REG_ERANGE): Renamed from REG_ERANGE.
68323         (_REG_ESPACE): Renamed from REG_ESPACE.
68324         (_REG_BADRPT): Renamed from REG_BADRPT.
68325         (_REG_EEND): Renamed from REG_EEND.
68326         (_REG_ESIZE): Renamed from REG_ESIZE.
68327         (_REG_ERPAREN): Renamed from REG_ERPAREN.
68328         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
68329         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
68330         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
68331         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
68332
68333         (_REG_RE_NAME, _REG_RM_NAME): New macros.
68334         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
68335         changed.  But support the old name if the new one is not defined
68336         and if _REGEX_SOURCE.
68337
68338         Change the following member names in struct re_pattern_buffer.
68339         The old names are still supported if !_REGEX_SOURCE.
68340         The new names are always supported, regardless of _REGEX_SOURCE.
68341         (re_buffer): Renamed from buffer.
68342         (re_allocated): Renamed from allocated.
68343         (re_used): Renamed from used.
68344         (re_syntax): Renamed from syntax.
68345         (re_fastmap): Renamed from fastmap.
68346         (re_translate): Renamed from translate.
68347         (re_can_be_null): Renamed from can_be_null.
68348         (re_regs_allocated): Renamed from regs_allocated.
68349         (re_fastmap_accurate): Renamed from fastmap_accurate.
68350         (re_no_sub): Renamed from no_sub.
68351         (re_not_bol): Renamed from not_bol.
68352         (re_not_eol): Renamed from not_eol.
68353         (re_newline_anchor): Renamed from newline_anchor.
68354
68355         Change the following member names in struct re_registers.
68356         The old names are still supported if !_REGEX_SOURCE.
68357         The new names are always supported, regardless of _REGEX_SOURCE.
68358         (rm_num_regs): Renamed from num_regs.
68359         (rm_start): Renamed from start.
68360         (rm_end): Renamed from end.
68361
68362         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
68363         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
68364         Prepend __ to parameter names.
68365
68366         Undo yesterday's changes.
68367
68368 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68369
68370         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
68371         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
68372         lib/regex.c.
68373
68374 2005-08-24  Jim Meyering  <jim@meyering.net>
68375
68376         Sync from coreutils.
68377         * m4/fcntl-safer.m4: New file.
68378
68379         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
68380         and object files for this module.
68381
68382 2005-08-24  Jim Meyering  <jim@meyering.net>
68383
68384         Sync from coreutils.
68385         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
68386
68387 2005-08-24  Jim Meyering  <jim@meyering.net>
68388
68389         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
68390         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
68391
68392 2005-08-24  Jim Meyering  <jim@meyering.net>
68393
68394         * modules/fcntl-safer: New module.
68395         * modules/fts (Depends-on): Add fcntl-safer.
68396         * MODULES.html.sh (File descriptor based Input/Output):
68397         Add fcntl-safer.
68398
68399 2005-08-24  Bruno Haible  <bruno@clisp.org>
68400
68401         Support for unit test modules.
68402         * modules/README: Mention tests modules.
68403         * modules/TEMPLATE-TESTS: New file.
68404         * gnulib-tool: New options --extract-tests-module, --with-tests and
68405         --tests-base (unused for the moment).
68406         (testsbase, inctests): New variables.
68407         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
68408         (func_verify_module): Exclude TEMPLATE-TESTS.
68409         (func_verify_nontests_module, func_verify_tests_module): New functions.
68410         (func_get_dependencies): Add implicit dependency for tests modules.
68411         (func_get_tests_module): New function.
68412         (func_modules_transitive_closure): When --with-tests was specified,
68413         include the unit tests as well, unless explicitly avoided.
68414         (func_emit_lib_Makefile_am): Ignore the tests modules here.
68415         (func_emit_tests_Makefile_am): New function.
68416         (func_create_testdir): When --with-tests was specified, emit a
68417         tests/ directory.
68418         * MODULES.html.sh (Future developments): Update.
68419
68420 2005-08-24  Bruno Haible  <bruno@clisp.org>
68421
68422         * modules/tls-tests: New file.
68423         * tests/test-tls.c: New file, from GNU gettext.
68424
68425 2005-08-24  Bruno Haible  <bruno@clisp.org>
68426
68427         * modules/lock-tests: New file.
68428         * tests/test-lock.c: New file, from GNU gettext.
68429
68430 2005-08-24  Bruno Haible  <bruno@clisp.org>
68431
68432         * lib/lock.h: Add multiple inclusion guard.
68433         * lib/tls.h: Add multiple inclusion guard.
68434
68435 2005-08-24  Bruno Haible  <bruno@clisp.org>
68436
68437         * gnulib-tool: Add support for the --aux-dir option to
68438         --create-testdir, --create-megatestdir, --test, --megatest.
68439         (func_create_testdir, func_create_megatestdir): Optionally emit a
68440         AC_CONFIG_AUX_DIR directive.
68441         (create-testdir, create-megatestdir, test, megatest): Provide a
68442         default value for $auxdir.
68443
68444 2005-08-24  Bruno Haible  <bruno@clisp.org>
68445
68446         * gnulib-tool (import): Use compound statement instead of subshell
68447         where possible.
68448
68449 2005-08-24  Bruno Haible  <bruno@clisp.org>
68450
68451         * gnulib-tool (import): Change --aux-dir default to "build-aux".
68452
68453 2005-08-24  Bruno Haible  <bruno@clisp.org>
68454
68455         * gnulib-tool (func_version): Update.
68456
68457 2005-08-24  Bruno Haible  <bruno@clisp.org>
68458
68459         * gnulib-tool (func_import, func_create_testdir,
68460         func_create_megatestdir): Quote all autoconf macro arguments.
68461
68462 2005-08-24  Bruno Haible  <bruno@clisp.org>
68463
68464         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
68465         option --force, because --force causes the aclocal.m4 of each
68466         subdirectory to be newer than the corresponding config.h.in.
68467
68468 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68469
68470         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
68471         All contents moved to gl_REGEX.
68472         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
68473         assume that it does.
68474
68475 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68476
68477         * lib/regex.h (REG_NOSYS)
68478         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
68479         Define, since POSIX requires it as of 2001.
68480         (_REG_ENOSYS)
68481         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
68482         New private symbol, used to keep the enum signed in all cases.
68483         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
68484         Youngman in
68485         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
68486
68487         * lib/regex_internal.c (re_string_skip_chars, register_state):
68488         (calc_state_hash):
68489         Remove forward decls; no longer needed now that we use prototypes.
68490         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
68491         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
68492         (clean_state_log_if_needed): Likewise.
68493
68494 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68495
68496         * config/srclist.txt: Add glibc bugs 1231-1233.
68497
68498 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68499
68500         Fix problems reported by Sam Steingold in
68501         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
68502         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
68503         assumed that reg_errcode_t is a signed type, which is not
68504         necessarily true if _XOPEN_SOURCE is not defined.
68505         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
68506         since some compilers warn about it otherwise.
68507
68508 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
68511         (init_word_char, create_initial_state, duplicate_node_closure):
68512         (fetch_token, peek_token_bracket, build_range_exp):
68513         (build_collating_symbol): Remove forward decls; no longer needed
68514         now that we use prototypes.
68515
68516         * lib/regcomp.c:
68517         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
68518         (re_compile_fastmap_iter, regcomp, regerror, regfree):
68519         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
68520         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
68521         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
68522         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
68523         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
68524         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
68525         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
68526         (build_range_exp, build_collating_symbol, parse_bracket_exp):
68527         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
68528         (build_charclass, build_charclass_op, fetch_number, create_tree):
68529         (create_token_tree, mark_opt_subexp, duplicate_tree):
68530         Use prototypes rather than old-style definitions.
68531
68532         * lib/regex_internal.c:
68533         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
68534         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
68535         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
68536         (re_string_reconstruct, re_string_peek_byte_case):
68537         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
68538         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
68539         (re_node_set_init_copy, re_node_set_add_intersect):
68540         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
68541         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
68542         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
68543         (re_acquire_state, re_acquire_state_context, register_state):
68544         (create_ci_newstate, create_cd_newstate, free_state):
68545         Likewise.
68546         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
68547         re_search_2):
68548         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
68549         (re_search_internal, prune_impossible_nodes):
68550         (acquire_init_state_context, check_matching, static):
68551         (check_halt_node_context, check_halt_state_context, proceed_next_node):
68552         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
68553         (update_regs, sift_states_backward, build_sifted_states):
68554         (clean_state_log_if_needed, merge_state_array):
68555         (update_cur_sifted_state, add_epsilon_src_nodes):
68556         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
68557         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
68558         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
68559         (find_recover_state, check_subexp_matching_top, transit_state_mb):
68560         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
68561         (check_arrival, check_arrival_add_next_nodes):
68562         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
68563         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
68564         (check_node_accept_bytes, check_node_accept, extend_buffers):
68565         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
68566         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
68567         (sift_ctx_init):
68568         Likewise.
68569
68570         * lib/regex_internal.h:
68571         (re_string_allocate, re_string_construct, re_string_reconstruct):
68572         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
68573         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
68574         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
68575         (re_string_context_at, re_string_peek_byte_case):
68576         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
68577         is defined, since we now use prototypes always.
68578
68579         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
68580         C89 or better.  All uses removed.
68581
68582 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
68583
68584         * config/srclist.txt: Add glibc bugs 1220-1227.
68585
68586 2005-08-20  Jim Meyering  <jim@meyering.net>
68587
68588         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
68589         of unused local, dfa.
68590
68591 2005-08-20  Bruno Haible  <bruno@clisp.org>
68592
68593         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
68594
68595 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
68598         (re_node_set_insert_last, re_dfa_add_node):
68599         Rename local variables to avoid GCC shadowing warnings.
68600
68601 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68602
68603         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
68604         [defined lint]: Suppress bogus uninitialized-variable warnings.
68605
68606         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
68607         and let the caller return REG_ESPACE if out of space.  This
68608         removes an uninitialied-variable warning with GCC 4.0.1, and also
68609         avoids taking the address of a local variable.  All callers
68610         changed.
68611
68612 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
68613
68614         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
68615         $LIBCSRC/posix/regexec.c.
68616         Add glibc bug 1217 for regcomp.c.
68617
68618 2005-08-19  Jim Meyering  <jim@meyering.net>
68619
68620         * lib/regexec.c (proceed_next_node): Redo local variables to
68621         avoid GCC shadowing warnings.
68622
68623 2005-08-18  Bruno Haible  <bruno@clisp.org>
68624
68625         * lib/strstr.c (strstr): Fix return value in multibyte case.
68626         * lib/strcasestr.c (strcasestr): Likewise.
68627
68628 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
68629
68630         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
68631
68632 2005-08-17  Jim Meyering  <jim@meyering.net>
68633
68634         Make the %s format (seconds since the epoch) work for a negative
68635         number and when used with a zero-padded field width, e.g. %015s.
68636
68637         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
68638         label so that it precedes the code to set `digits'.  Otherwise,
68639         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
68640         print `00-22'.  Now, it prints `-0022', as it should.
68641
68642 2005-08-17  Bruno Haible  <bruno@clisp.org>
68643
68644         * modules/strstr (Files): Add m4/mbrtowc.m4.
68645         (Depends-on): Add mbuiter.
68646
68647 2005-08-17  Bruno Haible  <bruno@clisp.org>
68648
68649         * modules/strcasestr: New file.
68650         * MODULES.html.sh (String handling, based on ANSI C 89): Add
68651         strcasestr.
68652
68653 2005-08-17  Bruno Haible  <bruno@clisp.org>
68654
68655         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
68656
68657 2005-08-17  Bruno Haible  <bruno@clisp.org>
68658
68659         * modules/mbuiter: New file.
68660         * MODULES.html.sh (Extended multibyte and wide character utilities):
68661         Add mbuiter.
68662
68663 2005-08-17  Bruno Haible  <bruno@clisp.org>
68664
68665         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
68666         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
68667
68668 2005-08-17  Bruno Haible  <bruno@clisp.org>
68669
68670         * m4/strcasestr.m4: New file.
68671
68672 2005-08-17  Bruno Haible  <bruno@clisp.org>
68673
68674         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
68675         * lib/strstr.c: Completely rewritten, with multibyte locale support.
68676
68677 2005-08-17  Bruno Haible  <bruno@clisp.org>
68678
68679         * lib/strcasestr.h: New file.
68680         * lib/strcasestr.c: New file.
68681
68682 2005-08-17  Bruno Haible  <bruno@clisp.org>
68683
68684         * lib/strcasecmp.c: Use mbuiter.h.
68685
68686 2005-08-17  Bruno Haible  <bruno@clisp.org>
68687
68688         * lib/mbuiter.h: New file.
68689
68690 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68691
68692         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
68693         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
68694         and gl_GETOPT are both invoked via different paths (as happens
68695         with GNU tar CVS because it uses both argp and getopt), the former
68696         wins.
68697
68698 2005-08-16  Bruno Haible  <bruno@clisp.org>
68699
68700         * modules/tls: New file.
68701         * MODULES.html.sh (Multithreading): Add tls.
68702
68703 2005-08-16  Bruno Haible  <bruno@clisp.org>
68704
68705         * modules/strnlen1: New file.
68706         * MODULES.html.sh (String handling): Add strnlen1.
68707
68708 2005-08-16  Bruno Haible  <bruno@clisp.org>
68709
68710         * modules/strcase (Files): Add m4/mbrtowc.m4.
68711         (Depends-on): Add strnlen1, mbchar.
68712
68713 2005-08-16  Bruno Haible  <bruno@clisp.org>
68714
68715         * modules/mbiter: New file.
68716         * MODULES.html.sh (Extended multibyte and wide character utilities):
68717         Add mbiter.
68718
68719 2005-08-16  Bruno Haible  <bruno@clisp.org>
68720
68721         * modules/mbfile: New file.
68722         * MODULES.html.sh (Extended multibyte and wide character utilities):
68723         Add mbfile.
68724
68725 2005-08-16  Bruno Haible  <bruno@clisp.org>
68726
68727         * modules/mbchar: New file.
68728         * MODULES.html.sh (Extended multibyte and wide character utilities):
68729         New section.
68730
68731 2005-08-16  Bruno Haible  <bruno@clisp.org>
68732
68733         * m4/tls.m4: New file, from GNU gettext.
68734
68735 2005-08-16  Bruno Haible  <bruno@clisp.org>
68736
68737         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
68738         always.
68739         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
68740
68741 2005-08-16  Bruno Haible  <bruno@clisp.org>
68742
68743         * m4/mbiter.m4: New file.
68744
68745 2005-08-16  Bruno Haible  <bruno@clisp.org>
68746
68747         * m4/mbfile.m4: New file.
68748
68749 2005-08-16  Bruno Haible  <bruno@clisp.org>
68750
68751         * m4/mbchar.m4: New file.
68752
68753 2005-08-16  Bruno Haible  <bruno@clisp.org>
68754
68755         * lib/tls.h: New file, from GNU gettext.
68756         * lib/tls.c: New file, from GNU gettext.
68757
68758 2005-08-16  Bruno Haible  <bruno@clisp.org>
68759
68760         * lib/strnlen1.h: New file.
68761         * lib/strnlen1.c: New file.
68762
68763 2005-08-16  Bruno Haible  <bruno@clisp.org>
68764
68765         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
68766         (mbi_init): Update.
68767         (mbi_avail, mbi_advance): Let the iteration end before the terminating
68768         NUL byte, not after it.
68769
68770 2005-08-16  Bruno Haible  <bruno@clisp.org>
68771
68772         * lib/strcase.h (strcasecmp): Add note in comments.
68773         * lib/strncasecmp.c: Use code from strcasecmp.c.
68774         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
68775         (strcasecmp): Work correctly in multibyte locales.
68776
68777 2005-08-16  Bruno Haible  <bruno@clisp.org>
68778
68779         * lib/mbiter.h: New file.
68780
68781 2005-08-16  Bruno Haible  <bruno@clisp.org>
68782
68783         * lib/mbfile.h: New file.
68784
68785 2005-08-16  Bruno Haible  <bruno@clisp.org>
68786
68787         * lib/mbchar.h: New file.
68788         * lib/mbchar.c: New file.
68789
68790 2005-08-16  Bruno Haible  <bruno@clisp.org>
68791
68792         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
68793         the valid ones. Makes the comparison operations transitive:
68794         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
68795         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
68796
68797 2005-08-15  Simon Josefsson  <jas@extundo.com>
68798
68799         * modules/ssize_t (License): Change to 'unlimited'.
68800
68801         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
68802
68803 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68804
68805         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
68806         Add comments for each pending glibc patch.
68807
68808 2005-08-15  Bruno Haible  <bruno@clisp.org>
68809
68810         * lib/regex.h (__restrict_arr): Don't define to __restrict if
68811         __cplusplus is defined.
68812
68813 2005-08-14  Jim Meyering  <jim@meyering.net>
68814
68815         Sync from coreutils.
68816
68817         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
68818         Use the hash-table-based cycle-detection code not just when
68819         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
68820         Reported by James Youngman in
68821         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
68822         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
68823         FTS_TIGHT_CYCLE_CHECK.
68824         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
68825         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
68826         once again.
68827         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
68828         * lib/fts.c (fd_safer): Remove decl.
68829         Include fcntl--.h rather than unistd-safer.h
68830         (fts_safe_changedir): Don't call fd_safer; no longer needed
68831         now that we include fcntl--.h.
68832
68833 2005-08-12  Simon Josefsson  <jas@extundo.com>
68834
68835         * modules/getndelim2: Use ssize_t module.
68836         * modules/getnline: Likewise.
68837         * modules/safe-read: Likewise.
68838         * modules/xreadlink: Likewise.
68839
68840         * modules/ssize_t: New file.
68841
68842 2005-08-12  Simon Josefsson  <jas@extundo.com>
68843
68844         * m4/readline.m4: Look for termcap, curses or ncurses if required.
68845
68846 2005-08-12  Simon Josefsson  <jas@extundo.com>
68847
68848         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68849         ssize_t.
68850
68851 2005-08-12  Simon Josefsson  <jas@extundo.com>
68852
68853         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
68854         readline, getdelim and check_version.
68855         (Support for systems lacking ISO C 99: Sizes of integer types):
68856         Add size_max.
68857
68858 2005-08-12  Bruno Haible  <bruno@clisp.org>
68859
68860         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
68861
68862 2005-08-11  Simon Josefsson  <jas@extundo.com>
68863
68864         * modules/readline: New file.
68865
68866         * modules/strnlen (Files): Add strnlen.h.
68867
68868 2005-08-11  Simon Josefsson  <jas@extundo.com>
68869
68870         * m4/readline.m4: New file.
68871
68872 2005-08-11  Simon Josefsson  <jas@extundo.com>
68873
68874         * lib/readline.h, readline.c: New file.
68875
68876 2005-08-11  Simon Josefsson  <jas@extundo.com>
68877
68878         * doc/gnulib.texi (Initial import, Finishing touches): Mention
68879         gl_AVOID.
68880
68881 2005-08-11  Bruno Haible  <bruno@clisp.org>
68882
68883         * lib/strnlen.h (strnlen): Change parameter name to match comment.
68884
68885 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
68886
68887         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
68888
68889 2005-08-10  Simon Josefsson  <jas@extundo.com>
68890
68891         * tests/test-iconvme.c: New file.
68892
68893 2005-08-10  Simon Josefsson  <jas@extundo.com>
68894
68895         * m4/strnlen.m4: New file.
68896
68897         * m4/strndup.m4: Don't check for strnlen declaration, done in
68898         strnlen.m4.
68899
68900 2005-08-10  Simon Josefsson  <jas@extundo.com>
68901
68902         * lib/strndup.c: Use strnlen.h.
68903
68904         * lib/strnlen.h: New file.
68905
68906 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68907
68908         * README: Typos.
68909
68910 2005-08-02  Simon Josefsson  <jas@extundo.com>
68911
68912         * modules/readline: New file.
68913
68914 2005-08-02  Simon Josefsson  <jas@extundo.com>
68915
68916         * modules/getdelim: New file.
68917
68918         * modules/getline: Rewrite, don't use getndelim2.
68919
68920 2005-08-02  Simon Josefsson  <jas@extundo.com>
68921
68922         * m4/getline.m4: Separate out getdelim stuff into separate module.
68923
68924         * m4/getdelim.m4: New file.
68925
68926 2005-08-02  Simon Josefsson  <jas@extundo.com>
68927
68928         * lib/getline.h, getline.c: Rewrite.
68929
68930         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
68931
68932 2005-07-31  Bruno Haible  <bruno@clisp.org>
68933
68934         * lib/lock.h (gl_lock_initializer): New macro.
68935         (gl_lock_define_initialized): Use it.
68936         (gl_rwlock_initializer): New macro.
68937         (gl_rwlock_define_initialized): Use it.
68938         (gl_recursive_lock_initializer): New macro.
68939         (gl_recursive_lock_define_initialized): Use it.
68940
68941 2005-07-30  Karl Berry  <karl@gnu.org>
68942
68943         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
68944         Report from Ben Pfaff, regarding getopt.
68945
68946 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
68947
68948         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
68949         normal way.
68950         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
68951         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
68952         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
68953         (gl_GETOPT): Use the new macros.  Most of the implementation
68954         is moved to the new macros.  This is for programs like Emacs
68955         that don't want all the functionality of gl_GETOPT.
68956
68957 2005-07-26  Bruno Haible  <bruno@clisp.org>
68958
68959         * m4/lock.m4: Update from GNU gettext.
68960
68961 2005-07-26  Bruno Haible  <bruno@clisp.org>
68962
68963         * lib/lock.h: Update from GNU gettext.
68964         * lib/lock.c: Update from GNU gettext.
68965
68966 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
68967
68968         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
68969         obsolescent AC_TRY_RUN.  Include the default includes files, for
68970         'exit'.
68971
68972 2005-07-24  Bruno Haible  <bruno@clisp.org>
68973
68974         * modules/visibility: New file.
68975         * MODULES.html.sh (Misc): Add visibility.
68976
68977 2005-07-24  Bruno Haible  <bruno@clisp.org>
68978
68979         * m4/visibility.m4: New file.
68980
68981 2005-07-24  Bruno Haible  <bruno@clisp.org>
68982
68983         * doc/visibility.texi: New file.
68984
68985 2005-07-22  Bruno Haible  <bruno@clisp.org>
68986
68987         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
68988         $(ALLOCA_H), redundant through BUILT_SOURCES.
68989         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
68990         redundant through BUILT_SOURCES.
68991         * modules/byteswap (Makefile.am): Remove explicit dependency on
68992         $(BYTESWAP_H), redundant through BUILT_SOURCES.
68993         * modules/fnmatch (Makefile.am): Remove explicit dependency on
68994         $(FNMATCH_H), redundant through BUILT_SOURCES.
68995         * modules/getopt (Makefile.am): Remove explicit dependency on
68996         $(GETOPT_H), redundant through BUILT_SOURCES.
68997         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
68998         redundant through BUILT_SOURCES.
68999         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
69000         redundant through BUILT_SOURCES.
69001         * modules/stdbool (Makefile.am): Remove explicit dependency on
69002         $(STDBOOL_H), redundant through BUILT_SOURCES.
69003         * modules/stdint (Makefile.am): Remove explicit dependency on
69004         $(STDINT_H), redundant through BUILT_SOURCES.
69005         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
69006         Remove explicit dependency on $(SYSEXITS_H).
69007         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
69008
69009 2005-07-18  Simon Josefsson  <jas@extundo.com>
69010
69011         * lib/check-version.c (check_version): Accept identical versions too.
69012
69013 2005-07-18  Bruno Haible  <bruno@clisp.org>
69014
69015         * modules/lock: New file.
69016         * MODULES.html.sh (Multithreading): New section.
69017
69018 2005-07-18  Bruno Haible  <bruno@clisp.org>
69019
69020         * m4/lock.m4: New file, from GNU gettext.
69021
69022 2005-07-18  Bruno Haible  <bruno@clisp.org>
69023
69024         * lib/lock.h: New file, from GNU gettext.
69025         * lib/lock.c: New file, from GNU gettext.
69026
69027 2005-07-18  Bruno Haible  <bruno@clisp.org>
69028
69029         * lib/lock.h (gl_once_t): New type.
69030         (gl_once_define, gl_once): New macros.
69031         * lib/lock.c (fresh_once): New variable.
69032         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
69033         functions.
69034
69035 2005-07-16  Simon Josefsson  <jas@extundo.com>
69036
69037         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
69038         workaround, suggested by Bruno.
69039
69040 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69041
69042         * modules/xalloc (Depends-on): Add xalloc-die.
69043         * modules/xvasprintf (Depends-on): Add xalloc-die.
69044
69045 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
69046
69047         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
69048         with a minor change.
69049
69050 2005-07-15  Bruno Haible  <bruno@clisp.org>
69051
69052         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
69053         When using lib/poll.c, define poll as rpl_poll.
69054
69055 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
69056
69057         * modules/argp (Depends-on): Remove unlocked-io.
69058
69059 2005-07-14  Derek Price  <derek@ximbiot.com>
69060
69061         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
69062         for glob symlink bug.
69063
69064 2005-07-14  Bruno Haible  <bruno@clisp.org>
69065
69066         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
69067         Instead, test for *_unlocked function declarations directly.
69068
69069 2005-07-11  Simon Josefsson  <jas@extundo.com>
69070
69071         * modules/size_max: New file.
69072
69073         * modules/xsize: Depend on size_max module for size_max.m4.
69074
69075 2005-07-11  Simon Josefsson  <jas@extundo.com>
69076
69077         * lib/size_max.h: New file.
69078
69079 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
69080
69081         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
69082         copyright symbol and the year.
69083         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
69084         (version_etc_va): Use parameterized copyright notice.
69085         Reword to conform to the current GNU coding standards.
69086
69087 2005-07-11  Karl Berry  <karl@gnu.org>
69088
69089         * doc/gnulib.texi (Quoting): new node.
69090         (Initial import): more info, from Patrice.
69091
69092 2005-07-11  Bruno Haible  <bruno@clisp.org>
69093
69094         * gnulib-tool (func_usage): Document option --avoid.
69095         (Command line options): Handle --avoid.
69096         (func_acceptable): New function.
69097         (func_modules_transitive_closure): Use it.
69098
69099 2005-07-11  Bruno Haible  <bruno@clisp.org>
69100
69101         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
69102         Reported by Jim Meyering.
69103
69104 2005-07-10  Bruno Haible  <bruno@clisp.org>
69105
69106         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
69107         Needed when size_t is smaller than 'unsigned int'.
69108         Reported by Paul Eggert.
69109
69110 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69111
69112         * modules/argp (Depends-on): Add unlocked-io
69113
69114 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69115
69116         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
69117         block of defines.
69118
69119 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69120
69121         * config/srclist.txt: Comment out regcomp.c, since we have a porting
69122         fix now.
69123
69124 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
69125         and Paul Eggert  <eggert@cs.ucla.edu>
69126
69127         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
69128         in wint_t, not wchar_t.  Remove now-unnecessary cast.
69129
69130 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69131
69132         * modules/regex (Files): Add lib/regex_internal.c,
69133         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
69134         (Depends-on): Add extensions.
69135         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
69136
69137 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69138
69139         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
69140         pathconf.
69141         * m4/same.m4 (gl_SAME): Likewise.
69142         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
69143
69144         * m4/regex.m4: Adjust to new libc regex implementation.
69145         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
69146         all the .c and .h parts of (the new) regex.
69147         Quote the m4 stuff better.
69148         Check for RE_ICASE bug of old gnulib.
69149         Check for REG_STARTEND of recent libc.
69150         Rename local variables from jm_* to gl_*.
69151         Quote operand of "test -f".
69152         Say "recent enough" version of libc, not "version 2".
69153         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
69154         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
69155         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
69156         Remove check for btowc, isascii.
69157         Require AM_LANGINFO_CODESET.
69158
69159 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * lib/regex.c, regex.h: Sync from libc.
69162         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
69163         * lib/regexec.c:
69164         New files, synced from libc, except that regex_internal.h
69165         currently has a small porting fix.
69166
69167 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
69170         regex_internal.c, regexec.c.
69171         Add regex_internal.h too, but as a comment, since the libc version
69172         is currently broken in gnulib mode.
69173
69174 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69175
69176         Support programs like Emacs that use gnulib but not gettext.
69177         * MODULES.html.sh (Internationalization functions): Add gettext-h.
69178         * modules/gettext-h: New file.
69179         * modules/gettext (Files): Remove lib/gettext.h.
69180         (Depends-on): Add gettext-h.
69181         (Makefile.am): Remove lib_SOURCES.
69182         * modules/argmatch, modules/c-stack, modules/closeout:
69183         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
69184         * modules/execute, modules/file-type, modules/getaddrinfo:
69185         * modules/getopt, modules/human, modules/javacomp:
69186         * modules/javaexec, modules/mkdir-p, modules/obstack:
69187         * modules/openat, modules/pagealign_alloc, modules/pipe:
69188         * modules/quotearg, modules/regex, modules/rpmatch:
69189         * modules/unicodeio, modules/userspec, modules/version-etc:
69190         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
69191         * modules/xsetenv:
69192         Depend on gettext-h, not gettext.
69193
69194 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         * gnulib-tool (func_import): Add support for 'public domain' license.
69197         * modules/alloca, modules/atexit, modules/memmove:
69198         Now public domain, not GPL.
69199         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
69200         * modules/realloc, modules/strerror, modules/strtod:
69201         Now LGPL, not GPL.
69202
69203 2005-07-05  Bruno Haible  <bruno@clisp.org>
69204
69205         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
69206         autoconf CVS. Needed for mingw.
69207
69208 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69209
69210         Remove the dependency of the strftime module on the tzset module.
69211         * modules/strftime (Depends-on): Remove dependency on tzset.
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         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
69217         gl_FUNC_TZSET_CLOBBER.
69218
69219 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69220
69221         Remove the dependency of the strftime module on the tzset module.
69222         * lib/strftime.c (my_strftime)
69223         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
69224         Copy the input structure, to work around some of the bug with
69225         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
69226         Solaris releases, you should also use the tzset module, but we won't
69227         require it as a dependency any more since we don't want LGPLed code
69228         to depend on GPLed code.
69229
69230 2005-07-02  Jim Meyering  <jim@meyering.net>
69231
69232         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
69233         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
69234         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
69235         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
69236
69237 2005-07-02  Jim Meyering  <jim@meyering.net>
69238
69239         * lib/backupfile.c (backup_args): Change a `0' to NULL.
69240
69241 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
69244         declares only 'struct timespec;' (!).
69245
69246 2005-07-01  Jim Meyering  <jim@meyering.net>
69247
69248         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
69249         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
69250         * lib/save-cwd.c, tempname.c:
69251         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
69252         and don't include <sys/file.h>).
69253
69254 2005-06-29  Jim Meyering  <jim@meyering.net>
69255
69256         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
69257         type name.  Use the variable name instead.
69258         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
69259         Likewise.
69260
69261 2005-06-28  Simon Josefsson  <jas@extundo.com>
69262
69263         * modules/check-version (Files): Add check-version.m4.
69264
69265 2005-06-28  Simon Josefsson  <jas@extundo.com>
69266
69267         * m4/check-version.m4: New file, suggested by Jim Meyering
69268         <jim@meyering.net>.
69269
69270 2005-06-28  Simon Josefsson  <jas@extundo.com>
69271
69272         * lib/check-version.h, lib/check-version.c: New files.
69273
69274 2005-06-28  Simon Josefsson  <jas@extundo.com>
69275
69276         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
69277         collision with global variable.  Better indentation.  Don't
69278         increment buffer pointer beyond buffer end.  Based on comments
69279         from Paul Eggert <eggert@cs.ucla.edu>.
69280
69281         * lib/base64.h: Indent.
69282
69283 2005-06-28  Simon Josefsson  <jas@extundo.com>
69284
69285         * doc/gnulib.texi (Library version handling): New section.
69286
69287 2005-06-28  Jim Meyering  <jim@meyering.net>
69288
69289         * check-module (find_included_lib_files): Hard-code another
69290         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
69291         but modules/fts-lgpl (correctly) does not list those files.
69292
69293         * modules/canonicalize (Files): Add lib/pathmax.h.
69294
69295 2005-06-25  Simon Josefsson  <jas@extundo.com>
69296
69297         * modules/check-version: New file.
69298
69299 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
69300
69301         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
69302         initializer of struct addrinfo, as an indication that we don't
69303         care how many members the structure has.
69304
69305 2005-06-24  Derek Price  <derek@ximbiot.com>
69306         and Bruno Haible  <bruno@clisp.org>
69307
69308         Remove stat module & update lstat.
69309         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
69310         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69311         * m4/stat.m4: Remove this file.
69312
69313 2005-06-24  Derek Price  <derek@ximbiot.com>
69314         and Bruno Haible  <bruno@clisp.org>
69315
69316         Remove stat module & update lstat.
69317         * lib/stat.c: Remove this file...
69318         (slash_aware_lstat): ...moving this content and its support...
69319         * lib/lstat.c (rpl_lstat): ...into here.
69320         * lib/lstat.h: New file.
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         * config/srclist.txt (libc sources): Remove stat.
69327
69328 2005-06-24  Derek Price  <derek@ximbiot.com>
69329         and Bruno Haible  <bruno@clisp.org>
69330
69331         Remove stat module & update lstat.
69332         * MODULES.html.sh (stat): Remove.
69333         * MODULES.html: Regenerated.
69334         * modules/lstat (Description): Correct function name.
69335         (Files): Add "lstat.h".
69336         (Depends-on): Remove stat, add xalloc, stat-macros.
69337         * modules/stat: Remove this file.
69338         (Include): Add "lstat.h", remove <sys/stat.h>.
69339
69340 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69341
69342         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
69343         (ranged_convert): Don't save conversion in a temporary struct.
69344         This causes a warning with GCC 4.0.0, and anyway in the typical
69345         case it's not worth the extra 100 bytes or so of code.
69346         (ranged_convert, __mktime_internal): When calling a function via a
69347         pointer P, use P () rather than (*P) (), as we now assume C89 or
69348         better.
69349
69350 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69351
69352         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
69353         "who -r" failed to give output.  Problem reported by Tim Waugh.
69354
69355         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
69356         (xcalloc): Use it to avoid needless tests.
69357         Problem reported by Jim Meyering.
69358
69359 2005-06-20  Derek Price  <derek@ximbiot.com>
69360
69361         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
69362         unnecessary for Autoconfs > 2.59c.
69363
69364 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69365
69366         * lib/argp.h (__option_is_short): Check upper limit of
69367         __key. Isprint() requires its argument to have the value
69368         of an unsigned char or EOF.
69369
69370 2005-06-16  Jim Meyering  <jim@meyering.net>
69371
69372         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
69373         when either N or S is zero.
69374
69375 2005-06-16  Derek Price  <derek@ximbiot.com>
69376
69377         * m4/bison.m4: Declare YACC & YFLAGS precious.
69378
69379 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
69380
69381         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
69382         multibyte string or pattern, fall back on unibyte matching.
69383         Problem reported by James Youngman.
69384
69385 2005-06-08  Bruno Haible  <bruno@clisp.org>
69386
69387         * modules/csharpcomp: New file.
69388         * MODULES.html.sh (C#): Add csharpcomp.
69389
69390 2005-06-08  Bruno Haible  <bruno@clisp.org>
69391
69392         * m4/csharpcomp.m4: New file, from GNU gettext.
69393
69394 2005-06-08  Bruno Haible  <bruno@clisp.org>
69395
69396         * lib/csharpcomp.h: New file, from GNU gettext.
69397         * lib/csharpcomp.c: New file, from GNU gettext.
69398         * lib/csharpcomp.sh.in: New file, from GNU gettext.
69399
69400 2005-06-08  Bruno Haible  <bruno@clisp.org>
69401
69402         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
69403         warning on mingw.
69404
69405 2005-06-07  Derek Price  <derek@ximbiot.com>
69406
69407         Sync from CVS.
69408         * lib/glob_.h: Indent nested #ifdef.
69409
69410 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69411
69412         Sync from coreutils.
69413         Use "file name" when talking about file names, instead of "filename"
69414         or "path", as per the GNU coding standards.
69415         * lib/mkdir-p.c: Renamed from makepath.c.
69416         (make_dir_parents): Renamed from make_path.  All callers changed.
69417         * lib/mkdir-p.h: Likewise.  All includers changed.
69418         * lib/filenamecat.c: Renamed from path-concat.c.
69419         (file_name_concat): Renamed from path_concat.  All callers changed.
69420         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
69421         * lib/filenamecat.h: Likewise.  All includers changed.
69422         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
69423         in comments or local variable names.
69424         * lib/basename.c: Likewise.
69425         * lib/canonicalize.c, canonicalize.h: Likewise.
69426         * lib/dirname.c, dirname.h: Likewise.
69427         * lib/euidaccess.c: Likewise.
69428         * lib/exclude.c: Likewise
69429         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
69430         * lib/fsusage.c, fsuage.h: Likewise.
69431         * lib/fts.c, fts_.h: Likewise.
69432         * lib/getcwd.c: Likewise.
69433         * lib/getloadavg.c: Likewise.
69434         * lib/mkstemp.c: Likewise.
69435         * lib/mountlist.c, mountlist.h: Likewise.
69436         * lib/openat.c, openat.h: Likewise.
69437         * lib/readlink-stub.c: Likewise.
69438         * lib/readutmp.c, readutmp.h: Likewise.
69439         * lib/rename.c: Likewise.
69440         * lib/rmdir.c: Likewise.
69441         * lib/same.c: Likewise.
69442         * lib/savedir.c: Likewise.
69443         * lib/stripslash.c: Likewise.
69444         * lib/tempname.c: Likewise.
69445         * lib/xreadlink.c: Likewise.
69446         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
69447         All uses changed.
69448         * lib/exclude.h: Likewise.
69449
69450         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
69451         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69452         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
69453         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69454         * lib/pathmax.h: Include <limits.h> unconditionally, since other
69455         files have been getting away with it for years (MORE/BSD 4.3
69456         is extinct now).
69457         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
69458         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
69459
69460         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
69461         Define to 256, not 255, as per modern POSIX.
69462
69463 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69464
69465         Sync from coreutils.
69466         Use "file name" when talking about file names, instead of "filename"
69467         or "path", as per the GNU coding standards.
69468         * MODULES.html.sh: mkdir-p renamed from makepath.
69469         filenamecat renamed from path-concat.
69470         * modules/filenamecat: Renamed from modules/path-concat.
69471         (Files): filenamecat.h and filenamecat.c renamed from
69472         path-concat.h and path-concat.c.
69473         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
69474         (Include): filenamecat.h, not path-concat.h.
69475         * modules/mkdir-p: Renamed from modules/makepath.
69476         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
69477         makepath.c.
69478         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
69479         (Include): mkdir-p.h, not makepath.h.
69480
69481 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
69482
69483         Sync from coreutils.
69484         * m4/mkdir-p.m4: Renamed from makepath.m4.
69485         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
69486         Rename files from makepath.c to mkdir-p.c, and from
69487         makepath.h to mkdir-p.h.
69488         * m4/filenamecat.m4: Renamed from path-concat.m4.
69489         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
69490         Rename files from path-concat.c to filenamecat.c,
69491         and from path-concat.h to filenamecat.h.
69492         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
69493         "file name" in local variables or comments.
69494         * m4/rename.m4: Likewise.
69495
69496 2005-06-01  Bruno Haible  <bruno@clisp.org>
69497
69498         * modules/csharpexec: New file.
69499         * MODULES.html.sh (C#): New section.
69500
69501 2005-06-01  Bruno Haible  <bruno@clisp.org>
69502
69503         * m4/csharp.m4: New file, from GNU gettext.
69504         * m4/csharpexec.m4: New file, from GNU gettext.
69505
69506 2005-06-01  Bruno Haible  <bruno@clisp.org>
69507
69508         * lib/csharpexec.h: New file, from GNU gettext.
69509         * lib/csharpexec.c: New file, from GNU gettext.
69510         * lib/csharpexec.sh.in: New file, from GNU gettext.
69511
69512 2005-05-31  Derek Price  <derek@ximbiot.com>
69513             Paul Eggert  <eggert@cs.ucla.edu>
69514
69515         Sync from cvs.
69516         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69517
69518 2005-05-31  Derek Price  <derek@ximbiot.com>
69519             Paul Eggert  <eggert@cs.ucla.edu>
69520
69521         Sync from cvs.
69522         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
69523
69524 2005-05-29  Derek Price  <derek@ximbiot.com>
69525
69526         * config/srclist.txt (glob_.h, glob.c): Add these files.
69527
69528 2005-05-29  Derek Price  <derek@ximbiot.com>
69529
69530         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
69531         * modules/glob: New file.
69532         * modules/getlogin_r: Add link to POSIX spec in description.
69533
69534 2005-05-29  Derek Price  <derek@ximbiot.com>
69535             Paul Eggert  <eggert@cs.ucla.edu>
69536
69537         * m4/glob.m4: New file.
69538
69539 2005-05-29  Derek Price  <derek@ximbiot.com>
69540             Paul Eggert  <eggert@cs.ucla.edu>
69541
69542         * lib/glob_.h, lib/glob.c: New files.
69543
69544 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69545
69546         * modules/fts (Files): Remove m4/inttypes-pri.m4.
69547         * modules/fts-lgpl (Depends-on): Remove gettext.
69548
69549 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
69552         and don't require gt_INTTYPES_PRI.
69553
69554 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
69557
69558         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
69559         the configuration hassle isn't worth it.
69560         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
69561         (LONGEST_MODIFIER, PRIuMAX): Remove.
69562
69563 2005-05-27  Bruno Haible  <bruno@clisp.org>
69564
69565         * lib/getlogin_r.h: Remove second include of <stddef.h>.
69566
69567 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
69568
69569         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
69570         _POSIX_PTHREAD_SEMANTICS for Solaris.
69571
69572 2005-05-25  Derek Price  <derek@ximbiot.com>
69573
69574         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
69575
69576 2005-05-25  Derek Price  <derek@ximbiot.com>
69577             Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * modules/getlogin_r, m4/getlogin_r.m4: New files.
69580         * lib/getlogin_r.c, getlogin_r.h: New files.
69581
69582 2005-05-25  Bruno Haible  <bruno@clisp.org>
69583             Derek Price  <derek@ximbiot.com>
69584
69585         * lib/getlogin_r.h: Simplify API documentation.
69586
69587 2005-05-23  Derek Price  <derek@ximbiot.com>
69588
69589         * modules/minmax (Files): Add m4/minmax.m4.
69590         (configure.ac): Add gl_MINMAX.
69591
69592 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69593
69594         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
69595         so that unistd-safer.h (GPL'ed code) need not be included.
69596
69597 2005-05-22  Bruno Haible  <bruno@clisp.org>
69598
69599         * m4/minmax.m4: New file.
69600         Based on a patch by Derek Price <derek@ximbiot.com>.
69601
69602 2005-05-22  Bruno Haible  <bruno@clisp.org>
69603
69604         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
69605         (INT64_MIN): Fix definition.
69606         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
69607
69608         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
69609         NEED_SIGNED_INT_TYPES.
69610
69611         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
69612         HAVE_SYSTEM_INTTYPES.
69613
69614 2005-05-22  Bruno Haible  <bruno@clisp.org>
69615
69616         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
69617         Also include <sys/param.h> if it defines MIN, MAX.
69618         Based on a patch by Derek Price <derek@ximbiot.com>.
69619
69620 2005-05-21  Jim Meyering  <jim@meyering.net>
69621
69622         * modules/fts (Files): Add m4/inttypes-pri.m4.
69623         (Depends-on): Add lstat and remove gettext.  Alphabetize.
69624
69625 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69626
69627         New fts module.
69628         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
69629         (setup_dir, free_dir): New functions.
69630         (enter_dir, leave_dir): Define trivial
69631         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
69632         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
69633         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
69634         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
69635         Move to fts-cycle.c.
69636         (fts_open): Use setup_dir.
69637         (fts_close): Use free_dir.
69638         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
69639         This adds a label and some gotos, but the alternatives were messier.
69640         Check for memory allocation failure when entering a dir.
69641         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
69642         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
69643         (FTS): New member fts_cycle, that is a union that contains the
69644         old active_dir_ht and cycle_state.  All uses changed to mention
69645         fts_cycle.ht and fts_cycle.state.
69646         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
69647         fts.c, with the following changes:
69648         (setup_dir, free_dir): New functions.
69649         (enter_dir): Now returns bool.  Return true if successful, false
69650         if memory exhausted.  All callers changed.
69651         Do not bother partly cleaning up on
69652         memory allocation failure; that is free_dir's job.
69653         However, free ad if hash_insert fails, to avoid memory leak.
69654         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
69655         fts->fts_options to see which union member to use.
69656
69657 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69658
69659         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
69660         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
69661
69662 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69663
69664         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
69665
69666 2005-05-20  Jim Meyering  <jim@meyering.net>
69667
69668         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
69669         Now a macro, to pacify GCC.
69670
69671 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69672
69673         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
69674         of -1.
69675
69676 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
69677
69678         * lib/chown.c (rpl_chown): Return -1 on failure.
69679
69680 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69681
69682         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
69683         Don't check for stddef.h.
69684         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
69685         don't use its results.
69686         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
69687         since we include them unconditionally.  Don't require
69688         AM_STDBOOL_H, since stdbool is a prerequisite.
69689         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
69690         since we assume C89 or better.
69691         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
69692         as we don't use their results.
69693         Don't check for fchdir, memmove, memset, strrchr, as we use
69694         them unconditionally.
69695         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
69696         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
69697
69698 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
69699
69700         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
69701         Include <stddef.h> unconditionally, since we assume C89 now.
69702         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
69703         * lib/fts.c: Include fts_.h first, to check interface.
69704         Do not include intprops.h; no longer needed.
69705         Include cycle-check.h and hash.h, since fts_.h no longer does.
69706         Remove unnecessary casts of closedir to void.
69707         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
69708         decide whether to decrement nlinks.
69709         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
69710         (FTS): Use struct hash_table * instead of Hash_table, so that
69711         we no longer need to include hash.h here.
69712
69713 2005-05-18  Jim Meyering  <jim@meyering.net>
69714
69715         * modules/dirfd (License): Change to LGPL.  Most of the code
69716         is already in the public domain.
69717
69718 2005-05-18  Jim Meyering  <jim@meyering.net>
69719
69720         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
69721         Reported by Yoann Vandoorselaere.
69722
69723 2005-05-17  Jim Meyering  <jim@meyering.net>
69724
69725         * m4/fts.m4: New file, from coreutils.
69726
69727 2005-05-17  Jim Meyering  <jim@meyering.net>
69728
69729         * lib/fts.c, lib/fts_.h: New files, from coreutils.
69730
69731 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69732
69733         Sync from coreutils.
69734         * m4/unlinkdir.m4: New file.
69735
69736 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69737
69738         Sync from coreutils.
69739         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
69740         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
69741         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
69742         White space changes only.
69743         * lib/makepath.c (make_path): Port to hosts where leading "//" is
69744         special.
69745         * lib/yesno.c: Include getline.h, not ctype.h.
69746         (yesno): Don't remove leading white space; POSIX doesn't allow it.
69747         Use getline to remove arbitrary restriction on response length.
69748
69749 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         * config/srclist-update: Spell out "Street" in FSF postal
69752         mail address; this is the style the FSF seems to prefer.
69753
69754         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
69755         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
69756         this updates FSF postal mail address.
69757
69758         Sync from coreutils.
69759         * modules/unlinkdir: New file.
69760         * modules/yesno (Depends-on): Add getline.
69761         * MODULES.html.sh (File system functions): Add unlinkdir.
69762
69763 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69764
69765         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
69766         lib/strsep.h:
69767         Change the initial comment to refer to GPL, not LGPL.
69768         gnulib-tool will change it to LGPL as needed.
69769
69770         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
69771         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
69772         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
69773         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
69774         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
69775         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
69776         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
69777         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
69778         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
69779         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
69780         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
69781         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
69782         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
69783         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
69784         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
69785         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
69786         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
69787         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
69788         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
69789         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
69790         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
69791         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
69792         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
69793         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
69794         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
69795         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
69796         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
69797         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
69798         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
69799         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
69800         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
69801         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
69802         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
69803         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
69804         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
69805         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
69806         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
69807         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
69808         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
69809         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
69810         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
69811         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
69812         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
69813         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
69814         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
69815         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
69816         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
69817         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
69818         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
69819         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
69820         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69821         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
69822         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
69823         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
69824         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
69825         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
69826         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
69827         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
69828         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
69829         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
69830         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
69831         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
69832         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
69833         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
69834         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
69835         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
69836         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
69837         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
69838         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
69839         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
69840         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
69841         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
69842         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
69843         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
69844         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
69845         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
69846         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
69847         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
69848         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
69849         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
69850         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
69851         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
69852         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
69853         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
69854         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
69855         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
69856         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
69857         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
69858         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
69859         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
69860         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
69861         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
69862         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
69863         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
69864         lib/yesno.c, lib/yesno.h:
69865         Update FSF postal mail address.
69866
69867 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69868
69869         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
69870         tests/test-memmem.c, tests/test-stpncpy.c:
69871         Update FSF postal mail address.
69872
69873 2005-05-13  Bruno Haible  <bruno@clisp.org>
69874
69875         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
69876         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
69877         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
69878         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
69879         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
69880         Add support for 64-bit integers in the MSVC compiler.
69881
69882 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69883
69884         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
69885
69886 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
69887
69888         * gnulib-tool (func_import): Sort and uniquify recommended includes.
69889
69890 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
69891
69892         * doc/getdate.texi (General date syntax): Don't say that date
69893         date --iso-8601=ns generates acceptable dates; it doesn't yet.
69894         Problem reported by Nic Ferrier.
69895
69896 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69897
69898         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
69899         specified in ai_socktype. Fix invalid ai_protocol
69900         check. ai_protocol is usually set to 0 or depending on
69901         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
69902         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
69903         ai_socktype / ai_protocol in the returned addrinfo structure.
69904
69905 2005-05-10  Simon Josefsson  <jas@extundo.com>
69906
69907         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
69908         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69909
69910 2005-05-10  Karl Berry  <karl@gnu.org>
69911
69912         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
69913         (from http://www.gnu.org/licenses).
69914         * doc/COPYING.LIB: also rename to COPYING.LESSER.
69915         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
69916         fdl.texi suffices.
69917
69918 2005-05-10  Karl Berry  <karl@gnu.org>
69919
69920         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
69921         (COPYING.DOC): remove.
69922
69923         * config/srclist-update: new FSF address.
69924
69925 2005-05-10  Derek Price  <derek@ximbiot.com>
69926
69927         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
69928         possible.
69929
69930 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69931             Bruno Haible  <bruno@clisp.org>
69932
69933         * modules/inet_ntop: New file.
69934         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69935         inet_ntop.
69936
69937 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69938             Bruno Haible  <bruno@clisp.org>
69939
69940         * m4/inet_ntop.m4: New file.
69941
69942 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69943             Bruno Haible  <bruno@clisp.org>
69944
69945         * lib/inet_ntop.h: New file.
69946         * lib/inet_ntop.c: New file, from glibc with modifications.
69947
69948 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
69949
69950         * modules/time_r (License): Change to LGPL.
69951         * modules/extensions (License): Change to LGPL.  Actually,
69952         the license is more permissive than that, but currently gnulib-tool
69953         doesn't know how to handle more-permissive licenses.
69954
69955         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
69956         Problem reported by Dave Love.
69957
69958 2005-05-08  Jim Meyering  <jim@meyering.net>
69959
69960         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
69961         blank.
69962
69963 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
69964
69965         * modules/argmatch (Depends-on): Add stdbool.
69966         * modules/backupfile (Depends-on): Likewise.
69967         * modules/chdir-long (Depends-on): Likewise.
69968         * modules/closeout (Depends-on): Likewise.
69969         * modules/cycle-check (Depends-on): Likewise.
69970         * modules/dirname (Depends-on): Likewise.
69971         * modules/fnmatch (Depends-on): Likewise.
69972         * modules/fsusage (Depends-on): Likewise.
69973         * modules/fwriteerror (Depends-on): Likewise.
69974         * modules/getcwd (Depends-on): Likewise.
69975         * modules/getloadavg (Depends-on): Likewise.
69976         * modules/hard-locale (Depends-on): Likewise.
69977         * modules/makepath (Depends-on): Likewise.
69978         * modules/mountlist (Depends-on): Likewise.
69979         * modules/nanosleep (Depends-on): Likewise.
69980         * modules/posixtm (Depends-on): Likewise.
69981         * modules/quotearg (Depends-on): Likewise.
69982         * modules/readtokens (Depends-on): Likewise.
69983         * modules/readtokens0 (Depends-on): Likewise.
69984         * modules/readutmp (Depends-on): Likewise.
69985         * modules/save-cwd (Depends-on): Likewise.
69986         * modules/strftime (Depends-on): Likewise.
69987         * modules/userspec (Depends-on): Likewise.
69988         * modules/utimecmp (Depends-on): Likewise.
69989         * modules/xgetcwd (Depends-on): Likewise.
69990         * modules/xnanosleep (Depends-on): Likewise.
69991         * modules/xstrtod (Depends-on): Likewise.
69992         * modules/yesno (Depends-on): Likewise.
69993
69994 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
69995
69996         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
69997         needless checks.
69998
69999 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70000
70001         Merge from coreutils.  Among other things,
70002         add bulletproofing for cases where stdin, stdout, or stderr are closed.
70003         * lib/fd-safer.c: New file.
70004         * lib/fcntl-safer.h, open-safer.c: Remove.
70005         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
70006         * lib/dup-safer.c: Include unistd-safer.h first.
70007         Don't include errno.h.
70008         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
70009         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
70010         * lib/file-type.c: Rely on file-type.h change.
70011         * lib/getloadavg.c: Include unistd-safer.h.
70012         (getloadavg): Use safer open.
70013         * lib/getusershell.c: Include "stdio-safer.h".
70014         (getusershell): Use safer fopen.
70015         * lib/long-options.c (long_options): Use NULL rather than 0.
70016         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
70017         'free'.
70018         * lib/modechange.c: Likewise.
70019         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
70020         (MODE_DONE): New constant.
70021         (struct mode_change): Remove 'next' member.
70022         (make_node_op_equals): New function; like the old one of the
70023         same name, except it allocates an array.
70024         (mode_compile, mode_create_from_ref): Use it.
70025         (mode_compile): Allocate result as an array, not a linked list.
70026         Parse octal string ourself, so that we catch mistakes like "+0".
70027         (mode_adjust): Arg is an array, not a linked list.
70028         * lib/modechange.c: Include stat-macros.h, xalloc.h.
70029         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
70030         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
70031         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
70032         Remove.  This is now stat-macros.h's job.
70033         (talloc): Remove.  All callers replaced by xalloc, so that
70034         our invokers don't have to worry about reporting memory failures.
70035         (make_node_op_equals): Remove.
70036         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70037         New constants.
70038         (struct mode_change): Moved here from modechange.h.
70039         (mode_append_entry): Remove.
70040         (mode_compile): Remove MASKED_OPS arg, since it encouraged
70041         apps to have incorrect behavior.  Use simpler algorithm for head
70042         and tail.  Don't futz with umask; that's now the job of mode_adjust.
70043         Detect more invalid usages rather than having somewhat-random behavior.
70044         Don't insert an "a=" action, as that leads to incorrect behavior.
70045         (mode_compile, mode_create_from_ref): Return NULL on error instead
70046         of an enum, since now there's only one way to have an error.  All
70047         callers changed.
70048         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
70049         at the correct time.  Simplify calculation of "+u" and its ilk.
70050         Don't mishandle "+X".
70051         (mode_free): Remove "register" and localize decls.
70052         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
70053         (struct mode_change): Move to modechange.c; callers don't
70054         need to see this stuff.
70055         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
70056         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
70057         (mode_change, mode_adjust): Reflect the new signatures noted above.
70058         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
70059         that might redefine system include files.
70060         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
70061         (my_usleep): Use NULL rather than (void *) 0.
70062         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
70063         Use siginterrupt to specify that system calls should be interrupted.
70064         (rpl_nanosleep): Move initialization of suspended closer to call of
70065         my_usleep.
70066         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
70067         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
70068         (desirable_utmp_entry): New function.
70069         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
70070         using x2nrealloc, to simplify logic.
70071         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
70072         size calculation.  Do not assume utmp file is a regular file.
70073         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
70074         (READ_UTMP_CHECK_PIDS): New constant.
70075         * lib/save-cwd.c: Include unistd-safer.h.
70076         (save_cwd): Use fd_safer.
70077         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
70078         [!_LIBC] Include "stat-macros.h" instead.
70079         * lib/unistd-safer.h (fd_safer): New decl.
70080
70081 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70082
70083         * modules/getloadavg (Depends-on): Add unistd-safer.
70084         * modules/getusershell (Depends-on): Add stdio-safer.
70085         * modules/lstat (Depends-on): Remove xalloc.
70086         * modules/mkstemp (Depends-on): Add stat-macros.
70087         * modules/modechange (Depends-on): Remove xstrtol.
70088         Add stat-macros, xalloc.
70089         * modules/save-cwd (Depends-on): Add unistd-safer.
70090         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
70091         * modules/unistd-safer (Files): Add lib/fd-safer.c
70092         (Makefile.am): Remove lib_SOURCES.
70093
70094         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
70095         Remove fcntl-safer; unistd-safer supersedes it.
70096
70097 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
70100         AC_HEADER_STAT.
70101         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
70102         (gl_PREREQ_CHOWN): Remove.
70103         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
70104         it.  Don't require AC_HEADER_STAT.
70105         (gl_PREREQ_LSTAT): Remove.
70106         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
70107         Don't require AC_HEADER_STAT.
70108         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
70109         (gl_PREREQ_RMDIR): Remove.
70110         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
70111         mention stat-macros.h or AC_HEADER_STAT, since we'll make
70112         the stat-macros module a prerequisite.
70113         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
70114         * m4/filemode.m4 (gl_FILEMODE): Likewise.
70115         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
70116         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
70117         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
70118         variable names.
70119         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
70120         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
70121         variable prefixes.
70122         * m4/fcntl-safer.m4: Remove.
70123         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
70124         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
70125         Invoke gl_PREREQ_FD_SAFER.
70126         (gl_PREREQ_FD_SAFER): New macro.
70127         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
70128         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
70129         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
70130         Remove duplicate call to AC_LIBOBJ(readutmp).
70131         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
70132
70133         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
70134         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
70135
70136 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
70137
70138         * MODULES.html.sh (Misc): Add byteswap.
70139
70140 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70141
70142         * modules/getcwd (Depends-on): Add extensions.
70143         * modules/openat (Depends-on): Likewise.
70144
70145 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70146
70147         * modules/byteswap: New file.
70148
70149 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70150
70151         * m4/byteswap.m4: New file.
70152
70153 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
70154
70155         * lib/byteswap_.h: New file.
70156
70157 2005-04-25  Karl Berry  <karl@gnu.org>
70158
70159         * m4/gettext.m4: Update from GNU gettext 0.14.4.
70160
70161 2005-04-25  Albert Chin  <china@thewrittenword.com>
70162
70163         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
70164         Toolkit C bug.
70165
70166 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
70167
70168         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
70169         (func_ln_if_changed): Remove forcibly for no error message
70170         in case file does not exist.
70171
70172 2005-04-19  Simon Josefsson  <jas@extundo.com>
70173
70174         * gnulib-tool (Options): Make --symlink mean --symbolic.
70175
70176 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
70177
70178         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
70179
70180 2005-04-16  Simon Josefsson  <jas@extundo.com>
70181
70182         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
70183
70184 2005-04-15  Simon Josefsson  <jas@extundo.com>
70185
70186         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
70187
70188 2005-04-15  Simon Josefsson  <jas@extundo.com>
70189
70190         * gnulib-tool: Rename --symlink to --symbolic.
70191
70192 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
70193
70194         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
70195         symbolic links to files instead of copying/moving.  Add --aux-dir,
70196         specifying directory relative --dir where auxiliary build tools
70197         are placed.
70198
70199 2005-04-14  Bruno Haible  <bruno@clisp.org>
70200
70201         * modules/allocsa (License): Change to LGPL.
70202         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
70203
70204 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70205
70206         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
70207         that "UTC +1 second" continues to work.  Problem reported
70208         by Dmitry V. Levin.
70209         (relunit_snumber): New rule.
70210         (relunit): Use it.
70211
70212 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70213
70214         * lib/getdate.y (universal_time_zone_table): New constant.
70215         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
70216         universal_time_zone_table.
70217         (lookup_zone): Prefer universal_time_zone_table to
70218         local_time_zone_table, so that "GMT" time stamps are allowed in
70219         London during the summer.  Problem reported by Ian Abbott.
70220
70221 2005-04-12  Jim Meyering  <jim@meyering.net>
70222
70223         * lib/human.c (humblock): Set *options even when returning due to
70224         xstrtoumax conversion failure.  Thanks to a used-uninitialized
70225         warning from gcc-4.
70226
70227 2005-04-09  Jim Meyering  <jim@meyering.net>
70228
70229         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
70230         -Wuninitialized: initialize tm0.tm_year.
70231
70232 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70233
70234         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
70235         count, since there's no maximum.  All uses changed.
70236         Add member dsts_seen.
70237         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
70238         not being INT_MAX.
70239         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
70240         Use pc_rels_seen to decide whther a date is absolute.
70241
70242         * lib/getdate.y (number): Don't overwrite year.
70243         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
70244         check.
70245
70246 2005-04-02  Simon Josefsson  <jas@extundo.com>
70247
70248         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
70249         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
70250
70251 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
70252
70253         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
70254         where no absolute path name can be longer than PATH_MAX.
70255
70256 2005-03-27  Jim Meyering  <jim@meyering.net>
70257
70258         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
70259
70260 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
70261
70262         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
70263         "one's complement" -> "ones' complement" in comment, as per Knuth.
70264         "value of type" -> "type or expression" in comment.
70265         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
70266
70267 2005-03-26  Jim Meyering  <jim@meyering.net>
70268
70269         Comment nits.
70270         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
70271         Correct typos: s/or/of/.
70272
70273 2005-03-26  Jim Meyering  <jim@meyering.net>
70274
70275         * modules/check-include-files: Move to ../ and rename to...
70276         * check-module: ...this.
70277
70278 2005-03-25  Jim Meyering  <jim@meyering.net>
70279
70280         * modules/xvasprintf (Files): Add xalloc.h.
70281
70282 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70283
70284         * modules/gettext (Files): config/config.rpath ->
70285         build-aux/config.rpath
70286         * modules/iconv (Files): Likewise.
70287         Problem reported by Oskar Liljeblad.
70288
70289 2005-03-23  Jim Meyering  <jim@meyering.net>
70290
70291         * modules/check-include-files: New script to check for
70292         missing dependencies, multiple includes, etc.
70293
70294         * modules/c-strtold (Depends-on): Add xalloc.
70295         * modules/c-strtod (Depends-on): Add xalloc.
70296         * modules/hash (Depends-on): Add xalloc.
70297         (Files): Remove lib/xalloc.h.
70298
70299         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
70300         * modules/userspec (Files): Add lib/inttostr.h.
70301
70302 2005-03-23  Jim Meyering  <jim@meyering.net>
70303
70304         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
70305
70306 2005-03-22  Jim Meyering  <jim@meyering.net>
70307
70308         * modules/stat-macros: New module.
70309         * modules/canonicalize, modules/euidaccess, modules/file-type,
70310         * modules/filemode, modules/lchown, modules/makepath,
70311         * modules/rmdir, modules/stat: Depend on new stat-macros module
70312         rather than listing lib/stat-macros.h manually.
70313         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
70314
70315 2005-03-22  Jim Meyering  <jim@meyering.net>
70316
70317         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
70318
70319 2005-03-22  Bruno Haible  <bruno@clisp.org>
70320
70321         * config/srclist.txt: Replace target directory 'config' with
70322         'build-aux'.
70323         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
70324         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
70325         ../build-aux/.
70326
70327 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
70328
70329         * modules/chdir-long (Depends-on): Add mempcpy.
70330
70331         * modules/acl, modules/backupfile, modules/c-strtod,
70332         modules/c-strtold, modules/canon-host, modules/canonicalize,
70333         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
70334         modules/exclude, modules/exitfail, modules/file-type,
70335         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
70336         modules/getdate, modules/getline, modules/getpagesize,
70337         modules/getpass, modules/getugroups, modules/group-member,
70338         modules/hard-locale, modules/hash, modules/human, modules/idcache,
70339         modules/inttostr, modules/long-options, modules/makepath,
70340         modules/md5, modules/memcasecmp, modules/memcoll,
70341         modules/modechange, modules/mountlist, modules/path-concat,
70342         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
70343         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
70344         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
70345         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
70346         modules/strftime, modules/strndup, modules/strverscmp,
70347         modules/timespec, modules/unlocked-io, modules/userspec,
70348         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
70349         modules/yesno:
70350         Remove lib_SOURCES line from Makefile.am section, as this is now
70351         done automatically by the corresponding Autoconf macro.
70352
70353 2005-03-21  Jim Meyering  <jim@meyering.net>
70354
70355         Changes imported from coreutils.
70356
70357         * lib/cycle-check.c: Don't include xalloc.h.
70358
70359         * lib/path-concat.c: Don't include assert.h.
70360         (path_concat): Remove assertion that would have triggered
70361         for ABASE starting with more than one slash.
70362         Reported by Andreas Schwab.
70363
70364         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
70365         properly when ABASE is an absolute file name.
70366         Correct the description of this function.
70367         Include <assert.h>.
70368         Add an assertion and a test driver.
70369         This fixes a bug introduced on 2004-07-02.
70370         Andreas Schwab reported the resulting failure of cp --parents:
70371         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
70372
70373 2005-03-21  Jim Meyering  <jim@meyering.net>
70374
70375         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
70376         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
70377
70378 2005-03-21  Jim Meyering  <jim@meyering.net>
70379         and  Paul Eggert  <eggert@cs.ucla.edu>
70380
70381         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
70382         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
70383         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
70384         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
70385         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
70386         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
70387         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
70388         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
70389         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
70390         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
70391         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
70392         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
70393         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
70394         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
70395         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
70396         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
70397         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
70398         for these modules.
70399
70400 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
70401
70402         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
70403         (which shouldn't happen), generate nothing instead of returning 0
70404         immediately, so that nstrftime (NULL, ...) doesn't return 0.
70405
70406 2005-03-16  Bruno Haible  <bruno@clisp.org>
70407
70408         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
70409         HAVE_LONGLONG_64BIT.
70410
70411 2005-03-16  Bruno Haible  <bruno@clisp.org>
70412
70413         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
70414         HAVE_LONGLONG_64BIT.
70415
70416 2005-03-16  Bruno Haible  <bruno@clisp.org>
70417
70418         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
70419         HAVE_LONGLONG_64BIT.
70420
70421 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70422
70423         * lib/strftime.c (my_strftime): Prepend space to format so that we can
70424         reliably distinguish strftime failure from empty output on POSIX
70425         hosts.
70426
70427 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
70428
70429         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
70430         (iconv_string): Don't guess a size-zero buffer, as that might cause
70431         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
70432         result would be 'too large', where 'too large' is (heuristically)
70433         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
70434         overflow concerns.  This will prevent some unwanted malloc failures
70435         when the inputs are very large.
70436
70437 2005-03-15  Karl Berry  <karl@gnu.org>
70438
70439         * config/srclist.txt (config.rpath): from gettext.
70440         * config/config.rpath: update.
70441
70442 2005-03-15  Bruno Haible  <bruno@clisp.org>
70443
70444         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
70445         to 'negate'.
70446
70447         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
70448         variable.
70449
70450         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
70451         results.
70452
70453 2005-03-14  Simon Josefsson  <jas@extundo.com>
70454
70455         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
70456         <fx@gnu.org>.
70457
70458 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
70459
70460         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
70461         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
70462         intprops.h.
70463         * lib/strtol.c: Likewise.
70464
70465 2005-03-14  Jim Meyering  <jim@meyering.net>
70466
70467         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
70468         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
70469         to be nonzero so that we (and caller) can detect the difference
70470         between a valid zero-length expansion and an error return, even
70471         when the underlying strftime fails before writing anything into
70472         that location.
70473
70474 2005-03-14  Bruno Haible  <bruno@clisp.org>
70475
70476         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
70477         Update from GNU gettext 0.14.3.
70478
70479 2005-03-10  Jim Meyering  <jim@meyering.net>
70480
70481         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
70482
70483 2005-03-10  Jim Meyering  <jim@meyering.net>
70484
70485         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
70486         so that this module works on systems without fchdir.
70487
70488 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         Factor int-properties macros into a single file, except for
70491         glibc-related files.
70492         * lib/intprops.h: New file.
70493         * lib/getloadavg.c: Include it instead of limits.h.
70494         (INT_STRLEN_BOUND): Remove.
70495         * lib/human.c: Include intprops.h.
70496         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
70497         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
70498         302/1000.
70499         * lib/inttostr.h: Include intprops.h instead of limits.h.
70500         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
70501         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
70502         for consistency with intprops.h.
70503         (time_t_is_integer, twos_complement_arithmetic): Use them.
70504         * lib/sig2str.h: Include <signal.h>, intprops.h.
70505         (INT_STRLEN_BOUND): Remove.
70506         * lib/strftime.c (TYPE_SIGNED): Remove.
70507         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
70508         * lib/strtol.c: Adjust comments to match intprops.h.
70509         * lib/userspec.c: Include intprops.h.
70510         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
70511         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
70512         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
70513         instead of rolling our own expressions.
70514         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
70515
70516         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
70517         instead of int.
70518         (my_strftime): Do not mishandle years close to INT_MAX, by doing
70519         the right thing even if adding 1900 would overflow.  Similarly
70520         for tm_mon + 1 and tm_yday + 1.
70521         Make %Y always equivalent to %C%y, and similarly for %G and %g.
70522         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
70523         (DO_SIGNED_NUMBER): New macro.
70524         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
70525
70526 2005-03-07  Bruno Haible  <bruno@clisp.org>
70527
70528         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
70529
70530 2005-03-07  Bruno Haible  <bruno@clisp.org>
70531
70532         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
70533
70534 2005-03-04  Derek R. Price  <derek@ximbiot.com>
70535
70536         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
70537         (func_import): Only replace files via --import when they have actually
70538         changed.
70539
70540 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70541
70542         * m4/mmap-anon.m4: New file.
70543         * m4/pagealign_alloc.m4: New file.
70544
70545 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70546             Bruno Haible  <bruno@clisp.org>
70547
70548         * modules/pagealign_alloc: New file.
70549         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
70550
70551 2005-03-03  Derek R. Price  <derek@ximbiot.com>
70552             Bruno Haible  <bruno@clisp.org>
70553
70554         * lib/pagealign_alloc.h: New file.
70555         * lib/pagealign_alloc.c: New file.
70556
70557 2005-03-03  Bruno Haible  <bruno@clisp.org>
70558
70559         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
70560         Use an all-permissive copyright notice, recommended by RMS.
70561
70562 2005-03-02  Bruno Haible  <bruno@clisp.org>
70563
70564         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
70565         of AIX, the replacement has to be done only after <string.h> is
70566         included, therefore not in config.h. stpncpy.h does the replacement,
70567         and stpncpy.c uses it.
70568
70569 2005-03-02  Bruno Haible  <bruno@clisp.org>
70570
70571         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
70572         stpncpy.c uses it.
70573
70574 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70575
70576         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
70577         The workaround isn't strictly needed for POSIX conformance, and
70578         it's too much of a pain to configure and maintain.  We'll ask
70579         people to fix their kernels instead.
70580         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
70581         (NANOSLEEP_BUG_WORKAROUND): Remove.
70582         (xnanosleep): Remove the workaround.
70583
70584 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70585
70586         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
70587         Reported by Derek Price.
70588         (Include): Add "timespec.h".
70589
70590         * modules/xnanosleep (Depends-on): Remove gethrxtime.
70591
70592 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70593
70594         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
70595         to detect nanosleep bug.
70596
70597 2005-03-01  Bruno Haible  <bruno@clisp.org>
70598
70599         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
70600
70601 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70602
70603         * modules/gethrxtime: New file.
70604         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
70605         (Depends-on): Add gethrxtime.
70606         (configure.ac): Add gl_XNANOSLEEP.
70607         (Makefile.am): Remove lib_SOURCES line.
70608
70609 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70610
70611         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
70612         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
70613
70614 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70615
70616         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
70617         * lib/timespec.h (gettime): Return void, since it always
70618         succeeds now.  All uses changed.
70619         * lib/gettime.c (gettime): Likewise.
70620         [HAVE_NANOTIME]: Prefer nanotime.
70621         Assume gettimeofday succeeds, as POSIX requires.
70622         Assime time () succeeds, since other code already does.
70623         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
70624         (timespec_subtract): Remove.
70625         (NANOSLEEP_BUG_WORKAROUND): New constant.
70626         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
70627         things considerably.  Use it only on GNU/Linux hosts, since the
70628         workaround shouldn't be needed elsewhere.
70629
70630 2005-02-24  Bruno Haible  <bruno@clisp.org>
70631
70632         * modules/gettext (Files): Add m4/glibc2.m4.
70633
70634 2005-02-24  Bruno Haible  <bruno@clisp.org>
70635
70636         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
70637         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
70638         * m4/progtest.m4:
70639         Update from GNU gettext 0.14.2.
70640         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
70641
70642 2005-02-24  Bruno Haible  <bruno@clisp.org>
70643
70644         * lib/localcharset.c: Update from GNU gettext 0.14.2.
70645         * lib/config.charset: Update from GNU gettext 0.14.2.
70646
70647 2005-02-24  Bruno Haible  <bruno@clisp.org>
70648
70649         * lib/gettext.h: Update from GNU gettext 0.14.2.
70650
70651 2005-02-23  Simon Josefsson  <jas@extundo.com>
70652
70653         * m4/iconvme.m4: New file.
70654
70655 2005-02-23  Jim Meyering  <jim@meyering.net>
70656
70657         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
70658         change.
70659         Thanks to Bruno Haible for catching it.
70660
70661 2005-02-22  Simon Josefsson  <jas@extundo.com>
70662
70663         * modules/iconvme: New file.
70664
70665         * MODULES.html.sh: Add iconvme.
70666
70667 2005-02-22  Simon Josefsson  <jas@extundo.com>
70668
70669         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
70670
70671 2005-02-22  Simon Josefsson  <jas@extundo.com>
70672
70673         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
70674
70675 2005-02-22  Jim Meyering  <jim@meyering.net>
70676
70677         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
70678         s/ifndef/ifdef/.
70679
70680 2005-02-20  Neil Conway  <neilc@samurai.com>
70681
70682         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
70683         returned by OSX/Darwin if the specified buffer is not large
70684         enough for the hostname.
70685
70686 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70687
70688         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
70689         pass it to _help, otherwise the latter coredumps trying to
70690         dereference state.root_argp.
70691
70692 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70693
70694         * modules/chdir-long (Depends-on): Add memrchr.
70695         * modules/memrchr (Files): Add lib/memrchr.h.
70696         (Include): "memrchr.h".
70697
70698 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70699
70700         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
70701
70702 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70703
70704         * lib/memrchr.h: New file.
70705         * lib/chdir-long.c: Include it.
70706         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
70707         Don't bother including stddef.h.
70708
70709 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70710
70711         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
70712         inclusion.
70713         Include <sys/types.h>, for dev_t.
70714         (ME_DUMMY, ME_REMOTE): Move from here....
70715         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
70716         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
70717         Dmitry V. Levin.
70718         Include mountlist.h first, to test the interface.
70719
70720 2005-01-29  Bruno Haible  <bruno@clisp.org>
70721
70722         * lib/progname.c (program_name): Initialize.
70723         Needed when linking statically on MacOS X.
70724
70725 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70726
70727         Sync from coreutils.
70728         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
70729         (Depends-on): Add c-strtod.
70730         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
70731
70732 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70733
70734         Sync from coreutils.
70735         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
70736
70737         Remove files that are specific to coreutils.
70738         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
70739
70740 2005-01-28  Bruno Haible  <bruno@clisp.org>
70741
70742         * modules/javacomp: New file.
70743         * MODULES.html.sh (Java): Add javacomp.
70744
70745 2005-01-28  Bruno Haible  <bruno@clisp.org>
70746
70747         * m4/javacomp.m4: New file, from GNU gettext.
70748
70749 2005-01-28  Bruno Haible  <bruno@clisp.org>
70750
70751         * lib/javacomp.sh.in: New file, from GNU gettext.
70752         * lib/javacomp.h: New file, from GNU gettext.
70753         * lib/javacomp.c: New file, from GNU gettext.
70754
70755 2005-01-26  Simon Josefsson  <jas@extundo.com>
70756
70757         * lib/gai_strerror.c: Use GPL in header.
70758
70759 2005-01-26  Bruno Haible  <bruno@clisp.org>
70760
70761         * modules/javaexec: New file.
70762         * MODULES.html.sh (Java): Add javaexec.
70763
70764 2005-01-26  Bruno Haible  <bruno@clisp.org>
70765
70766         * m4/javaexec.m4: New file, from GNU gettext.
70767
70768 2005-01-26  Bruno Haible  <bruno@clisp.org>
70769
70770         * lib/javaexec.sh.in: New file, from GNU gettext.
70771         * lib/javaexec.h: New file, from GNU gettext.
70772         * lib/javaexec.c: New file, from GNU gettext.
70773
70774 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70775
70776         * modules/lchown (Depends-on): Remove lchown.h
70777
70778 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70779
70780         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
70781         must be defined if the header file was not found, in order
70782         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
70783
70784 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70785
70786         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
70787         initializers for struct pentry_state.
70788         (__argp_error): Check return value of __asprintf
70789         (__argp_failure): Translate error message
70790
70791         * lib/argp-parse.c: Removed braces around the expansion of N_()
70792
70793 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
70796         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
70797         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
70798         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
70799         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
70800         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
70801         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
70802         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
70803         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
70804         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
70805         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
70806         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
70807         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
70808         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
70809         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
70810         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
70811         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
70812         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
70813         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
70814         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
70815         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
70816         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
70817         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
70818         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
70819         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
70820         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
70821         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
70822         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
70823         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
70824         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
70825         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
70826         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
70827         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
70828         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
70829         xstrtol.m4, xstrtoumax.m4, yesno.m4:
70830         Use an all-permissive copyright notice, recommended by RMS.
70831
70832 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
70833
70834         * modules/chdir-long (Depends-on): Remove mempcpy.
70835
70836 2005-01-21  Jim Meyering  <jim@meyering.net>
70837
70838         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
70839         same value as for Solaris 9.
70840
70841         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
70842         component length.  This included changing the parameter to be
70843         of type `char *' rather than `char const *'.
70844         * lib/chdir-long.h (chdir_long): Update prototype.
70845
70846         * lib/openat.c (fdopendir, fstatat): New functions.
70847         * lib/openat.h: Include headers required for use of DIR and struct
70848         stat.
70849         [AT_SYMLINK_NOFOLLOW]: Define.
70850         (fdopendir, fstatat): Add prototypes.
70851
70852 2005-01-21  Bruno Haible  <bruno@clisp.org>
70853
70854         * modules/classpath: New file.
70855         * MODULES.html.sh (Java): Add classpath.
70856
70857 2005-01-21  Bruno Haible  <bruno@clisp.org>
70858
70859         * lib/classpath.h: New file, from GNU gettext.
70860         * lib/classpath.c: New file, from GNU gettext.
70861
70862 2005-01-20  Simon Josefsson  <jas@extundo.com>
70863
70864         * modules/version-etc-fsf: New file.
70865
70866 2005-01-20  Simon Josefsson  <jas@extundo.com>
70867
70868         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
70869         * lib/version-etc.c: Remove version_etc_copyright.
70870         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
70871         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
70872
70873 2005-01-20  Simon Josefsson  <jas@extundo.com>
70874
70875         * lib/base64.h (isbase64): Add.
70876
70877         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
70878         using a unsigned prototype, don't inline.
70879         (base64_decode): Use it.
70880
70881 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70882
70883         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
70884         it.
70885
70886 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70887
70888         * lib/save-cwd.c (save_cwd): Remove code to support the case
70889         where fchdir is missing or flaky.
70890
70891 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70892
70893         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
70894
70895 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
70898         AC_LIBSOURCES now does this.
70899         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
70900         with new ullong_max module.
70901
70902 2005-01-19  Bruno Haible  <bruno@clisp.org>
70903
70904         * modules/sh-quote: New file.
70905         * MODULES.html.sh (Executing programs): Add sh-quote.
70906
70907 2005-01-19  Bruno Haible  <bruno@clisp.org>
70908
70909         * lib/sh-quote.h: New file, from GNU gettext.
70910         * lib/sh-quote.c: New file, from GNU gettext.
70911
70912 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70913
70914         Merge from coreutils.
70915         * m4/ullong_max.m4: New file.
70916         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
70917         (gl_MACROS): Assume localeconv exists.
70918
70919 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70920
70921         Merge changes from coreutils, as described below in several
70922         changelogs dated today.
70923
70924         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
70925         (O_DIRECTORY): Remove; not needed here, since "." must be
70926         a directory.  All uses removed.
70927         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
70928         universal on Suns, and we also need to test for IRIX.
70929         Revamp code to use 'if' rather than '#if'.
70930         Avoid unnecessary comparison of cwd->desc to 0.
70931
70932         * lib/utimens.c (futimens): Robustify the previous patch, by checking
70933         for known valid error numbers rather than observed invalid ones.
70934
70935 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
70936
70937         * modules/ullong_max: New file.
70938
70939         * modules/chdir-long, modules/openat: New files.
70940         * modules/save-cwd (Depends-on): Depend on chdir-long.
70941         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
70942
70943 2005-01-18  Jim Meyering  <jim@meyering.net>
70944
70945         Merge from coreutils.
70946         * m4/chdir-long.m4, m4/openat.m4: New files.
70947         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
70948         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
70949         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
70950         is sane and DOES follow symlinks.  Besides, testing 20 different
70951         systems found no broken chown implementations.
70952         Prompted by a change in rsync's copy of this macro.
70953         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
70954
70955         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
70956
70957         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
70958         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
70959         NULL-means-set-to-current-time semantics.
70960         Remove temporary file immediately, rather than waiting
70961         for configure's at-exit trap code to do it.
70962
70963 2005-01-18  Jim Meyering  <jim@meyering.net>
70964
70965         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70966
70967         * lib/utimens.c (futimens): Account for the fact that futimes
70968         can also fail with errno == ENOSYS or errno == ENOENT.
70969         Patch from Dmitry V. Levin.
70970
70971         Change the name of the robust chdir function from chdir to chdir_long.
70972         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
70973         (restore_cwd): Use chdir_long, not chdir.
70974         * lib/chdir-long.c: Renamed from chdir.c.
70975         * lib/chdir-long.h: Renamed from chdir.h.
70976         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
70977         Hurd.
70978
70979 2005-01-18  Bruno Haible  <bruno@clisp.org>
70980
70981         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
70982         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
70983         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
70984         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
70985         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
70986         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
70987         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
70988         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
70989         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
70990         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
70991         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
70992         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
70993         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
70994         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
70995         Use an all-permissive copyright notice, recommended by RMS.
70996
70997 2005-01-18  Bob Proulx  <bob@proulx.com>
70998
70999         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
71000         simplify offsetof() macro construct to avoid compile failure with
71001         native HP-UX 11.0 ANSI C compiler.
71002
71003 2005-01-17  Bruno Haible  <bruno@clisp.org>
71004
71005         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
71006         redundant because stpncpy.m4 takes care of it.
71007
71008 2005-01-17  Bruno Haible  <bruno@clisp.org>
71009
71010         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
71011
71012 2005-01-17  Bruno Haible  <bruno@clisp.org>
71013
71014         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
71015         used.
71016
71017 2005-01-17  Bruno Haible  <bruno@clisp.org>
71018
71019         * lib/fwriteerror.h (fwriteerror): Change specification to include
71020         fclose.
71021         * lib/fwriteerror.c: Include <stdbool.h>.
71022         (fwriteerror): At the end, close the file stream. Record whether
71023         stdout was already closed.
71024
71025 2005-01-17  Bruno Haible  <bruno@clisp.org>
71026
71027         * lib/execute.c (environ): Declare if needed.
71028         * lib/pipe.c (environ): Likewise.
71029         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
71030
71031 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71032
71033         * modules/argp: Depend on vsnprintf
71034
71035 2005-01-10  Jim Meyering  <jim@meyering.net>
71036
71037         * modules/closeout (Depends-on): Add atexit.
71038
71039 2005-01-06  Bruno Haible  <bruno@clisp.org>
71040
71041         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
71042
71043 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71044
71045         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
71046         definitions to be after all include files, to avoid collisions.
71047         Problem reported by Bob Proulx.
71048
71049 2005-01-04  Jim Meyering  <jim@meyering.net>
71050
71051         Changes imported from coreutils.
71052         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
71053         as the mkstemp template, use a temporary directory and an
71054         8.3-friendly template to avoid trouble on systems like DJGPP.
71055         Reported by Juan M. Guerrero via Stepan Kasal.
71056         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
71057         close. Remove the temporary directory right away, rather than waiting
71058         for configure's at-exit trap code to do it.
71059         Suggestion from Stepan Kasal.
71060
71061 2005-01-01  Simon Josefsson  <jas@extundo.com>
71062
71063         * gnulib-tool: Print #include directives when --import'ing.
71064
71065 2004-12-28  Simon Josefsson  <jas@extundo.com>
71066
71067         * tests/test-base64.c: Include required header files.  Remove
71068         unused variables.
71069
71070 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71071
71072         * modules/error (Depends-on): Remove gettext.
71073
71074 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
71077         not needed.  This removes a dependency on the gettext module.
71078         [defined _LIBC]: Do not include <libintl.h>; not needed.
71079
71080 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
71083         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
71084
71085 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
71086
71087         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
71088         HAVE_DECL_STRTOLD.
71089
71090 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71091
71092         * modules/getdate (Depends-on): Remove alloca-opt.
71093
71094 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71095
71096         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
71097
71098 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71099
71100         * lib/argp-parse.c: Include <stddef.h>.
71101         (alignof, alignto): New macros.
71102         (parser_init): Don't assume that void * is aligned sufficiently
71103         for struct option.
71104
71105         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
71106         need to extend the stack.
71107         (YYINITDEPTH): New macro, so that the initial stack isn't overly
71108         large.
71109
71110 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71111
71112         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
71113
71114 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71115
71116         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
71117         (2004-10-24) change.  Apparently this was a false alarm.
71118
71119         * modules/getdate: Depend on alloca-opt, not alloca.
71120
71121 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
71122
71123         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
71124         Remove now-obsolete comment about AIX.
71125         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
71126         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
71127         (YYMAXDEPTH): New macro.
71128
71129 2004-12-18  Simon Josefsson  <jas@extundo.com>
71130
71131         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
71132
71133 2004-12-18  Bruno Haible  <bruno@clisp.org>
71134
71135         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
71136
71137 2004-12-18  Bruno Haible  <bruno@clisp.org>
71138
71139         * lib/fatal-signal.c (fatal_signals): Make non-const.
71140         (init_fatal_signals): New function.
71141         (uninstall_handlers, install_handlers): Ignore signals that were set to
71142         SIG_IGN.
71143         (at_fatal_signal): Call init_fatal_signals.
71144         (init_fatal_signal_set): Likewise. Ignore signals that were set to
71145         SIG_IGN.
71146         Reported by Paul Eggert.
71147
71148 2004-12-18  Bruno Haible  <bruno@clisp.org>
71149
71150         * doc/alloca.texi: New file.
71151         * doc/alloca-opt.texi: New file.
71152
71153 2004-12-17  Jim Meyering  <jim@meyering.net>
71154
71155         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
71156         Otherwise, install-sh could exit with improper exit status when
71157         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
71158
71159 2004-12-16  Simon Josefsson  <jas@extundo.com>
71160
71161         * tests/test-base64.c: Add license.
71162
71163 2004-12-15  Stepan Kasal  <address@hidden>
71164
71165         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
71166
71167 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71168
71169         * modules/getcwd (Files): Add m4/d-ino.m4.
71170         Suggested by Mark D. Baushke.
71171
71172 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71173
71174         * lib/getdate.y (textint): New member "negative".
71175         (time_zone_hhmm): New function.
71176         Expect 14 shift-reduce conflicts, not 13.
71177         (o_colon_minutes): New rule.
71178         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
71179         (yylex): Set the "negative" member of signed numbers.
71180
71181 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
71182
71183         * doc/getdate.texi (Time of day items, Time zone items):
71184         Describe new formats +00:00, UTC+00:00.
71185
71186 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71187
71188         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
71189         spurious "-l"s.  Problem reported by Stepan Kasal.
71190
71191 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
71192
71193         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
71194         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
71195
71196 2004-12-04  Simon Josefsson  <jas@extundo.com>
71197
71198         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
71199         Vandoorselaere <yoann@prelude-ids.org>.
71200
71201 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71202
71203         Changes imported from coreutils.
71204         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
71205         exist.
71206         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
71207
71208 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71209
71210         Changes imported from coreutils.
71211         * lib/hard-locale.c: Assume <locale.h> exists.
71212         Include "strdup.h".
71213         (GLIBC_VERSION): New macro.
71214         (hard_locale): Assume setlocale exists.
71215         Rewrite to avoid #ifdef.
71216         Use strdup rather than malloc + strcpy.
71217         * lib/human.c: Assume <locale.h> exists.
71218         (human_readable): Assume localeconv exists.
71219
71220 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * modules/hard-locale (Depends-on): Add strdup.
71223
71224 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71225
71226         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
71227         convert T2, not T.  (Imported from libc.)
71228
71229 2004-11-30  Simon Josefsson  <jas@extundo.com>
71230
71231         * modules/restrict (License): Change to LGPL.
71232
71233 2004-11-30  Simon Josefsson  <jas@extundo.com>
71234
71235         * m4/restrict.m4: Add copyright and copying conditions.
71236
71237 2004-11-30  Simon Josefsson  <jas@extundo.com>
71238
71239         * m4/base64.m4: New file.
71240
71241 2004-11-30  Simon Josefsson  <jas@extundo.com>
71242
71243         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
71244         base64.
71245
71246         * tests/test-base64.c: New file.
71247
71248         * modules/base64: New file.
71249
71250 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71251
71252         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
71253         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
71254
71255         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
71256
71257 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
71258
71259         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
71260         (__getcwd.c): Don't restore errno; glibc doesn't.
71261         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
71262         first, falling back to our code only if its results look suspicious.
71263         Ensure that the resulting buffer is only as large as necessary.
71264
71265         * lib/readutmp.c: Include readutmp.h first.
71266         Include <errno.h>, since readutmp.h no longer does that.
71267         * lib/readutmp.h: Don't include <errno.h>,
71268         <sys/param.h>, <time.h>; not needed to establish interface.
71269         (errno): Remove decl.
71270         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
71271         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
71272         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
71273
71274 2004-11-28  Simon Josefsson  <jas@extundo.com>
71275
71276         * lib/base64.h, base64.c: New file.
71277
71278 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71279
71280         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
71281
71282 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71283
71284         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
71285         (Depends-on): Remove pathmax, same.  Add mempcpy.
71286         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
71287         (Makefile.am): Append getcwd.h to lib_SOURCES.
71288         (Include): Add getcwd.h.
71289         (Maintainer): Change from Jim Meyering to "all, glibc",
71290         since getdate now uses intended-for-glibc code.
71291         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
71292         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
71293
71294 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
71297         HP's ANSI C compiler.
71298         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
71299         Declaring int functions causes warnings on some modern systems and
71300         shouldn't be needed to compile on ancient ones.
71301         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
71302         defined.
71303
71304         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
71305         with the following changes.
71306         (__set_errno): Parenthesize properly.
71307         Include <stdbool.h>.
71308         (MIN, MAX, MATCHING_INO): New macros.
71309         (__getcwd): Define with prototype, not K&R form.
71310         Use heuristics to allocate default buffer on stack if possible.
71311         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
71312         behavior, and to avoid the PATH_MAX limit when computing
71313         ../../../../...
71314         Use MATCHING_INO to compare inode number to file.
71315         Check for arithmetic overflow in size calculations.
71316         Fix bug in reallocation of dot array that caused getcwd to fail
71317         on directories nested deeper than 75.
71318         Be more careful about saving errno on error.
71319         Do not use realloc; use only free+malloc, as this is a bit
71320         more flexible and avoids a needless copy operation.
71321         Do not inspect st_dev and st_ino for symbolic links; POSIX
71322         doesn't specify the latter.
71323         Check for closedir errors.
71324         Avoid needless casts.
71325         Use "#ifdef weak_alias" around weak_alias, to be like other
71326         glibc code.
71327         The following changes to getcwd.c have effect only when used in
71328         gnulib; they have no effect inside glibc proper.
71329         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
71330         as alloca isn't used.
71331         (alloca, __alloca): Likewise.
71332         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
71333         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71334         unconditionally, as gnulib assumes C89 or better.
71335         Do not include <sys/param.h>.
71336         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
71337         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
71338         better.
71339         (NULL) [!defined NULL]: Remove; we assume C89 or better.
71340         Include <dirent.h> in a way that is compatible with modern Autoconf.
71341         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
71342         New macros, if not already defined.
71343         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
71344         Use "_LIBC", not "defined _LIBC", for consistency.
71345         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
71346         a mempcpy module.
71347         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
71348         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
71349         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
71350         credit only to Jim Meyering and adjust the copyright dates.
71351         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
71352         <stdlib.h>, <unistd.h>, "pathmax.h".
71353         Instead, include "xgetcwd.h" (first) and "getcwd.h".
71354         (INITIAL_BUFFER_SIZE): Remove.
71355         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
71356
71357 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71358
71359         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
71360         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
71361         Use the _ONCE methods, for efficiency.
71362         Check for fcntl.h.  In test program, include <errno.h>
71363         and <fcntl.h> if available.  Remove old K&R cruft from
71364         test program.  Check for common errors in GNU/Linux,
71365         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
71366         don't do AC_LIBOBJ, as that's getcwd.m4's job.
71367         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
71368         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
71369         name accordingly.
71370         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
71371         accommodate new getcwd.c.
71372         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
71373         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
71374         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
71375         that's all we need now.
71376
71377 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71378
71379         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
71380         argp-parse.c depends on getopt internals, that means we should
71381         always use our getopt, to be on the safe side.
71382         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
71383         order not to spoil the result of an eventual previous invocation
71384         of gl_GETOPT_SUBSTITUTE.
71385
71386 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
71387
71388         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
71389         redefinition warnings. To avoid them, include the defines
71390         in `#if !defined __need_getopt ... #endif'. The only place
71391         where __getopt_argv_const is used is in definitions
71392         of getopt_long and getopt_long_only below, which are as well
71393         protected by `#ifndef __need_getopt'.
71394         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
71395         __need_getopt after including <stdio.h> and <unistd.h> These
71396         headers might have defined it.
71397
71398 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
71401
71402 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
71405         (futimens): New function, which uses futimes if available.
71406         (futimens, utimens): Support timespec==NULL, with same semantics
71407         as utime and utimens.
71408         * lib/utimens.h (futimens): New decl.
71409
71410 2004-11-23  Jim Meyering  <jim@meyering.net>
71411
71412         * lib/getopt_.h: Remove trailing blanks.
71413
71414 2004-11-23  Jim Meyering  <jim@meyering.net>
71415
71416         * lib/__fpending.c: Add comment.
71417
71418 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
71419
71420         * modules/canonicalize (Depends-on): Add xreadlink.
71421         Problem reported by James Youngman.
71422
71423 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71424
71425         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
71426         New macros.
71427         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
71428         optopt): Use them instead of invoking ## directly; otherwise, the
71429         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
71430
71431 2004-11-19  Bruno Haible  <bruno@clisp.org>
71432
71433         * lib/strtok_r.c: Move comments from here...
71434         * lib/strtok_r.h: ... to here.
71435
71436 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71437
71438         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
71439         implementations that mishandle size_t overflow.
71440
71441 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
71444         might fail.  Problem reported by Yoann Vandoorselaere.
71445         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
71446         implementations that mishandle size_t overflow.
71447
71448 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71449
71450         * modules/canon-host (Depends-on): Add strdup.
71451
71452 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71453
71454         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
71455
71456 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71457
71458         * lib/canon-host.c: Include "strdup.h".
71459         (canon_host): Use getaddrinfo if available, so that IPv6 works.
71460         Use strdup instead of malloc/strcpy to duplicate strings.
71461
71462         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
71463         (human_space_before_unit): New constant.
71464         * lib/human.c (human_readable): Support it.
71465
71466         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
71467         (xgetcwd): Set errno correctly when failing.
71468         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
71469         the failure is actually due to a PATH_MAX problem.
71470
71471         Further getopt changes to make it more likely that glibc will
71472         buy the changes back.
71473         * lib/getopt.c (POSIXLY_CORRECT): New constant.
71474         (getopt): Use it, so to preserve glibc semantic
71475         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
71476         when compiling for libc.
71477         * lib/getopt_.h (__getopt_argv_const): Bring it back.
71478         (getopt_long, getopt_long_only): Use it.
71479
71480         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71481         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
71482         (getopt): Argv is now char * const *, as per standard.
71483         (_getopt_internal_r, _getopt_internal): Argv is now char **,
71484         not char *__getopt_argv_const *.
71485         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71486         _getopt_long_only_r): Likewise.
71487         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
71488         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71489         _getopt_long_r, _getopt_long_only_r): Likewise.
71490         * lib/getopt_.h (__getopt_argv_const): Remove.
71491         (getopt): Argv is now char * const *, as per standard.
71492
71493         * lib/getdate.y (tORDINAL): New token.
71494         (day, relunit): Allow it for relative times.
71495         (relative_time_table): Use tORDINAL for ordinals.
71496
71497 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71498
71499         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
71500         Document that "second" isn't allowed as an ordinal number.
71501
71502 2004-11-16  Jim Meyering  <jim@meyering.net>
71503
71504         * modules/closeout (Depends-on): Add fpending.
71505
71506 2004-11-15  Jim Meyering  <jim@meyering.net>
71507
71508         * lib/closeout.c: Include "__fpending.h" once again.
71509         Include <stdbool.h>.
71510         (close_stdout): Don't fail just because stdout was closed initially,
71511         since some programs don't write to stdout in the normal course of
71512         operation (other than --version and --help), and we don't want this
71513         function to make e.g. `touch file >&-' fail.
71514         But do fail if it was closed and someone has tried to write to it.
71515         E.g., `printf foo >&-' must fail.
71516
71517 2004-11-13  Jim Meyering  <jim@meyering.net>
71518
71519         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
71520
71521 2004-11-12  Simon Josefsson  <jas@extundo.com>
71522
71523         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
71524         small doc fix is still pending.
71525
71526 2004-11-11  Simon Josefsson  <jas@extundo.com>
71527
71528         * modules/strtok_r: New file.
71529
71530         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71531         strtok_r.
71532
71533 2004-11-11  Simon Josefsson  <jas@extundo.com>
71534
71535         * m4/strtok_r.m4: New file.
71536
71537         * m4/getopt.m4: Replace opterr.
71538
71539 2004-11-11  Simon Josefsson  <jas@extundo.com>
71540
71541         * lib/strtok_r.h, strtok_r.c: New file.
71542
71543 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71544
71545         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
71546         of replacing opterr, getopt, etc.  This should handle the
71547         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
71548
71549 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
71550
71551         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
71552         we can stop lying to compilers about the constness of argv when we
71553         are compiled outside glibc.
71554         (getopt, getopt_long, getopt_long_only): Use it.
71555         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
71556         _getopt_internal, getopt): Likewise.
71557         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
71558         _getopt_long_only_r): Likewise.
71559         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
71560         _getopt_long_r, _getopt_long_only_r): Likewise.
71561
71562         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
71563         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
71564         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
71565         the other external symbols.
71566         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
71567         declaration, since the above renaming now works around collisions.
71568
71569 2004-11-11  Jim Meyering  <jim@meyering.net>
71570
71571         * lib/linebreak.c: Remove trailing blanks.
71572         * lib/alloca_.h: Likewise.
71573         * lib/acosl.c: Likewise.
71574         * lib/euidaccess.c: Likewise.
71575         * lib/allocsa.h: Likewise.
71576
71577 2004-11-10  Simon Josefsson  <jas@extundo.com>
71578
71579         * m4/getaddrinfo.m4: New file.
71580
71581 2004-11-10  Simon Josefsson  <jas@extundo.com>
71582
71583         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
71584
71585 2004-11-10  Simon Josefsson  <jas@extundo.com>
71586
71587         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71588         getaddrinfo.
71589
71590         * modules/getaddrinfo: New file.
71591
71592 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71593
71594         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
71595
71596 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71597
71598         * lib/mktime.c (SHR): New macro, which is a portable
71599         substitute for >> that should work even on Crays.
71600         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
71601         Problem reported by Mark D. Baushke in
71602         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
71603         * lib/getdate.y (SHR): Likewise.
71604         (tm_diff): Use it.
71605         * lib/strftime.c (SHR): Likewise.
71606         (tm_diff): Use it.
71607         * lib/quotearg.c (struct quoting_options): Use unsigned int for
71608         quote_these_too, so that right shifts are well defined.  All uses
71609         changed.
71610
71611 2004-11-10  Jim Meyering  <jim@meyering.net>
71612
71613         Ensure that no close failure goes unreported.
71614         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
71615         return early when it seems there's nothing to flush.
71616         Don't include __fpending.h.
71617
71618 2004-11-10  Jim Meyering  <jim@meyering.net>
71619
71620         * modules/closeout (Depends-on): Remove fpending.
71621
71622 2004-11-10  Jim Meyering  <jim@meyering.net>
71623
71624         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
71625
71626 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
71629         gl_FUNC_STRFTIME.
71630         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
71631         and AC_REQUIRE when possible, to avoid duplicate checks.
71632         Check for <wchar.h>.
71633
71634 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71635
71636         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
71637
71638 2004-11-09  Bruno Haible  <bruno@clisp.org>
71639
71640         * m4/sockpfaf.m4: New file.
71641
71642 2004-11-05  Bruno Haible  <bruno@clisp.org>
71643
71644         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
71645         Reported by Mark D. Baushke <mdb@cvshome.org>.
71646
71647 2004-11-04  Bruno Haible  <bruno@clisp.org>
71648
71649         2004-09-11  Bruno Haible  <bruno@clisp.org>
71650                 * allocsa.valgrind: New file.
71651         2004-02-06  Bruno Haible  <bruno@clisp.org>
71652                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
71653                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
71654                 Reported by Christopher Seip <chris.seip@hp.com>.
71655
71656 2004-11-04  Bruno Haible  <bruno@clisp.org>
71657
71658         * modules/allocsa (Files): Add lib/allocsa.valgrind.
71659         (Makefile.am): Distribute it.
71660
71661 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71662
71663         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
71664         with errno == ERANGE if the buffer is too small.
71665         Problem reported by Mark D. Baushke.
71666
71667 2004-11-03  Albert Chin  <china@thewrittenword.com>
71668             Paul Eggert  <eggert@cs.ucla.edu>
71669
71670         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
71671         equivalent, substitute $ac_type for equivalent type rather than
71672         blindly using uint32_t *always* which won't work if uint32_t is not
71673         available.  Define _UINT32_T to work around typedef of uint32_t if
71674         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
71675         2.5.1.
71676
71677 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71678
71679         * m4/jm-macros.m4: Sync from coreutils.
71680         (gl_MACROS): Check for mbrlen, for pathchk.
71681         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
71682
71683 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71684
71685         * lib/xreadlink.c (MAXSIZE): New macro.
71686         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
71687         size does not exceed MAXSIZE.  Avoid cast.
71688         As suggested by Mark D. Baushke in
71689         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
71690         if readlink fails with buffer size just under MAXSIZE, try again
71691         with MAXSIZE.
71692
71693 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
71694
71695         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
71696
71697 2004-11-02  Derek R. Price  <derek@ximbiot.com>
71698         and  Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
71701         (get_date): Overparenthesize to avoid GCC warning.
71702
71703 2004-11-02  Bruno Haible  <bruno@clisp.org>
71704
71705         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
71706         returns void.
71707
71708 2004-11-02  Bruno Haible  <bruno@clisp.org>
71709
71710         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
71711         function returns void.
71712
71713 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71714
71715         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
71716         fflush_unlocked, flockfile, funlockfile, funlockfile,
71717         fputs_unlocked, putc_unlocked.
71718
71719 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
71720
71721         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71722         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
71723         already declared.
71724
71725 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71726
71727         * modules/getdate (Files): Add doc/getdate.texi.
71728         (Depends-on): Add setenv, xalloc.
71729
71730 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71731
71732         * lib/getdate.y: Add support for TZ="foo" within a date string.
71733         Fix some bugs near time_t boundaries.  Reject dates with
71734         out-of-range components, e.g., "Sept 31".
71735         Include <stdlib.h>, "setenv.h", "xalloc.h".
71736         (ISDIGIT_LOCALE): Remove; unused.
71737         Note that the TZ and time functions used here are not reentrant.
71738         (mktime_ok, get_tz): New functions.
71739         (TZBUFSIZE): New constant.
71740         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
71741         This requires that we sometimes generate our own TZ="XXX..." setting.
71742
71743 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71744
71745         * doc/getdate.texi: New file, from coreutils with modifications for
71746         the new TZ parsing.
71747
71748 2004-10-27  Derek R. Price  <derek@ximbiot.com>
71749
71750         * lib/mktime.c (not_equal_tm): Remove redundant check.
71751
71752 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         * modules/regex (lib_SOURCES): Add regex.c.
71755         Reported by James Youngman in
71756         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
71757
71758 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71759
71760         * lib/getdate.y: Use Bison 1.875 features, and some minor
71761         code cleanups.  This change does not affect semantics.
71762         Don't include <stdlib.h>; no longer needed.
71763         Don't include unlocked-io.h; only the "#if TEST" code uses
71764         stdio, and performance isn't crucial there.
71765         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
71766         Bison 1.875 features as described below.
71767         All uses of "PC." replaced by "pc->".
71768         (YYSTYPE): Add a forward declaration.
71769         (yylex, yyerror): Use full prototypes in forward decls.
71770         Use "%pure-parser" rather than obsolescent "%pure_parser".
71771         Use %parse-param and %lex-param instead of obsolescent
71772         YYPARSE_PARAM and YYLEX_PARAM.
71773         (meridian_table, month_and_day_table, time_units_table,
71774         relative_time_table, time_zone_table, military_table,
71775         lookup_zone, lookup_word, get_date):
71776         Use NULL instead of 0 where appropriate.
71777         (to_hour): Avoid abort (), to avoid a dependency on
71778         stdlib.h.
71779         (yyerror, yylex): Now accepts parser_control * arg.
71780         (main) [TEST]: Use '\0' rather than 0 for char.
71781
71782 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71783
71784         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
71785
71786 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
71787
71788         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
71789         It's now the caller's responsibility to handle the case where
71790         !HAVE_GETPAGESIZE && !defined getpagesize.
71791
71792         * lib/mktime.c (leapyear): Arg is long int, not int.
71793
71794 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
71795
71796         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
71797
71798 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71799
71800         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
71801         missing.  Problem reported by James Youngman.
71802
71803 2004-10-16  Simon Josefsson  <jas@extundo.com>
71804
71805         * gnulib-tool: Fix comments.  Fix parse problem.
71806         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
71807
71808 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
71809
71810         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
71811         implementation of getopt_long.  Problem reported by Alexander Taler in:
71812         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
71813
71814 2004-10-15  Bruno Haible  <bruno@clisp.org>
71815
71816         * gnulib-tool: Untabify. Initialize supplied_libname.
71817         (func_usage): More homogenous output.
71818         (func_modules_transitive_closure, func_modules_to_filelist,
71819         func_emit_lib_Makefile_am): New functions.
71820         (func_import): New function, extracted from big case statement. Use
71821         func_get_license, func_modules_transitive_closure,
71822         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
71823         opt_lgpl. Don't use test -a, as it's not portable.
71824         (func_create_testdir): Use func_modules_transitive_closure,
71825         func_modules_to_filelist, func_emit_lib_Makefile_am.
71826
71827 2004-10-15  Bruno Haible  <bruno@clisp.org>
71828
71829         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
71830
71831 2004-10-15  Bruno Haible  <bruno@clisp.org>
71832
71833         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
71834         the portions belonging to each module.
71835         Suggested by Derek Robert Price <derek@ximbiot.com>.
71836
71837 2004-10-12  Simon Josefsson  <jas@extundo.com>
71838
71839         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
71840         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
71841         to real functions.
71842
71843 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71844
71845         * modules/vsnprintf: New file.
71846
71847 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71848
71849         * m4/vsnprintf.m4: New file.
71850
71851 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71852
71853         * lib/vsnprintf.h: New file.
71854         * lib/vsnprintf.c: New file.
71855
71856 2004-10-11  Bruno Haible  <bruno@clisp.org>
71857
71858         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
71859         vsnprintf.
71860
71861 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71862
71863         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
71864
71865 2004-10-07  Bruno Haible  <bruno@clisp.org>
71866
71867         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
71868         fits into the provided buffer.
71869
71870 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71871
71872         * lib/diacrit.c, diacrit.h: Add GPL notice.
71873
71874         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
71875         notice.
71876         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
71877         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
71878         This avoids a potential constant-folding bug.
71879
71880 2004-10-05  Bruno Haible  <bruno@clisp.org>
71881
71882         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
71883         for the declaration of strsep.
71884
71885 2004-10-05  Bruno Haible  <bruno@clisp.org>
71886
71887         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
71888
71889 2004-10-04  Simon Josefsson  <jas@extundo.com>
71890
71891         * modules/memmem: New file.
71892         * tests/test-memmem.c: New file.
71893         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
71894
71895 2004-10-04  Simon Josefsson  <jas@extundo.com>
71896
71897         * m4/memmem.m4: New file.
71898
71899 2004-10-04  Simon Josefsson  <jas@extundo.com>
71900
71901         * lib/memmem.h: New file.
71902         * lib/memmem.c: New file, taken from glibc.
71903
71904 2004-10-04  Simon Josefsson  <jas@extundo.com>
71905
71906         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
71907         '#ifdef USE_UNLOCKED_IO'.
71908
71909 2004-10-04  Simon Josefsson  <jas@extundo.com>
71910
71911         * config/srclist.txt: Add memmem from glibc.
71912
71913 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71914
71915         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
71916
71917         * modules/argmatch, modules/argp, modules/closeout, modules/error,
71918         modules/exclude, modules/getdate, modules/getline,
71919         modules/getndelim2, modules/getpass, modules/getpass-gnu,
71920         modules/getusershell, modules/linebuffer, modules/md5,
71921         modules/mountlist, modules/posixtm, modules/readtokens,
71922         modules/readutmp, modules/regex, modules/sha1,
71923         modules/version-etc, modules/yesno:
71924         Remove dependency on unlocked-io.
71925
71926 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71927
71928         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
71929
71930         * m4/unlocked-io.m4: Add copyright notice.
71931         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
71932
71933 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71934
71935         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
71936         * lib/xmalloc.c (xmemdup): Likewise.
71937         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
71938         XFREE): Remove these long-obsolescent macros.
71939         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
71940         * lib/xstrdup.c: Remove.
71941
71942         * lib/regex.c (re_comp): Cast gettext return value to char *,
71943         Problem reported by Martin Neitzel via Mark D. Baushke.
71944
71945 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
71946
71947         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
71948         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
71949         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
71950         regex.c, sha1.c, version-etc.c, yesno.c:
71951         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
71952         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
71953         the includer's responsibility.
71954
71955         Sync from coreutils.
71956
71957         * lib/modechange.c (mode_compile): Don't decrement a pointer that
71958         points to the start of a string, as the C Standard says the
71959         resulting behavior is undefined.
71960
71961         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
71962         simple -> simple_backups, numbered_existing ->
71963         numbered_existing_backups, numbered -> numbered_backups
71964         to avoid shadowing problems.  All uses changed.
71965         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
71966         * lib/backupfile.c (check_extension, numbered_backup):
71967         Rename locals to avoid shadowing 'basename'.
71968         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
71969         once.
71970
71971         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
71972         * lib/.cvsignore: Add getopt.h.
71973
71974 2004-10-04  Bruno Haible  <bruno@clisp.org>
71975
71976         * modules/README: New file.
71977         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
71978         not a module.
71979
71980 2004-10-02  Jim Meyering  <jim@meyering.net>
71981
71982         * lib/dirfd.h, getpagesize.h: Add copyright notice.
71983
71984 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71985
71986         * modules/strsep: New file.
71987
71988 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71989
71990         * m4/strsep.m4: New file.
71991
71992 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71993
71994         * lib/strsep.h: New file.
71995         * lib/strsep.c: New file.
71996
71997 2004-10-01  Simon Josefsson  <jas@extundo.com>
71998
71999         * lib/snprintf.c (snprintf): Handle size==0.
72000
72001 2004-10-01  Simon Josefsson  <jas@extundo.com>
72002             Bruno Haible  <bruno@clisp.org>
72003
72004         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
72005         (snprintf): Declare 'args'.
72006
72007 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
72008
72009         * lib/snprintf.c: Remove comments as to why each header is needed.
72010
72011 2004-10-01  Bruno Haible  <bruno@clisp.org>
72012
72013         * MODULES.html.sh: Add strsep.
72014
72015 2004-09-30  Simon Josefsson  <jas@extundo.com>
72016
72017         * modules/snprintf: New file.
72018
72019 2004-09-30  Simon Josefsson  <jas@extundo.com>
72020
72021         * m4/snprintf.m4: New file.
72022
72023 2004-09-30  Simon Josefsson  <jas@extundo.com>
72024
72025         * lib/snprintf.h, lib/snprintf.c: New files.
72026
72027 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72028
72029         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
72030         (hol_entry_help): Never translate an empty string.
72031         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
72032         * lib/argp.h (OPTION_NO_TRANS): New option.
72033
72034 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72035
72036         * modules/argp (Maintainer): Replace Simon Josefsson
72037         by Sergey Poznyakoff.
72038
72039 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72040
72041         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
72042         changes merged back into glibc.
72043
72044 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
72045
72046         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
72047
72048 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72049
72050         * lib/xvasprintf.c: Include xalloc.h.
72051         (xvasprintf): Use xalloc_die, not xmalloc_die.
72052
72053 2004-09-29  Bruno Haible  <bruno@clisp.org>
72054
72055         * modules/alloca-opt: New file, derived from modules/alloca.
72056         * modules/allocsa: Depend on alloca-opt instead of alloca.
72057         * modules/setenv: Likewise.
72058         * modules/vasnprintf: Likewise.
72059         * MODULES.html.sh: Add alloca-opt.
72060
72061 2004-09-28  Simon Josefsson  <jas@extundo.com>
72062
72063         * gnulib-tool: New parameter --lgpl, to asseert that modules are
72064         LGPL, and to replace license template from GPL to LGPL.
72065
72066 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72067
72068         * modules/dummy: Change license to LGPL.
72069
72070 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
72071
72072         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
72073
72074 2004-09-24  Simon Josefsson  <jas@extundo.com>
72075
72076         * modules/minmax (License): Change from GPL to LGPL.
72077
72078 2004-09-23  Simon Josefsson  <jas@extundo.com>
72079
72080         * gnulib-tool (--import): Typo.
72081
72082 2004-09-23  Simon Josefsson  <jas@extundo.com>
72083
72084         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
72085
72086 2004-09-22  Bruno Haible  <bruno@clisp.org>
72087
72088         * modules/*: Add 'License' field.
72089         * gnulib-tool: Accept --extract-license option.
72090         (func_get_license): New function.
72091
72092 2004-09-21  Bruno Haible  <bruno@clisp.org>
72093
72094         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
72095         Reported by Simon Josefsson.
72096
72097 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72098
72099         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
72100         gl_AC_TYPE_LONG_LONG.
72101
72102 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72103
72104         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
72105
72106 2004-09-18  Simon Josefsson  <jas@extundo.com>
72107         and  Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
72110         calls with autoreconf.  Define GL_LIB.
72111
72112 2004-09-14  Karl Berry  <karl@gnu.org>
72113
72114         * config/srclist.txt: unsync setenv.c, sigh.
72115
72116 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72117
72118         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
72119         Problem reported by Bruno Haible in:
72120         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
72121
72122 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72123
72124         * config/srclist.txt: Comment out argp-pvh.c.
72125
72126 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
72127
72128         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
72129         in case some system header has #define'd it.  Problem reported by
72130         Soeren D. Schulze in
72131         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
72132
72133 2004-09-09  Karl Berry  <karl@gnu.org>
72134
72135         * regex.[ch]: delete from the root.  These were supposed to be
72136                 synced with emacs cvs, but this has not happened for about
72137                 a year, and anyway nothing else uses emacs regex.[ch].
72138                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
72139                 lib/regex[.ch] is untouched.
72140
72141 2004-09-09  Bruno Haible  <bruno@clisp.org>
72142
72143         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
72144
72145 2004-09-09  Bruno Haible  <bruno@clisp.org>
72146
72147         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
72148         modifications.
72149         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
72150
72151 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72152
72153         * modules/xvasprintf: New file.
72154         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
72155
72156 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
72157
72158         * lib/xvasprintf.h: New file.
72159         * lib/xvasprintf.c: New file.
72160         * lib/xasprintf.c: New file.
72161
72162 2004-09-08  Bruno Haible  <bruno@clisp.org>
72163
72164         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
72165
72166 2004-09-08  Bruno Haible  <bruno@clisp.org>
72167
72168         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
72169         length is > INT_MAX.
72170         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
72171         more.
72172
72173 2004-09-08  Bruno Haible  <bruno@clisp.org>
72174
72175         * lib/stdint_.h: New file, taken from GNU clisp.
72176
72177 2004-09-08  Bruno Haible  <bruno@clisp.org>
72178             Oskar Liljeblad  <oskar@osk.mine.nu>
72179
72180         * modules/stdint: New file.
72181         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
72182
72183 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72184
72185         Import from coreutils.
72186         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
72187         strings on unbounded length.  alloca's performance benefits aren't
72188         that important here.
72189         (V_STRDUP): Remove.
72190         (parse_with_separator): New function, with most of the internals
72191         of the old parse_user_spec.  Allow user to omit both user and group,
72192         for compatibility with FreeBSD.
72193         Clone only the user name, not the entire spec.
72194         Do not set *uid, *gid unless entirely successful.
72195         Avoid memory leak in some failing cases.
72196         Fix regression for USER.GROUP reported by Dmitry V. Levin in
72197         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
72198         (parse_user_spec): Rewrite to use parse_with_separator.
72199
72200 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72201
72202         * modules/userspec: Don't depend on alloca.
72203
72204 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72205
72206         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
72207
72208 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72209
72210         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
72211         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
72212         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
72213
72214 2004-08-16  Simon Josefsson  <jas@extundo.com>
72215
72216         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
72217         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
72218         Add --dry-run for --import.
72219         Let user provided command line parameters override configure.ac
72220         settings.
72221
72222 2004-08-12  Simon Josefsson  <jas@extundo.com>
72223
72224         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
72225         as discussed with Paul Eggert in threads rooted at
72226         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
72227         and
72228         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
72229         Before, the test was empty, and relied on ELIDE_CODE in source
72230         code.)
72231         (gl_PREREQ_GETOPT): New macro.
72232         (gl_GETOPT): Use them.
72233
72234 2004-08-12  Simon Josefsson  <jas@extundo.com>
72235
72236         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
72237         * lib/getopt_.h: Renamed from getopt.h.
72238
72239 2004-08-12  Simon Josefsson  <jas@extundo.com>
72240
72241         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
72242         Change default library name from libfoo to libgnu.
72243         Now, if you have a configure.ac that says:
72244                 gl_SOURCE_BASE(gl)
72245                 gl_M4_BASE(gl/m4)
72246                 gl_MODULES(error getopt etcetera)
72247                 gl_INIT
72248         you can import all you need by running:
72249                 ../gnulib/gnulib-tool --import
72250
72251         * modules/getopt (Files): Rename getopt.h to getopt_.h.
72252         (Makefile.am): Rewrite, use logic from argz.
72253         (Include): Use <getopt.h> instead of "getopt.h".
72254
72255 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72256
72257         * modules/argp (Files): Add m4/unlocked-io.m4.
72258         (Depends-on): Add extensions.
72259
72260 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72261
72262         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
72263         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
72264         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
72265         Check for program_invocation_name, program_invocation_short_name,
72266         flockfile, funlockfile, features.h, _getopt_long_only_r.
72267
72268 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72269
72270         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
72271         its complicated substitute.
72272         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
72273         and program_invocation_name.
72274         (__argp_basename) [!_LIBC]: Remove; the only use was
72275         replaced by its body.
72276         (__argp_short_program_name): Change condition from
72277         !defined __argp_short_program_name to
72278         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
72279         to match argp-namefrob.h.
72280         (__argp_failure): Don't assume strerror_r returns char *.
72281         * lib/argp-parse.c (N_): Define unconditionally.
72282         (argp_default_options): Fill out initializers with 0 to avoid
72283         gcc warnings.
72284
72285 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
72286
72287         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
72288         getopt1.c.
72289
72290 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72291
72292         Merge from coreutils.
72293
72294         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
72295
72296         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
72297         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
72298
72299 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72300
72301         Merge from coreutils.
72302
72303         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
72304         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
72305         for Reliant Unix 5.43.
72306
72307         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
72308         (union fooround): Use uintmax_t, not long int.
72309         The rest is a merge from libc:
72310         [defined _LIBC]: Include <shlib-compat.h>.
72311         (_obstack) [defined _LIBC]: Remove after 2.3.4.
72312
72313         * lib/settime.c (settime): Recode to avoid warning with
72314         Sun Forte C 6U2.
72315
72316         * lib/strverscmp.c: Convert to UTF-8.
72317
72318 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72319
72320         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
72321         m4/uintmax_t.m4.
72322
72323 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72324
72325         * modules/xalloc-die: New file.
72326         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
72327
72328         * modules/md5 (Files): Add m4/uint32_t.m4.
72329         * modules/sha1: Renamed from modules/sha.
72330         (Files):
72331         Rename lib/sha.h to lib/sha1.h.
72332         Rename lib/sha.c to lib/sha1.c.
72333         Rename m4/sha.m4 to m4/sha1.m4.
72334         (lib_SOURCES): Likewise.
72335         (configure.ac): Rename gl_SHA to gl_SHA1.
72336         (Include): sha.h -> sha1.h.
72337
72338 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72339
72340         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
72341         * m4/sha1.m4: Renamed from sha.m4.
72342         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
72343
72344 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72345
72346         * lib/obstack.h (obstack_empty_p):
72347         Don't assume that chunk->contents is suitably aligned.
72348         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
72349         Likewise. Problem reported by Benno in
72350         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
72351
72352         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
72353         readable.  This could be improved further but it'd take some work.
72354
72355 2004-08-08  Simon Josefsson  <jas@extundo.com>
72356
72357         * modules/xgethostname (Depends-on): Remove exit and error (not
72358         used).
72359
72360         * modules/getpass-gnu: Add getpass.h.
72361         (Depends-on): Add stdbool.
72362         * modules/getpass: Add getpass.h.
72363
72364 2004-08-08  Simon Josefsson  <jas@extundo.com>
72365
72366         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
72367         Check getpass declaration.
72368
72369 2004-08-08  Simon Josefsson  <jas@extundo.com>
72370
72371         * lib/xgethostname.c: Don't include error.h (not used).
72372
72373         * lib/getpass.h: Add.
72374         * lib/getpass.c: Include getpass.h first.
72375
72376 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
72377
72378         * lib/xalloc-die.c: New file.
72379         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
72380         All uses removed.
72381         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
72382         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
72383         xalloc-die.c.
72384         (_, N_, xalloc_die): Move to xalloc-die.c.
72385         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
72386         so that we needn't mess with xalloc_msg_memory_exhausted.
72387
72388         * lib/sha1.h: Renamed from sha.h.
72389         (SHA1_H): Renamed from _SHA_H.
72390         (sha1_ctx): Renamed from sha_ctx.
72391         (sha1_init_ctx): Renamed from sha_init_ctx.
72392         (sha1_process_block): Renamed from sha_process_block.
72393         (sha1_process_bytes): Renamed from sha_process_bytes.
72394         (sha1_finish_ctx): Renamed from sha_finish_ctx.
72395         (sha1_read_ctx): Renamed from sha_read_ctx.
72396         (sha1_stream): Renamed from sha_stream.
72397         (sha1_buffer): Renamed from sha_buffer.
72398         * lib/sha1.c: Likewise; renamed from sha.c.
72399         Do not include <sys/types.h>.
72400         Include <stddef.h> rather than <stdlib.h>.
72401
72402 2004-08-08  Bruno Haible  <bruno@clisp.org>
72403
72404         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
72405         FILESYSTEM_PREFIX_LEN.
72406         * lib/progreloc.c: Likewise.
72407         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
72408
72409 2004-08-06  Simon Josefsson  <jas@extundo.com>
72410
72411         * modules/progname (Depends-on): Don't depend on stdbool.
72412
72413 2004-08-06  Simon Josefsson  <jas@extundo.com>
72414
72415         * modules/getsubopt: New file.
72416         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72417         getsubopt.
72418
72419 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72420
72421         More merge from coreutils.
72422
72423         * m4/utimens.m4, m4/utimecmp.m4: New files.
72424         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
72425         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
72426         prereq.m4, sha.m4: Import changes from coreutils.
72427
72428 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72429
72430         More merge from coreutils.
72431         * modules/raise, modules/readtokens0, modules/utimens:
72432         * modules/utimecmp, module/xnanosleep: New files.
72433         * modules/strftime: Add lib/strftime.h.
72434         Change include from <time.h> to "strftime.h".
72435         * modules/yesno: Add lib/yesno.h.
72436         * modules/backupfile: Remove lib/addext.c.
72437         * modules/euidaccess: Add stat-macros.h.
72438         * modules/canonicalize, modules/euidaccess,
72439         modules/filemode, modules/lchown, modules/makepath,
72440         modules/rmdir, modules/stat: Likewise.
72441
72442 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
72443
72444         Merge from tar.
72445         * lib/argp-help.c (make_hol, hol_append): Don't assume that
72446         SIZE_MAX is a valid preprocessor constant.
72447         (__argp_basename): Change from "#ifndef _LIBC"
72448         to "#ifndef __argp_short_program_name", so that
72449         we don't compile these functions for tar.
72450
72451         More merges from coreutils.
72452         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
72453         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
72454         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
72455         * lib/addext.c: Remove; no longer needed.
72456         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
72457         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
72458         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
72459         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
72460         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
72461         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
72462         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
72463         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
72464         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
72465         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
72466         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
72467         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
72468         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
72469         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
72470         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
72471         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
72472         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
72473         Import changes from coreutils.
72474
72475 2004-08-05  Simon Josefsson  <jas@extundo.com>
72476
72477         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
72478
72479 2004-08-05  Simon Josefsson  <jas@extundo.com>
72480
72481         * m4/getsubopt.m4: New file.
72482
72483 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72484
72485         Merge from coreutils.
72486
72487         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
72488         * m4/getcwd-path-max.m4: New files.
72489
72490         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
72491         FILESYSTEM_PREFIX_LEN ->
72492         FILE_SYSTEM_PREFIX_LEN.
72493         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
72494         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
72495         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
72496         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
72497
72498         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
72499         prerequisite modules now handle the DOS stuff.
72500         Don't check for unistd.h.
72501
72502 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72503
72504         Merge from coreutils.
72505
72506         * lib/.gdb-history: Remove; this doesn't belong here.
72507
72508         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
72509         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
72510         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
72511         * lib/getcwd.c: New files.
72512
72513         * lib/dirname.h: Include <stdbool.h>.
72514         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
72515         for consistency with POSIX terminology.  All uses changed.
72516         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
72517         (strip_trailing_slashes): Use bool for booleans.
72518         * lib/stripslash.c (strip_trailing_slashes): Likewise.
72519
72520         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
72521         sometimes returns a positive errno value even when it succeeds.
72522         (print_errno_message) [!LIBC]: Fall back on strerror if
72523         __strerror_r fails.
72524
72525         * lib/path-concat.c (mempcpy): Don't define if a system header defines
72526         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
72527         (longest_relative_suffix): New function.
72528         (path_concat): Use it.  Assume first argument is not NULL.
72529         Port to DOS.  Omit redundant separators.
72530         Report an error instead of returning NULL.
72531         Use mempcpy instead of memcpy.
72532         (xpath_concat): Remove: not declared or used.
72533
72534         * lib/same.h: Include <stdbool.h>
72535         (same_name): Return bool, not int.
72536         * lib/same.c (same_name): Likewise.
72537         (errno): Don't declare; we assume C89 or better now.
72538
72539         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
72540         if not already defined.
72541
72542         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
72543         * lib/dup-safer.c (errno): Likewise.
72544
72545 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
72546
72547         Merge from coreutils.
72548         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
72549         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
72550         * modules/path-concat: Don't depend on strdup.
72551
72552 2004-08-03  Simon Josefsson  <jas@extundo.com>
72553
72554         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
72555         * lib/progname.h: Don't include stdbool.h.
72556
72557 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72558
72559         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
72560         * MODULES.html.sh (func_all_modules): Remove fatal.
72561
72562 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72563
72564         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
72565
72566 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
72567
72568         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
72569         working.
72570
72571 2004-08-02  Simon Josefsson  <jas@extundo.com>
72572
72573         * lib/getsubopt.h: New file, with comments from Bruno Haible.
72574         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
72575         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
72576
72577 2004-08-01  Simon Josefsson  <jas@extundo.com>
72578
72579         * lib/xgetdomainname.c: Include stdlib.h, for free().
72580
72581 2004-07-19  Bruno Haible  <bruno@clisp.org>
72582
72583         * MODULES.html.sh (func_all_modules): Add dummy.
72584
72585 2004-07-16  Simon Josefsson  <jas@extundo.com>
72586
72587         * modules/dummy: New file.
72588
72589 2004-07-16  Simon Josefsson  <jas@extundo.com>
72590
72591         * lib/dummy.c: New file.
72592
72593 2004-07-16  Bruno Haible  <bruno@clisp.org>
72594
72595         * lib/backupfile.h: Add extern "C" for C++.
72596         * lib/closeout.h: Likewise.
72597         * lib/copy-file.h: Likewise.
72598         * lib/findprog.h: Likewise.
72599         * lib/full-write.h: Likewise.
72600         * lib/pathname.h: Likewise.
72601         * lib/progname.h: Likewise.
72602         * lib/stpcpy.h: Likewise.
72603         * lib/stpncpy.h: Likewise.
72604         * lib/strcase.h: Likewise.
72605         * lib/strstr.h: Likewise.
72606         * lib/xalloc.h: Likewise.
72607
72608         * lib/mbswidth.h: Add extern "C" for C++.
72609         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
72610
72611 2004-07-13  Robert Millan  <robertmh@gnu.org>
72612
72613         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
72614
72615 2004-07-09  Simon Josefsson  <jas@extundo.com>
72616
72617         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
72618         failed without this.)
72619
72620 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72621
72622         * modules/chown (Files): Add lib/fchown-stub.c, since
72623         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
72624
72625 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72626
72627         * lib/fchown-stub.c: New file.
72628
72629 2004-06-24  Jim Meyering  <jim@meyering.net>
72630
72631         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
72632
72633 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72634
72635         * modules/argz: Omit "#include".
72636
72637         * MODULES.html.sh (func_all_modules): Add calloc, to match
72638         2004-06-01 addition of calloc module.
72639
72640 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72641
72642         * m4/argz.m4: New file, which is autoupdated from libtool.
72643
72644 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72645
72646         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
72647         libtool.
72648
72649 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         * config/srclist-update: Don't insist on "USA." before the
72652         close-comment, as libtool omits the period and puts the */ on a
72653         separate line.
72654         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
72655         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
72656
72657 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
72658
72659         * modules/argz: New file.
72660         * MODULES.html.sh (func_all_modules): Add argz.
72661
72662 2004-06-12  Jim Meyering  <jim@meyering.net>
72663         and  Paul Eggert  <eggert@cs.ucla.edu>
72664
72665         * modules/hash (Files): Add lib/xalloc.h.
72666         * modules/pipe (Depends-on): Add wait-process.
72667         * modules/stat (Depends-on): Add xalloc.
72668         * modules/userspec (Files): Add lib/userspec.h.
72669         * modules/xstrto
72670
72671         Upgrade from gettext-0.13.
72672         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
72673         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
72674         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
72675
72676 2004-06-10  Jim Meyering  <jim@meyering.net>
72677
72678         * lib/calloc.c: New file.
72679
72680 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         * lib/getdate.y (yylex): Allow space between sign and number.
72683         Problem reported by Dan Jacobson.
72684
72685 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         Merge from coreutils CVS.
72688
72689         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
72690         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
72691         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
72692         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
72693         xstrtol.m4: Fix copyright date and/or serial number.
72694
72695         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
72696         See if we need an fchown replacement.
72697         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
72698         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
72699         and use the replacement function if we detect either defect.
72700
72701         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
72702         gl_UTIMECMP.
72703
72704 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
72705         and  Jim Meyering  <jim@meyering.net>
72706
72707         Merge from coreutils CVS.
72708
72709         * lib/stat-macros.h: New file, with contents from file-type.h
72710         and coreutils' system.h.
72711         * lib/file-type.c: Include "stat-macros.h".
72712         * lib/file-type.h (file_type): Move all macro definitions to new file,
72713         stat-macros.h.
72714
72715         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
72716         Wrap old code with this conditional.
72717         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
72718         function that does not dereference symlinks.
72719         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
72720
72721         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
72722         dependency problems.
72723         (xreadlink): Accept new arg SIZE, for efficiency.
72724         All decls and uses changed.
72725         * lib/xreadlink.h: Include <stddef.h>, for size_t.
72726
72727         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
72728         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
72729
72730         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
72731         sysexits.h.
72732
72733 2004-06-01  Jim Meyering  <jim@meyering.net>
72734
72735         * m4/calloc.m4: New file.
72736
72737 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
72738
72739         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
72740         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
72741         Also, fix a typo in a diagnostic.
72742
72743 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72744
72745         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
72746         or AC_FUNC_REALLOC.
72747
72748 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
72751         macros to be defined.
72752         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
72753         the allocator returns NULL because the requested size is zero.
72754
72755 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72756
72757         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
72758         var.  Add comment explaining why libc still defines it.  This
72759         merges the following patch from glibc:
72760         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
72761
72762 2004-05-20  Andreas Schwab  <schwab@suse.de>
72763
72764         * m4/free.m4: Replace free if it not known to work, not the other
72765         way round.
72766
72767 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72768
72769         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
72770         present in glibc since revision 1.1 of this file.
72771         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
72772         obstack_alignment_mask, obstack_alloc, obstack_base,
72773         obstack_blank, obstack_blank_fast, obstack_chunk_size,
72774         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
72775         obstack_grow0, obstack_init, obstack_int_grow,
72776         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
72777         obstack_next_free, obstack_object_size, obstack_ptr_grow,
72778         obstack_ptr_grow_fast, obstack_room): Remove declarations of
72779         nonexistent functions.
72780
72781 2004-05-18  Karl Berry  <karl@gnu.org>
72782
72783         * config/srclist.txt: break link for vasnprintf.c.
72784
72785 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72786
72787         Port obstack to the AS/400, where pointers are 16 bytes wide and
72788         you cannot cast an integer to a valid pointer.  This patch is
72789         currently waiting to be integrated into glibc; see
72790         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
72791
72792         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
72793         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
72794         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
72795         (struct obstack): temp member is now a union of a pointer and
72796         an integer, instead of an integer.  All integer uses changed.
72797         This does not affect the physical layout of struct obstack,
72798         except on hosts (like the AS/400) where the size or alignment of
72799         void * is greater than that of ptrdiff_t.
72800         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
72801         __STDC__)]: Store temporary in pointer member of union, not
72802         integer member.
72803         * lib/obstack.c: Include <stddef.h>, for offsetof.
72804         (struct fooalign): Remove; it doesn't need a name.
72805         (union fooround): Change double to long double, and add void *.
72806         (DEFAULT_ALIGNMENT): Use offsetof to compute.
72807         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
72808         not a macro.  Hence the values are always int; so remove all
72809         casts-to-int in uses.
72810
72811 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
72812
72813         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
72814         we can get this patch merged into glibc.
72815
72816 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72817             Paul Eggert  <eggert@cs.ucla.edu>
72818
72819         * m4/argp: Depend on alloca.
72820
72821 2004-05-17  Derek R. Price  <derek@ximbiot.com>
72822             Paul Eggert  <eggert@cs.ucla.edu>
72823
72824         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
72825         freecoding.
72826
72827 2004-05-17  Bruno Haible  <bruno@clisp.org>
72828
72829         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
72830         precision that consists of a '.' followed by an empty digit string.
72831         Patch by Tor Lillqvist <tml@iki.fi>.
72832
72833 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72834
72835         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
72836         for backward compatibility with older code.  We need our own
72837         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
72838         it under some other name, and our alloca.h will define it.
72839
72840 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
72841             Derek Price  <derek@ximbiot.com>
72842
72843         * lib/alloca.c: Include <alloca.h>, to get our interface.
72844         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
72845         include <alloca.h> first.  Use C89 prototype for alloca; this
72846         requires including <stddef.h> for size_t.  Use extern "C" if C++.
72847         Use #elif for simplicity, since we can assume C89 now.
72848         Don't try to source the system alloca.h since it will not be found
72849         and to prevent recursively including its replacement.
72850         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
72851         * lib/regex.c: Likewise.
72852
72853 2004-05-16  Derek Price  <derek@ximbiot.com>
72854             Paul Eggert  <eggert@cs.ucla.edu>
72855
72856         getline cleanup.  This changes the getndelim2 API: both order of
72857         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
72858         no delimiter).
72859
72860         * lib/getline.c: Don't include stddef.h or stdio.h, since our
72861         interface does that.
72862         (getline): Always use getdelim, so that we don't have two
72863         copies of this code.
72864         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
72865         if available.
72866         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
72867         (GETNDELIM2_MAXIMUM): New macro.
72868         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
72869         instead of the old practice of delim2==0.  All callers changed.
72870         Return -1 on overflow, instead of returning junk.
72871         Do not set *linesize unless allocation succeeds.
72872         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
72873         that we include sys/types.h.
72874         * lib/getnline.h: Likewise.
72875         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
72876         (getndelim2): Reorder arguments.
72877         * lib/getnline.c (getnline, getndelim):
72878         Don't discard the NMAX argument.
72879         (getnline): Invoke getndelim, to avoid code duplication.
72880         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
72881         of (size_t) -1 by callers of the getnline family.
72882
72883 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72884
72885         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
72886         Check for gettimeofday.
72887         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
72888         Check for settimeofday, stime.
72889
72890 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
72891
72892         * lib/nanosleep.c (suspended): Change its type from int to
72893         sig_atomic_t volatile.
72894         (first_call): Make it private to rpl_nanosleep, and have it
72895         be zero initially as that's a bit faster.
72896         (my_usleep): Round up fractional times instead of truncating them,
72897         as this is the usual meaning for 'sleep'.
72898
72899         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
72900         doesn't work.
72901         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
72902         (ENOSYS): Define if not defined.
72903         (settime): Fall back on stime if it exists and settimeofday fails.
72904         But don't bother with fallbacks if a method fails with errno == EPERM.
72905
72906 2004-05-11  Jim Meyering  <jim@meyering.net>
72907
72908         Prior to this change, the save_cwd caller required read access to the
72909         current directory on most systems (ones with the fchdir function).
72910
72911         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
72912         fails, try write-only, and finally, resort to using xgetcwd.
72913
72914 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
72915
72916         * lib/obstack.c, obstack.h: Import changes from libc.
72917
72918 2004-04-28  Bruno Haible  <bruno@clisp.org>
72919
72920         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
72921         also implicitly appends .exe to executables.
72922         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
72923         accepts Windows pathnames.
72924         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72925         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72926         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
72927         Treat Cygwin like Windows, since it now accepts Windows pathnames.
72928         Reported by Derek Robert Price <derek@ximbiot.com>.
72929
72930 2004-04-21  Karl Berry  <karl@gnu.org>
72931
72932         * config/srclist.txt (localcharset.c): break sync.
72933
72934 2004-04-20  Paul Eggert  <eggert@twinsun.com>
72935
72936         * m4/host-os.m4: Add a copyright notice.
72937
72938 2004-04-20  Jim Meyering  <jim@meyering.net>
72939
72940         Change UTILS_ to gl_ in AC_DEFINE'd names.
72941         Change utils_- and jm_-prefixed variables, too.
72942         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
72943         UTILS_FUNC_MKDIR_TRAILING_SLASH.
72944         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
72945
72946         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
72947         Don't emit trailing blanks.
72948         Also rename jm_-prefixed variables to have gl_ prefix.
72949
72950         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
72951         Also rename jm_-prefixed variables to have gl_ prefix.
72952
72953         * m4/jm-macros.m4: Reflect the renamings.
72954         * m4/prereq.m4: Likewise.
72955
72956 2004-04-20  Jim Meyering  <jim@meyering.net>
72957
72958         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
72959         memory.
72960
72961 2004-04-20  Jim Meyering  <jim@meyering.net>
72962             Bruno Haible  <bruno@clisp.org>
72963
72964         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
72965         memory when realloc fails.
72966
72967 2004-04-19  Jim Meyering  <jim@meyering.net>
72968
72969         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
72970         now that readutmp.c may call `free (0)'.
72971
72972 2004-04-19  Bruno Haible  <bruno@clisp.org>
72973
72974         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
72975         * m4/inttypes_h.m4: Likewise.
72976         * m4/stdint_h.m4: Likewise.
72977         * m4/intmax_t.m4: Likewise.
72978         * m4/uintmax_t.m4: Likewise.
72979
72980 2004-04-18  Jim Meyering  <jim@meyering.net>
72981
72982         * m4/prereq.m4: Don't forbid jm_ prefix.
72983
72984         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
72985         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
72986         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
72987         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
72988         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
72989         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
72990         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
72991         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
72992         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
72993         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
72994         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
72995         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
72996         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
72997         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
72998         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
72999         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
73000         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
73001         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
73002         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
73003
73004 2004-04-18  Jim Meyering  <jim@meyering.net>
73005
73006         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
73007         failure, don't leak memory and do call END_UTMP_ENT.
73008
73009 2004-04-16  Jim Meyering  <jim@meyering.net>
73010
73011         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
73012         coreutils' stat program.
73013         (gl_PREREQ): Don't require jm_PREREQ_STAT.
73014
73015 2004-04-11  Paul Eggert  <eggert@twinsun.com>
73016
73017         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
73018         C89.
73019         (CHAR_BIT): Remove, since we assume C89.
73020         Include <stdint.h> if available, as per current Autoconf CVS advice.
73021
73022 2004-03-31  Jim Meyering  <jim@meyering.net>
73023
73024         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
73025         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
73026         * m4/xalloc.m4: Likewise.
73027
73028 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73029
73030         Merge from coreutils.
73031
73032         * m4/inttostr.m4: New file.
73033         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
73034         Require AM_STDBOOL_H and gl_TIMESPEC instead.
73035         Require gl_CLOCK_TIME.
73036         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
73037
73038 2004-03-30  Paul Eggert  <eggert@twinsun.com>
73039
73040         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
73041         not bool, to be more consistent with Unix conventions.
73042         Suggested by Bruno Haible.
73043
73044         Merge from coreutils.
73045
73046         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
73047         * lib/umaxtostr.c: New files.
73048
73049         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
73050         the usual <time.h> dance.
73051         (get_date): Change signature to support fractional time stamps.
73052         All callers changed.
73053         * lib/getdate.y: Include "getdate.h" first, as we can now
73054         assume C89 and don't need to worry about 'const'.
73055         Similarly, include "unlocked-io.h" near start, not in middle.
73056         Include <limits.h>.
73057         (textint.value): Use long int rather than int.
73058         (textint.digits): Use size_t rather than int.
73059         (BILLION, LOG10_BILLION): New constants.
73060         (parser_control): New member rel_ns.  Members day_ordinal,
73061         time_zone, month, day, hour, minutes, rel_year, rel_month,
73062         rel_day, rel_hour, rel_minutes, rel_seconds
73063         are now long int, not int.  Member seconds is now struct timespec,
73064         not int.  New member timespec_seen.  Members dates_seen, days_seen,
73065         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
73066         not int.
73067         (%union.intval): Now long int, not int.
73068         New member timespec.
73069         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
73070         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
73071         (spec): Now is a timespec or an item list.
73072         (timespec, items): New nonterminals.
73073         (time, rel, relunit, number, get_date):
73074         Add support for fractional seconds.
73075         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
73076         (gmtime, localtime, mktime): Remove decls; not needed with C89.
73077         (to_hour): First arg is now long int, not int.
73078         (to_year): Returns long int, not int.
73079         Don't treat year -70 like 70.
73080         (tm_diff): Returns long int, not int.
73081         (lookup_word): Use bool instead of int when appropriate.
73082         (yylex): Use size_t for count, not int.
73083         Detect overflow when parsing large integer constants.
73084         Add support for fractions.
73085         (get_date): Make pointers 'const' if possible.
73086         Use more-portable code to detect integer overflow.
73087         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
73088         Don't use ctime; it's not reliable if the year has >4 digits.
73089
73090         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
73091         This is for compatibility with BSD.
73092
73093         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
73094         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
73095         From coreutils' system.h.
73096
73097         * lib/userspec.c: Don't include "posixver.h".
73098         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
73099         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
73100         compatible extension.  Simplify code by removing a boolean int
73101         that was always nonzero if a string was nonnull.
73102
73103 2004-03-30  Jim Meyering  <jim@meyering.net>
73104
73105         Merge from coreutils.
73106
73107         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
73108         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
73109         on some systems one must include <grp.h> before it.
73110         Reported by Christian Krackowizer.
73111
73112 2004-03-30  Jim Meyering  <jim@meyering.net>
73113
73114         Merge from coreutils.
73115
73116         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
73117
73118         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
73119         an empty input stream.
73120
73121         * lib/readtokens.c: Include <stdbool.h>.
73122         (readtoken): Use `size_t' rather than int/long.
73123         All callers adjusted.
73124         Use `bool' rather than `int' where appropriate.
73125         Use memset rather than an explicit loop.
73126         Use x2nrealloc rather than xrealloc.
73127         Allow the use of `\0' as a delimiter.
73128         (readtokens): Likewise.
73129         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
73130
73131 2004-03-30  Jim Meyering  <jim@meyering.net>
73132
73133         * m4/realloc.m4: Remove file, since now it does no more than
73134         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
73135         the `configure.ac' section of module/realloc.
73136         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
73137
73138 2004-03-30  Bruno Haible  <bruno@clisp.org>
73139
73140         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
73141         nonnull.
73142
73143 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73144
73145         Merge changes to getloadavg.c from coreutils and Emacs.
73146
73147         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
73148         Define to an expression, not to the empty string.
73149         Include cloexec.h and xalloc.h.
73150         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
73151         Use set_cloexec_flag rather than rolling our own.
73152         * lib/cloexec.c, lib/cloexec.h: New files.
73153
73154 2004-03-29  Paul Eggert  <eggert@twinsun.com>
73155
73156         * m4/cloexec.m4: New file.
73157
73158 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73159
73160         * lib/getopt.h: Sync with libc CVS.
73161
73162 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73163             Bruno Haible  <bruno@clisp.org>
73164
73165         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
73166         mbswidth.
73167
73168 2004-03-18  Paul Eggert  <eggert@twinsun.com>
73169             Bruno Haible  <bruno@clisp.org>
73170
73171         * lib/mbswidth.h: Include <wchar.h> only if
73172         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
73173         <wchar.h>.
73174         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
73175
73176 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73177
73178         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
73179         Sync with libc CVS.
73180         * lib/getopt_int.h: New file, also synced from libc.
73181
73182 2004-03-09  Paul Eggert  <eggert@twinsun.com>
73183
73184         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
73185         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
73186         Bring back getopt.c, getopt.h, getopt1.c.
73187
73188 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73189
73190         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
73191         All uses changed.  Check for sa_sigaction member; this fixes
73192         a bug first reported by Jason Andrade in
73193         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73194
73195 2004-03-07  Paul Eggert  <eggert@twinsun.com>
73196
73197         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
73198         '#if' expressions.  Unlike the code it replaces, it does not
73199         depend on (defined _SC_PAGESIZE).  However, it does depend on
73200         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
73201         first reported by Jason Andrade in
73202         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
73203
73204 2004-02-25  Simon Josefsson  <jas@extundo.com>
73205
73206         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
73207
73208 2004-02-25  Simon Josefsson  <jas@extundo.com>
73209
73210         * lib/strdup.h: New file.
73211         * lib/strdup.c: Include it.
73212         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
73213         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
73214
73215 2004-02-23  Karl Berry  <karl@gnu.org>
73216
73217         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
73218         (from fencepost.gnu.org:/gd/gnuorg).
73219
73220 2004-02-23  Karl Berry  <karl@gnu.org>
73221
73222         * config/srclistvars.sh (GNUORG) [karl]: redefine.
73223         * config/srclist.txt: add maintain/standards documents.
73224
73225 2004-02-18  Bruno Haible  <bruno@clisp.org>
73226
73227         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
73228         Reported by Derek Robert Price <derek@ximbiot.com>.
73229
73230 2004-02-16  Karl Berry  <karl@gnu.org>
73231
73232         * config/mkinstalldirs, install-sh: update from automake.
73233
73234 2004-02-06  Karl Berry  <karl@gnu.org>
73235
73236         * m4/po.m4: update from gettext 0.14.1.
73237
73238 2004-02-06  Karl Berry  <karl@gnu.org>
73239
73240         * lib/config.charset: update from gettext 0.14.1.
73241
73242 2004-02-05  Paul Eggert  <eggert@twinsun.com>
73243
73244         Add comments and code, prompted by suggestions from Bruno Haible
73245         for sh-quote.
73246         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
73247         describing the enum quoting_style values.
73248         * lib/quotearg.c (quotearg_alloc): New function.
73249         (quotearg_buffer_restyled): Treat lone { and } as special.
73250         Treat = as special.  Work around bug with older shells
73251         that "see" a '\' that is really the 2nd byte of a multibyte char.
73252         Quote empty string with shell_quoting_style.
73253
73254 2004-02-03  Bruno Haible  <bruno@clisp.org>
73255
73256         * m4/pipe.m4: New file, from GNU gettext.
73257
73258 2004-02-03  Bruno Haible  <bruno@clisp.org>
73259
73260         * lib/pipe.h: New file, from GNU gettext.
73261         * lib/pipe.c: New file, from GNU gettext.
73262
73263 2004-01-27  Bruno Haible  <bruno@clisp.org>
73264
73265         * m4/execute.m4: New file, from GNU gettext.
73266
73267 2004-01-27  Bruno Haible  <bruno@clisp.org>
73268
73269         * lib/execute.h: New file, from GNU gettext.
73270         * lib/execute.c: New file, from GNU gettext.
73271         * lib/w32spawn.h: New file, from GNU gettext.
73272
73273 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73274
73275         Merge from diffutils.
73276
73277         * lib/file-type.c (file_type): Add typed memory objects.
73278         * lib/file-type.h (S_TYPEISTMO): New macro.
73279
73280         * lib/c-stack.h (c_stack_action): Remove argv argument.
73281         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
73282         (die): Don't calculate message unless segv_action returns.
73283         (get_stack_location, min_address_from_argv, max_address_from_argv,
73284         volatile stack_base, volatile_stack_size): Remove.
73285         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
73286         that every segmentation violation is a stack overflow.  (Ouch!)
73287         See Debian bug 136249 (still outstanding) for more info about why
73288         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
73289
73290 2004-01-24  Paul Eggert  <eggert@twinsun.com>
73291
73292         Exit-status fix from coreutils.
73293
73294         Use exit_failure consistently in place of EXIT_FAILURE,
73295         so that program exit statuses are consistent on failure.
73296
73297         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
73298         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
73299         * lib/argmatch.h: Comment fix to match the above.
73300         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
73301         Now a macro referring to exit_failure, instead of a separate
73302         variable.  Include "exitfail.h" to get it.
73303         * lib/xstrtol.h: Include "exitfail.h".
73304         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
73305
73306         * lib/long-options.c (parse_long_options): Use prototype
73307         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
73308         for clarity.
73309
73310 2004-01-21  Jim Meyering  <jim@meyering.net>
73311
73312         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
73313         so as not to conflict with a different-sized __mktime_internal
73314         function in GNU libc.
73315         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
73316         Problem building statically-linked `ls' reported by Michael Brunnbauer.
73317
73318 2004-01-20  Karl Berry  <karl@gnu.org>
73319
73320         * config/config.guess: update from config.
73321
73322         * config/srclistvars.sh: GNUWWWLICENSES for karl.
73323
73324 2004-01-20  Bruno Haible  <bruno@clisp.org>
73325
73326         Safer stack allocation.
73327         * lib/setenv.c: Include allocsa.h.
73328         (alloca): Remove fallback definition.
73329         (freea): Remove macro.
73330         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
73331         instead of freea.
73332
73333 2004-01-20  Bruno Haible  <bruno@clisp.org>
73334
73335         * m4/eealloc.m4: New file, from GNU gettext.
73336
73337 2004-01-20  Bruno Haible  <bruno@clisp.org>
73338
73339         * m4/allocsa.m4: New file, from GNU gettext.
73340
73341 2004-01-20  Bruno Haible  <bruno@clisp.org>
73342
73343         * lib/xallocsa.h: New file, from GNU gettext.
73344         * lib/xallocsa.c: New file, from GNU gettext.
73345
73346 2004-01-20  Bruno Haible  <bruno@clisp.org>
73347
73348         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
73349
73350 2004-01-20  Bruno Haible  <bruno@clisp.org>
73351
73352         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
73353         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
73354         specially.
73355
73356 2004-01-20  Bruno Haible  <bruno@clisp.org>
73357
73358         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
73359         patch.
73360
73361 2004-01-20  Bruno Haible  <bruno@clisp.org>
73362
73363         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
73364
73365 2004-01-20  Bruno Haible  <bruno@clisp.org>
73366
73367         * lib/eealloc.h: New file.
73368
73369 2004-01-20  Bruno Haible  <bruno@clisp.org>
73370
73371         * lib/binary-io.h: Avoid warnings on Cygwin.
73372
73373 2004-01-20  Bruno Haible  <bruno@clisp.org>
73374
73375         * lib/allocsa.h: New file, from GNU gettext.
73376         * lib/allocsa.c: New file, from GNU gettext.
73377
73378 2004-01-18  Karl Berry  <karl@gnu.org>
73379
73380         * doc/gpl.texi, doc/lgpl.texi: new files.
73381
73382 2004-01-18  Karl Berry  <karl@gnu.org>
73383
73384         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
73385         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
73386
73387 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73388
73389         Merge from coreutils.
73390
73391         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
73392         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
73393         (gl_DEFAULT_POSIX2_VERSION): Move
73394         the documentation from 'configure' into 'config.hin',
73395         so that 'configure --help' isn't burdened by it and
73396         we don't have to worry about its formatting there.
73397         Reword the documentation so that it's more succinct
73398         and can be run together into a single paragraph.
73399         * m4/same.m4 (gl_SAME): Check for pathconf.
73400
73401 2004-01-15  Paul Eggert  <eggert@twinsun.com>
73402
73403         Merge from coreutils.
73404
73405         * lib/posixver.c: Include posixver.h.
73406
73407         * lib/same.c: Include <stdbool.h>, <limits.h>.
73408         (_POSIX_NAME_MAX): Define if not defined.
73409         (MIN): New macro.
73410         (same_name): If file names are silently truncated, report
73411         that the file names are the same if they are the same after
73412         the silent truncation.
73413
73414         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
73415         conversion function.
73416         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
73417         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
73418         longer needed.
73419
73420 2004-01-15  Jim Meyering  <jim@meyering.net>
73421
73422         Merge from coreutils.
73423
73424         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
73425         if no library is required.
73426         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
73427         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
73428         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
73429         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
73430         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
73431         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
73432         value, $ac_cv_search_crypt, if it's "none required".
73433         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
73434         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
73435         not gl_FUNC_GETLOADAVG.
73436         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
73437         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
73438
73439 2004-01-15  Jim Meyering  <jim@meyering.net>
73440
73441         Merge from coreutils.
73442
73443         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
73444         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
73445         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
73446
73447         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
73448         optional configure-time default.
73449
73450         * lib/version-etc.c (version_etc_copyright): Update copyright date.
73451
73452         * lib/xreadlink.c (xreadlink): Correct outdated comment.
73453
73454 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
73455
73456         Merge from coreutils.
73457
73458         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
73459         value, $ac_cv_search_nanosleep, if it's "none required".
73460
73461 2004-01-14  Paul Eggert  <eggert@twinsun.com>
73462
73463         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
73464         with like-named macro in fnmatch.c.
73465         (EXT): Use an internal constant instead.
73466
73467         Merge fnmatch patches from glibc.
73468         * lib/fnmatch.c (mbsinit): Remove define.
73469         Add libc_hidden_ver (__fnmatch, fnmatch).
73470         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
73471         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
73472
73473 2004-01-14  Karl Berry  <karl@gnu.org>
73474
73475         * config/install-sh: update from automake.
73476
73477 2004-01-13  Karl Berry  <karl@gnu.org>
73478
73479         * config/install-sh: update from automake.
73480
73481 2004-01-09  Karl Berry  <karl@gnu.org>
73482
73483         * config/install-sh: update from automake.
73484
73485 2004-01-05  Karl Berry  <karl@gnu.org>
73486
73487         * config/config.{sub,guess}: update from config.
73488
73489 2003-12-31  Karl Berry  <karl@gnu.org>
73490
73491         * config/depcomp: update from automake.
73492
73493 2003-12-14  Karl Berry  <karl@gnu.org>
73494
73495         * lib/config.charset: update from gettext-runtime.
73496
73497 2003-12-03  Paul Eggert  <eggert@twinsun.com>
73498
73499         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
73500         Bug reported by Alfred M. Szmidt.
73501
73502 2003-12-03  Bruno Haible  <bruno@clisp.org>
73503
73504         * m4/gettext.m4: Upgrade from gettext-0.13.
73505         * m4/po.m4: Upgrade from gettext-0.13.
73506         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
73507         * m4/intmax.m4: New file, from gettext-0.13.
73508         * m4/printf-posix.m4: New file, from gettext-0.13.
73509
73510 2003-11-29  Karl Berry  <karl@gnu.org>
73511
73512         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
73513
73514 2003-11-25  Paul Eggert  <eggert@twinsun.com>
73515             Bruno Haible  <bruno@clisp.org>
73516
73517         * lib/printf-parse.h: Don't include sys/types.h.
73518         (ARG_NONE): New macro.
73519         (char_directive): Change type of *arg_index fields to size_t.
73520         * lib/printf-parse.c: Don't include sys/types.h.
73521         (SSIZE_MAX): Remove macro.
73522         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
73523         Remove unnecessary overflow check.
73524         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
73525         fields.
73526
73527 2003-11-25  Bruno Haible  <bruno@clisp.org>
73528
73529         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
73530
73531 2003-11-25  Bruno Haible  <bruno@clisp.org>
73532
73533         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
73534         gt_TYPE_SSIZE_T.
73535
73536 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73537
73538         * modules/alloca: Remove dependency on xalloc.
73539
73540 2003-11-24  Paul Eggert  <eggert@twinsun.com>
73541
73542         * lib/alloca.c: Remove dependency on xalloc module.
73543         (xalloc_die): Remove.
73544         (memory_full) [!defined emacs]: New macro.
73545         [!defined emacs]: Don't include xalloc.h.
73546         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
73547         address arithmetic overflows.  Change datatypes a bit to avoid
73548         unnecessary casts.
73549
73550 2003-11-22  Jim Meyering  <jim@meyering.net>
73551
73552         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
73553         s/size/size_t/.
73554
73555 2003-11-21  Karl Berry  <karl@gnu.org>
73556
73557         * config/config.{sub,guess}: update from config.
73558
73559 2003-11-18  Karl Berry  <karl@gnu.org>
73560
73561         * config/config.{sub,guess}: update from config.
73562
73563         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
73564
73565 2003-11-17  Paul Eggert  <eggert@twinsun.com>
73566
73567         * README: Mention that S+T cannot overflow if S is the size of
73568         an existing object and T is sufficiently small.
73569
73570 2003-11-17  Jim Meyering  <jim@meyering.net>
73571
73572         On systems without utime and without a utimes function capable of
73573         dealing with a NULL struct utimbuf* argument, this utime replacement
73574         could -- in unusual circumstances -- leak a file descriptor.
73575         * lib/utime.c: Include <unistd.h> and <errno.h>.
73576         (utime_null): Be sure to close `fd' and to preserve errno.
73577         Reported by Geoff Collyer via Arnold Robbins.
73578
73579 2003-11-17  Bruno Haible  <bruno@clisp.org>
73580
73581         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
73582         (Depends-on): Add xsize.
73583
73584 2003-11-17  Bruno Haible  <bruno@clisp.org>
73585
73586         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
73587
73588 2003-11-17  Bruno Haible  <bruno@clisp.org>
73589
73590         * lib/vasnprintf.c (alloca): Remove fallback definition.
73591         (freea): Remove definition.
73592         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
73593         Reported by Paul Eggert.
73594
73595 2003-11-16  Paul Eggert  <eggert@twinsun.com>
73596             Bruno Haible  <bruno@clisp.org>
73597
73598         Protect against address arithmetic overflow.
73599         * lib/printf-args.h: Include stddef.h.
73600         (arguments): Change type of field 'count' to size_t.
73601         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
73602         'unsigned int' where appropriate.
73603         * lib/printf-parse.h: Include sys/types.h.
73604         (char_directive): Change type of *arg_index fields to ssize_t.
73605         (char_directives): Change type of fields 'count', max_*_length to
73606         size_t.
73607         * lib/printf-parse.c: Include sys/types.h and xsize.h.
73608         (SSIZE_MAX): Define fallback value.
73609         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
73610         instead of 'int' where appropriate. Check a_allocated, d_allocated
73611         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
73612         * lib/vasnprintf.c: Include xsize.h.
73613         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
73614         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
73615         overflow. Avoid wraparound when converting a width or precision from
73616         decimal to binary.
73617
73618 2003-11-16  Bruno Haible  <bruno@clisp.org>
73619
73620         Update from GNU gettext.
73621         * lib/printf-parse.c: Generalize to it can be compiled for wide
73622         strings.
73623         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
73624         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
73625         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
73626         SNPRINTF): New macros.
73627         Don't include <alloca.h> if the file is used inside libintl.
73628         (local_wcslen): New function, for Solaris 2.5.1.
73629         (VASNPRINTF): Use it instead of wcslen.
73630
73631 2003-11-16  Bruno Haible  <bruno@clisp.org>
73632
73633         * lib/xsize.h (xmax): New function.
73634         (xsum, xsum3, xsum4): Declare as "pure" functions.
73635
73636 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73637
73638         * modules/xalloc (Files): Undo latest change, since xalloc.h
73639         no longer needs SIZE_MAX or PTRDIFF_MAX.
73640
73641 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73642
73643         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
73644         gl_PTRDIFF_MAX.
73645
73646 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73647
73648         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
73649         "return", to pacify some unknown compiler.  Problem reported
73650         by Joerg Schilling.
73651
73652 2003-11-12  Paul Eggert  <eggert@twinsun.com>
73653
73654         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
73655         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
73656         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
73657         heuristic is just as accurate as far as we know, and it removes a
73658         dependency on size_max.m4 and ptrdiff_max.m4.
73659
73660 2003-11-11  Bruno Haible  <bruno@clisp.org>
73661
73662         * modules/xsize (Files): Add m4/size_max.m4.
73663         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
73664
73665 2003-11-11  Bruno Haible  <bruno@clisp.org>
73666
73667         * m4/size_max.m4: New file.
73668         * m4/ptrdiff_max.m4: New file.
73669         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
73670         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
73671         (gl_XALLOC): Invoke it.
73672
73673 2003-11-11  Bruno Haible  <bruno@clisp.org>
73674
73675         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
73676         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
73677         defined.
73678
73679 2003-11-10  Paul Eggert  <eggert@twinsun.com>
73680
73681         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
73682         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
73683         rejected some allocations of exactly SIZE_MAX - 2 bytes.
73684         From Bruno Haible.
73685         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
73686         not (size_t) -1, since it's defined here.
73687
73688 2003-11-09  Karl Berry  <karl@gnu.org>
73689
73690         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
73691
73692 2003-11-06  Paul Eggert  <eggert@twinsun.com>
73693
73694         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
73695         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
73696         Reject sizes of exactly SIZE_MAX bytes.
73697         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
73698         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
73699
73700 2003-11-05  Bruno Haible  <bruno@clisp.org>
73701
73702         * lib/xsize.h: Include limits.h, to avoid a possible collision with
73703         SIZE_MAX defined in <limits.h> on Solaris.
73704
73705 2003-11-04  Jim Meyering  <jim@meyering.net>
73706
73707         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
73708         variable names, rather than @VAR@.
73709         * modules/poll: Likewise.
73710
73711 2003-11-04  Bruno Haible  <bruno@clisp.org>
73712
73713         * modules/xsize: New file.
73714         * modules/linebreak: Depend on xsize.
73715         * MODULES.html.sh (func_all_modules): Add xsize.
73716
73717 2003-11-04  Bruno Haible  <bruno@clisp.org>
73718
73719         * m4/xsize.m4: New file.
73720
73721 2003-11-04  Bruno Haible  <bruno@clisp.org>
73722
73723         * lib/xsize.h: New file.
73724         * lib/linebreak.c: Include xsize.h.
73725         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
73726         argument for overflow.
73727         Suggested by Paul Eggert.
73728
73729 2003-11-03  Karl Berry  <karl@gnu.org>
73730
73731         * config/config.{guess,sub}: update from config.
73732
73733 2003-11-03  Jim Meyering  <jim@meyering.net>
73734
73735         * modules/userspec (lib_SOURCES): Add userspec.h.
73736         (Include): Add "userspec.h".
73737         Improve description.
73738
73739 2003-11-03  Jim Meyering  <jim@meyering.net>
73740
73741         * lib/userspec.c: Include "userspec.h".
73742         * lib/userspec.h: New file.
73743
73744 2003-11-03  Bruno Haible  <bruno@clisp.org>
73745
73746         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
73747
73748 2003-11-03  Bruno Haible  <bruno@clisp.org>
73749
73750         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
73751         available, to avoid (extremely rare) race condition.
73752         Suggested by Paul Eggert.
73753
73754 2003-11-02  Karl Berry  <karl@gnu.org>
73755
73756         * config/srclist.txt (vasprintf.c): sync broken, sigh.
73757
73758 2003-10-31  Paul Eggert  <eggert@twinsun.com>
73759
73760         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
73761         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
73762         (read_filesystem_list): Set and use me_type_malloced.
73763         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
73764         whatever the type happens to be), for brevity and consistency.
73765         Check for size calculation overflow on Alphas running OSF/1.
73766
73767 2003-10-31  Jim Meyering  <jim@meyering.net>
73768
73769         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
73770
73771         * lib/linebuffer.c: Include <string.h> for declaration of memset.
73772
73773 2003-10-30  Paul Eggert  <eggert@twinsun.com>
73774             Bruno Haible  <bruno@clisp.org>
73775
73776         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
73777         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
73778
73779 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73780
73781         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
73782         netbsd*-gnu*.  Suggested by Robert Millan.
73783
73784 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73785
73786         * modules/group-member: Depend on stdbool.
73787
73788 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73789
73790         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
73791
73792 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73793
73794         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
73795         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
73796         after the 'gnu' in these cases.  This fixes some bugs in the
73797         previous change, and is based on suggestions by Robert Millan.
73798
73799 2003-10-29  Paul Eggert  <eggert@twinsun.com>
73800
73801         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
73802         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
73803         no longer needed.
73804         * lib/quotearg.c (quotearg_n_options): Use it.
73805         * lib/group-member.c: Include <stdbool.h>.
73806         (free_group_info): Arg is now const *; don't free arg.
73807         (get_group_info): Now returns bool and accepts struct group_info *,
73808         rather than returning a malloc'ed struct group_info *.
73809         All uses changed.  Check for overflow in internal size calculation.
73810
73811         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
73812         rather than xmalloc/xrealloc.
73813         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
73814         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
73815         conformance bug: the old code used a pointer after freeing the
73816         storage that it addressed.
73817         * lib/hash.c (hash_initialize): Simplify the code by using
73818         xalloc_oversized rather than doing it by hand.
73819         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
73820         the buffer preserved.  Use free and xmalloc instead.
73821         * lib/quotearg.c (quotearg_n_options): Likewise.
73822         Use a simpler test for size overflow.  Don't use xalloc_oversized
73823         because unsigned int might be wider than size_t (!); this suggests
73824         that we should switch from unsigned int to size_t for slot numbers.
73825
73826 2003-10-28  Paul Eggert  <eggert@twinsun.com>
73827
73828         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
73829         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
73830         NetBSD kernels.  Requested by Richard Stallman.
73831
73832 2003-10-27  Paul Eggert  <eggert@twinsun.com>
73833
73834         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
73835         to allocate the returned structure.  Do not allocate a subarray,
73836         as x2nrealloc will do that.
73837         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
73838         instead of xnrealloc.
73839         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
73840
73841 2003-10-27  Bruno Haible  <bruno@clisp.org>
73842
73843         * lib/stdbool_.h: Better support for BeOS.
73844
73845 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73846
73847         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
73848         now uses inline.
73849
73850 2003-10-26  Paul Eggert  <eggert@twinsun.com>
73851
73852         * lib/xalloc.h (xalloc_oversized): New static inline function, for
73853         callers that want to do their own size-overflow checking.  Include
73854         <stdbool.h>, since xalloc_oversized returns bool.
73855         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
73856         to use xalloc_oversized.
73857
73858         Add two functions x2realloc, x2nrealloc, for programs that grow
73859         arrays dynamically by doubling their sizes.
73860         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
73861         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
73862         New functions.
73863
73864         Port to C99 semantics for 'inline' of external functions.
73865         Bug reported by Bruno Haible.
73866         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
73867         with the old contents of xnmalloc.
73868         (xnmalloc, xmalloc): Use it.
73869         (xnrealloc_inline): New static inline function,
73870         with the old contents of xnrealloc.
73871         (xnrealloc, xrealloc): Use it.
73872
73873         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
73874         that.
73875
73876 2003-10-26  Karl Berry  <karl@gnu.org>
73877
73878         * config/srclist.txt (COPYING.DOC): no longer available from
73879         /gd/gnuorg; don't know where the ultimate source is.
73880
73881 2003-10-25  Paul Eggert  <eggert@twinsun.com>
73882
73883         Fix several address-calculation bugs in the hash modules,
73884         plus some minor code cleanup.
73885
73886         * lib/hash.h: Include <stdbool.h>, for bool.
73887         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
73888         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
73889         hash_get_n_entries, hash_get_max_bucket_length,
73890         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
73891         hash_rehash): Use size_t rather than unsigned.
73892         * lib/hash.c (struct hash_table, hash_get_n_buckets,
73893         hash_get_n_buckets_used, hash_get_n_entries,
73894         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
73895         hash_get_entries, hash_do_for_each, hash_string, is_prime,
73896         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
73897         Likewise.
73898         (SIZE_MAX): Define if not defined.
73899         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
73900         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
73901         hash_print):
73902         Use const * when possible.
73903         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
73904         (check_tuning): Fix bug: if tuning parameters were very close to
73905         0 or 1, rounding errors could have caused subscript violations.
73906         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
73907         (hash_initialize): Add 'fail:' label
73908         to free table and return NULL, and use it to simplify code.
73909         Use calloc rather than clearing the storage ourself.
73910         (hash_initialize, hash_rehash): Check for arithmetic overflow in
73911         buffer size calculations.
73912         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
73913         Include <stddef.h>, for size_t.
73914         * lib/hash-pjw.c (hash_pjw): Likewise.
73915         Switch to method described by Bruno Haible.
73916         Include <limits.h>, for CHAR_BIT.
73917         (SIZE_BITS): New macro.
73918
73919 2003-10-23  Paul Eggert  <eggert@twinsun.com>
73920
73921         * m4/getline.m4 (AM_FUNC_GETLINE):
73922         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
73923         hosts.  Problem reported by Derek Robert Price in
73924         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
73925         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
73926         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
73927
73928 2003-10-21  Paul Eggert  <eggert@twinsun.com>
73929
73930         * lib/getndelim2.c (getndelim2): When size calculation overflows,
73931         ceiling the allocation at NMAX bytes rather than silently
73932         discarding input bytes before NMAX is reached.  This makes
73933         a difference only if NMAX exceeds SIZE_MAX / 2.
73934
73935         * lib/obstack.c: Merge from glibc.
73936         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
73937         Add libc_hidden_def (_obstack_newchunk).
73938         (_obstack_free) [! defined _LIBC]: Remove.
73939         [defined _LIBC]: Make a strong alias from obstack_free, rather than
73940         a clone of the function body.
73941         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
73942         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
73943
73944         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
73945         glibc.
73946         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
73947         arg to memcpy.
73948
73949         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
73950         (obstack_ptr_grow_fast, obstack_int_grow_fast):
73951         Don't use lvalue casts, as GCC plans to remove support for them
73952         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
73953         was also present in the non-GCC version, indicating that this
73954         code had always been buggy and had never been widely used.
73955         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
73956         Use the fast variant of each macro, rather than copying the
73957         definiens of the fast variant; that way, we'll be more likely to
73958         catch future bugs in the fast variants.
73959
73960 2003-10-20  Bruno Haible  <bruno@clisp.org>
73961
73962         * modules/wait-process: New file.
73963         * MODULES.html.sh (func_all_modules): Add wait-process.
73964
73965 2003-10-20  Bruno Haible  <bruno@clisp.org>
73966
73967         * m4/wait-process.m4: New file.
73968
73969 2003-10-20  Bruno Haible  <bruno@clisp.org>
73970
73971         * lib/wait-process.h: New file, from GNU gettext.
73972         * lib/wait-process.c: New file, from GNU gettext.
73973
73974 2003-10-19  Jim Meyering  <jim@meyering.net>
73975
73976         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
73977         HPUX 10.20.
73978
73979 2003-10-18  Karl Berry  <karl@gnu.org>
73980
73981         * config/config.guess: update from config.
73982
73983 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73984
73985         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
73986         (getgroups): First arg is int, not size_t.
73987         Don't let 'free' mangle errno.
73988
73989 2003-10-16  Paul Eggert  <eggert@twinsun.com>
73990
73991         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
73992
73993 2003-10-16  Karl Berry  <karl@gnu.org>
73994
73995         * config/config.{guess,sub}: update from config.
73996
73997 2003-10-16  Jim Meyering  <jim@meyering.net>
73998
73999         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
74000         memcpy.
74001
74002 2003-10-15  Paul Eggert  <eggert@twinsun.com>
74003
74004         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
74005         (SIZE_MAX): Remove.
74006         (new_exclude, add_exclude_file): Initial size no longer needs to
74007         be a power of 2.
74008         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
74009         our own address arithmetic overflow checking.
74010
74011         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
74012         (fnmatch): Do not alloca more than 2000 wide characters;
74013         instead, use malloc for large buffers.
74014         Check for address arithmetic overflow, and return -1
74015         with errno set to ENOMEM in that case.
74016         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
74017         (NEW_PATTERN): Do not alloca more than 8000 bytes;
74018         instead, return -1.  Check for address arithmetic overflow.
74019
74020 2003-10-14  Paul Eggert  <eggert@twinsun.com>
74021
74022         Handle invalid suffixes and overflow independently, so that
74023         callers can treat them independently as needed.  Fix some bugs in
74024         suffix handling, e.g., "100k@" was not diagnosed as an invalid
74025         suffix for a human-readable blocksize.  The major caller-visible
74026         change is the addition of a new
74027         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
74028         that both overflow and suffix chars were found.
74029
74030         * lib/human.c (humblock): Don't check separately for invalid suffix
74031         char; that is xstrtoumax's job (now that its bug is fixed).
74032         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
74033         INTMAX_MAX]: New macros.
74034         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
74035         TYPE_MAXIMUM): New macros.
74036         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
74037         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
74038         if overflow occurs, as it's what __strtol does and it's more useful
74039         in practice.
74040         (__xstrtol): If __strtol reports some error other than ERANGE,
74041         reflect it to the caller as LONGINT_INVALID.  If it reports
74042         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
74043         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
74044         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
74045         value.
74046         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
74047         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
74048         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
74049         [defined UINTMAX_MAX]: New macros.
74050
74051 2003-10-14  Bruno Haible  <bruno@clisp.org>
74052
74053         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
74054
74055 2003-10-14  Bruno Haible  <bruno@clisp.org>
74056
74057         * m4/sig_atomic_t: New file, from GNU gettext.
74058         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
74059
74060 2003-10-14  Bruno Haible  <bruno@clisp.org>
74061
74062         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
74063         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
74064         Also use volatile where needed.
74065
74066 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74067
74068         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
74069         Change maintainer from Bruno Haible to 'all'.
74070
74071 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74072
74073         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
74074
74075 2003-10-12  Paul Eggert  <eggert@twinsun.com>
74076
74077         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
74078         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
74079         and define in terms of the other primitives.
74080         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
74081         (SIZE_MAX): Define if not already defined.
74082         (array_size_overflow): New function.
74083         (xalloc_die): Abort instead of exiting if 'error' returns.
74084         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
74085         (xmalloc, xrealloc): Use them.
74086         (xcalloc): Check for address arithmetic overflow.
74087         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
74088         a bit faster than strcpy.
74089
74090 2003-10-10  Simon Josefsson  <jas@extundo.com>
74091
74092         * modules/argp (Depends-on): Add restrict and strcase.
74093
74094 2003-10-10  Simon Josefsson  <jas@extundo.com>
74095
74096         * m4/argp.m4: Add AC_C_INLINE.
74097
74098 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74099
74100         Merge getpass from libc, plus a few fixes.
74101
74102         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
74103         Include <stdbool.h>.
74104         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
74105         __fsetlocking to empty.
74106         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
74107         do include <bits/libc-lock.h>.
74108         Do not include <fcntl.h>; not needed.
74109         [_LIBC]: Include <wchar.h>.
74110         (NOTCANCEL_MODE): New macro.
74111         (flockfile, funlockfile) [_LIBC]: New macros.
74112         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
74113         [!_LIBC]: New macros.
74114         (call_fclose): New function.
74115         (getpass): Use it.  Save tty stream separately; this simplifies the
74116         code and makes it more reliable if stdin happens to equal stdout.
74117         Invoke __fsetlocking on tty.
74118         Handle thread cancellation if needed.
74119         Namespace cleanup (use __tcgetattr, __getline).
74120         Use bool for Booleans.
74121         [USE_IN_LIBIO]: Handle wide streams.
74122         [!_LIBC]: Unconditionally do the fseek, since we don't know what
74123         stream might go where.
74124
74125         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
74126         doesn't have to include <stdio.h> before us.
74127         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
74128         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
74129         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
74130         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
74131         if not declared, so that we can use getpass.c code from libc without
74132         rewriting it.
74133         (flockfile, ftrylockfile, funlockfile): New macros.
74134
74135 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74136
74137         * modules/getpass: Depend on stdbool.
74138
74139 2003-10-08  Paul Eggert  <eggert@twinsun.com>
74140
74141         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
74142
74143 2003-10-07  Karl Berry  <karl@gnu.org>
74144
74145         * config/config.{guess,sub}: update from config.
74146
74147 2003-10-06  Jim Meyering  <jim@meyering.net>
74148             Bruno Haible  <bruno@clisp.org>
74149
74150         This lets translators provide better translations for the
74151         "Written by ..." part of --version output.
74152         * lib/version-etc.h: Include stdarg.h.
74153         (version_etc_copyright): Declare as readonly.
74154         (version_etc): Make this function variadic with a NULL-terminated list
74155         of author name strings.
74156         (version_etc_va): New declaration.
74157         * lib/version-etc.c: Include stdarg.h, stdlib.h.
74158         (version_etc_copyright): Declare as readonly.
74159         (version_etc_va): New function. Provide a different translatable string
74160         for each possible number of authors < 10. Abbreviate when there are 10
74161         authors or more.
74162         (version_etc): Make this function variadic. Call version_etc_va.
74163         Suggestion from Gary V. Vaughan.
74164
74165         * lib/long-options.h (parse_long_options): Change prototype: the
74166         authors string is moved to the end and becomes variadic.
74167         * lib/long-options.c: Include stdarg.h.
74168         (parse_long_options): Make this function variadic, too.
74169         Call version_etc_va, not version_etc.
74170
74171 2003-10-06  Bruno Haible  <bruno@clisp.org>
74172
74173         * modules/version-etc-2: Remove file.
74174         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
74175
74176 2003-10-06  Bruno Haible  <bruno@clisp.org>
74177
74178         * modules/fatal-signal: New file.
74179         * MODULES.html.sh (func_all_modules): Add fatal-signal.
74180
74181 2003-10-06  Bruno Haible  <bruno@clisp.org>
74182
74183         * m4/fatal-signal.m4: New file.
74184         * m4/signalblocking.m4: New file, from GNU gettext.
74185
74186 2003-10-06  Bruno Haible  <bruno@clisp.org>
74187
74188         * lib/version-etc-2.h: Remove file.
74189         * lib/version-etc-2.c: Remove file.
74190
74191 2003-10-06  Bruno Haible  <bruno@clisp.org>
74192
74193         * lib/fatal-signal.h: New file, from GNU gettext.
74194         * lib/fatal-signal.c: New file, from GNU gettext.
74195
74196 2003-10-05  Paul Eggert  <eggert@twinsun.com>
74197
74198         * README: Rework advice for preventing empty .o files.
74199         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
74200         not <sys/types.h>.
74201
74202 2003-10-04  Karl Berry  <karl@gnu.org>
74203
74204         * lib/argp*: update from libc.
74205
74206 2003-10-04  Karl Berry  <karl@gnu.org>
74207
74208         * config/config.{guess,sub}: update from config.
74209
74210 2003-10-02  Bruno Haible  <bruno@clisp.org>
74211
74212         * modules/lchown (Include): Add lchown.h.
74213         * modules/time_r (Include): Use "..." syntax.
74214         * modules/xgetdomainname (Include): Add xgetdomainname.h.
74215
74216 2003-10-01  Simon Josefsson  <jas@extundo.com>
74217
74218         * MODULES.html.sh (func_all_modules): Move gethostname from section
74219         'based on' to section 'lacking' POSIX:2001.
74220
74221 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
74222
74223         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
74224         to output mode on the same stream.
74225
74226 2003-09-29  Paul Eggert  <eggert@twinsun.com>
74227
74228         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
74229         Fix arg typo in previous patch.
74230
74231 2003-09-28  Jim Meyering  <jim@meyering.net>
74232
74233         * lib/error.c: Correct cpp indentation.
74234
74235 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74236
74237         * modules/free: New file.
74238
74239 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74240
74241         * m4/free.m4: New file.
74242
74243 2003-09-27  Paul Eggert  <eggert@twinsun.com>
74244
74245         * lib/minmax.h (MIN, MAX)
74246         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
74247         Omit the special code that used __typeof__, since we worry that
74248         it could be more trouble than it's worth.  See:
74249         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
74250         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
74251
74252         * lib/free.c: New file.
74253
74254 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
74255
74256         Trivial fixes to Makefile.am parts of module listings.
74257         * modules/strstr: Append strstr.h to lib_SOURCES.
74258         * modules/strcase: Likewise, for strcase.h.
74259
74260 2003-09-27  Karl Berry  <karl@gnu.org>
74261
74262         * config/mkinstalldirs: update from automake.
74263
74264 2003-09-26  Paul Eggert  <eggert@twinsun.com>
74265
74266         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
74267         (error_tail): Do not loop, reallocating temporary buffer, since
74268         the output cannot contain more wide characters than the input
74269         contains bytes, the size must be big enough already.  This avoids
74270         one potential size overflow calculation.  Check for size overflow
74271         when calculating temporary buffer size.  Free temporary buffer
74272         when done, if it was allocated with malloc; this plugs a memory
74273         leak.  Remove casts from void * to pointers, that are no longer
74274         needed now that we're assuming C89 or better.
74275
74276         Merge error changes from glibc.
74277
74278         * lib/error.c, error.h: Update copyright notice header to match glibc.
74279         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
74280         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
74281         Disable cancellation while printing error.
74282         * lib/error.h: Prepend __ to parameter names.
74283
74284 2003-09-26  Jim Meyering  <jim@meyering.net>
74285
74286         * lib/error.c (error_tail): Move some declarations
74287         into inner scope where the local variables are used.
74288
74289 2003-09-26  Bruno Haible  <bruno@clisp.org>
74290
74291         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
74292         stpncpy().
74293         Don't define stpncpy through config.h; it's now done through stpncpy.h.
74294
74295 2003-09-26  Bruno Haible  <bruno@clisp.org>
74296
74297         * lib/stpncpy.h (gnu_stpncpy): New declaration.
74298         (stpncpy): Define as alias for gnu_stpncpy.
74299         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
74300
74301 2003-09-25  Simon Josefsson  <jas@extundo.com>
74302
74303         * lib/xgetdomainname.h: New file.
74304         * lib/xgetdomainname.c: New file.
74305
74306 2003-09-25  Simon Josefsson  <jas@extundo.com>
74307             Bruno Haible  <bruno@clisp.org>
74308
74309         * modules/getdomainname: New file.
74310         * modules/xgetdomainname: New file.
74311         * MODULES.html.sh (func_all_modules): Add getdomainname,
74312         xgetdomainname.
74313
74314 2003-09-25  Simon Josefsson  <jas@extundo.com>
74315             Bruno Haible  <bruno@clisp.org>
74316
74317         * m4/getdomainname.m4: New file.
74318
74319 2003-09-25  Simon Josefsson  <jas@extundo.com>
74320             Bruno Haible  <bruno@clisp.org>
74321
74322         * lib/getdomainname.h: New file.
74323         * lib/getdomainname.c: New file.
74324
74325 2003-09-25  Karl Berry  <karl@gnu.org>
74326
74327         * lib/argp-fmtstream.c, argp-help.c: update from libc.
74328
74329 2003-09-25  Karl Berry  <karl@gnu.org>
74330
74331         * config/install-sh: update from automake.
74332
74333 2003-09-25  Bruno Haible  <bruno@clisp.org>
74334
74335         * modules/version-etc-2: New file, from modules/version-etc with
74336         modifications.
74337         * MODULES.html.sh (func_all_modules): Add version-etc-2.
74338
74339 2003-09-25  Bruno Haible  <bruno@clisp.org>
74340
74341         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
74342         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
74343
74344 2003-09-24  Simon Josefsson  <jas@extundo.com>
74345
74346         * modules/xgethostname: Add xgethostname.h.
74347
74348 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74349
74350         * lib/linebuffer.c (freebuffer): Don't free the argument, just
74351         the buffer associated with the argument.  Bug reported by
74352         Simon Josefsson.
74353
74354 2003-09-24  Paul Eggert  <eggert@twinsun.com>
74355
74356         * README: Document assumptions that 'int' is at least 32 bits
74357         wide, that integer arithmetic is 2's complement without overflow,
74358         that there are no holes in integer values, that adding sizes of
74359         two nonoverlapping objects can't overflow, and that all-bits-zero
74360         yields scalar zero.  Fix spelling and capitalization typos.
74361
74362 2003-09-19  Karl Berry  <karl@gnu.org>
74363
74364         * lib/argp.h: update from libc.
74365
74366 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74367
74368         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
74369         to avoid spurious warnings like "AC_RUN_IFELSE was called before
74370         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
74371
74372 2003-09-17  Paul Eggert  <eggert@twinsun.com>
74373
74374         * gnulib-tool: Use "test -h", not "test -L", for portability
74375         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
74376         (tags_regexp): Remove, since \| doesn't conform to POSIX.
74377         (sed_extract_prog): Issue s commands one-by-one, rather than
74378         using \| in one s command.
74379
74380 2003-09-16  Paul Eggert  <eggert@twinsun.com>
74381
74382         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
74383         input error, instead of returning NULL the next time we are called
74384         (and therefore losing track of errno).
74385
74386 2003-09-16  Bruno Haible  <bruno@clisp.org>
74387
74388         * gnulib-tool (func_create_testdir): Warn about duplicated
74389         dependencies.
74390
74391 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74392
74393         * modules/argmatch, modules/fatal, modules/obstack,
74394         modules/xalloc, modules/xgethostname: Sort dependencies by
74395         importance, not alphabetically.
74396
74397 2003-09-15  Paul Eggert  <eggert@twinsun.com>
74398
74399         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
74400         fails, so that the caller gets the proper errno.
74401
74402         * lib/readutmp.c (read_utmp): Likewise.
74403         Check for fstat error.  Close stream and free storage
74404         when failing.
74405
74406 2003-09-14  Karl Berry  <karl@gnu.org>
74407
74408         * config/srclist.txt (strdup.c): disable for c89 changes.
74409
74410 2003-09-14  Jim Meyering  <jim@meyering.net>
74411
74412         * lib/getloadavg.c: Correct cpp indentation.
74413         * lib/strdup.c: Likewise.
74414         * lib/vasnprintf.c: Likewise.
74415
74416 2003-09-14  Bruno Haible  <bruno@clisp.org>
74417
74418         * modules/fwriteerror: New file.
74419         * MODULES.html.sh (func_all_modules): Add fwriteerror.
74420
74421 2003-09-14  Bruno Haible  <bruno@clisp.org>
74422
74423         * lib/fwriteerror.h: New file.
74424         * lib/fwriteerror.c: New file.
74425
74426 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74427
74428         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
74429         modules/xgethostname, modules/xalloc: Depend on exit.
74430
74431 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74432
74433         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
74434
74435         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
74436         and AC_MINIX, too, so that their extensions are available.
74437
74438         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
74439         This macro has been superseded by gl_BACKUPFILE.
74440
74441         More patches to assume C89 or better.
74442
74443         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
74444
74445         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
74446         unconditionally.
74447         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
74448         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
74449         Include <string.h>, <stdlib.h> unconditionally.
74450         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
74451         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
74452         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
74453         headers or for string.h.
74454         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
74455         or strtoul.
74456
74457         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
74458         headers.
74459         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
74460         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74461         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
74462         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
74463         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74464         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
74465         memcpy, memset.
74466         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
74467         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
74468         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
74469         strtol.
74470         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
74471         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
74472         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
74473         strtoul.
74474
74475 2003-09-12  Paul Eggert  <eggert@twinsun.com>
74476
74477         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
74478         * lib/obstack.c [!defined _LIBC]: Likewise.
74479         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
74480         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
74481         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
74482
74483         More changes to assume C89 or better.
74484
74485         * lib/error.c (error_tail): Assume vprintf.
74486
74487         * lib/argmatch.c (getenv): Remove decl.
74488         * lib/progreloc.c (get_full_program_name): Define via prototype.
74489         * lib/setenv.c (clearenv): Likewise.
74490         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
74491         needed.
74492         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
74493         (malloc, memcpy): Remove decls.
74494         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
74495         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
74496         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74497         (memcpy): Remove macro.
74498         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
74499         (__P): Remove.  All uses removed.
74500         (PTR): Remove.  All uses changed to void *.
74501         (CHAR_BIT, NULL): Remove.
74502         (spaces, zeros, memset_space, memset_zero)
74503         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
74504         Remove.
74505         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
74506         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
74507         Define with prototype.
74508         Remove now-unnecessary prototype decl.
74509         (extra_args_spec): Assume ANSI C.  All uses changed.
74510         (extra_args_spec_iso): Remove.
74511         (my_strftime, emacs_strftimeu): Define via prototype.
74512         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
74513         unconditionally.
74514         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
74515         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
74516         (strtoul, strtol): Remove decls.
74517         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
74518         LONG_MAX): Remove.
74519         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
74520         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
74521         (LOCALE_PARAM_PROTO): New macro.
74522         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
74523         (INTERNAL (strtol), strtol): Define with a prototype.
74524         (PARAMS): Remove.  All uses removed.
74525         * lib/tempname.c: Include <string.h> unconditionally.
74526         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
74527         * lib/xgethostname.c (main): Define with a prototype.
74528         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
74529         Include <stdlib.h> unconditionally.
74530         (calloc, malloc, realloc, free): Remove decls.
74531         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
74532         Include <stdlib.h> unconditionally.  Sort include file names.
74533         (strtod): Remove.
74534         (xstrtod): Define with a prototype.
74535         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
74536         (strtol, strtoul): Remove decls.
74537
74538 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74539
74540         More patches to assume C89 or better.
74541         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
74542         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
74543         string.h, memchr, STDC_HEADERS.
74544
74545 2003-09-11  Paul Eggert  <eggert@twinsun.com>
74546
74547         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
74548         Include <stdlib.h>, <string.h> unconditionally.
74549         Remove now-unnecessary cast to char *.
74550         * lib/strnlen.c: Include <string.h> unconditionally.
74551         * lib/yesno.c (yesno): Define with a prototype.
74552
74553 2003-09-11  Bruno Haible  <bruno@clisp.org>
74554
74555         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
74556
74557 2003-09-10  Jim Meyering  <jim@meyering.net>
74558
74559         * lib/error.c: Correct indentation of cpp directives.
74560
74561 2003-09-10  Bruno Haible  <bruno@clisp.org>
74562
74563         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
74564         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
74565         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
74566         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
74567         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
74568         <stdlib.h> and <string.h> checks.
74569         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
74570         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
74571
74572 2003-09-10  Bruno Haible  <bruno@clisp.org>
74573
74574         * lib/strcspn.c: Include <string.h> unconditionally.
74575         * lib/strpbrk.c: Include <string.h> unconditionally.
74576         * lib/strstr.c: Include <string.h> unconditionally.
74577         * lib/unicodeio.c: Include <string.h> unconditionally.
74578         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
74579         * lib/unsetenv.c: Likewise.
74580         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
74581         * lib/yesno.c: Include <stdlib.h> unconditionally.
74582         (rpmatch): Add prototype.
74583
74584 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74585
74586         More patches to assume C89 or better.
74587         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
74588         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
74589         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
74590         or for string.h.
74591         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
74592         stdlib.h.
74593         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
74594         C headers.
74595         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
74596         string.h.
74597         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
74598         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
74599         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
74600         or for string.h.
74601         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
74602         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
74603         C headers.
74604         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
74605         memcpy.
74606         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
74607         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
74608         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
74609         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
74610         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
74611         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
74612         string.h, free.
74613         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
74614         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
74615         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
74616         C headers, or for string.h.
74617         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
74618         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
74619         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
74620         headers, memory.h, stdlib.h, string.h, strings.h.
74621         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
74622         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
74623         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
74624         strchr.
74625         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
74626         headers, memory.h, string.h.
74627         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
74628         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
74629         free.
74630         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
74631         headers.
74632         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
74633         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
74634         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
74635         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
74636         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
74637
74638 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74639
74640         More K&R removal.
74641
74642         * lib/acosl.c (main): Use a prototype.
74643         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
74644         tanl.c: Likewise.
74645
74646         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
74647
74648         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
74649         (getopt, etopt_long, getopt_long_only, _getopt_internal)
74650         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
74651         with a prototype.
74652         * lib/getopt.c (const): Remove macro.
74653         Include <string.h> unconditionally.
74654         (my_index): Remove; all uses changed to strchr.
74655         (strlen): Remove decl.
74656         (exchange): Remove forward decl; no longer needed.
74657         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
74658         Define with prototype.
74659         * lib/getopt1.c (const): Remove macro.
74660         (getopt_long, getopt_long_only, main): Define with prototype.
74661
74662         * lib/getugroups.c: Include <string.h> unconditionally.
74663
74664         * lib/getusershell.c: Include <stdlib.h> unconditionally.
74665         (getusershell, setusershell, endusershell, readname, main):
74666         Define with prototypes.
74667
74668         * lib/group-member.c: Include group-member.h first.
74669         Include <stdlib.h> unconditionally.
74670
74671         * lib/hard-locale.c: Include hard-locale.h first.
74672         Include <stdlib.h>, <string.h> unconditionally.
74673
74674         * lib/hash.c (free, malloc): Remove decls.
74675         Include <stdlib.h> unconditionally.
74676
74677         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
74678         (getenv): Do not declare.
74679
74680         * lib/idcache.c: Include <string.h> unconditionally.
74681
74682         * lib/long-options.c: Include long-options.h first, to test interface.
74683         Include <stdlib.h> unconditionally.
74684
74685         * lib/makepath.c: Include makepath.h first, to test interface.
74686         Include <stdlib.h> and <string.h> unconditionally.
74687
74688         * lib/linebuffer.c: Include <stdlib.h>.
74689         (free): Remove decl.
74690
74691         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
74692         stddef.h. rpl_malloc returns void *, not char *.
74693         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
74694         prototype.
74695
74696         * lib/md5.h: Include <limits.h> unconditionally.
74697         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
74698         (__P): Remove; all uses removed.
74699         * lib/md5.c: Include "md5.h" first.
74700         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
74701         md5_buffer, md5_process_bytes, md5_process_block):
74702         Define with prototypes.
74703         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
74704         * lib/sha.c: Include "sha.h" first.
74705         Include <stdlib.h>, <string.h> unconditionally.
74706
74707         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
74708         * lib/memcmp.c (__ptr_t): Likewise.
74709         * lib/memrchr.c (__ptr_t): Likewise.
74710         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
74711         Include <string.h> unconditionally.
74712         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
74713         * lib/memchr.c: Include <stdlib.h> unconditionally.
74714         * lib/memchr.c (LONG_MAX): Remove.
74715         * lib/memrchr.c (LONG_MAX): Likewise.
74716         * lib/memchr.c (__memchr): Define via a prototype.
74717         * lib/memrchr.c (__memrchr): Likewise.
74718         * lib/memcmp.c (__P): Remove, and remove all uses.
74719         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
74720         Remove forward decls; no longer needed.
74721         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
74722         Use types required by C89 in prototype.
74723
74724         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
74725         * lib/savedir.c: Likewise.
74726         * lib/mkdir.c (free): Remove decl.
74727         * lib/rmdir.c (rmdir): Define with a prototype.
74728         * lib/savedir.c: Include savedir.h first, to test interface.
74729
74730         * lib/mktime.c (STDC_HEADERS): Remove.
74731         Include <stdlib.h>, <string.h> unconditionally.
74732
74733         * lib/modechange.c: Include <stdlib.h> unconditionally.
74734         (malloc): Remove decl.
74735
74736         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
74737         (free): Remove decl.
74738
74739         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
74740         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
74741         (This type really should be intptr_t, but that's a C99ism.)
74742         (_obstack_memcpy): Remove: all uses changed to memcpy.
74743         Include <string.h> unconditionally.
74744         (struct obstack): Assume __STDC__ for types of members
74745         chunkfun, freefun, extra_arg.
74746         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
74747         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
74748         obstack_begin, obstack_specify_allocation,
74749         obstack_specify_allocation_with_arg, obstack_chunkfun,
74750         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
74751         Remove unprototyped decls and the macros that use them.
74752         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
74753         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
74754         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
74755         (defined __STDC__ && __STDC__)]:
74756         Remove nonprototyped code.
74757         Include <stdlib.h> unconditionally.
74758         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
74759         _obstack_allocated_p, _obstack_free, obstack_free,
74760         _obstack_memory_used, print_and_abort):
74761         Define using prototypes.
74762         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
74763         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
74764         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
74765         obstack_next_free, obstack_object_size, obstack_room) [0]:
74766         Remove unused, unprototyped code.
74767
74768         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
74769
74770         * lib/physmem.c (physmem_total, physmem_available, main): Define
74771         with prototypes.
74772
74773         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
74774         (main): Define with a prototype.
74775
74776         * lib/posixver.c (getenv): Remove decl.
74777
74778         * lib/putenv.c (malloc): Returns void *, not char *.
74779         Include <string.h> unconditionally.
74780         (strchr, memcpy, NULL): Do not define.
74781
74782         * lib/readtokens.c: Include readtokens.h first, to test interface.
74783         Include <stdlib.h>, <string.h> unconditionally.
74784         (init_tokenbuffer): Define with a prototype.
74785
74786         * lib/regex.c (PARAMS): Remove.  All uses removed.
74787         All uses of _RE_ARGS removed, too.
74788         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74789         unconditionally.
74790         (bzero): Assume memset exists.
74791         (memcmp, memcpy, NULL): Remove.
74792         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
74793         char, or assignments to local vars of type signed char.
74794         (init_syntax_once, PREFIX(extract_number_and_incr),
74795         PREFIX(print_partial_compiled_pattern),
74796         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
74797         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
74798         PREFIX(regex_grow_registers), PREFIX(regex_compile),
74799         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
74800         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
74801         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
74802         wcs_compile_range, byte_compile_range, truncate_wchar,
74803         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
74804         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
74805         count_mbs_length, wcs_re_match_2_internal,
74806         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
74807         PREFIX(alt_match_null_string_p),
74808         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
74809         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
74810         regfree, PREFIX(extract_number)): Define with prototype.  Remove
74811         now-unnecessary declaration, if any.
74812         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
74813         regcomp, regexec):
74814         Remove now-unnecessary casts among pointer types.
74815         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
74816
74817         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
74818         (free): Remove decl.
74819
74820         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
74821
74822         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
74823         (free): Remove decl.
74824
74825         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
74826         * lib/xgetcwd.c: Likewise.
74827
74828         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
74829         (free): Remove decl.
74830
74831         * lib/strchrnul.c (strchrnul): Define with a prototype.
74832         Fix bug: c_in was not converted to char before searching.
74833
74834         The following changes are not K&R related:
74835
74836         * lib/group-member.h: Include <sys/types.h>, so that this file is
74837         self-contained.
74838         * lib/makepath.h: Likewise.
74839
74840         * lib/getusershell.c (readname, default_index, line_size, readname):
74841         Use size_t, not int, for sizes.
74842         (readname): If the size overflows, report an error instead of
74843         looping forever.
74844
74845 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74846
74847         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
74848         libc.
74849
74850 2003-09-09  Paul Eggert  <eggert@twinsun.com>
74851
74852         * README: New section: portability guidelines.
74853
74854 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74855
74856         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
74857         C89 spec.
74858
74859 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
74860
74861         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
74862
74863 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74864
74865         Assume C89 or better; remove K&R cruft.
74866         A few of these changes were first proposed by Derek Robert Price
74867         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
74868
74869         * lib/addext.c: Include <string.h> unconditionally.
74870         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
74871         Don't declare getenv or malloc.
74872
74873         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
74874         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
74875         (NULL): Remove.
74876         (find_stack_direction, alloca): Use prototypes.
74877
74878         * lib/atexit.c (atexit): Define using a prototype.
74879
74880         * lib/basename.c, dirname.c, stripslash.c:
74881         Include <string.h> unconditionally.
74882
74883         * lib/bcopy.c: Include <stddef.h>.
74884         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
74885
74886         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
74887
74888         * lib/error.h (error, error_at_line, error_print_progname)
74889         [! (defined (__STDC__) && __STDC__)]: Remove decls.
74890         * lib/error.c: Include error.h first, to check interface.
74891         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74892         (VA_START): Remove; all uses changeed to va_start.
74893         (exit, strerror): Remove decls.
74894         (error_print_progname): Prototype uncondionally.
74895         Don't include <errno.h>; no longer needed.
74896         (private_strerror): Remove.
74897         (error_tail): Always define.
74898         (error, error_at_line): Assume C89 or better; always use prototypes.
74899         * lib/fatal.c: Include "fatal.h" first, to test interface.
74900         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
74901         (VA_START): Remove; all uses changed to va_start.
74902         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
74903         this case.
74904         (exit): Remove decl.
74905         (fatal): Prototype unconditionally.  Assume va_start works.
74906         Abort at end, to pacify gcc.
74907
74908         * lib/euidaccess.c (main): Define with a prototype.
74909
74910         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
74911
74912         * lib/exitfail.c: Include <stdlib.h> unconditionally.
74913
74914         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
74915         prototypes.
74916         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
74917         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
74918         (getenv): Remove decl.
74919         (fnmatch): Define using a prototype.
74920         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
74921         (FCT): Define using a prototype.
74922
74923         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
74924
74925         * lib/gethostname.c: Include <stddef.h>.
74926         (gethostname): Define with prototype.  Length is size_t, not int.
74927
74928 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74929
74930         Assume C89 or better; remove K&R cruft.
74931         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
74932         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
74933         string.h, getenv, malloc.
74934         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
74935         headers.
74936         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
74937         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
74938         do not check for strerror.
74939         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
74940         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
74941         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
74942         do not check for doprnt or vprintf.
74943         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
74944         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
74945
74946 2003-09-08  Paul Eggert  <eggert@twinsun.com>
74947
74948         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
74949         getversion.c should have been removed then, but was accidentally
74950         preserved.
74951
74952         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
74953         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
74954
74955 2003-09-08  Karl Berry  <karl@gnu.org>
74956
74957         * config/config.sub, config.guess, srclistvars.sh: update from savannah
74958                 config, forget about prep.
74959
74960         * config/depcomp, missing: update from automake.
74961
74962 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74963
74964         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
74965         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74966
74967 2003-09-07  Paul Eggert  <eggert@twinsun.com>
74968
74969         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
74970         copy_tm_result.  Bug reported by Simon Josefsson in
74971         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
74972
74973 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74974
74975         * m4/time_r.m4: New file.
74976         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
74977         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
74978         is. Check for timegm declaration.
74979         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
74980         Do not check for gmtime_r.
74981         Replace mktime if __mktime_internal does not exist and if mktime
74982         hasn't been replaced already.
74983
74984 2003-09-06  Paul Eggert  <eggert@twinsun.com>
74985
74986         * lib/time_r.c, lib/time_r.h: New files.
74987
74988         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
74989         __localtime_r.
74990         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
74991         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
74992
74993         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
74994         __gmtime_r.
74995         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
74996         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
74997         Include <time_r.h>.
74998
74999         * lib/timegm.c: Switch to glibc implementation, with the following
75000         changes:
75001         [defined HAVE_CONFIG_H]: Include <config.h>.
75002         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
75003         (__mktime_internal) [!defined _LIBC]: New decl.
75004         (__gmtime_r) [!defined _LIBC]: New macro and function.
75005         (timegm): Use a prototype, since gnulib assumes C89.
75006         Do not bother declaring tmp to be const, as it's not really usefu.
75007         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
75008         (timegm): Declare only if HAVE_DECL_TIMEGM.
75009
75010 2003-09-06  Paul Eggert  <eggert@twinsun.com>
75011
75012         * MODULES.html.sh (func_all_modules): Add time_r.
75013         * modules/time_r: New file.
75014         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
75015         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
75016
75017 2003-09-03  Paul Eggert  <eggert@twinsun.com>
75018
75019         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
75020         Bug reported by Lute Kamstra in
75021         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
75022
75023         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
75024         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
75025         course with correspondingly smaller numbers for tomorrow and
75026         yesterday.  From Tadayoshi Funaba.  Originally installed into
75027         sh-utils on 1999-08-07, but the patch got lost (I guess during the
75028         coreutils merge?).
75029
75030 2003-08-31  Simon Josefsson  <jas@extundo.com>
75031
75032         * modules/timegm: New file.
75033         * MODULES.html.sh (func_all_modules): Add timegm.
75034
75035 2003-08-31  Simon Josefsson  <jas@extundo.com>
75036
75037         * m4/timegm.m4: New file.
75038
75039 2003-08-31  Simon Josefsson  <jas@extundo.com>
75040
75041         * lib/timegm.h: New file.
75042         * lib/timegm.c: New file.  Based on
75043         wget-1.8.2/src/http.c:mktime_from_utc.
75044
75045 2003-08-31  Karl Berry  <karl@gnu.org>
75046
75047         * lib/argp.h: update from libc.
75048
75049 2003-08-28  Bruno Haible  <bruno@clisp.org>
75050
75051         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
75052         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
75053         followed by '#define fnmatch fnmatch_posix' gives an error.
75054
75055 2003-08-28  Bruno Haible  <bruno@clisp.org>
75056
75057         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
75058         warning on QNX, which defines O_BINARY to 000000.
75059
75060 2003-08-27  Jim Meyering  <jim@meyering.net>
75061
75062         * m4/mkstemp.m4: Require that the system mkstemp be able to create
75063         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
75064         would fail after 32.  Reported by Danny Levinson.  Details here:
75065         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
75066
75067 2003-08-24  Bruno Haible  <bruno@clisp.org>
75068
75069         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
75070         MSVC7 <stdio.h> is included later.
75071
75072 2003-08-22  Simon Josefsson  <jas@extundo.com>
75073
75074         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
75075
75076 2003-08-20  Karl Berry  <karl@gnu.org>
75077
75078         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
75079
75080 2003-08-20  Bruno Haible  <bruno@clisp.org>
75081
75082         * modules/progname: New file.
75083         * MODULES.html.sh (func_all_modules): Add progname.
75084
75085 2003-08-20  Bruno Haible  <bruno@clisp.org>
75086
75087         * lib/progname.h: New file, from GNU gettext.
75088         * lib/progname.c: New file, from GNU gettext.
75089         * lib/progreloc.c: New file, from GNU gettext.
75090
75091 2003-08-19  Jim Meyering  <jim@meyering.net>
75092
75093         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
75094         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
75095
75096 2003-08-19  Bruno Haible  <bruno@clisp.org>
75097
75098         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
75099         more.
75100
75101 2003-08-19  Bruno Haible  <bruno@clisp.org>
75102
75103         * lib/xstrdup.c: Assume <string.h> exists.
75104
75105 2003-08-18  Paul Eggert  <eggert@twinsun.com>
75106
75107         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
75108         in makefile rules.
75109
75110 2003-08-18  Jim Meyering  <jim@meyering.net>
75111
75112         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
75113         * m4/lib-ld.m4: Likewise.
75114
75115 2003-08-18  Jim Meyering  <jim@meyering.net>
75116
75117         * lib/setenv.h: Indent nested cpp directive.
75118         * lib/vasnprintf.c: Remove trailing blanks.
75119
75120 2003-08-17  Simon Josefsson  <jas@extundo.com>
75121
75122         * modules/xstrndup: New file.
75123         * MODULES.html.sh (func_all_modules): Add xstrndup.
75124
75125 2003-08-17  Simon Josefsson  <jas@extundo.com>
75126
75127         * modules/argp: Fix autoconf macro name. Add more dependencies.
75128
75129 2003-08-17  Simon Josefsson  <jas@extundo.com>
75130
75131         * m4/xstrndup.m4: New file.
75132
75133 2003-08-17  Simon Josefsson  <jas@extundo.com>
75134
75135         * m4/argp.m4: New file.
75136
75137 2003-08-17  Simon Josefsson  <jas@extundo.com>
75138             Bruno Haible  <bruno@clisp.org>
75139
75140         * lib/xstrndup.h: New file.
75141         * lib/xstrndup.c: New file.
75142
75143 2003-08-17  Bruno Haible  <bruno@clisp.org>
75144
75145         * modules/strndup (Files, Include): Add lib/strndup.h.
75146
75147 2003-08-17  Bruno Haible  <bruno@clisp.org>
75148
75149         * modules/euidaccess (Files): Add lib/euidaccess.h.
75150
75151 2003-08-17  Bruno Haible  <bruno@clisp.org>
75152
75153         * lib/strndup.h: New file.
75154
75155 2003-08-17  Bruno Haible  <bruno@clisp.org>
75156
75157         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
75158         like AC_GNU_SOURCE.
75159         * modules/extensions (configure.ac): Comment out the invocation of
75160         gl_USE_SYSTEM_EXTENSIONS.
75161
75162 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75163
75164         Merges from coreutils, etc.
75165         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
75166         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
75167         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
75168         fixing a typo.
75169         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
75170         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
75171
75172 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75173
75174         Document merge from coreutils.
75175         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
75176         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
75177         * modules/utime: Add m4/utimes-null.m4.
75178
75179 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75180
75181         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
75182         space, undoing this 2003-08-12 change:
75183         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75184
75185 2003-08-16  Paul Eggert  <eggert@twinsun.com>
75186
75187         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
75188         strtoul.c from libc, undoing this 2003-08-12 change:
75189         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
75190
75191 2003-08-16  Jim Meyering  <jim@meyering.net>
75192
75193         Merges from coreutils.
75194         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
75195         prefix.  Adjust cache variables similarly.  Create 500 rather than
75196         just 300 files, to exercise bug on Darwin6.5, too.
75197         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
75198         $missing_dir.
75199         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
75200         AM_SYS_POSIX_TERMIOS.
75201         Reported by mkc@mathdogs.com.
75202         Also change use of $am_cv_sys_posix_termios
75203         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
75204         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
75205         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
75206         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
75207         in /proc/mounts until it finds one with matching device number.  This
75208         is unnecessary when the FILE argument *is* a mount point.  No stat call
75209         is necessary in that case.  So, disable the statvfs-testing code on
75210         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
75211         as RedHat bug# 84846.
75212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75213         to 1MB, so as not to render systems with no stack size limit (e.g.,
75214         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75215         Include <unistd.h>.  On some systems,
75216         it is required for the definition of _SC_PAGESIZE.
75217
75218 2003-08-16  Jim Meyering  <jim@meyering.net>
75219
75220         Merge from coreutils.
75221         * lib/xstrtoimax.c: #else #if -> #elif.
75222         * lib/xstrtoumax.c: Likewise.
75223
75224 2003-08-16  Jim Meyering  <jim@meyering.net>
75225
75226         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
75227         * m4/utimes.m4: Removed.
75228         * m4/utimes-null.m4: Renamed from utimes.m4.
75229
75230         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
75231         to 1MB, so as not to render systems with no stack size limit (e.g.,
75232         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
75233         Include <unistd.h>.  On some systems,
75234         it is required for the definition of _SC_PAGESIZE.
75235
75236 2003-08-16  Jim Meyering  <jim@meyering.net>
75237         and Paul Eggert  <eggert@cs.ucla.edu>
75238
75239         Merges from coreutils, etc.
75240
75241         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
75242         using the latest version from cvs.  This avoids problems with #line
75243         directives using a vendor (Sun) compiler.
75244         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
75245         Don't set GETGROUPS_LIB here; now it's
75246         done via getgroups.m4's wrapper function.
75247         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
75248         rather than just in sh-util/configure.in, so that the
75249         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
75250         same.
75251         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
75252         AC_FUNC_GETLOADAVG where to find getloadavg.c.
75253         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
75254         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
75255         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
75256         Remove code that is now done by the newly-required macros.
75257         Append $(EXEEXT) to DF_PROG.
75258         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
75259         Do not invoke or require the following here,
75260         since prereq.m4 or some gnulib .m4 now does this for us:
75261         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
75262         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
75263         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
75264         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
75265         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
75266         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
75267         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
75268         AC_FUNC_OBSTACK.
75269         Do not replace the following functions, as this is now the job
75270         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
75271         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
75272         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
75273         atexit getpass, strdup, getpagesize.
75274         Replace 'raise'.
75275         Do not check for the following functions, as this is now the job
75276         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
75277         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
75278         setregid.
75279         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
75280         Check for sys/sysctl.h.
75281         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
75282         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
75283         of checking for ssize_t ourselves.
75284
75285         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
75286         Require every macro that gnulib/modules/* suggests for us.
75287         (jm_PREREQ_ADDEXT): New macro.
75288         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
75289         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
75290
75291         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
75292         (gl_PHYSMEM): Use it.
75293         Also check for `table' function.
75294         Check for new headers and functions.
75295         Add check for sys/sysmp.h.
75296         With suggestions from Kaveh Ghazi.
75297         Ignore headers that are present but cannot be compiled.  This
75298         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
75299         C 5.4.
75300
75301 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75302
75303         Document merge from coreutils.
75304         * modules/userspec: Depend on posixver.
75305         * modules/strftime: Depend on tzset.
75306
75307 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75308
75309         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
75310         rather than tab, after '#' in shell-script copyright notices.
75311         Suggested by Bruno Haible.
75312
75313 2003-08-15  Paul Eggert  <eggert@twinsun.com>
75314
75315         * config/srclist-update: Use three spaces, rather than tab, after '#'
75316         in shell-script copyright notices.  Suggested by Bruno Haible.
75317         Remove unnecessary parenthesization in regular expression.
75318
75319 2003-08-15  Jim Meyering  <jim@meyering.net>
75320
75321         Merge from coreutils.
75322         * lib/xgethostname.c: Include <stdlib.h>.
75323         (xghostname): Don't exit for anything other than memory-related
75324         failure; just return NULL.
75325         * lib/userspec.c: Include "posixver.h".
75326         (parse_user_spec): Accept `.' as a separator only
75327         in pre-POSIX-200112 mode.
75328         * lib/strtoimax.c: Use #elif rather than #else #if.
75329         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
75330         Remove function, now that we can rely on a working tzset function.
75331         [!_LIBC]: Ensure that the required autoconf test has been run.
75332         [!defined _NL_CURRENT && HAVE_STRFTIME]:
75333         Use underlying_strftime for %r.
75334         * lib/sha.c: Merge in some clean-up and optimization changes from
75335         glibc.
75336         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
75337         Ensure that it is a multiple of 64.
75338         Rearrange loop exit tests so as to avoid performing an
75339         additional fread after encountering an error or EOF.
75340         * lib/realloc.c: Update copyright date.
75341
75342 2003-08-15  Jim Meyering  <jim@meyering.net>
75343         and Paul Eggert  <eggert@twinsun.com>
75344
75345         Merge from coreutils.
75346         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
75347         member but strut utmpx does not.  Needed for AIX 4.3.3.
75348         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
75349
75350 2003-08-15  Jim Meyering  <jim@meyering.net>
75351         and Paul Eggert  <eggert@cs.ucla.edu>
75352
75353         Merges from coreutils, etc.
75354         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
75355         Require gl_FUNC_TZSET_CLOBBER.
75356         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
75357         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
75358         members.
75359
75360 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75361
75362         Help the merge from coreutils.
75363         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
75364         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
75365         * m4/tzset.m4: Use it too.
75366
75367 2003-08-14  Paul Eggert  <eggert@twinsun.com>
75368
75369         * modules/tzset: New file.
75370
75371 2003-08-14  Jim Meyering  <jim@meyering.net>
75372
75373         Merges from coreutils.
75374         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
75375         variable names, rather than @FNMATCH_H@.
75376         * modules/alloca: Likewise for $(ALLOCA_H).
75377
75378         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
75379         the three copies of the literal target, `fnmatch.h'.
75380         * modules/alloca (alloca.h): Likewise.
75381
75382 2003-08-14  Jim Meyering  <jim@meyering.net>
75383
75384         Merge from coreutils.
75385         * m4/tzset.m4: New file.
75386         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
75387         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
75388         otherwise, AIX 5.1 systems would end up using the latter.
75389         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
75390         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
75391         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
75392         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
75393
75394 2003-08-14  Jim Meyering  <jim@meyering.net>
75395
75396         Merge from coreutils.
75397         * lib/obstack.h: Whitespace changes.
75398         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
75399         and xcalloc return values.
75400         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
75401         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
75402         hang on OSF/1 5.1 for DIR on both local and remote file systems.
75403         Reported by (and fix confirmed by) Nelson H. F. Beebe.
75404         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75405         error from mntctl.
75406         Use mntctl's return value to drive the entry-processing loop, since
75407         we can't rely on the value of the vmt_length member in the last
75408         entry.  On some systems doing so could result in exhausting
75409         virtual memory.  Based in part on a patch from Mike Jetzer.
75410
75411 2003-08-14  Jim Meyering  <jim@meyering.net>
75412         and Paul Eggert  <eggert@twinsun.com>
75413
75414         Merges from coreutils, plus other fixes.
75415         * lib/physmem.c: Merge in portability changes from gcc/libiberty
75416         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
75417         for credits and details.  Thanks to Kaveh Ghazi for helping
75418         to keep these files in sync.
75419         (ARRAY_SIZE): Define it.
75420         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
75421         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
75422         (memcasecmp): Don't assume size_t fits in unsigned int.
75423         Remove casts and duplicate code.
75424         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
75425         (memcpy): Remove definition.
75426         Merge in some clean-up and optimization changes from glibc.
75427         [BLOCKSIZE]: Move definition to top of file.
75428         Ensure that it is a multiple of 64.
75429         Rearrange loop exit tests so as to avoid performing an
75430         additional fread after encountering an error or EOF.
75431         * lib/md5.h (md5_uintptr): Define.
75432         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
75433         return to the initial working directory.  Preserve errno
75434         for caller.
75435         * lib/idcache.c: Include "xalloc.h".
75436         (xmalloc, xrealloc): Remove decls.
75437         (getuser): Remove casts no longer required in C89.
75438         * lib/human.c: Include stdio.h, for sprintf.
75439         * lib/group-member.c: Include "xalloc.h".
75440         (xmalloc, xrealloc): Remove decls.
75441         (get_group_info): Remove casts no longer required in C89.
75442         * lib/getusershell.c (readname): Remove casts no longer required in
75443         C89.
75444         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
75445         * lib/getline.c: Whitespace fix, from coreutils.
75446
75447 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75448
75449         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
75450         Check for isascii.
75451
75452         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75453         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75454         Undo previous (whitespace-only) change.
75455
75456 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75457
75458         * lib/exclude.c: Include <ctype.h>
75459         (IN_CTYPE_DOMAIN): New macro.
75460         (is_space): New fn.
75461         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
75462         and empty lines.
75463
75464         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75465         Undo previous (whitespace-only) change.
75466
75467 2003-08-13  Paul Eggert  <eggert@twinsun.com>
75468
75469         * config/srclist-update: Change update back to the old behavior,
75470         leaving whitespace alone.  Use one 'sed' command rather than a
75471         pipeline.
75472         (fixlicense): Now a variable, not a function.
75473         (remove_trailing_blanks): Remove.
75474         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
75475         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75476         Undo previous (whitespace-only) change.
75477
75478 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75479
75480         Merge from coreutils.
75481         * modules/euidaccess: Add lib_SOURCES, include for new
75482         file euidaccess.h
75483
75484 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75485
75486         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
75487         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
75488         Normalize leading white space and remove trailing white space.
75489
75490         Merge from coreutils
75491         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
75492
75493         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
75494         0.12.1.  These files are now being upgraded automatically by
75495         ../config/srclist-update.
75496
75497 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75498
75499         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
75500         Normalize leading white space and remove trailing white space.
75501         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
75502         notice, as per ../config/srclist-update.
75503
75504         Merge from coreutils.
75505         * lib/euidaccess.h: New file.
75506         * lib/euidaccess.c: Include it.
75507         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
75508         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
75509         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
75510
75511 2003-08-12  Paul Eggert  <eggert@twinsun.com>
75512
75513         * config/srclist-update: Add copyright notice.
75514         (remove_id_lines, remove_trailing_blanks): New constants.
75515         (fixfile): Use them to normalize spacing a bit in copied files.
75516         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
75517         Normalize leading white space and remove trailing white space.
75518
75519         * config/texinfo.tex: Sync with texinfo.
75520
75521         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
75522         strtoul.c from libc, to merge coreutils whitespace changes.
75523
75524         * config/srclist.txt: Get the following m4 files from gettext:
75525         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
75526         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
75527         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
75528         wint_t.m4.
75529
75530 2003-08-12  Karl Berry  <karl@gnu.org>
75531
75532         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
75533         been made.
75534
75535 2003-08-11  Paul Eggert  <eggert@twinsun.com>
75536
75537         * modules/gnu-source, m4/gnu-source.m4:
75538         Remove; we're assuming Autoconf 2.54 or later now.
75539         Suggested by Bruno Haible.
75540         * MODULES.html.sh (func_all_modules): Remove gnu-source.
75541
75542 2003-08-11  Bruno Haible  <bruno@clisp.org>
75543
75544         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
75545
75546 2003-08-11  Bruno Haible  <bruno@clisp.org>
75547
75548         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
75549         (vasnprintf): Use it instead of wcslen.
75550
75551 2003-08-11  Bruno Haible  <bruno@clisp.org>
75552
75553         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
75554         value to ensure that _Bool promotes to int. Use #define for _Bool when
75555         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
75556
75557 2003-08-10  Karl Berry  <karl@gnu.org>
75558
75559         * lib/regex.h: update from libc (whitespace fix).
75560
75561 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75562
75563         Merge some files from coreutils.  These changes were
75564         originally made by Jim Meyering.
75565         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
75566         many older Unixes require this.
75567         * lib/alloca.c (alloca): Remove cast to argument of free;
75568         no longer needed in C89.
75569         * lib/alloca_.h, regex.h: Fix white space to match
75570         what GNU indent does.
75571
75572 2003-08-09  Paul Eggert  <eggert@twinsun.com>
75573
75574         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
75575         apparently Emacs's Unicode mode got confused before my 2003-08-05
75576         checkin.
75577
75578 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75579
75580         * m4/extensions.m4: New file.
75581         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
75582         Require gl_USE_SYSTEM_EXTENSIONS.
75583         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
75584         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
75585
75586 2003-08-08  Paul Eggert  <eggert@twinsun.com>
75587
75588         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
75589         * modules/extensions, modules/gnu-source: New files.
75590         * modules/timespec, modules/unlocked-io: Depend on extensions.
75591
75592 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75593
75594         * modules/restrict: New file.
75595         * MODULES.html.sh (func_all_modules): Add restrict.
75596         * modules/regex: Depend on restrict.
75597
75598 2003-08-07  Paul Eggert  <eggert@twinsun.com>
75599
75600         * m4/restrict.m4: New file.
75601         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
75602
75603 2003-08-07  Bruno Haible  <bruno@clisp.org>
75604
75605         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
75606         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
75607
75608 2003-08-07  Bruno Haible  <bruno@clisp.org>
75609
75610         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
75611         makes the module 'getndelim2' compatible with the module 'getline'.
75612
75613 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75614
75615         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
75616         byte with "\201" to avoid glitches when editing that source file
75617         with multi-gnome-terminal.
75618
75619 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75620
75621         * lib/bumpalloc.h: Remove.
75622
75623 2003-08-05  Paul Eggert  <eggert@twinsun.com>
75624
75625         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
75626         * modules/bumpalloc: Remove.
75627
75628 2003-08-04  Paul Eggert  <eggert@twinsun.com>
75629
75630         * lib/getloadavg.c: Change copyright notice and spacing to conform to
75631         GNU coding style.
75632
75633         Merge from coreutils.
75634         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
75635         1. From glibc.
75636         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
75637         from Karl Berry, implemented by Jim Meyering.
75638         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
75639         from Dmitry V. Levin.
75640         Remove anachronistic cast of xrealloc.
75641         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
75642         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
75643         type. Otherwise, it wouldn't compile with at least /bin/cc on
75644         ymp-cray-unicos9.0.2.X.
75645         Combine two mostly-identical uses of alloca into one.
75646         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
75647
75648 2003-08-04  Dave Love  <d.love@dl.ac.uk>
75649
75650         [From Emacs.]
75651
75652         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
75653         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
75654         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
75655         obsolete NLIST_NAME_UNION.
75656         [__GNU__]: Undef BSD and FSCALE.
75657         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
75658
75659 2003-08-03  Paul Eggert  <eggert@twinsun.com>
75660
75661         * lib/stdbool_.h (_Bool): Make it signed char, instead of
75662         an enum type, so that it's guaranteed to promote to int.  See:
75663         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
75664
75665 2003-08-03  Karl Berry  <karl@gnu.org>
75666
75667         * config/depcomp: update from automake.
75668
75669 2003-07-31  Paul Eggert  <eggert@twinsun.com>
75670
75671         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
75672         (strerror): Don't assume that a printable int fits in 14 bytes.
75673
75674 2003-07-31  Bruno Haible  <bruno@clisp.org>
75675
75676         * modules/getpass-gnu: New file.
75677         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
75678
75679 2003-07-31  Bruno Haible  <bruno@clisp.org>
75680
75681         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
75682
75683 2003-07-24  Karl Berry  <karl@gnu.org>
75684
75685         * config/missing: update from automake.
75686
75687 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
75688             Bruno Haible  <bruno@clisp.org>
75689
75690         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
75691         * lib/getline.c (getline, getdelim): Likewise.
75692         Remove _GNU_SOURCE define; now it's defined in config.h through
75693         m4/getline.m4.
75694
75695 2003-07-23  Karl Berry  <karl@gnu.org>
75696
75697         * config/config.sub: update from prep.
75698
75699 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75700
75701         * modules/xalloc (Depends-on): Add exitfail.
75702         * modules/xmemcoll: Likewise.
75703
75704 2003-07-22  Paul Eggert  <eggert@twinsun.com>
75705
75706         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
75707         over-parenthesization in macros.
75708
75709         Sync with coreutils.
75710
75711         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
75712         required by C99.
75713
75714         Use `exit_failure' for xalloc and xmemcoll instead of their own
75715         private exit-failure variables.
75716         * lib/xalloc.h (xalloc_exit_failure): Remove.
75717         * lib/xmalloc.c: Likewise.  Include exitfail.h.
75718         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
75719         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
75720         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
75721         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
75722
75723 2003-07-20  Jim Meyering  <jim@meyering.net>
75724
75725         * modules/closeout (Depends-on): Add exitfail.
75726         Suggestion from Bruno Haible.
75727
75728 2003-07-19  Karl Berry  <karl@gnu.org>
75729
75730         * config/config.sub: update from prep.
75731
75732 2003-07-18  Paul Eggert  <eggert@twinsun.com>
75733
75734         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
75735         Remove.
75736         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
75737         to test that it can stand by itself.  Include "exitfail.h".
75738         Clients should set exit_failure instead.
75739         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
75740
75741 2003-07-18  Bruno Haible  <bruno@clisp.org>
75742
75743         * modules/getndelim2: New file.
75744         * modules/getline: Share files with module getndelim2.
75745         * modules/getnline: Depend on getndelim2 instead of sharing files with
75746         it. Add getnline.c to lib_SOURCES.
75747         * MODULES.html.sh (func_all_modules): Add getndelim2.
75748
75749 2003-07-18  Bruno Haible  <bruno@clisp.org>
75750
75751         * m4/getndelim2.m4: New file.
75752         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
75753         invoke gl_PREREQ_GETNDELIM2.
75754         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
75755         gl_PREREQ_GETNDELIM2.
75756         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
75757         gl_GETNDELIM2.
75758
75759 2003-07-18  Bruno Haible  <bruno@clisp.org>
75760
75761         * lib/getndelim2.h: New file.
75762         * lib/getndelim2.c: Make into a module of its own. Include config.h,
75763         getndelim2.h.
75764         (getndelim2): Make non-static. Change return type to ssize_t.
75765         * lib/getline.h: Change argument names.
75766         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
75767         * lib/getnline.c: Include getndelim2.h.
75768
75769 2003-07-18  Andreas Schwab  <schwab@suse.de>
75770
75771         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
75772
75773 2003-07-17  Karl Berry  <karl@gnu.org>
75774
75775         * config/config.sub: update from prep.
75776
75777 2003-07-17  Bruno Haible  <bruno@clisp.org>
75778
75779         * modules/getnline: New file.
75780         * modules/getline: Add lib/getndelim2.c to source file list.
75781         * MODULES.html.sh (func_all_modules): Add getnline.
75782
75783 2003-07-17  Bruno Haible  <bruno@clisp.org>
75784
75785         * m4/getnline.m4: New file.
75786
75787 2003-07-17  Bruno Haible  <bruno@clisp.org>
75788
75789         * m4/Makefile.am.in: Remove file.
75790         * m4/Makefile.am: Remove file.
75791         * m4/Makefile.in: Remove file.
75792
75793 2003-07-17  Bruno Haible  <bruno@clisp.org>
75794
75795         * lib/getnline.h: New file.
75796         * lib/getnline.c: New file.
75797         * lib/getndelim2.c: New file, extracted from getline.c.
75798         (getndelim2): Renamed from getdelim2, with added nmax argument.
75799         * lib/getline.c: Include getndelim2.c.
75800         (getdelim2): Moved out to getndelim2.c.
75801         (getline, getdelim): Update.
75802
75803 2003-07-17  Bruno Haible  <bruno@clisp.org>
75804
75805         * lib/Makefile.am: Remove file.
75806         * lib/Makefile.in: Remove file.
75807
75808 2003-07-17  Bruno Haible  <bruno@clisp.org>
75809
75810         * configure.in: Remove file.
75811         * Makefile.in: Remove file.
75812
75813 2003-07-17  Bruno Haible  <bruno@clisp.org>
75814
75815         * MODULES.html.sh: Put the </BODY> right before </HTML>.
75816
75817 2003-07-16  Karl Berry  <karl@gnu.org>
75818
75819         * config/srclist-update: was running fixlicense twice, which caused
75820                 texinfo.tex to be nullified for some reason.  Simplify,
75821                 $gplsrc is no longer needed as far as I can see?
75822
75823 2003-07-16  Jim Meyering  <jim@meyering.net>
75824
75825         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
75826
75827 2003-07-15  Paul Eggert  <eggert@twinsun.com>
75828
75829         * config/srclist.txt: Get the following files from gettext-runtime/intl
75830         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
75831         ref-del.sin.  From Bruno Haible.
75832         * config/srclist-update (fixfile): Change grep pattern again, since the
75833         previous fix didn't work (there was another trailing $).  Use
75834         '[$]' to escape the $s.
75835
75836 2003-07-15  Karl Berry  <karl@gnu.org>
75837
75838         * lib/vasnprintf.c: update from gettext.
75839
75840 2003-07-15  Karl Berry  <karl@gnu.org>
75841
75842         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
75843         gets expanded when surrounded by '$'.
75844
75845 2003-07-15  Jim Meyering  <jim@meyering.net>
75846
75847         * modules/save-cwd: Don't depend on error.  From Derek Price.
75848
75849 2003-07-15  Jim Meyering  <jim@meyering.net>
75850
75851         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
75852
75853 2003-07-14  Simon Josefsson  <jas@extundo.com>
75854
75855         * modules/mempcpy: New file.
75856         * MODULES.html.sh (func_all_modules): Add mempcpy.
75857
75858 2003-07-14  Simon Josefsson  <jas@extundo.com>
75859
75860         * m4/mempcpy.m4: New file.
75861
75862 2003-07-14  Simon Josefsson  <jas@extundo.com>
75863
75864         * lib/mempcpy.h: New file.
75865         * lib/mempcpy.c: New file.
75866
75867 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75868
75869         * modules/getdate, modules/posixtm: Depend on mktime.
75870
75871 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75872
75873         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
75874         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
75875         unicodeio.c, unicodeio.h, unlocked-io.h:
75876         Switch from LGPL to GPL.
75877
75878 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75879
75880         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
75881         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
75882         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
75883         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
75884         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
75885         updated automatically by ../config/srclist-update.  This changes
75886         their license from LPGL to GPL.
75887
75888 2003-07-14  Paul Eggert  <eggert@twinsun.com>
75889
75890         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
75891         assumed to refer to the root of the most recent stable gettext version.
75892         * config/srclistvars.sh: Add defaults for eggert.
75893         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
75894         Match "This program" as well as "The program".  This is needed
75895         for gettext.
75896
75897 2003-07-14  Jim Meyering  <jim@meyering.net>
75898
75899         Don't emit diagnostics.  Let callers do that.
75900         * lib/save-cwd.c: Don't include "error.h".
75901         (save_cwd): Don't call error.  Ensure that errno is valid
75902         when returning nonzero.
75903
75904         * lib/save-cwd.h (restore_cwd): Update prototype.
75905         * lib/save-cwd.c (restore_cwd): Remove two parameters.
75906         Simplify.  Don't call error upon failure.  Let callers do that.
75907         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
75908         when auditing is enabled.  But don't bother updating the #if.
75909
75910 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
75911
75912         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
75913         it breaks C++ compilation.
75914         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
75915
75916 2003-07-10  Simon Josefsson  <jas@extundo.com>
75917
75918         * modules/strchrnul (Makefile.am): Add strchrnul.h.
75919
75920 2003-07-10  Jim Meyering  <jim@meyering.net>
75921
75922         * m4/clock_time.m4: Remove trailing blank.
75923         * m4/intmax_t.m4: Likewise.
75924
75925 2003-07-10  Jim Meyering  <jim@meyering.net>
75926
75927         * lib/vasnprintf.c: Remove trailing blanks.
75928         Make cpp indentation consistent.
75929
75930 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75931
75932         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
75933         posixver.c, strftime.c, strnlen.c, strverscmp.c:
75934         Switch from LGPL to GPL.
75935
75936 2003-07-09  Paul Eggert  <eggert@twinsun.com>
75937
75938         * config/srclist.txt: Sort sublists.  Add
75939         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
75940         that differ from gnulib for one reason or another; we'd like this list
75941         to be smaller but for now let's document what we have.
75942
75943 2003-07-08  Paul Eggert  <eggert@twinsun.com>
75944
75945         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
75946         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
75947         and sweeter "eval x=$x".
75948         * config/srclist.txt: Get lib/argp* from glibc.
75949
75950 2003-07-07  Paul Eggert  <eggert@twinsun.com>
75951
75952         * lib/mktime.c: Fix some boundary cases and remove need for floating
75953         point.
75954
75955         Issue a compile-time diagnostic if time_t is floating point, or if
75956         two's complement arithmetic is not in effect, or if arithmetic
75957         right shift does not propagate the sign.  These assumptions were
75958         all in the original code but they weren't checked.
75959
75960         (TIME_T_MIDPOINT, verify): New macros.
75961         (__isleap): Remove; it has integer overflow problems.
75962         (leapyear): New function, without those problems.
75963         (ydhms_tm_diff): Remove; splitting into two parts.
75964         (ydhms_diff): New function, containing the arithmetic part of
75965         the old ydhms_tm_diff function.  Issue a compile-time
75966         diagnostic if we are not using C99 integer division.
75967         Avoid casts when possible.
75968         (guess_time_tm): New function, containing the checking part of
75969         the old ydhms_tm_diff function.  Return the new value, rather than
75970         the difference between it and the old.  Accept a new argument T
75971         so that *T specifies the old value.  Check for overflow in the result.
75972
75973         (__mktime_internal): Use a time_t offset, not a long int offset.
75974         This undoes the 2003-06-04 change, which is no longer needed now
75975         that we have better overflow checking.
75976         (localtime_offset): Likewise.
75977
75978         (__mktime_internal): Avoid harmful overflow on hosts where time_t
75979         and long are 64-bit but int is only 32-bit.
75980         (ydhms_diff): Use long int to store year1 and yday1.
75981         Issue a compile-time diagnostic if long int is not wide enough.
75982
75983         (__mktime_internal): Use long int to store adjusted year and yday.
75984         Use plain C rather than preprocessor commands, if that doesn't
75985         affect efficiency.
75986         Check for overflow (and try to repair) after each probe
75987         rather than checking only at the very end.  This avoids some bugs
75988         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
75989         does not equal GMT offset at maximum time).
75990         Use integer to check for overflow rather than floating point; this
75991         is more portable to non-IEEE hosts, and is a tad faster.
75992         When we detect that we are oscillating between two values,
75993         don't check whether tm_isdst has the requested value, since
75994         we already know the answer.  When tm_isdst has the wrong value,
75995         use a different heuristic to find the right one, based on the
75996         extreme values actually observed in practice in tz2003a,
75997         rather than the (overly optimistic) "previous 3 calendar quarters".
75998
75999         (not_equal_tm, print_tm, check_result): Use "const T" rather than
76000         "T const" to accommodate glibc style.
76001         (check_result): Use less-confusing report format.  "long" -> "long int.
76002         (main): Likewise.
76003         Don't loop if the iteration overflows time_t.
76004         Allow a negative step in the iteration.
76005
76006 2003-07-06  Karl Berry  <karl@gnu.org>
76007
76008         * config/depcomp: update from automake.
76009         * config/config.sub: update from prep.
76010
76011 2003-07-03  Karl Berry  <karl@gnu.org>
76012
76013         * config/config.guess: update from prep.
76014
76015 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76016
76017         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
76018         xreadlink.c now includes it unconditionally.
76019
76020 2003-07-01  Paul Eggert  <eggert@twinsun.com>
76021
76022         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
76023         having it depend on HAVE_SYS_TYPES_H.
76024
76025 2003-07-01  Bruno Haible  <bruno@clisp.org>
76026
76027         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
76028         <sys/types.h> should be sufficient.
76029         Reported by Paul Eggert.
76030
76031 2003-06-26  Karl Berry  <karl@gnu.org>
76032
76033         * config/depcomp: update from automake.
76034
76035 2003-06-26  Bruno Haible  <bruno@clisp.org>
76036
76037         * modules/human: Depend on module stdbool.
76038
76039 2003-06-25  Bruno Haible  <bruno@clisp.org>
76040
76041         * modules/readlink: New file.
76042         * modules/xreadlink: Depend on it.
76043         * MODULES.html.sh (func_all_modules): Add readlink.
76044
76045 2003-06-25  Bruno Haible  <bruno@clisp.org>
76046
76047         * m4/readlink.m4: New file.
76048
76049 2003-06-25  Bruno Haible  <bruno@clisp.org>
76050
76051         * lib/readlink.c: New file.
76052
76053 2003-06-22  Karl Berry  <karl@gnu.org>
76054
76055         * config/srclist.txt: update mkinstalldirs from automake.
76056         * config/mkinstalldirs: update.
76057
76058 2003-06-22  Bruno Haible  <bruno@clisp.org>
76059
76060         Portability to mingw32.
76061         * m4/ssize_t.m4: New file, from GNU gettext.
76062         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
76063         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
76064
76065 2003-06-22  Bruno Haible  <bruno@clisp.org>
76066
76067         * modules/safe-read: Add m4/ssize_t.m4.
76068         * modules/xreadlink: Add m4/ssize_t.m4.
76069
76070 2003-06-20  Bruno Haible  <bruno@clisp.org>
76071
76072         Assume C89, so PARAMS isn't needed.
76073         * lib/unicodeio.h (PARAMS): Remove.
76074         * lib/unicodeio.c: Don't use PARAMS.
76075
76076 2003-06-18  Karl Berry  <karl@gnu.org>
76077
76078         * config/config.{guess,sub}: update from prep.
76079
76080 2003-06-18  Jim Meyering  <jim@meyering.net>
76081
76082         Merge changes from coreutils.
76083         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
76084         Remove explicit declarations of xmalloc and realloc.
76085         Include xalloc.h.
76086         (read_utmp): Remove anachronistic cast of xmalloc.
76087
76088 2003-06-17  Paul Eggert  <eggert@twinsun.com>
76089
76090         Assume C89, so PARAMS isn't needed.
76091         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
76092         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
76093         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
76094         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
76095         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
76096         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
76097         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
76098         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
76099         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
76100         lib/xstrtod.h, lib/xstrtol.h: Likewise.
76101         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
76102         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
76103         no longer needed. Anyway, config.h should always be included before any
76104         other file.
76105
76106 2003-06-11  Simon Josefsson  <jas@extundo.com>
76107
76108         * modules/sysexits: New file.
76109         * MODULES.html.sh (func_all_modules): Add sysexits.
76110
76111 2003-06-11  Simon Josefsson  <jas@extundo.com>
76112
76113         * lib/sysexit_.h: New file.
76114
76115 2003-06-11  Derek Price  <derek@ximbiot.com>
76116
76117         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
76118         necessary.
76119
76120 2003-06-11  Bruno Haible  <bruno@clisp.org>
76121
76122         * m4/sysexits.m4: New file.
76123
76124 2003-06-10  Simon Josefsson  <jas@extundo.com>
76125
76126         * lib/argp.h: New file, from glibc.
76127         * lib/argp-ba.c: New file, from glibc.
76128         * lib/argp-eexst.c: New file, from glibc.
76129         * lib/argp-fmtstream.c: New file, from glibc.
76130         * lib/argp-fmtstream.h: New file, from glibc.
76131         * lib/argp-fs-xinl.c: New file, from glibc.
76132         * lib/argp-help.c: New file, from glibc.
76133         * lib/argp-namefrob.h: New file, from glibc.
76134         * lib/argp-parse.c: New file, from glibc.
76135         * lib/argp-pv.c: New file, from glibc.
76136         * lib/argp-pvh.c: New file, from glibc.
76137         * lib/argp-xinl.c: New file, from glibc.
76138
76139 2003-06-10  Simon Josefsson  <jas@extundo.com>
76140
76141         * modules/strchrnul: New file.
76142
76143 2003-06-10  Simon Josefsson  <jas@extundo.com>
76144
76145         * modules/argp: New file.
76146
76147 2003-06-10  Simon Josefsson  <jas@extundo.com>
76148
76149         * m4/strchrnul.m4: New file.
76150
76151 2003-06-10  Simon Josefsson  <jas@extundo.com>
76152
76153         * lib/strchrnul.h: New file.
76154         * lib/strchrnul.c: New file.
76155
76156 2003-06-10  Bruno Haible  <bruno@clisp.org>
76157
76158         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
76159
76160 2003-06-07  Karl Berry  <karl@gnu.org>
76161
76162         * config/config.{guess,sub}: update from prep.
76163
76164 2003-06-07  Jim Meyering  <jim@meyering.net>
76165
76166         * modules/strtod: Use $(...) notation, not @...@ for
76167         AC_REPLACE'd variables.
76168         * modules/localcharset: Likewise.
76169
76170 2003-06-07  Jim Meyering  <jim@meyering.net>
76171
76172         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
76173         in place of my name in the copyright comment.
76174         Remove definition and uses of __P.
76175
76176         From coreutils.
76177         * lib/stat.c: Don't declare xmalloc explicitly.
76178         Instead, include "xalloc.h".
76179         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
76180         xrealloc, and xcalloc return values.
76181         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
76182         Improve comment.
76183         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
76184
76185 2003-06-07  Bruno Haible  <bruno@clisp.org>
76186
76187         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
76188         avoid AC_CONFIG_LINKS.
76189         * modules/fnmatch (Makefile.am): Use explicit creation rule for
76190         fnmatch.h, to avoid AC_CONFIG_LINKS.
76191         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
76192
76193 2003-06-07  Bruno Haible  <bruno@clisp.org>
76194
76195         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
76196         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
76197         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76198         directory.
76199         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
76200         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
76201         directory.
76202
76203 2003-06-06  Jim Meyering  <jim@meyering.net>
76204
76205         Merge from coreutils.
76206         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
76207         Consolidate declarations and initializations of *_base* locals.
76208
76209         Merge from coreutils.
76210         This avoids a core dump on systems without GNU putenv,
76211         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
76212         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
76213         (unsetenv): New static function, from GNU libc.
76214         (rpl_putenv): Use it.
76215
76216         * lib/modechange.c: Remove trailing blanks.
76217
76218         Merge from coreutils.
76219         * lib/fsusage.c: Remove declaration of statfs.
76220         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
76221
76222         * lib/posixtm.c: Include <stdbool.h> unconditionally.
76223
76224 2003-06-06  Jim Meyering  <jim@meyering.net>
76225
76226         * lib/stdbool_.h: Renamed from stdbool.h.in.
76227
76228 2003-06-06  Jim Meyering  <jim@meyering.net>
76229             Bruno Haible  <bruno@clisp.org>
76230
76231         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
76232         Adjust Makefile.am snippet not to redirect directly to target.
76233         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
76234
76235 2003-06-05  Paul Eggert  <eggert@twinsun.com>
76236
76237         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
76238         mismatch, look in future quarters as well as past.  This fixes a
76239         bug when processing fall-backwards gaps immediately after a long
76240         period of daylight-saving time.
76241
76242         * lib/mktime.c: Assume freestanding C89 or better.
76243         (HAVE_LIMITS_H): Remove.  Assume it's 1.
76244         (__P): Remove; not used.
76245         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
76246         (mktime, not_equal_tm, print_tm, check_result,
76247         main): Use prototypes.  Use const * where appropriate.
76248         (main): Fix typo in testing code that uncovered by above changes.
76249         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
76250
76251 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76252
76253         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
76254         locale.h, localeconv.  This merges changes from coreutils.
76255
76256         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
76257         It can be removed after the next Autoconf is released.
76258         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
76259         needed.
76260
76261 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76262
76263         * lib/mktime.c: Fix Debian bug 177940
76264         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
76265         (localtime_offset): Now long int, not time_t, because we want it
76266         to be guaranteed to be signed.  All uses changed.
76267         (__mktime_internal): If overflow would occur when adding offset,
76268         don't add it.
76269
76270         Merge 'human' changes from coreutils.  Rewrite to support
76271         locale-specific notations like thousands separators.
76272         * lib/human.c: Simplify authorship notice.
76273         Include human.h immediately after config.h.
76274         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
76275         <limits.h>: Do not include, since human.h does.
76276         (SIZE_MAX, UINTMAX_MAX): New macros.
76277         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
76278         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
76279         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
76280         (power_letter): Renamed from suffixes.
76281         (generate_suffix_backwards): Remove.
76282         (adjust_value): Now takes int style (because of human.h changes)
76283         and long double value (for greater precision on some platforms).
76284         (group_number): New function.
76285         (human_readable): Use it.  Use integer options, not enum.
76286         Put the options before the sizes in the arg list.
76287         Support all the new options.
76288         The old human_readable function has been removed;
76289         use inttostr.h instead.
76290         (human_readable, default_block_size, humblock):
76291         Use uintmax_t, not int, for block sizes.
76292         (human_readable_inexact, block_size_types): Remove.
76293         (block_size_opts): New constant.
76294         (human_options): Renamed from human_block_size, with new signature
76295         that allows block sizes up to UINTMAX_MAX.  All callers changed.
76296         * lib/human.h: Add copyright and authorship notice.
76297         Include <limits.h> and <stdbool.h> unconditionally.
76298         (PARAMS): Remove.  All uses removed.
76299         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
76300         (enum human_inexact_style): Remove tag; now a nameless enum.
76301         (human_floor, human_ceiling, human_round_to_even): Now have
76302         values 2, 0, 1 rather than -1, 1, 0.
76303         (human_group_digits, human_suppress_point_zero, human_autoscale,
76304         human_base_1024, human_SI, human_B): New constants.
76305         (human_readable_inexact, human_block_size): Remove.
76306         (human_readable): Size args are now uintmax_t, not int.
76307         (human_options): New decl.
76308
76309         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
76310         unnecessary now that we assume C89 or better.  This change
76311         imported from coreutils.
76312
76313         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76314         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
76315         in the 2003-05-30 sync from glibc.
76316
76317         .h files should stand alone, but we shouldn't include <sys/types.h>
76318         if we can get away with just <stddef.h>.
76319
76320         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
76321         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
76322         rather than <sys/types.h>, as we merely need size_t.
76323         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
76324         to get size_t.
76325         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
76326         Include <stdio.h>, to get FILE.
76327         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
76328         memcasecmp.h has included <stddef.h> and all we need is size_t.
76329         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
76330         our interface, instead of including <sys/types.h>
76331
76332 2003-06-04  Paul Eggert  <eggert@twinsun.com>
76333
76334         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
76335         now, as glibc mktime is buggy on non-glibc systems.
76336
76337 2003-06-03  Karl Berry  <karl@gnu.org>
76338
76339         * config/config.sub: update from prep.
76340
76341 2003-06-02  Paul Eggert  <eggert@twinsun.com>
76342
76343         [from coreutils]
76344         Fix some minor time-related bugs with POSIX time arguments.
76345         Some valid time stamps were being rejected (notably -1, and
76346         time stamps before 1900 on 64-bit hosts).  And some invalid
76347         time stamps were being accepted, e.g. September 31.
76348
76349         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
76350         that we can return (time_t) -1 successfully.
76351         * lib/posixtm.c: Likewise.
76352         [HAVE_STDBOOL_H]: Include <stdbool.h>.
76353         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
76354         (t): Remove static var.
76355         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
76356         of static var.  All uses changed.
76357         (year): Do not reject years before 1900; they can occur with
76358         64-bit time_t.
76359         (posix_time_parse): Do not check for out-of-range components;
76360         that is now the caller's responsibility, since our checks were
76361         only approximations.
76362         (posixtime): Use mktime to check for out-of-range components,
76363         since it knows them exactly.
76364         If mktime returns (time_t) -1, check whether an error actually occurred
76365         by invoking localtime on -1.
76366         (main) [TEST_POSIXTIME]: Check for input data errors, and report
76367         posixtime failures better.
76368         Improve the test data (in comments only).
76369
76370 2003-06-02  Karl Berry  <karl@gnu.org>
76371
76372         * config/mkinstalldirs (version): new variable.
76373         (--version): new option.
76374         (usage): improve message.
76375
76376 2003-05-30  Karl Berry  <karl@gnu.org>
76377
76378         * lib/mktime.c: update from libc.
76379
76380 2003-05-30  Bruno Haible  <bruno@clisp.org>
76381
76382         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
76383         * config/config.rpath: Upgrade to gettext-0.12.1.
76384
76385 2003-05-30  Bruno Haible  <bruno@clisp.org>
76386
76387         * m4/gettext.m4: Upgrade to gettext-0.12.1.
76388         * m4/nls.m4: New file, from gettext-0.12.1.
76389         * m4/po.m4: New file, from gettext-0.12.1.
76390         * m4/progtest.m4: Upgrade to gettext-0.12.1.
76391
76392 2003-05-30  Bruno Haible  <bruno@clisp.org>
76393
76394         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
76395         * lib/localcharset.h: Likewise.
76396         * lib/localcharset.c: Likewise.
76397
76398 2003-05-29  Karl Berry  <karl@gnu.org>
76399
76400         * config/config.rpath: update from gettext.
76401
76402 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76403
76404         Assume the headers required for C89 freestanding compilers.
76405         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
76406         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
76407         * m4/human.m4 (gl_HUMAN): Likewise.
76408         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
76409         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
76410         * m4/userspec.m4 (gl_USERSPEC): Likewise.
76411         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
76412         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76413         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
76414
76415 2003-05-28  Paul Eggert  <eggert@twinsun.com>
76416
76417         Assume the headers required for C89 freestanding compilers.
76418         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
76419         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
76420         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
76421         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
76422         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
76423         define, since <limits.h> is guaranteed to do that.
76424         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
76425         * lib/exclude.c: Include <stdbool.h> unconditionally.
76426         * lib/tempname.c: Include <stddef.h> unconditionally.
76427         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
76428         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
76429         <stddef.h> does that.
76430         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
76431         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
76432         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
76433         needed.
76434         * lib/xstrtol.c: Likewise.
76435         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
76436         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
76437
76438         * lib/addext.c (addext): Use assignment rather than cast, to avoid
76439         warnings on some platforms.
76440
76441         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
76442         arbitrarily.
76443
76444 2003-05-26  Jim Meyering  <jim@meyering.net>
76445
76446         Merge in a change from coreutils:
76447         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
76448         that is guaranteed to be `no'.  Use `no_such_member' to indicate
76449         that condition, rather than `-1' which is slightly misleading.
76450         Change the name of the cache variable to have the gl_ prefix.
76451         Prompted by a patch from Richard Dawe for DJGPP.
76452
76453 2003-05-24  Karl Berry  <karl@gnu.org>
76454
76455         * config/config.guess: update from prep.
76456
76457 2003-05-22  Karl Berry  <karl@gnu.org>
76458
76459         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
76460
76461 2003-05-20  Karl Berry  <karl@gnu.org>
76462
76463         * config/config.guess: update from prep.
76464
76465 2003-05-18  Karl Berry  <karl@gnu.org>
76466
76467         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
76468         might actually be set by the user.
76469
76470         * config/depcomp, install-sh, mdate-sh: update from automake.
76471
76472 2003-05-17  Bruno Haible  <bruno@clisp.org>
76473
76474         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
76475         invalid expansion for AC_EGREP_CPP.
76476         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
76477         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
76478         Suggested by Akim Demaille <akim@epita.fr> in
76479         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
76480
76481 2003-05-12  Jim Meyering  <jim@meyering.net>
76482
76483         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
76484         the space-padded-by-default conversion specifiers, %e, %k, %l.
76485
76486 2003-05-12  Bruno Haible  <bruno@clisp.org>
76487
76488         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
76489         the string is longer than 4 KB.
76490
76491 2003-05-11  Karl Berry  <karl@gnu.org>
76492
76493         * config/config.{guess,sub}: update from prep.
76494
76495 2003-05-09  Bruno Haible  <bruno@clisp.org>
76496
76497         * modules/error: Add m4/strerror_r.m4 to file list.
76498
76499 2003-05-03  Bruno Haible  <bruno@clisp.org>
76500
76501         Upgrade to Unicode-4.0.
76502         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
76503         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
76504         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
76505         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
76506         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
76507         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
76508         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
76509         Change width of U+E0100..U+E01EF from 1 to 0.
76510
76511 2003-04-25  Jim Meyering  <jim@meyering.net>
76512
76513         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
76514         of type size_t, not int.
76515
76516 2003-04-25  Bruno Haible  <bruno@clisp.org>
76517
76518         * lib/copy-file.c: Include <stddef.h>, for size_t.
76519
76520 2003-04-21  Paul Eggert  <eggert@twinsun.com>
76521
76522         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
76523         code which expansion is under static control.  Patch imported from
76524         Akim Demaille's patch to Bison; see
76525         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
76526
76527 2003-04-14  Bruno Haible  <bruno@clisp.org>
76528
76529         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
76530
76531 2003-04-11  Jim Meyering  <jim@meyering.net>
76532
76533         Merge changes from Coreutils.
76534
76535         2003-03-22  Jim Meyering  <jim@meyering.net>
76536
76537         * lib/strftime.c (widen): Cast alloca return value to proper type.
76538
76539         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
76540
76541         From GNU libc.
76542         * lib/strftime.c (my_strftime): Handle very large width
76543         specifications for numeric values correctly.  Improve checks for
76544         overflow.
76545
76546         2003-01-19  Jim Meyering  <jim@meyering.net>
76547
76548         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
76549         definitions.
76550         (nl_get_alt_digit) [! defined my_strftime]: Define.
76551         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
76552         _nl_get_alt_digit and _nl_get_walt_digit.
76553
76554         * lib/strftime.c (my_strftime): Merge in locale-related changes from
76555         libc. These changes have no effect outside of _LIBC.
76556
76557 2003-04-10  Bruno Haible  <bruno@clisp.org>
76558
76559         * modules/findprog: New file.
76560         * MODULES.html.sh (func_all_modules): Add it.
76561
76562 2003-04-10  Bruno Haible  <bruno@clisp.org>
76563
76564         * m4/findprog.m4: New file.
76565         * m4/eaccess.m4: New file.
76566
76567 2003-04-10  Bruno Haible  <bruno@clisp.org>
76568
76569         * lib/findprog.h: New file, from GNU gettext.
76570         * lib/findprog.c: New file, from GNU gettext.
76571
76572 2003-04-05  Jim Meyering  <jim@meyering.net>
76573
76574         Merge changes from Coreutils.
76575
76576         * lib/exclude.h (PARAMS): Remove definition and uses.
76577         * lib/exclude.c: Remove uses of `PARAMS'.
76578
76579         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
76580         Add test-cases for DOS filenames. Declare program_name.
76581         (main): Set up program_name.  Patch by Rich Dawe.
76582
76583         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
76584         error from mntctl.
76585         Use mntctl's return value to drive the entry-processing loop, since
76586         we can't rely on the value of the vmt_length member in the last
76587         entry.  On some systems doing so could result in exhausting
76588         virtual memory.  Based in part on a patch from Mike Jetzer.
76589
76590 2003-04-04  Bruno Haible  <bruno@clisp.org>
76591
76592         * modules/linebreak: New file.
76593         * MODULES.html.sh (func_all_modules): Add it.
76594
76595 2003-04-04  Bruno Haible  <bruno@clisp.org>
76596
76597         * m4/linebreak.m4: New file.
76598
76599 2003-04-04  Bruno Haible  <bruno@clisp.org>
76600
76601         * lib/linebreak.h: New file, from GNU gettext.
76602         * lib/linebreak.c: New file, from GNU gettext with slight
76603         modifications.
76604         * lib/lbrkprop.h: New file, from GNU gettext.
76605
76606 2003-04-03  Bruno Haible  <bruno@clisp.org>
76607
76608         * modules/utf8-ucs4: New file.
76609         * modules/utf16-ucs4: New file.
76610         * modules/ucs4-utf8: New file.
76611         * modules/ucs4-utf16: New file.
76612         * MODULES.html.sh (func_all_modules): Add them.
76613
76614 2003-04-03  Bruno Haible  <bruno@clisp.org>
76615
76616         * m4/utf-ucs4.m4: New file.
76617         * m4/ucs4-utf.m4: New file.
76618
76619 2003-04-03  Bruno Haible  <bruno@clisp.org>
76620
76621         * lib/utf8-ucs4.h: New file, from GNU gettext.
76622         * lib/utf16-ucs4.h: New file, from GNU gettext.
76623         * lib/ucs4-utf8.h: New file, from GNU gettext.
76624         * lib/ucs4-utf16.h: New file, from GNU gettext.
76625
76626 2003-04-02  Bruno Haible  <bruno@clisp.org>
76627
76628         * modules/binary-io: New file.
76629         * MODULES.html.sh (func_all_modules): Add it.
76630
76631 2003-04-02  Bruno Haible  <bruno@clisp.org>
76632
76633         * lib/binary-io.h: New file, from GNU gettext.
76634
76635 2003-04-01  Bruno Haible  <bruno@clisp.org>
76636
76637         * modules/pathname: New file.
76638         * MODULES.html.sh (func_all_modules): Add it.
76639
76640 2003-04-01  Bruno Haible  <bruno@clisp.org>
76641
76642         * lib/pathname.h: New file, from GNU gettext.
76643         * lib/concatpath.c: New file, from GNU gettext.
76644
76645 2003-03-30  Bruno Haible  <bruno@clisp.org>
76646
76647         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
76648
76649 2003-03-30  Bruno Haible  <bruno@clisp.org>
76650
76651         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
76652         function chown() doesn't exist.
76653
76654 2003-03-28  Bruno Haible  <bruno@clisp.org>
76655
76656         * modules/copy-file: New file.
76657         * MODULES.html.sh (func_all_modules): Add it.
76658
76659 2003-03-28  Bruno Haible  <bruno@clisp.org>
76660
76661         * m4/copy-file.m4: New file.
76662
76663 2003-03-28  Bruno Haible  <bruno@clisp.org>
76664
76665         * lib/copy-file.h: New file, from GNU gettext.
76666         * lib/copy-file.c: New file, from GNU gettext.
76667
76668 2003-03-18  Jim Meyering  <jim@meyering.net>
76669
76670         * lib/quote.c (quote_n): Fix typo in comment.
76671
76672 2003-03-18  Bruno Haible  <bruno@clisp.org>
76673
76674         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
76675         checking.
76676         * m4/onceonly_2_57.m4: Likewise.
76677
76678 2003-03-17  Bruno Haible  <bruno@clisp.org>
76679
76680         * m4/onceonly.m4: Require autoconf 2.54 or newer.
76681         (m4_quote): Remove macro.
76682         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
76683
76684 2003-03-14  Jim Meyering  <jim@meyering.net>
76685
76686         Merge changes from Coreutils.
76687         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
76688         to be const, in order to avoid warnings.
76689         (obstack_room): Likewise.
76690         (obstack_empty_p): Likewise.
76691
76692 2003-03-14  Bruno Haible  <bruno@clisp.org>
76693
76694         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
76695         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
76696
76697 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76698
76699         Merge changes from Bison.
76700         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
76701         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
76702         when compiling Bison 1.875's `bitset bset = obstack_alloc
76703         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
76704         * lib/hash.c: Include <stdbool.h> unconditionally.
76705
76706 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76707
76708         * m4/onceonly.m4 (m4_quote): New macro.
76709         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
76710         Quote AC_FOREACH variable-expansions properly.
76711
76712 2003-03-13  Paul Eggert  <eggert@twinsun.com>
76713
76714         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
76715
76716 2003-03-09  Paul Eggert  <eggert@twinsun.com>
76717
76718         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
76719         Reported by Bruce Becker; see:
76720         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
76721
76722 2003-03-03  Paul Eggert  <eggert@twinsun.com>
76723             Bruno Haible  <bruno@clisp.org>
76724
76725         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
76726         Reported by John Hughes, see
76727         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
76728
76729 2003-02-20  Bruno Haible  <bruno@clisp.org>
76730
76731         * MODULES.html.sh (func_all_modules): Add poll.
76732
76733 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76734
76735         * modules/poll: New file.
76736
76737 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76738
76739         * lib/poll_.h: New file.
76740         * lib/poll.c: New file.
76741
76742 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
76743
76744         * m4/poll.m4: New file.
76745
76746 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76747
76748         * modules/mathl: New file.
76749
76750 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76751
76752         * lib/mathl.h: New file.
76753         * lib/acosl.c: New file.
76754         * lib/asinl.c: New file.
76755         * lib/atanl.c: New file.
76756         * lib/ceill.c: New file.
76757         * lib/cosl.c: New file.
76758         * lib/expl.c: New file.
76759         * lib/floorl.c: New file.
76760         * lib/frexpl.c: New file.
76761         * lib/ldexpl.c: New file.
76762         * lib/logl.c: New file.
76763         * lib/sincosl.c: New file.
76764         * lib/sinl.c: New file.
76765         * lib/sqrtl.c: New file.
76766         * lib/tanl.c: New file.
76767         * lib/trigl.c: New file.
76768         * lib/trigl.h: New file.
76769
76770 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
76771
76772         * m4/mathl.m4: New file.
76773
76774 2003-02-18  Bruno Haible  <bruno@clisp.org>
76775
76776         * MODULES.html.sh (func_all_modules): Add mathl.
76777
76778 2003-02-17  Bruno Haible  <bruno@clisp.org>
76779
76780         * modules/mkdtemp: New module.
76781         * MODULES.html.sh (func_all_modules): Add it.
76782
76783 2003-02-17  Bruno Haible  <bruno@clisp.org>
76784
76785         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
76786
76787 2003-02-17  Bruno Haible  <bruno@clisp.org>
76788
76789         * lib/mkdtemp.h: New file, from GNU gettext.
76790         * lib/mkdtemp.c: New file, from GNU gettext.
76791
76792 2003-02-02  Jim Meyering  <jim@meyering.net>
76793
76794         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
76795         e.g. glibc-2.2.93.
76796
76797 2003-01-31  Bruno Haible  <bruno@clisp.org>
76798
76799         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
76800         'rpl_rename'.
76801         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
76802         'rpl_strnlen'.
76803         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
76804         'rpl_strtod'.
76805         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
76806         'rpl_utime'.
76807
76808 2003-01-31  Bruno Haible  <bruno@clisp.org>
76809
76810         * lib/rename.c: #undef rename before defining rpl_rename.
76811         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
76812
76813 2003-01-30  Bruno Haible  <bruno@clisp.org>
76814
76815         * modules/vasnprintf, modules/vasprintf: New modules.
76816         * MODULES.html.sh (func_all_modules): Add them.
76817
76818 2003-01-30  Bruno Haible  <bruno@clisp.org>
76819
76820         * m4/signed.m4: New file, from GNU gettext.
76821         * m4/longdouble.m4: New file, from GNU gettext.
76822         * m4/wchar_t.m4: New file, from GNU gettext.
76823         * m4/wint_t.m4: New file, from GNU gettext.
76824         * m4/vasnprintf.m4: New file.
76825         * m4/vasprintf.m4: New file.
76826
76827 2003-01-30  Bruno Haible  <bruno@clisp.org>
76828
76829         * lib/printf-args.h: New file, from GNU gettext.
76830         * lib/printf-args.c: New file, from GNU gettext.
76831         * lib/printf-parse.h: New file, from GNU gettext.
76832         * lib/printf-parse.c: New file, from GNU gettext.
76833         * lib/vasnprintf.h: New file, from GNU gettext.
76834         * lib/vasnprintf.c: New file, from GNU gettext.
76835         * lib/asnprintf.c: New file, from GNU gettext.
76836         * lib/vasprintf.h: New file, from GNU gettext with modifications.
76837         * lib/vasprintf.c: New file, from GNU gettext.
76838         * lib/asprintf.c: New file, from GNU gettext.
76839
76840 2003-01-29  Bruno Haible  <bruno@clisp.org>
76841
76842         * modules/stpncpy: New module.
76843         * MODULES.html.sh (func_all_modules): Add it.
76844
76845 2003-01-29  Bruno Haible  <bruno@clisp.org>
76846
76847         * m4/stpncpy.m4: New file.
76848
76849 2003-01-29  Bruno Haible  <bruno@clisp.org>
76850
76851         * lib/stpncpy.h: New file, from GNU gettext with modifications.
76852         * lib/stpncpy.c: New file, from GNU gettext with modifications.
76853
76854 2003-01-28  Bruno Haible  <bruno@clisp.org>
76855
76856         * modules/c-ctype: New module.
76857         * MODULES.html.sh (func_all_modules): Add it.
76858
76859 2003-01-28  Bruno Haible  <bruno@clisp.org>
76860
76861         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
76862         Paul Eggert.
76863         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
76864         Paul Eggert.
76865
76866 2003-01-27  Bruno Haible  <bruno@clisp.org>
76867
76868         * modules/xsetenv: New module.
76869         * MODULES.html.sh (func_all_modules): Add it.
76870
76871 2003-01-27  Bruno Haible  <bruno@clisp.org>
76872
76873         * lib/xsetenv.h: New file, from GNU gettext.
76874         * lib/xsetenv.c: New file, from GNU gettext.
76875
76876 2003-01-23  Jim Meyering  <jim@meyering.net>
76877
76878         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
76879         from working on systems without dirfd (at least Irix and OSF1/Tru64).
76880
76881 2003-01-23  Bruno Haible  <bruno@clisp.org>
76882
76883         * modules/minmax: New module.
76884         * MODULES.html.sh (func_all_modules): Add it.
76885
76886 2003-01-23  Bruno Haible  <bruno@clisp.org>
76887
76888         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
76889         Eggert.
76890
76891 2003-01-22  Bruno Haible  <bruno@clisp.org>
76892
76893         * modules/exit: New module.
76894         * MODULES.html.sh (func_all_modules): Add it.
76895
76896 2003-01-22  Bruno Haible  <bruno@clisp.org>
76897
76898         * lib/exit.h: New file, from GNU gettext.
76899
76900 2003-01-19  Bruno Haible  <bruno@clisp.org>
76901
76902         * gnulib-tool: Recognize option --extract-maintainer.
76903         (func_get_maintainer): New function.
76904         * modules/*: Add Maintainer entry.
76905
76906 2003-01-16  Jim Meyering  <jim@meyering.net>
76907
76908         * m4/regex.m4: The `regex' struct is both input and output.
76909         Initialize it before each use.  Patch by Tim Waugh.
76910
76911 2003-01-16  Bruno Haible  <bruno@clisp.org>
76912
76913         * MODULES.html.sh: Add a table of contents. Add the module name as
76914         leftmost column. Add hyperlinks.
76915
76916 2003-01-15  Bruno Haible  <bruno@clisp.org>
76917
76918         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
76919
76920 2003-01-15  Bruno Haible  <bruno@clisp.org>
76921
76922         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
76923         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
76924         suffix.
76925
76926 2003-01-15  Bruno Haible  <bruno@clisp.org>
76927
76928         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
76929
76930 2003-01-15  Bruno Haible  <bruno@clisp.org>
76931
76932         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
76933         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
76934
76935 2003-01-14  Jim Meyering  <jim@meyering.net>
76936
76937         * lib/same.c (same_name): Tweak a comment.
76938
76939 2003-01-14  Bruno Haible  <bruno@clisp.org>
76940
76941         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
76942         when a string comparison is sufficient.
76943
76944 2003-01-14  Bruno Haible  <bruno@clisp.org>
76945
76946         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
76947         'unsigned int'.
76948
76949 2003-01-14  Bruno Haible  <bruno@clisp.org>
76950
76951         * lib/hash-pjw.c: Add comment about low quality of this function.
76952
76953 2003-01-13  Bruno Haible  <bruno@clisp.org>
76954
76955         * modules/stpcpy: Distribute lib/stpcpy.h.
76956         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
76957
76958 2003-01-13  Bruno Haible  <bruno@clisp.org>
76959
76960         * modules/*: Add a description.
76961         * modules/strpbrk: Fix Makefile.am snippet.
76962         * modules/strtoimax: Fix dependencies.
76963         * modules/strtoumax: Likewise.
76964
76965 2003-01-13  Bruno Haible  <bruno@clisp.org>
76966
76967         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
76968         * modules/alloca (Makefile.am): All object files depend on alloca.h.
76969         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
76970
76971 2003-01-13  Bruno Haible  <bruno@clisp.org>
76972
76973         * gnulib-tool (func_create_testdir): Store config/* files in the main
76974         directory.
76975         * config.rpath: Move to ...
76976         * config/config.rpath: ... here.
76977         * modules/gettext: Contains config/config.rpath, not config.rpath.
76978         * modules/iconv: Likewise.
76979
76980 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76981
76982         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76983         to avoid collisions with libcurses and libreadline.
76984
76985         * m4/getstr.m4: Remove.
76986         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
76987
76988 2003-01-12  Paul Eggert  <eggert@twinsun.com>
76989
76990         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
76991         to avoid collisions with libcurses and libreadline.
76992
76993         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
76994         * lib/getstr.h, getstr.c: Remove.
76995         * lib/getline.c: Include "getline.h", to check interface.
76996         Move body of old getstr.c here: this defines MIN_CHUNK and
76997         declares getdelim2, which is renamed from getstr.
76998         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
76999
77000         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
77001         All uses changed.
77002         * lib/linebuffer.h: Likewise.
77003         (readline): Remove backward-compatibility macro.
77004
77005 2003-01-12  Paul Eggert  <eggert@twinsun.com>
77006
77007         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
77008         to avoid collisions with libcurses and libreadline.
77009         * getstr: Remove.
77010         * MODULES.html.sh: Remove getstr.
77011         * modules/getline: Depend on unlocked-io, not getstr.
77012
77013 2003-01-12  Jim Meyering  <jim@meyering.net>
77014
77015         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
77016
77017 2003-01-10  Bruno Haible  <bruno@clisp.org>
77018
77019         * modules/alloca: Change Makefile.am requirements. Simplify Include
77020         requirements. Add lib/alloca_.h to file list.
77021
77022 2003-01-10  Bruno Haible  <bruno@clisp.org>
77023
77024         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
77025
77026 2003-01-10  Bruno Haible  <bruno@clisp.org>
77027
77028         * lib/alloca_.h: New file.
77029         * lib/getdate.y: Unconditionally include alloca.h.
77030         * lib/makepath.c: Likewise.
77031         * lib/setenv.c: Likewise.
77032         * lib/userspec.c: Likewise.
77033
77034 2003-01-09  Karl Berry  <karl@gnu.org>
77035
77036         * MODULES.html.sh: include `dirname $0` in PATH, to find
77037         gnulib-tool.
77038
77039 2003-01-09  Bruno Haible  <bruno@clisp.org>
77040
77041         * modules/stdbool: Change configure.ac, Makefile.am requirements.
77042         Simplify Include requirements. Add lib/stdbool.h.in to file list.
77043
77044 2003-01-09  Bruno Haible  <bruno@clisp.org>
77045
77046         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
77047
77048 2003-01-09  Bruno Haible  <bruno@clisp.org>
77049
77050         * lib/stdbool.h.in: New file.
77051
77052 2003-01-09  Bruno Haible  <bruno@clisp.org>
77053
77054         * gnulib-tool (func_all_modules): Ignore files ending in ~.
77055         * MODULES.html.sh: Likewise.
77056
77057 2003-01-08  Jim Meyering  <jim@meyering.net>
77058
77059         * lib/full-write.c: Undefine and define-away `const' after inclusion
77060         of errno.h, not before.  Suggestion from Bruno Haible.
77061
77062 2003-01-08  Bruno Haible  <bruno@clisp.org>
77063
77064         * modules/full-read: Depend on full-write.
77065
77066 2003-01-08  Bruno Haible  <bruno@clisp.org>
77067
77068         * lib/safe-read.c: Include specification header first, to ensure its
77069         selfcontainedness.
77070         * lib/full-write.c: Likewise.
77071
77072 2003-01-07  Jim Meyering  <jim@meyering.net>
77073
77074         * lib/full-write.c: Rework so that it may serve to define full_read,
77075         too.
77076         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
77077
77078 2003-01-07  Bruno Haible  <bruno@clisp.org>
77079
77080         * lib/strtoimax.c: Include <stdint.h> as an alternative to
77081         <inttypes.h>.
77082         * lib/xstrtol.h: Likewise.
77083         * lib/xstrtoimax.c: Likewise.
77084         * lib/xstrtoumax.c: Likewise.
77085         * lib/human.h: Likewise.
77086
77087         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
77088         on systems that have <inttypes.h> but not <stdint.h>.
77089
77090 2003-01-07  Bruno Haible  <bruno@clisp.org>
77091
77092         * MODULES.html.sh: Add copyright notice.
77093         (missed_files): Omit CVS directory entries.
77094         (func_module): Make it work with sed-3.02.
77095         * MODULES.txt: Remove file.
77096
77097 2003-01-06  Jim Meyering  <jim@meyering.net>
77098
77099         * lib/version-etc.c: Update year in translatable copyright string.
77100
77101 2003-01-03  Karl Berry  <karl@gnu.org>
77102
77103         * config/config.{guess,sub}: update from prep.
77104
77105 2003-01-02  Karl Berry  <karl@gnu.org>
77106
77107         * doc/COPYING.DOC: belatedly updated to 1.2.
77108
77109 2003-01-01  Karl Berry  <karl@gnu.org>
77110
77111         * gnulib-tool (func_verify_module): report module name $module in
77112         error message, not $1.
77113         * gnulib-tool (create-testdir): don't complain if destdir couldn't
77114         be created, only if it doesn't exist.
77115         * gnulib-tool (last_checkin_date): don't expand the $Date here.
77116
77117 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77118
77119         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
77120
77121 2002-12-31  Paul Eggert  <eggert@twinsun.com>
77122
77123         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
77124         memcmp if strcoll doesn't work.
77125
77126 2002-12-31  Bruno Haible  <bruno@clisp.org>
77127
77128         * lib/utime.c (utime_null): No need to call ftruncate if the file was
77129         nonempty.
77130
77131 2002-12-31  Bruno Haible  <bruno@clisp.org>
77132
77133         * lib/memcoll.c (STRCOLL): New macro.
77134         (memcoll): Use it.
77135
77136 2002-12-31  Bruno Haible  <bruno@clisp.org>
77137
77138         * lib/localcharset.h: New file.
77139         * lib/localcharset.c: Include it.
77140         * lib/unicodeio.c: Likewise.
77141
77142 2002-12-31  Bruno Haible  <bruno@clisp.org>
77143
77144         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
77145         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
77146
77147 2002-12-31  Bruno Haible  <bruno@clisp.org>
77148
77149         * lib/getline.h: Include <stddef.h>, for size_t.
77150
77151         * lib/unicodeio.h: Include <stddef.h>, for size_t.
77152         * lib/unicodeio.c: Don't include <stddef.h>.
77153
77154 2002-12-31  Bruno Haible  <bruno@clisp.org>
77155
77156         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
77157         HAVE_TM_ZONE.
77158
77159 2002-12-24  Karl Berry  <karl@gnu.org>
77160
77161         * config/config.guess: update from prep.
77162
77163 2002-12-24  Bruno Haible  <bruno@clisp.org>
77164
77165         General infrasructure.
77166         * m4/README: Rewritten.
77167         * m4/onceonly.m4: New file.
77168         * m4/onceonly_2_57.m4: New file.
77169
77170         Module atexit.
77171         * m4/atexit.m4: New file.
77172
77173         Module strtod.
77174         * m4/strtod.m4: New file.
77175
77176         Module strtol.
77177         * m4/strtol.m4: New file.
77178
77179         Module strtoul.
77180         * m4/strtoul.m4: New file.
77181
77182         Module memchr.
77183         * m4/memchr.m4: New file.
77184
77185         Module memcmp.
77186         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
77187         (jm_FUNC_MEMCMP): Invoke it.
77188
77189         Module memcpy.
77190         * m4/memcpy.m4: New file.
77191
77192         Module memmove.
77193         * m4/memmove.m4: New file.
77194
77195         Module memset.
77196         * m4/memset.m4: New file.
77197
77198         Module strcspn.
77199         * m4/strcspn.m4: New file.
77200
77201         Module strpbrk.
77202         * m4/strpbrk.m4: New file.
77203
77204         Module strstr.
77205         * m4/strstr.m4: New file.
77206
77207         Module strerror.
77208         * m4/strerror.m4: New file.
77209
77210         Module mktime.
77211         * m4/mktime.m4: Renamed from jm-mktime.m4.
77212         (gl_PREREQ_MKTIME): New macro.
77213         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
77214
77215         Module malloc.
77216         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
77217         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
77218         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
77219
77220         Module realloc.
77221         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
77222         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
77223         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
77224
77225         Module strftime.
77226         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
77227         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
77228         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
77229         gl_TM_GMTOFF.
77230         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
77231
77232         Module xalloc.
77233         * m4/xalloc.m4: New file.
77234
77235         Module alloca.
77236         * m4/alloca.m4: New file.
77237
77238         Module putenv.
77239         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
77240         (jm_FUNC_PUTENV): Invoke it.
77241
77242         Module setenv.
77243         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
77244         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
77245         when invoked twice.
77246         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
77247         gt_FUNC_SETENV.
77248
77249         Module memrchr.
77250         * m4/memrchr.m4: New file.
77251
77252         Module stpcpy.
77253         * m4/stpcpy.m4: New file.
77254
77255         Module strcase.
77256         * m4/strcase.m4: New file.
77257
77258         Module strdup.
77259         * m4/strdup.m4: New file.
77260
77261         Module strnlen.
77262         * m4/strnlen.m4: New file.
77263
77264         Module strndup.
77265         * m4/strndup.m4: New file.
77266
77267         Module xstrtod.
77268         * m4/xstrtod.m4: New file.
77269
77270         Module xstrtol.
77271         * m4/xstrtol.m4: New file.
77272
77273         Module getdate.
77274         * m4/getdate.m4: New file.
77275
77276         Module unlocked-io.
77277         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
77278         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
77279         * m4/jm-glibc-io.m4n: Remove file.
77280
77281         Module long-options.
77282         * m4/long-options.m4: New file.
77283
77284         Module md5.
77285         * m4/md5.m4: New file.
77286
77287         Module sha.
77288         * m4/sha.m4: New file.
77289
77290         Module getstr.
77291         * m4/getstr.m4: New file.
77292
77293         Module getline.
77294         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
77295         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
77296         <sys/types.h>, for size_t. Use the function name gnu_getline, not
77297         simply getline. Infoke gl_PREREQ_GETLINE.
77298
77299         Module obstack.
77300         * m4/obstack.m4: New file.
77301
77302         Module hash.
77303         * m4/hash.m4: New file.
77304
77305         Module readtokens.
77306         * m4/readtokens.m4: New file.
77307
77308         Module strverscmp.
77309         * m4/strverscmp.m4: New file.
77310
77311         Module stdbool.
77312         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
77313         OSF/1.
77314
77315         Module strtoll.
77316         * m4/strtoll.m4: New file.
77317
77318         Module strtoull.
77319         * m4/strtoull.m4: New file.
77320
77321         Module strtoimax.
77322         * m4/strtoimax.m4: New file.
77323
77324         Module strtoumax.
77325         * m4/strtoumax.m4: New file.
77326
77327         Module xstrtoimax.
77328         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
77329         jm_AC_PREREQ_XSTRTOIMAX.
77330         Moved the strtol prerequisites to strtol.m4.
77331         Moved the strtoll prerequisites to strtoll.m4.
77332         Moved the strtoimax prerequisites to strtoimax.m4.
77333
77334         Module xstrtoumax.
77335         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
77336         jm_AC_PREREQ_XSTRTOUMAX.
77337         Moved the strtoul prerequisites to strtoul.m4.
77338         Moved the strtoull prerequisites to strtoull.m4.
77339         Moved the strtoumax prerequisites to strtoumax.m4.
77340
77341         Module chown.
77342         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
77343         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
77344
77345         Module dup2.
77346         * m4/dup2.m4: New file.
77347
77348         Module ftruncate.
77349         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
77350         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
77351
77352         Module getgroups.
77353         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
77354         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
77355
77356         Module gettimeofday.
77357         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
77358         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
77359         gl_PREREQ_GETTIMEOFDAY.
77360
77361         Module mkdir.
77362         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
77363         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
77364
77365         Module mkstemp.
77366         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
77367         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
77368         jm_AC_TYPE_UINTMAX_T.
77369         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
77370
77371         Module stat.
77372         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
77373         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
77374
77375         Module lstat.
77376         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
77377         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
77378
77379         Module timespec.
77380         * m4/timespec.m4 (gl_TIMESPEC): New macro.
77381         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
77382         * m4/st_mtim.m4: Indentation.
77383
77384         Module nanosleep.
77385         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
77386         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
77387         gl_PREREQ_NANOSLEEP.
77388
77389         Module regex.
77390         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
77391         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
77392         (gl_REGEX): New macro.
77393
77394         Module rename.
77395         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
77396         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
77397
77398         Module rmdir.
77399         * m4/rmdir.m4: New file.
77400
77401         Module utime.
77402         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
77403         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
77404         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
77405
77406         Module dirname.
77407         * m4/dirname.m4: New file.
77408
77409         Module getopt.
77410         * m4/getopt.m4: New file.
77411
77412         Module unistd-safer.
77413         * m4/unistd-safer.m4: New file.
77414
77415         Module fnmatch.
77416         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
77417         declaration.
77418         (gl_PREREQ_FNMATCH_EXTRA): New macro.
77419         (gl_FUNC_FNMATCH_POSIX): New macro.
77420         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
77421         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
77422         simply fnmatch.
77423
77424         Module exclude.
77425         * m4/exclude.m4: New file.
77426
77427         Module human.
77428         * m4/human.m4: New file.
77429
77430         Module acl.
77431         * m4/acl.m4: Nop.
77432
77433         Module backupfile.
77434         * m4/backupfile.m4: New file.
77435         * m4/d-ino.m4: Indentation.
77436
77437         Module fsusage.
77438         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
77439         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
77440         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
77441
77442         Module dirfd.
77443         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
77444         requirements.
77445
77446         Module euidaccess.
77447         * m4/euidaccess.m4: New file.
77448
77449         Module file-type.
77450         * m4/file-type.m4: New file.
77451
77452         Module fileblocks.
77453         * m4/fileblocks.m4: New file.
77454
77455         Module filemode.
77456         * m4/filemode.m4: New file.
77457
77458         Module isdir.
77459         * m4/isdir.m4: New file.
77460
77461         Module lchown.
77462         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
77463         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
77464
77465         Module makepath.
77466         * m4/makepath.m4: New file.
77467
77468         Module modechange.
77469         * m4/modechange.m4: New file.
77470
77471         Module mountlist.
77472         * m4/mountlist.m4: New file.
77473         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
77474         Indentation.
77475
77476         Module path-concat.
77477         * m4/path-concat.m4: New file.
77478
77479         Module pathmax.
77480         * m4/pathmax.m4: New file.
77481
77482         Module same.
77483         * m4/same.m4: New file.
77484
77485         Module save-cwd.
77486         * m4/save-cwd.m4: New file.
77487
77488         Module savedir.
77489         * m4/savedir.m4: New file.
77490
77491         Module xgetcwd.
77492         * m4/xgetcwd.m4: New file.
77493         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
77494
77495         Module xreadlink.
77496         * m4/xreadlink.m4: New file.
77497
77498         Module safe-read.
77499         * m4/safe-read.m4: New file.
77500
77501         Module safe-write.
77502         * m4/safe-write.m4: New file.
77503
77504         Module closeout.
77505         * m4/closeout.m4: New file.
77506
77507         Module stdio-safer.
77508         * m4/stdio-safer.m4: New file.
77509
77510         Module getpass.
77511         * m4/getpass.m4: New file.
77512
77513         Module getugroups.
77514         * m4/getugroups.m4: New file.
77515
77516         Module group-member.
77517         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
77518         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
77519
77520         Module idcache.
77521         * m4/idcache.m4: New file.
77522
77523         Module userspec.
77524         * m4/userspec.m4: New file.
77525
77526         Module gettime.
77527         * m4/clock_time.m4: New file.
77528         * m4/gettime.m4: New file.
77529
77530         Module settime.
77531         * m4/settime.m4: New file.
77532
77533         Module posixtm.
77534         * m4/posixtm.m4: New file.
77535
77536         Module gethostname.
77537         * m4/gethostname.m4: New file.
77538
77539         Module canon-host.
77540         * m4/canon-host.m4: New file.
77541
77542         Module gettext.
77543         * m4/codeset.m4: New file, from gettext-0.11.5.
77544         * m4/gettext.m4: New file, from gettext-0.11.5.
77545         * m4/glibc21.m4: New file, from gettext-0.11.5.
77546         * m4/iconv.m4: New file, from gettext-0.11.5.
77547         * m4/intdiv0.m4: New file, from gettext-0.11.5.
77548         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
77549         * m4/inttypes.m4: New file, from gettext-0.11.5.
77550         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
77551         * m4/isc-posix.m4: New file, from gettext-0.11.5.
77552         * m4/lcmessage.m4: New file, from gettext-0.11.5.
77553         * m4/lib-ld.m4: New file, from gettext-0.11.5.
77554         * m4/lib-link.m4: New file, from gettext-0.11.5.
77555         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
77556         * m4/progtest.m4: New file, from gettext-0.11.5.
77557         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
77558         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
77559         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
77560
77561         Module localcharset.
77562         * m4/localcharset.m4: New file.
77563
77564         Module hard-locale.
77565         * m4/hard-locale.m4: New file.
77566
77567         Module mbswidth.
77568         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
77569         onceonly macros.
77570         * m4/mbrtowc.m4: Add comment.
77571
77572         Module memcasecmp.
77573         * m4/memcasecmp.m4: New file.
77574
77575         Module memcoll.
77576         * m4/memcoll.m4: New file.
77577
77578         Module unicodeio.
77579         * m4/unicodeio.m4: New file.
77580
77581         Module rpmatch.
77582         * m4/rpmatch.m4: New file.
77583
77584         Module yesno.
77585         * m4/yesno.m4: New file.
77586
77587         Module exitfail.
77588         * m4/exitfail.m4: New file.
77589
77590         Module c-stack.
77591         * m4/c-stack.m4 (gl_C_STACK): New macro.
77592         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
77593
77594         Module error.
77595         * m4/error.m4 (gl_ERROR): New macro.
77596         (jm_PREREQ_ERROR): Use onceonly macros.
77597
77598         Module fatal.
77599         * m4/fatal.m4: New file.
77600
77601         Module getloadavg.
77602         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
77603         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
77604
77605         Module getpagesize.
77606         * m4/getpagesize.m4: New file.
77607
77608         Module getusershell.
77609         * m4/getusershell.m4: New file.
77610
77611         Module physmem.
77612         * m4/physmem.m4: New file.
77613
77614         Module posixver.
77615         * m4/posixver.m4: New file.
77616
77617         Module quotearg.
77618         * m4/quotearg.m4: New file.
77619
77620         Module quote.
77621         * m4/quote.m4: New file.
77622
77623         Module readutmp.
77624         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
77625
77626         Module sig2str.
77627         * m4/sig2str.m4: New file.
77628
77629         Other.
77630         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
77631         ulonglong.m4.
77632         * m4/intmax_t.m4: New file.
77633         * m4/d-type.m4: Indentation.
77634         * m4/jm-macros.m4: Update.
77635         * m4/prereq.m4 (jm_PREREQ): Update.
77636         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
77637         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
77638         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
77639         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
77640         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
77641         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
77642         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
77643         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
77644         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
77645         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
77646         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
77647         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
77648         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
77649         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
77650         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
77651         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
77652         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
77653         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
77654         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
77655
77656 2002-12-24  Bruno Haible  <bruno@clisp.org>
77657
77658         * MODULES.txt: Update according to m4/ changes.
77659
77660         Module gettext.
77661         * config.rpath: New file, from gettext-0.11.5.
77662
77663         * modules/*: New module descriptions.
77664         * gnulib-tool: New file.
77665         * MODULES.html.sh: New file.
77666
77667 2002-12-21  Karl Berry  <karl@gnu.org>
77668
77669         * doc/fdl.texi: update to version 1.2.
77670
77671 2002-12-19  Karl Berry  <karl@gnu.org>
77672
77673         * config/config.guess: update from prep.
77674
77675 2002-12-18  Bruno Haible  <bruno@clisp.org>
77676
77677         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
77678         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
77679
77680 2002-12-17  Bruno Haible  <bruno@clisp.org>
77681
77682         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
77683         stdlib.h, string.h.
77684
77685 2002-12-17  Bruno Haible  <bruno@clisp.org>
77686
77687         * lib/canon-host.c (strdup): Remove unused declaration.
77688
77689         * lib/fsusage.c: Include full_read.h.
77690         (get_fs_usage): Use full_read instead of safe_read.
77691
77692         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
77693
77694 2002-12-12  Karl Berry  <karl@gnu.org>
77695
77696         * config/config.guess: update from prep.
77697
77698 2002-12-11  Bruno Haible  <bruno@clisp.org>
77699
77700         * m4/setenv.m4: New file, from gettext-0.11.5.
77701
77702 2002-12-11  Bruno Haible  <bruno@clisp.org>
77703
77704         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
77705         not unsetenv().
77706         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
77707         modifications:
77708
77709         2002-12-11  Bruno Haible  <bruno@clisp.org>
77710
77711                 * setenv.c (alloca): Fall back to malloc.
77712                 (freea): New macro.
77713                 (setenv): Use freea() to free memory allocated with alloca().
77714
77715         2002-11-13  Bruno Haible  <bruno@clisp.org>
77716
77717                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
77718                 function declarations.
77719                 * unsetenv.c (unsetenv): Likewise.
77720
77721         2002-03-04  Bruno Haible  <bruno@clisp.org>
77722
77723                 Portability to AIX 4.3.3.
77724                 * unsetenv.c: New file, extracted from setenv.c.
77725                 * setenv.c: Move the unsetenv() function to unsetenv.c.
77726
77727         2001-12-20  Bruno Haible  <bruno@clisp.org>
77728
77729                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
77730                 use malloc instead. For SunOS 4.
77731
77732         2001-12-11  Bruno Haible  <bruno@clisp.org>
77733
77734                 * setenv.c: Declare alloca.
77735                 (compar_fn_t): New typedef.
77736                 (KNOWN_VALUE, STORE_VALUE): Use it.
77737
77738         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
77739         setenv.h.
77740
77741 2002-12-10  Paul Eggert  <eggert@twinsun.com>
77742
77743         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
77744         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
77745         Choose values that are less likely to collide with system fnmatch
77746         options.
77747         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
77748         defined (e.g., a pure POSIX system).
77749         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
77750         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
77751
77752 2002-12-06  Paul Eggert  <eggert@twinsun.com>
77753
77754         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
77755         a pain in practice to deal with generated m4 files.  This change
77756         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
77757
77758         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
77759         and jm-glibc-io.m4, as they are no longer a special case.
77760         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
77761         kludge and the auto-generation stuff.  Check only whether the
77762         functions are declared, not whether they exist, since older hosts
77763         that don't declare the functions can't use the optimization anyway.
77764
77765 2002-12-06  Jim Meyering  <jim@meyering.net>
77766
77767         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
77768
77769         Merge in changes from libc's misc/error.c, in preparation
77770         for the merge of gnulib's changes back into libc.
77771
77772         * lib/error.c (_): Define only if not already defined.
77773         Move definition to follow all #include directives.
77774         Include unlocked-io.h only if !_LIBC.
77775         [_LIBC]: Include <libio/libioP.h>.
77776         [USE_IN_LIBIO]: Include <libio/iolibio.h>
77777         (fflush): Tweak definition to use INTUSE.
77778         (putc): Define.
77779
77780 2002-12-05  Paul Eggert  <eggert@twinsun.com>
77781
77782         * lib/alloca.c [defined emacs]: Include "lisp.h".
77783         (xalloc_die) [defined emacs]: New macro.
77784         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
77785         [! defined emacs]: Include <xalloc.h>.
77786         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
77787         (pointer): Typedef to POINTER_TYPE *.
77788         (malloc): Remove decl; we now always use xmalloc.
77789         (alloca): Use old-style definition, since Emacs needs this.
77790         Check for arithmetic overflow when computing combined size.
77791
77792 2002-12-04  Paul Eggert  <eggert@twinsun.com>
77793
77794         Do not generate unlocked-io.h automatically, since it's easier to
77795         maintain it by hand.
77796
77797         * lib/unlocked-io.h: New file, from GNU diffutils,
77798         but with proper copyright notice and attribution.
77799         * lib/gen-uio: Remove.
77800         * lib/Makefile.am: Add copyright notice.
77801         (libfetish_a_SOURCES): Add unlocked-io.h.
77802         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
77803         (DISTCLEANFILES, io_functions): Remove macros.
77804         (EXTRA_DIST): Remove gen_uio.
77805         (unlocked-io.h): Remove rule.
77806
77807 2002-12-04  Jim Meyering  <jim@meyering.net>
77808
77809         Reflect the fact that stat.c and lstat.c are no longer generated.
77810         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
77811         (DISTCLEANFILES): Likewise.
77812         (EXTRA_DIST): Likewise.
77813         (all_local): Don't depend on stat.c or lstat.c.
77814         (stat.c, lstat.c): Remove rules.
77815         (EXTRA_DIST): Remove xstat.in.
77816
77817         * lib/xstat.in: Remove file.  Contents moved into stat.c.
77818         * lib/stat.c: New file.  Contents mostly from xstat.in.
77819         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
77820         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
77821
77822         * lib/safe-read.c: Rework so that it may serve to define safe_write,
77823         too.
77824         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
77825
77826 2002-12-03  Jim Meyering  <jim@meyering.net>
77827
77828         * lib/safe-read.c, safe-write.c: Change variable names and comments,
77829         but not semantics, to minimize the differences between these two files.
77830         (safe_read): Change comment to mention SAFE_READ_ERROR.
77831
77832         * lib/safe-read.c (IS_EINTR): Define.
77833         (safe_read): Use IS_EINTR in place of in-function cpp directives.
77834
77835 2002-12-02  Jim Meyering  <jim@meyering.net>
77836
77837         * lib/safe-read.c (EINTR): Define.
77838         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77839         (INT_MAX): Provide fallback.
77840         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
77841
77842         * lib/safe-read.h (SAFE_READ_ERROR): Define.
77843
77844 2002-12-02  Bruno Haible  <bruno@clisp.org>
77845
77846         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
77847         Define, taken from safe-read.c.
77848         (INT_MAX): Provide fallback.
77849         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
77850         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
77851
77852         * lib/safe-read.c (EINTR): Remove definition.
77853         (safe_read): Don't use EINTR if it is absent.
77854
77855 2002-12-01  Jim Meyering  <jim@meyering.net>
77856
77857         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
77858         zero.
77859         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
77860
77861 2002-11-27  Paul Eggert  <eggert@twinsun.com>
77862
77863         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
77864         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
77865         with `if (! (value < limit)) abort ();', for readability.
77866
77867 2002-11-26  Karl Berry  <karl@gnu.org>
77868
77869         * lib/strdup.c: copy from libc again, with jim's ok.
77870         * lib/.cppi-disable: re-add strdup.c
77871
77872 2002-11-25  Karl Berry  <karl@gnu.org>
77873
77874         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
77875         instead of "strtol.c".
77876
77877 2002-11-25  Karl Berry  <karl@gnu.org>
77878
77879         * config/install-sh: update from automake for variable quoting, $0 in
77880         error msgs, etc.
77881
77882         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
77883         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
77884         entry.
77885
77886 2002-11-25  Jim Meyering  <jim@meyering.net>
77887
77888         * lib/mktime.c: Sync from libc, now that it has the latest fix.
77889
77890 2002-11-24  Karl Berry  <karl@gnu.org>
77891
77892         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
77893         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
77894
77895 2002-11-24  Jim Meyering  <jim@meyering.net>
77896
77897         Update from coreutils:
77898
77899         * lib/mktime.c: Merge in changes from libc.
77900
77901         Avoid a link-time failure on some Linux systems.
77902         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
77903         (otherwise).
77904         (__mon_yday): Declare with the STATIC attribute.
77905         (__mktime_internal): Likewise.
77906         Based on a report from Greg Schafer.
77907
77908 2002-11-23  Jim Meyering  <jim@meyering.net>
77909
77910         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
77911         Use `unsigned', not `int', as type of index.
77912
77913         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
77914
77915         * lib/fsusage.c: Remove unneeded parentheses around operands of
77916         `defined'.
77917
77918 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77919
77920         * lib/quotearg.h: Allow multiple inclusion by surrounding with
77921         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
77922         so that we can be included first.
77923         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
77924         * lib/quotearg.c: Include quotearg.h immediately after config.h.
77925         No need to include stddef.h or sys/types.h any more.
77926         Surround local include files with "", not "<>".
77927         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
77928         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
77929         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
77930         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
77931         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
77932         (ISPRINT): Remove; no longer needed now that we assume C89.
77933
77934         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
77935         Preserve errno.
77936
77937         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
77938         quotearg_char): Use SIZE_MAX rather than
77939         (size_t) -1 when we are talking about "infinity".
77940
77941         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
77942
77943 2002-11-22  Paul Eggert  <eggert@twinsun.com>
77944
77945         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
77946         hint that one should use `if (! x) abort ();' rather than `assert
77947         (x);', and anyway it's one less thing to worry about configuring.
77948         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
77949         hash_rehash, hash_insert): Use abort rather than assert.
77950
77951 2002-11-22  Bruno Haible  <bruno@clisp.org>
77952
77953         * lib/safe-read.h: Assume C89. Add comments.
77954         (safe_read): Change return type to size_t.
77955         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
77956         byte counts > SSIZE_MAX correctly.
77957         * lib/safe-write.h: New file.
77958         * lib/safe-write.c: New file.
77959         * lib/full-read.h: New file.
77960         * lib/full-read.c: New file.
77961         * lib/full-write.h: Assume C89. Add comments.
77962         * lib/full-write.c: Include safe-write.h.
77963         (full_write): Rewritten to use safe_write.
77964         Suggested by Jim Meyering and Paul Eggert.
77965
77966 2002-11-21  Jim Meyering  <jim@meyering.net>
77967
77968         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
77969
77970         Merge in changes from the coreutils.
77971
77972         2002-09-25  Paul Eggert  <eggert@twinsun.com>
77973         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
77974         <stdint.h>.
77975         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
77976         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
77977         int.  Work more efficiently if X is the same width as uintmax_t.
77978         Do not compare X to -1, to avoid bogus compiler warning.
77979         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
77980         Don't assume that f_frsize and f_bsize are the same type.
77981
77982         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
77983         warning on FreeBSD.
77984
77985         * lib/makepath.c (make_path): Restore umask *before* creating the final
77986         component.
77987         (make_path): Minor reformatting.
77988
77989         * lib/xmalloc.c: Adjust to work with new autoconf macros,
77990         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
77991         HAVE_MALLOC/HAVE_REALLOC.
77992
77993         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
77994         dummy ones.  At least on GNU/Linux systems, `auto' means something
77995         else.
77996         From Michael Stone.
77997
77998 2002-11-21  Bruno Haible  <bruno@clisp.org>
77999
78000         Remove case insensitive option matching.
78001         * lib/argmatch.h (argcasematch): Remove declaration.
78002         (ARGCASEMATCH): Remove macro.
78003         (__xargmatch_internal): Remove case_sensitive argument.
78004         (XARGMATCH): Update.
78005         (XARGCASEMATCH): Remove macro.
78006         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
78007         case_sensitive argument.
78008         (argcasematch): Remove function.
78009         (__xargmatch_internal): Remove case_sensitive argument.
78010         (main): Use XARGMATCH instead of XARGCASEMATCH.
78011
78012         * lib/xmalloc.c: Change compile-time error message. Add comment about
78013         required autoconf version.
78014
78015 2002-11-20  Paul Eggert  <eggert@twinsun.com>
78016
78017         Merge argmatch cleanups from Bison.  Assume C89.
78018
78019         * lib/argmatch.c: Include config.h here, not in argmatch.h.
78020         Include stdlib.h, for EXIT_FAILURE.
78021         Always include <string.h>, since we assume C89.
78022         (EXIT_FAILURE): Remove pre-C89 bug workaround.
78023         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
78024         Include <stddef.h> instead, since it's all we need for size_t.
78025         (PARAMS): Remove.  All uses removed.
78026         (ARRAY_CARDINALITY): Do not bother to #undef.
78027         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
78028         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78029         Remove unnecessary parentheses.
78030         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
78031         Insert necessary parentheses.
78032         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
78033         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
78034
78035 2002-11-19  Bruno Haible  <bruno@clisp.org>
78036
78037         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
78038         * lib/mbswidth.h: Include <stddef.h>, for size_t.
78039
78040         * lib/mbswidth.h (PARAMS): Remove macro.
78041         (mbswidth, mbsnwidth): Use ANSI C function declarations.
78042         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
78043
78044         * lib/gcd.h (PARAMS): Remove macro.
78045         (gcd): Use ANSI C function declarations.
78046         * lib/gcd.c (gcd): Likewise.
78047
78048 2002-11-15  Bruno Haible  <bruno@clisp.org>
78049
78050         * lib/strcspn.c: Include <stddef.h>.
78051         (strcspn): Use ANSI C function declaration. Change return type to
78052         size_t. Use NULL.
78053         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
78054         (strpbrk): Use NULL.
78055         * lib/strpbrk.h (PARAMS): Remove macro.
78056         (strpbrk): Use ANSI C function declaration.
78057         * lib/strstr.c: Don't include <sys/types.h>.
78058         * lib/strstr.h (PARAMS): Remove macro.
78059         (strstr): Use ANSI C function declarations.
78060
78061 2002-11-14  Karl Berry  <karl@gnu.org>
78062
78063         * config/mkinstalldirs: `do' on separate line, instead of
78064         `for var; do'.
78065
78066 2002-11-06  Bruno Haible  <bruno@clisp.org>
78067
78068         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
78069         * lib/gcd.c (gcd): Likewise.
78070
78071 2002-11-05  Bruno Haible  <bruno@clisp.org>
78072
78073         * lib/gcd.h: New file, from gettext-0.11.5.
78074         * lib/gcd.c: New file, from gettext-0.11.5.
78075
78076 2002-11-05  Bruno Haible  <bruno@clisp.org>
78077
78078         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78079         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78080         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78081         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
78082
78083         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
78084         <libintl.h>.
78085         * lib/makepath.c: Include gettext.h instead of <locale.h> and
78086         <libintl.h>.
78087
78088         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
78089         * lib/human.c: Include gettext.h instead of <libintl.h>.
78090         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
78091         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
78092         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
78093         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
78094         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
78095         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
78096         (textdomain): Remove definition.
78097         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
78098
78099         * lib/long-options.c: Remove include of <libintl.h> and definition of
78100         _.
78101         * lib/same.c: Remove include of <libintl.h> and definition of _.
78102
78103 2002-11-04  Owen Taylor  <otaylor@redhat.com>
78104
78105         * lib/config.charset: A few additions for Solaris.
78106
78107 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78108
78109         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
78110         * lib/localcharset.c (locale_charset): Declare as extern "C".
78111
78112 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
78113
78114         * lib/config.charset: msdos in uk_UA uses CP1125.
78115
78116 2002-11-04  Bruno Haible  <bruno@clisp.org>
78117
78118         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
78119         * lib/strcase.h: New file, from GNU gettext-0.11.5.
78120         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
78121         * lib/strstr.h: New file, from GNU gettext-0.11.5.
78122         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
78123
78124 2002-11-04  Bruno Haible  <bruno@clisp.org>
78125
78126         * lib/localcharset.c (locale_charset): Don't return an empty string.
78127
78128 2002-11-04  Bruno Haible  <bruno@clisp.org>
78129
78130         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
78131         aliases.
78132
78133 2002-11-04  Bruno Haible  <bruno@clisp.org>
78134
78135         * lib/config.charset: Update for newest glibc. Add canonical names
78136         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
78137
78138 2002-11-04  Bruno Haible  <bruno@clisp.org>
78139
78140         * lib/config.charset: Add support for NetBSD.
78141
78142 2002-11-04  Bruno Haible  <bruno@clisp.org>
78143
78144         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
78145
78146 2002-11-01  Bruno Haible  <bruno@clisp.org>
78147
78148         * configure.in: Add AC_CONFIG_AUX_DIR call.
78149         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
78150         test/Makefile.
78151         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
78152
78153 2002-09-28  Karl Berry  <karl@gnu.org>
78154
78155         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
78156         installed automake until the next release, since changes have been
78157         made.
78158
78159 2002-09-25  Karl Berry  <karl@gnu.org>
78160
78161         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
78162         * lib/getopt*: copy from libc/posix.
78163         * lib/gettext.h: copy from gettext.
78164         * lib/.cppi-disable: add strdup.c, gettext.h.
78165
78166 2002-09-25  Karl Berry  <karl@gnu.org>
78167
78168         * config/srclist.txt: enable gettext.h check.
78169         * config/config.{guess,sub}: update from prep.
78170         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
78171                 from automake 1.6.3.
78172         See srclist*.
78173
78174 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
78175
78176         * regex.c (PATFETCH): Remove the translating fetch.
78177         (PATFETCH_RAW): Rename to PATFETCH.
78178         (set_image_of_range): New fun.
78179         (SET_RANGE_TABLE_WORK_AREA): Use it.
78180         (regex_compile): Don't translate the pattern chars so eagerly.
78181         Only do it when inserting an `exactn' bytecode or when handling
78182         a char-range.
78183         (mutually_exclusive_p): Avoid empty statement.
78184
78185 2002-07-06  Jim Meyering  <meyering@lucent.com>
78186
78187         * m4/README: Don't mention Makefile.am.in.
78188         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
78189
78190 2002-07-01  Jim Meyering  <meyering@lucent.com>
78191
78192         * lib/c-stack.c: Include sys/time.h.
78193         From Volker Borchert.
78194
78195 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78196
78197         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
78198
78199 2002-06-26  Paul Eggert  <eggert@twinsun.com>
78200
78201         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
78202         New macro.  Use it uniformly instead of
78203         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
78204         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
78205         reported by Vin Shelton.
78206
78207 2002-06-22  Paul Eggert  <eggert@twinsun.com>
78208
78209         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
78210         Do not assume SA_SIGINFO behavior.
78211         Bug reported by Jim Meyering on NetBSD 1.5.2.
78212
78213 2002-06-22  Jim Meyering  <meyering@lucent.com>
78214
78215         * m4/c-stack.m4: New file, from diffutils-2.8.2.
78216         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
78217
78218         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
78219         now that configure.ac uses AC_GNU_SOURCE.
78220         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
78221         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
78222
78223         Update to latest tools.  Suggestions from Paul Eggert.
78224         * m4/stdbool.m4: New file, from diffutils-2.8.2.
78225         * m4/gnu-source.m4: Update from diffutils-2.8.2.
78226         * m4/fnmatch.m4: Likewise.
78227         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
78228         to AC_HEADER_STDBOOL
78229
78230 2002-06-22  Jim Meyering  <meyering@lucent.com>
78231
78232         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
78233         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
78234
78235 2002-06-22  Jim Meyering  <meyering@lucent.com>
78236
78237         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
78238
78239         * lib/exitfail.c, exitfail.h: Likewise.
78240         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
78241
78242         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
78243         of fnmatch.h.
78244         (EXTRA_DIST): Add fnmatch_loop.c.
78245         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
78246
78247         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
78248         * lib/fnmatch.c: Update from diffutils-2.8.2.
78249         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
78250         * lib/fnmatch.h: Remove file.
78251
78252 2002-06-21  Jim Meyering  <meyering@lucent.com>
78253
78254         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
78255         * m4/mbrtowc.m4: Likewise.
78256
78257         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
78258         * m4/mbswidth.m4: Reflect name change:
78259         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
78260         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78261
78262         * m4/lib-link.m4: Update from gettext-0.11.2.
78263         * m4/gettext.m4: Likewise.
78264
78265         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
78266         From Alfred M. Szmidt.
78267
78268 2002-06-18  Paul Eggert  <eggert@twinsun.com>
78269
78270         * lib/file-type.h: Report an error if neither S_ISREG nor
78271         S_IFREG is defined, instead of using a test specific to glibc
78272         2.2.  This should be safe, since POSIX requires S_ISREG and
78273         Unix Version 7 had S_IFREG.  We don't need to check for
78274         <sys/types.h> since we don't use any symbols that it defines.
78275
78276 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
78277
78278         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
78279         $@-t, so that each temporary file name is unique and valid in the first
78280         8 characters, for operation under DOS.
78281
78282 2002-06-15  Paul Eggert  <eggert@twinsun.com>
78283
78284         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
78285
78286 2002-06-15  Jim Meyering  <meyering@lucent.com>
78287
78288         Work even with DJGPP 2.03, which lacks support for symlinks.
78289         From Richard Dawe.
78290         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
78291         is defined.
78292         * lib/lchown.c (S_ISLNK): Likewise.
78293
78294 2002-06-15  Jim Meyering  <meyering@lucent.com>
78295
78296         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
78297         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
78298         have been included before this file.
78299
78300 2002-06-14  Jim Meyering  <meyering@lucent.com>
78301
78302         * lib/file-type.h: Use the version from diffutils-2.8.2.
78303         * lib/file-type.c: Likewise.
78304
78305 2002-06-07  Jim Meyering  <meyering@lucent.com>
78306
78307         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
78308         They're needed at least for NetBSD 1.5.2.
78309         ($statxfs_includes): Include those same headers.
78310         ($statxfs_includes): Include sys/vfs.h if available.
78311         ($statxfs_includes): Likewise for sys/statvfs.h.
78312         Check for the following members in both structs statfs and statvfs:
78313         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
78314
78315 2002-06-01  Jim Meyering  <meyering@lucent.com>
78316
78317         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
78318         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
78319
78320 2002-05-28  Jim Meyering  <meyering@lucent.com>
78321
78322         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
78323         Reported by Volker Borchert.
78324
78325 2002-05-27  Jim Meyering  <meyering@lucent.com>
78326
78327         Fix a problem seen only on nonconforming systems whereby ls.c's
78328         use of localtime, and then of gettimeofday would cause trouble:
78329         the localtime call used to initialize rpl_gettimeofday's save
78330         mechanism would clobber ls's current local time information so
78331         that in any long listing the first file would always be listed
78332         with date 1970-01-01.  Analysis by Volker Borchert.
78333
78334         * lib/gettimeofday.c (localtime): Undefine.
78335         (rpl_localtime): New function.
78336
78337 2002-05-27  Jim Meyering  <meyering@lucent.com>
78338
78339         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
78340         localtime.
78341
78342         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
78343         use the replacement function; it wouldn't resolve at link time.
78344         Reported by Volker Borchert.
78345
78346 2002-05-22  Jim Meyering  <meyering@lucent.com>
78347
78348         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
78349         file-type.h.
78350         * lib/file-type.h: New file.
78351         * lib/file-type.c (file_type): New file/function.  Extracted from
78352         diffutils.
78353
78354 2002-04-30  Jim Meyering  <meyering@lucent.com>
78355
78356         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
78357
78358 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78359
78360         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
78361
78362 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78363
78364         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
78365         Do not check for alloca.h (no longer used) or stdbool.h (was never
78366         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
78367
78368 2002-04-29  Paul Eggert  <eggert@twinsun.com>
78369
78370         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
78371
78372 2002-04-29  Jim Meyering  <meyering@lucent.com>
78373
78374         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
78375         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
78376         Use AC_FUNC_STRNLEN here instead.
78377
78378         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
78379         With autoconf-2.53a, it's part of AC_PROG_CC.
78380
78381 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78382
78383         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
78384         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
78385
78386 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78387
78388         * lib/sig2str.h, lib/sig2str.c: New files.
78389         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
78390
78391 2002-04-28  Paul Eggert  <eggert@twinsun.com>
78392
78393         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
78394         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
78395         of 127, since 64 is the largest conceivable number for ancient
78396         nonstandard hosts.
78397         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
78398
78399 2002-04-28  Jim Meyering  <meyering@lucent.com>
78400
78401         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
78402
78403 2002-04-24  Jim Meyering  <meyering@lucent.com>
78404
78405         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
78406         (jm_PREREQ): Use it.
78407
78408         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
78409         mach/mach.h fcntl.h.
78410         Check for this function: setlocale.
78411
78412 2002-04-24  Jim Meyering  <meyering@lucent.com>
78413
78414         * lib/gettext.h: New file, from Gettext.
78415         * lib/Makefile.am (INCLUDES): Remove -I../intl.
78416         (libfetish_a_SOURCES): Add gettext.h.
78417
78418 2002-04-16  Jim Meyering  <meyering@lucent.com>
78419
78420         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
78421         ut_pid, ut_id, ut_exit.
78422
78423 2002-04-16  Jim Meyering  <meyering@lucent.com>
78424
78425         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
78426         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
78427         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
78428
78429 2002-04-12  Jim Meyering  <meyering@lucent.com>
78430
78431         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
78432         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
78433         existence of the getmntinfo function.  Needed for Darwin 5.3.
78434
78435         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
78436         This is necessary at least on Darwin 5.3.
78437
78438         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
78439         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
78440         strnlen.o in the library, and that makes some versions of ranlib
78441         object.
78442
78443 2002-04-12  Jim Meyering  <meyering@lucent.com>
78444
78445         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
78446
78447 2002-04-09  Jim Meyering  <meyering@lucent.com>
78448
78449         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
78450         to be more precise.  Rather than saying we're checking whether the
78451         function `works', say what we're testing.
78452         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
78453         Reported by Bruno Haible.
78454
78455 2002-03-10  Jim Meyering  <meyering@lucent.com>
78456
78457         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
78458         Suggestion from Santiago Vila.
78459
78460 2002-03-08  Jim Meyering  <meyering@lucent.com>
78461
78462         * lib/rename.c: Mention that this wrapper is needed also on
78463         mips-dec-ultrix4.4 systems.
78464
78465 2002-03-02  Jim Meyering  <meyering@lucent.com>
78466
78467         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
78468         not HAVE_CLOCK_SETTIME.
78469
78470 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78471
78472         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
78473         Check for clock_settime.
78474
78475 2002-02-27  Paul Eggert  <eggert@twinsun.com>
78476
78477         * lib/nanosleep.h: Rename to....
78478         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
78479
78480         * lib/gettime.c: New file.
78481         * lib/settime.c: New file.
78482         * lib/stime.c: Remove.
78483
78484         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
78485         timespec.h.  Remove nanosleep.h.
78486
78487 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78488
78489         * m4/acl.m4: New file.
78490         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
78491         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
78492
78493 2002-02-25  Paul Eggert  <eggert@twinsun.com>
78494
78495         * lib/acl.c, lib/acl.h: New files.
78496         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
78497
78498 2002-02-24  Jim Meyering  <meyering@lucent.com>
78499
78500         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
78501         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
78502         cause trouble.  Reported by Nelson Beebe.
78503
78504 2002-02-23  Paul Eggert  <eggert@twinsun.com>
78505
78506         * lib/path-concat.c (xpath_concat): Reorder code to pacify
78507         compilers that don't know that xalloc_die never returns.
78508
78509 2002-02-20  Jim Meyering  <meyering@lucent.com>
78510
78511         * lib/getdate.c: Regenerate using bison-1.33.
78512
78513 2002-02-17  Jim Meyering  <meyering@lucent.com>
78514
78515         * config/config.guess (main): Don't use `head -1'; it's no longer
78516         portable. Use `sed 1q' instead.
78517
78518 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
78519
78520         * m4/codeset.m4: Upgrade to gettext-0.11.
78521         * m4/gettext.m4: Upgrade to gettext-0.11.
78522         * m4/glibc21.m4: Upgrade to gettext-0.11.
78523         * m4/iconv.m4: Upgrade to gettext-0.11.
78524         * m4/isc-posix.m4: Upgrade to gettext-0.11.
78525         * m4/lcmessage.m4: Upgrade to gettext-0.11.
78526         * m4/lib-ld.m4: New file, from gettext-0.11.
78527         * m4/lib-link.m4: New file, from gettext-0.11.
78528         * m4/lib-prefix.m4: New file, from gettext-0.11.
78529         * m4/progtest.m4: Upgrade to gettext-0.11.
78530
78531 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78532
78533         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
78534         (jm_PREREQ): Use it.
78535
78536 2002-02-15  Paul Eggert  <eggert@twinsun.com>
78537
78538         * lib/posixver.c, lib/posixver.h: New files.
78539         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78540
78541 2002-02-02  Paul Eggert  <eggert@twinsun.com>
78542             Bruno Haible  <bruno@clisp.org>
78543
78544         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
78545         (fwrite_success_callback): New declaration.
78546         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
78547         print_unicode_char. Call failure callback instead of error.
78548         (fwrite_success_callback): New function.
78549         (exit_failure_callback): New function.
78550         (fallback_failure_callback): New function.
78551         (print_unicode_char): Call unicode_to_mb.
78552
78553 2002-01-26  Jim Meyering  <meyering@lucent.com>
78554
78555         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
78556         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
78557
78558 2002-01-26  Jim Meyering  <meyering@lucent.com>
78559
78560         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
78561
78562 2002-01-22  Paul Eggert  <eggert@twinsun.com>
78563
78564         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
78565
78566 2002-01-22  Jim Meyering  <meyering@lucent.com>
78567
78568         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
78569         Otherwise, some versions of automake would omit the rule that makes
78570         Makefile from Makefile.in.
78571
78572 2002-01-21  Paul Eggert  <eggert@twinsun.com>
78573
78574         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
78575         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
78576         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
78577         (memcoll): Set errno to zero if there is no error.
78578
78579         * lib/quotearg.c (quotearg_buffer_restyled):
78580         Fix bug with quoting buffers containing NUL when backslashing escapes.
78581         This bug was exposed by the other changes in this patch.
78582         (quotearg_n_options): New arg ARGSIZE.
78583         All callers changed.
78584         (quoting_options_from_style): New function.
78585         (quotearg_n_style): Use it.
78586         (quotearg_n_style_mem): New function.
78587
78588         * lib/quotearg.h (quotearg_n_style_mem): New function.
78589
78590 2002-01-19  Jim Meyering  <meyering@lucent.com>
78591
78592         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
78593         Remove useless quotes: DF_PROG="df".
78594         * m4/strnlen.m4: New file.
78595
78596 2002-01-16  Paul Eggert  <eggert@twinsun.com>
78597
78598         * lib/backupfile.c (ISDIGIT): Comment fix.
78599         * lib/getdate.y (ISDIGIT): Likewise.
78600         * lib/posixtm.c (ISDIGIT, year): Likewise.
78601         * lib/strverscmp.c (ISDIGIT): Likewise.
78602         * lib/userspec.c (ISDIGIT): Likewise.
78603
78604 2002-01-16  Jim Meyering  <meyering@lucent.com>
78605
78606         * lib/getdate.y: Add three semicolons, each just before a closing
78607         brace. Bison (as of version 1.31) no longer papers over that mistake.
78608
78609 2002-01-05  Jim Meyering  <meyering@lucent.com>
78610
78611         * lib/version-etc.c (version_etc_copyright): Update copyright year.
78612
78613 2001-12-19  Paul Eggert  <eggert@twinsun.com>
78614
78615         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
78616         not silently exit merely because the output buffer happens to
78617         have nothing pending.
78618
78619 2001-12-18  Paul Eggert  <eggert@twinsun.com>
78620
78621         See the big note in ../ChangeLog.
78622         * lib/human.c (suffixes): Prefer K to k for 1024.
78623         (generate_suffix_backwards): New function.
78624         (human_readable_inexact): Use it.
78625         * lib/xstrtol.c (__xstrtol): If there is no number but there
78626         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
78627         Accept 'K' as well as 'k'.
78628
78629 2001-12-15  Jim Meyering  <meyering@lucent.com>
78630
78631         * lib/regex.h (__restrict_arr): Update from libc.
78632
78633         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
78634         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
78635         (STREQ): Define.
78636
78637 2001-12-14  Jim Meyering  <meyering@lucent.com>
78638
78639         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
78640         Suggestion from Bruno Haible.
78641
78642 2001-12-10  Jim Meyering  <meyering@lucent.com>
78643
78644         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
78645         xrealloc, Instead, include "xalloc.h".
78646         (initbuffer): Don't cast xmalloc return value to char*.
78647         (readline): Reword comment.
78648         Don't cast xrealloc return value to char*
78649         Return NULL, not 0.
78650
78651 2001-12-09  Jim Meyering  <meyering@lucent.com>
78652
78653         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
78654         about `signed and unsigned type in conditional expression'.
78655         * lib/posixtm.c (posix_time_parse): Likewise.
78656
78657         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
78658
78659         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
78660         to avoid a pedantic warning.
78661
78662         * lib/getstr.c: Don't include assert.h.
78663         (getstr): Remove warning-evoking assertions.
78664         Return -1 if offset parameter is out of bounds.
78665         Change the type of a local from int to size_t.
78666
78667         * lib/strftime.c (my_strftime_localtime_r): Include this function
78668         definition in the `#if ! HAVE_TM_GMTOFF' block.
78669
78670         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
78671         Include xalloc.h instead.
78672
78673 2001-12-02  Jim Meyering  <meyering@lucent.com>
78674
78675         * lib/tempname.c: Don't declare getenv, thus reverting the change of
78676         2001-11-18.  It's no longer necessary, now that stdlib.h is always
78677         included.
78678
78679         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
78680         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
78681
78682 2001-11-30  Akim Demaille  <akim@epita.fr>
78683
78684         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
78685         before being defined.
78686
78687 2001-11-27  Paul Eggert  <eggert@twinsun.com>
78688
78689         * lib/quotearg.h (quotearg_n, quotearg_n_style):
78690         First arg is int, not unsigned.
78691         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
78692         (SIZE_MAX, UINT_MAX): New macros.
78693         (quotearg_n_options): Abort if N is negative.
78694         Avoid overflow check on hosts where size_t is 64 bits and int
78695         is 32 bits, as overflow is impossible there.
78696         Fix off-by-one typo that caused unnecessary reallocation.
78697
78698 2001-11-27  Jim Meyering  <meyering@lucent.com>
78699
78700         * lib/tempname.c: Merge with version from libc.
78701         * lib/regex.c: Likewise.
78702
78703         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
78704         systems for which STDC_HEADERS is 0, it was not included, resulting in
78705         a warning about an integer-to-pointer conversion problem with getenv.
78706         Reported by Volker Borchert.
78707
78708 2001-11-26  Jim Meyering  <meyering@lucent.com>
78709
78710         * lib/gtod.h: Remove file.
78711         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
78712         * lib/gettimeofday.c: Don't include gtod.h.
78713         (GTOD_init): Remove function.
78714         (rpl_gettimeofday): Do its job here instead, rather than aborting.
78715         Suggestion from Volker Borchert.
78716
78717 2001-11-23  Jim Meyering  <meyering@lucent.com>
78718
78719         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
78720         it.
78721         * lib/hash.c (struct hash_table): Define it here instead.
78722
78723 2001-11-22  Jim Meyering  <meyering@lucent.com>
78724
78725         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
78726
78727 2001-11-20  Jim Meyering  <meyering@lucent.com>
78728
78729         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
78730         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
78731
78732 2001-11-19  Jim Meyering  <meyering@lucent.com>
78733
78734         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
78735         directory.  Use "conftestXXXXXX" as the template.
78736         Suggestion from Paul Eggert.
78737
78738         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
78739         immediately, so the test doesn't mistakenly hit the max-open-files
78740         limit.
78741
78742 2001-11-18  Paul Eggert  <eggert@twinsun.com>
78743
78744         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
78745         (TEMPORARIES): New macro.
78746         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
78747         removes an artificial limitation (e.g. HP-UX 10.20, where
78748         TMP_MAX is 17576).
78749
78750 2001-11-18  Jim Meyering  <meyering@lucent.com>
78751
78752         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
78753
78754 2001-11-18  Jim Meyering  <meyering@lucent.com>
78755
78756         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
78757         on SunOS 4.
78758
78759         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
78760         files will be created before anything else.
78761
78762 2001-11-17  Paul Eggert  <eggert@twinsun.com>
78763
78764         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
78765         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
78766
78767 2001-11-17  Jim Meyering  <meyering@lucent.com>
78768
78769         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
78770         Prompted by a report from Bob Proulx.
78771
78772         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
78773         Instead, require UTILS_FUNC_MKSTEMP.
78774
78775 2001-11-17  Jim Meyering  <meyering@lucent.com>
78776
78777         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
78778         Now, that's done as part of AC_FUNC_STRTOD.
78779
78780 2001-11-17  Jim Meyering  <meyering@lucent.com>
78781
78782         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
78783         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
78784         rather than group writable.  Patch by Juan F. Codagnone.
78785
78786         * lib/readtokens.c: Remove explicit declarations of xmalloc and
78787         xrealloc, Instead, include "xalloc.h".
78788
78789         * lib/mountlist.c: Include unlocked-io.h after all system headers.
78790         Remove explicit declarations of xmalloc, xrealloc,
78791         and xstrdup.  Instead, include "xalloc.h".
78792
78793         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
78794         unlocked-io.h.
78795         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
78796         Likewise.
78797         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
78798
78799         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
78800         Reported by Padraig Brady.
78801
78802         * lib/mkstemp.c: #undef mkstemp.
78803         Include config.h.
78804         (rpl_mkstemp): Rename from mkstemp.
78805         Protoize.
78806
78807 2001-11-16  Jim Meyering  <meyering@lucent.com>
78808
78809         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
78810         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
78811         determine the amount of total physical memory, use pstat_getstatic.
78812         HPUX-11 doesn't define _SC_PHYS_PAGES.
78813         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
78814         If sysconf couldn't be used to determine the amount of available
78815         physical memory, use both pstat_getstatic and pstat_getdynamic.
78816         Based on a patch from Bob Proulx.
78817
78818 2001-11-10  Jim Meyering  <meyering@lucent.com>
78819
78820         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
78821         (jm_PREREQ): Use it.
78822
78823 2001-11-09  Jim Meyering  <meyering@lucent.com>
78824
78825         * m4/jm-macros.m4: Require autoconf-2.52f.
78826         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
78827         Use these AC_-prefixed names, not the AM_-prefixed ones.
78828
78829         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
78830
78831 2001-11-05  Jim Meyering  <meyering@lucent.com>
78832
78833         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
78834
78835 2001-11-04  Jim Meyering  <meyering@lucent.com>
78836
78837         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
78838         $DEFS.
78839
78840 2001-11-03  Jim Meyering  <meyering@lucent.com>
78841
78842         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
78843         of AC_DEFUN.
78844
78845         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
78846         know the name of the variable in the macro definition.
78847
78848 2001-11-03  Jim Meyering  <meyering@lucent.com>
78849
78850         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
78851         in argmatch_to_argument call.
78852
78853         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
78854         argument.
78855
78856         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
78857         e.g., a fault due to an attempt to free a NULL pointer.
78858
78859 2001-11-01  Jim Meyering  <meyering@lucent.com>
78860
78861         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
78862         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
78863
78864 2001-11-01  Jim Meyering  <meyering@lucent.com>
78865
78866         * lib/dirfd.c, lib/dirfd.h: New files.
78867         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
78868
78869         * lib/hash.c (hash_print) [TESTING]: Clean up.
78870
78871 2001-10-22  Paul Eggert  <eggert@twinsun.com>
78872
78873         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
78874         to avoid a warning if -Wall.
78875
78876 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
78877
78878         * README: New file
78879         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
78880         (per RMS's instructions, this is now the canonical source)
78881         * lgpl/, gpl/: New directories.
78882
78883 2001-10-21  Paul Eggert  <eggert@twinsun.com>
78884
78885         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
78886
78887 2001-10-21  Jim Meyering  <meyering@lucent.com>
78888
78889         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
78890         this code would end up calling gettext even in packages built
78891         with --disable-nls.
78892         * lib/getopt.c (_): Likewise.
78893         * lib/regex.c (_): Likewise.
78894
78895 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78896
78897         * m4/error.m4 (jm_PREREQ_ERROR):
78898         Do not invoke AC_CHECK_FUNCS with strerror_r, as
78899         AC_FUNC_STRERROR_R does that.
78900         Check for strerror declaration.
78901
78902         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
78903         are supposed to have them these days.
78904         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
78905         Merge changes from latest Autoconf CVS.
78906         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
78907         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
78908         POSIX decided to standardize on the int flavor of strerror_r.
78909
78910 2001-10-20  Paul Eggert  <eggert@twinsun.com>
78911
78912         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
78913         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
78914         Use strerror_r that is only a macro, even if it is not a function.
78915         (strerror): Check for HAVE_DECL_STRERROR before declaring.
78916         (private_strerror): Use prototypes, not old-style function definition.
78917         (print_errno_message): New function.
78918         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
78919         char*-flavored one.
78920         (error_tail, error, error_at_line): Use it.
78921
78922 2001-10-11  Jim Meyering  <meyering@lucent.com>
78923
78924         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
78925         and quote_n (1, ... to avoid clobbering a buffer.
78926
78927 2001-10-05  Jim Meyering  <meyering@lucent.com>
78928
78929         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
78930         hash-pjw.h.
78931         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
78932         * lib/hash-pjw.h: New file.
78933
78934 2001-09-30  Jim Meyering  <meyering@lucent.com>
78935
78936         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
78937         `struct fsstat' has the `f_fstypename' member.
78938         Use that to define FS_TYPE, which is now used to make
78939         the getfsstat link test tighter.
78940
78941 2001-09-30  Jim Meyering  <meyering@lucent.com>
78942
78943         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
78944         Include <sys/ucred.h>, for Apple Darwin.
78945         Include sys/mount.h and sys/fs_types.h only if available.
78946         (FS_TYPE): Define.
78947         (read_filesystem_list): Use FS_TYPE.
78948
78949 2001-09-29  Paul Eggert  <eggert@twinsun.com>
78950
78951         * lib/exclude.c (excluded_filename): 0 -> false, since it's
78952         a boolean context.
78953
78954 2001-09-29  Jim Meyering  <meyering@lucent.com>
78955
78956         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78957         [one-argument getmntent function]): Include stdio.h before mntent.h.
78958         SunOS 4.1.x needs it for the declaration of `FILE'.
78959         Patch by Volker Borchert.
78960
78961         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
78962         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
78963         sys/fs_types.h, and make the link-test for getfsstat guard #include
78964         directives with appropriate #if HAVE_*_H tests so that we can
78965         detect getfsstat on Apple Darwin1.3.7 systems.
78966         Reported by Nelson Beebe.
78967         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
78968
78969 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78970
78971         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78972         #defines strtoimax.  Also treat the other strto* functions
78973         like strtoimax.
78974
78975         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
78976         Check for strtoul and strtoumax,
78977         as those declarations are made even in the signed case.
78978         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
78979         Likewise, for strtol and strtoimax.
78980
78981 2001-09-28  Paul Eggert  <eggert@twinsun.com>
78982
78983         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
78984         #defines strtoimax.  Also treat the other strto* functions
78985         like strtoimax.
78986
78987         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
78988         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
78989         (strtoimax, strtoumax): Do not declare if already defined as a macro.
78990
78991 2001-09-26  Jim Meyering  <meyering@lucent.com>
78992
78993         Most macros in unlocked-io.h had the wrong number of arguments.
78994         * lib/gen-uio: New script.
78995         (USE_UNLOCKED_IO): Define to 1 if not already defined.
78996         * lib/unlocked-io.hin: Remove file.
78997         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
78998         rather than trying to embed it here.
78999         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
79000         Reported by Padraig Brady.
79001
79002 2001-09-25  Volker Borchert  <bt@teknon.de>
79003
79004         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
79005         `result'.
79006
79007 2001-09-24  Jim Meyering  <meyering@lucent.com>
79008
79009         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
79010
79011 2001-09-23  Jim Meyering  <meyering@lucent.com>
79012
79013         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
79014         instead of the mere test for existence of mntent.h.  The latter
79015         would get a false-positive on AIX 3.4 systems.
79016         In the outer getmntent if-block, don't die if neither of the getmntent
79017         tests succeeds.  Instead, just fall through and continue with the
79018         remaining tests.
79019
79020 2001-09-23  Jim Meyering  <meyering@lucent.com>
79021
79022         * lib/mountlist.c: Remove useless parentheses in #if directives.
79023         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
79024         the deprecated MOUNTED symbol is no longer defined in mntent.h.
79025
79026 2001-09-22  Jim Meyering  <meyering@lucent.com>
79027
79028         * m4/gettext.m4: New file.  From gettext.
79029         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
79030         * m4/progtest.m4: Likewise
79031         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
79032         * m4/glibc21.m4: Likewise.
79033
79034         * m4/libintl.m4: Remove.  No longer used.
79035
79036 2001-09-22  Jim Meyering  <meyering@lucent.com>
79037
79038         * lib/localcharset.c: Update from latest gettext.
79039         * lib/config.charset: Likewise.
79040
79041 2001-09-20  Jim Meyering  <meyering@lucent.com>
79042
79043         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
79044         strtoimax.
79045         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
79046         strtoumax.
79047
79048 2001-09-20  Jim Meyering  <meyering@lucent.com>
79049
79050         * lib/xstrtol.c (strtoimax): Guard declaration with
79051         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
79052         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
79053         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
79054         (strtoumax): Likewise, for completeness (it wasn't necessary).
79055
79056 2001-09-17  Paul Eggert  <eggert@twinsun.com>
79057
79058         * lib/strtoimax.c (HAVE_LONG_LONG):
79059         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
79060         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
79061         to work around bug in IBM C compiler.
79062
79063 2001-09-17  Jim Meyering  <meyering@lucent.com>
79064
79065         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
79066         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
79067         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
79068         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
79069         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
79070         whenever the right hand side need not be expanded by the shell.
79071
79072 2001-09-16  Paul Eggert  <eggert@twinsun.com>
79073
79074         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
79075         library.  It's not correct, as some older glibcs are buggy.
79076         fnmatch wasn't fixed until glibc 2.2.
79077
79078         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
79079         special shell magic here.
79080
79081 2001-09-16  Jim Meyering  <meyering@lucent.com>
79082
79083         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
79084         * m4/jm-macros.m4: Require it.
79085
79086 2001-09-16  Jim Meyering  <meyering@lucent.com>
79087
79088         * lib/mkdir.c: New file.
79089
79090 2001-09-15  Jim Meyering  <meyering@lucent.com>
79091
79092         * m4/jm-macros.m4: Check for help2man.
79093
79094 2001-09-11  Jim Meyering  <meyering@lucent.com>
79095
79096         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
79097         The body, by Paul Eggert, was moved here from configure.in.
79098         * m4/jm-macros.m4: Require UTILS_HOST_OS.
79099
79100 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79101
79102         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
79103         (jm_PREREQ): Use it.
79104
79105 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79106
79107         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
79108         Use ssize_t, not int, to store result of readlink.
79109         Check for ssize_t overflow as well as size_t overflow,
79110         as POSIX says the result of readlink is implementation-defined
79111         when ssize_t overflows.
79112         Remove unnecessary cast to char*.
79113         Use free+malloc instead of realloc, as the storage doesn't need
79114         to be preserved and it's clearer and can be more efficient that way.
79115         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
79116         * lib/xreadlink.h (xreadlink): Update prototype.
79117
79118 2001-09-04  Paul Eggert  <eggert@twinsun.com>
79119
79120         * lib/xgetcwd.c: Revert some of the previous change; intead,
79121         fix the HAVE_GETCWD_NULL code to behave more like the
79122         !HAVE_GETCWD_NULL code used to.
79123
79124         Include "xalloc.h".
79125         (xgetcwd): Do not return NULL when memory is exhausted; instead,
79126         invoke xalloc_die.
79127
79128 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79129
79130         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
79131         sys/param.h, as pathmax.h includes them.
79132
79133 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79134
79135         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
79136         (jm_PREREQ_XGETCWD): New macro.
79137
79138         * m4/getcwd.m4: New file.
79139
79140 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79141
79142         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
79143         like the HAVE_GETCWD_NULL code.
79144         Include pathmax.h if not HAVE_GETCWD.
79145         Do not include xalloc.h.
79146         (INITIAL_BUFFER_SIZE): New symbol.
79147         Do not use xmalloc / xrealloc, since the caller is responsible for
79148         handling errors.  Preserve errno around `free' during failure.
79149         Do not overrun buffer when using getwd.
79150
79151 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79152
79153         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
79154         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
79155         getcwd (NULL, 0).
79156
79157 2001-09-03  Paul Eggert  <eggert@twinsun.com>
79158
79159         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
79160         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
79161         spotted by Jim Meyering.
79162
79163 2001-09-03  Jim Meyering  <meyering@lucent.com>
79164
79165         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
79166         failure.
79167
79168 2001-09-02  Jim Meyering  <meyering@lucent.com>
79169
79170         * lib/error.c: Update from GNU libc.
79171
79172 2001-09-01  Jim Meyering  <meyering@lucent.com>
79173
79174         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
79175         Used by df.
79176
79177 2001-09-01  Jim Meyering  <meyering@lucent.com>
79178
79179         * lib/xreadlink.c: New file.
79180         * lib/xreadlink.h: New file.
79181         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
79182         xreadlink.h.
79183
79184         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
79185         doesn't conflict with sparc Solaris 7's definition in
79186         /usr/include/sys/int_types.h.
79187
79188         * lib/exclude.c: Use `""', not `<>' to #include non-system header
79189         files.
79190         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
79191         and strncasecmp as r-values.  Unixware didn't have declarations.
79192
79193 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79194
79195         * lib/xstrtol.h: Add copyright notice.
79196         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
79197         LONGINT_INVALID_SUFFIX_CHAR.
79198
79199 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79200
79201         * lib/xstrtol.c (strtoimax): New decl.
79202
79203 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79204
79205         * lib/xgetcwd.c: Don't include pathmax.h.
79206         Include stdlib.h and unistd.h if available.
79207         Include xalloc.h.
79208         (xmalloc, xstrdup, free): Remove decls.
79209         (xgetcwd): Don't assume sizes fit in unsigned.
79210         Check for overflow when computing sizes.
79211         Simplify reallocation code.
79212
79213 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79214
79215         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
79216         a directory's st_size can have an arbitrary value, so the old
79217         usage could waste an arbitrary amount of memory.  All uses
79218         changed.
79219         * lib/savedir.h: Update prototype.
79220
79221 2001-08-31  Paul Eggert  <eggert@twinsun.com>
79222
79223         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
79224
79225         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
79226         old strtoimax.c.
79227
79228         Also, make the following further changes to make this file's
79229         configuration more similar to that of strtol.c:
79230         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
79231         (strtoumax, uintmax_t, strtoull, strtol): Remove.
79232         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
79233         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
79234         changed to signed values.
79235
79236         And make the following changes as well:
79237         Fix copyright notice, as 1999 was missing.
79238         (verify): New macro.
79239         (strtoimax): Check sizes at compile-time, not run-time.
79240         Prefer strtol to strtoll if both work.
79241         (main): Remove; it was not that useful and was a pain to maintain.
79242
79243         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
79244
79245 2001-08-31  Jim Meyering  <meyering@lucent.com>
79246
79247         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
79248         Use an initial, malloc'd, buffer of length 128 rather than
79249         a statically allocated one of length 1024.
79250
79251 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79252
79253         Simplify code, partly by assuming autoconf 2.52 semantics.
79254
79255         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
79256
79257         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
79258         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
79259         All uses removed.
79260         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
79261         Move AC_REQUIRE to next-to-top level, to avoid confusion.
79262         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
79263         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
79264         jm_AC_HEADER_INTTYPES_H.
79265         * m4/jm-macros.m4 (jm_MACROS): Likewise.
79266
79267         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
79268
79269         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
79270         Quote first arg of AC_DEFUN.
79271         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
79272         since they are needed to parse the include file even if we need
79273         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
79274         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
79275         but with opposite signedness.
79276
79277 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79278
79279         Merge 'exclude' changes from tar 1.13.22.
79280         This fixes one or two unlikely storage allocation overflow bugs,
79281         but doesn't change user-visible behavior otherwise.
79282
79283 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79284
79285         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
79286         (jm_PREREQ_EXCLUDE): New macro.
79287
79288 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79289
79290         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
79291         tm to be declared.
79292
79293 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79294
79295         * lib/hash.c: Remove '2001' from copyright notice.
79296
79297 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79298
79299         * lib/full-write.h: New file.
79300         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
79301         * lib/full-write.c: Correct credits, as cccp.c no longer
79302         exists and anyway it was so heavily changed from the old cccp
79303         code as to be unrecognizable.  Include full-write.h.
79304         (full_write): Return size_t, with short writes meaning failure.
79305         All callers changed.  This fixes a bug with large buffers
79306         on 64-bit hosts.
79307         * lib/utime.c: Include full-write.h.
79308
79309 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79310
79311         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
79312         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
79313         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
79314         Include if available.
79315         (<xalloc.h>): Include
79316         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
79317         (verify): New macro.  Use it to verify that EXCLUDE macros do not
79318         collide with FNM macros.
79319         (struct patopts): New struct.
79320         (struct exclude): Use it, as exclude patterns now come with options.
79321         (new_exclude): Support above changes.
79322         (new_exclude, add_exclude_file):
79323         Initial size must now be a power of two to simplify overflow checking.
79324         (free_exclude, fnmatch_no_wildcards): New function.
79325         (excluded_filename): No longer requires options arg, as the options
79326         are determined by add_exclude.  Now returns bool, not int.
79327         (excluded_filename, add_exclude):
79328         Add support for the fancy new exclusion options.
79329         (add_exclude, add_exclude_file): Now takes int options arg.
79330         Check for arithmetic overflow when computing sizes.
79331         (add_exclude_file): xrealloc might modify errno, so don't
79332         realloc until after errno might be used.
79333
79334         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
79335         New macros.
79336         (free_exclude): New decl.
79337         (add_exclude, add_exclude_file): Now takes int options arg.
79338         (excluded_filename): No longer requires options arg, as the options
79339         are determined by add_exclude.  Now returns bool, not int.
79340
79341 2001-08-30  Paul Eggert  <eggert@twinsun.com>
79342
79343         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
79344
79345 2001-08-27  Jim Meyering  <meyering@lucent.com>
79346
79347         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
79348
79349         * lib/version-etc.c (N_): Remove definition.
79350         Revert most of last change.
79351         Instead, simply don't mark the `Copyright...' string for translation.
79352         Based on advice from Paul Eggert.
79353
79354         * lib/strtoxmax.c: Tweak comment.
79355
79356 2001-08-26  Jim Meyering  <meyering@lucent.com>
79357
79358         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
79359
79360         * m4/xstrtoimax.m4: New file.
79361         * m4/xstrtoumax.m4: Add comments explaining why we
79362         AC_REPLACE_FUNCS(strtol).
79363
79364 2001-08-26  Jim Meyering  <meyering@lucent.com>
79365
79366         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
79367         of copyright with `%s' so translators don't get an untranslated
79368         message in 2002.
79369         (COPYRIGHT_YEAR): Define.
79370         (version_etc): Use fprintf rather than fputs.
79371         Suggestion from Ulrich Drepper.
79372
79373         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
79374
79375         * lib/strtoll.c: New file, from GNU libc.
79376         * lib/xstrtoimax.c: New file.
79377
79378         * lib/xstrtol.h: Add xstrtoimax.
79379         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
79380         * lib/strtoimax.c: New file.  Likewise, but first define
79381         STRTOUXMAX_SIGNED.
79382
79383         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
79384         ...
79385         * lib/strtoxmax.c: ... then renamed to this.
79386
79387 2001-08-18  Paul Eggert  <eggert@twinsun.com>
79388
79389         * m4/inttypes.m4: Add AC_PREREQ(2.13).
79390         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
79391         (jm_AC_TYPE_INTMAX_T): New macro.
79392         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
79393
79394         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
79395
79396         * m4/longlong.m4: Renamed from ulonglong.m4.
79397         * m4/inttypes.m4: Renamed from inttypes_h.m4.
79398         * m4/uintmax_t.m4: Removed.
79399
79400 2001-08-13  Paul Eggert  <eggert@twinsun.com>
79401
79402         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
79403         Port to Solaris 8, where 'sed' requires a space after the 'r'
79404         command, and where sh dislikes "$/".  Clean up the spacing a bit.
79405         Redirect output to $tmp just once.
79406
79407 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
79408
79409         * lib/addext.c (<errno.h>): Include.
79410         (errno): Declare if not defined.
79411         (addext): Work correctly when pathconf returns -1 and leaves
79412         errno alone because there is no limit.  Also, work even if
79413         pathconf returns a value greater than SIZE_MAX.
79414
79415 2001-08-12  Jim Meyering  <meyering@lucent.com>
79416
79417         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
79418         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
79419         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
79420         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
79421         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
79422         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
79423         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
79424         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
79425         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
79426         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
79427         utime.m4, utimes.m4, xstrtoumax.m4:
79428         Quote the first argument in each use of AC_DEFUN.
79429
79430 2001-08-12  Jim Meyering  <meyering@lucent.com>
79431
79432         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
79433         Simply `return getcwd (NULL, 0);'.
79434         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
79435         Use 1300 as initial value for length, not PATH_MAX.
79436
79437         * lib/pathmax.h: Clean up cpp syntax.
79438
79439 2001-08-12  Jim Meyering  <meyering@lucent.com>
79440
79441         * lib/gettimeofday.c: New file.
79442         * lib/gtod.h: New file.
79443         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
79444
79445 2001-08-05  Jim Meyering  <meyering@lucent.com>
79446
79447         * m4/jm-macros.m4: Require autoconf-2.52.
79448
79449 2001-08-04  Jim Meyering  <meyering@lucent.com>
79450
79451         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
79452         stmt, to get in sync with glibc.
79453
79454 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79455
79456         The following changes are from gettext 0.10.39 as maintained by
79457         Bruno Haible.
79458
79459         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
79460         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
79461         with inverted sense.  All uses changed.
79462
79463         * lib/mbswidth.c: Don't include <limits.h>.
79464         Include <stdlib.h> and <string.h> unconditionally.
79465         (iswcntrl, mbsinit, ISCNTRL): New macros.
79466         (mbsnwidth): Use K&R style function declarations.
79467         Don't bother checking for MB_LEN_MAX == 1, since the compiler
79468         can optimize it when MB_CUR_MAX == 1.
79469         The width of control characters is zero, not 1.
79470
79471 2001-08-03  Paul Eggert  <eggert@twinsun.com>
79472
79473         The following changes are from gettext 0.10.39 as maintained by
79474         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
79475
79476         * m4/codeset.m4: Upgrade to serial AM1.
79477         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
79478         all uses changed.  Quote first arg of AC_DEFUN.
79479         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
79480
79481         * m4/iconv.m4: Upgrade to serial AM2.
79482         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
79483         Add --with-libconv-prefix.
79484         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
79485         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
79486         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
79487         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
79488         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
79489
79490         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
79491         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
79492         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
79493         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
79494         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
79495         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
79496         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
79497         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
79498         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79499
79500         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
79501         string.h any more.
79502
79503         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
79504         not the default value.
79505
79506         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
79507         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
79508         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
79509         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
79510         Also check for iswcntrl, used for wcwidth fallback.
79511         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
79512         to Autoconf 2.13.
79513
79514 2001-08-03  Jim Meyering  <meyering@lucent.com>
79515
79516         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
79517         as it was in the original.  Reported by Paul Eggert.
79518
79519 2001-07-16  Jim Meyering  <meyering@lucent.com>
79520
79521         * m4/gettimeofday.m4: New file.
79522         Prompted by a report from Bernhard Baehr.
79523
79524 2001-07-15  Jim Meyering  <meyering@lucent.com>
79525
79526         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
79527         stuff. Now it's in ../Makefile.cfg.
79528
79529 2001-07-15  Jim Meyering  <meyering@lucent.com>
79530
79531         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
79532         (BUILT_SOURCES): Add unlocked-io.h.
79533         (io_functions): Define.
79534         (unlocked-io.h): New rule.
79535         (DISTCLEANFILES): Add unlocked-io.h.
79536         (all-local): Depend on unlocked-io.h, to ensure it is created.
79537
79538         * lib/unlocked-io.hin: New file
79539
79540         * lib/regex.c: Update from glibc.
79541
79542 2001-07-05  Jim Meyering  <meyering@lucent.com>
79543
79544         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
79545         recommendation.
79546         (libfetish_a_SOURCES): Put all .h files here instead.
79547         Remove a thus-exposed (better checks in automake) duplicate and
79548         two unnecessary .h files.
79549
79550 2001-07-04  Jim Meyering  <meyering@lucent.com>
79551
79552         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
79553         that generates jm-glibc-io.m4 so that it doesn't trigger any make
79554         distcheck failure.
79555
79556 2001-07-02  Jim Meyering  <meyering@lucent.com>
79557
79558         The following changes were prompted by suggestions from Bruno Haible.
79559
79560         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
79561         is now generated.
79562         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
79563         definition of EXTRA_DIST.
79564         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
79565         ensure that the generated file is created/updated whenever the list
79566         of $(unlocked_functions) is changed.
79567         (jm-glibc-io.m4): New rule.
79568         (unlocked-io.h): New rule -- currently unused.
79569
79570 2001-06-24  Jim Meyering  <meyering@lucent.com>
79571
79572         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
79573         unmatched right bracket, rather than kludging it with an extra,
79574         falsely-matching quote in a comment.  Patch by Akim Demaille.
79575
79576 2001-06-11  Jim Meyering  <meyering@lucent.com>
79577
79578         * lib/regex.c: Update from GNU libc.
79579
79580 2001-05-27  Jim Meyering  <meyering@lucent.com>
79581
79582         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
79583         Check for ut_type in struct utmp.
79584
79585 2001-05-27  Jim Meyering  <meyering@lucent.com>
79586
79587         * lib/readutmp.h (UT_TYPE): Define.
79588
79589 2001-05-24  Jim Meyering  <meyering@lucent.com>
79590
79591         * lib/argmatch.c: Include "quote.h".
79592         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
79593         quote function.  Reported by Göran Uddeborg.
79594
79595 2001-05-22  Jim Meyering  <meyering@lucent.com>
79596
79597         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
79598         now that we use the package-supplied version unconditionally.
79599         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
79600
79601 2001-05-21  Jim Meyering  <meyering@lucent.com>
79602
79603         * m4/regex.m4: Change a couple backticks to single quotes to avoid
79604         shell syntax errors.
79605
79606 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79607
79608         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
79609
79610 2001-05-20  Paul Eggert  <eggert@twinsun.com>
79611
79612         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
79613         Don't bother to check library strftime, since
79614         we'll be using our own my_strftime function anyway.
79615         Define my_strftime instead of strftime.
79616
79617 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
79618
79619         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
79620         which is not yet declared.
79621
79622 2001-05-15  Jim Meyering  <meyering@lucent.com>
79623
79624         * m4/regex.m4: Use proper quoting so brackets appear in the test
79625         program.
79626         Reported by, and with help from, Bruno Haible.
79627
79628 2001-05-13  Jim Meyering  <meyering@lucent.com>
79629
79630         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
79631         undefined.
79632
79633 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79634
79635         dirname code cleanup.  base_name now behaves more compatibly
79636         with POSIX basename when given file names that have trailing
79637         slashes, and similarly for dir_name.  Add new primitives
79638         base_len and dir_len.  Put the directory-name-related decls
79639         into dirname.h.
79640
79641         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
79642         * lib/backupfile.c (base_name): Likewise.
79643         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
79644         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
79645         * lib/makepath.c (strip_trailing_slashes): Likewise.
79646         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
79647         ISSLASH): Likewise.
79648         * lib/rename.c (strip_trailing_slashes): Likewise.
79649         * lib/same.c (base_name): Likewise.
79650         * lib/stripslash.c (ISSLASH): Likewise.
79651
79652         * lib/addext.c: Include <dirname.h> after size_t is defined.
79653         * lib/backupfile.c: Likewise.
79654
79655         * lib/addext.c (addext): Use base_len to trim redundant
79656         trailing slashes instead of doing it ourselves.
79657         But do not trim the last slash if it is not redundant.
79658
79659         * lib/backupfile.c (find_backup_file_name,
79660         max_backup_version): Use base_len instead of rolling it ourselves.
79661         Handle the case of "" and (on DOS) "C:" correctly.
79662
79663         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
79664         needed. Include <string.h>, <dirname.h>.
79665         (base_name): Allow file names ending in slashes, other than names
79666         that are all slashes.  In this case, return the basename followed
79667         by the slashes.  This is more general, and can be used in places
79668         where the original base_name purposely had an assertion failure.
79669         (base_len): New function.
79670
79671         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
79672         Do not include <assert.h>; no longer needed.
79673         Include xalloc.h.
79674         (memrchr): Remove decl.
79675         (dir_name_r): Remove.
79676         (dir_len): Renamed from dirlen.  All callers changed.
79677         Rewrite in terms of base_name, for simplicity and consistency.
79678         (dir_name): Never return NULL.  All callers changed.
79679         Do not include <stdlib.h> in test program; no longer needed.
79680         return 0; is fine for test program.
79681
79682         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
79683         New macros.
79684         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
79685
79686         * lib/path-concat.c (path_concat): Use base_len to compute
79687         base length, not strlen; this means we cannot rely on memcpy
79688         to null-terminate.
79689
79690         * lib/same.c (STREQ): Remove.
79691         (same_name): Handle the case where the basename ends in trailing '/'.
79692
79693         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
79694         a slash was stripped.  Do not strip the last slash after a
79695         file system prefix.
79696
79697 2001-05-11  Paul Eggert  <eggert@twinsun.com>
79698
79699         * lib/Makefile.am (libfetish_a_SOURCES):
79700         Add strftime.c, since we now compile it on all hosts.
79701
79702         * lib/strftime.c (my_strftime):
79703         Define to nstrftime if emacs, but only if my_strftime is not defined.
79704         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
79705         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
79706         Add one more extra argument: a nanoseconds value.
79707         All uses changed.
79708         (ns): New macro.
79709         (my_strftime function): Add %N format.
79710         (emacs_strftimeu): Renamed from emacs_strftime,
79711         with extra ut argument.
79712
79713 2001-05-09  Paul Eggert  <eggert@twinsun.com>
79714
79715         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
79716
79717 2001-04-21  Jim Meyering  <meyering@lucent.com>
79718
79719         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
79720         doesn't interfere.
79721
79722 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
79723
79724         * m4/ftruncate.m4: Check for chsize.
79725         Link with ftruncate.o unconditionally if ftruncate is missing.
79726         This was required when cross-compiling to i586-mingw32msvc.
79727
79728 2001-04-08  Jim Meyering  <meyering@lucent.com>
79729
79730         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
79731         recomputed; that's necessary when the offset spans a DST transition.
79732         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
79733
79734 2001-04-02  Jim Meyering  <meyering@lucent.com>
79735
79736         * lib/regex.h, regex.c: Update from GNU libc.
79737
79738 2001-03-24  Jim Meyering  <meyering@lucent.com>
79739
79740         * m4/jm-macros.m4: Require autoconf-2.49d.
79741
79742 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
79743
79744         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
79745
79746 2001-03-19  Paul Eggert  <eggert@twinsun.com>
79747
79748         * lib/version-etc.c (version_etc_copyright): Update to 2001.
79749
79750 2001-03-17  Jim Meyering  <meyering@lucent.com>
79751
79752         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
79753         now that the version in autoconf is equivalent.
79754         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
79755
79756         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
79757         Suggestion from Akim Demaille.
79758
79759         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
79760         (jm_PREREQ_TEMPNAME): New function.
79761
79762 2001-03-16  Paul Eggert  <eggert@twinsun.com>
79763
79764         * lib/tempname.c (uint64_t): Define to uintmax_t if
79765         not defined, and if UINT64_MAX is not defined.
79766         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
79767         Reported by John David Anglin.
79768
79769 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
79770
79771         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
79772         resolve alias if codeset is empty.
79773         * lib/config.charset (BeOS): Use wildcard syntax.
79774
79775 2001-03-13  Jim Meyering  <meyering@lucent.com>
79776
79777         * lib/path-concat.c (path_concat)
79778         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
79779         concatenating e.g., `C:' and `foo'.
79780         From Bruno Haible.
79781
79782 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79783
79784         * lib/localcharset.c (locale_charset): Don't use
79785         setlocale(LC_CTYPE,NULL). Don't return NULL.
79786         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
79787
79788 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
79789
79790         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
79791         support for DOS/DJGPP.
79792
79793 2001-03-01  Paul Eggert  <eggert@twinsun.com>
79794
79795         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
79796         lacks mkstemp.  Compile our own tempname.c if we compile our own
79797         mkstemp.c, as mkstemp relies on tempname.
79798
79799 2001-03-01  Jim Meyering  <meyering@lucent.com>
79800
79801         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
79802         AH_VERBATIM really does output its argument verbatim.
79803
79804 2001-02-28  Paul Eggert  <eggert@twinsun.com>
79805
79806         * lib/Makefile.am (libfetish_a_SOURCES):
79807         Add dup-safer.c, fopen-safer.c.
79808         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
79809
79810         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
79811         * lib/unistd-safer.h: New files.
79812
79813 2001-02-25  Paul Eggert  <eggert@twinsun.com>
79814
79815         The mkstemp replacement is taken from glibc 2.2.2, with some
79816         portability fixes for use outside glibc, as follows:
79817
79818         * lib/tempname.c (struct_stat64): New macro.
79819         (direxists, __gen_tempname): Use it.
79820         This avoids a portability problem with Solaris 8.
79821
79822         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
79823         (<stddef.h>, <stdint.h>, <string.h>):
79824         Include only if STDC_HEADERS || _LIBC.
79825         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
79826         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
79827         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
79828         (__set_errno): Define this macro if <errno.h> doesn't.
79829         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
79830         Define these macros if <stdio.h> doesn't.
79831         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
79832         Define these macros if <sys/stat.h>
79833         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
79834         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
79835         __xstat64): Define if not _LIBC.
79836         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
79837         (__gen_tempname): Invoke gettimeofday only if
79838         HAVE_GETTIMEOFDAY || _LIBC;
79839         otherwise, fall back on plain "time".
79840         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
79841
79842         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
79843
79844         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
79845
79846 2001-02-18  Paul Eggert  <eggert@twinsun.com>
79847
79848         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
79849
79850 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79851
79852         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
79853         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
79854         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
79855         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
79856
79857 2001-02-17  Paul Eggert  <eggert@twinsun.com>
79858
79859         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
79860         Remove workaround macros for hosts that have mbrtowc but not
79861         mbstate_t, as we now insist on proper declarations for both
79862         before using mbrtowc.
79863
79864 2001-02-17  Jim Meyering  <meyering@lucent.com>
79865
79866         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
79867         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
79868         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
79869         UnixWare 7.1.1.
79870
79871         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
79872         rather than AC_CACHE_VAL.
79873
79874 2001-02-17  Jim Meyering  <meyering@lucent.com>
79875
79876         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
79877         around included file name.
79878
79879         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
79880
79881         * lib/strftime.c: Update from GNU libc (the only changes were to
79882         comments).
79883
79884 2001-02-17  Jim Meyering  <meyering@lucent.com>
79885
79886         * lib/regex.c: Update from libc.
79887
79888 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
79889
79890         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
79891         clash.
79892
79893 2001-02-16  Paul Eggert  <eggert@twinsun.com>
79894
79895         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
79896         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
79897         Reported by Mark Hounschell via Paul Eggert.
79898
79899 2001-02-07  Jim Meyering  <meyering@lucent.com>
79900
79901         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
79902
79903 2001-02-05  Jim Meyering  <meyering@lucent.com>
79904
79905         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
79906         it includes the patch required for `large file' support with at least
79907         HP-UX's 10.20 /bin/cc.
79908
79909 2001-02-03  Jim Meyering  <meyering@lucent.com>
79910
79911         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
79912         AS_IF, now that it works once again (mysteriously).
79913         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79914
79915 2001-01-30  Jim Meyering  <meyering@lucent.com>
79916
79917         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
79918         * m4/chown.m4: Rename conftestchown to conftest.chown.
79919         * m4/rename.m4: s/conftestdir/conftest.d1/ and
79920         s/conftestdir2/conftest.d2/.
79921         * m4/utimes.m4: s/conftestdata/conftest.data/
79922         Inspired by Pavel Roskin's change in autoconf.
79923
79924 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
79925
79926         * lib/config.charset: Update for FreeBSD 4.2.
79927
79928 2001-01-27  Jim Meyering  <meyering@lucent.com>
79929
79930         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
79931         a use of AS_IF.
79932         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
79933
79934 2001-01-26  Jim Meyering  <meyering@lucent.com>
79935
79936         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
79937         quotearg.c includes it.
79938
79939 2001-01-26  Jim Meyering  <meyering@lucent.com>
79940
79941         * lib/quotearg.c: Include stddef.h.
79942         * lib/quote.c: Include stddef.h.
79943         Reported by Axel Kittenberger.
79944
79945         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
79946         line in double quotes so that it evokes a better diagnostic.
79947         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
79948         Reported by Axel Kittenberger.
79949
79950 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
79951
79952         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
79953         as if it was a `charset'.
79954
79955 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79956
79957         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
79958         has const.
79959
79960 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
79961
79962         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
79963         to avoid a warning.  Add back 'const' to inptr.
79964
79965 2001-01-20  Jim Meyering  <meyering@lucent.com>
79966
79967         Be sure that headers are checked before used in code compiled
79968         for the type checks.
79969         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
79970         In place of that, invoke jm_CHECK_ALL_TYPES.
79971         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
79972         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
79973         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
79974         The check for ssize_t was mistakenly run before the test for unistd.h.
79975
79976         The configure-time check for stdbool.h was missing.
79977         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
79978         (jm_PREREQ_HASH): New function.
79979
79980 2001-01-17  Jim Meyering  <meyering@lucent.com>
79981
79982         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
79983         for autoconf-2.49c.
79984         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
79985
79986 2001-01-16  Jim Meyering  <meyering@lucent.com>
79987
79988         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
79989         From Bruno Haible.
79990
79991 2001-01-14  Jim Meyering  <meyering@lucent.com>
79992
79993         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
79994         foo and bar.  Create conftestdir/ in the script, not in the C code.
79995         Remove directories in the script, not in the C code.
79996         Remove conftestdir{,2} before trying to create the directory.
79997         Make the entire configure script fail if the mkdir fails.
79998
79999 2001-01-14  Jim Meyering  <meyering@lucent.com>
80000
80001         * lib/rename.c: New file.  From Volker Borchert.
80002         Include stdlib.h, string.h or strings.h, and xalloc.h.
80003         Use strip_trailing_slashes rather than open-coding it.
80004
80005 2001-01-03  Paul Eggert  <eggert@twinsun.com>
80006
80007         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
80008
80009 2001-01-03  Jim Meyering  <meyering@lucent.com>
80010
80011         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
80012         of local `inptr' to avoid warning with some system declarations of
80013         iconv.
80014
80015 2001-01-02  Volker Borchert  <bt@teknon.de>
80016
80017         * m4/rename.m4: New file.
80018         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
80019
80020 2001-01-01  Jim Meyering  <meyering@lucent.com>
80021
80022         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
80023         even on systems with utmpx.h.  It's necessary for the declaration of
80024         utmp's ut_user member.  Reported by Andreas Jaeger.
80025
80026         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
80027         available. They are required for the declarations of getgrgid and
80028         getpwuid resp.
80029         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
80030         Reported by Andreas Jaeger.
80031
80032 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
80033
80034         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
80035         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
80036         so `make install' also works in VPATH builds.
80037
80038 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
80039
80040         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
80041         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
80042         can be used in subdirectories.
80043
80044 2000-12-29  Paul Eggert  <eggert@twinsun.com>
80045
80046         * lib/modechange.c: Do not assume that mode_t uses the
80047         traditional octal encoding.  E.g. "chmod 1 FOO" should set
80048         the other-execute bit of FOO even if S_IXOTH != 1.
80049
80050         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
80051         WOTH, XOTH, ALLM): New macros.
80052         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
80053          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
80054         Use them.
80055         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
80056         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
80057         (mode_compile):
80058         No need to use uintmax_t; unsigned long is long enough.
80059         Don't bother to get suffix since we don't use it.
80060
80061 2000-12-26  Jim Meyering  <meyering@lucent.com>
80062
80063         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
80064         better with autoheader.
80065
80066 2000-12-24  Jim Meyering  <meyering@lucent.com>
80067
80068         * lib/hash.c (is_prime): Return explicit boolean values.
80069         (hash_get_first): Return NULL to appease Irix5.6's 89.
80070         Reported by Nelson Beebe.
80071
80072 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
80073
80074         * lib/localcharset.c (locale_charset): Add support for Win32.
80075
80076 2000-12-18  Paul Eggert  <eggert@twinsun.com>
80077
80078         * lib/physmem.h, lib/physmem.c: New files.
80079
80080         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
80081         (noinst_HEADERS): Add physmem.h.
80082
80083         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
80084         't' for compatibility with Solaris 8 sort.
80085
80086 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
80087
80088         * lib/config.charset: Add support for BeOS.
80089
80090 2000-12-17  Jim Meyering  <meyering@lucent.com>
80091
80092         * m4/dos.m4 (jm_AC_DOS): New file and macro.
80093         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
80094
80095 2000-12-16  Jim Meyering  <meyering@lucent.com>
80096
80097         This bug had a serious impact on chown: `chown N:M FILE' (for integer
80098         N and M) would have treated it like `chown N:N FILE'.
80099
80100         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
80101
80102 2000-12-16  Jim Meyering  <meyering@lucent.com>
80103
80104         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
80105         SHELLS_FILE to a file name that's useful on djgpp systems.
80106         Include stdlib.h.
80107         (ADDITIONAL_DEFAULT_SHELLS): Define.
80108         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
80109         Based mostly on a patch from Prashant TR.
80110
80111 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
80112
80113         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
80114         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
80115         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
80116
80117 2000-12-08  Andreas Schwab  <schwab@suse.de>
80118
80119         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
80120         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
80121
80122 2000-12-07  Jim Meyering  <meyering@lucent.com>
80123
80124         * lib/stripslash.c (ISSLASH): Define.
80125         (strip_trailing_slashes): Use ISSLASH rather than comparing against
80126         `/'.
80127         From Prashant TR.
80128
80129         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
80130         (dir_name_r): Declare this function as static.
80131         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
80132         manifest itself on a name containing a mix of slashes and
80133         backslashes.
80134         Make this function work with names starting with a DOS-style
80135         drive letter and colon prefix.
80136         (dir_name): Append `.' if necessary.
80137         Based mostly on patches from Prashant TR and Eli Zaretskii.
80138
80139         * lib/dirname.h (dir_name_r): Remove prototype.
80140
80141 2000-12-06  Paul Eggert  <eggert@twinsun.com>
80142
80143         * m4/off_t-format.m4: Remove this file.
80144         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
80145
80146 2000-12-06  Jim Meyering  <meyering@lucent.com>
80147
80148         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
80149         replacement strtoull, we may well need the replacement strtoul, too.
80150         Check for declarations of strtoul and strtoull.
80151         Check for strtol.  Mainly as a cue to cause automake to include
80152         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
80153         Check for limits.h -- strtol.c needs it.
80154
80155 2000-12-05  Jim Meyering  <meyering@lucent.com>
80156
80157         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
80158
80159 2000-12-04  Jim Meyering  <meyering@lucent.com>
80160
80161         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
80162         Also include memory.h, stdlib.h, unistd.h if appropriate.
80163         Reported by Andreas Jaeger (conflicting declaration of malloc).
80164
80165 2000-12-02  Jim Meyering  <meyering@lucent.com>
80166
80167         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
80168         * m4/jm-macros.m4 (jm_MACROS): require it.
80169
80170 2000-12-02  Jim Meyering  <meyering@lucent.com>
80171
80172         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
80173
80174 2000-12-01  Paul Eggert  <eggert@twinsun.com>
80175
80176         * lib/memrchr.c: Include <config.h> before any system include file.
80177
80178 2000-11-30  Jim Meyering  <meyering@lucent.com>
80179
80180         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
80181
80182 2000-11-30  Jim Meyering  <meyering@lucent.com>
80183
80184         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
80185
80186 2000-11-29  Paul Eggert  <eggert@twinsun.com>
80187
80188         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
80189
80190 2000-11-26  Jim Meyering  <meyering@lucent.com>
80191
80192         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
80193
80194 2000-11-22  Paul Eggert  <eggert@twinsun.com>
80195
80196         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
80197         size of (size_t) -1; it's not portable.
80198
80199 2000-11-17  Jim Meyering  <meyering@lucent.com>
80200
80201         * lib/strstr.c: Update from GNU libc.
80202
80203 2000-11-17  Akim Demaille  <akim@epita.fr>
80204
80205         * lib/obstack.h: Formatting changes.
80206         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
80207         prevent type checking.
80208         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
80209         cast the value to (void *): assigning a `foo *' to a `void *'
80210         variable is valid.
80211         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
80212
80213 2000-11-16  Jim Meyering  <meyering@lucent.com>
80214
80215         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
80216
80217 2000-11-11  Jim Meyering  <meyering@lucent.com>
80218
80219         * lib/error.c: Add a couple #includes, merging from GNU libc version.
80220
80221 2000-11-10  Jim Meyering  <meyering@lucent.com>
80222
80223         * lib/obstack.h: Update from GNU libc.
80224         * lib/obstack.c: Likewise.
80225
80226 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
80227
80228         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
80229
80230 2000-11-06  Paul Eggert  <eggert@twinsun.com>
80231
80232         * lib/getusershell.c (setusershell): Use rewind rather than
80233         fseek/fseeko, to avoid configuration hassles with fseeko.
80234         Don't bother opening SHELLS_FILE if shellstream is NULL;
80235         it's not necessary.
80236
80237 2000-11-05  Jim Meyering  <meyering@lucent.com>
80238
80239         * lib/makepath.h (make_dir): Declare.
80240         * lib/makepath.c (make_dir): Remove `static' attribute.
80241         Tweak a comment.
80242
80243 2000-11-04  Jim Meyering  <meyering@lucent.com>
80244
80245         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
80246
80247 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
80248
80249         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
80250         last one in a bucket, advance to the next bucket.
80251
80252 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
80253
80254         * lib/fnmatch.c: Do not comment out all the code if we are using
80255         the GNU C library, because in some cases we are replacing buggy
80256         code in the GNU C library itself.
80257
80258 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
80259
80260         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
80261         (regex_compile): Catch bogus \(\1\).
80262
80263 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80264
80265         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
80266         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
80267         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
80268
80269 2000-10-30  Paul Eggert  <eggert@twinsun.com>
80270
80271         * lib/error.h, getline.h, modechange.h:
80272         Remove "2000" from Copyright line, as the file hasn't been
80273         changed this year other than in the copyright notice.
80274
80275         * lib/xalloc.h: Add "2000" to Copyright line, as this file
80276         was changed this year.
80277
80278 2000-10-29  Jim Meyering  <meyering@lucent.com>
80279
80280         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
80281         renaming.
80282         * m4/ls-mntd-fs.m4: Likewise
80283
80284 2000-10-29  Jim Meyering  <meyering@lucent.com>
80285
80286         * lib/xstat.in: Fix grammar in comment.
80287
80288 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
80289
80290         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
80291         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
80292         doesn't define __restrict_arr.
80293
80294 2000-10-28  Jim Meyering  <meyering@lucent.com>
80295
80296         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
80297         (jm_PREREQ_MEMCHR): New function.
80298
80299 2000-10-28  Jim Meyering  <meyering@lucent.com>
80300
80301         * lib/memchr.c: Update from libc.
80302         Adjust for portability:
80303         [HAVE_STDLIB_H]: Include stdlib.h.
80304         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
80305         Undef __memchr, too.
80306         [!weak_alias]: Define __memchr to memchr.
80307
80308         * lib/regex.c: Update from libc.
80309         * lib/regex.h: Likewise.
80310         * lib/getopt1.c: Likewise.
80311         * lib/memcmp.c: Likewise.
80312
80313         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
80314         Avoid using fseek, when possible -- it's broken by design.
80315         Patch by Ulrich Drepper.
80316
80317 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
80318
80319         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
80320         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
80321         Giving in to popular pressure to shut up the compiler with casts.
80322
80323 2000-10-26  Jim Meyering  <meyering@lucent.com>
80324
80325         * lib/strftime.c: Update from libc.
80326
80327 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
80328
80329         * regex.c: More `unsigned char' -> `re_char' changes.
80330         Also change several `int' into `re_wchar_t'.
80331         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
80332         (PUSH_FAILURE_POINTER): Don't cast any more.
80333         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
80334         We want GCC to complain, since this piece of code makes
80335         re_match non-reentrant, which *should* be fixed.
80336         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
80337         (EXTEND_BUFFER): Use RETALLOC.
80338         (SET_LIST_BIT): Don't cast.
80339         (re_wchar_t): New type.
80340         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
80341         that those two functions will always properly return.
80342         (IMMEDIATE_QUIT_CHECK): Cast to void.
80343         (analyse_first): Use recursion rather than an explicit stack.
80344         (re_compile_fastmap): Can't fail anymore.
80345         (re_search_2): Don't check re_compile_fastmap for failure.
80346         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
80347         Now also sets the new value (passed in a new argument).
80348         (re_match_2_internal): Use it.
80349         Also, use a new var `reg' of type size_t when looping through regs
80350         rather than reuse the inappropriate `mcnt'.
80351
80352 2000-10-25  Jim Meyering  <meyering@lucent.com>
80353
80354         * lib/obstack.c: Update from libc.
80355
80356 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
80357
80358         * regex.c (regex_compile): Change the way of handling a range from
80359         a char less than 256 to a char not less than 256.
80360
80361 2000-10-24  Andrew Innes  <andrewi@gnu.org>
80362
80363         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
80364         NT-Emacs only.
80365         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
80366         so that re_search functions only quit when callers expect them to.
80367
80368 2000-10-23  Jim Meyering  <meyering@lucent.com>
80369
80370         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
80371         wrong.  That set_locale call must not have any side effects.
80372         From Paul Eggert.
80373
80374 2000-10-22  Jim Meyering  <meyering@lucent.com>
80375
80376         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
80377         [CYCLIC]: Remove now-unused definition.
80378
80379         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
80380         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
80381         Suggestion from Ulrich Drepper.
80382
80383 2000-10-21  Jim Meyering  <meyering@lucent.com>
80384
80385         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
80386         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
80387         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
80388
80389 2000-10-21  Jim Meyering  <meyering@lucent.com>
80390
80391         * lib/dirname.c (memrchr): Declare if necessary.
80392         (dir_name): Remove the restriction that there be no
80393         trailing slashes.  Now, this code skips past them, effectively
80394         ignoring them.
80395         [TEST_DIRNAME] (main): New unit tests.
80396
80397         * lib/memrchr.c: New file from GNU libc.
80398         Undef __memrchr, too.
80399         [!weak_alias]: Define __memrchr to memrchr.
80400         Guard weak_alias use with `#ifdef weak_alias'.
80401
80402 2000-10-21  Jim Meyering  <meyering@lucent.com>
80403
80404         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
80405         (dir_name): Use dir_name_r.
80406         * lib/dirname.h (dir_name_r): Declare it.
80407
80408 2000-10-17  Jim Meyering  <meyering@lucent.com>
80409
80410         * lib/quote.h (PARAMS): Define and use.
80411         Reported by Akim Demaille.
80412
80413         * lib/getopt.c: Update from libc.
80414
80415 2000-10-16  Jim Meyering  <meyering@lucent.com>
80416
80417         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
80418         setlocale.
80419         From Jan Fedak.
80420
80421 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
80422
80423         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
80424
80425 2000-09-25  Jim Meyering  <meyering@lucent.com>
80426
80427         * lib/md5.h (rol): Define (from GnuPG).
80428
80429         * lib/sha.c: Give credit (GnuPG) where due.
80430         (M): Use rol rather than open-coding it.
80431         Add a FIXME comment.
80432
80433 2000-09-21  Jim Meyering  <meyering@lucent.com>
80434
80435         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
80436         Reported by Michael Stone.
80437
80438 2000-09-20  Jim Meyering  <meyering@lucent.com>
80439
80440         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
80441         (noinst_HEADERS): Add sha.h.
80442         Based on code from Scott G. Miller and from GnuPG.
80443
80444 2000-09-18  Jim Meyering  <meyering@lucent.com>
80445
80446         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
80447         LIBS. Otherwise, everyone ends up linking with -lelf for some
80448         configurations.
80449         Reported by Mike Stone.
80450
80451 2000-09-15  Jim Meyering  <meyering@lucent.com>
80452
80453         * lib/regex.c: Update from libc.
80454
80455 2000-09-10  Jim Meyering  <meyering@lucent.com>
80456
80457         * lib/getopt.c (_getopt_internal): Update from glibc.
80458
80459 2000-09-09  Jim Meyering  <meyering@lucent.com>
80460
80461         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
80462         think it should be used as a general replacement for isascii.
80463         * lib/fnmatch.c: Likewise.
80464         * lib/mbswidth.c: Likewise
80465         * lib/regex.c: Likewise.
80466
80467         Don't use atoi.
80468         * lib/userspec.c: Include sys/param.h and limits.h.
80469         Include xstrtol.h.
80470         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
80471         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
80472         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
80473         UID, GID.  Check range.
80474
80475 2000-09-06  Jim Meyering  <meyering@lucent.com>
80476
80477         * lib/getopt.c (_getopt_internal): Update from glibc.
80478
80479 2000-08-30  Jim Meyering  <meyering@lucent.com>
80480
80481         * lib/strftime.c: Merge in changes from GNU libc.
80482
80483 2000-08-26  Jim Meyering  <meyering@lucent.com>
80484
80485         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
80486         * m4/fpending.m4: New file.
80487
80488 2000-08-26  Jim Meyering  <meyering@lucent.com>
80489
80490         * lib/closeout.c: Include "__fpending.h".
80491         (close_stdout_status): Return right away if there's nothing to flush.
80492
80493         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
80494         * lib/__fpending.c: New file.
80495         * lib/__fpending.h: New file.
80496
80497 2000-08-20  Jim Meyering  <meyering@lucent.com>
80498
80499         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
80500         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
80501         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
80502
80503 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
80504
80505         Improve fileutils installation on systems where running
80506         programs (like install) can't be unlinked.
80507         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
80508         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
80509
80510 2000-08-07  Paul Eggert  <eggert@twinsun.com>
80511
80512         Standardize on "memory exhausted" instead of "Memory exhausted"
80513         or "virtual memory exhausted".
80514         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
80515         "virtual memory exhausted".
80516         * lib/same.c (same_name): Invoke xalloc_die instead of printing
80517         our own message.
80518         * lib/userspec.c (parse_user_spec): Likewise.
80519         * lib/bumpalloc.h: comment fix
80520         * lib/same.c, userspec.c: Include xalloc.h.
80521
80522         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
80523         not char *const and pointing to a constant array.
80524         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
80525         (xrealloc): Comment fix.
80526
80527         * lib/userspec.c (parse_user_spec):
80528         Don't translate a message until just before returning,
80529         to avoid unnecessary translation.
80530
80531 2000-08-07  Jim Meyering  <meyering@lucent.com>
80532
80533         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
80534         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
80535         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
80536         getgroups.c, gethostname.c, getopt.h, group-member.c,
80537         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
80538         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
80539         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
80540         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
80541         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
80542         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
80543         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
80544         yesno.c: Back out Copyright date changes for each file with no change
80545         this year.  This eases coordination with other programs using the same
80546         source code modules.  From Paul Eggert.
80547
80548 2000-08-06  Paul Eggert  <eggert@twinsun.com>
80549
80550         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
80551         not char, for compatibility with glibc 2.1.3 strftime.c.
80552
80553 2000-08-03  Greg McGary  <greg@mcgary.org>
80554
80555         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
80556         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
80557         (EXTEND_BUFFER): Use them.
80558
80559 2000-08-01  Jim Meyering  <meyering@lucent.com>
80560
80561         * lib/dirname.c (ISSLASH): Define.
80562         (BACKSLASH_IS_PATH_SEPARATOR): Define.
80563         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
80564         both `\' and `/' may be use as path separators.
80565         Based on a patch from Prashant TR.
80566
80567 2000-07-31  Paul Eggert  <eggert@twinsun.com>
80568
80569         * lib/quotearg.c (quotearg_n_options): Don't make the initial
80570         slot vector a constant, since it might get modified.
80571
80572 2000-07-31  Jim Meyering  <meyering@lucent.com>
80573
80574         * lib/xmalloc.c: Use `virtual memory exhausted', not
80575         `Memory exhausted'.
80576         * lib/obstack.c (print_and_abort): Likewise.
80577
80578 2000-07-30  Paul Eggert  <eggert@twinsun.com>
80579
80580         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
80581         buffer, so that the caller can always quote one small
80582         component of a "memory exhausted" message in slot 0.
80583         From a suggestion by Jim Meyering.
80584
80585 2000-07-30  Jim Meyering  <meyering@lucent.com>
80586
80587         * lib/makepath.c (make_path): Quote the other instance, too.
80588
80589         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
80590         (STATIC_BUF_SIZE): Define.
80591         (quotearg_n_options): Use only statically allocated storage when
80592         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
80593         than STATIC_BUF_SIZE.
80594
80595 2000-07-29  Jim Meyering  <meyering@lucent.com>
80596
80597         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
80598         * lib/dirname.c (dir_name): Likewise.
80599
80600         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
80601         `/'.
80602
80603         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
80604         (dir_name): Assert that there are no trailing slashes.
80605
80606 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
80607
80608         * lib/mbswidth.h (mbswidth): Add a flags argument.
80609         (mbswidth): New declaration.
80610         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
80611         * lib/mbswidth.c (mbswidth): Add a flags argument.
80612         (mbsnwidth): New function.
80613
80614 2000-07-24  Jim Meyering  <meyering@lucent.com>
80615
80616         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
80617
80618 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80619
80620         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
80621
80622 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80623
80624         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
80625         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
80626         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
80627         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
80628         invoke multibyte primitives.
80629
80630 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80631
80632         * lib/quotearg.c:
80633         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
80634         so that mbstate_t is always defined.
80635
80636         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
80637         be 1 in at least one GCC installation, and this configuration
80638         error is likely to be common.  Ignoring MB_LEN_MAX hurts
80639         performance on hosts that have mbrtowc but have only unibyte
80640         locales, but I assume these hosts are rare.
80641
80642 2000-07-23  Paul Eggert  <eggert@twinsun.com>
80643
80644         * lib/mbswidth.c (_XOPEN_SOURCE):
80645         Don't define; this causes problems on Solaris 7.
80646         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
80647
80648 2000-07-23  Jim Meyering  <meyering@lucent.com>
80649
80650         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
80651         too: getgrgid, getpwuid, getuid.
80652
80653 2000-07-23  Jim Meyering  <meyering@lucent.com>
80654
80655         * lib/basename.c (base_name): Add an assertion.
80656
80657 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
80658
80659         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
80660         shadow its mbsinit function.
80661
80662 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80663
80664         * lib/mbswidth.h: New file.
80665         * lib/mbswidth.c: New file.
80666         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
80667         (noinst_HEADERS): Add mbswidth.h.
80668
80669 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
80670
80671         * lib/config.charset: Add support for FreeBSD. Improve support for
80672         HP-UX and IRIX 6.
80673
80674 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
80675
80676         * m4/mbswidth.m4: New file.
80677         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
80678
80679 2000-07-15  Jim Meyering  <meyering@lucent.com>
80680
80681         * lib/makepath.c: Include quote.h.
80682         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
80683         corresponding argument in a `quote (...)' call.
80684         Give better diagnostics.
80685
80686         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
80687         (noinst_HEADERS): Add quote.h.
80688
80689         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
80690         from tar's src/misc.c.
80691         * lib/quote.h: New file.  Prototypes for same.
80692
80693 2000-07-14  Paul Eggert  <eggert@twinsun.com>
80694
80695         From a suggestion by Bruno Haible.
80696         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
80697         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
80698         to decide whether to define the BeOS workaround macro;
80699         this adjusts to the change to AC_MBSTATE_T.
80700
80701 2000-07-14  Jim Meyering  <meyering@lucent.com>
80702
80703         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
80704         jm_AC_TYPE_UINTMAX_T.
80705
80706 2000-07-13  Paul Eggert  <eggert@twinsun.com>
80707
80708         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
80709
80710         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
80711         quotearg_buffer_restyled): Add support for
80712         clocale_quoting_style.  Undo previous change to
80713         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
80714         and "{RIGHT QUOTATION MARK}" msgids.
80715
80716 2000-07-10  Paul Eggert  <eggert@twinsun.com>
80717
80718         From a suggestion by Bruno Haible.
80719         * m4/mbstate_t.m4 (AC_MBSTATE_T):
80720         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
80721         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
80722         and mbstate_t, to a single-part test that simply defines mbstate_t.
80723         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
80724         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
80725
80726 2000-07-10  Jim Meyering  <meyering@lucent.com>
80727
80728         * m4/strerror_r.m4: Mirror the correction made in autoconf.
80729
80730         * m4/gnu-source.m4: Output to confdefs.h directly.
80731         Suggestion from Akim Demaille.
80732
80733 2000-07-09  Paul Eggert  <eggert@twinsun.com>
80734
80735         The old behavior of quoting `like this' doesn't look good with
80736         newer, ISO-style fonts.  See:
80737         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
80738
80739         Instead, quote "like this" by default.  Let the translator
80740         tailor the locale-specific quoting behavior by providing
80741         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
80742
80743         * lib/quotearg.c (N_): New macro.
80744         (gettext_default): New function.
80745         (quotearg_buffer_restyled): Use
80746         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
80747         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
80748
80749 2000-07-09  Jim Meyering  <meyering@lucent.com>
80750
80751         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
80752         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
80753
80754         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
80755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
80756
80757 2000-07-09  Jim Meyering  <meyering@lucent.com>
80758
80759         * lib/Most files: Update copyright dates to include 2000.
80760
80761 2000-07-08  Jim Meyering  <meyering@lucent.com>
80762
80763         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
80764         if not defined.
80765         (xgethostname): Remove now-unnecessary #ifdef.
80766         Move declaration of `err' into loop where it's used.
80767
80768 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80769         and Bruno Haible  <haible@clisp.cons.org>
80770
80771         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
80772         only if the test for an object-type mbstate_t fails.  This
80773         prevents us from mistakenly reporting that mbstate_t is a
80774         system object type after we "#define mbstate_t int" to work
80775         around its lack.
80776
80777 2000-07-05  Paul Eggert  <eggert@twinsun.com>
80778         and Bruno Haible  <haible@clisp.cons.org>
80779
80780         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
80781
80782 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80783
80784         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
80785         to strerror_r.
80786         Include <ctype.h> for use of isalpha.
80787
80788 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80789
80790         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
80791         by allocating a larger buffer. Test the gethostname return value for
80792         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
80793         returns an error and ENAMETOOLONG isn't defined.
80794
80795 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
80796
80797         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
80798         dimension.
80799
80800 2000-07-04  Jim Meyering  <meyering@lucent.com>
80801
80802         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
80803         of the deprecated AC_CHECKING.
80804
80805 2000-07-04  Jim Meyering  <meyering@lucent.com>
80806
80807         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
80808         Reported by Bruno Haible.
80809
80810 2000-07-04  Jim Meyering  <meyering@lucent.com>
80811
80812         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
80813         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
80814         lacks mbrtowc.
80815
80816 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80817
80818         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
80819         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
80820
80821 2000-07-03  Paul Eggert  <eggert@twinsun.com>
80822         and Bruno Haible  <haible@clisp.cons.org>
80823
80824         * lib/quotearg.c (mbrtowc):
80825         Assign to *pwc, and return 1 only if result is nonzero.
80826         (iswprint): Use ISPRINT when substituting our own mbrtowc.
80827
80828 2000-07-03  Jim Meyering  <meyering@lucent.com>
80829
80830         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
80831
80832 2000-07-03  Jim Meyering  <meyering@lucent.com>
80833
80834         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
80835         This is necessary to get a definition of e.g., UTMP_FILE on
80836         HP-UX 10.20.
80837         From Bob Proulx.
80838
80839 2000-07-02  Jim Meyering  <meyering@lucent.com>
80840
80841         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
80842
80843         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
80844         AC_LIBOBJ(function_name).
80845         * m4/chown.m4: Likewise.
80846         * m4/fnmatch.m4: Likewise.
80847         * m4/ftruncate.m4: Likewise.
80848         * m4/getgroups.m4: Likewise.
80849         * m4/getline.m4: Likewise.
80850         * m4/group-member.m4: Likewise.
80851         * m4/jm-macros.m4: Likewise.
80852         * m4/lstat.m4: Likewise.
80853         * m4/malloc.m4: Likewise.
80854         * m4/memcmp.m4: Likewise.
80855         * m4/nanosleep.m4: Likewise.
80856         * m4/putenv.m4: Likewise.
80857         * m4/realloc.m4: Likewise.
80858         * m4/regex.m4: Likewise.
80859         * m4/stat.m4: Likewise.
80860         * m4/strftime.m4: Likewise.
80861
80862 2000-07-02  Jim Meyering  <meyering@lucent.com>
80863
80864         * lib/quotearg.c (mbstate_t): Don't define here.
80865
80866 2000-07-02  Jim Meyering  <meyering@lucent.com>
80867
80868         * lib/nanosleep.c (SIGCONT): Define if not already defined.
80869
80870 2000-07-01  Jim Meyering  <meyering@lucent.com>
80871
80872         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
80873
80874 2000-07-01  Jim Meyering  <meyering@lucent.com>
80875
80876         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
80877         problem.
80878
80879 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80880
80881         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
80882         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
80883
80884 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
80885
80886         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
80887         per change in ../m4/ls-mntd-fs.m4.
80888         (read_filesystem_list): Ignore symbolic links.
80889
80890 2000-06-29  Jim Meyering  <meyering@lucent.com>
80891
80892         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
80893         for declaration of strcmp.
80894
80895         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
80896
80897         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
80898         Avoid warning by casting result to `char *' to remove `const'.
80899
80900 2000-06-28  Jim Meyering  <meyering@lucent.com>
80901
80902         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
80903         included by quotearg.c, for which we perform this test.  From
80904         Bruno Haible.
80905
80906 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80907
80908         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
80909         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
80910         <utmpx.h> exists, put readutmp.o into LIBOBJS.
80911
80912 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
80913
80914         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
80915
80916 2000-06-26  Paul Eggert  <eggert@twinsun.com>
80917
80918         savedir now sets errno on failure and invokes xmalloc to get memory.
80919         Fix a couple of other minor bugs while we're at it.
80920
80921         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
80922         (NAMLEN): Remove macro.
80923         (malloc, realloc): Remove decls.
80924         (stpcpy): Likewise.
80925         ("xalloc.h"): Include.
80926         (NAME_SIZE_DEFAULT): New macro.
80927         (savedir): Use xmalloc / xrealloc to allocate memory.
80928         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
80929         Skip "" directory entries.
80930         Use strlen to calculate directory entry length, since the old method
80931         is rarely used these days and isn't worth supporting.
80932         Don't use a pointer after freeing it.
80933         Check for integer overflow when calculating allocation size.
80934         Use memcpy to copy entries, instead of stpcpy.
80935         Set errno properly when returning NULL.
80936         Check for readdir error.
80937
80938 2000-06-26  Jim Meyering  <meyering@lucent.com>
80939
80940         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
80941
80942 2000-06-25  Jim Meyering  <meyering@lucent.com>
80943
80944         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
80945         Linux header bug when _XOPEN_SOURCE is defined to 500.
80946
80947 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80948
80949         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
80950         deficiency.
80951
80952 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
80953
80954         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
80955         Include xalloc.h.
80956         Don't include <stdlib.h>.  Don't declare malloc, realloc.
80957
80958 2000-06-24  Jim Meyering  <meyering@lucent.com>
80959
80960         * m4/strerror_r.m4: Revive this file -- to try out an experimental
80961         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
80962         for which strerror does return char*, but which lacks a conveniently
80963         accessible declaration of the function.  If the compile-test says
80964         strerror_r doesn't work, then resort to a `run'-test that works on
80965         BeOS and segfaults on DEC Unix.
80966
80967 2000-06-24  Jim Meyering  <meyering@lucent.com>
80968
80969         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
80970
80971 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80972
80973         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
80974         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
80975
80976 2000-06-23  Paul Eggert  <eggert@twinsun.com>
80977
80978         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
80979         (mbrtowc, mbstate_t): Define substitutes if
80980         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
80981         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
80982         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
80983
80984 2000-06-23  Jim Meyering  <meyering@lucent.com>
80985
80986         * m4/afs.m4: Add missing AC_MSG_RESULT.
80987         Reported by Bruno Haible.
80988
80989         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
80990         Suggestion from Bruno Haible.
80991
80992 2000-06-23  Jim Meyering  <meyering@lucent.com>
80993
80994         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
80995
80996 2000-06-21  Jim Meyering  <meyering@lucent.com>
80997
80998         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
80999
81000 2000-06-21  Jim Meyering  <meyering@lucent.com>
81001
81002         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
81003         (noinst_HEADERS): Add getstr.h.
81004
81005         * lib/getline.c (getstr): Move into a separate file.
81006         * lib/getstr.c (getstr): New file, extracted from getline.c, with
81007         the following changes: new parameter, delim2; both delim[12]
81008         parameters have type `int', not `char'.  The latter would lose
81009         with 8-bit delimiters.
81010         * lib/getstr.h: New file.
81011
81012 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81013
81014         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
81015         than 1024, return a memory chunk of least possible size, instead
81016         of size PATH_MAX + 2. In the loop, increment the size proportionally.
81017         Use free/xmalloc instead of xrealloc to avoid copying for very long
81018         paths.
81019
81020 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81021
81022         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
81023         the empty string.
81024
81025 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
81026
81027         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
81028         address, not strdup.  Include <stdlib.h> and don't declare free().
81029
81030 2000-06-19  Jim Meyering  <meyering@lucent.com>
81031
81032         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
81033
81034 2000-06-18  Jim Meyering  <meyering@lucent.com>
81035
81036         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
81037
81038         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
81039         `checking whether...' message to be consistent with that of the
81040         lstat test.
81041
81042 2000-06-18  Jim Meyering  <meyering@lucent.com>
81043
81044         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
81045         Besides, these days every porting target provides a mkdir function.
81046
81047         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
81048         needed. (this snippet comes from src/system.h).
81049
81050 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
81051
81052         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
81053
81054 2000-06-15  Paul Eggert  <eggert@twinsun.com>
81055
81056         * lib/human.c (adjust_value): New function.
81057         (human_readable_inexact): Apply rounding style even when
81058         printing approximate values.
81059
81060 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81061
81062         * lib/human.c (human_readable_inexact): Allow an input block
81063         size that is not a multiple of the output block size, and vice versa.
81064         Reported by Piergiorgio Sartor.
81065
81066 2000-06-14  Paul Eggert  <eggert@twinsun.com>
81067
81068         * lib/getdate.y (get_date): Apply relative times after time
81069         zone indicator, not before.  Reported by Todd A. Jacobs.
81070
81071 2000-06-13  Jim Meyering  <meyering@lucent.com>
81072
81073         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
81074
81075         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
81076
81077 2000-06-12  Paul Eggert  <eggert@twinsun.com>
81078
81079         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
81080
81081 2000-06-12  Jim Meyering  <meyering@lucent.com>
81082
81083         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
81084         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
81085         optional argument.
81086         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
81087         the optional argument, `lib'.
81088
81089 2000-06-08  Jim Meyering  <meyering@lucent.com>
81090
81091         * m4/largefile.m4: Remove file (now that it's part of autoconf).
81092
81093 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81094
81095         Rewrite largefile configuration so that we don't need to run
81096         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
81097         AC_CANONICAL_HOST in configure.in -- jmm]
81098
81099         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
81100         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
81101         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
81102         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
81103         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
81104         All uses changed.
81105         Instead of inspecting the output of getconf, try to compile the
81106         test program without and with the macro definition.
81107         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
81108         for getconf.  Instead, check for the needed flags by compiling
81109         test programs.
81110
81111 2000-06-04  Paul Eggert  <eggert@twinsun.com>
81112
81113         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
81114
81115 2000-06-04  Jim Meyering  <meyering@lucent.com>
81116
81117         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
81118         SunOS 4.1.4 for which gid_t is an unsigned type.
81119
81120 2000-06-03  Jim Meyering  <meyering@lucent.com>
81121
81122         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
81123         now that autoconf requires that.
81124
81125         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
81126         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
81127         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
81128
81129 2000-06-03  Jim Meyering  <meyering@lucent.com>
81130
81131         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
81132
81133 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81134
81135         * m4/glibc21.m4: New file.
81136         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
81137
81138 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
81139
81140         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
81141         newer, don't install charset.alias.
81142         * lib/config.charset: Change the Linux/glibc rules so they become empty
81143         on glibc-2.1 or newer.
81144
81145 2000-06-02  Jim Meyering  <meyering@lucent.com>
81146
81147         * lib/mountlist.c: Back out last change.  Instead, do this...
81148         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
81149         me_dummy member using the same `ignore'-testing code.
81150         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
81151         fs_type strings.
81152         From Mark D. Roth.
81153
81154 2000-05-29  Jim Meyering  <meyering@lucent.com>
81155
81156         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
81157         mounts with the `ignore' attribute.  Based on a patch from
81158         Mark D. Roth.
81159
81160 2000-05-28  Jim Meyering  <meyering@lucent.com>
81161
81162         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
81163         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81164         * m4/stat.m4: Likewise.
81165         * m4/lstat.m4: Likewise.
81166         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
81167
81168         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
81169         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
81170
81171 2000-05-26  Jim Meyering  <meyering@lucent.com>
81172
81173         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
81174
81175 2000-05-24  Jim Meyering  <meyering@lucent.com>
81176
81177         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
81178         autoconf requires that.
81179         * m4/lib-check.m4: Likewise.
81180         * m4/jm-macros.m4: Likewise.
81181         * m4/strftime.m4: Likewise.
81182
81183         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
81184         AC_CHECK_DECLS, now that autoconf requires that.
81185
81186 2000-05-22  Jim Meyering  <meyering@lucent.com>
81187
81188         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81189         * m4/lstat.m4: Likewise.
81190
81191 2000-05-22  Jim Meyering  <meyering@lucent.com>
81192
81193         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
81194
81195 2000-05-20  Jim Meyering  <meyering@lucent.com>
81196
81197         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
81198         (jm_PREREQ): Use it.
81199
81200 2000-05-18  Jim Meyering  <meyering@lucent.com>
81201
81202         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
81203         back, too, since it may have been modified by allocate_entry.
81204         (hash_delete): Rewrite to use neither the assignment operator
81205         nor the comma operator in an if-expression.
81206
81207 2000-05-15  Paul Eggert  <eggert@twinsun.com>
81208
81209         * lib/closeout.c:
81210         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
81211         Remove; no longer needed.
81212         "quotearg.h": Add include.
81213         (file_name): Do not bother to explicitly initialize to NULL; it's less
81214         efficient on some hosts.
81215         (close_stdout_status): Remove test as to whether stdout was already
81216         closed; it breaks for the case "echo x | sort >&-".
81217         Quote file name colons.
81218         Do not assume that _("write error") lacks format strings.
81219
81220 2000-05-15  Jim Meyering  <meyering@lucent.com>
81221
81222         * lib/version-etc.c (version_etc_copyright): Update the copyright
81223         string used in all --version output.
81224
81225 2000-05-14  Jim Meyering  <meyering@lucent.com>
81226
81227         * lib/closeout.c (close_stdout_set_file_name): New function.
81228         (close_stdout_status): Use new file-scoped global.
81229         Return right away if fstat says the stdout file descriptor is invalid.
81230         * lib/closeout.h (close_stdout_set_file_name): Declare.
81231
81232 2000-05-10  Jim Meyering  <meyering@lucent.com>
81233
81234         * lib/closeout.c [default_exit_status]: New file-scoped variable.
81235         (close_stdout_set_status): New function.
81236         * lib/closeout.h (close_stdout_set_status): Declare.
81237
81238 2000-05-09  Jim Meyering  <meyering@lucent.com>
81239
81240         * m4/gettext.m4: Rename this...
81241         * m4/libintl.m4: ...to this.
81242
81243 2000-05-08  Jim Meyering  <meyering@lucent.com>
81244
81245         * lib/long-options.c: Don't include closeout.h.
81246         (parse_long_options): Don't call close_stdout for --version.
81247
81248 2000-05-06  Paul Eggert  <eggert@twinsun.com>
81249
81250         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
81251         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
81252         2.1.3 bug.  This avoids a clash when files like regex.c define
81253         _GNU_SOURCE.
81254
81255 2000-05-06  Jim Meyering  <meyering@lucent.com>
81256
81257         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
81258         (AC_REPLACE_FUNCS): Add strnlen.
81259
81260         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
81261         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
81262
81263         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
81264         AC_SEARCH_LIBS call for nanosleep.
81265         (LIB_NANOSLEEP): Set and AC_SUBST.
81266
81267 2000-05-06  Jim Meyering  <meyering@lucent.com>
81268
81269         * lib/strnlen.c: Undefine __strnlen and strnlen.
81270         [!weak_alias]: Define __strnlen to strnlen.
81271
81272         * lib/atexit.c: New file, from libiberty.
81273
81274 2000-05-06  Jim Meyering  <meyering@lucent.com>
81275
81276         * lib/closeout.c (close_stdout_status): Also check for errors on the
81277         stderr stream.
81278
81279 2000-05-05  Jim Meyering  <meyering@lucent.com>
81280
81281         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
81282         AC_SEARCH_LIBS call for clock_gettime.
81283         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
81284
81285         * m4/search-libs.m4: Update from autoconf.
81286
81287         su doesn't work on Solaris 2.6.
81288         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
81289         <shadow.h>.  Reported by Dragos Harabor.
81290
81291 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
81292
81293         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
81294         memcpy instead of xmalloc, xrealloc, path_concat.
81295         (locale_charset): Treat empty environment variables as absent.
81296         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
81297
81298 2000-05-04  Jim Meyering  <meyering@lucent.com>
81299
81300         * lib/getopt.c: Update from glibc.
81301         * lib/obstack.c: Likewise.
81302         * lib/obstack.h: Likewise.
81303         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
81304         file
81305
81306         * lib/regex.h: Likewise.
81307         * lib/strndup.c: Likewise.
81308         * lib/strnlen.c: New file, from glibc.
81309
81310 2000-05-03  Jim Meyering  <meyering@lucent.com>
81311
81312         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
81313
81314 2000-05-02  Paul Eggert  <eggert@twinsun.com>
81315
81316         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
81317         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
81318         compile-time test, rather than inspecting host and OS, to
81319         decide whether to define _LARGEFILE_SOURCE.
81320
81321 2000-05-01  Jim Meyering  <meyering@lucent.com>
81322
81323         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
81324
81325         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
81326         Based on a patch from Bruno Haible.
81327
81328 2000-05-01  Jim Meyering  <meyering@lucent.com>
81329
81330         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
81331
81332 2000-04-29  Jim Meyering  <meyering@lucent.com>
81333
81334         * lib/path-concat.c: Declare strdup only if it's not defined.
81335         * lib/canon-host.c: Likewise.
81336
81337 2000-04-28  Jim Meyering  <meyering@lucent.com>
81338
81339         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
81340         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
81341         is included first, then limits.h is included by locale.h by libintl.h.
81342         From John David Anglin.
81343
81344 2000-04-25  Jim Meyering  <meyering@lucent.com>
81345
81346         * lib/makepath.c (S_IRWXUGO): Define.
81347         (make_path): Always perform explicit chmod if MODE specifies any
81348         of the `special' permission bits.  Prompted by a bug report against
81349         install from Mate Wierdl and Joost van Baal.
81350
81351 2000-04-18  Jim Meyering  <meyering@lucent.com>
81352
81353         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
81354         (jm_PREREQ): Use it.
81355
81356 2000-04-18  Jim Meyering  <meyering@lucent.com>
81357
81358         * lib/README: New file.
81359
81360         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
81361         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
81362
81363 2000-04-17  Jim Meyering  <meyering@lucent.com>
81364
81365         Get it right :-)
81366         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
81367         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
81368         Suggestion from Akim Demaille.
81369
81370 2000-04-17  Jim Meyering  <meyering@lucent.com>
81371
81372         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
81373         the definition of it to rpl_strftime also defined-away the system's
81374         declaration.
81375
81376 2000-04-15  Jim Meyering  <meyering@lucent.com>
81377
81378         Use `C' to denote so-called `contiguous' files, the same way
81379         that tar does.
81380         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
81381         (ftypelet): Use S_ISCTG.
81382         From Michael Deutschmann.
81383
81384 2000-04-14  Jim Meyering  <meyering@lucent.com>
81385
81386         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
81387         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
81388         clobbered.
81389
81390 2000-04-14  Jim Meyering  <meyering@lucent.com>
81391
81392         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
81393
81394 2000-04-13  Jim Meyering  <meyering@lucent.com>
81395
81396         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
81397         AH_VERBATIM to insert required #ifndef into config.h.in.
81398         Suggestion from Akim Demaille.
81399
81400 2000-04-12  Jim Meyering  <meyering@lucent.com>
81401
81402         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
81403         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
81404         Christian Krackowizer.
81405
81406         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
81407         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
81408         (AC_SYS_LARGEFILE): Require.
81409         (AM_C_PROTOTYPES): Require.
81410
81411 2000-04-08  Jim Meyering  <meyering@lucent.com>
81412
81413         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
81414         names don't conflict.  Reported by Eli Zaretskii.
81415
81416 2000-04-07  Jim Meyering  <meyering@lucent.com>
81417
81418         * lib/putenv.c: Move inclusion of errno.h so it follows that of
81419         sys/types.h, to work around system header problems on AIX 3.2.5.
81420         From Bruno Haible.
81421
81422 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
81423
81424         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
81425         bug.  Deal with the different error behavior of Irix iconv.
81426
81427 2000-04-05  Paul Eggert  <eggert@twinsun.com>
81428
81429         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
81430         IRIX if the installer said otherwise.
81431
81432 2000-04-05  Jim Meyering  <meyering@lucent.com>
81433
81434         Portability tweaks required for ultrix4.3.
81435         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
81436         (jm_CHECK_DECLS): Add getutent to the list of functions.
81437         (_jm_DECL_HEADERS): Add utmpx.h.
81438         From John David Anglin.
81439
81440         * m4/strftime.m4: Back out the 2000-04-02 change.
81441         Instead of that change, simply undefine putenv in the test program.
81442
81443 2000-04-05  Jim Meyering  <meyering@lucent.com>
81444
81445         Portability tweaks required for ultrix4.3.
81446         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
81447         getutent.
81448         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
81449         * lib/canon-host.c: Declare strdup.
81450         * lib/path-concat.c: Likewise.
81451         From John David Anglin.
81452
81453 2000-04-04  Jim Meyering  <meyering@lucent.com>
81454
81455         Be more DOS 8.3-friendly.
81456         * lib/ref-add.sin: Renamed from ref-add.sed.in.
81457         * lib/ref-del.sin: Renamed from ref-del.sed.in.
81458         * lib/Makefile.am: Reflect renaming.
81459         Reported by Eli Zaretskii.
81460
81461         Use a temporary file name that won't clash with `charset.alias'
81462         in the DOS 8.3 name space.
81463         * lib/Makefile.am (charset_tmp): Define.
81464         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
81465         (uninstall-local): Likewise.
81466         Reported by Eli Zaretskii.
81467
81468 2000-04-03  Jim Meyering  <meyering@lucent.com>
81469
81470         * m4/gettext.m4: Fix typo in comment.
81471
81472         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
81473         textutils/configure.in).  Suggestion from Paul Eggert.
81474         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
81475
81476 2000-04-02  Paul Eggert  <eggert@twinsun.com>
81477
81478         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
81479         variable in the shell rather than using putenv, which isn't
81480         portable.  This avoids the configure-time inter-test dependency
81481         on the potentially-renamed putenv function.
81482
81483 2000-03-30  Paul Eggert  <eggert@twinsun.com>
81484
81485         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
81486         before checking struct stat.st_blksize, so that
81487         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
81488
81489 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81490
81491         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
81492         since strftime.c uses HAVE_STRFTIME to decide whether to use
81493         the underlying strftime.
81494
81495 2000-03-29  Paul Eggert  <eggert@twinsun.com>
81496
81497         * lib/time/strftime.c (my_strftime): Make sure we call the system
81498         strftime, not ourselves, when invoking the underlying strftime.
81499
81500 2000-03-24  Jim Meyering  <meyering@lucent.com>
81501
81502         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
81503         (charset_alias): Define.
81504         (install-exec-local): Factor out common code.
81505         (uninstall-local): Split lines longer than 80.
81506         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
81507         (SUFFIXES): Define.
81508         (.sed.in.sed): New rule.  Don't redirect directly to $@.
81509         (CLEANFILES): Add ref-add.sed and ref-del.sed.
81510
81511 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
81512
81513         * lib/config.charset: Output a line containing "Packages using this
81514         file".
81515         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
81516         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
81517         ref-del.sed): New rules.
81518
81519 2000-03-17  Jim Meyering  <meyering@lucent.com>
81520
81521         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
81522         Otherwise, include <strings.h>
81523
81524 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
81525
81526         * lib/unicodeio.c (utf8_wctomb): New function.
81527         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
81528         format instead of in UCS-4 with platform dependent endianness.
81529
81530 2000-03-10  Jim Meyering  <meyering@lucent.com>
81531
81532         * m4/lib-check.m4: Look for getspnam in -lgen, too.
81533         From Marco Franzen.
81534
81535 2000-03-07  Paul Eggert  <eggert@twinsun.com>
81536
81537         * lib/savedir.c (savedir): Work even if directory size is
81538         negative; this can happen with some screwy NFS configurations.
81539
81540 2000-03-06  Jim Meyering  <meyering@lucent.com>
81541
81542         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
81543         if it's NULL (because we ran out of memory).  From Bruno Haible.
81544
81545 2000-03-05  Jim Meyering  <meyering@lucent.com>
81546
81547         * lib/localcharset.c ("path-concat.h"): Include.
81548         (get_charset_aliases): Use path_concat instead of ANSI string
81549         concatenation.
81550
81551         * lib/unicodeio.h (PARAMS): Define.
81552         Use it to guard prototype.
81553
81554 2000-03-04  Jim Meyering  <meyering@lucent.com>
81555
81556         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
81557         for lib/localcharset.c.
81558
81559 2000-03-04  Jim Meyering  <meyering@lucent.com>
81560
81561         * lib/Makefile.am (install-exec-local): Create $(libdir) before
81562         installing into it.
81563         (uninstall-local): Uncomment this rule so `make distcheck' works
81564         once again.
81565
81566         * lib/unicodeio.c (<errno.h>): Include it.
81567         (errno): Declare if not defined.
81568
81569         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
81570
81571         * lib/config.charset: New version, incorporating remarks from a linux
81572         i18n mailing list.  From Bruno Haible.
81573
81574 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
81575
81576         * m4/codeset.m4: New file.
81577         * m4/iconv.m4: New file.
81578         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
81579
81580 2000-03-03  Jim Meyering  <meyering@lucent.com>
81581
81582         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
81583
81584 2000-03-02  Jim Meyering  <meyering@lucent.com>
81585
81586         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
81587         the messages come out on separate lines.
81588
81589         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
81590         rather than jm_CHECK_DECLARATIONS.
81591         * m4/decl.m4: Remove now-unused file.
81592
81593         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
81594         geteuid.
81595
81596 2000-03-02  Jim Meyering  <meyering@lucent.com>
81597
81598         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
81599
81600 2000-03-01  Jim Meyering  <meyering@lucent.com>
81601
81602         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
81603         * lib/unicodeio.c: Likewise.
81604
81605 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
81606
81607         * lib/config.charset: New file.
81608         * lib/localcharset.c: New file.
81609         * lib/unicodeio.h, lib/unicodeio.c: New files.
81610         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
81611         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
81612         (noinst_HEADERS): Add unicodeio.h.
81613         (all-local, install-exec-local, charset.alias): New targets.
81614
81615 2000-02-28  Paul Eggert  <eggert@twinsun.com>
81616
81617         * lib/quotearg.c (ALERT_CHAR): New macro.
81618         (quotearg_buffer_restyled): Use it.
81619
81620 2000-02-27  Jim Meyering  <meyering@lucent.com>
81621
81622         * m4/check-decl.m4: Add getenv to the list.
81623
81624 2000-02-27  Jim Meyering  <meyering@lucent.com>
81625
81626         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
81627         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
81628
81629         * lib/backupfile.c: Guard inclusion of stdlib.h with
81630         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
81631         Declare malloc if needed.
81632
81633         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
81634         `#ifndef HAVE_DECL..'
81635         now that autoconf always defines the HAVE_DECL_ symbols.
81636         * lib/human.c: Likewise.
81637         * lib/same.c: Likewise.
81638         * lib/strtoumax.c: Likewise.
81639
81640         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
81641         declaration check was not run.
81642         * lib/hash.c: Likewise.
81643         * lib/human.c: Likewise.
81644         * lib/same.c: Likewise.
81645         * lib/strtoumax.c: Likewise.
81646
81647         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
81648         `.', then first look up the entire `.'-containing string as a login
81649         name.
81650
81651 2000-02-23  Jim Meyering  <meyering@lucent.com>
81652
81653         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
81654         in place of my hack.
81655
81656 2000-02-18  Paul Eggert  <eggert@twinsun.com>
81657
81658         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
81659         (textint): New typedef.
81660         (parser_control): Member year changed from int to textint.
81661         All uses changed.
81662         (YYSTYPE): Removed; replaced by %union with int and textint members.
81663         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
81664         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
81665         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
81666         (tSNUMBER, tUNUMBER): Now of type <textintval>.
81667         (date, number, to_year): Use width of number in digits, not its value,
81668         to determine whether it's a 2-digit year, or a 2-digit time.
81669         (yylex): Store number of digits of numeric tokens.
81670         Reported by John Kendall.
81671
81672         (parser_control): Changed from struct parser_control to typedef (for
81673         consistency).  All uses changed.
81674
81675         (tID): Removed; not used.
81676         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
81677
81678 2000-02-14  Paul Eggert  <eggert@twinsun.com>
81679
81680         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
81681         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
81682
81683 2000-02-12  Jim Meyering  <meyering@lucent.com>
81684
81685         * lib/userspec.c (ISDIGIT): Define it.
81686         (isdigit): Remove definition.
81687         (is_number): Use ISDIGIT, not isdigit.
81688         <libintl.h>: Include.
81689         (_ and N_): Define.
81690         (parse_user_spec): Mark translatable strings.
81691
81692 2000-02-10  Jim Meyering  <meyering@lucent.com>
81693
81694         With these changes, nanosleep.[ch] are finally enough like the other
81695         lib/* replacement files to compile on a few more losing systems.
81696
81697         * lib/nanosleep.h: Don't include config.h.
81698         Remove prototype from declaration of nanosleep.
81699         (PARAMS): Remove now-unneeded definition.
81700         * lib/nanosleep.c: #undef nanosleep.
81701         (rpl_nanosleep): Rename from nanosleep.
81702
81703 2000-02-10  Jim Meyering  <meyering@lucent.com>
81704
81705         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
81706         gnu_nanosleep to rpl_nanosleep.
81707
81708 2000-02-09  Jim Meyering  <meyering@lucent.com>
81709
81710         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
81711         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
81712
81713 2000-02-08  Akim Demaille  <akim@epita.fr>
81714
81715         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
81716         `[' and `]' and remove uses of `changequote'.
81717         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
81718         (AC_SYS_LARGEFILE): Likewise.
81719         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
81720         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
81721         of changequote.
81722         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
81723         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
81724         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
81725         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
81726
81727 2000-02-05  Jim Meyering  <meyering@lucent.com>
81728
81729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
81730         Remove explicit use of AC_HEADER_TIME.  It is required by
81731         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
81732         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
81733         in autoconf whereby the expansion of the latter ended up preceding
81734         the expansion of its prerequisite, AC_HEADER_TIME.
81735         Reported by Volker Borchert.
81736
81737 2000-02-03  Jim Meyering  <meyering@lucent.com>
81738
81739         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
81740
81741 2000-02-03  Jim Meyering  <meyering@lucent.com>
81742
81743         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
81744         rather than with `#if HAVE_UTMPNAME'.
81745
81746 2000-02-02  Jim Meyering  <meyering@lucent.com>
81747
81748         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
81749         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
81750         Reported by Eli Zaretskii.
81751
81752 2000-02-01  Jim Meyering  <meyering@lucent.com>
81753
81754         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
81755
81756 2000-01-31  Jim Meyering  <meyering@lucent.com>
81757
81758         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
81759         functions.  Add the time.h and sys/time.h headers along with the
81760         AC_REQUIRE'ment of AC_HEADER_TIME.
81761
81762 2000-01-31  Jim Meyering  <meyering@lucent.com>
81763
81764         * lib/nanosleep.h (nanosleep): Guard declaration with
81765         `#if ! HAVE_DECL_NANOSLEEP'.
81766         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
81767         the declaration in that vendor's sys/timers.h.
81768         Reported by Christian Krackowizer.
81769
81770         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
81771         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
81772         (ISPRINT): Likewise.
81773         Reported by Tom Tromey.
81774
81775 2000-01-30  Jim Meyering  <meyering@lucent.com>
81776
81777         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
81778
81779         * m4/prereq.m4 (utmp_includes): Define.
81780         Check for ut_user and ut_name members in both struct utmpx
81781         and struct utmp.
81782
81783 2000-01-30  Jim Meyering  <meyering@lucent.com>
81784
81785         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
81786         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
81787         header files where only utmpx.ut_user is declared.
81788
81789         * lib/readutmp.h (UT_USER): Define.
81790
81791 2000-01-29  Jim Meyering  <meyering@lucent.com>
81792
81793         * m4/lib-check.m4: New file containing library-related checks from
81794         fileutils and sh-utils (textutils had none).
81795
81796 2000-01-28  Jim Meyering  <meyering@lucent.com>
81797
81798         * m4/perl.m4: Change format of warning message to look more like that
81799         from the missing script.  Suggestion from François Pinard.
81800
81801 2000-01-25  Jim Meyering  <meyering@lucent.com>
81802
81803         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
81804         well as time.h in the compile check.
81805         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
81806         Fix typo in cross-compiling case: s/yes/no/.
81807
81808 2000-01-23  Jim Meyering  <meyering@lucent.com>
81809
81810         * m4/jm-macros.m4: Move df-related tests here from
81811         fileutils/configure.in
81812
81813         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
81814         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
81815
81816         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
81817         s/space/ac_fsusage_space/.
81818         (jm_FILE_SYSTEM_USAGE): Take two parameters.
81819
81820         * m4/ftruncate.m4: New file (derived from part of
81821         fileutils/configure.in).
81822         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
81823         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
81824
81825         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
81826         AC_SUBST these here, rather than just in sh-util/configure.in, so
81827         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
81828         all the same.
81829         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
81830         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
81831         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
81832         (AC_SUBST(POW_LIBM)): Likewise.
81833         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
81834
81835 2000-01-23  Jim Meyering  <meyering@lucent.com>
81836
81837         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
81838         obstack.c.
81839
81840 2000-01-22  Jim Meyering  <meyering@lucent.com>
81841
81842         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
81843
81844         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
81845
81846         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
81847         configure.in
81848         (AC_CHECK_HEADERS): Likewise for sh-utils.
81849         (AC_CHECK_HEADERS): Likewise for textutils.
81850         Merge the three lists of headers.
81851
81852         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
81853         from fileutils' configure.in.
81854
81855         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
81856         code. Moved tests into their own function (_jm_DECL_HEADERS) in
81857         check-decl.m4.
81858
81859         * m4/check-decl.m4: Use #if rather than #ifdef.
81860         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
81861         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
81862         (_jm_DECL_HEADERS): Define new function.
81863         (jm_CHECK_DECLARATIONS): Require it.
81864
81865 2000-01-22  Jim Meyering  <meyering@lucent.com>
81866
81867         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
81868         [! HAVE_DECL_STRTOULL]: Declare strtoull.
81869         Required for some AIX systems.  Reported by Christian Krackowizer.
81870         [TESTING] (main): New function.
81871
81872         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
81873         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
81874         letters.
81875
81876         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
81877         iswprint.
81878
81879         * lib/strverscmp.c (ISDIGIT): Define.
81880         (strverscmp): Use ISDIGIT, not isdigit.
81881
81882 2000-01-19  Jim Meyering  <meyering@lucent.com>
81883
81884         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
81885         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
81886         defines `struct timespec' in <sys/time.h>
81887
81888         * m4/c-bs-a.m4: Remove uses of changequote altogether.
81889         Thanks to Akim for explaining.
81890
81891 2000-01-17  Paul Eggert  <eggert@twinsun.com>
81892
81893         * lib/nanosleep.c (nanosleep):
81894         Don't use SA_INTERRUPT to decide whether to call sigaction, as
81895         POSIX.1 doesn't require SA_INTERRUPT and some systems
81896         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
81897         it's been part of POSIX.1 since day 1 (in 1988).
81898
81899 2000-01-17  Jim Meyering  <meyering@lucent.com>
81900
81901         * lib/interlock: Remove unused file.  Reported by François Pinard.
81902
81903 2000-01-16  Paul Eggert  <eggert@twinsun.com>
81904
81905         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
81906         alert, backslash, formfeed, and vertical tab unnecessarily in
81907         shell quoting style.
81908
81909 2000-01-16  Jim Meyering  <meyering@lucent.com>
81910
81911         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
81912         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
81913         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
81914         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
81915
81916 2000-01-16  Jim Meyering  <meyering@lucent.com>
81917
81918         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
81919         because the latter didn't work.
81920
81921 2000-01-15  Jim Meyering  <meyering@lucent.com>
81922
81923         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
81924         (AC_REPLACE_FUNCS): Add memcpy and memset.
81925         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
81926         Add strpbrk.
81927         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
81928
81929 2000-01-12  Jim Meyering  <meyering@lucent.com>
81930
81931         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
81932         (jm_PREREQ): Use it.
81933         (jm_PREREQ_READUTMP): New macro.
81934         (jm_PREREQ): Use it.
81935
81936 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81937
81938         Quote multibyte characters correctly.
81939         * m4/c-bs-a.m4: New file.
81940         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
81941         (jm_PREREQ): Use it.
81942
81943 2000-01-11  Paul Eggert  <eggert@twinsun.com>
81944
81945         * m4/uintmax_t.m4: Port to autoconf 2.13.
81946
81947 2000-01-08  Jim Meyering  <meyering@ascend.com>
81948
81949         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
81950         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
81951
81952 2000-01-04  Jim Meyering  <meyering@ascend.com>
81953
81954         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
81955         jm_STRUCT_DIRENT_D_TYPE.
81956         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
81957         jm_STRUCT_DIRENT_D_INO.
81958         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
81959         jm_STRUCT_UTIMBUF.
81960         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
81961         renamings.
81962         * m4/utime.m4: Likewise.
81963
81964         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
81965         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
81966
81967 2000-01-03  Paul Eggert  <eggert@twinsun.com>
81968
81969         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
81970         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
81971
81972 2000-01-02  Jim Meyering  <meyering@ascend.com>
81973
81974         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
81975         remember if this is necessary.
81976
81977 1999-12-26  Jim Meyering  <meyering@ascend.com>
81978
81979         * m4/jm-macros.m4: Use it here.
81980         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
81981
81982 1999-12-23  Jim Meyering  <meyering@ascend.com>
81983
81984         * m4/jm-macros.m4: Check for clock_gettime (moved from
81985         fileutils/configure.in)
81986         Check for gettimeofday.
81987
81988 1999-12-20  Jim Meyering  <meyering@ascend.com>
81989
81990         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
81991         autoconf-2.14a-1999-12-20.
81992
81993 1999-12-19  Jim Meyering  <meyering@ascend.com>
81994
81995         * m4/lstat-slash.m4: New file.
81996         * m4/jm-macros.m4: Use the new macro:
81997         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81998
81999 1999-12-07  Jim Meyering  <meyering@ascend.com>
82000
82001         * m4/perl.m4: Require that File::Compare be available, too.
82002         Too many systems seem to lack it.
82003
82004         * m4/strftime.m4: Add checks for most of the cpp macros tested in
82005         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
82006
82007 1999-11-18  Paul Eggert  <eggert@twinsun.com>
82008
82009         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
82010         problem with the QNX 4.25 shell, which doesn't propagate exit
82011         status of failed commands inside shell assignments.
82012
82013 1999-11-17  Jim Meyering  <meyering@ascend.com>
82014
82015         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
82016
82017 1999-11-07  Jim Meyering  <meyering@ascend.com>
82018
82019         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
82020
82021 1999-11-06  Jim Meyering  <meyering@ascend.com>
82022
82023         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
82024         * m4/jm-macros.m4 (jm_MACROS): Use it here.
82025
82026 1999-11-05  Jim Meyering  <meyering@ascend.com>
82027
82028         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
82029         configure.in of textutils, fileutils, and sh-utils into this one
82030         (shared between those packages) file.
82031         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
82032         AC_STRUCT_ST_BLKSIZE.
82033
82034 1999-11-03  Jim Meyering  <meyering@ascend.com>
82035
82036         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
82037         of AC_CHECK_TYPE checks includes unistd.h.
82038         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
82039         Suggestion from Akim Demaille.
82040
82041 1999-10-30  Jim Meyering  <meyering@ascend.com>
82042
82043         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
82044         m4-quoted string.
82045         * m4/ls-mntd-fs.m4: Likewise.
82046         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
82047         * m4/jm-winsz1.m4: Likewise.
82048
82049         * m4/const.m4: Remove file, since the fix made it into the experimental
82050         version of autoconf.
82051         * m4/mktime.m4: Likewise.
82052
82053         * m4/check-type.m4: Remove file, now that the latest version of
82054         AC_CHECK_TYPE takes a third arg to specify additional #includes.
82055
82056         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
82057         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
82058         AC_CHECK_TYPE.
82059
82060 1999-10-04  Jim Meyering  <meyering@ascend.com>
82061
82062         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
82063
82064 1999-09-22  Paul Eggert  <eggert@twinsun.com>
82065
82066         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
82067         2.95.1 bug with HP-UX 10.20.
82068
82069 1999-09-17  Jim Meyering  <meyering@ascend.com>
82070
82071         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
82072         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
82073         due to missing strdup (against sh-utils-2.0).
82074
82075 1999-08-29  Jim Meyering  <meyering@ascend.com>
82076
82077         * m4/jm-macros.m4: Require jm_BISON.
82078         * m4/bison.m4: New file.
82079
82080 1999-08-17  Paul Eggert  <eggert@twinsun.com>
82081
82082         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
82083         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
82084
82085 1999-08-05  Jim Meyering  <meyering@ascend.com>
82086
82087         * m4/getline.m4: Rename test file from conftestdata to conftest.data
82088         to avoid conflicts with `conftest' on 8+3 filesystems.
82089         Suggestion from Eli Zaretskii.
82090
82091 1999-08-04  Jim Meyering  <meyering@ascend.com>
82092
82093         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
82094         fileutils and sh-utils (textutils's getline test was inadequate).
82095         (AM_FUNC_GETLINE): Run this test.
82096         (AC_CHECK_FUNCS): Check for getdelim.
82097         Reported by Bob Proulx.
82098
82099 1999-08-02  Jim Meyering  <meyering@ascend.com>
82100
82101         * m4/jm-macros.m4: Add a comment.
82102
82103 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82104
82105         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
82106         <inttypes.h> defines strtoumax as a macro (and not as a
82107         function).
82108
82109 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82110
82111         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
82112         that we can shift, multiply and divide unsigned long long
82113         values; Ultrix cc can't do it.
82114
82115 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82116
82117         * m4/mktime.m4: New file, which is a preview of what should appear
82118         in the next public autoconf release.
82119
82120 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82121
82122         * m4/lfs.m4: Remove this file.
82123         * m4/largefile.m4: New file.  It contains the old contents of
82124         lfs.m4, except that all names with prefix AC_LFS have been
82125         changed to use the prefix AC_SYS_LARGEFILE instead, to be
82126         compatible with future autoconf versions.  Also, some minor m4
82127         quoting problems have been fixed.
82128
82129 1999-08-01  Paul Eggert  <eggert@twinsun.com>
82130
82131         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
82132         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
82133         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
82134         and simplify the shell code.
82135
82136 1999-08-01  Jim Meyering  <meyering@ascend.com>
82137
82138         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
82139         m4.
82140
82141 1999-07-20  Jim Meyering  <meyering@ascend.com>
82142
82143         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
82144
82145 1999-07-15  Jim Meyering  <meyering@ascend.com>
82146
82147         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
82148
82149 1999-05-22  Jim Meyering  <meyering@ascend.com>
82150
82151         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
82152
82153 1999-05-20  Jim Meyering  <meyering@ascend.com>
82154
82155         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
82156         Add a colon after each `then' in case $4 is empty.
82157
82158 1999-05-16  Jim Meyering  <meyering@ascend.com>
82159
82160         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
82161
82162 1999-05-10  Jim Meyering  <meyering@ascend.com>
82163
82164         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
82165
82166         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
82167         AC_FUNC_MKTIME.
82168
82169 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
82170
82171         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
82172
82173 1999-05-04  Paul Eggert  <eggert@twinsun.com>
82174
82175         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
82176         not CPPFLAGS, so that linking works correctly in IRIX.
82177
82178 1999-04-30  Paul Eggert  <eggert@twinsun.com>
82179
82180         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
82181
82182 1999-04-20  Paul Eggert  <eggert@twinsun.com>
82183
82184         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
82185         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
82186         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
82187         jm_AC_TYPE_UNSIGNED_LONG_LONG.
82188         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
82189
82190         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
82191
82192 1999-04-20  Jim Meyering  <meyering@ascend.com>
82193
82194         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
82195         AC_REPLACE xstroull if necessary.  From Paul Eggert.
82196         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
82197
82198 1999-04-18  Jim Meyering  <meyering@ascend.com>
82199
82200         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
82201         * m4/jm-macros.m4: Use it.
82202
82203 1999-04-06  Jim Meyering  <meyering@ascend.com>
82204
82205         * m4/strftime.m4: Remove test for %f.
82206
82207 1999-03-29  Jim Meyering  <meyering@ascend.com>
82208
82209         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
82210         superset of the AC_TYPE_* checks in the textutils, fileutils,
82211         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
82212         AC_TYPE_PID_T.
82213
82214 1999-03-28  Jim Meyering  <meyering@ascend.com>
82215
82216         * m4/jm-macros.m4: Define GNU_PACKAGE here.
82217         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
82218         replaced e.g., in the *.sh files of the sh-utils.
82219
82220 1999-03-20  Jim Meyering  <meyering@ascend.com>
82221
82222         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
82223         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
82224         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
82225
82226 1999-03-19  Jim Meyering  <meyering@ascend.com>
82227
82228         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
82229
82230 1999-03-12  Jim Meyering  <meyering@ascend.com>
82231
82232         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
82233
82234 1999-03-07  Jim Meyering  <meyering@ascend.com>
82235
82236         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
82237         declared.
82238
82239 1999-02-17  Jim Meyering  <meyering@ascend.com>
82240
82241         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
82242         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
82243
82244 1999-02-07  Jim Meyering  <meyering@ascend.com>
82245
82246         * m4/group-member.m4: New file -- extracted from sh-utils'
82247         configure.in.
82248
82249         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
82250         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
82251
82252 1999-02-06  Jim Meyering  <meyering@ascend.com>
82253
82254         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
82255         * m4/fnmatch.m4: Likewise.
82256         * m4/getgroups.m4: Likewise.
82257         * m4/lstat.m4: Likewise.
82258         * m4/malloc.m4: Likewise.
82259         * m4/putenv.m4: Likewise.
82260         * m4/realloc.m4: Likewise.
82261         * m4/regex.m4: Likewise.
82262         * m4/stat.m4: Likewise.
82263         * m4/strftime.m4: Likewise.
82264         Suggestion from Alain Magloire.
82265
82266         * m4/chown.m4: Use `.$ac_objext', not `.o'.
82267         * m4/fnmatch.m4: Likewise.
82268         * m4/getgroups.m4: Likewise.
82269         * m4/getline.m4: Likewise.
82270         * m4/lstat.m4: Likewise.
82271         * m4/malloc.m4: Likewise.
82272         * m4/memcmp.m4: Likewise.
82273         * m4/putenv.m4: Likewise.
82274         * m4/realloc.m4: Likewise.
82275         * m4/regex.m4: Likewise.
82276         * m4/stat.m4: Likewise.
82277         * m4/strftime.m4: Likewise.
82278         Suggestion from Alain Magloire.
82279
82280         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
82281         an argument.
82282
82283         * m4/regex.m4: Add a run-time Test for proper operation of
82284         re_compile_pattern.
82285
82286 1999-01-31  Jim Meyering  <meyering@ascend.com>
82287
82288         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
82289
82290 1999-01-30  Jim Meyering  <meyering@ascend.com>
82291
82292         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
82293
82294         * m4/jm-mktime.m4: Make this a wrapper around the official
82295         AM_FUNC_MKTIME rather than my private copy, now that the official one
82296         is up to date.
82297         * m4/mktime.m4: Remove file.
82298
82299         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
82300         * m4/uptime.m4: Likewise.
82301         * m4/uintmax_t.m4: Likewise.
82302
82303 1999-01-28  Jim Meyering  <meyering@ascend.com>
82304
82305         * m4/jm-macros.m4: Use jm_AFS.
82306         * m4/afs.m4: New file (from fileutils' configure.in).
82307
82308         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
82309         * m4/chown.m4: Likewise.
82310         * m4/d-ino.m4: Likewise.
82311         * m4/d-type.m4: Likewise.
82312         * m4/fnmatch.m4: Likewise.
82313         * m4/getgroups.m4: Likewise.
82314         * m4/gettext.m4: Likewise.
82315         * m4/jm-mktime.m4: Likewise.
82316         * m4/jm-winsz2.m4: Likewise.
82317         * m4/lcmessage.m4: Likewise.
82318         * m4/ls-mntd-fs.m4: Likewise.
82319         * m4/malloc.m4: Likewise.
82320         * m4/memcmp.m4: Likewise.
82321         * m4/putenv.m4: Likewise.
82322         * m4/realloc.m4: Likewise.
82323         * m4/st_mtim.m4: Likewise.
82324         * m4/strftime.m4: Likewise.
82325
82326 1999-01-16  Jim Meyering  <meyering@ascend.com>
82327
82328         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
82329         (ARGMATCH_DIE_DECL): Define.
82330
82331 1999-01-12  Jim Meyering  <meyering@ascend.com>
82332
82333         * m4/Makefile.am.in: Rewrite to avoid using fmt.
82334         Reported by Lars Hecking.
82335
82336 1999-01-10  Jim Meyering  <meyering@ascend.com>
82337
82338         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
82339         gross kludge.
82340         * m4/inttypes_h.m4: Likewise.
82341         * m4/lstat.m4: Likewise.
82342         * m4/malloc.m4: Likewise.
82343         * m4/readdir.m4: Likewise.
82344         * m4/realloc.m4: Likewise.
82345         * m4/st_dm_mode.m4: Likewise.
82346         * m4/stat.m4: Likewise.
82347         * m4/utimbuf.m4: Likewise.
82348         * m4/utimes.m4: Likewise.
82349
82350         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
82351         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
82352         comments in config.h.in are meaningful.
82353
82354         * m4/jm-macros.m4: Require autoconf-2.13 here.
82355
82356         * m4/regex.m4: By default, don't use the included regex.c on systems
82357         with glibc 2.  Suggestion from Uli Drepper.
82358
82359 1999-01-02  Jim Meyering  <meyering@ascend.com>
82360
82361         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
82362
82363 1998-12-18  Jim Meyering  <meyering@ascend.com>
82364
82365         * m4/Makefile.am.in (Makefile.am): Simplify rule.
82366         Based on a suggestion from Lars Hecking.
82367
82368 1998-11-16  Paul Eggert  <eggert@twinsun.com>
82369
82370         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
82371
82372 1998-11-16  Jim Meyering  <meyering@ascend.com>
82373
82374         * m4/lfs.m4: Double-quote the `uname...` expression.
82375
82376 1998-11-14  Jim Meyering  <meyering@ascend.com>
82377
82378         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
82379         * m4/stat.m4: Likewise.
82380
82381 1998-11-03  Jim Meyering  <meyering@ascend.com>
82382
82383         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
82384         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
82385
82386 1998-10-18  Jim Meyering  <meyering@ascend.com>
82387
82388         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
82389
82390 1998-10-17  Jim Meyering  <meyering@ascend.com>
82391
82392         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
82393         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
82394         calls for those previously hard-coded headers.  Instead, take a new
82395         parameter.
82396         (jm_CHECK_DECLARATIONS): Reflect interface change.
82397         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
82398         (jm_CHECK_DECL_LOCALTIME_R): New macro.
82399
82400         * m4/mktime.m4: Test for spring-forward gap before long-running test.
82401
82402 1998-10-14  Jim Meyering  <meyering@ascend.com>
82403
82404         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
82405         instead of "TZ=America/Vancouver".  From Paul Eggert.
82406
82407 1998-10-11  Jim Meyering  <meyering@ascend.com>
82408
82409         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
82410         This adds a test for a recently added compatibility fix for mktime.c.
82411         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
82412
82413 1998-09-27  Jim Meyering  <meyering@ascend.com>
82414
82415         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
82416
82417         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
82418         ../configure.in, including a change from Gordon Matzigkeit to allow
82419         cross-compiling for the Hurd.
82420
82421         * m4/glibc.m4: New file/macro to test for the GNU C Library
82422         versions 1 and 2.  From Gordon Matzigkeit.
82423         Indent.
82424
82425 1998-09-21  Jim Meyering  <meyering@ascend.com>
82426
82427         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
82428
82429 1998-08-18  Paul Eggert  <eggert@twinsun.com>
82430
82431         Port nanosecond-resolution times to UnixWare 2.1.2 and
82432         pedantic Solaris 2.6.
82433
82434         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
82435         AC_STRUCT_ST_MTIM.
82436         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
82437         Generate name of ns member, instead of just 1 or undef.
82438         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
82439
82440 1998-08-15  Jim Meyering  <meyering@ascend.com>
82441
82442         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
82443         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
82444         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
82445         instead of jm_TYPE_SSIZE_T.
82446
82447 1998-08-12  Jim Meyering  <meyering@ascend.com>
82448
82449         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
82450
82451 1998-08-02  Jim Meyering  <meyering@ascend.com>
82452
82453         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
82454         in acconfig.h manually.
82455
82456 1998-07-31  Paul Eggert  <eggert@twinsun.com>
82457
82458         * m4/st_mtim.m4: New file.
82459
82460 1998-07-28  Jim Meyering  <meyering@ascend.com>
82461
82462         * m4/utimes.m4: Undef stat.
82463
82464 1998-07-25  Jim Meyering  <meyering@ascend.com>
82465
82466         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
82467         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
82468
82469 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
82470
82471         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
82472         uid and gid actually remain unchanged.
82473
82474 1998-07-07  Jim Meyering  <meyering@ascend.com>
82475
82476         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
82477
82478 1998-07-04  Jim Meyering  <meyering@ascend.com>
82479
82480         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
82481         to prove that this macro can be used in packages without regex.c.
82482
82483 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
82484
82485         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
82486         is to be used.
82487
82488 1998-07-03  Jim Meyering  <meyering@ascend.com>
82489
82490         * m4/gettext.m4: Add -lintl if it's found to be necessary.
82491
82492         * m4/gettext.m4: New file -- from gettext-0.10.35.
82493         * m4/lcmessage.m4: Likewise.
82494         * m4/progtest.m4: Likewise.
82495
82496         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
82497         * m4/jm-macros.m4: Require the new macro.
82498
82499 1998-06-29  Jim Meyering  <meyering@ascend.com>
82500
82501         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
82502         for the definition of NGROUPS (used in a system header included
82503         by sys/mount.h).
82504
82505 1998-06-28  Jim Meyering  <meyering@ascend.com>
82506
82507         * m4/ls-mntd-fs.m4: New file.
82508         * m4/fstypename.m4: New file.
82509
82510         * m4/jm-macros.m4: Require the new macro.
82511         * m4/jm-glibc-io.m4: New file.
82512
82513 1998-05-19  Jim Meyering  <meyering@ascend.com>
82514
82515         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
82516         * m4/lchown.m4: New file.
82517
82518         * m4/Makefile.am.in: New file.
82519         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
82520
82521 1998-05-14  Jim Meyering  <meyering@ascend.com>
82522
82523         * m4/Makefile.am (EXTRA_DIST): Add them.
82524         * m4/jm-macros.m4: New file.
82525         * m4/utimbuf.m4: New file.
82526
82527 1998-05-12  Jim Meyering  <meyering@ascend.com>
82528
82529         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
82530
82531 1998-05-11  Jim Meyering  <meyering@ascend.com>
82532
82533         * m4/isc-posix.m4: New file.
82534
82535 1998-05-10  Jim Meyering  <meyering@ascend.com>
82536
82537         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
82538
82539 1998-05-09  Jim Meyering  <meyering@ascend.com>
82540
82541         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
82542         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
82543         with automake.
82544
82545         * m4/ssize_t.m4: New file.
82546         * m4/mktime.m4: Remove file -- the new automake has this now.
82547
82548 1998-04-26  Jim Meyering  <meyering@ascend.com>
82549
82550         * m4/assert.m4: New file.
82551         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
82552
82553 1998-04-05  Jim Meyering  <meyering@ascend.com>
82554
82555         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
82556         (jm_PREREQ): Use it here.
82557
82558 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
82559
82560         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
82561         in acconfig.h.
82562
82563 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
82564
82565         * m4/prereq.m4: New file.
82566         * m4/error.m4: New file.
82567         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
82568
82569 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
82570
82571         * m4/getline.m4: Don't set am_cv_func_working_getline before the
82572         cache-check for the same variable -- that defeated the purpose of
82573         the test; the test program was never run.  This was a problem only
82574         on systems with losing getline functions -- HP-UX 10.20 is one.
82575         Reported by Bjorn Helgaas.
82576
82577 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
82578
82579         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
82580
82581 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
82582
82583         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
82584
82585         * m4/const.m4: New file.  Use an initializer in this declaration
82586         typedef int charset[2]; const charset x;
82587         Reported by Bob Glickstein.
82588
82589 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
82590
82591         * m4/chown.m4: Fix reversed types on -1 args to chown.
82592         From Kaveh Ghazi.
82593
82594 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
82595
82596         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
82597         Add lseek and memchr.
82598
82599         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
82600         T.E.Dickey <dickey@clark.net> said that some older preprocessors
82601         have a 20-character limit on names.
82602
82603 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
82604
82605         * m4/inttypes_h.m4: New file.
82606         * m4/uintmax_t.m4: New file.
82607         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
82608
82609
82610         -----
82611
82612         Local Variables:
82613         coding: utf-8
82614         End:
82615
82616         Copyright (C) 1997-2011 Free Software Foundation, Inc.
82617
82618         Copying and distribution of this file, with or without
82619         modification, are permitted provided the copyright notice
82620         and this notice are preserved.